* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #0a1628;              /* 深海军蓝背景 */
  --bg-alt: #0e1d33;          /* 次级背景 */
  --surface: #122442;         /* 卡片背景 */
  --surface-hover: #18305a;
  --primary: #ffffff;
  --secondary: #a8b8d0;
  --muted: #6b7f9e;
  --border: #1e3358;
  --accent: #2d8cff;          /* 科技蓝 */
  --accent-light: #4da6ff;
  --accent-soft: rgba(45, 140, 255, 0.12);
  --gold: #ffb547;            /* 强调色 */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 8px 24px -8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 20px 60px -15px rgba(45, 140, 255, 0.4);
  --font-main: 'Inter', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1240px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

a { text-decoration: none; }

/* ============ 顶部工具栏（联系方式条） ============ */
.topbar {
  background: #061020;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--secondary);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-left {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar-left i {
  color: var(--accent);
  font-size: 0.9rem;
}

.topbar-right {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.topbar-right a {
  color: var(--secondary);
  transition: color 0.2s ease;
}

.topbar-right a:hover { color: var(--accent-light); }

/* ============ 导航栏 ============ */
.navbar {
  padding: 1rem 0;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary);
  flex-shrink: 0;
  white-space: nowrap;
}

.logo-img {
  height: 42px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text .cn {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0em;
  color: var(--primary);
  white-space: nowrap;
}

.logo-text .en {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
  font-weight: 500;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--secondary);
  transition: color 0.2s ease;
  font-size: 0.95rem;
  position: relative;
  padding: 0.3rem 0;
}

.nav-links a:hover { color: var(--primary); }

.nav-links a.active {
  color: var(--accent-light);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn-quote {
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: white;
  padding: 0.65rem 1.5rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 20px -8px rgba(45, 140, 255, 0.7);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(45, 140, 255, 0.8);
}

/* ============ Hero 主视觉 ============ */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 140, 255, 0.25) 0%, transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-content { flex: 1 1 400px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 140, 255, 0.35);
  color: var(--accent-light);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
}

.hero-badge .dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px #28c840;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-light), #6bb8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.12rem;
  color: var(--secondary);
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: white;
  padding: 0.95rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 28px -10px rgba(45, 140, 255, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(45, 140, 255, 0.9);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 0.95rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: var(--accent-soft);
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.stat-item .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.stat-item .num span {
  color: var(--accent-light);
  font-size: 1.2rem;
}

.stat-item .label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.4rem;
}

.hero-visual {
  flex: 1 1 400px;
  display: flex;
  justify-content: center;
}

.search-card {
  background: linear-gradient(160deg, var(--surface), #0d1f38);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.search-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.search-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-card h3 i { color: var(--accent-light); }

.search-card .sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

.search-box {
  display: flex;
  background: #0a1a2f;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.4rem;
  margin-bottom: 1.2rem;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.search-box input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--primary);
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  min-width: 0;
}

.search-box input::placeholder { color: var(--muted); }

.search-box button {
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: white;
  border: none;
  padding: 0 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  flex-shrink: 0;
}

.search-box button:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.hot-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hot-models .label {
  font-size: 0.8rem;
  color: var(--muted);
  align-self: center;
  margin-right: 0.2rem;
}

.model-tag {
  background: var(--accent-soft);
  color: var(--accent-light);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(45, 140, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-tag:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

section { padding: 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header .eyebrow {
  display: inline-block;
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--secondary);
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.02rem;
}

.advantages { background: var(--bg-alt); }

.adv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.adv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.6rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  transition: height 0.3s ease;
}

.adv-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 140, 255, 0.4);
  box-shadow: var(--shadow-glow);
}

.adv-card:hover::before { height: 100%; }

.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
}

.adv-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.adv-card p {
  color: var(--secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

.products { background: var(--bg); }

.product-tabs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--accent);
  color: var(--primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 8px 20px -8px rgba(45, 140, 255, 0.7);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-card:hover {
  border-color: rgba(45, 140, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
}

.product-status {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #28c840;
}

.product-status .dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 6px #28c840;
}

.product-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  word-break: break-all;
}

.product-card .desc {
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.6em * 3);
  max-height: calc(1.6em * 3);
}

