/* ============================================================
   模方电子 ModuCore — 样式
   对齐参考：psicv.com（橄榄绿 #688a06 / Apple 系统字体 / 极简白底）
   ============================================================ */

:root {
  --brand: #688a06;          /* 主色：橄榄绿 */
  --brand-strong: #557004;   /* 深一档，用于按钮/悬停，提升对比度 */
  --brand-soft: #eef3e0;     /* 浅绿底 */
  --brand-line: #d7e3b8;     /* 浅绿描边 */
  --ink: #1d1d1f;            /* 近黑文字 */
  --muted: #6e6e73;          /* 次级文字 */
  --line: #e6e6e6;           /* 分割线 */
  --bg: #ffffff;
  --bg-soft: #f6f8f1;        /* 带绿调的浅灰底 */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .10);
  --container: 1140px;
  --font: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,23,42,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 9px; background: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.01em; display: inline-flex; align-items: baseline; gap: 7px; }
.brand-en { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--ink); font-weight: 500; transition: color .15s ease; }
.nav-links a:hover { color: var(--brand); }
.nav-links .nav-cta { color: #fff; }
.nav-links .nav-cta:hover { color: #fff; background: var(--brand-strong); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 88vh, 840px); display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; background-image: url('/assets/hero.png');
  background-size: cover; background-position: center; transform: scale(1.02);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(20,28,12,.82) 0%, rgba(20,28,12,.55) 42%, rgba(20,28,12,.18) 100%);
}
.hero-inner { position: relative; z-index: 2; color: #fff; padding: 80px 24px; max-width: 720px; }
.eyebrow-bubble {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(18, 26, 10, .42);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
}
.hero-eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .14em; color: #d9e8b0; text-transform: uppercase; }
.hero-title { margin-top: 14px; font-size: clamp(34px, 6vw, 58px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.hero-sub { margin-top: 20px; font-size: clamp(15px, 2.2vw, 18px); line-height: 1.8; color: rgba(255,255,255,.9); max-width: 560px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { margin-top: 44px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats b { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255,255,255,.75); margin-top: 2px; }

/* ---------- 通用区块 ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-soft { background: var(--bg-soft); }
.section-label {
  font-size: clamp(30px, 5vw, 48px); font-weight: 800; color: var(--brand);
  letter-spacing: .04em; line-height: 1; margin-bottom: 10px;
}
.section-title { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.section-desc { margin-top: 14px; max-width: 640px; color: var(--muted); font-size: 16px; }
.section-desc-wide { max-width: 860px; }

/* ---------- 方案卡片 ---------- */
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--brand-line); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--brand-soft); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card-title { font-size: 19px; font-weight: 700; }
.card-desc { margin-top: 10px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.card-list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.card-list li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink); }
.card-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23688a06' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.card-link { margin-top: 20px; font-size: 14.5px; font-weight: 700; color: var(--brand); transition: gap .15s ease; }
.card-link:hover { color: var(--brand-strong); }

/* ---------- 能力 ---------- */
.caps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; }
.cap-no { font-size: 14px; font-weight: 800; color: var(--brand); letter-spacing: .08em; }
.cap h4 { margin-top: 10px; font-size: 17px; font-weight: 700; }
.cap p { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 流程 ---------- */
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.steps li { position: relative; padding-top: 46px; border-top: 2px solid var(--brand-line); }
.step-no {
  position: absolute; top: -2px; left: 0; transform: translateY(-54%);
  font-size: 15px; font-weight: 800; color: #fff; background: var(--brand);
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.steps h4 { font-size: 17px; font-weight: 700; }
.steps p { margin-top: 8px; font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---------- 关于 ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-lead { margin-top: 14px; font-size: 18px; font-weight: 600; line-height: 1.7; }
.about-p { margin-top: 14px; color: var(--muted); font-size: 15.5px; line-height: 1.85; }
.about-points { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.about-points li { position: relative; padding-left: 26px; font-size: 15px; font-weight: 500; }
.about-points li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23688a06' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E");
  background-size: 12px; background-repeat: no-repeat; background-position: center;
}
.about-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.about-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 联系 / 留资 ---------- */
.contact { background: linear-gradient(160deg, #2b3a12 0%, #1d1d1f 100%); color: #fff; }
.section-label-light { color: #b9d27a; }
.section-title-light { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-desc { margin-top: 14px; color: rgba(255,255,255,.82); font-size: 16px; line-height: 1.8; max-width: 520px; }
.contact-info { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.contact-info li { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-info span { font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.contact-info b { font-size: 14px; font-weight: 600; white-space: nowrap; letter-spacing: -.01em; }
.contact-note { margin-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.5); }

.contact-form-wrap {
  background: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-lg); color: var(--ink);
}
.lead-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.field label i { color: #d9534f; font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0 14px; height: 46px; font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #aaa; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(104,138,6,.15);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-alert { font-size: 14px; min-height: 18px; color: #d9534f; font-weight: 600; }
.form-alert.ok { color: var(--brand-strong); }

.lead-success { text-align: center; padding: 18px 8px; }
.success-check {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--brand);
  display: flex; align-items: center; justify-content: center;
}
.lead-success h3 { font-size: 22px; font-weight: 800; }
.lead-success p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.9; }
.lead-success .btn { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer { background: #15160f; color: #fff; padding: 44px 0 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-tag { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-copy { color: rgba(255,255,255,.4); font-size: 12.5px; }
/* 单独的备案底栏：黑色，与网页暗色风格对齐；贴页面底部，ICP 栏下无留白 */
.footer-filing-bar { background: #000; border-top: 1px solid rgba(255,255,255,.08); padding: 13px 0; margin-top: 30px; }
.footer-filing { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 22px; font-size: 12.5px; }
.footer-filing a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .15s ease; }
.footer-filing a:hover { color: rgba(255,255,255,.85); }
.filing-police { display: inline-flex; align-items: center; gap: 6px; }
.police-badge { flex: none; display: block; width: 16px; height: 16px; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .cards { grid-template-columns: 1fr; }
  .caps { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
}
@media (max-width: 680px) {
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 18px;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .nav-cta { margin-top: 10px; text-align: center; border-bottom: 0; }
  .nav-toggle { display: flex; }
  .caps, .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
