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

:root {
  --primary: #00d4aa;
  --primary-dark: #00b894;
  --bg-dark: #0e0e0e;
  --bg-card: #0e0e0e;
  --bg-hover: #181818;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #666666;
  --border: #222222;
  --accent: #ff6b35;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 12px 40px rgba(0, 212, 170, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  /* 设计系统增强令牌 */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grad-primary: linear-gradient(135deg, #00ffc8 0%, #00d4aa 55%, #00b894 100%);
  --card-grad: linear-gradient(165deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0) 45%);
  --font-display: 'Bahnschrift', 'DIN Alternate', 'Segoe UI', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 全站氛围层：青绿辉光 + 精密网格（固定背景，不随滚动） */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 480px at 80% -8%, rgba(0, 212, 170, 0.07), transparent 62%),
    radial-gradient(720px 420px at 6% 10%, rgba(0, 140, 255, 0.04), transparent 60%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 28%, transparent 76%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 28%, transparent 76%);
  pointer-events: none;
}

::selection {
  background: rgba(0, 212, 170, 0.28);
  color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #262626; border-radius: 8px; border: 2px solid var(--bg-dark); }
::-webkit-scrollbar-thumb:hover { background: #333; }

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

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

/* ===== 头部导航 ===== */
.site-header {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-sub {
  color: var(--primary);
  font-size: 18px;
  font-weight: 500;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
}

.main-nav li {
  position: relative;
}

.main-nav li > a {
  display: block;
  padding: 0 24px;
  height: 100px;
  line-height: 100px;
  font-size: 15px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.main-nav li:hover > a,
.main-nav li.active > a {
  color: var(--primary);
}

.main-nav li.active > a {
  font-weight: 500;
}

/* 下拉菜单 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 1001;
}

.main-nav li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 导航下拉时页面高斯模糊遮罩 */
.nav-blur-overlay {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 8, 8, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nav-blur-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dropdown a:hover {
  color: var(--primary);
  background: var(--bg-hover);
}

/* 搜索框 */
.header-search {
  position: relative;
}

.header-search form {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
}

.header-search form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 8px 16px;
  width: 180px;
  font-size: 14px;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  cursor: pointer;
  transition: var(--transition);
}

.search-btn:hover {
  color: var(--primary);
}

.mobile-toggle {
  display: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
}

/* ===== 页脚 ===== */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 24px 20px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 14px;
}

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

.footer-contact p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--bg-dark);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.footer-bottom a {
  color: var(--text-muted);
}

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

/* ===== 轮播图 ===== */
.banner-section {
  position: relative;
  overflow: hidden;
}

.banner-slider {
  position: relative;
  height: 474px;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.banner-slide.active {
  opacity: 1;
}

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

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--primary);
  width: 30px;
  border-radius: 5px;
}

/* ===== 展示区 ===== */
.showcase-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 24px;
}

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

.showcase-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.showcase-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 20px 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.showcase-overlay h3 {
  font-size: 20px;
  font-weight: 600;
}

/* ===== 通用页面标题 ===== */
.page-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
  padding: 60px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-banner p {
  color: var(--text-secondary);
  font-size: 16px;
}

.page-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ===== 产品页面 ===== */
.product-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

.sidebar {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  height: fit-content;
  position: sticky;
  top: 90px;
}

.sidebar h3 {
  font-size: 18px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar-menu {
  list-style: none;
}

.sidebar-menu li {
  margin-bottom: 4px;
}

.sidebar-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: var(--bg-hover);
  color: var(--primary);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.product-card .product-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #f5f5f7;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-card .product-info {
  padding: 20px;
}

.product-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.product-card .product-desc {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 12px;
}

.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
}

.product-actions {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  gap: 6px;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

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

/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.pagination a:hover,
.pagination a.active {
  background: var(--primary);
  color: var(--bg-dark);
  border-color: var(--primary);
}

/* ===== 新闻页面 ===== */
.news-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
  cursor: pointer;
}

