/* ==========================================================================
   安星碳数据 xingcarbon.cn — 全站样式 v2
   约束：零外部依赖、无 JavaScript、移动端优先、打印友好
   ========================================================================== */

:root {
  /* 品牌色 */
  --brand: #0b6e4f;
  --brand-dark: #073b2b;
  --brand-deep: #041f17;
  --brand-mid: #0f8a63;
  --brand-mint: #42c08f;
  --brand-wash: #eef8f4;
  --brand-line: #d2e8de;

  /* 辅助色 */
  --accent: #c98a2b;
  --accent-wash: #fdf6ea;
  --accent-line: #f0dcb4;

  /* 中性色 */
  --ink: #14231c;
  --ink-soft: #47584f;
  --ink-mute: #77877e;
  --bg: #ffffff;
  --bg-soft: #f7fbf9;
  --bg-tint: #f2f8f5;
  --line: #e4ece8;
  --line-strong: #cfdcd6;

  /* 形状 */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1100px;

  --shadow-sm: 0 1px 2px rgba(9, 40, 30, .05), 0 2px 8px rgba(9, 40, 30, .04);
  --shadow-md: 0 2px 4px rgba(9, 40, 30, .05), 0 12px 28px rgba(9, 40, 30, .08);
  --shadow-lg: 0 18px 48px rgba(9, 40, 30, .14);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-mid); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand-mint);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* --------------------------------------------------------------------------
   顶部信息条
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--brand-deep);
  color: #a8c9bd;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .2px;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  justify-content: space-between;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar a { color: #d6ebe3; }
.topbar a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   头部与导航
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(11, 110, 79, .22);
}
.brand-text strong {
  display: block;
  font-size: 17px;
  letter-spacing: .6px;
  color: var(--ink);
  line-height: 1.3;
}
.brand-text span {
  display: block;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 1.1px;
  text-transform: uppercase;
  line-height: 1.4;
}

.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 3px; }
.site-nav a {
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  transition: background .18s ease, color .18s ease;
}
.site-nav a:hover {
  background: var(--brand-wash);
  color: var(--brand-dark);
  text-decoration: none;
}
.site-nav a[aria-current="page"] {
  background: var(--brand-wash);
  color: var(--brand-dark);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--brand-line);
}

