/**
 * 铝艺世家 — 高端铝艺门窗定制品牌
 * 色调：银灰 + 深灰 + 黑 + 香槟金/古铜色点缀
 * 风格：工艺画册感，适中留白，图文错落
 * 纯原生 CSS，无框架依赖
 */

/* ============================================================
   CSS 变量体系 — 铝艺金属色系
   ============================================================ */
:root {
  /* 基底色 — 深色金属基调 */
  --bg-deep: #0B0B0C;
  --bg-dark: #141416;
  --bg-section: #18181A;
  --bg-card: #1C1C1F;
  --bg-card-hover: #222226;
  --bg-input: rgba(255, 255, 255, 0.04);

  /* 点缀色 — 香槟金 + 古铜 */
  --gold: #C8A45C;
  --gold-light: #D4B96A;
  --gold-dim: rgba(200, 164, 92, 0.12);
  --gold-glow: rgba(200, 164, 92, 0.25);
  --bronze: #B87333;
  --bronze-dim: rgba(184, 115, 51, 0.12);
  --silver: #A8A8B0;
  --silver-dim: rgba(168, 168, 176, 0.08);

  /* 文字色阶 */
  --text-primary: #E8E8EC;
  --text-secondary: #9A9AA2;
  --text-muted: #5E5E68;

  /* 边框 */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(200, 164, 92, 0.25);
  --border-gold-light: rgba(200, 164, 92, 0.15);

  /* 阴影 */
  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.3);
  --shadow-gold: 0 0 20px rgba(200, 164, 92, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);

  /* 圆角 — 小圆角精致感 */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;

  /* 间距 */
  --section-py: 90px;
  --container-max: 1200px;
  --header-h: 72px;

  /* 过渡 */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* 字体 — 思源宋体(标题) + 思源黑体(正文) */
  --font-heading: 'Noto Serif SC', 'STSong', 'SimSun', 'Georgia', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-decorative: 'Noto Serif SC', 'STSong', 'Georgia', serif;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg-deep);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(200, 164, 92, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(184, 115, 51, 0.03) 0%, transparent 60%),
    linear-gradient(180deg, #0B0B0C 0%, #141416 40%, #18181A 100%);
  pointer-events: none;
}

::selection { background: rgba(200, 164, 92, 0.3); color: #fff; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200,164,92,0.3); }

a { color: inherit; text-decoration: none; transition: color var(--duration-fast) var(--ease-out); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }

/* ============================================================
   排版
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 28px;
}

.section-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
}

/* 装饰性细线 — 标题下方 */
.title-deco {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.title-deco::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
}

.title-deco::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--border-subtle);
}

/* ============================================================
   布局容器
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section--dark { background: var(--bg-dark); }

.section--alt { background: var(--bg-section); }

/* ============================================================
   Header 头部 — 深色半透明 + 底部细金线
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 11, 12, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0.4;
  pointer-events: none;
}

.header.scrolled {
  background: rgba(11, 11, 12, 0.96);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.6);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo — 铝艺印章风格 */
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--gold);
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gold);
  font-family: var(--font-decorative);
  font-weight: 700;
  letter-spacing: 0.1em;
  writing-mode: vertical-lr;
  position: relative;
}

.header__logo-icon::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold-dim);
  border-radius: 1px;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.header__logo-sub {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
}

/* 主导航 */
.header__nav {
  display: flex;
  align-items: center;
  gap: 1px;
}

.header__nav-link {
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 16px;
  height: 1px;
  background: var(--gold);
  transition: transform var(--duration-normal) var(--ease-out);
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--text-primary);
}

.header__nav-link:hover::after,
.header__nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

/* 导航下拉 */
.header__nav-item {
  position: relative;
}

.header__nav-item:hover .header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 160px;
  padding: 8px 0;
  background: rgba(20, 20, 22, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

.header__dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.header__dropdown a::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-fast) var(--ease-out);
}

.header__dropdown a:hover {
  color: var(--gold);
  padding-left: 26px;
}

