/* ============================================
   慧柏智能 - 主样式表 (光子精密风格红色主题)
   全响应式：PC / 平板 / 手机
   ============================================ */

:root {
  --primary: #CC0033;
  --primary-dark: #990026;
  --primary-light: #E6335C;
  --primary-glow: rgba(204,0,51,0.3);
  --accent: #FF1A4F;
  --text: #333333;
  --text-light: #666666;
  --text-lighter: #999999;
  --bg: #ffffff;
  --bg-gray: #f5f6f8;
  --bg-dark: #0a0a0a;
  --bg-dark-2: #111111;
  --bg-dark-3: #1a1a1a;
  --border: #e8e8e8;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --max-width: 1280px;
  --header-height: 80px;
  --header-height-mobile: 60px;
  --font: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header — 深色透明风格 ========== */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10,10,10,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; }
.logo-text-group { line-height: 1.3; }
.logo-text {
  font-size: 20px; font-weight: 700; color: #fff;
  display: block;
}
.logo-subtitle {
  font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 400;
  display: block; letter-spacing: 1px;
}

/* Navigation */
.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 0; }
.nav-item { position: relative; }
.nav-item > .nav-link {
  display: block;
  padding: 28px 16px;
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-item > .nav-link::after {
  content: '';
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px; background: var(--primary);
  transition: width 0.3s ease;
}
.nav-item > .nav-link:hover,
.nav-item.active > .nav-link {
  color: #fff;
}
.nav-item > .nav-link:hover::after,
.nav-item.active > .nav-link::after {
  width: 24px;
}

/* Dropdown toggle */
.dropdown-toggle {
  display: none;
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  padding: 8px; color: rgba(255,255,255,0.6);
}

/* Mega Menu Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  border-radius: 12px;
  opacity: 0; visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  padding: 28px 0;
  min-width: 780px;
}
.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown-open .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 28px;
}
.mega-col-title {
  font-size: 14px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.mega-col-title a { color: inherit; text-decoration: none; }
.mega-col-list li { margin-bottom: 6px; }
.mega-col-list li a {
  display: block; padding: 6px 0;
  font-size: 13px; color: var(--text-light);
  transition: var(--transition);
}
.mega-col-list li a:hover { color: var(--primary); padding-left: 4px; }

/* 解决方案二级下拉（单列） */
.dropdown-menu.solution-dropdown {
  min-width: 260px;
  padding: 10px 0;
}
.solution-dropdown-list { padding: 0; }
.solution-dropdown-list li { margin: 0; }
.solution-dropdown-list li a {
  display: block;
  padding: 11px 26px;
  font-size: 14px;
  color: var(--text);
  transition: var(--transition);
  white-space: nowrap;
}
.solution-dropdown-list li a:hover {
  color: var(--primary);
  background: #f8f8f8;
  padding-left: 30px;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  padding: 8px 4px; z-index: 1001;
}
.menu-toggle-bar {
  width: 24px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.menu-toggle.is-open .menu-toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.is-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .menu-toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.lang-switch {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: rgba(255,255,255,0.7);
  padding: 5px 12px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px; transition: var(--transition);
  cursor: pointer;
}
.lang-switch:hover { border-color: var(--primary); color: #fff; }
.lang-label.active-lang { color: var(--primary); font-weight: 700; }
.lang-divider { color: rgba(255,255,255,0.3); }

.search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  color: rgba(255,255,255,0.7); border-radius: 50%;
  transition: var(--transition);
}
.search-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 11000;
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
}
.search-overlay.is-visible { display: flex; }
.search-overlay-inner { position: relative; width: 90%; max-width: 560px; }
.search-form { display: flex; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.2); }
.search-input {
  flex: 1; padding: 16px 20px; border: none; font-size: 16px;
  outline: none;
}
.search-submit {
  padding: 16px 20px; color: var(--primary);
  display: flex; align-items: center;
}
.search-close {
  position: absolute; top: -44px; right: 0;
  color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
}

/* ========== Hero / Banner — 全屏大图 ========== */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0.65));
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 900px;
  padding: 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-desc {
  font-size: 20px;
  opacity: 0.9;
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.hero-btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204,0,51,0.4);
}

