:root {
  --navy: #071524;
  --navy-2: #0b2138;
  --panel: #0f2b46;
  --cyan: #18d0c5;
  --cyan-soft: rgba(24, 208, 197, 0.16);
  --gold: #f2b84b;
  --text: #162334;
  --muted: #607083;
  --line: #dfe8f0;
  --bg: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 52px rgba(7, 21, 36, 0.12);
  --radius: 16px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
}

a { color: #078f87; text-decoration: none; }
a:hover { color: var(--cyan); text-decoration: underline; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--navy);
  text-decoration: none;
}

.brand strong { font-size: 1.18rem; letter-spacing: -0.02em; }
.brand span { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }

.nav {
  display: flex;
  gap: 8px 26px;
  align-items: center;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav a.is-active,
.nav a:hover { color: #07948b; text-decoration: none; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(24, 208, 197, 0.22), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(242, 184, 75, 0.16), transparent 28%),
    linear-gradient(135deg, var(--navy), var(--navy-2) 56%, #102f4c);
  color: #eaf4f8;
  padding: 78px 0 92px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) 0.88fr;
  gap: 46px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(24, 208, 197, 0.32);
  border-radius: 999px;
  color: rgba(234, 244, 248, 0.76);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 6px var(--cyan-soft);
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 46rem;
  color: rgba(234, 244, 248, 0.78);
  font-size: 1.05rem;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

.btn-primary { background: linear-gradient(135deg, var(--cyan), #0aa59d); color: #05201f; }
.btn-primary:hover { color: #05201f; filter: brightness(1.05); text-decoration: none; }
.btn-ghost { color: #eaf4f8; border: 1px solid rgba(234, 244, 248, 0.26); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.08); text-decoration: none; }

.signal-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
  padding: 26px;
}

.signal-card h2 { font-size: 1.08rem; margin-bottom: 18px; }

.signal-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.signal-row:first-of-type { border-top: 0; }
.signal-no { color: var(--cyan); font-weight: 800; }
.signal-row strong { display: block; color: #fff; }
.signal-row span { color: rgba(234, 244, 248, 0.68); font-size: 0.9rem; }

.section { padding: 68px 0; }
.section-white { background: var(--white); }

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.section-kicker {
  color: #078f87;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  margin-bottom: 8px;
}

.section-title { font-size: clamp(1.55rem, 3vw, 2.15rem); color: var(--navy); line-height: 1.25; }
.section-desc { color: var(--muted); max-width: 42rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card h3 { color: var(--navy); font-size: 1.08rem; line-height: 1.45; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card .meta { color: #7a8a9d; font-size: 0.82rem; margin-bottom: 10px; }

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-2), #0a9f97);
  color: #fff;
  font-weight: 900;
  margin-bottom: 16px;
}

.metric-band {
  margin-top: -34px;
  position: relative;
  z-index: 3;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.metric strong { display: block; color: var(--navy); font-size: 1.8rem; line-height: 1; margin-bottom: 8px; }
.metric span { color: var(--muted); font-size: 0.88rem; }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
}

.breadcrumb { color: var(--muted); font-size: 0.86rem; margin-bottom: 18px; }
.article h1 { color: var(--navy); font-size: clamp(1.7rem, 3.5vw, 2.35rem); line-height: 1.28; margin-bottom: 12px; }
.article h2 { color: var(--navy); font-size: 1.22rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 30px 0 12px; }
.article p { color: #334155; margin-bottom: 1.05em; text-align: justify; }
.article ul { padding-left: 1.25rem; margin-bottom: 1.1em; color: #334155; }
.article li { margin: 0.42em 0; }

.note {
  border: 1px solid rgba(24, 208, 197, 0.28);
  background: #eefdfa;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 24px 0;
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag { border-radius: 999px; background: #eefdfa; color: #087a73; border: 1px solid rgba(24, 208, 197, 0.28); padding: 3px 10px; font-size: 0.78rem; font-weight: 700; }

.site-footer {
  background: var(--navy);
  color: #9db0c5;
  padding: 46px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 26px;
  margin-bottom: 30px;
}

.site-footer h4 { color: #e8f2f5; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: #b8cad8; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 18px; font-size: 0.84rem; text-align: center; }

@media (max-width: 920px) {
  .hero-grid, .article-layout { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .metric-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .hero { padding: 52px 0 70px; }
  .grid-3, .grid-4, .metric-grid, .footer-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .article { padding: 26px 20px; }
}

/* 旧版文章页兼容 */
header:not(.site-header) {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  padding: 16px 0;
  margin-bottom: 0;
}
header:not(.site-header) .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
header:not(.site-header) .logo {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--navy);
}
header:not(.site-header) .logo span { color: #078f87; }
header:not(.site-header) nav { display: flex; gap: 20px; flex-wrap: wrap; }
header:not(.site-header) nav a {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
}
header:not(.site-header) nav a.active,
header:not(.site-header) nav a:hover { color: #07948b; }
.article-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.article-body h1 { color: var(--navy); font-size: clamp(1.7rem, 3.5vw, 2.35rem); line-height: 1.28; margin-bottom: 12px; }
.article-body h2 { color: var(--navy); font-size: 1.22rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin: 30px 0 12px; }
.article-body p { color: #334155; margin-bottom: 1.05em; }
.article-body code { background: #eef2f7; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.related {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.related h3 { color: var(--navy); margin-bottom: 12px; }
.related ul { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; }
.related li::before { content: "→ "; color: #078f87; }
.topic-tag {
  display: inline-block;
  border-radius: 999px;
  background: #eefdfa;
  color: #087a73;
  border: 1px solid rgba(24, 208, 197, 0.28);
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}
footer:not(.site-footer) {
  background: var(--navy);
  color: #9db0c5;
  padding: 28px 0;
  text-align: center;
  font-size: 0.84rem;
  margin-top: 48px;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.tool-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.tool-form input[type=text], .tool-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
}
.tool-form button {
  background: linear-gradient(135deg, var(--cyan), #0aa59d);
  color: #05201f;
  border: none;
  padding: 10px 24px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}
.tool-result {
  background: #eefdfa;
  border: 1px solid rgba(24, 208, 197, 0.28);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-all;
}
main:not(:has(.hero)) { padding: 32px 0 48px; }
