/* ============================================
   贝贝证件照助手 - 全站共享样式
   配色：湖蓝主色 #2B8CFF + 淡蓝背景 #F2F8FF
   ============================================ */

:root {
  --primary: #2B8CFF;
  --primary-dark: #1a6ee0;
  --primary-light: #e8f2ff;
  --bg: #F2F8FF;
  --white: #ffffff;
  --text: #1a2332;
  --text-secondary: #5a6578;
  --border: #d8e8fc;
  --shadow: 0 4px 20px rgba(43, 140, 255, 0.12);
  --shadow-hover: 0 8px 32px rgba(43, 140, 255, 0.22);
  --radius: 14px;
  --container: 1100px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== 导航栏 ===== */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(43, 140, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #2B8CFF, #60A5FA);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}

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

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

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

.nav-mini {
  background: var(--primary);
  color: var(--white);
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-mini:hover { background: var(--primary-dark); }

/* ===== 通用容器 ===== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== 通用卡片 ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

/* ===== 通用按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(43, 140, 255, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ===== 页面标题 ===== */
.page-header {
  padding: 60px 0 48px;
  text-align: center;
}

.page-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.page-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== 底部栏 ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 80px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--primary); }

/* ===== 标签 ===== */
.tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.tag-blue { background: var(--primary-light); color: var(--primary); }
.tag-green { background: #e6f9f0; color: #27ae60; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .page-title { font-size: 26px; }
  .card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== 落地页通用 ===== */
.breadcrumb { font-size: 13px; color: var(--text-secondary); padding: 18px 0 0; }
.breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; color: #c0c8d6; }

.landing-hero {
  background: linear-gradient(135deg, #1a6ee0 0%, #2B8CFF 50%, #60A5FA 100%);
  padding: 60px 24px 68px; text-align: center; color: #fff;
}
.landing-hero h1 { font-size: 36px; font-weight: 800; margin-bottom: 14px; line-height: 1.25; }
.landing-hero p { font-size: 17px; color: rgba(255,255,255,0.88); max-width: 620px; margin: 0 auto; line-height: 1.7; }

.section { padding: 64px 24px; }
.section-white { background: var(--white); }
.section-alt { background: #f7fbff; }
.lead { font-size: 16px; color: var(--text-secondary); max-width: 740px; margin: 0 auto; line-height: 1.9; text-align: center; }

/* 分类标题 */
.cat-title {
  font-size: 18px; font-weight: 700; color: var(--primary);
  margin: 44px 0 0; display: flex; align-items: center; gap: 8px;
}

/* 尺寸表 */
.spec-table {
  width: 100%; border-collapse: collapse; margin-top: 22px;
  border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); background: #fff;
}
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.spec-table th { background: var(--primary); color: #fff; font-weight: 600; }
.spec-table tr:nth-child(even) td { background: #f7fbff; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td.px { font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.spec-table td.mm { color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* FAQ */
.faq-list { max-width: 820px; margin: 24px auto 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 8px 28px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 1.85; }

/* 二维码卡片 */
.qr-card { text-align: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; max-width: 360px; margin: 0 auto; }
.qr-card img { width: 200px; height: 200px; border-radius: 12px; border: 1px solid var(--border); }
.qr-card .qr-name { font-size: 16px; font-weight: 700; color: var(--text); margin-top: 14px; }
.qr-card .qr-tip { font-size: 13px; color: var(--text-secondary); margin-top: 6px; line-height: 1.7; }

/* 步骤 */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.step { background: #fff; border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.step .num { width: 36px; height: 36px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 6px; color: var(--text); }
.step p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* 颜色样本 */
.color-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 24px; }
.color-item { background: #fff; border-radius: 12px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow); }
.color-swatch { width: 60px; height: 60px; border-radius: 10px; margin: 0 auto 10px; border: 1px solid var(--border); }
.color-item .cname { font-size: 14px; font-weight: 600; color: var(--text); }
.color-item .chex { font-size: 12px; color: var(--text-secondary); font-variant-numeric: tabular-nums; margin-top: 2px; }

/* CTA */
.cta-row { text-align: center; margin-top: 40px; }
.cta-row .btn { margin: 6px; }

/* 两栏布局 */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 28px; } .landing-hero h1 { font-size: 28px; } .spec-table { font-size: 13px; } .spec-table th, .spec-table td { padding: 11px 12px; } }
