/* ══════════════════════════════════════════════════════════════
   CASSERON — Porsche 垂直站主题
   参照 YIHNGGENE 设计系统移植
   ──────────────────────────────────────────────────────────────
   设计特征:超粗字重(900) · 全大写 · 负字距 · 零圆角
             荧光红强调 · 编号式分区 · 大留白
   ══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0d0e;
  --surface: #14181a;
  --surface-2: #1a1f22;
  --border: #262c30;
  --text: #f2f4f5;
  --muted: #c6ccd2;
  --dim: #9aa3a9;

  --accent: #d6ff3f;
  --accent-dark: #b8e02b;
  --accent-ink: #0b0d0e;      /* 荧光底上的文字色 */
  --warn: #ff6b4a;

  --brand-primary: #d6ff3f;
  --brand-accent: #d6ff3f;
  --brand-bg: #0b0d0e;
  --brand-text: #f2f4f5;

  --font-head: "Alibaba PuHuiTi", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Alibaba PuHuiTi", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(40px, 5vw, 74px);
  --fs-h2: clamp(25px, 2.5vw, 37px);
  --fs-h3: clamp(17px, 1.4vw, 21px);

  --radius: 0px;
  --container: 1320px;
  --gap-section: clamp(60px, 7.5vw, 116px);
}

/* ── 全局 ── */
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

/* ── 标题:900 字重 + 大写 + 负字距 ── */
h1, h2, h3, h4, .hero-title, .section-title, .section__head h2, .card__name, .brand-page h1 {
  font-family: var(--font-head);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.99;
}
h1 { font-size: var(--fs-hero); }
h2, .section-title, .section__head h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; }

/* ── 小标签 ── */
.eyebrow {
  font-family: var(--font-head);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin: 0 0 14px;
}

/* ── 分区头(编号式)── */
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 40px; flex-wrap: wrap;
}
.section__head .section-title, .section__head h2 { margin: 0; }
.section__num {
  font-family: var(--font-head); font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; color: var(--dim);
  text-transform: uppercase; display: block; margin-bottom: 10px;
}
.link-arrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted);
  text-decoration: none; transition: color .2s; white-space: nowrap;
}
.link-arrow:hover { color: var(--accent); }

/* ── 按钮:直角 ── */
.btn, .card__btn, .pd__btn, button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 15px 28px; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
  cursor: pointer; text-decoration: none; transition: all .18s ease;
}
.btn:hover, .card__btn:hover, .pd__btn:hover, button[type=submit]:hover {
  background: var(--accent-dark); border-color: var(--accent-dark); filter: none;
}
.btn--ghost, .btn--outline {
  background: transparent; color: var(--text); border-color: rgba(242,244,245,0.3);
}
.btn--ghost:hover, .btn--outline:hover { background: rgba(255,255,255,0.05); border-color: var(--text); }

/* ── 顶栏 ── */
.topbar { background: var(--bg); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--dim); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 0; }
.topbar__links { display: flex; gap: 20px; }
.topbar__links a { color: var(--dim); text-decoration: none; text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; font-weight: 600; }
.topbar__links a:hover { color: var(--accent); }

/* ── 页头 ── */
.header { background: rgba(11,13,14,0.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; gap: 32px; padding: 16px 0; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav__link { font-family: var(--font-head); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); text-decoration: none; transition: color .18s; }
.nav__link:hover, .nav__link--active { color: var(--accent); }

/* ── 卡片 ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 0; box-shadow: none; }
.card:hover { border-color: var(--accent); }

/* ── 间距 ── */
.section { padding: var(--gap-section) 0; }
.section--tight { padding: calc(var(--gap-section) * 0.62) 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ══ Hero 全屏轮播 ══ */
.hero--full { position: relative; min-height: min(88vh, 780px); display: flex; align-items: center; overflow: hidden; background: var(--bg); }
.hero--full .hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity .8s ease; }
.hero--full .hero__bg.is-active { opacity: 1; }
.hero--full::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,13,14,0.96) 0%, rgba(11,13,14,0.78) 45%, rgba(11,13,14,0.38) 100%); }
.hero__inner { position: relative; z-index: 2; max-width: 720px; }
.hero-title { margin: 0 0 22px; }
.hero-text { color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0 0 34px; max-width: 520px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__nav { position: absolute; left: 28px; bottom: 40px; display: flex; gap: 8px; z-index: 3; }
.hero__nav button { width: 44px; height: 44px; background: transparent; border: 1px solid rgba(242,244,245,0.28); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .18s; border-radius: 0; padding: 0; }
.hero__nav button:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.hero__count { position: absolute; right: 28px; bottom: 40px; display: flex; align-items: center; gap: 14px; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); z-index: 3; }
.hero__bar { width: 130px; height: 2px; background: rgba(242,244,245,0.2); position: relative; }
.hero__bar span { position: absolute; left: 0; top: 0; height: 100%; background: var(--accent); transition: width .4s; }

/* ══ 分类卡片 ══ */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card { position: relative; display: block; aspect-ratio: 4/3.4; overflow: hidden; border: 1px solid var(--border); text-decoration: none; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.04); }
.cat-card::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,14,0.12) 0%, rgba(11,13,14,0.55) 55%, rgba(11,13,14,0.96) 100%); }
.cat-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; z-index: 2; }
.cat-card__num { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--accent); display: block; margin-bottom: 10px; }
.cat-card__title { font-family: var(--font-head); font-size: 19px; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; color: var(--text); margin: 0 0 8px; line-height: 1.1; }
.cat-card__text { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0 0 12px; }
.cat-card__more { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text); }

/* ══ 产品网格 ══ */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card { display: block; text-decoration: none; border: 1px solid var(--border); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.prod-card:hover { border-color: var(--accent); }
.prod-card__media { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--surface-2); }
.prod-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prod-card:hover .prod-card__media img { transform: scale(1.05); }
.prod-card__badge { position: absolute; top: 12px; left: 12px; background: var(--warn); color: #fff;
  font-family: var(--font-head); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; padding: 5px 9px; }
.prod-card__body { padding: 16px 16px 18px; }
.prod-card__title { font-family: var(--font-head); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em;
  color: var(--text); margin: 0 0 8px; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card__price { font-family: var(--font-head); font-size: 16px; font-weight: 900; color: var(--accent); }

/* ══ 信任栏 ══ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.trust-item__icon { color: var(--accent); margin-bottom: 14px; }
.trust-item__title { font-family: var(--font-head); font-size: 15px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 8px; }
.trust-item__text { color: var(--dim); font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ══ 工厂(图片版)══ */
.factory-photo { background: var(--surface); }

/* ══ 响应式 ══ */
@media (max-width: 1100px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero--full { min-height: 620px; }
  .hero__inner { max-width: 100%; }
  .section__head { flex-direction: column; align-items: flex-start; }
  .container { padding: 0 20px; }
}
