/**
 * 鼎丰铝业 — 铝型材挤压·门窗幕墙·金属构件
 * 银灰金属重工工业风
 * 设计语汇：深灰基底 + 银灰边框 + 金属拉丝纹理 + 直角硬朗
 * 依赖：Font Awesome 6 CDN, Swiper 11 CDN, AOS 2.3.4 CDN
 * 遵循 PBootCMS 第三方模板模式 ({pboot:sitedomain}/skin/)
 */

/* ============================================================
   CSS 变量体系 — 金属工业
   ============================================================ */
:root {
  /* ── 基底色 ── */
  --bg-deep: #1A1A1A;
  --bg-dark: #2E2E2E;
  --bg-card: #252525;
  --bg-card-hover: #2C2C2C;
  --bg-input: #1E1E1E;

  /* ── 金属银灰色阶 ── */
  --silver: #C0C0C0;
  --silver-light: #D4D4D4;
  --silver-dark: #A8A8A8;
  --silver-dim: #8C8C8C;

  /* ── 点缀色 ── */
  --accent-blue: #005A9C;
  --accent-blue-dim: rgba(0, 90, 156, 0.15);
  --accent-orange: #E8710A;

  /* ── 边框系统 ── */
  --border-card: #3A3A3A;
  --border-silver: rgba(192, 192, 192, 0.2);
  --border-hover: rgba(192, 192, 192, 0.45);

  /* ── 文字色阶 ── */
  --text-primary: #E8E8E8;
  --text-secondary: #B0B0B0;
  --text-muted: #707070;

  /* ── 阴影 ── */
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.6);

  /* ── 圆角（直角为主，微圆角仅用于按钮） ── */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 3px;

  /* ── 间距 ── */
  --section-py: 80px;
  --container-max: 1280px;
  --header-h: 68px;

  /* ── 过渡 ── */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* ── 字体 ── */
  --font-heading: 'PingFang SC', 'Microsoft YaHei', 'SimHei', 'Heiti SC', 'Noto Sans SC', 'Helvetica Neue', sans-serif;
  --font-body: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'JetBrains Mono', 'Cascadia Code', 'Consolas', 'Courier New', monospace;
}

/* ============================================================
   全局重置 & 基础
   ============================================================ */
*, *::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: 16px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden;
}

/* 金属拉丝基底纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255,255,255,0.003) 2px,
      rgba(255,255,255,0.003) 4px
    ),
    linear-gradient(180deg, #1A1A1A 0%, #222 30%, #1E1E1E 70%, #1A1A1A 100%);
  pointer-events: none;
}

::selection {
  background: rgba(192, 192, 192, 0.25);
  color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--silver-dim); }

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;
  color: 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: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  font-feature-settings: "kern" 1;
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 32px;
}

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

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

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

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

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

/* ============================================================
   Header — 深灰实底固定
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-card);
  transition: background var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}

.header.scrolled {
  background: rgba(20, 20, 20, 0.97);
  box-shadow: 0 1px 20px 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: 10px;
  flex-shrink: 0;
  margin-right: auto;
}

.header__logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #3A3A3A, #555);
  border: 1px solid var(--silver-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--silver);
}

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

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

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

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

.header__nav-link {
  padding: 8px 15px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 1px;
  background: var(--silver);
  transform: scaleX(0);
  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: scaleX(1);
}

/* ── 导航下拉（13.3: z-index ≥ 10） ── */
.header__nav-item {
  position: relative;
}

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

.header__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  padding: 6px 0;
  background: #222;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: all var(--duration-normal) var(--ease-out);
  z-index: 60;
}

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

.header__dropdown a:hover {
  color: var(--silver);
  background: rgba(255,255,255,0.04);
}

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

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: transparent;
  color: var(--silver);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--silver);
  transition: all var(--duration-fast) var(--ease-out);
}

.header__cta:hover {
  color: #fff;
  background: var(--silver);
  border-color: var(--silver);
}

/* ============================================================
   汉堡菜单（13.4: 独立于 header__actions）
   ============================================================ */
.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: 2px;
  background: var(--silver);
  transition: all var(--duration-normal) var(--ease-out);
}

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

/* ── 移动端侧滑菜单 ── */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 80%;
  max-width: 340px;
  background: #1A1A1A;
  z-index: 120;
  transform: translateX(-100%);
  transition: transform var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  border-right: 1px solid var(--border-card);
}

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

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

