/* ============================================================
   大黄蜂 PENG FENG — 全局基础样式
   设计系统：CSS 变量 / reset / 字体 / 排版 / 按钮 / 栅格 / 工具类
   ============================================================ */

/* ---------- 设计令牌 Design Tokens ---------- */
:root {
  /* 品牌主色 —— 大黄蜂：墨黑 × 香槟金 */
  --bee-yellow: #E8B84A;      /* 香槟金（主色，更克制） */
  --bee-yellow-deep: #C9982E; /* 主色深 */
  --bee-yellow-soft: #F5D98A; /* 主色浅 */
  --bee-honey: #D4A017;       /* 琥珀金 强调/hover */
  --bee-black: #0A0A0A;       /* 近黑 主深色 */
  --bee-dark: #141414;        /* 深灰 */
  --bee-charcoal: #1F1F1F;    /* 炭灰 */
  --metal: #C5A572;           /* 拉丝金点缀 */

  /* 中性色 */
  --white: #FFFFFF;
  --gray-50: #F8F7F5;
  --gray-100: #F2F0EC;
  --gray-200: #E6E3DC;
  --gray-300: #D0CBC2;
  --gray-500: #8A8580;
  --gray-700: #4A4642;
  --text: #161513;
  --text-light: #5C5854;
  --text-muted: #8F8A84;

  /* 语义色 */
  --bg: #FFFEFB;
  --bg-soft: #F8F7F5;
  --bg-dark: #0A0A0A;
  --border: #EAE7E1;
  --border-dark: rgba(255, 255, 255, 0.10);

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(20, 16, 10, 0.05);
  --shadow-md: 0 12px 40px rgba(20, 16, 10, 0.09);
  --shadow-lg: 0 28px 80px rgba(20, 16, 10, 0.14);
  --shadow-yellow: 0 14px 36px rgba(212, 160, 23, 0.28);

  /* 圆角 —— 卫浴奢品偏克制 */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* 间距体系 */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  /* 容器 */
  --container: 1200px;
  --container-narrow: 880px;

  /* 全局布局令牌 —— 全站统一 */
  --header-h: 72px;
  --topbar-h: 0px;              /* 全站隐藏顶栏，与首页沉浸式一致 */
  --nav-pad-x: clamp(24px, 4vw, 64px);
  --surface-dark: var(--bee-black);
  --eyebrow-size: 0.78rem;
  --eyebrow-tracking: 0.38em;
  --radius-card: var(--radius-lg);
  --radius-media: var(--radius-sm);
  --hover-lift: -8px;
  --hover-shadow: var(--shadow-lg);

  /* 过渡 */
  --t-fast: 0.18s ease;
  --t: 0.38s cubic-bezier(0.22, 1, 0.36, 1);

  /* 字体 —— 纯本地系统字体栈（公安备案 / 离线静态，不依赖 Google Fonts） */
  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-heading: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --tracking-wide: 0.2em;
  --tracking-title: 0.14em;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- 排版 ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.25;
  color: var(--bee-black);
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; letter-spacing: var(--tracking-title); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 400; letter-spacing: 0.08em; }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; }

p { color: var(--text-light); }

.display {
  /* 大标题英文用 Bebas Neue 宽体 */
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
}

.text-yellow { color: var(--bee-yellow); }
.text-honey { color: var(--bee-honey); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

/* ---------- 布局容器 ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-8) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--dark {
  background: var(--bee-black);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--dark p { color: rgba(255, 255, 255, 0.7); }

.section--gray {
  background: var(--gray-100);
}

/* 小节标题区 (eyebrow + 主标题 + 副标题) */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-7);
}

.section-head h1,
.section-head h2 {
  font-weight: 400;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-tracking);
  color: var(--bee-honey);
  text-transform: uppercase;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(212, 160, 23, 0.4);
  margin-bottom: var(--space-3);
  font-weight: 400;
}

/* 深色背景上的 eyebrow（页头 / 全屏模块） */
.eyebrow--on-dark,
.page-hero .eyebrow,
.about-hero .eyebrow {
  color: rgba(255, 255, 255, 0.55);
  border-bottom: none;
  font-size: var(--eyebrow-size);
  letter-spacing: var(--eyebrow-tracking);
}

/* 产品分类小标签 —— 全站统一 */
.label-cat,
.product-info__cat,
.product-card__cat {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--bee-honey);
  text-transform: uppercase;
}

.section--dark .eyebrow { color: var(--bee-yellow); }

.section-sub {
  margin-top: var(--space-3);
  font-size: 1.05rem;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 34px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  border-radius: 2px;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--bee-yellow);
  color: var(--bee-black);
  box-shadow: var(--shadow-yellow);
}

.btn--primary:hover {
  background: var(--bee-honey);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--dark {
  background: var(--bee-black);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--bee-yellow);
  color: var(--bee-black);
}

.btn--outline {
  background: transparent;
  color: var(--bee-black);
  border: 1px solid var(--bee-black);
}

.btn--outline:hover {
  background: var(--bee-black);
  color: var(--bee-yellow);
}

.btn--ghost-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn--ghost-light:hover {
  background: var(--bee-yellow);
  color: var(--bee-black);
  border-color: var(--bee-yellow);
}

.btn--lg { padding: 18px 44px; font-size: 0.95rem; letter-spacing: 0.18em; }

/* ---------- 栅格工具 ---------- */
.grid {
  display: grid;
  gap: var(--space-5);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 蜂巢六边形装饰(品牌记忆点) ---------- */
.hex {
  /* clip-path 切出六边形,可作图标/角标底 */
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

/* ---------- 滚动渐显动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