.header__dropdown a:hover::before {
  width: 6px;
}

/* 头部右侧操作区 */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

/* 古铜色 CTA 按钮 */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  background: transparent;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xs);
  transition: all var(--duration-normal) var(--ease-out);
  letter-spacing: 0.04em;
}

.header__cta:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-light);
  box-shadow: var(--shadow-gold);
}

/* ============================================================
   汉堡菜单（移动端）
   ============================================================ */
.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
  margin-left: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-normal) var(--ease-out);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* 移动端侧滑菜单 */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 340px;
  background: rgba(14, 14, 16, 0.99);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav__inner { padding: 24px; padding-top: 80px; }

.mobile-nav__link {
  display: block;
  padding: 14px 16px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--duration-fast) var(--ease-out);
}

.mobile-nav__link:hover { color: var(--gold); background: var(--gold-dim); }

.mobile-nav__sub {
  padding-left: 20px;
  display: none;
  background: rgba(255,255,255,0.01);
}

.mobile-nav__sub.open { display: block; }

.mobile-nav__sub a {
  display: block;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  transition: all var(--duration-fast);
}

.mobile-nav__sub a:hover { color: var(--gold); }

.mobile-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 115;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}

.mobile-nav__overlay.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--bg-dark);
}

.inner-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.5) 0%, rgba(11,11,12,0.3) 40%, var(--bg-deep) 100%);
}

.inner-banner__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-banner__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.inner-banner__subtitle {
  font-size: 1rem;
  color: var(--silver);
}

/* 面包屑 */
.breadcrumb-bar {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 13px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--gold); }

.breadcrumb i {
  font-size: 0.6rem;
  color: var(--text-muted);
}

/* ============================================================
   按钮系统
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-xs);
  border: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: #fff;
  border: 1px solid var(--border-gold);
}

.btn--primary:hover {
  box-shadow: 0 4px 24px rgba(200, 164, 92, 0.3);
  transform: translateY(-1px);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}

.btn--outline:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: var(--border-card);
}

.btn--dark {
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
}

.btn--dark:hover {
  background: rgba(0,0,0,0.6);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ============================================================
   卡片系统 — 深色带细边框
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
  display: block;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold-light);
  box-shadow: var(--shadow-card), var(--shadow-gold);
  transform: translateY(-2px);
}

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: var(--bg-dark);
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.card:hover .card__image img { transform: scale(1.04); }

/* 图片上方金色装饰线 */
.card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.card:hover .card__image::after { opacity: 0.6; }

.card__body { padding: 20px; }

.card__tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold-light);
  border-radius: 2px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card__meta i { color: var(--gold); font-size: 0.7rem; }

/* ============================================================
   Hero Banner — 铝艺别墅实景轮播
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  max-height: 900px;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero .swiper {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(11,11,12,0.3) 0%,
    rgba(11,11,12,0.15) 35%,
    rgba(11,11,12,0.7) 70%,
    rgba(11,11,12,0.92) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 100px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* 金线装饰 */
.hero__deco-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
  opacity: 0.8;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}

.hero__title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero 分页器 — 金线风格 */
.hero-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.hero-pagination .swiper-pagination-bullet {
  width: 36px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255,255,255,0.25);
  opacity: 1;
  transition: all var(--duration-normal);
  margin: 0;
}

.hero-pagination .swiper-pagination-bullet-active {
  width: 56px;
  background: var(--gold);
}

/* Hero 缩略图导航 */
.hero-thumbs {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-thumbs .swiper-slide {
  width: 70px;
  height: 45px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.5;
  transition: all var(--duration-normal);
}

.hero-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-thumbs .swiper-slide-thumb-active {
  border-color: var(--gold);
  opacity: 1;
}

/* 滚动指示器 */
.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ============================================================
   首页 — 工艺实拍区（焊接火花/打磨）
   ============================================================ */
.craft-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.craft-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.craft-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  filter: brightness(0.6);
}

