/* ===== 1. 设计令牌 ===== */
:root {
  --primary: #10b981;
  --primary-dark: #047857;
  --primary-soft: #d1fae5;
  --primary-bg: #f0fdf4;
  --accent: #0ea5e9;
  --ink: #0f1f1a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(15, 31, 26, .10);
  --shadow-sm: 0 4px 14px rgba(15, 31, 26, .07);
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

/* ===== 2. 基础样式 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }

.container { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }

.section { padding-block: 56px; scroll-margin-top: 76px; }
@media (max-width: 900px) {
  .section { padding-block: 40px; }
}
.section.tint { background: var(--bg-soft); }
.section.mint { background: var(--primary-bg); }

.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .kicker {
  display: inline-block;
  font-size: 14px; font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 4px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: .02em; }
.section-head .lead { margin-top: 16px; color: var(--muted); font-size: 17px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 20px rgba(16, 185, 129, .35);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }

/* 进入视口渐入动画（JS 加 .is-visible；尊重系统减少动态设置） */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* ===== 3. 导航栏 ===== */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-nav.scrolled {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
/* 首屏为深色背景图，未滚动时导航文字反白 */
@media (min-width: 769px) {
  .site-nav:not(.scrolled) .brand,
  .site-nav:not(.scrolled) .nav-links a:not(.nav-cta) { color: #fff; }
  .site-nav:not(.scrolled) .nav-links a.active { color: #fff; }
  .site-nav:not(.scrolled) .nav-links a.active::after { background: #fff; }
}
.site-nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}
.footer-brand .brand-logo { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--primary-dark); }
.nav-links a.active { color: var(--primary-dark); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--primary);
}
.nav-cta {
  background: var(--primary); color: #fff !important;
  padding: 8px 20px !important; border-radius: 999px; font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark); }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 8px; cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero（首页全屏背景图，版式依据 PDF 首页） ===== */
.hero {
  position: relative;
  min-height: 86vh;
  min-height: 86svh;
  display: flex; align-items: center;
  padding: 148px 0 96px;
  background: url('../images/web/hero-bg.jpg') center / cover no-repeat #0c1f18;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  /* 底部向白色渐隐，与下方浅色板块自然衔接 */
  background: linear-gradient(180deg,
    rgba(8, 20, 16, .66) 0%,
    rgba(8, 20, 16, .38) 42%,
    rgba(8, 20, 16, .42) 68%,
    rgba(8, 20, 16, .16) 86%,
    rgba(255, 255, 255, 1) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-badge {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .38);
  padding: 6px 16px; border-radius: 999px; margin-bottom: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(52px, 8vw, 88px);
  letter-spacing: .14em; color: #fff;
  text-shadow: 0 6px 28px rgba(0, 0, 0, .4);
}
.hero-slogan {
  margin-top: 18px; font-size: clamp(16px, 2.3vw, 25px);
  font-weight: 600; letter-spacing: .08em; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}
.hero-position {
  margin-top: 28px; display: inline-block;
  background: rgba(255, 255, 255, .94); color: var(--primary-dark);
  font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; letter-spacing: .04em;
  padding: 10px 30px; border-radius: 999px;
  box-shadow: var(--shadow);
}
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.btn-light { border-color: rgba(255, 255, 255, .65); color: #fff; background: rgba(255, 255, 255, .08); }
.btn-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .18); }
.hero-ticks { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.hero-ticks li {
  position: relative; padding-left: 22px;
  font-size: 14px; font-weight: 600; color: #eafaf2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.hero-ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255, 255, 255, .22) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center/9px no-repeat;
}
/* 首页两个小程序二维码（PDF 封底：鲜莱财小程序 / 鲜莱财助手） */
.hero-qr { display: flex; gap: 22px; margin-top: 46px; flex-wrap: wrap; justify-content: center; }
.hero-qr-card {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .96); border-radius: 18px;
  padding: 16px 18px 13px; box-shadow: var(--shadow);
}
.hero-qr-card img { width: 132px; height: 132px; border-radius: 10px; }
.hero-qr-card figcaption { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ===== 平台简介 ===== */
.about { padding-block: 72px; }
.about-intro { max-width: 820px; margin: 0 auto; text-align: center; font-size: 19px; color: var(--ink-2); }
.stats-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 12px; text-align: center;
}
.stat strong { display: block; font-size: 24px; color: var(--primary-dark); }
.stat span { font-size: 13px; color: var(--muted); }

/* ===== 响应式（导航/Hero/简介） ===== */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero { padding: 128px 0 64px; }
  .hero-qr { gap: 16px; margin-top: 36px; }
  .hero-qr-card { padding: 12px 14px 10px; }
  .hero-qr-card img { width: 112px; height: 112px; }
}
@media (max-width: 768px) {
  .qr-cards { flex-wrap: nowrap; gap: 12px; }
  .qr-card {
    flex: 1; flex-direction: column; gap: 10px;
    justify-content: center; margin-top: 0; padding: 14px 10px;
    text-align: center;
  }
  .qr-card img { width: 96px; height: 96px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .nav-links.open { max-height: calc(100vh - 68px); }
  .nav-links a { padding: 14px 24px !important; border-top: 1px solid var(--line); }
  .nav-links a.active::after { display: none; }
  .nav-cta { border-radius: 0 !important; text-align: center; }
}
/* ===== 4. 平台理念 ===== */
.philo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.philo-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); padding: 32px 28px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.philo-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.philo-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: var(--primary-bg); color: var(--primary-dark);
}
.philo-icon svg { width: 28px; height: 28px; }
.philo-card h3 { font-size: 21px; margin-bottom: 10px; }
/* 卡片头：图标 + 标题 + 角标（对应 PPT 卡片标题条） */
.philo-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.philo-head .philo-icon { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0; }
.philo-head .philo-icon svg { width: 22px; height: 22px; }
.philo-head h3 { margin-bottom: 0; font-size: 20px; }
.philo-tag {
  margin-left: auto; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--primary-dark);
  background: var(--primary-bg); padding: 3px 10px; border-radius: 999px;
}
.philo-points li {
  position: relative; padding-left: 22px;
  font-size: 14.5px; color: var(--ink-2); margin-bottom: 10px;
}
.philo-points li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}
.philo-points strong { color: var(--ink); }
/* 卡片底部引言（对应 PPT 卡片底部「」语录行） */
.philo-quote {
  margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 14px; font-weight: 600; color: var(--primary-dark);
}
/* 每张卡片顶部的三联画画幅（共建平台 / 丰收家宴 / 云端算法，与主张一一对应） */
.philo-media { margin: -32px -28px 22px; }
.philo-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
@media (max-width: 900px) { .philo-grid { grid-template-columns: 1fr; } }
/* ===== 5. 双创新模式 ===== */
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.model-card {
  background: var(--primary-bg); border: 1px solid var(--primary-soft);
  border-radius: var(--radius); padding: 32px;
}
.model-card.saas { background: #eff6ff; border-color: #dbeafe; }
.model-card h3 { display: flex; align-items: baseline; gap: 12px; font-size: 20px; margin-bottom: 20px; }
.model-tag {
  font-size: 14px; color: #fff; background: var(--primary);
  padding: 3px 12px; border-radius: 999px;
}
.model-card.saas .model-tag { background: var(--accent); }
.model-points li { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; padding-left: 16px; position: relative; }
.model-points li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 2px; background: var(--primary); }
.model-card.saas .model-points li::before { background: var(--accent); }
.model-base {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff; border-radius: var(--radius);
  padding: 24px 32px; margin-bottom: 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.base-label { font-size: 18px; font-weight: 700; letter-spacing: .04em; }
.base-roles { display: flex; gap: 12px; flex-wrap: wrap; }
.base-roles li {
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3);
  padding: 8px 18px; border-radius: 999px; font-size: 15px;
}
.model-figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) {
  .model-grid { grid-template-columns: 1fr; }
  .model-base { flex-direction: column; align-items: flex-start; }
}
/* ===== 6. 三端产品矩阵 ===== */
.matrix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.matrix-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.matrix-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.matrix-card h3 { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.matrix-role { font-size: 20px; }
.matrix-tag {
  align-self: flex-start; font-size: 13px; font-weight: 600;
  color: var(--primary-dark); background: var(--primary-bg);
  padding: 3px 12px; border-radius: 999px;
}
.matrix-card ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.matrix-card ul li {
  position: relative; padding-left: 20px;
  font-size: 15px; color: var(--ink-2);
}
.matrix-card ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 3px; background: var(--primary-soft);
  border: 2px solid var(--primary);
}
.matrix-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--primary-dark); }
.matrix-link:hover { text-decoration: underline; }
.matrix-figure img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .matrix-grid { grid-template-columns: 1fr; } }
/* ===== 7. 功能区（商家/供应商/消费者共用版式） ===== */
.feature-row {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: 56px; align-items: center;
  padding-block: 44px;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .feature-media { order: 2; }
.feature-media img {
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 2; object-fit: cover; width: 100%;
}
.feature-body h3 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 24px; margin-bottom: 16px;
}
.feature-num {
  font-size: 15px; font-weight: 700; color: var(--primary);
  font-family: ui-monospace, Consolas, monospace;
}
.feature-desc { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.feature-points li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--ink-2); margin-bottom: 10px;
}
.feature-points li::before {
  content: ""; position: absolute; left: 0; top: 5px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--primary-soft) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23047857" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="M5 13l4 4 10-10"/></svg>') center/9px no-repeat;
}
.feature-points strong { color: var(--ink); }
/* 无配图的功能用图标卡占位（如预约排队） */
.feature-media.icon-tile {
  aspect-ratio: 3 / 2; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--primary-bg), #e0f2fe);
  display: grid; place-items: center; align-content: center; gap: 14px;
  color: var(--primary-dark); text-align: center; font-size: 15px;
}
.tile-icon {
  width: 76px; height: 76px; border-radius: 22px; background: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.tile-icon svg { width: 40px; height: 40px; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding-block: 32px; }
  .feature-row.flip .feature-media { order: 0; }
}
/* ===== 8. 供应商端 ===== */
.supplier-hero { margin-bottom: 40px; }
.supplier-hero img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm);
  aspect-ratio: 21 / 9; object-fit: cover;
}
.supplier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mini-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.mini-card h3 {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 19px; margin-bottom: 18px;
}
@media (max-width: 900px) { .supplier-grid { grid-template-columns: 1fr; } }
/* ===== 9. 消费者端 ===== */
.consumer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 900px) { .consumer-grid { grid-template-columns: 1fr; } }
/* ===== 10. 核心优势 + 适用场景 ===== */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.adv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.adv-card h3 { font-size: 17px; margin-bottom: 10px; }
.adv-card p { font-size: 14px; color: var(--muted); }

