/* ============================================================
   咖鑫电器 官网 — 全站样式
   设计令牌：咖啡棕为主色（行业属性）+ 金色点缀（品质感）
   8px 栅格 / 1200px 容器 / 移动端单列
   ============================================================ */

:root {
  /* 品牌色 */
  --brand-900: #2e1f16;
  --brand-800: #3e2c23;
  --brand-700: #553b2b;
  --brand-600: #6f4e37;
  --brand-500: #8a6549;
  --brand-100: #f0e7df;
  --brand-50: #faf7f4;

  /* 点缀色 */
  --accent: #c89b3c;
  --accent-dark: #a97f28;

  /* 中性 */
  --ink: #1f1b18;
  --ink-2: #5a514c;
  --ink-3: #8b817b;
  --line: #e8e2dc;
  --line-soft: #f2ede8;
  --bg: #ffffff;
  --bg-soft: #faf7f4;
  --white: #fff;

  /* 语义 */
  --success: #2f7a4d;
  --warning: #b8730f;
  --danger: #c0392b;

  /* 尺寸 */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --container: 1200px;
  --nav-h: 68px;

  /* 阴影 */
  --shadow-sm: 0 1px 3px rgba(46, 31, 22, 0.06);
  --shadow: 0 4px 16px rgba(46, 31, 22, 0.08);
  --shadow-lg: 0 12px 40px rgba(46, 31, 22, 0.14);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
p { margin: 0; }

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

/* ---------------- 顶部条 ---------------- */
.topbar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  gap: 16px;
}
.topbar a { color: rgba(255, 255, 255, 0.82); }
.topbar a:hover { color: var(--accent); }
.topbar-right { display: flex; gap: 20px; align-items: center; }

/* ---------------- 导航 ---------------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
}
.logo-text strong { display: block; font-size: 16px; line-height: 1.2; }
.logo-text span { display: block; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-2);
  transition: 0.18s;
}
.nav-links a:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-links a.active { color: var(--brand-700); font-weight: 600; background: var(--brand-50); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: var(--brand-800);
  transition: 0.2s;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.18s;
  font-family: inherit;
}
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: var(--brand-800); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink-2); background: var(--white); }
.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn-light { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.6); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(200, 155, 60, 0.16), transparent 60%),
    linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 55%, var(--brand-600) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 155, 60, 0.2), transparent 65%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.22;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 560px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}
.hero-card h3 { font-size: 16px; margin-bottom: 16px; color: var(--accent); }
.hero-card li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-card li:last-child { border-bottom: 0; }
.hero-card li b { color: #fff; font-weight: 600; }

/* ---------------- 数据条 ---------------- */
.stats { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 32px;
  padding-bottom: 32px;
}
.stat { text-align: center; padding: 8px; }
.stat b {
  display: block;
  font-size: 30px;
  color: var(--brand-700);
  line-height: 1.2;
  font-weight: 800;
}
.stat span { font-size: 13px; color: var(--ink-2); }
.stat + .stat { border-left: 1px solid var(--line); }

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-dark);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 15px; }

/* ---------------- 卡片网格 ---------------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: 0.2s;
}
.card:hover { border-color: var(--brand-500); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card-icon img { width: 26px; height: 26px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14px; }

/* 产品卡 */
.product {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.2s;
  display: flex;
  flex-direction: column;
}
.product:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--brand-500); }
.product-media {
  height: 190px;
  background: linear-gradient(160deg, var(--brand-50), #efe6dc);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}
.product-media img { width: 96px; height: 96px; opacity: 0.85; }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-700);
  color: #fff;
  font-size: 12px;
}
.product-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 16px; margin-bottom: 4px; }
.product-model { font-size: 12px; color: var(--ink-3); margin-bottom: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.product-specs { display: grid; gap: 6px; margin-bottom: 14px; }
.product-specs div { display: flex; gap: 10px; font-size: 13px; }
.product-specs dt { color: var(--ink-3); min-width: 56px; }
.product-specs dd { margin: 0; color: var(--ink-2); }
.product-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; gap: 8px; }

/* ---------------- 流程步骤 ---------------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.step { position: relative; padding: 0 18px; text-align: center; }
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-700);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.step h4 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--ink-2); }
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}

/* ---------------- 认证徽章 ---------------- */
.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.cert {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.cert b { color: var(--brand-700); }

/* ---------------- 时间线 ---------------- */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--brand-100);
}
.timeline-year { font-size: 13px; color: var(--accent-dark); font-weight: 700; margin-bottom: 2px; }
.timeline-item h4 { font-size: 16px; margin-bottom: 6px; }
.timeline-item p { font-size: 14px; color: var(--ink-2); }

/* ---------------- 售后 / FAQ ---------------- */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { background: var(--brand-50); }
.faq-q::after {
  content: "+";
  color: var(--brand-600);
  font-size: 20px;
  font-weight: 400;
  transition: 0.2s;
}
.faq-item.open .faq-q::after { content: "−"; }
.faq-a {
  display: none;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--ink-2);
}
.faq-item.open .faq-a { display: block; }

/* 政策表 */
.policy-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.policy-table th, .policy-table td { padding: 13px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-soft); }
.policy-table th { background: var(--brand-50); font-weight: 600; color: var(--brand-800); }
.policy-table tr:last-child td { border-bottom: 0; }

/* ---------------- 联系 / 表单 ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.contact-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.contact-item .k { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.contact-item .v { font-size: 16px; font-weight: 600; color: var(--ink); }
.contact-item .v a { color: var(--brand-700); }
.contact-item .v a:hover { text-decoration: underline; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.1);
}
.field textarea { resize: vertical; min-height: 108px; }
.field-error { font-size: 12px; color: var(--danger); margin-top: 4px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .field-error { display: block; }
.form-tip { font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.form-msg { margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; display: none; }
.form-msg.ok { display: block; background: #eaf5ee; color: var(--success); border: 1px solid #c9e6d5; }
.form-msg.err { display: block; background: #fdecea; color: var(--danger); border: 1px solid #f6d3ce; }

/* ---------------- CTA 条 ---------------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand-800), var(--brand-600));
  color: #fff;
  padding: 52px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: 26px; margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.8); font-size: 15px; }

/* ---------------- 页脚 ---------------- */
.footer { background: var(--brand-900); color: rgba(255, 255, 255, 0.7); font-size: 14px; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 36px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer li { padding: 5px 0; }
.footer a:hover { color: var(--accent); }
.footer-brand p { margin-top: 14px; line-height: 1.8; font-size: 13px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------------- 页面内页头 ---------------- */
.page-head {
  background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
  color: #fff;
  padding: 56px 0 52px;
}
.page-head h1 { font-size: 34px; margin-bottom: 10px; }
.page-head p { color: rgba(255, 255, 255, 0.78); font-size: 15px; max-width: 640px; }
.breadcrumb { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------------- 提示条（占位内容声明） ---------------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid #f0dfae;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #7a5a12;
  margin-bottom: 24px;
}
.notice b { color: #6b4d0a; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 36px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px 0; }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 16px; }
  .nav-cta { display: none; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 15px; }
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 16px 0; }
  .stat:nth-child(3) { border-left: 0; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 24px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-head h1 { font-size: 26px; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .topbar .container { font-size: 12px; }
  .topbar-right span:last-child { display: none; }
}
