/* === 原微智控企业官网 - 全局样式 === */
:root {
  --primary: #1e3a5f;
  --primary-dark: #15293f;
  --primary-light: #2c5282;
  --accent: #3182ce;
  --accent-light: #4299e1;
  --bg-light: #f7fafc;
  --bg-gray: #edf2f7;
  --text-dark: #1a202c;
  --text-body: #4a5568;
  --text-muted: #718096;
  --border: #e2e8f0;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-body);
  line-height: 1.6;
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

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

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

/* === Navbar === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}
.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  color: var(--primary);
}
.navbar-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.navbar-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  color: var(--text-body);
  font-size: 15px;
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-dark);
}

/* === Footer === */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
}
.footer h4 {
  color: white;
  font-size: 15px;
  margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer ul a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* === Hero === */
.hero {
  position: relative;
  color: white;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  background: #0a1525;
}
.hero .hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}
.hero .hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(30, 100, 200, 0.1);
  z-index: 1;
  pointer-events: none;
}
.hero:hover .hero-overlay {
  opacity: 0;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: 1px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero p {
  font-size: 18px;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  border-color: white;
}
.btn-dark {
  background: var(--primary);
  color: white;
}
.btn-dark:hover { background: var(--primary-dark); color: white; }
.btn-gray {
  background: var(--bg-gray);
  color: var(--text-body);
}
.btn-gray:hover { background: var(--border); }

/* === Section === */
.section {
  padding: 64px 0;
}
.section-gray { background: var(--bg-light); }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-muted);
  font-size: 16px;
}
.section-title .line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* === Cards === */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid var(--border);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  text-align: center;
  padding: 32px 24px;
}
.service-card .icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  cursor: pointer;
}
.product-card .product-img {
  width: 100%;
  height: 200px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .product-body {
  padding: 20px;
}
.product-card .product-category {
  display: inline-block;
  background: #ebf8ff;
  color: var(--accent);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.product-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category filter */
.category-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.category-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.category-btn:hover { border-color: var(--accent); color: var(--accent); }
.category-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* === About Page === */
.about-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 60px 0;
  text-align: center;
}
.about-hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.about-hero p { font-size: 17px; opacity: 0.9; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.value-card {
  text-align: center;
  padding: 36px 28px;
}
.value-card .icon { font-size: 36px; margin-bottom: 16px; }
.value-card h3 { font-size: 20px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.value-card p { color: var(--text-muted); font-size: 15px; }

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  padding-bottom: 32px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-item .year {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-item h4 { font-size: 16px; color: var(--text-dark); margin-bottom: 4px; }
.timeline-item p { font-size: 14px; color: var(--text-muted); }

/* === Articles === */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  cursor: pointer;
}
.article-card .article-cover {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: linear-gradient(135deg, #ebf8ff, #e0e7ff);
}
.article-card .article-body { padding: 20px; }
.article-card .article-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.article-card .article-tag {
  background: #ebf8ff;
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
}
.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
}
.article-card p { font-size: 14px; color: var(--text-muted); }

/* Article detail */
.article-detail-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 48px 0;
}
.article-detail-header .back-link {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  margin-bottom: 16px;
  display: inline-block;
}
.article-detail-header .meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  margin-bottom: 12px;
}
.article-detail-header .meta .tag {
  background: rgba(255,255,255,0.2);
  padding: 2px 10px;
  border-radius: 20px;
}
.article-detail-header h1 { font-size: 30px; font-weight: 700; }
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 16px;
}
.article-content p {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.8;
  white-space: pre-line;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid var(--border);
}
.contact-info-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}
.contact-info-item .icon { font-size: 20px; flex-shrink: 0; }
.contact-info-item .label { font-size: 13px; color: var(--text-muted); }
.contact-info-item .value { font-size: 15px; color: var(--text-dark); font-weight: 500; }

