:root {
  --brand: #176f71;
  --brand-deep: #0d3d3e;
  --brand-mid: #167d76;
  --brand-soft: #edf7f5;
  --brand-line: #b8d7d3;
  --ink: #142022;
  --ink-muted: #4a5c5e;
  --paper: #f4faf9;
  --white: #ffffff;
  --warn: #c4781a;
  --danger: #c23b3b;
  --shadow: 0 18px 50px rgba(13, 61, 62, 0.12);
  --radius: 14px;
  --max: 1120px;
  --font-display: "DM Sans", "Noto Sans SC", sans-serif;
  --font-body: "Noto Sans SC", "DM Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(23, 111, 113, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 120, 26, 0.08), transparent 45%),
    linear-gradient(180deg, #eef7f6 0%, var(--paper) 40%, #e8f2f1 100%);
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-deep);
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ——— 顶栏 ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(244, 250, 249, 0.86);
  border-bottom: 1px solid rgba(184, 215, 211, 0.65);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-link img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--ink-muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 8px;
}

.nav a:hover,
.nav a.is-active {
  color: var(--brand-deep);
  background: rgba(23, 111, 113, 0.08);
}

.nav .btn {
  margin-left: 6px;
}

.nav .nav-admin {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--brand-soft);
  color: var(--brand-deep);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
}

/* ——— 按钮 ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(23, 111, 113, 0.28);
}

.btn-primary:hover {
  background: var(--brand-deep);
  color: #fff !important;
}

.btn-secondary {
  background: #fff;
  color: var(--brand-deep) !important;
  box-shadow: inset 0 0 0 1px var(--brand-line);
}

.btn-ghost {
  background: transparent;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 61, 62, 0.94), rgba(23, 111, 113, 0.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-inner {
  padding: 88px 0 96px;
  max-width: 720px;
  animation: rise 0.7s ease both;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero .lead {
  margin: 18px 0 0;
  font-size: 1.12rem;
  max-width: 36em;
  color: rgba(255, 255, 255, 0.88);
}

.hero-glow {
  position: absolute;
  right: -8%;
  top: 10%;
  width: min(46vw, 520px);
  aspect-ratio: 1;
  border-radius: 40% 60% 55% 45%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 65%);
  filter: blur(8px);
  pointer-events: none;
  animation: float 8s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* ——— 通用区块 ——— */
.section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--brand-deep);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.page-hero {
  padding: 56px 0 28px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  color: var(--brand-deep);
}

.page-hero p {
  margin: 0;
  max-width: 42em;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.crumb {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.crumb a {
  color: var(--ink-muted);
}

.crumb a:hover {
  color: var(--brand);
}

/* ——— 网格 / 列表 ——— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-link {
  display: block;
  padding: 22px 22px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 215, 211, 0.8);
  box-shadow: var(--shadow);
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
  animation: rise 0.6s ease both;
}

.feature-link:nth-child(2) {
  animation-delay: 0.05s;
}
.feature-link:nth-child(3) {
  animation-delay: 0.1s;
}
.feature-link:nth-child(4) {
  animation-delay: 0.15s;
}
.feature-link:nth-child(5) {
  animation-delay: 0.2s;
}
.feature-link:nth-child(6) {
  animation-delay: 0.25s;
}

.feature-link:hover {
  transform: translateY(-3px);
  border-color: var(--brand-mid);
  color: inherit;
}

.feature-link .tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--brand-mid);
  letter-spacing: 0.04em;
}

.feature-link h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.feature-link p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pillar {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(184, 215, 211, 0.7);
}

.pillar strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-deep);
  font-family: var(--font-display);
}

.pillar span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* ——— 流程带 ——— */
.flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
}

.flow-step {
  flex: 1 1 140px;
  min-width: 120px;
  padding: 18px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--brand-line);
  position: relative;
}

.flow-step::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-mid);
  font-weight: 700;
  z-index: 1;
}

.flow-step:last-child::after {
  display: none;
}

.flow-step .n {
  display: block;
  font-size: 0.78rem;
  color: var(--brand-mid);
  margin-bottom: 6px;
}

.flow-step strong {
  display: block;
  color: var(--brand-deep);
}

.flow-step span {
  display: block;
  margin-top: 4px;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* ——— 正文模块页 ——— */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 36px 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-deep);
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 1.08rem;
  color: var(--brand-deep);
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.prose ul {
  padding-left: 1.2em;
}

.prose li + li {
  margin-top: 6px;
}

.info-panel {
  margin: 28px 0;
  padding: 20px 22px;
  border-radius: 12px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
}

.info-panel strong {
  color: var(--brand-deep);
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  overflow: hidden;
}

.meta-table th,
.meta-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(184, 215, 211, 0.7);
  vertical-align: top;
  font-size: 0.94rem;
}

.meta-table th {
  width: 28%;
  color: var(--brand-deep);
  background: rgba(237, 247, 245, 0.9);
  font-weight: 600;
}

.meta-table td {
  color: var(--ink-muted);
}

/* ——— CTA 带 ——— */
.cta-band {
  margin: 20px 0 80px;
  padding: 40px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(120deg, var(--brand-deep), var(--brand));
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
}

/* ——— 页脚 ——— */
.site-footer {
  border-top: 1px solid rgba(184, 215, 211, 0.8);
  background: rgba(255, 255, 255, 0.55);
  padding: 36px 0 48px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.site-footer a {
  color: var(--ink-muted);
}

.site-footer a:hover {
  color: var(--brand);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

/* ——— Demo 页强调 ——— */
.demo-card {
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--brand-line);
  box-shadow: var(--shadow);
  max-width: 640px;
}

.demo-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  color: var(--brand-deep);
}

.demo-card .url {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  color: var(--brand);
  word-break: break-all;
}

.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(184, 215, 211, 0.8);
}

.about-toc a {
  color: var(--brand-deep);
  font-size: 0.95rem;
  font-weight: 500;
}

.about-toc a:hover {
  color: var(--brand);
}

#contact,
#intro,
#product {
  scroll-margin-top: 88px;
}

.note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}


/* ——— 界面截图 ——— */
.shot {
  margin: 28px 0 36px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(184, 215, 211, 0.9);
  background: #fff;
  box-shadow: var(--shadow);
}

.shot img {
  width: 100%;
  height: auto;
  display: block;
}

.shot figcaption {
  margin: 0;
  padding: 12px 16px 14px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  background: rgba(237, 247, 245, 0.85);
  border-top: 1px solid rgba(184, 215, 211, 0.7);
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 36px;
}

.shot-grid .shot {
  margin: 0;
}

.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 8px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ——— 响应式 ——— */
@media (max-width: 960px) {
  .grid-3,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-step::after {
    display: none;
  }

  .shot-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 14px;
  }

  .nav.is-open {
    display: flex;
  }

  .site-header-inner {
    flex-wrap: wrap;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav .btn {
    margin-left: 0;
  }

  .grid-3,
  .grid-2,
  .pillars {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 64px 0 72px;
  }

  .cta-band {
    padding: 28px 22px;
  }
}
