/*
 * BCP Electric - Global Styles
 * 暗色 + 金黄色调 | Dark + Gold Theme
 * High-end industrial style | 高端工业风
 */

/* ========== CSS Variables ========== */
:root {
  /* Primary Colors - Deep Black */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;
  --bg-hover: #1e1e1e;

  /* Gold Accent */
  --gold-primary: #ffd700;
  --gold-light: #ffea80;
  --gold-dark: #cc9900;
  --gold-gradient: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.25);

  /* Text Colors */
  --text-primary: #f5f5f5;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --text-gold: #ffd700;

  /* Borders & Shadows */
  --border-color: rgba(255, 215, 0, 0.15);
  --border-hover: rgba(255, 215, 0, 0.4);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 30px rgba(255, 215, 0, 0.15);

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Serif SC', Georgia, serif;
  --font-heading: 'Montserrat', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', -apple-system, sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max: 1280px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Arabic & RTL support */
html[dir="rtl"] body {
  text-align: right;
}

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

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

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

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

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

/* ========== Typography ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.1rem; }

.text-gold { color: var(--gold-primary); }
.text-gradient-gold {
  color: #ffd700;
}

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-primary);
  font-weight: 600;
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid var(--border-color);
  border-radius: 100px;
}

.section-title {
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== Header & Navigation ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  padding: 8px 0;
  color: var(--text-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-select {
  /* 去掉原生 select 外观：Safari/Firefox 下原生箭头 + 药丸圆角会裁剪/挤压文字 */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: transparent;
  /* 自绘 chevron，与文字同色系；右侧预留 38px 箭头位防文字压箭头 */
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b0b0b0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 38px 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  transition: all var(--transition-fast);
  /* 兜底：任何语言名下文字都不得溢出药丸 */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lang-select:hover {
  border-color: var(--gold-primary);
  color: var(--text-primary);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f5f5f5' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* 阿拉伯语等 RTL：箭头镜像到左侧，文字侧让位 */
html[dir="rtl"] .lang-select {
  background-position: left 16px center;
  padding: 8px 18px 8px 38px;
}

.lang-select option {
  background: var(--bg-tertiary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
    var(--bg-primary);
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* 后台「Banner管理」配置的首屏背景照片层：
   金色光晕 → 左侧暗色压字渐变（保证标题可读）→ 底部融入暗色 → 照片 */
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.62) 45%, rgba(10, 10, 10, 0.38) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0) 76%, #0a0a0a 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.hero-bg-photo.is-visible { opacity: 1; }

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 780px;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 32px;
}

.hero-subtitle::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold-gradient);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero-title .accent { color: var(--gold-primary); }

/* 中文标题两词各只有 2 字，三行断行失衡：隐藏第一个 <br>，
   合并为「构建可靠 / 电气未来」两行；font-size:0 消除 span 间残留空隙 */
html[lang^="zh"] .hero-title { font-size: 0; }
html[lang^="zh"] .hero-title span { font-size: clamp(2.8rem, 6vw, 5rem); }
html[lang^="zh"] .hero-title br:first-of-type { display: none; }

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
  color: var(--bg-primary);
}

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

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(255, 215, 0, 0.05);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* ========== Product Cards ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-gold);
}

.product-card:hover::before {
  transform: scaleX(1);
}

.product-image {
  aspect-ratio: 4/3;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-placeholder {
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.5;
}

/* 无图新闻卡占位（与产品占位同族：金色线性图标居中） */
.news-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 3rem;
  color: var(--gold-primary);
  opacity: 0.5;
}

/* API-rendered images (product card / product detail / news card) */
.product-image img,
.product-detail-image img,
.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-info {
  padding: 28px;
}

