/* ============================================================
 * styles.css —— 黑橙主题设计系统
 * 色板：橙 #FF5A12 / 墨 #11100E / 米 #F5EFE5 / 暖白 #FFFDF8
 * ============================================================ */

:root {
  --ink: #11100e;
  --ink-deep: #0d0c0a;
  --ink-soft: #24211d;
  --cream: #f5efe5;
  --cream-strong: #ebe1d2;
  --white: #fffdf8;
  --orange: #ff5a12;
  --orange-dark: #d94605;
  --muted: #716a61;
  --muted-light: #c9c1b7;
  --line: rgba(17, 16, 14, 0.13);
  --line-dark: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(24, 18, 12, 0.13);
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ---------- 通用元素 ---------- */

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arrow { transition: transform 180ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 90, 18, 0.25);
}
.btn-primary:hover { background: var(--orange-dark); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }

.btn-outline {
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }

.section { padding-block: 88px; }
.section-dark { background: var(--ink); color: #fff; }
.section-cream { background: var(--cream); }
.section-white { background: var(--white); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.section-head p { margin: 0; color: var(--muted); }
.section-dark .section-head p { color: #a8a097; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 页头 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(17, 16, 14, 0.9);
  color: #fff;
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1; }
.brand-mark {
  color: var(--orange);
  font-size: 1.9rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.1em;
  transform: skew(-7deg);
}
.brand-copy { display: grid; gap: 3px; text-transform: uppercase; }
.brand-copy strong { font-size: 0.82rem; letter-spacing: 0.13em; }
.brand-copy small { color: #bdb5aa; font-size: 0.6rem; letter-spacing: 0.24em; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: #d8d1c7;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease;
}
.main-nav a:hover { color: var(--orange); }
.main-nav a.is-active { background: var(--orange); color: #fff; }
.main-nav a.is-active:hover { color: #fff; }

.nav-whatsapp {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-left: 8px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  color: #d8d1c7;
}
.nav-whatsapp:hover { border-color: var(--orange); color: var(--orange); }
.nav-whatsapp-label { display: none; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.menu-toggle span { width: 19px; height: 2px; border-radius: 999px; background: currentColor; }

/* ---------- Hero（首页） ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 860px);
  display: grid;
  align-items: center;
  background: linear-gradient(150deg, #171511 0%, #0c0b0a 62%, #20160f 100%);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 90, 18, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(13, 12, 10, 0.55), rgba(13, 12, 10, 0.82));
}
.hero-ring {
  position: absolute;
  right: -70px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255, 90, 18, 0.28);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 96px;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero-content .hero-sub {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--muted-light);
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* ---------- 首页分类卡 ---------- */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.category-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(24, 18, 12, 0.07);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 90, 18, 0.11);
  color: var(--orange);
}
.category-card h3 { margin: 6px 0 0; font-size: 1.25rem; letter-spacing: -0.02em; }
.category-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.category-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--orange);
  font-weight: 800;
  font-size: 0.9rem;
}
.category-link .arrow { transition: transform 180ms ease; }
.category-card:hover .category-link .arrow { transform: translateX(4px); }

/* ---------- 品牌优势（深色区） ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.feature-card::after {
  position: absolute;
  right: -48px;
  bottom: -65px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 90, 18, 0.33);
  border-radius: 50%;
  content: "";
}
.feature-card > span {
  color: var(--orange);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.feature-card h3 { margin: 52px 0 8px; font-size: 1.22rem; letter-spacing: -0.02em; }
.feature-card p { margin: 0; color: #aaa39a; font-size: 0.88rem; }

/* ---------- 分类页横幅 ---------- */

.cat-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 90, 18, 0.18), transparent 32%),
    linear-gradient(150deg, #171511 0%, #0c0b0a 62%, #20160f 100%);
  color: #fff;
}
.cat-banner::after {
  position: absolute;
  right: -60px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(255, 90, 18, 0.25);
  border-radius: 50%;
  content: "";
}
.cat-banner-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 300px;
  padding-block: 64px;
}
.cat-banner h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}
.cat-banner p { margin: 14px 0 0; color: var(--muted-light); max-width: 480px; }
.ghost-word {
  font-size: clamp(4.2rem, 11vw, 9.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.22);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  margin-right: -0.35em; /* 让空心字超出右缘，制造裁切感 */
}

/* ---------- 产品卡（含配色轮播） ---------- */

.products-section { background: var(--cream); }
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 14px 44px rgba(24, 18, 12, 0.08);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* 头图轮播区 */
.card-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  background:
    radial-gradient(circle at 72% 26%, rgba(255, 90, 18, 0.08), transparent 36%),
    linear-gradient(145deg, #efeae3, #e5ded2);
}
.stage-visual {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}
.stage-ghost {
  position: absolute;
  left: 14px;
  bottom: -0.18em;
  font-size: 6.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(17, 16, 14, 0.16);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}
