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

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #6366f1;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ===== Navbar ===== */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  text-decoration: none;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== Icon System ===== */
.icon-logo {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.icon-heading {
  width: 22px;
  height: 22px;
  vertical-align: -4px;
  margin-right: 8px;
  color: var(--primary);
}

.icon-product {
  width: 56px;
  height: 56px;
  color: var(--text-muted);
  transition: transform 0.3s;
}

.product-card:hover .icon-product {
  transform: scale(1.1);
}

.icon-contact {
  width: 32px;
  height: 32px;
  color: var(--primary);
}

.icon-close {
  width: 24px;
  height: 24px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: white;
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 2%) scale(1.05); }
}

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

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 40px;
  letter-spacing: 0.05em;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
  padding: 16px 40px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  text-decoration: none;
  color: white;
}

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Featured Products ===== */
.featured-products {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg) 0%, #f1f5f9 100%);
}

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

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(14, 165, 233, 0.3);
  text-decoration: none;
}

.product-image {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 24px 20px;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.product-card-img {
  max-width: 80%;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.3s;
}

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

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-img {
  font-size: 56px;
  transition: transform 0.3s;
}

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

.product-info {
  padding: 18px;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 0;
  background: white;
}

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

.contact-card {
  text-align: center;
  padding: 48px 32px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.contact-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-light);
}

.contact-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.contact-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-card a {
  color: var(--primary);
  font-weight: 500;
}

.contact-card a:hover {
  color: var(--primary-dark);
}

/* ===== Footer ===== */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 56px 0 24px;
}

.footer-compliance h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

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

.footer-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

.footer-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.footer-item-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.footer-item--zhizhao .footer-item-content {
  gap: 14px;
}

.footer-item-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-item strong {
  display: block;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.footer-item p {
  color: #94a3b8;
  font-size: 13px;
  margin: 0;
}

.footer-zhizhao-thumb {
  display: block;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.03);
  object-fit: contain;
}

.footer-zhizhao-thumb:hover {
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.footer-item--icp .footer-item-content {
  justify-content: space-between;
  align-items: stretch;
  text-align: left;
}

.footer-icp-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  border-radius: 8px;
  border: 2px solid rgba(14, 165, 233, 0.2);
  background: rgba(14, 165, 233, 0.06);
  gap: 12px;
  color: #7dd3fc;
  transition: all 0.3s;
}

.footer-icp-visual:hover {
  border-color: rgba(14, 165, 233, 0.4);
  background: rgba(14, 165, 233, 0.1);
}

.footer-icp-icon {
  width: 36px;
  height: 36px;
  color: #7dd3fc;
}

.footer-icp-visual span {
  font-size: 14px;
  font-weight: 500;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  color: #64748b;
  font-size: 13px;
}

.footer-bottom a {
  color: #7dd3fc;
}

.footer-bottom a:hover {
  color: #bae6fd;
}

/* ===== Image Modal ===== */
.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.image-modal.active {
  display: flex;
  opacity: 1;
}

.image-modal .modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  transition: all 0.2s;
}

.image-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.image-modal .modal-content {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 16px 24px;
  color: var(--text-muted);
  font-size: 14px;
}

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

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

/* ===== Product Detail ===== */
.product-detail {
  padding-bottom: 60px;
}

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

.product-detail-image {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-main-image {
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
  border-radius: 8px;
}

.product-detail-info h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.product-tag--large {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), #dbeafe);
  color: var(--primary-dark);
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.product-regulatory {
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 28px;
}

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

/* ===== Tables ===== */
.regulatory-table,
.manufacturer-table {
  width: 100%;
  border-collapse: collapse;
}

.regulatory-table tr,
.manufacturer-table tr {
  border-bottom: 1px solid var(--border);
}

.regulatory-table tr:last-child,
.manufacturer-table tr:last-child {
  border-bottom: none;
}

.regulatory-table .label,
.manufacturer-table .label {
  width: 140px;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 14px 0;
  font-size: 14px;
  vertical-align: top;
}

.regulatory-table td:not(.label),
.manufacturer-table td:not(.label) {
  padding: 14px 0;
  color: var(--text-primary);
  font-size: 14px;
}

/* ===== Product Sections ===== */
.product-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 36px;
  margin-bottom: 24px;
}

.product-section h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--primary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.section-content {
  color: var(--text-primary);
  line-height: 1.8;
}

.section-content h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.section-content p {
  margin-bottom: 12px;
  color: var(--text-secondary);
  font-size: 15px;
}

.section-content ul,
.section-content ol {
  padding-left: 24px;
  margin-bottom: 12px;
}

.section-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.contraindications {
  border-left: 4px solid var(--warning);
}

.contraindications h2 {
  border-bottom-color: var(--warning);
}

.contraindications .section-content li {
  color: var(--text-secondary);
}

.contraindications .section-content strong {
  color: var(--warning);
}

.important-notice {
  border-left: 4px solid var(--accent);
}

.important-notice h2 {
  border-bottom-color: var(--accent);
}

.important-notice .section-content strong {
  color: var(--text-primary);
}

/* ===== Trust Bar ===== */
.trust-bar {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.trust-item {
  position: relative;
}

.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.trust-number {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ===== Service Section ===== */
.service-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #f1f5f9 0%, var(--bg) 100%);
}

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

.service-card {
  text-align: center;
  padding: 48px 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(14, 165, 233, 0.3);
}

.service-icon-wrap {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.25);
}

.service-icon {
  width: 40px;
  height: 40px;
  color: white;
}

.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== Responsive (add to existing) ===== */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .trust-item:nth-child(n+3)::after {
    display: none;
  }

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

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

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links a {
    padding: 6px 12px;
    font-size: 14px;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .btn-primary {
    padding: 14px 32px;
    font-size: 15px;
  }

  .section-title {
    font-size: 28px;
  }

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

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

  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .trust-item::after {
    display: none;
  }

  .trust-number {
    font-size: 36px;
  }

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

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

  .footer-item {
    min-height: auto;
  }

  .footer-icp-visual span {
    font-size: 13px;
  }

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

  .product-detail-image {
    min-height: 300px;
  }

  .image-modal .modal-content {
    max-width: 95%;
    max-height: 80vh;
  }
}

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

  .placeholder-img {
    font-size: 48px;
  }
}