.mobile-nav__link,
.mobile-nav__item {
  display: block;
  padding: 13px 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-card);
  cursor: pointer;
}

.mobile-nav__link:hover { color: var(--silver); }

.mobile-nav__sub {
  display: none;
  padding-left: 12px;
  background: #1E1E1E;
}

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

.mobile-nav__sub a {
  display: block;
  padding: 10px 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

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

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

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

.btn--primary {
  background: linear-gradient(180deg, #555, #3A3A3A);
  color: #fff;
  border: 1px solid var(--silver-dim);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #666, #444);
  border-color: var(--silver);
  transform: translateY(-1px);
  color: #fff;
}

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

.btn--outline:hover {
  border-color: var(--silver);
  background: rgba(192,192,192,0.06);
  color: #fff;
}

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

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

/* ============================================================
   卡片系统 — 深色金属质感
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

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

.card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1A1A1A;
}

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

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

.card__body {
  padding: 20px;
}

.card__tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--silver);
  background: rgba(192,192,192,0.08);
  border: 1px solid rgba(192,192,192,0.15);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.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: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-card);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   首页 — Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 580px;
  overflow: hidden;
  background: #111;
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.5) 100%),
    linear-gradient(0deg, rgba(26,26,26,0.9) 0%, transparent 50%);
}

.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__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  text-align: left;
  max-width: 700px;
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--silver);
  margin-bottom: 2rem;
  font-weight: 400;
  text-align: left;
  max-width: 550px;
  line-height: 1.6;
}

/* 型材编号装饰线 */
.hero__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--silver);
  margin-top: 16px;
}

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

/* Swiper 分页器 — 进度条风格 */
.hero-pagination {
  position: absolute;
  bottom: 60px;
  left: 24px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

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

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

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

.hero__scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--silver), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,100% { transform: scaleY(0.3); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ============================================================
   首页 — 产能数据（数字滚动）
   ============================================================ */
.stats-section {
  background: #1E1E1E;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid var(--border-card);
}

.stat-item {
  text-align: center;
  padding: 48px 20px;
  border-right: 1px solid var(--border-card);
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--silver);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.stat-item:hover::after { opacity: 1; }

.stat-item__number {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--silver);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item__unit {
  font-size: 0.9rem;
  color: var(--silver-dim);
  font-weight: 400;
}

.stat-item__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

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

.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

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

.cat-card:hover::before { opacity: 1; }

.cat-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #333, #444);
  border: 1px solid var(--silver-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--silver);
}

.cat-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.cat-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-family: var(--font-mono);
}

/* ============================================================
   首页 — 挤压车间实拍（全宽横向滚动）
   ============================================================ */
.production-showcase {
  background: #1C1C1C;
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.production-swiper {
  overflow: hidden;
  padding: 20px 0 40px;
}

.production-swiper .swiper-slide {
  width: 420px;
}

.production-slide {
  position: relative;
  border: 1px solid var(--border-card);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.production-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.production-slide__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.production-slide__step {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--silver);
  font-weight: 600;
}

.production-slide__param {
  font-size: 0.75rem;
  color: var(--silver-dim);
  margin-top: 2px;
  font-family: var(--font-mono);
}

/* ============================================================
   首页 — 主推产品网格
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   首页 — 工程案例四列
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.case-item {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: all var(--duration-normal);
}

.case-item:hover {
  border-color: var(--border-hover);
}

.case-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.case-item:hover img { transform: scale(1.06); }

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

.case-item__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.case-item__type {
  font-size: 0.75rem;
  color: var(--silver);
  font-family: var(--font-mono);
}

/* ============================================================
   首页 — 型材规格速查
   ============================================================ */
.specs-preview {
  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);
  text-align: center;
  transition: all var(--duration-normal);
}

.spec-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.spec-card__series {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--silver);
  margin-bottom: 4px;
}

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

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

/* ============================================================
   首页 — 经销商加盟
   ============================================================ */
.dealer-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-card);
}

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

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

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

.dealer-card__icon {
  font-size: 2rem;
  color: var(--silver);
  margin-bottom: 16px;
}

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

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

/* ============================================================
   首页 — 新闻区块
   ============================================================ */
.news-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  transition: all var(--duration-normal);
}

.news-item:hover {
  border-color: var(--border-hover);
}

