:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #64706b;
  --paper: #f6f3eb;
  --paper-deep: #ece8dc;
  --card: rgba(255, 254, 249, 0.82);
  --green: #17634e;
  --green-dark: #113e34;
  --orange: #f1783a;
  --lime: #b8cf45;
  --line: rgba(23, 35, 31, 0.14);
  --shadow: 0 28px 70px rgba(31, 49, 42, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(184, 207, 69, 0.15), transparent 24rem),
    radial-gradient(circle at 88% 20%, rgba(241, 120, 58, 0.11), transparent 26rem),
    var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  min-width: 320px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.3;
  background-image: radial-gradient(rgba(23, 35, 31, 0.2) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  pointer-events: none;
}

a { color: inherit; }

button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--green-dark);
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1200px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  transform: rotate(8deg);
}

.brand-mark i { border-radius: 50%; background: var(--green); }
.brand-mark i:nth-child(2) { background: var(--orange); }
.brand-mark i:nth-child(3) { background: var(--lime); }
.brand-mark i:nth-child(4) { background: var(--green-dark); }

.brand strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; letter-spacing: 0.18em; }

nav { display: flex; gap: 32px; }
nav a {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transition: transform 180ms ease;
}
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }

main, footer { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }

.hero {
  min-height: 620px;
  padding: 86px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 80px;
}

.eyebrow, .section-index, .panel-kicker {
  margin: 0 0 22px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 1px; background: currentColor; }

.hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(52px, 6.3vw, 86px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 em { color: var(--green); font-style: normal; }

.hero-description {
  max-width: 610px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 12px; margin-top: 38px; }

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 12px 24px rgba(17, 62, 52, 0.2); }
.button-primary:hover { box-shadow: 0 16px 30px rgba(17, 62, 52, 0.25); }
.button-quiet { background: rgba(255, 255, 255, 0.36); }

.hero-panel {
  position: relative;
  min-height: 430px;
  padding: 40px;
  overflow: hidden;
  color: #f8f6ee;
  background: var(--green-dark);
  border-radius: 2px 78px 2px 2px;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  position: absolute;
  right: -54px;
  bottom: -64px;
  width: 230px;
  height: 230px;
  content: "";
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
}

.panel-orbit {
  width: 92px;
  height: 92px;
  margin: 0 0 58px auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
}
.panel-orbit::before { width: 55px; height: 55px; content: ""; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.panel-orbit span { position: absolute; width: 12px; height: 12px; background: var(--orange); border-radius: 50%; transform: translate(31px, -20px); }

.panel-kicker { color: #b5cfb8; }
.hero-panel h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 31px; font-weight: 500; line-height: 1.45; }
.hero-panel dl { position: relative; z-index: 1; margin: 34px 0 0; padding-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; border-top: 1px solid rgba(255,255,255,.16); }
.hero-panel dt { color: rgba(255,255,255,.56); font-size: 11px; }
.hero-panel dd { margin: 7px 0 0; font-size: 15px; font-weight: 700; }

.services-section { padding: 92px 0 106px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2, .about-section h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(38px, 4.2vw, 58px); font-weight: 500; letter-spacing: -0.04em; }
.section-heading > div > p:last-child { margin: 13px 0 0; color: var(--muted); }

.search-box {
  width: min(100%, 330px);
  height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.54);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.search-box:focus-within { outline: 2px solid rgba(23, 99, 78, .25); border-color: var(--green); }
.search-box input { width: 100%; color: var(--ink); background: transparent; border: 0; outline: 0; }
.search-box input::placeholder { color: #8b938e; }

.filter-row { margin: 34px 0 24px; display: flex; flex-wrap: wrap; gap: 9px; }
.filter-button {
  min-height: 36px;
  padding: 0 15px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.filter-button[aria-pressed="true"] { color: white; background: var(--green); border-color: var(--green); }

.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-card {
  --accent: var(--green);
  position: relative;
  min-height: 240px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.service-card::before { position: absolute; top: 0; left: 28px; width: 54px; height: 3px; content: ""; background: var(--accent); border-radius: 0 0 3px 3px; }
.service-card:hover { transform: translateY(-4px); border-color: rgba(23, 99, 78, .26); box-shadow: 0 20px 46px rgba(25, 47, 39, .1); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.service-icon { width: 52px; height: 52px; display: grid; place-items: center; color: white; background: var(--accent); border-radius: 15px; font-size: 14px; font-weight: 900; letter-spacing: .04em; }
.service-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.service-state::before { width: 7px; height: 7px; content: ""; background: #a2aaa6; border-radius: 50%; }
.service-card.is-configured .service-state::before { background: #44a878; box-shadow: 0 0 0 4px rgba(68,168,120,.12); }
.service-card h3 { margin: 26px 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; font-weight: 600; }
.service-card p { margin: 0; max-width: 520px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.card-bottom { margin-top: auto; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.category-label { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.service-link { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; text-decoration: none; }
.service-link::after { content: "↗"; font-size: 16px; }
.service-link:hover { color: var(--green); }
.service-link.is-disabled { color: #909793; cursor: not-allowed; }
.service-link.is-disabled::after { content: "·"; }

.empty-state { padding: 60px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 18px; }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { margin-bottom: 8px; color: var(--ink); }

.about-section { padding: 96px 0; border-top: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 100px; align-items: start; }
.about-copy { padding-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.9; }
.about-copy p { margin: 0 0 24px; }
.privacy-note { padding: 18px 20px; background: rgba(255,255,255,.45); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.privacy-note span { margin-right: 7px; color: var(--green); }

footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; letter-spacing: .1em; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid rgba(241, 120, 58, .45); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 64px; }
  .hero-panel { min-height: 390px; }
  .about-layout { grid-template-columns: 1fr; gap: 38px; }
}

@media (max-width: 680px) {
  .site-header, main, footer { width: min(100% - 30px, 1200px); }
  .site-header { min-height: 74px; }
  nav { gap: 16px; }
  nav a:last-child { display: none; }
  .brand small { display: none; }
  .hero { min-height: auto; padding: 58px 0 70px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-description { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-panel { min-height: 360px; padding: 28px; border-radius: 2px 52px 2px 2px; }
  .panel-orbit { margin-bottom: 42px; }
  .hero-panel dl { gap: 8px; }
  .hero-panel dd { font-size: 13px; }
  .services-section, .about-section { padding: 72px 0; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; max-width: none; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; padding: 24px; }
  footer { padding: 26px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
