/* ============================================================
   河北昊铁轨道装备材料有限公司 - 企业官网样式
   豪华升级版 · 精致视觉 · 丰富动效
   ============================================================ */

/* ---------- CSS 变量 ---------- */
:root {
  --red: #c91423;
  --red-light: #e83a48;
  --red-dark: #a90e1a;
  --red-glow: rgba(201, 20, 35, 0.15);
  --navy: #0f1a2e;
  --navy-2: #172538;
  --navy-light: #1e3150;
  --ink: #2a303c;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f8f9fb;
  --gold: #c8963e;
  --gold-light: #e8c87a;
  --gold-glow: rgba(200, 150, 62, 0.2);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-red: 0 8px 30px rgba(201, 20, 35, 0.25);
  --shadow-gold: 0 8px 30px rgba(200, 150, 62, 0.3);

  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- 全局重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background: #fff;
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- 自定义滚动条 ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--soft);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  border-radius: 10px;
  border: 2px solid var(--soft);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--red-light), var(--red));
}

/* ---------- 工具类 ---------- */
.container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---------- 顶部信息条 ---------- */
.top-strip {
  color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #09101c, var(--navy));
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.top-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 150, 62, 0.1),
    transparent
  );
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.top-inner {
  display: flex;
  align-items: center;
  min-height: 38px;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
  transition: all var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.header-main {
  display: flex;
  align-items: center;
  min-height: 90px;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition);
  position: relative;
}

.brand:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.brand img {
  width: 200px;
  height: 100px;
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.brand:hover img {
  transform: scale(1.05);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.5px;
  position: relative;
}

.brand em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.hotline {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  position: relative;
}

.hotline::before {
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.hotline svg {
  width: 40px;
  height: 40px;
  color: var(--red);
  filter: drop-shadow(0 2px 8px rgba(201, 20, 35, 0.3));
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.hotline small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hotline strong {
  font-size: 20px;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(201, 20, 35, 0.3);
}

.nav-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(201, 20, 35, 0.4);
}

/* ---------- 主导航 ---------- */
.main-nav {
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  position: relative;
  overflow: hidden;
}

.main-nav::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 54px;
  position: relative;
  z-index: 1;
}

.nav-inner a {
  display: grid;
  min-width: 130px;
  min-height: 54px;
  place-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-inner a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.nav-inner a:hover::before {
  left: 100%;
}

.nav-inner a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width var(--transition);
  border-radius: 3px 3px 0 0;
}

.nav-inner a:hover::after,
.nav-inner a.active::after {
  width: 60%;
}

.nav-inner a:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-inner a:hover,
.nav-inner a.active {
  background: rgba(0, 0, 0, 0.12);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ---------- Hero 区域 ---------- */
.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(9, 16, 28, 0.94) 0%,
      rgba(15, 26, 46, 0.82) 38%,
      rgba(15, 26, 46, 0.55) 68%,
      rgba(15, 26, 46, 0.25) 100%
    ),
    url("./assets/hero-bg.jpg") center bottom / cover no-repeat;
  transform: scale(1);
  transition: transform 8s ease-out;
}

.hero:hover .hero-bg {
  transform: scale(1.06);
}

/* Hero 装饰光效 */
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 20, 35, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 8s ease-in-out infinite;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-glow 10s ease-in-out infinite reverse;
  z-index: 1;
}

@keyframes float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* 网格装饰 */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 110px 0 130px;
  animation: fadeInUp 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 8px 20px;
  color: var(--gold-light);
  background: rgba(200, 150, 62, 0.12);
  border: 1px solid rgba(200, 150, 62, 0.3);
  border-radius: 50px;
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 1px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.hero-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 7.5vw, 72px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  font-weight: 900;
  position: relative;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--red-light), var(--gold-light), var(--red-light));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
  position: relative;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p:not(.hero-kicker) {
  max-width: 660px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 48px;
}

.btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-weight: 800;
  font-size: 15px;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  border: 0;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:active {
  transform: scale(0.97);
}

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 6px 20px rgba(201, 20, 35, 0.35);
}

.btn.primary:hover {
  box-shadow: 0 10px 30px rgba(201, 20, 35, 0.45);
  transform: translateY(-3px);
}

.btn.ghost {
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.btn.ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Hero 底部装饰条 */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
  z-index: 2;
}

/* ---------- 搜索栏 ---------- */
.search-band {
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 10;
}

.search-inner {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 16px;
  flex-wrap: wrap;
}

.search-inner strong {
  color: var(--ink);
  font-size: 14px;
}