.hero-btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.hero-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}
.hero-dots .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.hero-dots .dot.active {
  background: var(--primary);
  border-color: #fff;
  transform: scale(1.3);
}
.hero-scroll-hint {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  animation: bounceDown 2s infinite;
}
.hero-scroll-hint svg {
  color: rgba(255,255,255,0.6);
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========== Sections — 通用 ========== */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-gray { background: var(--bg-gray); }
.section-dark .section-title h2 { color: #fff; }
.section-dark .section-title .en-title { color: rgba(255,255,255,0.4); }
.section-dark .section-title p { color: rgba(255,255,255,0.6); }
.section-dark .section-title .line { background: var(--primary); }

.section-title {
  text-align: center; margin-bottom: 60px;
}
.section-title .en-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-title h2 {
  font-size: 36px; font-weight: 700; color: var(--text);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 16px; color: var(--text-light);
  max-width: 600px; margin: 0 auto;
}
.section-title .line {
  display: block; width: 50px; height: 3px;
  background: var(--primary); margin: 16px auto 0; border-radius: 2px;
}

/* ========== About Section ========== */
.about-section { padding: 100px 0; background: var(--bg-dark); color: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-text .en-title {
  font-size: 14px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.about-text h3 { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.about-text p {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.9; margin-bottom: 16px;
}
.stats-bar {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 36px; padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-item { text-align: center; }
.stat-item .num {
  font-size: 40px; font-weight: 700; color: var(--primary);
  line-height: 1.2;
}
.stat-item .label {
  font-size: 13px; color: rgba(255,255,255,0.5); margin-top: 4px;
  letter-spacing: 1px;
}
.about-image {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.about-image img { width: 100%; height: 420px; object-fit: cover; }
.link-more {
  display: inline-block; margin-top: 8px;
  color: var(--primary); font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
}
.link-more:hover { color: var(--primary-light); }

/* ========== Product Cards — 新版 ========== */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  display: flex; flex-direction: column;
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.product-card .card-img {
  height: 220px; background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card .card-img img {
  max-width: 80%; max-height: 80%;
  object-fit: contain; transition: transform 0.4s ease;
}
.product-card:hover .card-img img { transform: scale(1.08); }
.product-card .card-img::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(204,0,51,0.05);
  opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .card-img::after { opacity: 1; }
.product-card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card .card-tag {
  display: inline-block; padding: 2px 10px;
  background: rgba(204,0,51,0.08); color: var(--primary);
  font-size: 12px; border-radius: 3px; margin-bottom: 8px;
  width: fit-content;
}
.product-card .card-title {
  font-size: 16px; font-weight: 600; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; color: var(--text);
}
.product-card .card-desc {
  font-size: 13px; color: var(--text-lighter);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; flex: 1;
}
.product-card .card-link {
  display: inline-block; margin-top: 12px;
  font-size: 13px; color: var(--primary); font-weight: 600;
  transition: var(--transition);
}
.product-card:hover .card-link { color: var(--primary-dark); }

/* ========== Recommended Products — 红色渐变 ========== */
.recommended-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.recommended-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 12px; padding: 40px; color: #fff;
  display: flex; gap: 30px; align-items: center;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.recommended-card::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.recommended-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(204,0,51,0.35);
}
.recommended-card .rc-info { flex: 1; position: relative; z-index: 1; }
.recommended-card .rc-tag {
  display: inline-block; padding: 3px 12px;
  background: rgba(255,255,255,0.2); border-radius: 3px;
  font-size: 12px; margin-bottom: 12px;
}
.recommended-card .rc-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.recommended-card .rc-model { font-size: 14px; opacity: 0.8; margin-bottom: 16px; }
.recommended-card .rc-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.recommended-card .rc-spec { font-size: 13px; opacity: 0.9; }
.recommended-card .rc-spec strong { font-size: 18px; display: block; }
.recommended-card .rc-img {
  width: 200px; height: 200px; flex-shrink: 0;
  background: rgba(255,255,255,0.1); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}

/* ========== Solutions Tabs ========== */
.solutions-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-bottom: 40px;
}
.solutions-tabs .tab-btn {
  padding: 12px 28px; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 30px; font-size: 15px;
  cursor: pointer; transition: var(--transition);
  background: transparent; color: rgba(255,255,255,0.7);
}
.solutions-tabs .tab-btn:hover,
.solutions-tabs .tab-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.solution-content {
  display: none; background: rgba(255,255,255,0.05);
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.solution-content.active {
  display: grid; grid-template-columns: 1fr 1fr;
}
.solution-text {
  padding: 50px; display: flex; flex-direction: column;
  justify-content: center; color: #fff;
}
.solution-text h3 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }
.solution-text p { font-size: 15px; color: rgba(255,255,255,0.6); line-height: 1.8; }
.btn-outline {
  display: inline-block; margin-top: 20px;
  padding: 12px 32px; border: 2px solid var(--primary);
  color: var(--primary); border-radius: 30px;
  font-weight: 600; font-size: 14px;
  transition: var(--transition); width: fit-content;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.solution-image {
  background: linear-gradient(135deg, rgba(204,0,51,0.2), rgba(204,0,51,0.05));
  display: flex; align-items: center; justify-content: center;
  min-height: 350px;
  position: relative; overflow: hidden;
}
.solution-image .icon-large { font-size: 80px; }
/* 方案配图（CMS 封面 / 占位图）：铺满右侧栏 */
.solution-image > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* ========== News Section ========== */
.news-tabs {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 12px; margin-bottom: 40px;
}
.news-tabs a {
  padding: 10px 24px; border-radius: 30px;
  font-size: 14px; color: rgba(255,255,255,0.6);
  transition: var(--transition); border: 1px solid transparent;
}
.news-tabs a:hover { color: #fff; border-color: rgba(255,255,255,0.3); }
.news-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.news-main {
  background: rgba(255,255,255,0.05); border-radius: 12px;
  overflow: hidden; border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}
.news-main:hover { border-color: var(--primary); }
.news-main .news-img { height: 280px; background: var(--bg-gray); overflow: hidden; }
.news-main .news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-main:hover .news-img img { transform: scale(1.05); }
.news-main .news-body { padding: 24px; }
.news-main .news-date {
  font-size: 13px; color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.news-main .news-title {
  font-size: 20px; font-weight: 600; color: #fff; margin-bottom: 12px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-main .news-desc {
  font-size: 14px; color: rgba(255,255,255,0.5);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-list-side { display: flex; flex-direction: column; gap: 12px; }
.news-item-side {
  padding: 18px; background: rgba(255,255,255,0.05);
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.05);
  transition: var(--transition);
}
.news-item-side:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}
.news-item-side .date { font-size: 12px; color: rgba(255,255,255,0.35); }
.news-item-side .title {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8);
  margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== Breadcrumb ========== */
.breadcrumb { background: #f9f9f9; padding: 14px 0; margin-top: var(--header-height); }
.breadcrumb-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  font-size: 14px; color: var(--text-lighter);
}
.breadcrumb-inner a { color: var(--text-light); }
.breadcrumb-inner a:hover { color: var(--primary); }
.breadcrumb-inner span { color: var(--text); }
.breadcrumb-inner .sep { margin: 0 6px; }

/* ========== Page Header — 红色渐变 ========== */
.page-header {
  background: linear-gradient(135deg, #1a0005 0%, #330012 40%, var(--primary-dark) 80%, var(--primary) 100%);
  padding: 80px 0; margin-top: var(--header-height);
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: ''; position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.page-header h1 { font-size: 40px; font-weight: 700; margin-bottom: 12px; position: relative; }
.page-header p { font-size: 16px; opacity: 0.8; position: relative; }

/* ========== Products Page Layout ========== */
.products-layout {
  display: grid; grid-template-columns: 260px 1fr;
  gap: 30px; padding: 40px 20px;
  max-width: var(--max-width); margin: 0 auto;
}
.sidebar { position: sticky; top: 100px; align-self: start; }
.sidebar-title {
  font-size: 18px; font-weight: 600; padding: 16px 20px;
  background: var(--primary); color: #fff;
  border-radius: 8px 8px 0 0;
}
.sidebar-menu {
  background: #fff; border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 8px 8px;
}
.sidebar-menu > li { border-bottom: 1px solid var(--border); }
.sidebar-menu > li:last-child { border-bottom: none; }
.sidebar-menu > li > a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; font-size: 15px; font-weight: 500;
  transition: var(--transition);
}
.sidebar-menu > li > a:hover,
.sidebar-menu > li > a.active { color: var(--primary); background: rgba(204,0,51,0.04); }
.sidebar-menu .arrow { font-size: 12px; color: var(--text-lighter); transition: var(--transition); }
.sidebar-submenu { display: none; background: var(--bg-gray); }
.sidebar-menu > li.open .sidebar-submenu { display: block; }
.sidebar-menu > li.open > a .arrow { transform: rotate(90deg); }
.sidebar-submenu li a {
  display: block; padding: 10px 20px 10px 36px;
  font-size: 14px; color: var(--text-light);
  transition: var(--transition);
}
.sidebar-submenu li a:hover, .sidebar-submenu li a.active { color: var(--primary); }
.products-main .section-title { text-align: left; margin-bottom: 30px; }
.products-main .section-title h2 { font-size: 24px; color: var(--text); }

/* ========== News Page List ========== */
.news-page-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: var(--max-width);
  margin: 0 auto; padding: 40px 20px;
}
.news-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid transparent;
}
.news-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.news-card .card-img { height: 200px; background: var(--bg-gray); overflow: hidden; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.news-card:hover .card-img img { transform: scale(1.05); }
.news-card .card-body { padding: 20px; }
.news-card .card-date { font-size: 12px; color: var(--text-lighter); margin-bottom: 8px; }
.news-card .card-title {
  font-size: 16px; font-weight: 600; margin-bottom: 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .card-desc {
  font-size: 13px; color: var(--text-light);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ========== News Detail ========== */
.article-detail { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.article-header {
  text-align: center; margin-bottom: 40px; padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.article-header h1 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.article-meta { font-size: 14px; color: var(--text-lighter); }
.article-body { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-body p { margin-bottom: 16px; }
.article-body h3 { font-size: 22px; margin: 30px 0 16px; }
.article-body h4 { font-size: 18px; margin: 24px 0 12px; }
.article-body ul { padding-left: 20px; margin-bottom: 16px; }
.article-body ul li { list-style: disc; margin-bottom: 6px; }
.article-body img { max-width: 100%; border-radius: 8px; margin: 16px 0; }

/* ========== Product Detail - New Layout ========== */
/* Breadcrumb */
.breadcrumb {
  background: var(--bg-gray);
  padding: 14px 0;
  font-size: 14px;
  color: var(--text-light);
}
.breadcrumb-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.breadcrumb a { color: var(--text-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: var(--text-lighter); }

/* Product Hero Section */
.product-hero {
  padding: 60px 0;
  background: #fff;
}
.product-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.product-hero-gallery {
  position: relative;
}
.product-main-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-gray);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 80px;
  opacity: 0.2;
  color: var(--primary);
}
.product-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-series-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.product-hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.2;
}
.product-model {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 20px;
  padding: 8px 16px;
  background: var(--bg-gray);
  border-radius: 6px;
  display: inline-block;
}
.product-short-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 30px;
}
.product-short-desc p {
  margin-bottom: 8px;
}
.product-hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.product-hero-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}
.product-hero-actions .btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.product-hero-actions .btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204,0,51,0.4);
  color: #fff;
}
.product-hero-actions .btn-primary:hover::before {
  left: 100%;
}
.product-hero-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: var(--text);
  border: 2px solid #d0d0d0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 1px;
}
.product-hero-actions .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(204,0,51,0.03);
  transform: translateY(-2px);
}

/* Global btn-primary (non-product-detail context) */
.btn-primary {
  display: inline-block;
  padding: 14px 40px;
  background: var(--primary);
  color: #fff;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(204,0,51,0.35);
  color: #fff;
}
.btn-outline {
  display: inline-block;
  padding: 14px 40px;
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(204,0,51,0.05);
}

/* Product Features Section */
.product-features-section {
  padding: 80px 0;
  background: var(--bg-gray);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.features-grid .feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.features-grid .feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.features-grid .feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(204,0,51,0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}
.features-grid .feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}
.features-grid .feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Product Detail Content */
.product-detail-content {
  padding: 80px 0;
  background: #fff;
}
.product-detail-content .container {
  max-width: 900px;
}
.product-detail-content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 40px 0 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--primary);
}
.product-detail-content h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin: 30px 0 16px;
}
.product-detail-content p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 16px;
}
.product-detail-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}
.product-detail-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-light);
}
.product-detail-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 20px 0;
}

/* Product Specs Section */
.product-specs-section {
  padding: 80px 0;
  background: var(--bg-gray);
}
.specs-table-wrapper {
  margin-top: 40px;
  overflow-x: auto;
}
.specs-table-wrapper table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.specs-table-wrapper th,
.specs-table-wrapper td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.specs-table-wrapper th {
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.specs-table-wrapper td {
  font-size: 14px;
  color: var(--text);
}
.specs-table-wrapper tr:last-child td {
  border-bottom: none;
}
.specs-table-wrapper tr:hover td {
  background: rgba(204,0,51,0.02);
}

/* Related Products Section */
.related-products-section {
  padding: 80px 0;
  background: #fff;
}

/* ========== About Page ========== */
.about-page { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; }
.about-page h3 {
  font-size: 22px; font-weight: 600; margin: 30px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--primary);
}
.about-page p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 16px; }

/* ========== Service Page ========== */
.service-page { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 50px; }
.service-card {
  text-align: center; padding: 40px 30px;
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.service-card .icon { font-size: 48px; margin-bottom: 16px; }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-light); }
.service-page h3 {
  font-size: 22px; font-weight: 600; margin: 30px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--primary);
}
.service-page p { font-size: 15px; color: var(--text-light); line-height: 1.9; margin-bottom: 16px; }

/* ========== Solutions Page ========== */
.solutions-page { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; }
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  padding: 40px 30px; background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); text-align: center; transition: var(--transition);
  border: 1px solid transparent;
}
.solution-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.solution-card .icon { font-size: 56px; margin-bottom: 20px; }
.solution-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.solution-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ========== Solution Detail ========== */
/* Solution Hero */
.solution-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
  overflow: hidden;
}
.solution-hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('/images/hero-solution.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}
.solution-hero .container {
  position: relative;
  z-index: 1;
}
.solution-hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.solution-series-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding: 6px 20px;
  background: rgba(204,0,51,0.15);
  border-radius: 20px;
}
.solution-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
}
.solution-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.solution-hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Solution Detail Content */
.solution-detail-content {
  padding: 80px 0;
  background: #fff;
}
.solution-content-inner {
  max-width: 900px;
  margin: 0 auto;
}
.solution-cover-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 50px;
}
.solution-cover-image img {
  width: 100%;
  height: auto;
  display: block;
}
.solution-body {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-light);
}
.solution-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--dark);
  margin: 50px 0 24px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--primary);
}
.solution-body h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin: 36px 0 18px;
}
.solution-body p {
  margin-bottom: 18px;
}
.solution-body ul {
  padding-left: 20px;
  margin-bottom: 24px;
}
.solution-body ul li {
  list-style: disc;
  margin-bottom: 10px;
  color: var(--text-light);
}
.solution-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 24px 0;
}
.solution-empty-tip {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-lighter);
}