.stage-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: contain;
  padding: 26px 14px 40px;
  transition: opacity 200ms ease;
}
.stage-img.is-fading { opacity: 0; }
.stage-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 16, 14, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.stage-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 16, 14, 0.82);
  color: #fff;
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}
.stage-arrow:hover { background: var(--orange); transform: translateY(-50%) scale(1.06); }
.stage-prev { left: 12px; }
.stage-next { right: 12px; }
.stage-dots {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.stage-dot {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease, outline-color 160ms ease;
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.stage-dot.is-active { outline-color: var(--orange); transform: scale(1.18); }

/* 头图区右侧规格速览 */
.stage-specs {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px 14px;
  border-left: 1px dashed rgba(17, 16, 14, 0.14);
  list-style: none;
  margin: 0;
}
.stage-specs li { display: flex; align-items: center; gap: 9px; }
.spec-icon {
  display: grid;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 90, 18, 0.12);
  color: var(--orange);
}
.stage-specs small { display: block; color: var(--muted); font-size: 0.6rem; line-height: 1.25; }
.stage-specs strong { display: block; font-size: 0.78rem; line-height: 1.25; letter-spacing: -0.01em; }

/* 卡片下半：型号 + 规格表 */
.card-body { padding: 24px 26px 26px; }
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.card-title-row h3 { margin: 0; font-size: 1.45rem; letter-spacing: -0.03em; }
.card-color {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.card-color::before {
  width: 11px;
  height: 11px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background: var(--color-dot, #ccc);
  content: "";
}
.card-tagline { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; }
.spec-table { margin-top: 16px; }
.spec-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--muted); }
.spec-row .v { font-weight: 700; text-align: right; }
.product-inquiry { width: 100%; margin-top: 22px; }

/* ---------- Sobre 页 ---------- */

.about-hero { min-height: 52vh; }
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.story-grid h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -0.04em; line-height: 1.1; }
.story-grid p { color: var(--muted); margin: 0 0 14px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stat-card {
  padding: 26px 22px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  text-align: center;
}
.stat-card strong { display: block; color: var(--orange); font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1.1; }
.stat-card span { color: #aaa39a; font-size: 0.85rem; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(24, 18, 12, 0.07);
}
.value-card h3 { margin: 14px 0 8px; font-size: 1.15rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Lojas 页 ---------- */

.page-banner {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: grid;
  align-items: center;
  color: #fff;
  background: var(--ink);
}
.page-banner .hero-bg { opacity: 0.45; }
.page-banner .banner-content { position: relative; z-index: 2; padding-block: 80px; }
.page-banner h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 800;
}
.page-banner p { margin: 14px 0 0; color: var(--muted-light); max-width: 520px; }

.stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stores-grid.single {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
.store-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 10px 34px rgba(24, 18, 12, 0.07);
}
.store-card h3 { margin: 0 0 4px; font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.3; }
.store-row { display: flex; gap: 12px; align-items: flex-start; }
.store-icon {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}
.store-row p { margin: 4px 0 0; font-size: 0.88rem; color: var(--ink-soft); font-weight: 600; line-height: 1.5; }
.store-row a { color: var(--ink-soft); font-weight: 700; font-size: 0.88rem; }
.store-row a:hover { color: var(--orange); }
.store-divider { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.store-hours { margin: 0; color: var(--muted); font-size: 0.84rem; }

/* ---------- 联系区 ---------- */

.contact-section { text-align: center; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

/* ---------- 页脚 ---------- */

.site-footer { background: var(--ink-deep); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-block: 56px 40px;
}
.footer-tagline { margin: 14px 0 0; color: #938c84; font-size: 0.88rem; max-width: 260px; }
.footer-col h4 {
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a, .footer-col li { color: #cfc8bf; font-size: 0.88rem; }
.footer-col a:hover { color: var(--orange); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #cfc8bf; }
.footer-contact svg { flex: 0 0 auto; margin-top: 3px; color: var(--orange); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px;
  border-top: 1px solid var(--line-dark);
  color: #938c84;
  font-size: 0.8rem;
}
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: var(--orange); }
.footer-privacy {
  margin: 0 0 26px;
  color: #6f695f;
  font-size: 0.72rem;
  max-width: 520px;
}

/* 响应式覆盖：单门店时移动端保持单卡 */
@media (max-width: 1020px) {
  .stores-grid.single { grid-template-columns: minmax(0, 480px); }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1020px) {
  .features-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid, .stores-grid, .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    background: #1b1916;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; }
  .nav-whatsapp {
    display: flex;
    width: auto;
    height: auto;
    margin: 4px 0 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    gap: 10px;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
  }
  .nav-whatsapp-label { display: inline; }
  .products-grid { grid-template-columns: 1fr; }
  .cat-banner-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 56px; }
  .ghost-word { font-size: clamp(3.4rem, 16vw, 6rem); margin-right: 0; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .categories-grid, .stores-grid, .values-grid, .features-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-stage { grid-template-columns: 1fr; }
  .stage-specs {
    grid-template-columns: repeat(2, 1fr);
    border-left: 0;
    border-top: 1px dashed rgba(17, 16, 14, 0.14);
    padding: 14px;
  }
  .hero-content { padding-block: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