.craft-item:hover img {
  transform: scale(1.06);
  filter: brightness(0.8);
}

.craft-item__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.8));
}

.craft-item__num {
  font-family: var(--font-decorative);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.7;
  line-height: 1;
}

.craft-item__label {
  font-size: 0.9rem;
  color: #fff;
  font-weight: 600;
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.craft-item__desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* ============================================================
   首页 — 核心产品分类（4列卡片）
   ============================================================ */
.product-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--duration-slow) var(--ease-out);
}

.cat-card:hover {
  border-color: var(--border-gold-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.cat-card:hover::before { width: 80%; }

.cat-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 18px;
  border: 1px solid var(--border-gold-light);
  transition: all var(--duration-normal) var(--ease-out);
}

.cat-card:hover .cat-card__icon {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 0 24px rgba(200, 164, 92, 0.25);
}

.cat-card__name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.cat-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   首页 — 主推作品大图（3列）
   ============================================================ */
.featured-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.work-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: block;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
  filter: brightness(0.55);
}

.work-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.75);
}

.work-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.work-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.work-card__spec {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #fff;
  margin-top: 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--duration-normal) var(--ease-out);
}

.work-card:hover .work-card__link {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   首页 — 型材规格速查卡片
   ============================================================ */
.spec-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.spec-card {
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.spec-card:hover {
  border-color: var(--border-gold-light);
  transform: translateY(-2px);
}

.spec-card__icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.7;
}

.spec-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.spec-card__detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.spec-card__detail span {
  display: block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ============================================================
   首页 — 经销商合作卡片
   ============================================================ */
.dealer-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.dealer-card {
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.dealer-card:hover {
  border-color: var(--border-gold-light);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

.dealer-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--gold);
  font-size: 1.1rem;
  transition: all var(--duration-normal);
}

.dealer-card:hover .dealer-card__icon {
  background: var(--gold);
  color: #fff;
}

.dealer-card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.dealer-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   首页 — 新闻列表（左图右文）
   ============================================================ */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.news-item {
  display: flex;
  gap: 24px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.news-item:hover {
  border-color: var(--border-gold-light);
  background: var(--bg-card-hover);
}

.news-item__thumb {
  width: 200px;
  height: 130px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-dark);
}

.news-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow);
}

.news-item:hover .news-item__thumb img { transform: scale(1.05); }

.news-item__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.news-item__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   首页 — CTA 区域
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,164,92,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
  color: #fff;
}

.cta-frame {
  display: inline-block;
  padding: 48px 60px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  position: relative;
}

.cta-frame::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 1px solid var(--border-gold-light);
  border-radius: var(--radius-xs);
  pointer-events: none;
}

/* ============================================================
   列表页 — 网格布局
   ============================================================ */
.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.list-header {
  text-align: center;
  margin-bottom: 48px;
}

.list-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.3rem);
  margin-bottom: 0.5rem;
}

/* 子栏目过滤栏 */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  margin-bottom: 40px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar { display: none; }

.filter-bar a {
  display: inline-flex;
  padding: 8px 20px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  border-radius: 100px;
  white-space: nowrap;
  transition: all var(--duration-fast) var(--ease-out);
  flex-shrink: 0;
  letter-spacing: 0.03em;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--gold);
  border-color: var(--border-gold);
  background: var(--gold-dim);
}

/* ============================================================
   详情页
   ============================================================ */
.detail {
  max-width: 900px;
  margin: 0 auto;
}

/* 详情页大图轮播 */
.detail-gallery {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 36px;
  border: 1px solid var(--border-subtle);
}

.detail-gallery .swiper-slide { aspect-ratio: 16/10; }

.detail-gallery .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 详情信息 */
.detail__header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail__title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.detail__meta-row i { margin-right: 4px; color: var(--gold); }

/* 扩展字段参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}

.detail__param {
  padding: 18px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-xs);
  text-align: center;
  transition: all var(--duration-fast);
}

.detail__param:hover {
  border-color: var(--border-gold-light);
}

.detail__param-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.detail__param-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail__param-value.highlight {
  color: var(--gold);
}

/* 富文本正文 */
.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.93rem;
  letter-spacing: 0.015em;
}