.news-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.news-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.news-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.news-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== 新闻详情 ===== */
.news-detail {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--border);
}

.news-detail h1 {
  font-size: 28px;
  margin-bottom: 16px;
}

.news-detail .news-meta {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.news-detail .news-content {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 16px;
}

.news-detail .news-content p {
  margin-bottom: 16px;
}

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

.about-content h2 {
  font-size: 32px;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 15px;
}

.about-image img {
  border-radius: 12px;
  width: 100%;
}

/* 荣誉 */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.honor-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.honor-card:hover {
  border-color: var(--primary);
}

.honor-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 16px;
  object-fit: cover;
}

.honor-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.honor-card span {
  color: var(--primary);
  font-size: 14px;
}

/* 视频 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.video-card:hover {
  border-color: var(--primary);
}

.video-cover {
  position: relative;
  height: 200px;
}

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

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-dark);
  font-size: 24px;
  cursor: pointer;
  transition: var(--transition);
}

.video-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card h4 {
  padding: 16px 20px;
  font-size: 15px;
}

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

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item i {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.contact-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

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

/* ===== 常见问题 ===== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-hover);
}

.faq-question h4 {
  font-size: 16px;
  font-weight: 500;
}

.faq-question i {
  color: var(--text-muted);
  transition: var(--transition);
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== 代理表格 ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.data-table td {
  color: var(--text-primary);
  font-size: 14px;
}

.data-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.data-table tbody tr:hover {
  background: var(--bg-hover);
}

/* ===== 软件下载 ===== */
.software-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.software-item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

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

.software-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.software-info p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 8px;
}

.software-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== 管理后台 ===== */
.admin-body {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.admin-logo {
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.admin-logo h2 {
  font-size: 20px;
}

.admin-logo span {
  color: var(--primary);
}

.admin-menu {
  list-style: none;
  padding: 16px 0;
  flex: 1;
}

.admin-menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}

.admin-menu li a:hover,
.admin-menu li a.active {
  background: var(--bg-hover);
  color: var(--primary);
}

.admin-menu li a i {
  width: 20px;
  text-align: center;
}

.admin-user {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-user span {
  font-size: 14px;
  color: var(--text-secondary);
}

.admin-user a {
  font-size: 13px;
  color: var(--text-muted);
}

.admin-user a:hover {
  color: var(--accent);
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-header {
  height: 60px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.admin-header h3 {
  font-size: 18px;
  font-weight: 600;
}

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

/* 统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}

.stat-card h4 {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

/* 管理表格 */
.admin-table {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-table-header h3 {
  font-size: 16px;
}

.table-responsive {
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.admin-table th {
  color: var(--text-secondary);
  font-weight: 500;
  background: var(--bg-hover);
}

.admin-table td {
  color: var(--text-primary);
}

.admin-table tbody tr:hover {
  background: var(--bg-hover);
}

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-danger {
  background: #e74c3c;
  color: white;
}

.btn-danger:hover {
  background: #c0392b;
}

.btn-warning {
  background: #f39c12;
  color: white;
}

.btn-warning:hover {
  background: #e67e22;
}

/* 模态框 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: var(--transition);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 18px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* 登录页 */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
}

.login-box {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 8px;
}

.login-box p {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 30px;
  font-size: 14px;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1024px) {
  .product-layout,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

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

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

  .about-section,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .main-nav.mobile-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li > a {
    height: auto;
    line-height: 1.5;
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg-hover);
    border-radius: 0;
    display: none;
  }

  .main-nav li:hover .dropdown {
    display: block;
  }

  .header-search {
    display: none;
  }

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

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

  .banner-slider {
    height: 300px;
  }

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

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

  .admin-sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .admin-sidebar.open {
    left: 0;
  }

  .admin-body {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

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

  .page-banner h1 {
    font-size: 24px;
  }
}

/* ===== 动画 ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* ===== 轮播箭头控制 ===== */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.banner-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.banner-arrow.prev { left: 24px; }
.banner-arrow.next { right: 24px; }

@media (max-width: 768px) {
  .banner-arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .banner-arrow.prev { left: 12px; }
  .banner-arrow.next { right: 12px; }
}

/* ===== 微信二维码弹窗 ===== */
.wechat-qr-wrap {
  position: relative;
}

.wechat-qr-popover {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  min-width: 160px;
}

.wechat-qr-popover::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--bg-card);
}

.wechat-qr-wrap:hover .wechat-qr-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.wechat-qr-popover img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin: 0 auto 8px;
}

.wechat-qr-popover p {
  color: var(--text-secondary);
  font-size: 12px;
}

/* ===== 产品详情内容区 ===== */
.product-details-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.product-details-section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 32px;
  text-align: center;
}

.product-detail-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
}