.search-inner a {
  color: var(--red);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(201, 20, 35, 0.06);
  transition: all var(--transition);
  border: 1px solid transparent;
}

.search-inner a:hover {
  background: rgba(201, 20, 35, 0.12);
  border-color: var(--red-glow);
  transform: translateY(-1px);
}

.site-search {
  display: flex;
  height: 44px;
  margin-left: auto;
  border: 1.5px solid var(--line);
  border-radius: 50px;
  overflow: hidden;
  transition: all var(--transition);
  background: #fff;
}

.site-search:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(201, 20, 35, 0.08);
}

.site-search input {
  width: min(300px, 50vw);
  border: 0;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  outline: none;
  color: var(--ink);
  background: transparent;
}

.site-search button {
  display: grid;
  width: 52px;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  cursor: pointer;
  transition: all var(--transition);
  border-radius: 0 50px 50px 0;
}

.site-search button:hover {
  background: linear-gradient(135deg, var(--red-light), var(--red));
}

/* ---------- 品类条 ---------- */
.category-strip {
  padding: 40px 0;
  background: var(--soft);
  position: relative;
  overflow: hidden;
}

.category-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.categories article {
  display: flex;
  min-height: 120px;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition),
    border-color var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.categories article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.categories article:hover::before {
  transform: scaleX(1);
}

.categories article:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--red-light);
}

.categories svg {
  width: 46px;
  height: 46px;
  color: var(--red);
  flex-shrink: 0;
  transition: all var(--transition-bounce);
  filter: drop-shadow(0 2px 6px rgba(201, 20, 35, 0.2));
}

.categories article:hover svg {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 4px 12px rgba(201, 20, 35, 0.3));
}

.categories span {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
  transition: color var(--transition);
}

.categories article:hover span {
  color: var(--red);
}

.categories small {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 90px 0;
  position: relative;
}

.section-title {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--line);
  padding-bottom: 20px;
  position: relative;
}

.section-title span {
  color: #9ca3af;
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
}

.section-title h2 {
  color: var(--navy);
  font-size: 36px;
  line-height: 1;
  position: relative;
  padding-bottom: 4px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -22px;
  left: 0;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  border-radius: 2px;
}

.section-title a {
  margin-left: auto;
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.section-title a:hover {
  opacity: 1;
  gap: 8px;
}

.section-title.light {
  border-color: rgba(255, 255, 255, 0.15);
}

.section-title.light h2 {
  color: #fff;
}

.section-title.light span {
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- 产品区域 ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
}

.product-menu {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: fit-content;
  position: sticky;
  top: 120px;
  align-self: start;
}

.product-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.product-menu h3 {
  margin: 0;
  padding: 30px 24px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}

.product-menu h3::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,0.15), transparent);
  border-radius: 50%;
}

.product-menu a {
  display: block;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    background var(--transition),
    padding-left var(--transition),
    color var(--transition);
  font-size: 14px;
  position: relative;
}

.product-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height var(--transition);
  border-radius: 0 3px 3px 0;
}

.product-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 34px;
  color: var(--gold-light);
}

.product-menu a:hover::before {
  height: 60%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition:
    transform var(--transition-bounce),
    box-shadow var(--transition),
    border-color var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
  z-index: 2;
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.product-card .product-image {
  position: relative;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
  transform: scale(1.08);
}

.product-card .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(201, 20, 35, 0.3);
  z-index: 1;
  transform: translateX(-10px);
  opacity: 0;
  transition: all var(--transition-slow);
}

.product-card:hover .product-badge {
  transform: translateX(0);
  opacity: 1;
}

.product-card .product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 26, 46, 0.8));
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 24px;
  z-index: 1;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card h3 {
  margin: 24px 26px 10px;
  font-size: 22px;
  color: var(--navy);
  transition: color var(--transition);
}

.product-card:hover h3 {
  color: var(--red);
}

.product-card p {
  min-height: 72px;
  margin: 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.product-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 20px 26px 26px;
  color: var(--red);
  font-weight: 800;
  font-size: 14px;
  transition: all var(--transition);
  position: relative;
}

.product-card a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--transition);
}

.product-card a:hover {
  gap: 12px;
}

.product-card a:hover::after {
  width: 100%;
}

/* ---------- 案例区域 ---------- */
.case-band {
  padding: 90px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(9, 16, 28, 0.96), rgba(15, 26, 46, 0.9)),
    url("./assets/hero.webp") center / cover no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.case-band::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(201, 20, 35, 0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.case-band::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.case-tabs span {
  padding: 12px 26px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    all var(--transition);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.05);
}