.product-category {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.product-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-model {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

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

/* ========== Feature Cards ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.feature-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========== Stats Section ========== */
.stats-section {
  background: var(--bg-secondary);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffd700;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ========== News Cards ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

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

.news-image {
  /* 新闻资讯封面统一 4:3：图片用 object-fit:cover 自动裁切居中，不同原图比例也不会变形或留白 */
  aspect-ratio: 4/3;
  /* 必须关掉 flex 项的自动最小尺寸（min-height:auto）：方形/竖版原图会把盒子按内容撑成正方形，4:3 失效 */
  min-height: 0;
  /* 裁切兜底：保证任何比例原图都不溢出卡片 */
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.news-category-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
}

.news-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-summary {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
  flex: 1;
}

.news-read-more {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-read-more::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14 6 20 12 14 18'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='12' x2='20' y2='12'/%3E%3Cpolyline points='14 6 20 12 14 18'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform var(--transition-fast);
}

.news-card:hover .news-read-more::after {
  transform: translateX(4px);
}

/* ========== Contact Section ========== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 24px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-size: 1.2rem;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-value {
  font-size: 1rem;
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 40px;
}

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

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: var(--bg-hover);
}

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

/* ========== Footer ========== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-top: 16px;
  max-width: 360px;
}

.footer-col h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* 社交媒体：以圆形图标按钮形式展示（平台名保留在 title / aria-label） */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 社交媒体：金色描边幽灵圆按钮（复用站点 .btn-outline / .btn-primary 语言，单色协调） */
.footer-social a,
.footer-social a.social-icon-link {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  background: transparent;
  color: var(--gold-primary);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
              background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.footer-social a svg { width: 20px; height: 20px; flex: none; display: block; }

/* 后台上传的自定义图标（图片形式），压满圆形按钮 */
.footer-social a .social-icon-img {
  width: 20px;
  height: 20px;
  flex: none;
  object-fit: contain;
  border-radius: 4px;
}

.footer-social a:hover {
  transform: translateY(-3px);
  background: var(--gold-gradient);
  color: var(--bg-primary);
  border-color: var(--gold-primary);
  box-shadow: var(--gold-glow);
}

/* ========== About Page Styles ========== */
.about-hero {
  padding: 180px 0 100px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
}

.about-hero h1 {
  margin-bottom: 16px;
}

.about-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: var(--border-color);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--gold-gradient);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--gold-glow);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

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

  .timeline::before {
    left: 20px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-dot {
    left: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 100px 32px 32px;
    flex-direction: column;
    gap: 24px;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }

  .main-nav.open {
    display: flex;
    transform: translateX(0);
  }

  .nav-links {
    flex-direction: column;
    gap: 24px;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .section-header {
    margin-bottom: 48px;
  }

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

  .stats-grid {
    gap: 32px;
  }

  .stat-number {
    font-size: 2.5rem;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

/* ========== Animations ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== Loading ========== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Form Success/Error ========== */
.form-message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-message.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.form-message.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* ========== Page Header ========== */
.page-header {
  padding: 160px 0 80px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100px;
  background: #ffd700;
  z-index: 1;
}

/* 后台「Banner管理」配置的页面顶部背景照片层（与首页 .hero-bg-photo 同机制）：
   金色光晕 → 左右与底部暗化压字（保证居中标题可读）→ 照片 */
.page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, rgba(10, 10, 10, 0.55) 50%, rgba(10, 10, 10, 0.82) 100%),
    linear-gradient(180deg, rgba(10, 10, 10, 0.35) 0%, rgba(10, 10, 10, 0) 42%, rgba(10, 10, 10, 0) 70%, #0a0a0a 100%),
    var(--page-hero-photo);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.page-header-bg.is-visible { opacity: 1; }

/* 有背景照片时加高横幅（cover 裁切少、图片展示更完整），内容在剩余空间垂直居中；
   无照片（未配置/停用 Banner）时保持原紧凑渐变高度 */
.page-header.has-photo {
  min-height: 640px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 768px) {
  .page-header.has-photo { min-height: 480px; }
}

.page-header .container { position: relative; z-index: 1; }

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ========== Product Detail ========== */
.product-detail {
  padding: 150px 0 100px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-detail-image {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-info h1 {
  margin-bottom: 12px;
}

.product-detail-info .model {
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.product-detail-info .description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
}

.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.features-list li {
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.features-list li::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 8px;
  vertical-align: -1px;
  background-color: var(--gold-primary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ========== News Detail ========== */
.news-detail {
  padding: 150px 0 100px;
}

/* 大卡片壳：仅包裹新闻正文区域（与整站卡片规范一致：纯底 + 细边 + 圆角，无多余装饰） */
.news-detail-shell {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4.5vw, 56px);
}

/* 两栏：左正文卡壳 / 右相关新闻独立模块；侧栏隐藏时回落单栏 */
.news-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.news-detail-main { min-width: 0; }

.news-detail-grid.no-aside {
  grid-template-columns: minmax(0, 1fr);
}

.news-detail-header {
  margin-bottom: 36px;
}

/* meta 行：分类胶囊 + 发布日期（左对齐，与产品详情「胶囊→标题」层级一致） */
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.news-detail-meta .section-label { margin-bottom: 0; white-space: nowrap; }

.news-detail-meta .nd-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* 卡片内文章标题：较整站全局 h1 收敛一档，保持阅读层级 */
.news-detail-main h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.news-detail-body {
  margin: 0;
}

/* 摘要 = 引言角色：中性左边线 + 极淡底，克制突出层级，不喧宾夺主 */
.news-detail-lede {
  max-width: 880px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  padding: 12px 18px;
  margin: 0 0 28px;
  border-left: 3px solid var(--border-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.news-detail-content {
  max-width: 880px; /* 正文列宽约束：1280 容器下保持可读行长 */
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-secondary);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---- 图文混排正文主题（与后台富文本编辑器呈现一致） ---- */

.news-detail-content p { margin: 0 0 1em; }

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3 {
  color: var(--text-primary);
  margin: 1.5em 0 0.6em;
  line-height: 1.4;
}

.news-detail-content h1 { font-size: 1.5rem; }
.news-detail-content h2 { font-size: 1.3rem; }
.news-detail-content h3 { font-size: 1.12rem; }

.news-detail-content ul,
.news-detail-content ol {
  margin: 0 0 1em;
  padding-left: 1.6em;
}

.news-detail-content li { margin-bottom: 0.4em; }

.news-detail-content blockquote {
  margin: 0 0 1em;
  padding: 10px 18px;
  border-left: 3px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.news-detail-content a { color: var(--gold-primary); }
.news-detail-content a:hover { text-decoration: underline; }

.news-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.news-detail-content img[style*="float:left"],
.news-detail-content img[style*="float: left"] {
  margin: 4px 24px 16px 0;
}

.news-detail-content img[style*="float:right"],
.news-detail-content img[style*="float: right"] {
  margin: 4px 0 16px 24px;
}

.news-detail-content img[style*="display:block"],
.news-detail-content img[style*="display: block"] {
  margin-top: 10px;
  margin-bottom: 18px;
}

/* Quill 段落对齐类（后台对齐段落时保存的类名） */
.news-detail-content .ql-align-center { text-align: center; }
.news-detail-content .ql-align-right { text-align: right; }
.news-detail-content .ql-align-left,
.news-detail-content .ql-align-justify { text-align: left; }

/* 图片加载失败的兜底 */
.news-detail-content img.img-broken {
  display: block;
  min-height: 80px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-color);
}

/* 移动端：浮动图片改独占一行居中，保证小屏阅读体验 */
@media (max-width: 640px) {
  .news-detail-content img {
    float: none !important;
    display: block !important;
    margin: 16px auto !important;
    width: auto !important;
    max-width: 100%;
  }
  .news-detail-lede { font-size: 1.02rem; padding: 12px 16px; }
}

/* 新闻正文配图（统一 1200×630，移动/桌面自适应） */
.news-figure {
  margin: 28px auto;
  max-width: 760px;
}

.news-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.news-figure figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

.news-figure .cap-en {
  display: block;
  font-size: 0.82rem;
  color: #8a8a8a;
}

.news-figure .cap-credit {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: #7a7a7a;
}

@media (max-width: 640px) {
  .news-figure {
    margin: 20px 0;
  }

  .news-figure figcaption {
    font-size: 0.85rem;
  }
}

/* 新闻详情 · 上一条 / 返回 / 下一条 */
.news-detail-nav {
  margin: 44px 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ndn-btn {
  flex: 1 1 220px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  background: var(--bg-tertiary); /* 卡壳内比壳底色亮一档，保持层次 */
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
}

.ndn-btn:hover {
  border-color: var(--gold-primary);
}

.ndn-btn .ndn-dir {
  font-size: 0.8rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.ndn-btn .ndn-title {
  font-size: 0.92rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ndn-btn.is-disabled {
  opacity: 0.45;
  cursor: default;
  justify-content: center;
}

.ndn-btn.is-disabled:hover {
  border-color: var(--border-color);
}

/* ---- 顶部面包屑式「返回列表」（与页面顶部 page-header 同位，统一系统观感） ---- */
.news-detail-topbar {
  margin-bottom: 22px;
}

.nd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.nd-back-link:hover {
  color: var(--gold-primary);
}

.nd-back-link .nd-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition-normal);
}

.nd-back-link:hover .nd-arrow {
  transform: translateX(-3px);
}

/* ---- 产品详情 · 顶部「返回列表」（与新闻详情同位、同观感，统一系统范式） ---- */
.product-detail-topbar {
  margin-bottom: 22px;
}

.pd-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.pd-back-link:hover {
  color: var(--gold-primary);
}

.pd-back-link .pd-arrow {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--transition-normal);
}

.pd-back-link:hover .pd-arrow {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .news-detail-nav { flex-direction: column; }
  .ndn-btn { flex: 0 0 auto; }
}

/* ---- 右栏 · 相关新闻（独立于正文卡壳之外的模块，与卡壳同边框语言、协调呈现） ---- */
.news-detail-aside {
  min-width: 0;
}

.news-related {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 20px 16px;
}

/* 栏目标题：金色竖条 + 标题 + 底部分隔线 */
.news-related-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.news-related-title::before {
  content: '';
  width: 3px;
  height: 16px;
  border-radius: 2px;
  background: var(--gold-primary);
}

.news-related-list {
  display: flex;
  flex-direction: column;
}

.news-related-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.news-related-item:last-of-type {
  border-bottom: none;
}

.news-related-item:hover {
  text-decoration: none;
}

/* 缩略图 */
.nri-thumb {
  flex: 0 0 74px;
  width: 74px;
  /* 与新闻卡片封面同比例 4:3：高度由宽度推导（74 → 55.5） */
  height: auto;
  aspect-ratio: 4/3;
  /* 父级 .news-related-item 默认 align-items:stretch，会把高度拉满导致比例失效，必须显式取消拉伸 */
  align-self: flex-start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
}

.nri-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nri-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--gold-dark);
  opacity: 0.75;
}

.nri-ph svg {
  width: 20px;
  height: 20px;
}

/* 条目文字：日期 → 标题（两行截断）→ 分类 */
.nri-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nri-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

.nri-title {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

.news-related-item:hover .nri-title {
  color: var(--gold-primary);
}

.nri-cat {
  align-self: flex-start;
  font-size: 0.7rem;
  color: var(--gold-primary);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 999px;
  padding: 1px 9px;
  letter-spacing: 0.05em;
}

/* 查看全部新闻 */
.news-related-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-primary);
  transition: color var(--transition-fast);
}

.news-related-more:hover {
  color: var(--gold-light);
}

/* ---- 详情页响应式 ---- */
@media (max-width: 1024px) {
  .news-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* 单栏时右栏移到正文下方 */
  .news-detail-aside { order: 2; }
  .news-detail-main { order: 1; }
  .news-related {
    padding: 20px 18px 14px;
  }

  /* 窄屏下相关新闻改横滑，避免列表过长 */
  .news-related-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .news-related-item {
    flex: 0 0 260px;
    flex-direction: column;
    border-bottom: none;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
  }

  /* 横滑卡片态：宽度自适应，高度仍由 4:3 推导（保持与封面同比例） */
  .nri-thumb { width: 100%; height: auto; flex: 0 0 auto; }

  .news-related-more { margin-top: 12px; }
}

@media (max-width: 640px) {
  .news-detail { padding: 130px 0 72px; }
  .news-detail-shell { border-radius: 12px; }
  .news-related-item { flex: 0 0 200px; }
  .nri-thumb { height: auto; }
}

/* ========== Business Page ========== */
.business-intro {
  padding: 160px 0 80px;
  text-align: center;
}

.business-card {
  padding: 48px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.business-card .icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--gold-primary);
}

.business-card h3 {
  margin-bottom: 12px;
}

.business-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ========== Category Filter ========== */
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.filter-btn {
  padding: 10px 24px;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: 100px;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold-gradient);
  border-color: transparent;
  color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Selection */
::selection {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

/* 站内 SPA：新闻列表 ↔ 详情 同文档切换（互斥显隐） */
#news-list-view[hidden],
#news-detail-view[hidden] {
  display: none !important;
}

/* 站内 SPA：产品列表 ↔ 详情 同文档切换（互斥显隐） */
#product-list-view[hidden],
#product-detail-view[hidden] {
  display: none !important;
}