.scen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.scen-col {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.scen-col h3 { font-size: 19px; margin-bottom: 18px; }
.scen-col ul li {
  position: relative; padding-left: 20px;
  font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px;
}
.scen-col ul li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
}
@media (max-width: 1000px) { .adv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .scen-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .adv-grid { grid-template-columns: 1fr; } }
/* ===== 11. 关于我们 + 合作表单 + 页脚 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
/* 关于我们为最后一个板块，收紧与页脚的间距 */
#contact { padding-bottom: 48px; }
@media (max-width: 900px) {
  #contact { padding-bottom: 36px; }
}
@media (min-width: 901px) {
  /* 桌面端放宽信息行距，让左列与右侧表单高度接近，减少底部留白 */
  .info-list > div { padding: 20px 0; }
  .qr-cards { margin-top: 36px; }
}
.info-list { display: flex; flex-direction: column; gap: 0; margin: 0; }
.info-list > div {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.info-list dt { color: var(--muted); font-size: 14px; margin: 0; }
.info-list dd { margin: 0; font-size: 15px; color: var(--ink); }
.qr-card {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line);
  padding: 18px 24px; border-radius: var(--radius);
}
.qr-card img { width: 108px; height: 108px; border-radius: 8px; }
.qr-card p { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.qr-cards { margin-top: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

.contact-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; box-shadow: var(--shadow-sm);
}
.contact-form h3 { font-size: 21px; margin-bottom: 4px; }
.form-tip { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-field label em { color: #ef4444; font-style: normal; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: 15px;
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink);
  transition: border-color .2s ease, background .2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--primary); background: #fff;
}
.form-field.invalid input, .form-field.invalid select { border-color: #ef4444; }
.field-error { display: block; min-height: 18px; font-size: 12.5px; color: #ef4444; margin-top: 4px; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-success {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--primary-bg); color: var(--primary-dark);
  font-size: 14.5px; font-weight: 600; text-align: center;
}
.form-error {
  margin-top: 12px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: #fef2f2; color: #b91c1c;
  font-size: 14.5px; font-weight: 600; text-align: center;
}
.form-submit:disabled { opacity: .6; cursor: not-allowed; }

.site-footer { background: #0c1f18; color: #cbd5d1; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-block: 40px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; }
.footer-nav { display: flex; gap: 24px; font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, .08);
  text-align: center; padding-block: 18px;
  font-size: 13px; color: #7d8a86;
}
.footer-copy .icp { margin-top: 6px; }
.footer-copy a { color: inherit; text-decoration: none; }
.footer-copy a:hover { color: #fff; }
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== 回到顶部 ===== */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; box-shadow: 0 6px 18px rgba(4, 120, 87, .35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { box-shadow: 0 8px 22px rgba(4, 120, 87, .5); }
@media (max-width: 560px) {
  .back-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}