.contact-form {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.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(49,130,206,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* === Product Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: white;
  border-radius: 12px;
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.modal-close:hover { background: var(--border); }
.modal-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header .category {
  display: inline-block;
  background: #ebf8ff;
  color: var(--accent);
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.modal-header h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); }
.modal-body { padding: 28px 32px 32px; }
.modal-body .desc { font-size: 15px; color: var(--text-body); margin-bottom: 24px; line-height: 1.7; }
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.spec-table th {
  text-align: left;
  background: var(--bg-light);
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 2px solid var(--border);
  width: 35%;
}
.spec-table td {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.modal-section { margin-bottom: 24px; }
.modal-section h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.feature-list { list-style: none; }
.feature-list li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 14px;
  color: var(--text-body);
}
.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags span {
  background: var(--bg-gray);
  color: var(--text-body);
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 6px;
}

/* === Admin === */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}
.admin-login-box {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.admin-login-box h1 { font-size: 24px; font-weight: 700; color: var(--text-dark); text-align: center; margin-bottom: 8px; }
.admin-login-box p { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--primary-dark);
  color: white;
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-sidebar .logo {
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 700;
}
.admin-sidebar ul { list-style: none; }
.admin-sidebar ul li a {
  display: block;
  padding: 12px 24px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: all 0.2s;
}
.admin-sidebar ul li a:hover, .admin-sidebar ul li a.active {
  background: rgba(255,255,255,0.1);
  color: white;
  border-left: 3px solid var(--accent);
}
.admin-main {
  flex: 1;
  background: var(--bg-light);
  padding: 32px;
  overflow-y: auto;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.admin-header h2 { font-size: 24px; font-weight: 700; color: var(--text-dark); }

.admin-table {
  width: 100%;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-light);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table .actions { display: flex; gap: 8px; }
.admin-table .actions button {
  padding: 4px 12px;
  border-radius: 4px;
  border: none;
  font-size: 13px;
  cursor: pointer;
}
.btn-edit { background: #ebf8ff; color: var(--accent); }
.btn-delete { background: #fed7d7; color: #c53030; }

.admin-form-group { margin-bottom: 20px; }
.admin-form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.admin-form-group input, .admin-form-group textarea, .admin-form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
}

/* === Responsive === */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .navbar-links { display: none; }
  .navbar-links.show {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: white;
    padding: 16px 20px;
    box-shadow: var(--shadow);
    gap: 16px;
  }
  .navbar-toggle { display: block; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 16px; }
  .services-grid, .products-grid, .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title h2 { font-size: 24px; }
  .admin-sidebar { display: none; }
  .admin-layout { flex-direction: column; }
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-dark);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  z-index: 300;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat-card {
  text-align: center;
  padding: 32px 16px;
}
.stat-card .number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}
.stat-card .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* === Test services === */
.test-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.test-service-card {
  padding: 28px;
}
.test-service-card .icon { font-size: 32px; margin-bottom: 12px; }
.test-service-card h3 { font-size: 18px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.test-service-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.test-service-card ul { list-style: none; }
.test-service-card ul li {
  font-size: 13px;
  color: var(--text-body);
  padding: 3px 0 3px 18px;
  position: relative;
}
.test-service-card ul li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 16px;
}

/* Advantages */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.advantage-card {
  text-align: center;
  padding: 32px 20px;
}
.advantage-card .icon { font-size: 32px; margin-bottom: 12px; }
.advantage-card h3 { font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.advantage-card p { font-size: 13px; color: var(--text-muted); }

/* ========== 产品详情页样式 ========== */
.breadcrumb-nav {
  background: var(--bg-light);
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-nav a { color: var(--accent); }
.breadcrumb-nav span { color: var(--text-muted); }

.product-detail-section { padding: 40px 0 60px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

/* 图片画廊 */
.gallery-area { position: relative; }
.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}
.gallery-prev, .gallery-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 20px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.2s;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-prev:hover, .gallery-next:hover { background: rgba(0,0,0,0.75); }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.thumb {
  width: 72px; height: 54px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(49,130,206,0.25); }
.thumb:hover { border-color: var(--accent-light); }

/* 产品信息区 */
.product-info-area { display: flex; flex-direction: column; gap: 16px; }
.product-category-badge {
  display: inline-block;
  padding: 4px 14px;
  background: #ebf8ff;
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  align-self: flex-start;
}
.product-info-area h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}
.product-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}
.action-bar {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-lg {
  padding: 12px 28px;
  font-size: 15px;
  border-radius: var(--radius);
}

/* 快速参数 */
.quick-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 18px;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.quick-spec-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.quick-spec-item:last-child { border-bottom: none; }
.qs-label { color: var(--text-muted); font-weight: 500; }
.qs-value { color: var(--text-dark); font-weight: 700; }

/* 详情区块 */
.detail-block {
  margin-bottom: 36px;
  padding: 32px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.detail-block h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.detail-block h2 i::before { content: '📋'; }

.spec-table-full { width: 100%; border-collapse: collapse; }
.spec-table-full th, .spec-table-full td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-table-full th { width: 30%; background: var(--bg-light); color: var(--text-dark); font-weight: 600; }
.spec-table-full td { color: var(--text-body); }

.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.feature-grid li {
  padding: 12px 16px;
  background: #f0fff4;
  border-left: 3px solid #48bb78;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--text-body);
}

.app-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-tags span {
  padding: 6px 18px;
  background: #ebf8ff;
  color: var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
}

/* 案例展示 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.case-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.case-body { padding: 18px; }
.case-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.case-body p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

/* 相关产品 */
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.related-card {
  display: block !important;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-img {
  height: 160px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.related-img img { width: 100%; height: 100%; object-fit: cover; }
.related-info { padding: 14px; }
.cat-tag {
  font-size: 11px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.related-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 4px;
}

/* 响应式 */
@media (max-width: 900px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .quick-specs { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .related-grid { grid-template-columns: 1fr; }
  .action-bar { flex-direction: column; }
}
