/* =========================================================
   艾克酒店用品官网 — 全站唯一样式表
   依据 docs/design-spec.md；变量集中于 :root，全站无硬编码色值
   ========================================================= */

:root {
  /* —— 品牌 —— */
  --primary:        #1F3D52;
  --primary-dark:   #16303F;
  --primary-deep:   #0F2430;
  --primary-tint:   #E8EEF3;
  --gold:           #C3A368;
  --gold-deep:      #7A5F31;
  --gold-tint:      #F5EFE0;
  --bg-beige:       #F7F3EA;

  /* —— 中性色阶 —— */
  --n-0:   #FFFFFF;
  --n-50:  #FAF8F3;
  --n-100: #F2EEE6;
  --n-200: #E3DDD1;
  --n-300: #CFC7B8;
  --n-400: #A89E8D;
  --n-500: #877D6D;
  --n-600: #6E6558;
  --n-700: #4A453D;
  --n-800: #33302A;
  --n-900: #211F1B;

  /* —— 语义色 —— */
  --success:      #1E7A46;  --success-bg: #E7F3EC;  --success-border: #BFE0CD;
  --warning:      #8A5A00;  --warning-bg: #FBF3DF;  --warning-border: #EBD9A8;
  --danger:       #B3261E;  --danger-bg:  #FBECEA;  --danger-border:  #F0CCC8;
  --info:         #1F3D52;  --info-bg:    #E8EEF3;  --info-border:    #C9D6DF;

  /* —— 专用 —— */
  --whatsapp:      #0F7A5F;
  --whatsapp-dark: #0C6851;

  /* —— 阴影 / 圆角 —— */
  --shadow-1: 0 1px 2px rgba(33,31,27,.06);
  --shadow-2: 0 4px 16px rgba(33,31,27,.10);
  --shadow-3: 0 8px 24px rgba(33,31,27,.14);
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 12px;

  /* —— 字族 —— */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "PingFang TC", "PingFang HK",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong",
    "Noto Serif SC", "Noto Serif TC", "SimSun", serif;

  /* —— 间距刻度 —— */
  --sp-1: 4px;  --sp-2: 8px;   --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px;  --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --nav-h: 72px;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--n-800);
  background: var(--n-0);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; color: var(--n-900); line-height: 1.25; }
h1 { font-size: 44px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 32px; font-weight: 700; line-height: 1.25; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.35; }
h4 { font-size: 18px; font-weight: 600; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--gold); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(1140px, 100% - 48px); margin-inline: auto; }
.section { padding-block: 96px; }
.bg-beige { background: var(--bg-beige); }

/* 眉标 */
.eyebrow {
  font-family: var(--font-serif);
  font-size: 13px; font-weight: 500; letter-spacing: .12em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }

/* 区块头：眉标 → 标题 → 导语 → 内容 */
.sec-head { margin-bottom: 40px; }
.sec-head p.lead { margin-top: var(--sp-4); font-size: 16px; color: var(--n-600); max-width: 720px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 32px;
  border: none; border-radius: var(--radius-m);
  font-family: inherit; font-size: 16px; font-weight: 600; letter-spacing: .02em;
  line-height: 1; cursor: pointer; text-align: center;
  white-space: nowrap; text-decoration: none;
  transition: background-color .2s, box-shadow .2s, transform .1s, border-color .2s, color .2s;
}
.btn-primary { background: var(--primary); color: var(--n-0); }
.btn-primary:hover { background: var(--primary-dark); box-shadow: var(--shadow-2); }
.btn-primary:active { background: var(--primary-deep); transform: translateY(1px); }
.btn-primary:disabled { background: var(--n-300); color: var(--n-0); cursor: not-allowed; box-shadow: none; }

.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-secondary:hover { background: var(--primary-tint); }
.btn-secondary:active { background: var(--primary); color: var(--n-0); transform: translateY(1px); }
.btn-secondary:disabled { border-color: var(--n-300); color: var(--n-400); cursor: not-allowed; background: transparent; }

.btn-hero-secondary { background: transparent; color: var(--n-0); border: 1.5px solid rgba(255,255,255,.85); }
.btn-hero-secondary:hover { background: rgba(255,255,255,.15); }