.detail__body img {
  border-radius: var(--radius-sm);
  margin: 24px 0;
  max-width: 100%;
}

.detail__body p { margin-bottom: 16px; }

.detail__body h2, .detail__body h3, .detail__body h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 16px;
}

/* 上下篇导航 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  gap: 12px;
}

.detail__pager a {
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.detail__pager a:hover { color: var(--gold); }

/* Tab 切换 */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.detail-tabs button {
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
  letter-spacing: 0.03em;
}

.detail-tabs button:hover { color: var(--text-primary); }

.detail-tabs button.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.tab-panel { display: block; }
.tab-panel.hidden { display: none; }

/* 相关推荐 */
.related-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 56px 0 24px;
  color: var(--text-primary);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   关于我们页
   ============================================================ */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-hero__image {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.about-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border-gold-light);
  border-radius: inherit;
  top: 12px;
  left: 12px;
  right: -12px;
  bottom: -12px;
  z-index: -1;
  pointer-events: none;
}

.about-hero__text h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.about-value {
  text-align: center;
  padding: 32px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}

.about-value__num {
  font-family: var(--font-decorative);
  font-size: 2.5rem;
  color: var(--gold);
  opacity: 0.6;
  line-height: 1;
}

.about-value__label {
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 8px;
}

/* ============================================================
   联系我们/询价页
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  transition: all var(--duration-fast);
}

.contact-info__item:hover { border-color: var(--border-gold-light); }

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--border-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-info__value {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 表单 */
.contact-form-card {
  padding: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  position: relative;
}

.contact-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group label .required { color: var(--bronze); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.form-control:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23C8A45C' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ============================================================
   搜索页
   ============================================================ */
.search-box { max-width: 680px; margin: 0 auto; }

.search-form-row { display: flex; gap: 10px; }

.search-input-wrap { position: relative; flex: 1; }

.search-input-wrap i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input-wrap input {
  width: 100%;
  padding: 15px 18px 15px 44px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--duration-fast);
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--border-gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.search-result-item {
  display: flex;
  gap: 16px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  margin-bottom: 10px;
}

.search-result-item:hover {
  border-color: var(--border-gold-light);
  background: var(--bg-card-hover);
}

.search-result-item__thumb {
  width: 100px;
  height: 80px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-dark);
}

.search-result-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-item__info { flex: 1; min-width: 0; }

.search-result-item__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.search-result-item__desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   分页
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease-out);
}

.pagination a:hover {
  border-color: var(--border-gold-light);
  background: var(--gold-dim);
  color: var(--gold);
}

.pagination .active {
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: #fff;
  font-weight: 600;
  border-color: transparent;
}

.pagination .disabled {
  color: var(--text-muted);
  pointer-events: none;
}

/* ============================================================
   空状态
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: block;
  opacity: 0.4;
}

.empty-state p { color: var(--text-muted); font-size: 0.92rem; }

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
}

.friend-links__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-shrink: 0;
  letter-spacing: 0.05em;
}

.friend-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
  padding: 4px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
}

.friend-links a:hover {
  color: var(--gold);
  border-color: var(--border-gold-light);
}

/* ============================================================
   Footer 底部 — 深色四列
   ============================================================ */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 0 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 16px 0;
}

.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--duration-fast) var(--ease-out);
}

.footer__social a:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

.footer__col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
}

.footer__links a:hover { color: var(--gold); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.footer__contact-item i { color: var(--gold); margin-top: 2px; flex-shrink: 0; font-size: 0.7rem; }

.footer__qrcode {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: var(--radius-xs);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #999;
}

.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.footer__bottom a { color: var(--text-muted); transition: color var(--duration-fast); }
.footer__bottom a:hover { color: var(--gold); }

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
}

.back-top.show { opacity: 1; pointer-events: auto; }