.case-tabs span:hover,
.case-tabs span.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(201, 20, 35, 0.3);
  transform: translateY(-2px);
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 36px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.case-feature img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-slow);
}

.case-feature img:hover {
  transform: scale(1.02);
}

.case-feature > div {
  padding: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--gold);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}

.case-feature > div::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.15), transparent);
  border-radius: 50%;
}

.label {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--gold-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

.case-feature h3 {
  margin: 0 0 18px;
  font-size: 32px;
  line-height: 1.2;
  position: relative;
}

.case-feature p:not(.label) {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.9;
  margin-bottom: 28px;
  position: relative;
}

/* ---------- 优势区域 ---------- */
.advantages {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--red-dark), var(--red));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.advantages::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.advantage-grid > * {
  min-height: 180px;
  padding: 32px 28px 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.advantage-grid > *::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold-light);
  transition: width var(--transition);
  border-radius: 3px 3px 0 0;
}

.advantage-grid > *:hover {
  background: rgba(255, 255, 255, 0.1);
}

.advantage-grid > *:hover::after {
  width: 60%;
}

.advantage-title span {
  color: rgba(255, 255, 255, 0.6);
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
}

.advantage-title h2 {
  margin: 8px 0 0;
  font-size: 36px;
  position: relative;
}

.advantage-title h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 2px;
}

.advantage-grid svg {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  opacity: 0.95;
  transition: all var(--transition-bounce);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.advantage-grid > *:hover svg {
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.advantage-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
  transition: color var(--transition);
}

.advantage-grid > *:hover h3 {
  color: var(--gold-light);
}

.advantage-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- 关于我们 ---------- */
.about-section {
  padding: 90px 0;
  background: #fff;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 450px;
  gap: 56px;
  align-items: center;
}

.about-card {
  padding-left: 36px;
  border-left: 5px solid var(--red);
  position: relative;
}

.about-card::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0;
  width: 5px;
  height: 60px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}

.about-card h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 38px;
  line-height: 1.25;
  position: relative;
}

.about-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.stats-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200% 100%;
  animation: gradient-shift 3s ease infinite;
}

.stats-panel div {
  min-height: 140px;
  padding: 32px 28px;
  display: grid;
  place-content: center;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stats-panel div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--red-glow), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.stats-panel div:hover {
  background: var(--soft);
  transform: scale(1.02);
  z-index: 1;
}

.stats-panel div:hover::before {
  opacity: 1;
}

.stats-panel div:nth-child(2n) {
  border-right: 0;
}

.stats-panel div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.stats-panel strong {
  display: block;
  color: var(--red);
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.stats-panel span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

/* ---------- 新闻区域 ---------- */
.news {
  background: var(--soft);
  position: relative;
}

.news::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.news-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
}

.headline-news,
.news-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.headline-news {
  padding: 40px;
  position: relative;
}

.headline-news::before {
  content: "头条";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 4px 12px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50px;
  letter-spacing: 1px;
}

.headline-news:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.headline-news span {
  color: var(--red);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.headline-news h3 {
  margin: 16px 0;
  font-size: 26px;
  color: var(--navy);
  line-height: 1.4;
  transition: color var(--transition);
}

.headline-news:hover h3 {
  color: var(--red);
}

.headline-news time {
  color: var(--muted);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.headline-news time::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--muted);
  border-radius: 50%;
}

.headline-news p {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.news-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 24px 30px;
  border-bottom: 1px solid var(--line);
  transition:
    all var(--transition);
  position: relative;
  overflow: hidden;
}

.news-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.news-list a:hover {
  background: var(--soft);
  padding-left: 38px;
}

.news-list a:hover::before {
  transform: scaleY(1);
}

.news-list a:last-child {
  border-bottom: 0;
}

.news-list strong {
  font-size: 16px;
  color: var(--ink);
  line-height: 1.5;
  transition: color var(--transition);
  font-weight: 700;
}

.news-list a:hover strong {
  color: var(--red);
}

.news-list span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  align-self: center;
  padding: 4px 12px;
  background: var(--soft);
  border-radius: 50px;
  transition: all var(--transition);
}

.news-list a:hover span {
  background: var(--red-glow);
  color: var(--red);
}

/* ---------- 联系我们 ---------- */
.contact-cta {
  padding: 70px 0;
  color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  position: relative;
  overflow: hidden;
}

.contact-cta::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 20, 35, 0.12) 0%, transparent 60%);
  border-radius: 50%;
}