.btn-whatsapp { background: var(--whatsapp); color: var(--n-0); height: 52px; width: 100%; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-block { display: flex; width: 100%; }

.btn-sm { min-height: 36px; padding: 8px 18px; font-size: 14px; }

.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.spinner {
  width: 16px; height: 16px; flex: none;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow { font-weight: 600; font-size: 14px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 导航 ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--n-0); border-bottom: 1px solid var(--n-200);
  transition: height .2s, box-shadow .2s;
  height: var(--nav-h);
}
.site-nav.is-scrolled { --nav-h: 64px; height: 64px; box-shadow: var(--shadow-1); }
.nav-inner {
  height: var(--nav-h); display: flex; align-items: center; gap: var(--sp-5);
}
.brand {
  font-size: 20px; font-weight: 700; color: var(--primary);
  letter-spacing: .02em; line-height: 1; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.brand .brand-en { font-family: var(--font-serif); font-weight: 500; }
.brand img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 6px 16px; font-size: 16px; font-weight: 500; color: var(--n-700);
  border-bottom: 2px solid transparent; border-radius: 0;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); border-bottom-color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* 语言切换器 */
.lang-switch {
  display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid var(--n-300); border-radius: var(--radius-s);
  background: var(--n-0);
}
.lang-switch button {
  min-height: 32px; padding: 4px 12px; border: none; border-radius: 3px;
  background: transparent; color: var(--n-600);
  font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1;
  cursor: pointer; position: relative;
}
.lang-switch button::after { /* 透明热区扩展至 ≥44px */
  content: ''; position: absolute; inset: -6px -4px;
}
.lang-switch button[aria-pressed="true"] { background: var(--primary); color: var(--n-0); }
.lang-switch button:hover:not([aria-pressed="true"]) { color: var(--primary); }

/* 汉堡 */
.hamburger {
  display: none; width: 44px; height: 44px; flex: none;
  background: transparent; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--n-800); transition: transform .25s, opacity .2s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 抽屉 */
.drawer-mask {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15,36,48,.5);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.drawer-mask.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 210;
  width: min(300px, 84vw); background: var(--n-0);
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: var(--sp-5);
  overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer .lang-switch { width: 100%; margin-bottom: var(--sp-5); }
.drawer .lang-switch button { flex: 1; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a {
  display: flex; align-items: center; min-height: 52px;
  font-size: 16px; font-weight: 500; color: var(--n-800);
  border-bottom: 1px solid var(--n-100);
}
.drawer .btn { margin-top: auto; }
body.drawer-open { overflow: hidden; }

/* ---------- Hero（首页） ---------- */
.hero {
  position: relative; min-height: 560px;
  display: flex; align-items: center;
  background-image:
    linear-gradient(105deg, rgba(15,36,48,.82) 0%, rgba(15,36,48,.55) 55%, rgba(15,36,48,.28) 100%),
    url('../img/hero-home.webp');
  background-size: cover; background-position: center;
  color: var(--n-0);
}
.hero-inner { padding-block: 80px; }
.hero-content { max-width: 660px; }
.hero h1 { color: var(--n-0); margin: 16px 0 0; }
.hero .hero-sub {
  margin-top: 24px; max-width: 620px;
  font-size: 18px; line-height: 1.75; color: rgba(255,255,255,.92);
}
.hero-actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-primary:hover { background: var(--primary-dark); }
.trust-bar {
  margin-top: 40px; padding-top: 32px;
  border-top: 1px solid rgba(195,163,104,.45);
  font-size: 14px; color: rgba(255,255,255,.9);
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
}
.trust-bar .dot { color: var(--gold); }

/* ---------- 内页简版 Hero ---------- */
.page-hero { background: var(--bg-beige); padding-block: 64px; border-left: none; }
.page-hero-inner { border-left: 4px solid var(--gold); padding-left: 24px; }
.page-hero h1 { font-size: 32px; }
.page-hero p { margin-top: 8px; font-size: 15px; color: var(--n-600); }
.page-hero .ph-note { margin-top: 16px; font-size: 13px; color: var(--n-600); }

/* ---------- 三优势 ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.adv-card .adv-num {
  font-family: var(--font-serif); font-size: 28px; color: var(--gold-deep); line-height: 1;
}
.adv-card h3 { margin-top: 16px; }
.adv-card p { margin-top: 12px; font-size: 15px; line-height: 1.75; color: var(--n-700); }

/* ---------- 品类入口卡 ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.cat-card {
  display: flex; flex-direction: column;
  background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-m);
  overflow: hidden; text-decoration: none;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.cat-card:hover { box-shadow: var(--shadow-2); border-color: var(--gold); transform: translateY(-2px); }
.cat-card .ph { aspect-ratio: 4/3; background: var(--n-100); overflow: hidden; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; }
.cat-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.cat-card h3 { font-size: 16px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .desc { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--n-600);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-card .more { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); }

/* ---------- Logo 文字牌墙 ---------- */
.logo-group + .logo-group { margin-top: 48px; }
.logo-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--n-700); margin-bottom: 16px;
}
.logo-group-title::before { content: ''; width: 3px; height: 14px; background: var(--gold); }
.logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.logo-card {
  background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-m);
  padding: 28px 24px; min-height: 140px;
  display: flex; flex-direction: column; justify-content: center;
  transition: border-color .25s;
}
.logo-card::before {
  content: ''; width: 24px; height: 2px; background: var(--gold);
  transition: width .25s; margin-bottom: 16px;
}
.logo-card:hover { border-color: var(--gold); }
.logo-card:hover::before { width: 40px; }
.logo-card .cn { font-size: 18px; font-weight: 600; color: var(--n-900); letter-spacing: .02em; line-height: 1.3; }
.logo-card .en {
  margin-top: 6px; font-family: var(--font-serif); font-size: 13px; font-weight: 500;
  letter-spacing: .14em; color: var(--n-600); text-transform: uppercase; line-height: 1.4;
}
.logo-card .group { margin-top: 12px; font-size: 12px; color: var(--n-600); line-height: 1.5; }
.logo-note { margin-top: 16px; font-size: 13px; color: var(--n-600); }
.logo-cta { margin-top: 32px; }