.back-top:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
}

/* ============================================================
   动画系统
   ============================================================ */

/* 金线划入 */
@keyframes goldLineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* 文字淡入上移 */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title { animation: fadeInUp 0.9s var(--ease-out) both; }
.hero__subtitle { animation: fadeInUp 0.9s var(--ease-out) 0.15s both; }
.hero__actions { animation: fadeInUp 0.8s var(--ease-out) 0.3s both; }
.hero__deco-line { animation: goldLineIn 1s var(--ease-out) 0.1s both; transform-origin: left; }

/* 按钮脉冲 */
@keyframes btnPulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 164, 92, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(200, 164, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 164, 92, 0); }
}

.btn--primary.pulse { animation: btnPulse 2.2s infinite; }

/* 金属光泽扫过 */
@keyframes metalShine {
  0% { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

.metal-shine {
  position: relative;
  overflow: hidden;
}

.metal-shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.02) 40%,
    rgba(255,255,255,0.04) 50%,
    rgba(255,255,255,0.02) 60%,
    transparent 100%
  );
  transform: translateX(-100%) skewX(-15deg);
  pointer-events: none;
}

.metal-shine:hover::after { animation: metalShine 0.7s ease-in-out; }

/* 金点闪烁 */
@keyframes goldDot {
  0%, 100% { box-shadow: 0 0 4px rgba(200, 164, 92, 0.4); }
  50% { box-shadow: 0 0 14px rgba(200, 164, 92, 0.8), 0 0 20px rgba(200, 164, 92, 0.3); }
}

.hero-pagination .swiper-pagination-bullet-active { animation: goldDot 2.2s ease-in-out infinite; }

/* AOS 覆盖 */
[data-aos] { transition-timing-function: var(--ease-out); }

/* ============================================================
   响应式 — 平板 (768px - 1023px)
   ============================================================ */
@media (max-width: 1023px) {
  :root { --section-py: 64px; }

  .header__nav,
  .header__actions { display: none; }
  .hamburger { display: flex; }

  .hero { height: 80vh; min-height: 500px; }

  .hero-thumbs { display: none; }

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

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

  .featured-works { grid-template-columns: 1fr 1fr; }

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

  .dealer-cards { grid-template-columns: 1fr 1fr; }

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

  .about-hero { grid-template-columns: 1fr; gap: 32px; }

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

  .contact-grid { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr 1fr; }

  .news-item { flex-direction: column; }
  .news-item__thumb { width: 100%; height: 180px; }

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

  .detail-tabs { overflow-x: auto; }
}

/* ============================================================
   响应式 — 移动端 (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --section-py: 52px; }

  .hero {
    height: 85vh;
    min-height: 460px;
  }

  .hero__content { padding-bottom: 70px; }

  .hero__scroll { display: none; }

  .inner-banner { height: 200px; }

  .craft-showcase { grid-template-columns: 1fr 1fr; }

  .product-categories { grid-template-columns: 1fr; }

  .featured-works { grid-template-columns: 1fr; }

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

  .dealer-cards { grid-template-columns: 1fr; }

  .list-grid { grid-template-columns: 1fr; }

  .about-values { grid-template-columns: 1fr; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }

  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .card__body { padding: 16px; }

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

  .contact-form-card { padding: 24px; }

  .related-grid { grid-template-columns: 1fr; }

  .search-result-item { flex-direction: column; }
  .search-result-item__thumb { width: 100%; height: 150px; }

  .back-top { right: 10px; bottom: 40px; }

  .cta-frame { padding: 32px 24px; }

  .pagination { flex-wrap: wrap; }
  .pagination a, .pagination span { min-width: 34px; height: 34px; font-size: 0.8rem; }
}

/* ============================================================
   响应式 — 小屏手机 (< 375px)
   ============================================================ */
@media (max-width: 374px) {
  body { font-size: 14px; }
  .spec-cards { grid-template-columns: 1fr; }
  .detail__params { grid-template-columns: 1fr; }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