.news-item__thumb {
  width: 100px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
}

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

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

.news-item__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item__date {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ============================================================
   首页 — CTA 询价
   ============================================================ */
.cta-section {
  background: #1C1C1C;
  border: 1px solid var(--silver-dim);
  margin: 60px 24px;
  padding: 56px 40px;
  text-align: center;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(192,192,192,0.1);
  pointer-events: none;
}

.cta-section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

/* ============================================================
   Footer 底部 — 深灰近黑
   ============================================================ */
.footer {
  background: #161616;
  border-top: 2px solid var(--silver-dim);
}

.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-muted);
  line-height: 1.7;
  margin: 16px 0;
}

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

.footer__social a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--duration-fast);
}

.footer__social a:hover {
  border-color: var(--silver);
  color: var(--silver);
}

.footer__col-title {
  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-muted);
  transition: color var(--duration-fast);
}

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

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

.footer__contact-item i {
  color: var(--silver-dim);
  margin-top: 3px;
  flex-shrink: 0;
}

.footer__qrcode {
  width: 100px;
  height: 100px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #999;
  border: 1px solid #ddd;
  margin-bottom: 8px;
}

.footer__bottom {
  border-top: 1px solid var(--border-card);
  padding: 20px 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); }
.footer__bottom a:hover { color: var(--silver); }

/* ============================================================
   友情链接
   ============================================================ */
.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border-card);
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

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

.friend-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.friend-links a:hover { color: var(--silver); }

/* ============================================================
   内页 Banner
   ============================================================ */
.inner-banner {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: #1A1A1A;
}

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

.inner-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,26,26,0.9) 0%, rgba(0,0,0,0.4) 70%);
}

.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.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

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

/* 面包屑 */
.breadcrumb-bar {
  background: #1E1E1E;
  border-bottom: 1px solid var(--border-card);
}

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

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

/* ============================================================
   列表页 — 产品/案例/新闻
   ============================================================ */
.list-header {
  text-align: center;
  margin-bottom: 40px;
}

.list-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}

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

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

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

.filter-bar a {
  display: inline-flex;
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-card);
  white-space: nowrap;
  transition: all var(--duration-fast);
  flex-shrink: 0;
}

.filter-bar a:hover,
.filter-bar a.active {
  color: var(--silver);
  border-color: var(--silver-dim);
  background: rgba(192,192,192,0.04);
}

/* 产品列表侧边栏+主区域 */
.product-page {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

.sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  padding: 0;
}

.sidebar__title {
  padding: 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-card);
}

.sidebar__nav a {
  display: block;
  padding: 14px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: all var(--duration-fast);
  border-left: 2px solid transparent;
}

.sidebar__nav a:hover,
.sidebar__nav a.active {
  color: var(--silver);
  background: rgba(192,192,192,0.03);
  border-left-color: var(--silver);
}

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

.detail__header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-card);
}

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

.detail__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

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

/* 参数卡片 */
.detail__params {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.detail__param {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  text-align: center;
}

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

.detail__param-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--silver);
  font-family: var(--font-mono);
}

.detail__body {
  color: var(--text-secondary);
  line-height: 2;
  font-size: 0.95rem;
}

.detail__body img {
  margin: 20px 0;
  border: 1px solid var(--border-card);
}

.detail__body p { margin-bottom: 14px; }
.detail__body h2, .detail__body h3 {
  color: var(--text-primary);
  margin: 28px 0 14px;
  font-size: 1.2rem;
}

/* Tab切换 */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border-card);
  margin-bottom: 32px;
}

.tab-btn {
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color var(--duration-fast);
}

.tab-btn.active {
  color: var(--silver);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--silver);
}

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

/* 上下篇 */
.detail__pager {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-card);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail__pager a { color: var(--text-secondary); }
.detail__pager a:hover { color: var(--silver); }

/* 相关推荐 */
.related-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 48px 0 20px;
}

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

/* 详情页轮播 */
.detail-gallery {
  margin-bottom: 32px;
  border: 1px solid var(--border-card);
  overflow: hidden;
}

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

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

/* ============================================================
   型材规格表
   ============================================================ */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.specs-table thead {
  background: var(--bg-dark);
}

.specs-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--silver);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--border-silver);
}

.specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-card);
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.specs-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ============================================================
   联系我们 / 表单
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

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

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