/* ---------- 案例卡 ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-m);
  overflow: hidden; transition: box-shadow .2s;
}
.case-card:hover { box-shadow: var(--shadow-2); }
.case-card .ph { aspect-ratio: 3/2; background: var(--n-100); overflow: hidden; }
.case-card img { width: 100%; height: 100%; object-fit: cover; }
.case-card .body { padding: 24px; }
.case-card h3 { font-size: 20px; font-weight: 600; }
.case-card .en-name {
  margin-top: 4px; font-family: var(--font-serif); font-size: 12px; font-weight: 500;
  letter-spacing: .12em; color: var(--n-600); text-transform: uppercase;
}
.case-card .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tag {
  display: inline-block; background: var(--primary-tint); color: var(--primary);
  font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: var(--radius-s);
}
.case-card .endorse { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--n-700);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* 案例页纵向列表卡 */
.case-list { display: flex; flex-direction: column; gap: 24px; }
.case-row {
  display: grid; grid-template-columns: 40% 60%;
  background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-m);
  overflow: hidden; transition: box-shadow .2s;
}
.case-row:hover { box-shadow: var(--shadow-2); }
.case-row .ph { background: var(--n-100); min-height: 240px; }
.case-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.case-row .body { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.case-row .endorse { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--n-700); }

/* ---------- 产品卡 ---------- */
.series-block + .series-block { border-top: 1px solid var(--n-200); }
.series-block { scroll-margin-top: 140px; }
.series-head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 48px; }
.series-head .ph { aspect-ratio: 3/2; border-radius: var(--radius-l); overflow: hidden; background: var(--n-100); }
.series-head .ph img { width: 100%; height: 100%; object-fit: cover; }
.series-head h2 { margin-top: 0; }
.series-head .intro { margin-top: 16px; font-size: 16px; color: var(--n-700); }
.series-head .anchor-target { scroll-margin-top: 140px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-m);
  overflow: hidden; transition: box-shadow .2s; position: relative;
}
.product-card:hover { box-shadow: var(--shadow-2); }
.product-card .ph { aspect-ratio: 1/1; background: var(--n-100); overflow: hidden; cursor: zoom-in; }
.product-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 16px; }
.product-card h3 { font-size: 15px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .spec { margin-top: 6px; font-size: 13px; line-height: 1.6; color: var(--n-600);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .zoom-ico {
  position: absolute; right: 12px; bottom: 12px; width: 24px; height: 24px;
  display: none; align-items: center; justify-content: center;
  color: var(--primary);
}
.product-card:hover .zoom-ico { display: flex; }

/* 系列锚点条 */
.anchor-bar {
  position: sticky; top: 64px; z-index: 90;
  background: var(--n-0); border-bottom: 1px solid var(--n-200); height: 56px;
}
.anchor-bar-inner { height: 56px; display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.anchor-bar-inner::-webkit-scrollbar { display: none; }
.anchor-bar a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  font-size: 14px; font-weight: 500; color: var(--n-700); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.anchor-bar a:hover { color: var(--primary); }
.anchor-bar a.is-active { color: var(--primary); border-bottom-color: var(--gold); }
.anchor-bar .btn { margin-left: auto; flex: none; }

/* ---------- 灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,36,48,.82);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(720px, 92vw); max-height: 86vh; border-radius: var(--radius-m); background: var(--n-100); }
.lightbox .lb-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: var(--n-0);
  border: none; font-size: 22px; cursor: pointer; line-height: 1;
}

/* ---------- 表单 ---------- */
.contact-layout { display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: start; }
.form-note { font-size: 13px; color: var(--n-600); margin-bottom: 24px; }
.field { margin-bottom: 24px; }
.field label {
  display: block; font-size: 14px; font-weight: 600; color: var(--n-800); margin-bottom: 8px;
}
.field .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--n-0); border: 1px solid var(--n-300); border-radius: var(--radius-s);
  font-family: inherit; font-size: 16px; color: var(--n-800); line-height: 1.5;
}
.input::placeholder, .textarea::placeholder { color: var(--n-500); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,61,82,.15);
}
.input.is-invalid, .select.is-invalid, .textarea.is-invalid {
  border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,38,30,.12);
}
.select { appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%2333302A' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.textarea { min-height: 120px; resize: vertical; }
.char-count { display: block; text-align: right; font-size: 12px; color: var(--n-600); margin-top: 4px; }

.field-error {
  display: none; margin-top: 6px;
  font-size: 13px; color: var(--danger); line-height: 1.5;
  align-items: flex-start; gap: 6px;
}
.field-error::before { content: '!'; flex: none;
  width: 14px; height: 14px; margin-top: 3px;
  border-radius: 50%; background: var(--danger); color: var(--n-0);
  font-size: 10px; font-weight: 700; line-height: 14px; text-align: center; }
.field.has-error .field-error { display: flex; }

/* 品类多选 chips */
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 10px 16px;
  background: var(--n-0); border: 1px solid var(--n-300); border-radius: var(--radius-s);
  font-size: 14px; color: var(--n-800); cursor: pointer; line-height: 1.2;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip .tick { display: none; width: 16px; height: 16px; flex: none; }
.chip input:checked + .chip-box, .chip-box.checked { border-color: var(--primary); background: var(--primary-tint); color: var(--primary); font-weight: 600; }
.chip-box { display: inline-flex; align-items: center; gap: 8px; }
.chip-box .tick { display: none; }
.chip input:checked + .chip-box .tick, .chip-box.checked .tick { display: inline-block; }
.chip input:focus-visible ~ .chip-box { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 提交区 */
.form-actions { margin-top: 32px; }
.form-privacy { margin-top: 12px; font-size: 13px; color: var(--n-600); }

/* alert 条 */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-s);
  font-size: 14px; line-height: 1.6; margin-bottom: 24px;
}
.alert-danger { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.alert .ico { flex: none; font-weight: 700; }
.alert[hidden] { display: none; }

/* 成功面板 */
.success-panel {
  background: var(--success-bg); border: 1px solid var(--success-border);
  border-radius: var(--radius-m); padding: 40px 32px; text-align: center;
}
.success-panel .check {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--success); color: var(--n-0);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.success-panel h3 { font-size: 18px; font-weight: 600; color: var(--n-900); }
.success-panel p { margin-top: 8px; font-size: 15px; color: var(--n-700); }
.success-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.success-actions .btn { min-height: 48px; }
.success-actions .btn-call { border: 1.5px solid var(--success); color: var(--success); background: transparent; }
.success-actions .btn-call:hover { background: rgba(30,122,70,.08); }

/* ---------- 直连卡 ---------- */
.direct-card {
  background: var(--bg-beige); border-radius: var(--radius-l); padding: 32px;
}
.direct-card .wa-note { margin-top: 10px; font-size: 13px; line-height: 1.6; color: var(--n-600); }
.direct-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.direct-item { display: flex; gap: 14px; align-items: flex-start; }
.direct-item .ico-box {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-m);
  background: var(--primary-tint); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.direct-item .ico-box svg { width: 20px; height: 20px; }
.direct-item .lbl { font-size: 13px; color: var(--n-600); line-height: 1.4; }
.direct-item .val { font-size: 15px; font-weight: 600; color: var(--n-900); line-height: 1.5; word-break: break-word; }
a.direct-item { text-decoration: none; border-radius: var(--radius-s); }
a.direct-item:hover .val { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

.person-card { display: flex; gap: 16px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--n-200); }
.person-avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--primary); color: var(--n-0);
  font-family: var(--font-serif); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.person-meta .nm { font-size: 17px; font-weight: 600; color: var(--n-900); line-height: 1.4; }