.product-card {
  min-height: 480px;
}

.product-meta {
  display: flex;
  gap: 1.2rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.product-meta i { color: var(--accent-light); font-size: 0.8rem; }

.product-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.product-actions a {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-sm-primary {
  background: var(--accent);
  color: white;
}

.btn-sm-primary:hover { background: var(--accent-light); }

.btn-sm-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--secondary);
}

.btn-sm-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.brands {
  background: var(--bg-alt);
  padding: 3.5rem 0;
}

.brands-title {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.brand-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.3rem 0.8rem;
  text-align: center;
  color: var(--secondary);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  cursor: default;
}

.brand-item:hover {
  color: var(--primary);
  border-color: var(--accent);
  background: var(--surface-hover);
  transform: translateY(-3px);
}

.process { background: var(--bg); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
}

.process-step:hover {
  border-color: rgba(45, 140, 255, 0.4);
  transform: translateY(-4px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 24px -8px rgba(45, 140, 255, 0.6);
}

.process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.process-step p {
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.about { background: var(--bg-alt); }

.about-inner {
  display: flex;
  gap: 4rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-content { flex: 1 1 400px; }

.about-content .eyebrow {
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}

.about-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.3rem;
  line-height: 1.25;
}

.about-content p {
  color: var(--secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.about-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--secondary);
}

.about-points li i {
  color: var(--accent-light);
  margin-top: 0.3rem;
}

.about-stats {
  flex: 1 1 320px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.about-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.4rem;
  transition: all 0.3s ease;
}

.about-stat:hover {
  border-color: rgba(45, 140, 255, 0.4);
  transform: translateY(-3px);
}

.about-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat .label {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact { background: var(--bg); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  transition: all 0.25s ease;
}

.contact-item:hover {
  border-color: rgba(45, 140, 255, 0.4);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
  word-break: break-all;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact-form .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.83rem;
  color: var(--secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: #0a1a2f;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--primary);
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: white;
  border: none;
  padding: 0.95rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  box-shadow: 0 12px 28px -10px rgba(45, 140, 255, 0.7);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(45, 140, 255, 0.9);
}

.footer {
  background: #061020;
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand .logo {
  margin-bottom: 0;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1.2rem;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col ul a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col ul a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-bottom a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-bottom a:hover { color: var(--accent-light); }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .contact-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.88rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .hero-inner { gap: 3rem; }
  .hero-stats { gap: 2rem; }
  section { padding: 4rem 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.3rem; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-left { gap: 1rem; font-size: 0.78rem; }
  .topbar-right { display: none; }

  .navbar .container { justify-content: center; }
  .nav-links {
    gap: 1rem;
    justify-content: center;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
  }

  .logo-text .en { display: none; }
  .logo-text .cn { font-size: 1rem; }
  .logo-img { height: 40px; }

  .hero h1 { font-size: 2rem; }
  .hero p.lead { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }

  .hero-stats {
    gap: 1.5rem;
    justify-content: space-between;
  }
  .stat-item { flex: 1 1 40%; }

  .search-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .about-stats { grid-template-columns: 1fr 1fr; }
}

.navbar .container {
  flex-wrap: nowrap !important;
  gap: 1rem !important;
}

.logo {
  max-width: 340px;
  min-width: 0;
}

.logo-text {
  min-width: 0;
}

.logo-text .cn {
  font-size: 0.9rem !important;
  letter-spacing: -0.01em !important;
}

.logo-text .en {
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
}

.nav-links {
  gap: 1.2rem !important;
  flex-wrap: nowrap !important;
}

.nav-links a {
  font-size: 0.88rem !important;
  white-space: nowrap;
}

.btn-quote {
  padding: 0.55rem 1.1rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .navbar .container {
    flex-wrap: wrap !important;
    gap: 1.2rem !important;
  }
  .nav-links {
    flex-wrap: wrap !important;
  }
}

.news { background: var(--bg-alt); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  display: flex;
  gap: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--accent), transparent);
  transition: height 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 140, 255, 0.4);
  box-shadow: var(--shadow-glow);
}

.news-card:hover::before { height: 100%; }

.news-date {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 8px 20px -8px rgba(45, 140, 255, 0.6);
}

.news-date .day {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.news-date .month {
  font-size: 0.7rem;
  margin-top: 4px;
  opacity: 0.9;
}

.news-body {
  flex: 1;
  min-width: 0;
}

.news-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.7rem;
}

.news-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 0.22rem 0.65rem;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.news-time {
  font-size: 0.75rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.news-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--primary);
  margin-bottom: 0.6rem;
  transition: color 0.2s ease;
}

.news-card:hover h3 { color: var(--accent-light); }

.news-card p {
  color: var(--secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-link {
  color: var(--accent-light);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.news-link:hover { gap: 0.7rem; }

.news-more {
  text-align: center;
}

@media (max-width: 640px) {
  .news-card {
    flex-direction: column;
    padding: 1.4rem;
  }

  .news-date {
    width: 52px;
    height: 52px;
  }

  .news-date .day { font-size: 1.3rem; }

  .news-card h3 { font-size: 0.98rem; }
}

.weixin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem;
}

.weixin-modal.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.weixin-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  width: 100%;
  max-width: 340px;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.weixin-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.weixin-close:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.weixin-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.weixin-box h3 i { color: #28c840; font-size: 1.3rem; }

.weixin-box > p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.weixin-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 1.2rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
}

.weixin-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.weixin-qr-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #07c160;
  font-size: 0.85rem;
  background: #f0f9f2;
}

.weixin-qr-placeholder i { font-size: 3rem; }

.weixin-id {
  color: var(--primary) !important;
  font-size: 0.95rem !important;
  margin-bottom: 0.4rem !important;
}

.weixin-id strong {
  color: var(--accent-light);
  letter-spacing: 0.02em;
}

.weixin-hint {
  color: var(--muted);
  font-size: 0.78rem !important;
  margin-bottom: 0 !important;
}

.menu-toggle { display: none; }
.mobile-quote { display: none; }

@media (max-width: 900px) {
  .navbar .container {
    flex-wrap: nowrap !important;
    gap: 1rem !important;
    position: relative;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent-soft);
    border: 1px solid rgba(45, 140, 255, 0.3);
    color: var(--accent-light);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
  }

  .menu-toggle:hover,
  .menu-toggle.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
  }

  .desktop-quote { display: none !important; }

  .nav-links {
    display: none !important;
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: #0d1f38;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    flex-direction: column;
    gap: 0.3rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
    z-index: 200;
  }

  .nav-links.open {
    display: flex !important;
    animation: menuSlide 0.25s ease;
  }

  @keyframes menuSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: normal;
    color: var(--secondary);
  }

  .nav-links a:hover {
    background: var(--accent-soft);
    color: var(--primary);
  }

  .nav-links a.active {
    color: var(--accent-light);
    background: var(--accent-soft);
  }

  .nav-links a.active::after {
    display: none;
  }

  .mobile-quote {
    display: flex !important;
    justify-content: center;
    margin-top: 0.5rem;
    color: white !important;
    background: linear-gradient(135deg, var(--accent), #1a6fdb) !important;
    border-radius: 40px;
    padding: 0.85rem 1.2rem !important;
    font-weight: 600;
  }

  .mobile-quote:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent)) !important;
    color: white !important;
  }
}

