/* =============================================================
   品牌官网 · 样式表
   视觉风格参考：中性高级配色 + 大留白 + 大图质感 + 现代无衬线
   说明：本文件为模板样式，颜色/间距均可通过 :root 变量统一调整。
   ============================================================= */

/* ---------- 设计变量 ---------- */
:root {
  /* 配色：暖白底 + 墨黑字 + 单一高级强调色（户外/自然感的深青绿） */
  --bg: #ffffff;
  --bg-soft: #f5f4f0;          /* 暖灰白，用于分隔板块 */
  --bg-deep: #14181c;          /* 深墨色，用于反差板块 */
  --ink: #16191d;              /* 主文字 */
  --ink-soft: #4a4f57;         /* 次级文字 */
  --muted: #767c85;            /* 辅助/说明文字 */
  --line: #e4e2dc;             /* 分隔线 */
  --accent: #2f5d50;           /* 强调色：深青绿 */
  --accent-soft: #e7efe9;      /* 强调色浅底 */
  --accent-ink: #1f3f36;       /* 强调色深字 */
  --on-dark: #f4f3ef;          /* 深底上的文字 */

  /* 字体 */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
    sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, "Times New Roman", serif;

  /* 间距与圆角 */
  --maxw: 1200px;
  --gap: clamp(16px, 2vw, 28px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.06), 0 4px 16px rgba(20, 24, 28, 0.05);
  --shadow-md: 0 10px 40px rgba(20, 24, 28, 0.10);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-sans);
  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 { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.18; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

/* 焦点可见（无障碍） */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: var(--on-dark); }

/* 板块标题 */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4.4vw, 46px);
  margin-bottom: 16px;
}
.section-head p { color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 18px); }
.section--deep .section-head p { color: rgba(244, 243, 239, 0.75); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ondark { background: #fff; color: var(--ink); }
.btn--ondark:hover { background: var(--accent-soft); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 顶部导航 ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px;
}
.brand small { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink-soft); position: relative; padding-block: 6px; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header__cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, rgba(47, 93, 80, 0.18), transparent 55%),
    linear-gradient(180deg, #eef1ee 0%, #f6f5f1 60%, #ffffff 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(60% 60% at 75% 30%, rgba(47, 93, 80, 0.12), transparent 70%),
    linear-gradient(120deg, #dfe6e2 0%, #eef0ec 40%, #f7f6f2 100%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M0 39h40M39 0v40' stroke='%2316181d' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
  opacity: 0.6;
}
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 720px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent-ink); margin-bottom: 22px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: clamp(34px, 6vw, 66px); letter-spacing: -0.02em; margin-bottom: 20px; }
.hero h1 .em { color: var(--accent); }
.hero__sub { font-size: clamp(16px, 1.7vw, 20px); color: var(--ink-soft); margin-bottom: 34px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  margin-top: clamp(40px, 6vw, 64px);
  display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px);
}
.hero__stat .num { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.hero__stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }
.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 12px; letter-spacing: 0.18em; color: var(--muted); text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 1;
}
.hero__scroll::after { content: ""; width: 1px; height: 34px; background: var(--muted); animation: scrolldown 1.8s var(--ease) infinite; }
@keyframes scrolldown { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- 产品系列 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-card__media { aspect-ratio: 4 / 3; position: relative; }
.product-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__no { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.product-card h3 { font-size: 20px; }
.product-card__desc { color: var(--ink-soft); font-size: 14.5px; flex: 1; }
.product-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: 12px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); padding: 5px 11px; border-radius: 999px;
}
.product-card__link { margin-top: 6px; font-weight: 600; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; }