.product-detail-block img {
  max-width: 100%;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.product-detail-block .detail-text {
  max-width: 800px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  text-align: center;
}

@media (max-width: 768px) {
  .product-detail-block .detail-text {
    font-size: 14px;
  }
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* 提示消息 */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 14px 24px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  z-index: 3000;
  transform: translateX(120%);
  transition: transform 0.3s ease;
}

.toast.show {
  transform: translateX(0);
}

.toast.success { background: #27ae60; }
.toast.error { background: #e74c3c; }
.toast.info { background: #3498db; }

/* ==================================================================
   设计系统增强层 —— 光磁·精密工业风（保留原配色，质感升级）
   ================================================================== */

/* 统一卡片质感：微渐变高光 + 精细描边 */
.product-card, .news-item, .honor-card, .video-card, .software-item,
.faq-item, .stat-card, .news-detail, .contact-form, .login-box, .modal,
.sidebar, .product-detail-image {
  background-image: var(--card-grad);
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
}

/* 卡片悬停：上浮 + 青绿辉光 */
.product-card:hover, .honor-card:hover, .video-card:hover,
.software-item:hover, .news-item:hover {
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 8px 32px rgba(0, 212, 170, 0.10);
}

.product-card:hover, .honor-card:hover, .video-card:hover {
  transform: translateY(-6px);
}

.honor-card:hover, .video-card:hover {
  transform: translateY(-6px);
}

/* 主按钮：青绿渐变 + 辉光 */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #03150f;
  box-shadow: 0 4px 18px rgba(0, 212, 170, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(0, 212, 170, 0.4);
  filter: brightness(1.06);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(0, 212, 170, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.08);
}

/* 页面横幅：网格纹理 + 顶部辉光 + DIN 风标题 */
.page-banner {
  position: relative;
  overflow: hidden;
  padding: 84px 24px 72px;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.6) 0%, rgba(14, 14, 14, 0.2) 100%);
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}

.page-banner::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -140px;
  transform: translateX(-50%);
  width: 640px;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(0, 212, 170, 0.12), transparent 70%);
  pointer-events: none;
}

.page-banner h1,
.page-banner p {
  position: relative;
  z-index: 1;
}

.page-banner h1 {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: linear-gradient(180deg, #ffffff 30%, rgba(0, 212, 170, 0.85) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeUp 0.7s var(--ease) both;
}

.page-banner p {
  color: var(--text-secondary);
  animation: fadeUp 0.7s var(--ease) 0.12s both;
}

/* 价格/数字：DIN 风格显示字体 */
.product-price, .stat-card .stat-value {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

/* 表头：工业风小号间距字母 */
.data-table th, .admin-table th {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 后台统计卡悬停 */
.stat-card {
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(0, 212, 170, 0.35);
  transform: translateY(-2px);
}

/* 滚动渐入动画（配合 FuhlenReveal 脚本） */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .page-banner h1, .page-banner p { animation: none; }
}

@media (max-width: 480px) {
  .page-banner { padding: 60px 20px 52px; }
  .page-banner h1 { font-size: 28px; }
}