.contact-cta::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.08) 0%, transparent 60%);
  border-radius: 50%;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.contact-grid > div:first-child span {
  color: var(--gold-light);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-grid > div:first-child span::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

.contact-grid h2 {
  margin: 12px 0 16px;
  font-size: 38px;
  line-height: 1.2;
}

.contact-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.9;
}

.contact-lines {
  display: grid;
  gap: 16px;
}

.contact-lines a,
.contact-lines p {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.9);
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    all var(--transition);
  backdrop-filter: blur(10px);
}

.contact-lines a:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(6px);
  border-color: rgba(200, 150, 62, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.contact-lines svg {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
  flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(200, 150, 62, 0.3));
}

/* ---------- 页脚 ---------- */
.site-footer {
  color: rgba(255, 255, 255, 0.7);
  background: #070d18;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  background-size: 200% 100%;
  animation: gradient-shift 4s ease infinite;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 50px 0;
}

.footer-grid img {
  width: 120px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  transition: transform var(--transition);
}

.footer-grid img:hover {
  transform: scale(1.05);
}

.footer-grid p {
  margin: 14px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.footer-grid nav a {
  transition: all var(--transition);
  font-size: 14px;
  position: relative;
}

.footer-grid nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-light);
  transition: width var(--transition);
}

.footer-grid nav a:hover {
  color: var(--gold-light);
}

.footer-grid nav a:hover::after {
  width: 100%;
}

.footer-service small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-service strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-top: 6px;
  background: linear-gradient(135deg, var(--red-light), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.copyright {
  padding: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.2);
}

/* ---------- 滚动渐显动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 延迟动画类 */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 返回顶部按钮 ---------- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(201, 20, 35, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(201, 20, 35, 0.45);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-menu {
    display: none;
  }

  .case-feature {
    grid-template-columns: 1fr;
  }

  .case-feature img {
    height: 280px;
  }

  .advantage-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .advantage-title {
    grid-column: 1 / -1;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .brand span {
    display: none;
  }

  .hotline {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-inner {
    display: grid;
    padding: 8px 0;
  }

  .nav-inner a {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-inner a::after {
    display: none;
  }

  .categories,
  .advantage-grid,
  .news-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advantage-grid > * {
    min-height: auto;
  }

  .hero-inner {
    padding: 80px 0 100px;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .header-main {
    min-height: 72px;
  }

  .brand img {
    width: 160px;
    height: 80px;
  }

  .hero-inner {
    padding: 60px 0 80px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .site-search {
    margin-left: 0;
    width: 100%;
  }

  .site-search input {
    width: 100%;
  }

  .search-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0;
  }

  .categories,
  .product-grid,
  .stats-panel {
    grid-template-columns: 1fr;
  }

  .stats-panel div,
  .stats-panel div:nth-child(2n),
  .stats-panel div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stats-panel div:last-child {
    border-bottom: 0;
  }

  .news-list a {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-grid img {
    margin-inline: auto;
  }

  .footer-grid nav {
    justify-content: center;
  }

  .section-title {
    flex-wrap: wrap;
  }

  .about-card {
    padding-left: 24px;
  }

  .case-feature > div {
    padding: 28px;
  }

  .case-band {
    background-attachment: scroll;
  }

  .section {
    padding: 60px 0;
  }

  .section-title h2 {
    font-size: 28px;
  }

  .about-card h2 {
    font-size: 28px;
  }

  .contact-grid h2 {
    font-size: 28px;
  }
}

/* ============================================================
   子页面扩展样式
   ============================================================ */

/* ---------- 子页面顶部横幅 ---------- */
.page-hero {
  padding: 80px 0 60px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 20, 35, 0.15) 0%, transparent 60%);
  border-radius: 50%;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(200, 150, 62, 0.1) 0%, transparent 60%);
  border-radius: 50%;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero span {
  display: inline-block;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 16px;
  font-style: italic;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 14px;
}

.page-hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
}

/* ---------- 关于我们 - 企业文化 ---------- */
.culture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.culture-card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-bounce);
  box-shadow: var(--shadow-sm);
}

.culture-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.culture-card svg {
  width: 48px;
  height: 48px;
  color: var(--red);
  margin-bottom: 20px;
  transition: all var(--transition-bounce);
}

.culture-card:hover svg {
  transform: scale(1.15);
  color: var(--gold);
}

.culture-card h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 12px;
}

