/* HDBolt Shared Stylesheet */
:root {
  --primary-blue: #002D62;
  --accent-blue: #0056b3;
  --cyan: #00d2ff;
  --whatsapp-green: #25D366;
  --bg-gray: #f4f7f9;
  --text-dark: #1a1a1a;
  --text-body: #444;
  --text-muted: #777;
  --border: #e5e9ef;
}

* { box-sizing: border-box; }
html { background: var(--bg-gray); scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0 auto;
  background: var(--bg-gray);
  color: var(--text-dark);
  padding-bottom: calc(90px + env(safe-area-inset-bottom));
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); }
img { max-width: 100%; height: auto; }

/* Skip link for accessibility */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--primary-blue); color: white;
  padding: 8px 16px; z-index: 2000; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Header */
header { background: white; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.top-bar {
  background: var(--primary-blue); padding: 8px 15px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; color: white;
}
.brand-row { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; }
.logo-wrap { display: flex; align-items: center; text-decoration: none; color: var(--text-dark); }
.logo-wrap img {
    max-width: 180px; /* 设定一个固定的最大宽度，不要让它无限放大 */
    height: auto;     /* 保持原始宽高比不变 */
    width: 100%;      /* 保证在极小的手机屏幕上能自动缩小 */
    object-fit: contain; 
}
.logo-text { margin-left: 10px; }
.logo-text b { display: block; font-size: 16px; color: var(--primary-blue); letter-spacing: 0.5px; }
.top-bar a:hover { opacity: 1; }

.brand-row { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; }
.logo-wrap { display: flex; align-items: center; text-decoration: none; color: var(--text-dark); }
.logo-wrap img { height: 40px; }
.logo-text { margin-left: 10px; }
.logo-text b { display: block; font-size: 16px; color: var(--primary-blue); letter-spacing: 0.5px; }
.logo-text small { font-size: 9px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

/* Desktop nav (top menu bar) */
.desktop-nav { display: none; }

/* Main container */
main { padding: 15px; max-width: 100%; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #001224 0%, var(--primary-blue) 100%);
  color: white; border-radius: 20px; padding: 40px 22px; text-align: center;
  margin-bottom: 25px; box-shadow: 0 12px 30px rgba(0,45,98,0.25);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(0,210,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block; background: rgba(0,210,255,0.15);
  padding: 6px 14px; border-radius: 20px; font-size: 10px;
  font-weight: 800; letter-spacing: 1.2px; margin-bottom: 15px;
  color: var(--cyan); border: 1px solid rgba(0,210,255,0.3);
}
.hero h1 {
  margin: 0; font-size: 26px; font-weight: 900;
  line-height: 1.2; letter-spacing: 0.3px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.hero .lead { margin: 15px auto 22px; font-size: 14px; opacity: 0.92; max-width: 600px; }
.hero-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: 30px; font-weight: 800; font-size: 13px;
  text-decoration: none; cursor: pointer; border: none;
  font-family: inherit; transition: transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.5px;
}
.btn-primary { background: var(--cyan); color: #001224; box-shadow: 0 4px 14px rgba(0,210,255,0.4); }
.btn-primary:hover, .btn-primary:focus { transform: translateY(-2px); }
.btn-whatsapp { background: var(--whatsapp-green); color: white; box-shadow: 0 4px 14px rgba(37,211,102,0.35); }
.btn-whatsapp:hover, .btn-whatsapp:focus { transform: translateY(-2px); }
.btn-secondary { background: white; color: var(--primary-blue); border: 2px solid var(--primary-blue); }
.btn-secondary:hover, .btn-secondary:focus { background: var(--primary-blue); color: white; }

/* Breadcrumbs */
.breadcrumbs { font-size: 12px; color: var(--text-muted); margin-bottom: 20px; padding: 5px 0; }
.breadcrumbs a { color: var(--accent-blue); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs span { margin: 0 6px; color: #bbb; }

/* Section titles */
.section-title {
  font-size: 20px; font-weight: 800; margin: 30px 0 15px;
  color: var(--primary-blue); display: flex; align-items: center;
}
.section-title::before {
  content: ""; width: 5px; height: 20px;
  background: var(--primary-blue); margin-right: 10px; border-radius: 3px;
}
h2 { font-size: 22px; color: var(--primary-blue); margin: 30px 0 12px; line-height: 1.3; }
h3 { font-size: 17px; color: var(--text-dark); margin: 20px 0 10px; }
p { margin: 0 0 12px; color: var(--text-body); }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0 30px; }
.stat-card {
  background: white; border-radius: 14px; padding: 18px 12px;
  text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid var(--border);
}
.stat-card b { display: block; font-size: 22px; color: var(--primary-blue); font-weight: 900; line-height: 1.1; }
.stat-card span { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; display: block; }

/* Feature cards */
.feature-card {
  background: white; border-radius: 16px; padding: 20px;
  display: flex; align-items: flex-start; margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  border-left: 4px solid var(--primary-blue);
}
.feature-icon {
  font-size: 24px; margin-right: 14px; background: #eaf1fa;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; flex-shrink: 0; color: var(--primary-blue);
}
.feature-text h3 { margin: 0 0 5px; font-size: 15px; font-weight: 800; }
.feature-text p { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.product-card {
  background: white; border-radius: 16px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-decoration: none; color: var(--text-dark);
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
}
.product-card:hover, .product-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,0.08);
}
.product-card img {
  width: 100%; height: 120px; object-fit: contain;
  padding: 15px; background: white; display: block;
}
.product-card-body { padding: 12px; background: #fafbfc; border-top: 1px solid var(--border); }
.product-card h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--text-dark); }
.product-card p { margin: 0; font-size: 11px; color: var(--text-muted); }

/* Content card (about, articles) */
.content-card {
  background: white; padding: 24px 20px; border-radius: 16px;
  margin-bottom: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.content-card h2 { margin-top: 0; }

/* Table */
.spec-table {
  width: 100%; border-collapse: collapse; margin: 15px 0 25px;
  font-size: 13px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.spec-table th {
  background: var(--primary-blue); color: white;
  text-align: left; padding: 10px 14px; font-weight: 700;
  width: 38%; font-size: 12px;
}
.spec-table td {
  padding: 10px 14px; border-bottom: 1px solid #eef1f5;
  color: var(--text-body); background: white;
}
.spec-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-item {
  background: white; padding: 18px 20px; border-radius: 12px;
  margin-bottom: 12px; border-left: 4px solid var(--accent-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-q { font-weight: 800; font-size: 15px; color: var(--primary-blue); margin: 0 0 8px; }
.faq-a { font-size: 14px; color: var(--text-body); margin: 0; line-height: 1.6; }

/* Industry tags */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0 25px; }
.tag {
  background: white; border: 1.5px solid var(--primary-blue);
  color: var(--primary-blue); padding: 7px 13px;
  border-radius: 20px; font-size: 12px; font-weight: 700;
}

/* CTA box */
.cta-box {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-blue) 100%);
  color: white; padding: 28px 22px; border-radius: 18px;
  text-align: center; margin: 30px 0;
}
.cta-box h3 { color: white; margin: 0 0 10px; font-size: 20px; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 18px; }

/* Footer */
footer {
  background: #0a1628; color: #aab3c0; padding: 30px 20px 90px;
  margin-top: 40px; font-size: 13px;
}
footer h4 { color: white; font-size: 14px; margin: 0 0 12px; }
footer a { color: #aab3c0; text-decoration: none; display: block; padding: 4px 0; }
footer a:hover { color: var(--cyan); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 25px; margin-bottom: 25px; }
.footer-bottom {
  border-top: 1px solid #1a2942; padding-top: 15px;
  text-align: center; color: #6b7380; font-size: 11px;
}

/* Mobile bottom nav */
.bottom-nav {
  position: fixed; bottom: calc(10px + env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  width: calc(100% - 20px); max-width: 500px; z-index: 1000;
}
.bottom-nav-bar {
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  height: 60px; display: flex; align-items: center;
  border-radius: 30px; box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.5);
}
.bottom-nav a {
  flex: 1; text-align: center; color: var(--text-muted);
  font-size: 10px; text-decoration: none; padding: 6px;
  display: flex; flex-direction: column; align-items: center;
  font-weight: 600;
}
.bottom-nav a.active { color: var(--primary-blue); }
.bottom-nav a span { font-size: 18px; margin-bottom: 2px; }

.wa-fab {
  position: fixed; bottom: calc(85px + env(safe-area-inset-bottom));
  right: 16px; background: var(--whatsapp-green);
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 26px; text-decoration: none;
  box-shadow: 0 6px 18px rgba(37,211,102,0.4);
  z-index: 999;
}

/* Desktop styles */
@media (min-width: 900px) {
  html { background: #eef2f7; }
  body {
    max-width: 1180px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 60px rgba(0,0,0,0.06);
    padding-bottom: 0;
  }
  .top-bar { padding: 8px 30px; font-size: 12px; }
  .brand-row { padding: 14px 30px; }
  .logo-wrap img { height: 48px; }
  .logo-text b { font-size: 20px; }
  .logo-text small { font-size: 10px; }

  .desktop-nav {
    display: flex; background: white;
    padding: 0 30px; border-top: 1px solid var(--border);
    gap: 0;
  }
  .desktop-nav a {
    padding: 14px 16px; text-decoration: none;
    color: var(--text-body); font-size: 14px; font-weight: 600;
    border-bottom: 3px solid transparent;
  }
  .desktop-nav a:hover, .desktop-nav a.active {
    color: var(--primary-blue); border-bottom-color: var(--primary-blue);
  }

  main { padding: 30px 40px; }
  .hero { padding: 60px 40px; }
  .hero h1 { font-size: 42px; }
  .hero .lead { font-size: 17px; }
  .hero-actions { flex-direction: row; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .stat-card { padding: 26px 15px; }
  .stat-card b { font-size: 30px; }

  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .product-card img { height: 160px; padding: 22px; }
  .product-card-body { padding: 16px; }

  .content-card { padding: 36px; }
  h2 { font-size: 28px; }

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

  .bottom-nav { display: none; }
  .wa-fab { bottom: 20px; right: 20px; width: 60px; height: 60px; font-size: 30px; }

  footer { padding: 40px 40px 25px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
/* 针对 top-bar 里的超链接 */
.top-bar a {
    color: #ffffff;
    text-decoration: none;
}

.top-bar a:hover {
    opacity: 0.8;
}
.brand-row {
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center;     /* 垂直居中（可选） */
    width: 100%;             /* 确保容器占据整行宽度 */
}