a.contact-item {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

a.contact-item:hover {
  border-color: rgba(45, 140, 255, 0.4);
}

#backToTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #1a6fdb);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(45, 140, 255, 0.7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 500;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(45, 140, 255, 0.9);
}

.btn-sm-ghost.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.skeleton-card {
  height: 260px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg,
    var(--surface) 0%,
    var(--surface-hover) 50%,
    var(--surface) 100%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s infinite;
  border: 1px solid var(--border);
}

.skeleton-news {
  height: 180px;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg,
    var(--surface) 0%,
    var(--surface-hover) 50%,
    var(--surface) 100%);
  background-size: 200% 100%;
  animation: skeleton-shine 1.4s infinite;
  border: 1px solid var(--border);
}

@keyframes skeleton-shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.8rem !important;
    line-height: 1.25 !important;
  }
  .hero p.lead {
    font-size: 0.95rem !important;
  }
  .hero-stats {
    gap: 1rem !important;
  }
  .stat-item {
    flex: 1 1 calc(50% - 1rem) !important;
  }
  .stat-item .num {
    font-size: 1.5rem !important;
  }
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .product-card {
    padding: 1.3rem !important;
  }
  .product-actions {
    flex-direction: column !important;
  }
  .product-actions a {
    width: 100% !important;
  }
  .search-card {
    padding: 1.3rem !important;
  }
  #backToTop {
    right: 16px !important;
    bottom: 16px !important;
    width: 42px !important;
    height: 42px !important;
  }
}