/* --------------------------------------------------------------------------
   首屏
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 520px at 78% -12%, rgba(66, 192, 143, .34), transparent 62%),
    radial-gradient(760px 420px at 6% 108%, rgba(15, 138, 99, .30), transparent 60%),
    linear-gradient(158deg, #0b6e4f 0%, #08513a 48%, #062f23 100%);
  color: #eaf5f0;
  padding: 70px 0 62px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: .5;
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 46px;
  align-items: center;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.42;
  margin: 0 0 18px;
  letter-spacing: .2px;
  color: #fff;
  font-weight: 700;
}
.hero .eyebrow {
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: 2px;
  color: #9fd9c4;
  border: 1px solid rgba(159, 217, 196, .38);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 16.5px;
  color: #c6e3d8;
  max-width: 42em;
  margin: 0 0 28px;
}
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .meta {
  margin-top: 26px;
  font-size: 12.5px;
  color: #8fbcac;
  letter-spacing: .3px;
}

/* 首屏右侧的示意面板（纯 CSS + 内联 SVG，无外链） */
.hero-visual {
  background: rgba(4, 31, 23, .34);
  border: 1px solid rgba(159, 217, 196, .22);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(4px);
}
.hero-visual .panel-title {
  font-size: 13px;
  color: #9fd9c4;
  letter-spacing: 1px;
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hero-visual .panel-title b { color: #fff; font-weight: 600; letter-spacing: .5px; }
.hero-visual svg { width: 100%; height: auto; }
.hero-visual .hv-label { fill: #9fd9c4; }
.hero-visual .hv-track { fill: rgba(255, 255, 255, .10); }
.hero-visual .hv-before { fill: #f0b45a; }
.hero-visual .hv-after { fill: #42c08f; }
.hero-visual .hv-note { fill: #7fae9e; }
.hero-visual ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  font-size: 13px;
  color: #bcd9ce;
}
.hero-visual li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero-visual li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-mint);
  flex: 0 0 auto;
}

/* 首屏成果面板（真实数字，纯 HTML 文本，便于 AI 读取） */
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hero-facts li {
  display: flex; align-items: center; gap: 14px;
  margin: 0; padding: 12px 14px;
  border: 1px solid rgba(159, 217, 196, .22);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}
.hero-facts b {
  font-size: 26px; line-height: 1; font-weight: 700;
  color: #8ef0c6; min-width: 42px; text-align: center;
}
.hero-facts span { font-size: 13.5px; color: #cfe6dc; line-height: 1.5; }
.hero-facts em { font-style: normal; color: #8fbcac; font-size: 12px; }

/* --------------------------------------------------------------------------
   按钮
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #eaf5f0);
  color: var(--brand-dark);
  box-shadow: 0 6px 18px rgba(2, 20, 14, .28);
}
.btn-primary:hover { box-shadow: 0 10px 26px rgba(2, 20, 14, .34); }

.btn-ghost {
  border-color: rgba(255, 255, 255, .42);
  color: #eaf5f0;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

.btn-solid {
  background: linear-gradient(180deg, var(--brand-mid), var(--brand));
  color: #fff;
  box-shadow: 0 8px 20px rgba(11, 110, 79, .26);
}
.btn-solid:hover { color: #fff; box-shadow: 0 12px 28px rgba(11, 110, 79, .32); }

/* --------------------------------------------------------------------------
   区块
   -------------------------------------------------------------------------- */

section { padding: 62px 0; }
section.tight { padding: 40px 0; }
section.soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; }
h2 {
  font-size: 25px;
  line-height: 1.5;
  margin: 0 0 10px;
  letter-spacing: .2px;
}
h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand-mint));
  margin-top: 12px;
}
h3 { font-size: 17.5px; line-height: 1.6; margin: 0 0 8px; }
h4 { font-size: 15px; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 7px; }
li::marker { color: var(--brand-mint); }

.section-sub {
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 56em;
  font-size: 15.5px;
}
.muted { color: var(--ink-mute); font-size: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.2px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   网格与卡片
   -------------------------------------------------------------------------- */

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

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-line);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .tag {
  display: inline-block;
  font-size: 11.5px;
  color: var(--brand-dark);
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 12px;
  letter-spacing: .6px;
  font-weight: 600;
}

/* 卡片图标 */
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(150deg, var(--brand-wash), #ffffff);
  border: 1px solid var(--brand-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--brand);
}
.card-icon svg { width: 21px; height: 21px; }

/* --------------------------------------------------------------------------
   提示框
   -------------------------------------------------------------------------- */

.note {
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  border-left: 3px solid var(--brand-mid);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
}
.warn {
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 20px 0;
}
.note p:last-child, .warn p:last-child { margin-bottom: 0; }

/* 服务号联动入口（文章末尾） */
.follow-box {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--brand-line);
  background: var(--brand-wash);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 30px 0 0;
}
.follow-box .fb-text { flex: 1 1 auto; }
.follow-box h3 { margin: 0 0 8px; font-size: 16px; }
.follow-box p { margin: 0 0 8px; font-size: 14px; }
.follow-box p:last-child { margin-bottom: 0; }
.follow-box img {
  flex: 0 0 auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
@media (max-width: 640px) {
  .follow-box { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   数字条
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  background: #fff;
  padding: 22px 20px;
  text-align: left;
}
.stat b {
  display: block;
  font-size: 26px;
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: -.5px;
}
.stat span {
  display: block;
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   表格
   -------------------------------------------------------------------------- */

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 18px 0 22px;
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
th, td {
  padding: 12px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--bg-tint);
  font-weight: 600;
  color: var(--brand-dark);
}
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) td { background: #fcfefd; }

/* --------------------------------------------------------------------------
   文章
   -------------------------------------------------------------------------- */

.article { max-width: 780px; }
.article h2 { margin-top: 38px; }
.article h3 { margin-top: 28px; }
.article-lead {
  font-size: 17px;
  color: var(--ink-soft);
  border-left: 3px solid var(--brand-mint);
  padding: 2px 0 2px 18px;
  margin: 0 0 30px;
}
.article-meta {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.faq-item h3::before {
  content: "Q";
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--brand-wash);
  border: 1px solid var(--brand-line);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  line-height: 1;
}
.faq-item p:last-child { margin-bottom: 0; padding-left: 32px; }

/* --------------------------------------------------------------------------
   面包屑
   -------------------------------------------------------------------------- */

.crumbs {
  font-size: 13px;
  color: var(--ink-mute);
  padding: 18px 0 0;
}
.crumbs a { color: var(--ink-mute); }
.crumbs a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--brand-deep);
  color: #9dbfb4;
  padding: 52px 0 28px;
  font-size: 14px;
  line-height: 1.75;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand-mint), var(--brand-mid));
}
.site-footer a { color: #cfe6dc; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
}
.site-footer h4 {
  color: #eaf5f0;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 12.5px;
  color: #86a499;
}
.footer-bottom p { margin: 0 0 6px; }

/* --------------------------------------------------------------------------
   响应式
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 560px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .site-nav { margin-left: 0; width: 100%; }
  .site-nav a { padding: 7px 11px; font-size: 14px; }
  .hero { padding: 46px 0 42px; }
  .hero h1 { font-size: 24px; }
  section { padding: 44px 0; }
  h2 { font-size: 21px; }
  table { font-size: 14px; }
  th, td { padding: 10px 12px; }
}

/* --------------------------------------------------------------------------
   打印
   -------------------------------------------------------------------------- */

@media print {
  .topbar, .site-nav, .hero .cta, .site-footer, .hero-visual { display: none; }
  body { font-size: 12pt; color: #000; }
  .hero { background: none; color: #000; padding: 0 0 14pt; }
  .hero::after { display: none; }
  .hero h1, .hero .lead, .hero .meta, .hero .eyebrow { color: #000; border-color: #999; }
  .card { box-shadow: none; break-inside: avoid; }
  h2::after { display: none; }
  section { padding: 14pt 0; }
}