.person-meta .tt, .person-meta .co { font-size: 13px; color: var(--n-600); line-height: 1.5; }

.qr-box {
  width: 242px; padding: 16px; margin-top: 32px;
  border: 2px dashed var(--n-300); border-radius: var(--radius-m);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 242px; text-align: center; background: var(--n-0);
}
.qr-box svg { width: 24px; height: 24px; color: var(--n-400); }
.qr-box .hint { font-size: 14px; color: var(--n-500); line-height: 1.5; }
.qr-caption { margin-top: 12px; font-size: 13px; color: var(--n-600); line-height: 1.6; }
.region-note { margin-top: 24px; font-size: 13px; color: var(--n-600); line-height: 1.7; }

/* ---------- CTA 横幅 ---------- */
.cta-banner { background: var(--primary); color: var(--n-0); padding-block: 80px; position: relative; }
.cta-banner .container { position: relative; text-align: center; }
.cta-banner::before, .cta-banner::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 1px; height: 64px; background: rgba(195,163,104,.35);
}
.cta-banner::before { left: max(24px, calc((100% - 1140px) / 2 - 48px)); }
.cta-banner::after { right: max(24px, calc((100% - 1140px) / 2 - 48px)); }
.cta-banner h2 { color: var(--n-0); }
.cta-banner .cta-body { margin: 16px auto 0; max-width: 640px; font-size: 16px; color: rgba(255,255,255,.88); }
.cta-banner .cta-actions { margin-top: 32px; display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.btn-invert { background: var(--n-0); color: var(--primary); }
.btn-invert:hover { background: var(--bg-beige); }
.cta-banner .phone-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; font-size: 15px; }
.cta-banner .phone-link:hover { color: #D8BC85; }
.cta-banner.cta-compact { padding-block: 56px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--primary-dark); color: var(--n-0); padding-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 48px; }
.site-footer .brand { color: var(--n-0); }
.footer-desc { margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--n-200); }
.footer-col h4 { color: var(--n-0); font-size: 14px; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.85); font-size: 14px; line-height: 1.8; }
.footer-col a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { color: rgba(255,255,255,.85); font-size: 14px; line-height: 2; white-space: pre-line; }
.footer-bottom { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.6); }

