/* ============================================================
   Zichen AI — 企业官网样式
   设计基调：B2B 外贸，简洁、专业、科技感
   ============================================================ */

:root {
  --ink: #0e1726;          /* 主文字/深色背景 */
  --ink-soft: #3d4a5c;
  --muted: #6b7787;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-dark: #0e1726;
  --accent: #155eef;       /* 科技蓝 */
  --accent-dark: #0e4ac9;
  --accent-soft: #eaf1fe;
  --whatsapp: #25d366;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(14, 23, 38, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 23, 38, 0.12);
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.brand:hover { text-decoration: none; }
.brand .brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent); text-decoration: none; }
.main-nav a.active { color: var(--accent); }
.lang-switch {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-soft);
  font-weight: 600;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
  line-height: 1;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whatsapp:hover { background: #1fb558; color: #fff; }
.btn-lg { padding: 15px 34px; font-size: 16px; }

/* ---------- 首页 Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0e1726 0%, #1c3358 100%);
  color: #fff;
  padding: 88px 0 96px;
}
.hero-inner { max-width: 720px; }
.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero p {
  font-size: 18px;
  color: #c4d0e0;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- 通用区块 ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: 30px; margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 优势条 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.feature-card .feature-icon {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--muted); }

/* ---------- 产品卡片 ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.product-card .pc-img {
  aspect-ratio: 1 / 1;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 20px; margin-bottom: 8px; }
.product-card .pc-desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; flex: 1; }
.product-card .pc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pc-tag {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}
.product-card .pc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pc-price { font-size: 15px; font-weight: 700; color: var(--ink); }
.pc-price small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; }

/* ---------- 产品详情页 ---------- */
.breadcrumb { font-size: 13px; color: var(--muted); padding: 20px 0 0; }
.breadcrumb a { color: var(--muted); }
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  padding: 28px 0 72px;
}
.pdp-gallery .main-img {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 1/1;
}
.pdp-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.pdp-thumbs button {
  width: 84px; height: 84px;
  border: 2px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
  padding: 0;
}
.pdp-thumbs button.active { border-color: var(--accent); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: 30px; line-height: 1.3; margin-bottom: 12px; }
.pdp-subtitle { color: var(--muted); font-size: 16px; margin-bottom: 24px; }
.pdp-price-box {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.pdp-price { font-size: 26px; font-weight: 700; color: var(--accent-dark); }
.pdp-price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.pdp-moq { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.pdp-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.pdp-actions .btn { width: 100%; }
.pdp-highlights { list-style: none; margin-bottom: 8px; }
.pdp-highlights li {
  padding: 7px 0 7px 26px;
  position: relative;
  font-size: 15px;
}
.pdp-highlights li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pdp-section { padding-bottom: 64px; }
.pdp-section h2 { font-size: 24px; margin-bottom: 20px; }

/* 参数表 */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  font-size: 14.5px;
  text-align: left;
}
.spec-table th {
  width: 220px;
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--ink-soft);
}

/* 产品视频 */
.product-video {
  max-width: 960px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.product-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

/* 详情功能图廊：图片自带英文标题/文案，保持原始比例不裁切 */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}
.detail-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.detail-gallery .wide { grid-column: 1 / -1; }
.detail-gallery .wide img { max-width: 820px; margin: 0 auto; }

/* ---------- 通用内容页 ---------- */
.page { padding: 56px 0 80px; }
.page h1 { font-size: 34px; margin-bottom: 8px; }
.page-lead { color: var(--muted); font-size: 17px; margin-bottom: 40px; }
.content-block { margin-bottom: 40px; max-width: 820px; }
.content-block h2 { font-size: 22px; margin-bottom: 12px; }
.content-block p { margin-bottom: 14px; color: var(--ink-soft); }
.content-block ul { margin: 0 0 14px 22px; color: var(--ink-soft); }
.content-block li { margin-bottom: 6px; }

/* ---------- 联系页 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-card .cc-label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.contact-card .cc-value { font-size: 16px; font-weight: 600; word-break: break-all; }
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group.required label::after { content: " *"; color: #d32f2f; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { resize: vertical; min-height: 120px; }
/* 蜜罐字段：真人不可见，机器人会填 */
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 14px; font-size: 14.5px; display: none; }
.form-status.ok { display: block; color: #1a7f37; }
.form-status.err { display: block; color: #d32f2f; }

/* ---------- CTA 条 ---------- */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 { font-size: 26px; margin-bottom: 10px; }
.cta-band p { color: #c4d0e0; margin-bottom: 26px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0a111d;
  color: #93a1b5;
  padding: 48px 0 32px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer a { color: #93a1b5; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- WhatsApp 浮动按钮 ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, .4);
}
.wa-float:hover { text-decoration: none; transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- 后台面板 ---------- */
.admin-body { background: var(--bg-soft); }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }
.admin-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.admin-head h1 { font-size: 24px; }
.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stat-card .sc-num { font-size: 30px; font-weight: 700; }
.stat-card .sc-label { font-size: 13px; color: var(--muted); }
.admin-panel {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; margin-bottom: 24px;
}
.admin-panel h2 { font-size: 17px; margin-bottom: 16px; }
.admin-panel table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-panel th, .admin-panel td {
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.admin-panel th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.range-bar { display: flex; gap: 8px; }
.range-bar button {
  padding: 7px 16px; border: 1px solid var(--line); background: #fff;
  border-radius: 6px; cursor: pointer; font-size: 13.5px;
}
.range-bar button.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp { grid-template-columns: 1fr; gap: 32px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .main-nav .lang-switch { margin-top: 8px; }
  .hero { padding: 60px 0 64px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 0; }
  .product-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