.product-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a1a2f;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.2rem;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a1a2f, #0d1f38);
}

.product-image-placeholder i {
  font-size: 1.8rem;
  opacity: 0.5;
}

@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
}

.news-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem 1.5rem;
}

.news-modal.open {
  display: flex;
  animation: newsFadeIn 0.25s ease;
}

@keyframes newsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.news-modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.2rem 2rem;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
  animation: newsPopIn 0.3s ease;
}

@keyframes newsPopIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.news-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.news-modal-close:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.news-modal-meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.news-modal-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 0.25rem 0.7rem;
  border-radius: 5px;
  letter-spacing: 0.03em;
}

.news-modal-time {
  font-size: 0.78rem;
  color: var(--muted);
}

.news-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.news-modal-content {
  color: var(--secondary);
  font-size: 0.98rem;
  line-height: 1.9;
  white-space: normal;
  word-wrap: break-word;
}

.news-modal-content p {
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .news-modal { padding: 1rem; }
  .news-modal-box { padding: 1.8rem 1.4rem 1.5rem; max-height: 90vh; }
  .news-modal-title { font-size: 1.2rem; }
  .news-modal-content { font-size: 0.92rem; }
}

#globalToastBox {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 99999; display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 480px;
  padding: 12px 18px; border-radius: 10px; font-size: 14px;
  color: #e8f1ff; background: #1b2a4a;
  border: 1px solid rgba(88, 166, 255, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.toast-success { border-color: rgba(56, 200, 130, 0.55); }
.toast-error { border-color: rgba(255, 90, 90, 0.55); }
.toast-warning { border-color: rgba(255, 190, 70, 0.55); }
.toast-info { border-color: rgba(88, 166, 255, 0.55); }

#langBtn {
  margin-left: 10px; padding: 6px 14px;
  border: 1px solid #2d8cff; background: transparent;
  color: #2d8cff; border-radius: 6px; cursor: pointer;
  font-weight: 600; font-family: inherit; font-size: 14px;
  transition: all .2s;
}
#langBtn:hover { background: #2d8cff; color: #fff; }
@media (max-width: 900px) { #langBtn { margin: 8px 0 0 0; } }

.chat-float-btn {
  position: fixed; right: 24px; bottom: 110px; z-index: 9998;
  width: 58px; height: 58px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, #2d8cff, #4da6ff); color: #fff;
  font-size: 24px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(45,140,255,.4);
  transition: transform .2s;
}
.chat-float-btn:hover { transform: scale(1.08); }
.chat-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #ff4d4f; color: #fff; font-size: 11px;
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.chat-panel {
  position: fixed; right: 24px; bottom: 180px; z-index: 9999;
  width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 200px);
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header {
  background: linear-gradient(135deg, #2d8cff, #4da6ff); color: #fff;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.chat-header-info { display: flex; gap: 10px; align-items: center; }
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-title { font-weight: 600; font-size: 15px; }
.chat-subtitle { font-size: 12px; opacity: .9; margin-top: 2px; }
.chat-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: #f7f9fc; }
.chat-welcome { font-size: 13px; color: #6b7f9e; line-height: 1.8; margin-bottom: 12px; }
.chat-msg .bubble {
  max-width: 78%; padding: 9px 13px; border-radius: 12px;
  font-size: 14px; line-height: 1.6; word-break: break-word; white-space: pre-wrap;
}
.chat-msg.agent .bubble { background: #fff; color: #1b2a4a; border: 1px solid #e3ebf5; }
.chat-msg.visitor .bubble { background: #2d8cff; color: #fff; }
.chat-quick {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 8px 12px; border-top: 1px solid #eef2f7; background: #fff;
}
.chat-quick button {
  font-size: 12px; padding: 5px 10px; border-radius: 14px;
  border: 1px solid #cfe2ff; background: #f0f7ff; color: #2d8cff; cursor: pointer;
}
.chat-quick button:hover { background: #2d8cff; color: #fff; }
.chat-input {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #eef2f7; background: #fff;
}
.chat-input textarea {
  flex: 1; resize: none; border: 1px solid #dce6f2; border-radius: 8px;
  padding: 8px 10px; font-size: 14px; font-family: inherit; max-height: 90px;
}
.chat-input button {
  width: 40px; border: none; border-radius: 8px;
  background: #2d8cff; color: #fff; cursor: pointer;
}
.chat-profile-mask {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 10000;
  align-items: center; justify-content: center;
}
.chat-profile-mask.open { display: flex; }
.chat-profile-box {
  background: #fff; border-radius: 12px; padding: 20px;
  width: 90%; max-width: 340px;
}
.chat-profile-box h4 { margin: 0 0 6px; font-size: 15px; }
.chat-profile-box p { font-size: 12px; color: #6b7f9e; margin: 0 0 14px; }
.chat-profile-box input {
  width: 100%; padding: 8px 12px; border: 1px solid #dce6f2;
  border-radius: 8px; font-size: 14px; margin-bottom: 10px;
  box-sizing: border-box; font-family: inherit;
}
.chat-profile-actions {
  display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px;
}
.chat-profile-actions button {
  padding: 7px 16px; border-radius: 8px; border: none; cursor: pointer; font-size: 13px;
}
.chat-profile-actions button:first-child { background: #f0f3f7; color: #6b7f9e; }
.chat-profile-actions button:last-child { background: #2d8cff; color: #fff; }
@media (max-width: 480px) {
  .chat-panel { right: 8px; left: 8px; width: auto; bottom: 160px; }
  .chat-float-btn { right: 16px; bottom: 90px; }
}

main > section {
  flex: 1;
}

/* ============ WhatsApp 悬浮按钮 ============ */
.whatsapp-float-btn {
  position: fixed;
  right: 24px;
  bottom: 180px; /* 比聊天按钮高一点 */
  z-index: 9998;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366; /* WhatsApp 官方绿 */
  color: #fff;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s, background 0.2s;
  border: none;
  cursor: pointer;
}

.whatsapp-float-btn:hover {
  transform: scale(1.08);
  background: #20ba5a;
}

@media (max-width: 480px) {
  .whatsapp-float-btn {
    right: 16px;
    bottom: 155px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}

/* =========================================
   全局字体强制统一
   ========================================= */
body, h1, h2, h3, h4, h5, h6, p, span, a, div, input, textarea, button, select, .btn-primary, .btn-ghost, .btn-quote {
  font-family: var(--font-main) !important;
}

/* ✅ 前台聊天时间戳样式 */
.chat-msg { 
  display: flex;
  flex-direction: column; 
  align-items: flex-start;
  margin-bottom: 12px; /* ✅ 补回消息间距 */
}
.chat-msg.visitor { 
  align-items: flex-end; 
}
.chat-msg .msg-time {
  font-size: 11px;
  color: #8c9eb5;
  margin-top: 4px;
  padding: 0 4px;
}