/* ---------- 悬浮 FAB ---------- */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 950;
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--primary); color: var(--n-0);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: none; cursor: pointer; text-decoration: none;
  box-shadow: var(--shadow-3);
  overflow: hidden; white-space: nowrap;
  transition: width .25s, padding .25s, background-color .2s;
  opacity: 1;
}
.fab.fab-enter { opacity: 0; }
.fab svg { width: 24px; height: 24px; flex: none; }
.fab .fab-text {
  max-width: 0; opacity: 0; overflow: hidden;
  font-size: 16px; font-weight: 600; line-height: 1;
  transition: max-width .25s, opacity .25s;
}
.fab:hover { background: var(--primary-dark); }
.fab:hover { width: auto; padding: 0 24px; }
.fab:hover .fab-text { max-width: 200px; opacity: 1; margin-right: 0; }
body.no-fab .fab { display: none; }

/* ---------- 关于页 ---------- */
.about-section + .about-section { border-top: 1px solid var(--n-200); }
.about-two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about-body { font-size: 16px; line-height: 1.9; color: var(--n-800); margin-top: 24px; max-width: 760px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 40px; }
.cap-item h3 { font-size: 18px; }
.cap-item p { margin-top: 8px; font-size: 14px; color: var(--n-700); }
.cert-box {
  margin-top: 24px; padding: 24px; border: 1px solid var(--n-200); border-radius: var(--radius-m);
  background: var(--n-50); font-size: 15px; color: var(--n-700);
}
.cover-figure { margin: 24px 0 0; }
.cover-figure img { border-radius: var(--radius-l); width: 100%; height: auto; }
.cover-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--n-600); }

