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

:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --accent: #0ea5e9;
  --accent-dark: #0284c7;
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: .2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-dark);
}

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

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}

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

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 6px 16px;
  font-size: .85rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== 顶部信息栏 ===== */
.top-bar {
  background: var(--primary);
  color: #e2e8f0;
  font-size: .85rem;
  padding: 8px 0;
}

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

.top-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}

.nav-brand .logo-svg {
  width: 260px;
  flex-shrink: 0;
}

.nav-brand h1 {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  padding: 20px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== 语言切换 ===== */
.lang-switch {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 3px;
  color: #cbd5e1;
  font-size: .78rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

/* ===== 导航搜索 ===== */
.nav-search {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.nav-search input {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px 0 0 20px;
  font-size: .85rem;
  width: 180px;
  outline: none;
  font-family: inherit;
  background: var(--bg);
}

.nav-search input:focus {
  border-color: var(--accent);
}

.nav-search button {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 20px 20px 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: .9rem;
}

.nav-search button:hover {
  background: var(--primary-light);
}

/* ===== 下载表格 ===== */
.download-table-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

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

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

.download-table th {
  background: #f8fafc;
  font-weight: 600;
  color: var(--primary);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.download-table tr:hover {
  background: #f8fafc;
}

.download-table tr:last-child td {
  border-bottom: none;
}

.dl-name {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dl-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* ===== 英雄区域 ===== */
.hero {
  background: linear-gradient(135deg, #0f2340 0%, #1a3a5c 50%, #1e4976 100%);
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, .15), transparent 70%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(184, 134, 11, .1), transparent 70%);
}

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

.hero h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero .btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ===== 特性区 ===== */
.features {
  padding: 70px 0;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card .f-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.feature-card:nth-child(1) .f-icon {
  background: #e0f2fe;
  color: #0284c7;
}

.feature-card:nth-child(2) .f-icon {
  background: #fef3c7;
  color: #b8860b;
}

.feature-card:nth-child(3) .f-icon {
  background: #dcfce7;
  color: #16a34a;
}

.feature-card:nth-child(4) .f-icon {
  background: #f3e8ff;
  color: #7c3aed;
}

.feature-card h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-light);
}

/* ===== 产品展示区 ===== */
.product-showcase {
  padding: 70px 0;
}

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

.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card .p-img {
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .p-img .p-icon {
  font-size: 3.5rem;
  opacity: .35;
  transition: var(--transition);
}

.product-card .p-img .p-img-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .p-img .p-icon {
  opacity: .5;
  transform: scale(1.05);
}

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

.product-card .p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  padding: 2px 10px;
  border-radius: 3px;
}

.product-card .p-body {
  padding: 20px;
}

.product-card .p-category {
  font-size: .8rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.product-card h4 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.product-card .p-model {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.product-card .p-desc {
  font-size: .85rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 分类导航条 ===== */
.category-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow-x: auto;
}

.category-nav .container {
  display: flex;
  gap: 8px;
}

.category-nav a {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: .9rem;
  color: var(--text);
  white-space: nowrap;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.category-nav a:hover,
.category-nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 新闻区 ===== */
.news-section {
  padding: 70px 0;
  background: #fff;
}

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

.news-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-md);
}

.news-card .n-date {
  min-width: 60px;
  height: 60px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  line-height: 1.3;
}

.news-card .n-date strong {
  font-size: 1.25rem;
}

.news-card .n-info h4 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.news-card .n-info p {
  font-size: .85rem;
  color: var(--text-light);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 关于页面 ===== */
.about-hero {
  background: linear-gradient(135deg, #0f2340, #1a3a5c);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.about-hero h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.about-content {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

.about-text {
  font-size: .95rem;
  line-height: 2;
}

.about-text p {
  margin-bottom: 16px;
}

.about-side .side-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.side-card h4 {
  color: var(--primary);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stat-item {
  text-align: center;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
}

.stat-item .num {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-item .label {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: 4px;
}

/* ===== 联系我们 ===== */
.contact-page {
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-info>p {
  color: var(--text-light);
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail .c-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e0f2fe;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-detail h5 {
  font-size: .9rem;
  color: var(--primary);
}

.contact-detail p {
  font-size: .9rem;
  color: var(--text-light);
}

.contact-form-wrap {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.contact-form-wrap h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  transition: var(--transition);
  background: var(--bg);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, .1);
}

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

/* ===== 新闻详情 ===== */
.news-detail-page {
  padding: 60px 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.article-header {
  margin-bottom: 30px;
}

.article-header h1 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.article-meta {
  font-size: .85rem;
  color: var(--text-light);
  display: flex;
  gap: 20px;
}

.article-body {
  font-size: 1rem;
  line-height: 2;
}

.article-body p {
  margin-bottom: 16px;
}

.sidebar-title {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
}

.recent-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.recent-item a {
  font-size: .9rem;
  color: var(--text);
}

.recent-item a:hover {
  color: var(--accent);
}

.recent-item .time {
  font-size: .78rem;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

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

.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pagination .current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== 产品详情 ===== */
.product-detail-page {
  padding: 60px 0;
}

.breadcrumb {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.breadcrumb a {
  color: var(--text-light);
}

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

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.pd-image {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  border-radius: var(--radius-lg);
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-image .pd-icon {
  font-size: 6rem;
  opacity: .3;
}

.pd-image .pd-img-real {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

.pd-info h2 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.pd-info .pd-model {
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.pd-info .pd-desc {
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.9;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.spec-table td {
  padding: 8px 14px;
  border: 1px solid var(--border);
  font-size: .9rem;
}

.spec-table td:first-child {
  background: #f8fafc;
  font-weight: 500;
  width: 40%;
  color: var(--primary);
}

.feature-list {
  margin-top: 20px;
}

.feature-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: .9rem;
  color: var(--text);
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.related-section {
  margin-top: 60px;
}

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

/* ===== 页脚 ===== */
.footer {
  background: #0f2340;
  color: #cbd5e1;
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer p,
.footer a {
  font-size: .88rem;
  color: #94a3b8;
}

.footer a:hover {
  color: #fff;
}

.footer .f-links a {
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 40px;
  padding: 18px 0;
  text-align: center;
  font-size: .82rem;
  color: #64748b;
}

/* ===== Flash 消息 ===== */
.flash-msg {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn .3s ease;
}

.flash-success {
  background: #10b981;
  color: #fff;
}

.flash-error {
  background: #ef4444;
  color: #fff;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-search {
    display: none;
  }

  .hero h2 {
    font-size: 1.75rem;
  }

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

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

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

  .about-content {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

  .download-table th:nth-child(2),
  .download-table td:nth-child(2),
  .download-table th:nth-child(3),
  .download-table td:nth-child(3) {
    display: none;
  }
}