/* Related Solutions */
.related-solutions-section {
  padding: 80px 0;
  background: var(--bg-gray);
}

/* Solution CTA */
.solution-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.solution-cta-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.solution-cta-inner h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.solution-cta-inner p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  line-height: 1.7;
}
.solution-cta-inner .btn-primary {
  background: #fff;
  color: var(--primary);
}
.solution-cta-inner .btn-primary:hover {
  background: rgba(255,255,255,0.9);
  color: var(--primary);
}

/* ========== Footer — 深色风格 ========== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 70px 0 0;
}
.footer-main { padding-bottom: 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; max-width: var(--max-width);
  margin: 0 auto; padding: 0 20px;
}
.footer-col h4, .footer-col-title {
  color: #fff; font-size: 18px; font-weight: 600;
  margin-bottom: 24px; position: relative; padding-bottom: 12px;
}
.footer-col-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 30px; height: 2px; background: var(--primary);
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-img { width: 42px; height: 42px; }
.footer-company-name { font-size: 16px; font-weight: 600; color: #fff; }
.footer-intro { font-size: 14px; line-height: 1.8; margin-bottom: 16px; color: rgba(255,255,255,0.5); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: rgba(255,255,255,0.06);
  border-radius: 50%; color: rgba(255,255,255,0.5);
  transition: var(--transition); border: 1px solid rgba(255,255,255,0.08);
}
.social-link:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.footer-logo-huideno { background: #fff; border-radius: 4px; padding: 3px; object-fit: contain; }
.footer-qr-list { display: flex; gap: 18px; margin-top: 22px; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 80px; height: 80px; border-radius: 4px; background: #fff; padding: 4px; display: block; margin-bottom: 6px; }
.footer-qr-item span { font-size: 12px; color: rgba(255,255,255,.6); }
.footer-links li { margin-bottom: 10px; }
.footer-links li a {
  font-size: 14px; color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer-links li a:hover { color: var(--primary); padding-left: 6px; }
.footer-contact { display: flex; flex-direction: column; gap: 14px; }
.footer-contact-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.5);
}
.contact-icon { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.footer-bottom { padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
  font-size: 13px; flex-wrap: wrap; gap: 10px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom a { color: inherit; transition: var(--transition); }
.footer-bottom a:hover { color: var(--primary); }
.footer-divider { margin: 0 8px; opacity: 0.3; }

/* ========== Back to Top ========== */
.back-to-top {
  position: fixed; right: 20px; bottom: 100px;
  width: 44px; height: 44px;
  background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer; z-index: 9997;
  transition: var(--transition); opacity: 0; visibility: hidden;
  color: #fff;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary); border-color: var(--primary); }

/* ========== Customer Service Widget ========== */
.cs-widget { position: fixed; right: 20px; bottom: 30px; z-index: 9999; }
.cs-float-btn {
  width: 56px; height: 56px; background: var(--primary);
  color: #fff; border-radius: 50%;
  box-shadow: 0 4px 20px rgba(204,0,51,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; transition: var(--transition);
  position: relative;
}
.cs-float-btn:hover { transform: scale(1.08); }
.cs-float-icon { line-height: 1; }
.cs-pulse-badge {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px;
  background: #f44336; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,67,54,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(244,67,54,0); }
}
.cs-popup {
  position: fixed; right: -400px; bottom: 100px;
  width: 380px; height: 520px; background: #fff;
  border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
  z-index: 10000;
}
.cs-popup.cs-popup-open { right: 20px; }
.cs-popup-header {
  background: var(--primary); color: #fff;
  padding: 14px 20px; border-radius: 12px 12px 0 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.cs-popup-header-left { display: flex; align-items: center; gap: 10px; }
.cs-avatar {
  width: 36px; height: 36px; background: rgba(255,255,255,0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.cs-popup-title { font-size: 16px; font-weight: 600; display: block; }
.cs-popup-status { font-size: 12px; opacity: 0.8; }
.cs-popup-close {
  font-size: 24px; cursor: pointer; opacity: 0.8;
  transition: var(--transition); color: #fff;
}
.cs-popup-close:hover { opacity: 1; }
.cs-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.cs-message { display: flex; }
.cs-message--bot { justify-content: flex-start; }
.cs-message--user { justify-content: flex-end; }
.cs-message-bubble {
  max-width: 80%; padding: 10px 14px;
  border-radius: 12px; font-size: 14px; line-height: 1.6;
  word-break: break-word;
}
.cs-message--bot .cs-message-bubble { background: var(--bg-gray); color: var(--text); border-bottom-left-radius: 4px; }
.cs-message--user .cs-message-bubble { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.cs-quick-replies {
  padding: 10px 16px; display: flex; flex-wrap: wrap;
  gap: 8px; border-top: 1px solid var(--border);
}
.cs-quick-btn {
  padding: 6px 14px; border: 1px solid var(--primary);
  color: var(--primary); border-radius: 20px;
  font-size: 13px; transition: var(--transition);
  white-space: nowrap;
}
.cs-quick-btn:hover { background: var(--primary); color: #fff; }
.cs-input-area {
  padding: 10px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px;
}
.cs-input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 20px; font-size: 13px; outline: none;
}
.cs-input:focus { border-color: var(--primary); }
.cs-send-btn {
  width: 38px; height: 38px; background: var(--primary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.cs-send-btn:hover { background: var(--primary-dark); }
.cs-contact-form { padding: 16px; }
.cs-form-title { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.cs-form-group { margin-bottom: 10px; }
.cs-form-input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 13px; outline: none;
  transition: border-color 0.2s;
}
.cs-form-input:focus { border-color: var(--primary); }
.cs-form-textarea { resize: vertical; min-height: 60px; }
.cs-form-submit {
  width: 100%; padding: 10px; background: var(--primary);
  color: #fff; border-radius: 6px; font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.cs-form-submit:hover { background: var(--primary-dark); }
.cs-back-chat {
  width: 100%; padding: 8px; margin-top: 8px;
  color: var(--text-light); font-size: 13px; text-decoration: underline;
}
.cs-back-chat:hover { color: var(--primary); }

/* ========== Placeholder ========== */
.placeholder-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.placeholder-bg.blue {
  background: linear-gradient(135deg, #0056a7 0%, #006fd4 100%);
}
.placeholder-bg.red {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ========== Admin Styles — 保留原有设计，更新红色 ========== */

.admin-body {
  font-size: 14px; background: #f0f2f5;
  font-family: var(--font); -webkit-font-smoothing: antialiased;
}

.admin-layout { display: flex; min-height: 100vh; }

/* ===== SIDEBAR ===== */
.admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #0d1b2a 0%, #1b2838 100%);
  color: rgba(255,255,255,0.85);
  flex-shrink: 0; display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100; overflow-y: auto;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.admin-sidebar-logo {
  padding: 24px 20px 20px; text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.admin-sidebar-logo a {
  font-size: 20px; font-weight: 700; color: #fff;
  letter-spacing: 2px; display: block;
}
.admin-sidebar-logo::after {
  content: '管理后台'; display: block; font-size: 11px;
  color: rgba(255,255,255,0.4); margin-top: 4px; letter-spacing: 1px;
}

.admin-sidebar-nav { padding: 12px 0; flex: 1; }
.admin-sidebar-nav ul { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.admin-sidebar-nav li a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-radius: 8px;
  color: rgba(255,255,255,0.65);
  transition: all 0.2s ease; font-size: 14px;
}
.admin-sidebar-nav li a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-sidebar-nav li.active a {
  color: #fff; background: var(--primary);
  box-shadow: 0 4px 12px rgba(204,0,51,0.3); font-weight: 500;
}
.admin-sidebar-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.admin-sidebar-nav .nav-text { flex: 1; }

.admin-sidebar-nav li:last-child {
  margin-top: auto; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 8px;
}
.admin-sidebar-nav li:last-child a:hover { color: #ff6b6b; background: rgba(255,107,107,0.1); }

/* ===== MAIN AREA ===== */
.admin-main { flex: 1; margin-left: 240px; display: flex; flex-direction: column; min-height: 100vh; }

.admin-header {
  background: #fff; padding: 0 28px; height: 56px;
  display: flex; align-items: center; justify-content: flex-end;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: sticky; top: 0; z-index: 50;
}
.admin-header-user { display: flex; align-items: center; gap: 8px; }
.admin-header-username { font-size: 14px; color: var(--text); font-weight: 500; }
.admin-header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}

.admin-content { flex: 1; padding: 24px 28px; overflow-y: auto; }

.admin-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.admin-page-header h2 { font-size: 22px; font-weight: 600; color: var(--text); }

/* ===== STAT CARDS ===== */
.admin-stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.admin-stat-card {
  background: #fff; border-radius: 12px; padding: 20px 24px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.25s ease; border: 1px solid transparent;
}
.admin-stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.admin-stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.admin-stat-card:nth-child(1) .admin-stat-icon { background: #fff0f3; color: var(--primary); }
.admin-stat-card:nth-child(2) .admin-stat-icon { background: #f6ffed; color: #52c41a; }
.admin-stat-card:nth-child(3) .admin-stat-icon { background: #f9f0ff; color: #722ed1; }
.admin-stat-card:nth-child(4) .admin-stat-icon { background: #fff7e6; color: #fa8c16; }
.admin-stat-card:nth-child(5) .admin-stat-icon { background: #fff1f0; color: #f5222d; }
.admin-stat-card:nth-child(6) .admin-stat-icon { background: #e6fffb; color: #13c2c2; }
.admin-stat-info { flex: 1; }
.admin-stat-info h3 { font-size: 13px; font-weight: 400; color: var(--text-lighter); margin-bottom: 4px; }
.admin-stat-number { font-size: 28px; font-weight: 700; color: var(--text); line-height: 1; }
.admin-stat-card-warning .admin-stat-number { color: #fa8c16; }

/* ===== QUICK LINKS ===== */
.admin-quick-links {
  background: #fff; border-radius: 12px; padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.admin-quick-links h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.admin-quick-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.admin-quick-link {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: 8px;
  background: var(--bg-gray); color: var(--text);
  font-size: 14px; font-weight: 500; transition: all 0.2s ease;
}
.admin-quick-link:hover {
  background: var(--primary); color: #fff;
  transform: translateY(-2px); box-shadow: 0 4px 12px rgba(204,0,51,0.2);
}
.admin-quick-link .quick-icon { font-size: 18px; }

/* ===== BUTTONS ===== */
.admin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 6px; font-size: 13px;
  font-weight: 500; cursor: pointer; transition: all 0.2s ease;
  border: 1px solid transparent; background: #fff;
  color: var(--text); border-color: var(--border); line-height: 1.4;
}
.admin-btn:hover { color: var(--primary); border-color: var(--primary); }
.admin-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.admin-btn-sm { padding: 5px 12px; font-size: 12px; }
.admin-btn-danger { color: #ff4d4f; border-color: #ffccc7; }
.admin-btn-danger:hover { color: #fff; background: #ff4d4f; border-color: #ff4d4f; }
.admin-btn-success { color: #52c41a; border-color: #b7eb8f; }
.admin-btn-success:hover { color: #fff; background: #52c41a; border-color: #52c41a; }
.admin-btn-block { display: flex; width: 100%; justify-content: center; padding: 12px; font-size: 15px; }

/* ===== TABLE ===== */
.admin-table-wrapper {
  background: #fff; border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05); overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead th {
  padding: 12px 16px; text-align: left; font-weight: 600;
  font-size: 13px; color: var(--text-light);
  background: #fafbfc; border-bottom: 2px solid #f0f0f0; white-space: nowrap;
}
.admin-table tbody td {
  padding: 12px 16px; border-bottom: 1px solid #f5f5f5;
  font-size: 13px; color: var(--text);
}
.admin-table tbody tr:hover td { background: #fafbfc; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-row-unread { background: #fffbe6; }
.admin-row-unread:hover td { background: #fff7cc !important; }
.admin-actions { display: flex; gap: 8px; white-space: nowrap; }
.admin-status {
  display: inline-block; padding: 2px 10px;
  border-radius: 10px; font-size: 12px; font-weight: 500;
}
.admin-status-read { background: #f6ffed; color: #52c41a; }
.admin-status-unread { background: #fff7e6; color: #fa8c16; }
.admin-badge {
  display: inline-block; padding: 2px 10px;
  border-radius: 12px; font-size: 12px; font-weight: 600;
  background: #fff0f3; color: var(--primary);
}
.admin-tag {
  display: inline-block; padding: 2px 10px;
  border-radius: 4px; font-size: 12px;
  background: #f0f0f0; color: #555;
}
.admin-filter {
  padding: 8px 12px; border: 1px solid #ddd;
  border-radius: 6px; font-size: 13px;
  background: #fff; color: #333; cursor: pointer;
}
.admin-filter:focus { outline: none; border-color: var(--primary); }
.admin-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; margin-top: 20px; padding: 16px 0;
}
.admin-page-info { font-size: 13px; color: #666; }
.admin-header-actions { display: flex; align-items: center; gap: 10px; }
.admin-cell-preview {
  max-width: 200px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* ===== ALERTS ===== */
.admin-alert {
  padding: 12px 18px; border-radius: 8px;
  margin-bottom: 16px; font-size: 13px; font-weight: 500;
}
.admin-alert-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.admin-alert-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }

/* ===== MODALS ===== */
.admin-modal,
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45); z-index: 10000;
  display: none; align-items: center; justify-content: center;
}
.admin-modal.active,
.modal-overlay.show,
.modal-overlay.active { display: flex; }
.admin-modal-content,
.admin-modal .modal,
.modal-overlay .modal {
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
  width: 92%; max-width: 660px; max-height: 85vh;
  display: flex; flex-direction: column;
  animation: adminModalIn 0.25s ease;
}
@keyframes adminModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.admin-modal-header,
.admin-modal .modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid #f0f0f0;
}
.admin-modal-header h3,
.admin-modal .modal-header h3,
.admin-modal .modal h3 {
  font-size: 17px; font-weight: 600; color: var(--text); margin: 0;
}
.admin-modal-close {
  width: 32px; height: 32px; display: flex;
  align-items: center; justify-content: center;
  border-radius: 50%; font-size: 20px;
  color: var(--text-lighter); border: none;
  background: none; cursor: pointer; transition: all 0.2s ease;
}
.admin-modal-close:hover { background: var(--bg-gray); color: var(--text); }
.admin-modal-content form,
.admin-modal .modal form {
  padding: 24px; overflow-y: auto;
  max-height: calc(85vh - 70px);
}

/* ===== FORMS ===== */
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.admin-form-group { display: flex; flex-direction: column; gap: 6px; }
.admin-form-group label { font-size: 13px; font-weight: 500; color: var(--text); }
.admin-form-group input[type="text"],
.admin-form-group input[type="email"],
.admin-form-group input[type="password"],
.admin-form-group input[type="number"],
.admin-form-group input[type="url"],
.admin-form-group input[type="file"],
.admin-form-group textarea,
.admin-form-group select {
  padding: 9px 13px; border: 1px solid #d9d9d9;
  border-radius: 8px; font-size: 13px;
  font-family: inherit; outline: none;
  transition: all 0.2s ease; background: #fff; color: var(--text);
}
.admin-form-group input:focus,
.admin-form-group textarea:focus,
.admin-form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(204,0,51,0.1);
}
.admin-form-group textarea { min-height: 80px; resize: vertical; line-height: 1.6; }
.admin-form-group select { cursor: pointer; appearance: auto; }
.admin-form-checkbox label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; }
.admin-form-actions {
  display: flex; flex-direction: row; flex-wrap: wrap;
  align-items: center; gap: 10px; justify-content: flex-end;
  padding-top: 12px; border-top: 1px solid #f0f0f0;
}
/* 操作按钮保持自适应宽度，禁止被 flex 容器拉伸成整行 */
.admin-form-actions > .admin-btn,
.admin-form-actions > button {
  flex: 0 0 auto; width: auto; align-self: center;
}
/* 弹窗底部/表单内的按钮组统一为一行紧凑排列 */
.admin-modal .admin-form-actions,
.admin-modal-content .admin-form-actions { margin-top: 4px; }

/* 后台「一键翻译」按钮 */
.admin-btn-translate {
  background: #fff; color: #cc0033; border: 1px solid #cc0033;
}
.admin-btn-translate:hover:not(:disabled) { background: #cc0033; color: #fff; }
.admin-btn-translate:disabled { opacity: .6; cursor: default; }
.admin-section-title {
  font-size: 15px; font-weight: 600; color: var(--primary);
  margin: 8px 0 4px; padding-left: 12px; border-left: 3px solid var(--primary);
}
.admin-form-group small { color: var(--text-lighter); font-size: 12px; margin-top: 2px; }
.admin-form-section {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
}
.admin-form-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}
.admin-form-hint {
  font-size: 12px;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

/* ===== INQUIRY DETAIL ===== */
.admin-inquiry-detail { padding: 0 24px 24px; }
.admin-detail-row {
  display: flex; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid #f5f5f5; font-size: 14px;
}
.admin-detail-row label { width: 70px; flex-shrink: 0; color: var(--text-lighter); font-weight: 500; }
.admin-detail-row span,
.admin-detail-message { flex: 1; color: var(--text); word-break: break-word; }
.admin-detail-message { background: var(--bg-gray); padding: 12px 14px; border-radius: 8px; line-height: 1.7; }

/* ===== LOGIN ===== */
.admin-login-wrapper {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b2a 0%, #1b3a5c 50%, #1a0008 100%);
}
.admin-login-box {
  width: 400px; background: #fff;
  border-radius: 16px; padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: adminLoginIn 0.4s ease;
}
@keyframes adminLoginIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.admin-login-logo { text-align: center; margin-bottom: 36px; }
.admin-login-logo h1 { font-size: 28px; font-weight: 700; color: var(--primary); letter-spacing: 2px; }
.admin-login-logo p { font-size: 14px; color: var(--text-lighter); margin-top: 6px; }
.admin-login-form { display: flex; flex-direction: column; gap: 20px; }
.admin-login-form .admin-form-group label { margin-bottom: 6px; }
.admin-login-form .admin-form-group input { padding: 12px 15px; font-size: 15px; border-radius: 10px; }

/* ===== Downloads admin extras ===== */
.dl-type-tag {
  display: inline-block; padding: 2px 8px;
  background: #fff0f3; color: var(--primary);
  border-radius: 4px; font-size: 11px; font-weight: 600;
}
.btn-danger { color: #ff4d4f; font-size: 13px; cursor: pointer; }
.btn-danger:hover { text-decoration: underline; }

/* ===== BACK TO TOP (site) adjustments ===== */
.back-to-top { z-index: 9997; }

/* ---- Admin Responsive ---- */
@media (max-width: 1024px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-quick-links-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .admin-stat-card { padding: 14px 16px; }
  .admin-stat-icon { width: 40px; height: 40px; font-size: 20px; }
  .admin-stat-number { font-size: 22px; }
  .admin-content { padding: 16px; }
  .admin-header { padding: 0 16px; }
  .admin-page-header h2 { font-size: 18px; }
  .admin-modal-content, .admin-modal .modal, .modal-overlay .modal {
    width: 95%; max-height: 90vh;
  }
}

@media (max-width: 600px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    position: fixed; width: 100%; height: auto;
    bottom: auto; z-index: 100;
  }
  .admin-sidebar-logo { padding: 12px 16px; }
  .admin-sidebar-logo a { font-size: 16px; }
  .admin-sidebar-logo::after { display: none; }
  .admin-sidebar-nav { padding: 0; }
  .admin-sidebar-nav ul {
    flex-direction: row; overflow-x: auto;
    padding: 0 8px 8px; gap: 4px;
  }
  .admin-sidebar-nav li a {
    padding: 8px 12px; font-size: 12px;
    border-radius: 6px; white-space: nowrap;
  }
  .admin-sidebar-nav .nav-text { display: inline; }
  .admin-sidebar-nav .nav-icon { font-size: 14px; width: auto; }
  .admin-sidebar-nav li:last-child { border-top: none; padding-top: 0; margin-top: 0; margin-left: auto; }
  .admin-main { margin-left: 0; margin-top: 90px; }
  .admin-stats-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-header { display: none; }
  .admin-quick-links-grid { grid-template-columns: 1fr 1fr; }
  .admin-login-box { width: 90%; padding: 32px 24px; }
}

@media (max-width: 400px) {
  .admin-stats-grid { grid-template-columns: 1fr; }
  .admin-quick-links-grid { grid-template-columns: 1fr; }
  .admin-actions { flex-direction: column; gap: 4px; }
}

/* override old admin styles */
.admin-card { display: none; }
.admin-stats { display: none; }
.admin-stat { display: none; }
.btn-submit { display: inline-block; padding: 12px 40px; background: var(--primary); color: #fff; border: none; border-radius: 6px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(204,0,51,0.3); }
.old-login-box { display: none; }

/* ========== Downloads Page ========== */
.download-cat-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 24px 0 36px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.download-cat-tab {
  padding: 10px 20px; border-radius: 24px;
  font-size: 14px; color: var(--text-light);
  background: var(--bg-gray); transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.download-cat-tab:hover { color: var(--primary); background: rgba(204,0,51,0.06); }
.download-cat-tab.active { background: var(--primary); color: #fff; }
.cat-tab-icon { font-size: 16px; }

.download-featured-section { margin-bottom: 48px; }
.download-section-title {
  font-size: 22px; font-weight: 700; color: var(--text);
  margin-bottom: 24px; padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex; align-items: baseline; gap: 10px;
}
.download-count { font-size: 14px; color: var(--text-lighter); font-weight: 400; }

.download-featured-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.download-featured-card {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, #fff0f3 0%, #ffe0e6 100%);
  border: 1px solid #ffccd5; border-radius: 12px;
  padding: 20px; transition: var(--transition); text-decoration: none; color: inherit;
}
.download-featured-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}
.dl-featured-icon { font-size: 42px; flex-shrink: 0; }
.dl-featured-info { flex: 1; min-width: 0; }
.dl-featured-info h4 {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl-featured-info p {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dl-featured-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-lighter); }
.dl-type-badge {
  display: inline-block; padding: 2px 8px;
  background: var(--primary); color: #fff;
  border-radius: 3px; font-size: 11px; font-weight: 600;
}
.dl-featured-action {
  width: 44px; height: 44px; background: var(--primary);
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: var(--transition);
}
.download-featured-card:hover .dl-featured-action { transform: scale(1.1); }

.download-list-section { margin-bottom: 60px; }
.download-list { display: flex; flex-direction: column; gap: 12px; }

.download-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: #fff;
  border: 1px solid var(--border); border-radius: 10px;
  transition: var(--transition); text-decoration: none; color: inherit;
  gap: 16px;
}
.download-item:hover {
  border-color: var(--primary); box-shadow: 0 2px 12px rgba(204,0,51,0.08);
}
.dl-item-left { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; }
.dl-item-icon { font-size: 36px; flex-shrink: 0; width: 48px; text-align: center; }
.dl-item-info { flex: 1; min-width: 0; }
.dl-item-title {
  font-size: 16px; font-weight: 600; color: var(--text);
  margin-bottom: 4px; display: flex; align-items: center; gap: 8px;
}
.dl-hot-badge {
  display: inline-block; padding: 1px 8px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: #fff; border-radius: 10px;
  font-size: 11px; font-weight: 700;
}
.dl-item-desc {
  font-size: 13px; color: var(--text-light);
  margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dl-item-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-lighter); flex-wrap: wrap; }
.dl-type-tag {
  display: inline-block; padding: 1px 7px;
  background: #fff0f3; color: var(--primary);
  border-radius: 3px; font-size: 11px; font-weight: 600;
}
.dl-item-right { flex-shrink: 0; }
.dl-download-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 24px; background: var(--primary);
  color: #fff; border-radius: 6px; font-size: 14px; font-weight: 500;
  transition: var(--transition); white-space: nowrap;
}
.download-item:hover .dl-download-btn { background: var(--primary-dark); }

.download-empty { text-align: center; padding: 60px 20px; color: var(--text-lighter); }
.download-empty-icon { font-size: 56px; margin-bottom: 16px; }
.download-empty p { font-size: 16px; }

/* ==========================================
   Custom Confirm Dialog
   ========================================== */
.custom-confirm-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5); z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  animation: confirmFadeIn 0.2s ease;
}
@keyframes confirmFadeIn { from { opacity: 0; } to { opacity: 1; } }

.custom-confirm-box {
  background: #fff; border-radius: 12px; padding: 32px 28px 24px;
  max-width: 400px; width: 90%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: confirmScaleIn 0.25s ease;
}
@keyframes confirmScaleIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.custom-confirm-icon { font-size: 48px; margin-bottom: 16px; line-height: 1; }
.custom-confirm-message { font-size: 16px; color: #333; margin: 0 0 24px; line-height: 1.6; }
.custom-confirm-actions { display: flex; gap: 12px; justify-content: center; }
.custom-confirm-btn {
  padding: 10px 28px; border-radius: 8px; border: none; font-size: 14px;
  cursor: pointer; transition: all 0.2s; font-weight: 500;
}
.custom-confirm-cancel { background: #f0f0f0; color: #666; }
.custom-confirm-cancel:hover { background: #e0e0e0; }
.custom-confirm-ok { background: #e74c3c; color: #fff; }
.custom-confirm-ok:hover { background: #c0392b; }

/* =========================================
   图片管理 - 网格布局
   ========================================= */
.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.image-card {
  background: #fff; border-radius: 10px;
  border: 1px solid #e5e7eb; overflow: hidden;
  transition: all 0.25s ease;
}
.image-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(204,0,51,0.1);
  transform: translateY(-2px);
}

.image-card-thumb {
  width: 100%; height: 160px;
  overflow: hidden; background: #f9fafb;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.image-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; transition: transform 0.3s ease;
}
.image-card:hover .image-card-thumb img { transform: scale(1.05); }

.image-card-info { padding: 10px 12px; }
.image-card-name {
  display: block; font-size: 13px;
  color: #374151; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-weight: 500;
}
.image-card-meta { display: block; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.image-card-date { display: block; font-size: 11px; color: #b0b7c3; margin-top: 2px; }

.image-card-actions {
  display: flex; gap: 4px; padding: 8px 12px 12px;
  border-top: 1px solid #f3f4f6;
}
.image-card-btn {
  flex: 1; padding: 6px 0; border: 1px solid #e5e7eb;
  border-radius: 6px; background: #fff; cursor: pointer;
  font-size: 14px; text-align: center; transition: all 0.15s;
}
.image-card-btn:hover { background: #fff0f3; border-color: var(--primary); color: var(--primary); }
.image-card-btn.del-btn:hover { background: #fef2f2; border-color: #ef4444; color: #ef4444; }

/* =========================================
   图片上传区域
   ========================================= */
.image-upload-group { display: flex; align-items: flex-start; gap: 12px; }
.image-preview-box {
  position: relative; width: 140px; height: 100px;
  border-radius: 8px; overflow: hidden;
  border: 2px dashed #d1d5db; background: #f9fafb; flex-shrink: 0;
}
.image-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  border: none; background: rgba(0,0,0,0.6); color: #fff;
  font-size: 14px; line-height: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.image-preview-remove:hover { background: #ef4444; }
.image-upload-btns { display: flex; flex-direction: column; gap: 6px; }
.image-upload-label { cursor: pointer !important; }

/* =========================================
   上传拖拽区
   ========================================= */
.upload-dropzone {
  border: 2px dashed #d1d5db; border-radius: 12px;
  padding: 40px 20px; text-align: center;
  transition: all 0.3s; background: #fafbfc; cursor: pointer;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over { border-color: var(--primary); background: #fff0f3; }
.dropzone-inner { pointer-events: none; }
.dropzone-icon { font-size: 48px; line-height: 1; margin-bottom: 12px; }
.dropzone-inner p { margin: 4px 0; color: #6b7280; font-size: 14px; }
.dropzone-hint { font-size: 12px !important; color: #9ca3af !important; }
.dropzone-inner .admin-btn { pointer-events: auto; margin-top: 12px; }

/* =========================================
   进度条
   ========================================= */
.progress-bar { width: 100%; height: 8px; background: #e5e7eb; border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px; transition: width 0.3s ease;
}

/* =========================================
   URL 复制框
   ========================================= */
.url-copy-box { display: flex; gap: 8px; margin-top: 4px; }
.url-copy-box input {
  flex: 1; padding: 8px 12px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 13px;
  background: #f9fafb; color: #374151;
}

/* =========================================
   Toast 提示
   ========================================= */
.admin-toast {
  position: fixed; top: 20px; right: 20px;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: #fff;
  z-index: 99999; opacity: 0; transform: translateX(100%);
  transition: all 0.3s ease; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.admin-toast.show { opacity: 1; transform: translateX(0); }
.admin-toast-success { background: #10b981; }
.admin-toast-error { background: #ef4444; }
.admin-toast-info { background: var(--primary); }

/* =========================================
   筛选栏
   ========================================= */
.admin-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: #f9fafb;
  border-radius: 10px; margin-bottom: 20px;
  flex-wrap: wrap; gap: 12px;
}
.filter-group { display: flex; align-items: center; gap: 8px; }
.filter-group label { font-size: 13px; color: #6b7280; font-weight: 500; }
.filter-group select {
  padding: 6px 12px; border: 1px solid #d1d5db;
  border-radius: 6px; font-size: 13px;
  background: #fff; color: #374151;
}
.filter-info { font-size: 13px; color: #9ca3af; }

/* =========================================
   分页
   ========================================= */
.admin-pagination a {
  padding: 8px 16px; border: 1px solid #d1d5db;
  border-radius: 8px; color: var(--primary);
  text-decoration: none; font-size: 14px; transition: all 0.2s;
}
.admin-pagination a:hover { background: #fff0f3; border-color: var(--primary); }
.admin-pagination span { font-size: 14px; color: #6b7280; }

/* =========================================
   空状态
   ========================================= */
.admin-empty { text-align: center; padding: 60px 20px; color: #9ca3af; }

/* =========================================
   响应式 - 图片网格
   ========================================= */
@media (max-width: 768px) {
  .images-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .image-card-thumb { height: 120px; }
  .image-upload-group { flex-direction: column; }
  .image-preview-box { width: 100%; height: 160px; }
  .image-upload-btns { flex-direction: row; }
}

/* ============================================== */
/*  ============== FRONTEND RESPONSIVE =========== */
/* ============================================== */

/* Tablet Landscape (≤1024px) */
@media (max-width: 1024px) {
  :root { --header-height: 64px; }

  .nav-item > .nav-link { padding: 20px 10px; font-size: 14px; }
  .mega-menu-grid { grid-template-columns: repeat(2, 1fr); }
  .dropdown-menu { min-width: 480px; }

  .hero-title { font-size: 42px; }
  .hero-subtitle { font-size: 16px; letter-spacing: 4px; }
  .hero-desc { font-size: 17px; }

  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .recommended-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 40px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .service-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .news-page-list { grid-template-columns: repeat(2, 1fr); }
  .download-featured-grid { grid-template-columns: repeat(2, 1fr); }

  .products-layout { grid-template-columns: 220px 1fr; gap: 20px; }

  .section { padding: 80px 0; }
  .about-section { padding: 80px 0; }
}

/* Tablet Portrait (≤768px) */
@media (max-width: 768px) {
  :root { --header-height: var(--header-height-mobile); }
  .container { padding: 0 15px; }

  .header-inner { height: 60px; }
  .logo-img { height: 32px; }
  .logo-text { font-size: 17px; }
  .logo-subtitle { font-size: 10px; }

  .menu-toggle { display: flex; }

  .main-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(10,10,10,0.98); z-index: 1000;
    flex-direction: column; align-items: stretch;
    padding: 80px 20px 40px;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    overflow-y: auto;
  }
  .main-nav.nav-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: stretch; width: 100%; }
  .nav-item { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-item > .nav-link { display: block; padding: 16px 0; font-size: 16px; color: rgba(255,255,255,0.85); }
  .nav-item > .nav-link::after { display: none; }

  .dropdown-toggle {
    display: flex; position: absolute;
    right: 0; top: 12px; width: 36px; height: 36px;
    align-items: center; justify-content: center; z-index: 2;
  }
  .dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .dropdown-menu {
    position: static; transform: none;
    opacity: 1; visibility: visible;
    box-shadow: none; border-radius: 0;
    min-width: auto; padding: 0 0 16px 0;
    display: none; background: transparent;
  }
  .nav-item.dropdown-open .dropdown-menu { display: block; }
  .mega-menu-grid { grid-template-columns: 1fr; gap: 12px; padding: 0; }
  .solution-dropdown-list { padding-left: 16px; }
  .solution-dropdown-list li a {
    color: rgba(255,255,255,0.6);
    padding: 8px 0;
    background: transparent;
  }
  .solution-dropdown-list li a:hover {
    color: var(--primary);
    background: transparent;
    padding-left: 0;
  }
  .mega-col-title {
    font-size: 14px; border-bottom: none; color: var(--primary);
    padding-left: 8px; border-left: 3px solid var(--primary);
    margin-bottom: 8px;
  }
  .mega-col-list { padding-left: 16px; }
  .mega-col-list li a { font-size: 14px; padding: 8px 0; color: rgba(255,255,255,0.6); }

  .header-actions { gap: 8px; }
  .lang-switch { font-size: 12px; padding: 4px 10px; }

  /* Hero */
  .hero-section { height: 70vh; min-height: 450px; }
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 14px; letter-spacing: 3px; }
  .hero-desc { font-size: 15px; margin-bottom: 28px; }
  .hero-btn { padding: 12px 30px; font-size: 14px; }
  .hero-dots { bottom: 24px; }

  /* Sections */
  .section { padding: 60px 0; }
  .about-section { padding: 60px 0; }
  .section-title { margin-bottom: 40px; }
  .section-title h2 { font-size: 28px; }
  .section-title .en-title { font-size: 12px; letter-spacing: 3px; }

  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-text h3 { font-size: 24px; }
  .about-image { order: -1; }
  .about-image img { height: 280px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card .card-img { height: 180px; }
  .product-card .card-body { padding: 14px; }
  .product-card .card-title { font-size: 14px; }

  .recommended-card { flex-direction: column; text-align: center; padding: 28px; }
  .recommended-card .rc-img { width: 140px; height: 140px; }
  .recommended-card .rc-title { font-size: 20px; }
  .recommended-card .rc-specs { justify-content: center; }

  .solutions-tabs { gap: 6px; }
  .solutions-tabs .tab-btn { padding: 8px 16px; font-size: 13px; }
  .solution-content.active { grid-template-columns: 1fr; }
  .solution-text { padding: 30px; }
  .solution-image { min-height: 200px; }

  .news-grid { grid-template-columns: 1fr; gap: 20px; }
  .news-page-list { grid-template-columns: 1fr; gap: 16px; }
  .news-main .news-img { height: 200px; }
  .news-tabs a { padding: 8px 18px; font-size: 13px; }

  .products-layout { grid-template-columns: 1fr; padding: 24px 15px; }
  .sidebar { position: static; margin-bottom: 20px; }

  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { padding: 30px 24px; }

  .service-cards { grid-template-columns: 1fr; gap: 16px; }

  .download-featured-grid { grid-template-columns: 1fr; }
  .download-item { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .download-item .dl-item-right { align-self: stretch; }
  .download-item .dl-download-btn { width: 100%; text-align: center; justify-content: center; }
  .download-cat-tabs { gap: 8px; }
  .download-cat-tab { padding: 8px 14px; font-size: 13px; }

  .product-detail-header { grid-template-columns: 1fr; gap: 30px; }
  .product-gallery { min-height: 280px; }
  .product-info h1 { font-size: 24px; }

  .article-detail { padding: 24px 15px; }
  .article-header h1 { font-size: 24px; }

  .page-header { padding: 50px 0; }
  .page-header h1 { font-size: 28px; }

  .breadcrumb { margin-top: 60px; }

  .site-footer { padding: 50px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
  .footer-qr-list { justify-content: center; }

  .cs-popup {
    width: calc(100vw - 24px); right: -100vw;
    bottom: 12px; height: 460px; border-radius: 12px 12px 0 0;
  }
  .cs-popup.cs-popup-open { right: 12px; }
  .cs-float-btn { width: 50px; height: 50px; font-size: 22px; }
  .back-to-top { width: 38px; height: 38px; font-size: 16px; right: 12px; bottom: 80px; }
}

/* Small Phone (≤480px) */
@media (max-width: 480px) {
  .hero-section { height: 60vh; min-height: 380px; }
  .hero-title { font-size: 26px; }
  .hero-subtitle { font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; }
  .hero-desc { font-size: 14px; margin-bottom: 24px; }
  .hero-btn { padding: 10px 24px; font-size: 13px; }
  .hero-buttons { gap: 10px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card .card-img { height: 140px; }
  .product-card .card-body { padding: 12px; }
  .product-card .card-title { font-size: 13px; }
  .product-card .card-desc { font-size: 12px; }

  .stats-bar { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stat-item .num { font-size: 28px; }
  .stat-item .label { font-size: 11px; }

  .section-title h2 { font-size: 24px; }
  .section-title p { font-size: 14px; }

  .news-main .news-img { height: 160px; }
  .about-image img { height: 220px; }
  .news-main .news-body { padding: 16px; }
  .news-main .news-title { font-size: 16px; }

  .solution-card { padding: 24px 16px; }
  .solution-card .icon { font-size: 40px; }
  .solution-card h3 { font-size: 17px; }

  .page-header { padding: 40px 0; }
  .page-header h1 { font-size: 24px; }

  .download-cat-tabs { gap: 6px; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .download-cat-tab { padding: 6px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
  .download-section-title { font-size: 18px; }
  .dl-item-title { font-size: 14px; }
}

/* ============================================
   模板化编辑器 - Template Editors
   (用于CMS产品管理的描述/特性/规格编辑器)
   ============================================ */

.template-editor { margin-bottom: 12px; }

.template-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.template-editor-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.template-editor-actions { display: flex; gap: 6px; }
.template-editor-actions button {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px dashed var(--border);
  background: #fff;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
}
.template-editor-actions button:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(204,0,51,0.04);
}

/* --- 描述块编辑器 (Block Editor) --- */
.desc-blocks { display: flex; flex-direction: column; gap: 8px; }
.desc-block {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
}
.desc-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f0f0f0;
  font-size: 12px;
  color: var(--text-light);
}
.desc-block-type {
  display: flex;
  align-items: center;
  gap: 6px;
}
.desc-block-type select {
  font-size: 12px;
  padding: 2px 6px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
}
.desc-block-remove {
  width: 20px; height: 20px;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  border-radius: 3px;
}
.desc-block-remove:hover { background: #fee; color: var(--primary); }
.desc-block-body { padding: 8px; }
.desc-block-body textarea,
.desc-block-body input[type="text"] {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box;
  margin-bottom: 4px;
  resize: vertical;
}
.desc-block-body textarea:focus,
.desc-block-body input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(204,0,51,0.08);
}
.desc-block-body textarea { min-height: 60px; }
.desc-block-body .field-row { display: flex; gap: 6px; }
.desc-block-body .field-row > * { flex: 1; }
.desc-block-body .field-hint {
  font-size: 11px;
  color: var(--text-lighter);
  margin-top: 2px;
}

/* --- 特性卡片编辑器 (Feature Card Editor) --- */
.features-cards { display: flex; flex-direction: column; gap: 8px; }
.feature-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fafafa;
}
.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: #f0f0f0;
  font-size: 12px;
}
.feature-card-index { color: var(--text-lighter); }
.feature-card-remove {
  width: 20px; height: 20px;
  font-size: 12px;
  text-align: center;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  border-radius: 3px;
}
.feature-card-remove:hover { background: #fee; color: var(--primary); }
.feature-card-body { padding: 8px; }
.feature-card-body .field-row { display: flex; gap: 6px; margin-bottom: 4px; }
.feature-card-body .field-row > * { flex: 1; }
.feature-card-body input[type="text"],
.feature-card-body textarea {
  width: 100%;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-sizing: border-box;
}
.feature-card-body input[type="text"]:focus,
.feature-card-body textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(204,0,51,0.08);
}
.feature-card-body textarea { min-height: 48px; resize: vertical; }
.feature-icon-picker {
  display: flex;
  align-items: center;
  gap: 4px;
}
.feature-icon-display {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}
.feature-icon-display:hover { border-color: var(--primary); }
.feature-icon-input { flex: 1; }
.emoji-picker-popup {
  display: none;
  position: absolute;
  z-index: 9999;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  padding: 10px;
  max-width: 300px;
}
.emoji-picker-popup.show { display: grid; }
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}
.emoji-item {
  font-size: 20px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s;
}
.emoji-item:hover { background: #f0f0f0; }

/* --- 规格表格编辑器 (Specs Table Editor) --- */
.specs-table-editor { width: 100%; border-collapse: collapse; }
.specs-table-editor th {
  background: #f0f0f0;
  padding: 8px 6px;
  font-size: 12px;
  color: var(--text-light);
  border: 1px solid var(--border);
  text-align: left;
}
.specs-table-editor td {
  padding: 4px;
  border: 1px solid var(--border);
}
.specs-table-editor input[type="text"] {
  width: 100%;
  font-size: 13px;
  padding: 6px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  box-sizing: border-box;
}
.specs-table-editor input[type="text"]:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(204,0,51,0.08);
}
.specs-row-remove {
  width: 24px; height: 24px;
  font-size: 12px;
  border: none;
  background: transparent;
  color: #999;
  cursor: pointer;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.specs-row-remove:hover { background: #fee; color: var(--primary); }
.specs-add-row-btn {
  margin-top: 6px;
  font-size: 12px;
  padding: 5px 12px;
  border: 1px dashed var(--border);
  background: #fff;
  color: var(--text-light);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}
.specs-add-row-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(204,0,51,0.04);
}

/* --- 编辑器中英双语标签 --- */
.lang-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--primary);
  color: #fff;
  margin-right: 4px;
  vertical-align: middle;
  line-height: 1.6;
}
.lang-tag.en { background: #3a7bd5; }

/* --- HTML兼容模式提示 --- */
.compat-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 12px;
  color: #795548;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.compat-notice button {
  font-size: 11px;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid #ffe082;
  background: #fff;
  border-radius: 3px;
  cursor: pointer;
  color: #795548;
}

/* ============================================
   Header Login / User Menu
   ============================================ */
.header-login-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 20px;
  background: var(--primary); color: #fff;
  font-size: 13px; font-weight: 500;
  transition: var(--transition); white-space: nowrap;
}
.header-login-btn:hover {
  background: var(--primary-dark); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204,0,51,0.3);
}
.header-login-btn svg { flex-shrink: 0; }

.header-user-menu {
  position: relative; display: inline-block;
}
.header-user-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px 6px 6px; border-radius: 24px;
  background: rgba(255,255,255,0.1); color: #fff;
  font-size: 13px; font-weight: 500; transition: var(--transition);
}
.header-user-toggle:hover { background: rgba(255,255,255,0.2); }
.header-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
}
.header-user-name { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.header-user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  min-width: 160px; padding: 8px 0;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease; z-index: 1001;
}
.header-user-menu:hover .header-user-dropdown,
.header-user-menu:focus-within .header-user-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.header-user-dropdown a {
  display: block; padding: 10px 18px;
  font-size: 14px; color: var(--text);
  transition: var(--transition);
}
.header-user-dropdown a:hover { background: #fff0f3; color: var(--primary); }
.header-user-divider { height: 1px; background: var(--border); margin: 6px 0; }

/* ============================================
   Auth Modal (Login / Register)
   ============================================ */
.auth-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55); z-index: 12000;
  display: none; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.auth-modal-overlay.active { display: flex; }

.auth-modal {
  position: relative; width: 100%; max-width: 420px;
  background: #fff; border-radius: 12px;
  padding: 40px 36px 32px; box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: authModalIn 0.3s ease;
}
@keyframes authModalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: transparent; color: #999;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.auth-modal-close:hover { background: var(--bg-gray); color: var(--text); }

.auth-modal-header { text-align: center; margin-bottom: 24px; }
.auth-modal-header h2 {
  font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: 1px;
}

.auth-tabs {
  display: flex; gap: 20px; justify-content: center;
  margin-bottom: 28px; border-bottom: 1px solid var(--border);
}
.auth-tab {
  position: relative; padding: 8px 4px 14px;
  font-size: 15px; color: var(--text-light);
  background: none; border: none; cursor: pointer;
  transition: var(--transition);
}
.auth-tab.active { color: var(--primary); font-weight: 600; }
.auth-tab.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--primary);
}

.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }

.auth-input-group {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 6px;
  padding: 0 14px; background: #fff;
  transition: var(--transition);
}
.auth-input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(204,0,51,0.08); }
.auth-input {
  flex: 1; border: none; background: transparent;
  padding: 14px 0; font-size: 14px; color: var(--text);
  outline: none;
}
.auth-input::placeholder { color: var(--text-lighter); }

.auth-phone-prefix {
  font-size: 14px; color: var(--text); font-weight: 500;
  padding-right: 10px; border-right: 1px solid var(--border);
}
.auth-input-icon { color: var(--text-lighter); display: flex; align-items: center; }

.auth-code-group { padding-right: 4px; }
.auth-send-code {
  padding: 8px 12px; border-radius: 4px;
  border: 1px solid var(--primary); background: #fff;
  color: var(--primary); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.auth-send-code:hover { background: var(--primary); color: #fff; }
.auth-send-code.disabled { border-color: #ddd; color: #999; background: #f5f5f5; cursor: not-allowed; }

.auth-submit-btn {
  width: 100%; padding: 14px; border-radius: 6px;
  background: var(--primary); color: #fff;
  font-size: 16px; font-weight: 600; border: none;
  cursor: pointer; transition: var(--transition); margin-top: 4px;
}
.auth-submit-btn:hover { background: var(--primary-dark); box-shadow: 0 6px 20px rgba(204,0,51,0.3); }
.auth-submit-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.auth-modal-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 22px; font-size: 13px; color: var(--text-light);
}
.auth-modal-footer a { color: var(--primary); font-weight: 500; }
.auth-modal-footer a:hover { text-decoration: underline; }

.auth-message {
  padding: 10px 14px; border-radius: 6px;
  font-size: 13px; margin-bottom: 14px; text-align: center;
}
.auth-message-error { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.auth-message-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }

/* ============================================
   Profile Page
   ============================================ */
.profile-page { padding: 40px 20px 100px; }
.profile-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-lighter); margin-bottom: 24px;
}
.profile-breadcrumb a { color: var(--text-light); }
.profile-breadcrumb a:hover { color: var(--primary); }
.profile-breadcrumb-sep { color: #ccc; }
.profile-breadcrumb-current { color: var(--primary); }

.profile-layout {
  display: grid; grid-template-columns: 260px 1fr; gap: 24px;
  align-items: start;
}

.profile-sidebar {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-user-card {
  padding: 28px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
}
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg-gray); color: var(--text-lighter);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-user-name { font-size: 16px; font-weight: 600; color: var(--text); }
.profile-user-meta { font-size: 13px; color: var(--text-lighter); margin-top: 4px; }

.profile-nav { padding: 12px 0; }
.profile-nav-item a {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 22px; font-size: 14px; color: var(--text-light);
  transition: var(--transition);
}
.profile-nav-item a:hover { background: #fff0f3; color: var(--primary); }
.profile-nav-item.active a {
  background: #fff0f3; color: var(--primary); font-weight: 600;
  border-right: 3px solid var(--primary);
}
.profile-nav-icon { color: currentColor; display: flex; align-items: center; }

.profile-main {
  background: #fff; border-radius: 12px;
  border: 1px solid var(--border); min-height: 500px;
  box-shadow: var(--shadow); padding: 32px;
}
.profile-section-header {
  border-bottom: 2px solid var(--primary);
  padding-bottom: 14px; margin-bottom: 28px;
}
.profile-section-header h2 { font-size: 22px; font-weight: 700; color: var(--text); }

.profile-form { display: flex; flex-direction: column; gap: 22px; }
.profile-form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.profile-form-group { display: flex; flex-direction: column; gap: 8px; }
.profile-form-group label { font-size: 14px; font-weight: 500; color: var(--text); }
.profile-form-group input {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; color: var(--text); transition: var(--transition);
}
.profile-form-group input:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(204,0,51,0.08); }
.profile-form-actions { margin-top: 8px; }
.profile-save-btn {
  padding: 12px 36px; background: var(--primary); color: #fff;
  border: none; border-radius: 6px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: var(--transition);
}
.profile-save-btn:hover { background: var(--primary-dark); box-shadow: 0 6px 18px rgba(204,0,51,0.3); }

.profile-empty {
  text-align: center; padding: 80px 20px; color: var(--text-lighter);
}
.profile-empty-icon { color: #ddd; margin-bottom: 16px; }
.profile-empty p { font-size: 15px; margin-bottom: 16px; }
.profile-empty-link {
  display: inline-block; padding: 10px 28px;
  background: var(--primary); color: #fff; border-radius: 6px;
  font-size: 14px; font-weight: 500; transition: var(--transition);
}
.profile-empty-link:hover { background: var(--primary-dark); }

.profile-security { display: flex; flex-direction: column; gap: 16px; }
.profile-security-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px; border: 1px solid var(--border); border-radius: 8px;
}
.profile-security-item h4 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.profile-security-item p { font-size: 13px; color: var(--text-lighter); }
.profile-security-status {
  font-size: 13px; color: var(--text-lighter);
  padding: 4px 12px; border-radius: 4px; background: var(--bg-gray);
}
.profile-security-status.active { color: #52c41a; background: #f6ffed; }
.profile-security-btn {
  padding: 6px 18px; border: 1px solid var(--primary);
  color: var(--primary); background: #fff; border-radius: 4px;
  font-size: 13px; cursor: pointer; transition: var(--transition);
}
.profile-security-btn:hover { background: var(--primary); color: #fff; }

/* ============================================
   Auth / Profile Responsive
   ============================================ */
@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 220px 1fr; }
}
@media (max-width: 768px) {
  .header-login-btn { padding: 6px 12px; font-size: 12px; }
  .header-login-btn span { display: none; }
  .header-user-name { max-width: 60px; font-size: 12px; }
  .header-user-toggle { padding: 4px 8px 4px 4px; }

  .auth-modal { padding: 32px 22px 24px; }
  .auth-modal-header h2 { font-size: 20px; }
  .auth-tabs { gap: 16px; }

  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { margin-bottom: 20px; }
  .profile-nav { display: flex; padding: 0; overflow-x: auto; }
  .profile-nav-item { flex-shrink: 0; }
  .profile-nav-item a { padding: 12px 16px; border-bottom: 2px solid transparent; border-right: none; }
  .profile-nav-item.active a { border-bottom-color: var(--primary); border-right: none; }
  .profile-main { padding: 22px; min-height: auto; }
  .profile-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .auth-modal { padding: 28px 18px 22px; }
  .auth-modal-footer { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================
   首页浅色区块 (Homepage Light Sections)
   将首页「关于我们 / 解决方案 / 新闻动态」由黑色改为浅色，
   仅保留页脚为黑色。
   ============================================ */

/* --- 关于我们：浅色 --- */
.about-section-light { background: #fff; color: var(--text); }
.about-section-light .about-text .en-title { color: var(--primary); }
.about-section-light .about-text h3 { color: var(--text); }
.about-section-light .about-text p { color: var(--text-light); }
.about-section-light .stats-bar { border-top: 1px solid var(--border); }
.about-section-light .stat-item .label { color: var(--text-lighter); }
.about-section-light .about-image { box-shadow: var(--shadow); }

/* --- 解决方案 / 新闻：浅色 --- */
.section-light { background: #fff; color: var(--text); }
.section-light .section-title h2 { color: var(--text); }
.section-light .section-title .en-title { color: var(--primary); }
.section-light .section-title p { color: var(--text-light); }
.section-light .section-title .line { background: var(--primary); }

/* Solutions tabs */
.section-light .solutions-tabs .tab-btn {
  border: 1px solid var(--border);
  color: var(--text-light);
  background: #fff;
}
.section-light .solutions-tabs .tab-btn:hover {
  color: var(--primary); border-color: var(--primary);
  background: rgba(204,0,51,0.04);
}
.section-light .solutions-tabs .tab-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
/* 解决方案：浅灰底 + 白色内容卡片，与新闻区形成层次 */
#solutions.section-light { background: var(--bg-gray); }
#solutions.section-light .solution-content {
  background: #fff;
  border: 1px solid var(--border);
}
/* 注意：不要在这里再为所有 tab-btn 设置背景，否则会覆盖 .active 的红色背景导致白字看不见 */
.section-light .solution-content {
  background: var(--bg-gray);
  border: 1px solid var(--border);
}
.section-light .solution-text { color: var(--text); }
.section-light .solution-text h3 { color: var(--text); }
.section-light .solution-text p { color: var(--text-light); }

/* News */
.section-light .news-tabs a { color: var(--text-light); }
.section-light .news-tabs a:hover { color: var(--primary); border-color: var(--primary); }
.section-light .news-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.section-light .news-main {
  background: var(--bg-gray);
  border: 1px solid var(--border);
}
.section-light .news-main:hover { border-color: var(--primary); }
.section-light .news-main .news-date { color: var(--text-lighter); }
.section-light .news-main .news-title { color: var(--text); }
.section-light .news-main .news-desc { color: var(--text-light); }
.section-light .news-item-side {
  background: var(--bg-gray);
  border: 1px solid var(--border);
}
.section-light .news-item-side:hover {
  background: #fff; border-color: var(--primary);
}
.section-light .news-item-side .date { color: var(--text-lighter); }
.section-light .news-item-side .title { color: var(--text); }

/* ============================================
   后台 CMS：SaaS 站点切换器
   ============================================ */
.admin-header { justify-content: space-between; gap: 16px; }
.admin-header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.admin-current-tenant { font-size: 13px; color: var(--text-light); white-space: nowrap; }
.admin-current-tenant strong { color: var(--primary); font-weight: 600; }
.admin-tenant-select {
  padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; background: #fff; color: var(--text); cursor: pointer;
  max-width: 180px; transition: var(--transition);
}
.admin-tenant-select:hover { border-color: var(--primary); }
.admin-tenant-select:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 2px rgba(204,0,51,0.08); }
.admin-role-badge {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  background: var(--primary); color: #fff; border-radius: 3px;
  font-size: 11px; font-weight: 500; vertical-align: middle;
}

/* 站点管理页：操作列按钮组 */
.admin-table td form { margin: 0; }

/* ================= 图片管理：分类与尺寸规范提示 ================= */
/* 分类徽标 */
.img-mod-badge {
  display: inline-block; padding: 1px 7px; border-radius: 10px;
  background: #eef2ff; color: #4353b8; font-size: 11px; font-weight: 500;
}
/* 上传弹窗：建议尺寸提示 */
.spec-hint {
  margin-top: 8px; padding: 10px 12px; border-radius: 6px;
  background: #f5f8ff; border: 1px solid #dbe4fb; font-size: 12px; color: #333; line-height: 1.7;
}
.spec-hint-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.spec-hint-tag {
  background: #4353b8; color: #fff; border-radius: 4px; padding: 1px 6px;
  font-size: 11px; margin-right: 2px;
}
.spec-hint-sep { color: #b6c0d8; margin: 0 2px; }
.spec-hint-usage { color: #6b7280; font-size: 11px; margin-top: 2px; }
/* 实际尺寸与建议值比对结果 */
.spec-check {
  margin-top: 6px; padding: 7px 12px; border-radius: 6px; font-size: 12px; line-height: 1.6;
}
.spec-check.ok { background: #ecfdf5; color: #067647; border: 1px solid #b7ebcd; }
.spec-check.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
/* 详情弹窗内的内联建议 */
.spec-inline { color: #6b7280; font-size: 12px; }
/* 尺寸规范速查表 */
.spec-table-wrap {
  margin: 10px 0 16px; padding: 10px 14px; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 8px;
}
.spec-table-wrap > summary {
  cursor: pointer; font-size: 13px; font-weight: 600; color: #374151; padding: 2px 0;
}
.spec-table-wrap > summary:hover { color: #4353b8; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 12px; }
.spec-table th, .spec-table td {
  padding: 7px 10px; text-align: left; border-bottom: 1px solid #f0f1f4;
}
.spec-table th { background: #f9fafb; color: #6b7280; font-weight: 600; }
.spec-table tbody tr:hover { background: #fafbff; }
.spec-table .spec-usage { color: #6b7280; }