/* ---------- Admin ---------- */
.admin-wrap { width: calc(100% - 48px); margin-inline: auto; padding-block: 48px 64px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.admin-top h1 { font-size: 20px; font-weight: 600; }
.admin-token-panel { max-width: 460px; margin: 48px auto 0; }
.admin-token-panel .field { margin-bottom: 16px; }
.admin-hint { font-size: 13px; color: var(--n-600); margin-top: 12px; }
.table-wrap { overflow-x: auto; background: var(--n-0); border: 1px solid var(--n-200); border-radius: var(--radius-m); }
table.inq-table { border-collapse: collapse; width: 100%; min-width: 900px; }
.inq-table th {
  background: var(--n-100); font-size: 13px; font-weight: 600; color: var(--n-800);
  text-align: left; padding: 10px 12px; white-space: nowrap;
}
.inq-table td { font-size: 13px; color: var(--n-800); padding: 10px 12px; border-top: 1px solid var(--n-200); vertical-align: top; }
.inq-table td.nowrap { white-space: nowrap; }
.inq-table td.remarks { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-empty { padding: 64px 0; text-align: center; font-size: 13px; color: var(--n-600); }

/* ---------- 404 ---------- */
.e404 { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.e404 .inner { margin-inline: auto; }
.e404 .code { font-family: var(--font-serif); font-size: 72px; color: var(--gold-deep); line-height: 1; }
.e404 h1 { margin-top: 16px; }
.e404 p { margin-top: 8px; color: var(--n-600); }
.e404 .btn { margin-top: 32px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 1023px) {
  .container { width: min(900px, 100% - 48px); }
  .section { padding-block: 72px; }
  h1 { font-size: 38px; } h2 { font-size: 28px; }
  .hero-content { max-width: 75%; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .direct-card { order: -1; } /* 平板/手机直连卡置顶由移动规则处理；桌面保持表单优先 */
  .about-two-col { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .series-head { grid-template-columns: 1fr; gap: 24px; }
  .fab:hover { width: 56px; padding: 0; } /* 平板不展开 */
  .fab:hover .fab-text { max-width: 0; opacity: 0; }
}
@media (max-width: 819px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .container { width: calc(100% - 40px); }
  .section { padding-block: 56px; }
  h1 { font-size: 30px; } h2 { font-size: 26px; } h3 { font-size: 19px; }
  .hero { min-height: 480px; background-image:
    linear-gradient(rgba(15,36,48,.78), rgba(15,36,48,.78)),
    url('../img/hero-home.webp'); }
  .hero .hero-inner { padding-block: 56px; }
  .hero .hero-sub { font-size: 17px; }
  .hero-content { max-width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .trust-bar { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; }
  .trust-bar .dot { display: none; }
  .page-hero { padding-block: 40px; }
  .page-hero h1 { font-size: 26px; }
  .adv-grid { grid-template-columns: 1fr; gap: 40px; }
  .cat-grid { grid-template-columns: 1fr; gap: 16px; }
  .logo-grid { grid-template-columns: 1fr; gap: 16px; }
  .logo-card { min-height: 150px; }
  .case-grid { grid-template-columns: 1fr; gap: 16px; }
  .case-row { grid-template-columns: 1fr; }
  .case-row .ph { min-height: 0; aspect-ratio: 3/2; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cap-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-banner { padding-block: 56px; }
  .cta-banner .cta-actions { flex-direction: column; }
  .cta-banner .cta-actions .btn { width: 100%; }
  .cta-banner::before, .cta-banner::after { display: none; }
  .fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .fab:hover { width: 56px; padding: 0; }
  .fab:hover .fab-text { max-width: 0; opacity: 0; }
  .success-panel { padding: 32px 20px; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }
  .direct-card { padding: 24px; }
  .qr-box { margin-inline: auto; }
  .admin-wrap { width: calc(100% - 40px); }
  /* 窄屏品牌缩短为 AIKE，防导航溢出（线框 9.2「AIKE艾克」形态） */
  .brand-cn { display: none; }
  .nav-inner { gap: var(--sp-3); }
}

/* 锚点条吸顶避让（滚动后导航 64px） */
@media (min-width: 1024px) {
  .anchor-bar { top: 64px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cat-card:hover, .btn:active { transform: none; }
  .fab { transition: none; }
}