/* ---------- 图片占位（待替换真实素材） ---------- */
.media {
  width: 100%; height: 100%;
  background:
    linear-gradient(135deg, #e9ede9 0%, #f3f1ec 100%);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
}
.media::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(135deg, rgba(47,93,80,0.06), transparent 60%);
}
.media__label {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 13px; text-align: center; padding: 16px;
}
.media__label svg { width: 30px; height: 30px; opacity: 0.5; }
.media--hero { background: linear-gradient(135deg, #d8e2dc 0%, #eef0ea 50%, #f6f4ee 100%); }

/* ---------- 双栏特性（大图 + 文案） ---------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(48px, 7vw, 88px); }
.feature--rev .feature__media { order: 2; }
.feature__media { aspect-ratio: 5 / 4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.feature__body h3 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 14px; }
.feature__body p { color: var(--ink-soft); margin-bottom: 18px; }
.feature__list { display: flex; flex-direction: column; gap: 12px; }
.feature__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.feature__list .ic { color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- 应用场景 ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--gap);
}
.app-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.4;
  border: 1px solid var(--line);
}
.app-card .media { position: absolute; inset: 0; }
.app-card__overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, transparent 30%, rgba(20,24,28,0.72) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; color: #fff;
}
.app-card__overlay .k { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.app-card__overlay h3 { font-size: 19px; margin-top: 4px; color: #fff; }
.app-card__overlay p { font-size: 13px; opacity: 0.85; margin-top: 6px; }

/* ---------- 服务流程 ---------- */
.process { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.step {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; position: relative;
}
.step__no {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 19px; margin-bottom: 18px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }
.step__link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--accent); }

/* ---------- 品牌实力数据带 ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.stats-band .num { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.stats-band .label { color: rgba(244,243,239,0.72); font-size: 14px; margin-top: 6px; }

/* ---------- 关于我们 ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__media { aspect-ratio: 4 / 3.4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.about__body h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 18px; }
.about__body p { color: var(--ink-soft); margin-bottom: 16px; }
.about__points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.about__point { display: flex; gap: 12px; align-items: flex-start; }
.about__point .ic { color: var(--accent); flex: none; margin-top: 2px; }
.about__point b { display: block; font-size: 15px; }
.about__point span { font-size: 13.5px; color: var(--muted); }

/* ---------- 联系方式 ---------- */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 56px); }
.contact__info { display: flex; flex-direction: column; gap: 22px; }
.contact__item { display: flex; gap: 14px; align-items: flex-start; }
.contact__item .ic {
  width: 42px; height: 42px; flex: none; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center;
}
.contact__item b { display: block; font-size: 15px; }
.contact__item span { color: var(--muted); font-size: 14px; }
.contact__form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 110px; }
.field .err { color: #c0392b; font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.form-success {
  display: none; text-align: center; padding: 30px 10px;
}
.form-success.show { display: block; }
.form-success .ic {
  width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  display: grid; place-items: center; margin: 0 auto 16px;
}

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-deep); color: var(--on-dark); padding-block: clamp(48px, 6vw, 76px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gap); }
.footer h4 { font-size: 14px; letter-spacing: 0.06em; margin-bottom: 16px; opacity: 0.95; }
.footer a { color: rgba(244,243,239,0.72); font-size: 14px; display: block; padding-block: 5px; transition: color 0.2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__brand p { color: rgba(244,243,239,0.65); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer__bottom {
  margin-top: clamp(36px, 5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px;
  color: rgba(244,243,239,0.6); font-size: 13px;
}

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .feature, .about, .contact { grid-template-columns: 1fr; }
  .feature--rev .feature__media { order: 0; }
  .process { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px clamp(20px,5vw,40px) 18px;
  }
  .nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open a::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .about__points { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
  .btn:hover { transform: none; }
  .product-card:hover { transform: none; }
}

/* ---------- 语言切换器 ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; margin-right: 6px; }
.lang-switch button {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 5px 11px; transition: all 0.2s var(--ease);
}
.lang-switch button:hover { color: var(--ink); border-color: var(--ink); }
.lang-switch button.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 加载占位 */
.skeleton { color: var(--muted); padding: 40px 0; text-align: center; }