.culture-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 产品详情页 ---------- */
.product-grid-full {
  display: grid;
  gap: 32px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.product-detail-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-detail-card .product-image {
  position: relative;
  overflow: hidden;
}

.product-detail-card .product-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-detail-card:hover .product-image img {
  transform: scale(1.05);
}

.product-detail-card .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(201, 20, 35, 0.3);
  z-index: 1;
}

.product-info {
  padding: 36px 40px;
}

.product-info h2 {
  font-size: 28px;
  color: var(--navy);
  margin-bottom: 14px;
}

.product-info > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  margin-bottom: 24px;
}

.spec-list {
  list-style: none;
  margin-bottom: 28px;
}

.spec-list li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
}

.spec-list li:last-child {
  border-bottom: 0;
}

.spec-list strong {
  display: inline-block;
  min-width: 90px;
  color: var(--navy);
  font-weight: 700;
}

.product-nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  padding-left: 34px;
}

.product-nav-link.active::before {
  height: 60%;
}

/* ---------- 案例卡片网格 ---------- */
.case-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.case-card-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-bounce);
}

.case-card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.case-card-img {
  position: relative;
  overflow: hidden;
}

.case-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card-item:hover .case-card-img img {
  transform: scale(1.08);
}

.case-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  background: rgba(15, 26, 46, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.case-card-body {
  padding: 24px 26px 28px;
}

.case-card-body h3 {
  font-size: 20px;
  color: var(--navy);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.case-card-item:hover .case-card-body h3 {
  color: var(--red);
}

.case-card-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 新闻页全宽列表 ---------- */
.news-list-full {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow-y: auto;
  max-height: 600px;
}

.news-list-full a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.news-list-full a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}

.news-list-full a:hover {
  background: var(--soft);
  padding-left: 40px;
}

.news-list-full a:hover::before {
  transform: scaleY(1);
}

.news-list-full a:last-child {
  border-bottom: 0;
}

.news-list-full strong {
  font-size: 17px;
  color: var(--ink);
  line-height: 1.5;
  transition: color var(--transition);
  font-weight: 700;
}

.news-list-full a:hover strong {
  color: var(--red);
}

.news-list-full span {
  color: var(--muted);
  white-space: nowrap;
  font-size: 13px;
  align-self: center;
  padding: 4px 12px;
  background: var(--soft);
  border-radius: 50px;
}

/* ---------- 新闻分页控件 ---------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    all var(--transition);
}

.page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-glow);
  transform: translateY(-1px);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(201, 20, 35, 0.3);
  pointer-events: none;
}

.page-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- 联系我们页面 ---------- */
.contact-page-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
}

.contact-info-card {
  padding: 36px 32px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201, 20, 35, 0.15), transparent);
  border-radius: 50%;
}

.contact-info-card h2 {
  font-size: 26px;
  margin-bottom: 28px;
  position: relative;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.contact-item:last-of-type {
  border-bottom: 0;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold-light);
  flex: 0 0 auto;
  margin-top: 2px;
}

.contact-item small {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 4px;
}

.contact-item strong {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
}

.contact-form-card {
  padding: 36px 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 28px;
}

.inquiry-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.inquiry-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.inquiry-form input,
.inquiry-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--soft);
  transition: all var(--transition);
  outline: none;
}

.inquiry-form input:focus,
.inquiry-form textarea:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px var(--red-glow);
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 120px;
}

.inquiry-form .btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.inquiry-form .btn svg {
  width: 18px;
  height: 18px;
}

.form-tip {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- 厂区实景展示 ---------- */
.factory-showcase {
  padding: 0 0 80px;
}

.factory-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.factory-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.factory-img-wrap:hover img {
  transform: scale(1.03);
}

.factory-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 28px;
  background: linear-gradient(to top, rgba(15, 26, 46, 0.85), transparent);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}

.factory-img-caption svg {
  width: 18px;
  height: 18px;
  color: var(--gold-light);
}

/* ---------- 子页面响应式 ---------- */
@media (max-width: 1024px) {
  .culture-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-card .product-image img {
    min-height: 260px;
  }

  .case-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .page-hero {
    padding: 60px 0 40px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .culture-grid {
    grid-template-columns: 1fr;
  }

  .case-card-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .product-info {
    padding: 28px 24px;
  }

  .contact-info-card,
  .contact-form-card {
    padding: 28px 24px;
  }

  .news-list-full a {
    grid-template-columns: 1fr;
    padding: 22px 24px;
  }
}

/* 新闻发布管理入口 */
.title-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-link {
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  opacity: 0.6;
}

.admin-link:hover {
  opacity: 1;
  color: var(--red) !important;
}

.admin-link i {
  width: 14px;
  height: 14px;
}