.contact-info__icon {
  width: 40px;
  height: 40px;
  background: #222;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--silver);
  flex-shrink: 0;
}

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

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

.contact-form-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
}

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

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

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

.form-control {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--duration-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--silver-dim);
}

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

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

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

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

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

.search-input-wrap input {
  width: 100%;
  padding: 14px 16px 14px 40px;
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-input-wrap input:focus {
  outline: none;
  border-color: var(--silver-dim);
}

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

.search-result-item:hover {
  border-color: var(--border-hover);
}

.search-result-item__thumb {
  width: 100px;
  height: 80px;
  overflow: hidden;
  flex-shrink: 0;
  background: #1A1A1A;
}

.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-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-item__date {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  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: 3px;
  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: 1px solid var(--border-card);
  transition: all var(--duration-fast);
}

.pagination a:hover {
  border-color: var(--silver-dim);
  color: var(--silver);
}

.pagination .active {
  border-color: var(--silver);
  color: #000;
  background: var(--silver);
  font-weight: 600;
}

.pagination .disabled {
  color: #444;
  pointer-events: none;
}

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

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

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

/* ============================================================
   返回顶部
   ============================================================ */
.back-top {
  position: fixed;
  right: 18px;
  bottom: 60px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-card);
  background: #222;
  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);
}

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

.back-top:hover {
  border-color: var(--silver);
  color: var(--silver);
}

/* ============================================================
   在线客服按钮
   ============================================================ */
.online-service {
  position: fixed;
  right: 18px;
  bottom: 110px;
  z-index: 85;
}

.online-service__btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--silver-dim);
  background: #222;
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all var(--duration-fast);
  margin-bottom: 6px;
}

.online-service__btn:hover {
  background: var(--silver);
  color: #000;
  border-color: var(--silver);
}

/* ============================================================
   动画 — 金属工业风
   ============================================================ */

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

/* 金属拉丝扫光 */
@keyframes metalSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* 数字脉冲（型材编号） */
@keyframes numberPulse {
  0%, 100% { color: var(--silver); }
  50% { color: #fff; }
}

/* 银色线延伸 */
@keyframes lineExtend {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Swiper进度条流动 */
@keyframes progressFlow {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

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

  .header__nav,
  .header__actions { display: none; }

  .hamburger { display: flex; }

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

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

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

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

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

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

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

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

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

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

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

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

  .cta-section {
    margin: 40px 16px;
  }
}

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

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

  .hero__content {
    padding-bottom: 80px;
  }

  .hero-pagination {
    bottom: 50px;
  }

  .inner-banner {
    height: 220px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    border-left: none;
  }

  .stat-item {
    padding: 32px 16px;
    border: 1px solid var(--border-card);
  }

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

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

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

  .specs-preview {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .related-grid {
    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; }

  .cta-section {
    margin: 32px 12px;
    padding: 36px 20px;
  }

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

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

  .detail__pager {
    flex-direction: column;
    gap: 8px;
  }

  .search-result-item {
    flex-direction: column;
  }

  .search-result-item__thumb {
    width: 100%;
    height: 140px;
  }

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

  .online-service {
    right: 10px;
    bottom: 100px;
  }

  .tabs {
    overflow-x: auto;
  }

  .specs-table {
    font-size: 0.78rem;
  }
  .specs-table th,
  .specs-table td {
    padding: 8px 10px;
  }
}

/* ============================================================
   移动端：禁用hover粘滞（tap后状态残留）
   ============================================================ */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--border-card); box-shadow: none; }
  .card:hover .card__image img { transform: none; }
  .cat-card:hover { transform: none; border-color: var(--border-card); background: var(--bg-card); }
  .cat-card:hover::before { opacity: 0; }
  .case-item:hover { border-color: var(--border-card); }
  .case-item:hover img { transform: none; }
  .news-item:hover { border-color: var(--border-card); }
  .dealer-card:hover { transform: none; border-color: var(--border-card); }
  .spec-card:hover { border-color: var(--border-card); background: var(--bg-card); }
  .search-result-item:hover { border-color: var(--border-card); }
  .stat-item:hover::after { opacity: 0; }
  .btn--primary:hover { transform: none; }
  .btn--outline:hover { transform: none; }
  .header__cta:hover { background: transparent; color: var(--silver); }
}

/* ============================================================
   偏好：减少动画
   ============================================================ */
@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;
  }
}
