/* 游仟易采官网共用样式(首页 + 品类落地页)
   布局参照「白色导航 + 左对齐 hero + 大图品类网格」, 配色沿用品牌红。
   改样式只改这一处; 各页面 <head> 里引用 /site.css */

:root {
  --primary: #e93323;
  --primary-dark: #c9281a;
  --price: #fd502f;
  --text: #282828;
  --sub: #666;
  --aux: #999;
  --bg: #f5f5f5;
  --line: #eee;
  --hero-bg: #fff7f5;
  --radius: 14px;
  --shadow: 0 3px 14px rgba(0, 0, 0, .06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }

/* ───────────────────────── 顶部导航 ───────────────────────── */
.nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 20px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 1px;
  flex-shrink: 0;
}
.nav-logo { width: 28px; height: 28px; border-radius: 7px; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-menu::-webkit-scrollbar { display: none; }
.nav-menu a {
  color: var(--sub);
  text-decoration: none;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover,
.nav-menu a.is-active { color: var(--primary); border-bottom-color: var(--primary); }

/* ───────────────────────── 首页 hero(左文右图) ───────────────────────── */
.hero {
  background: linear-gradient(180deg, var(--hero-bg) 0%, #fff 100%);
  padding: 64px 20px 72px;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 1160px;
  margin: 0 auto;
}
.hero-copy { flex: 1 1 52%; }
.hero-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 1px;
}
.hero-title .accent { color: var(--primary); }
.hero-lead {
  margin-top: 18px;
  font-size: 16px;
  color: var(--sub);
  line-height: 1.9;
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { flex: 1 1 44%; }

/* 商品图拼贴 */
.hero-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.hero-collage img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.hero-collage img:nth-child(2) { margin-top: 20px; }
.hero-collage img:nth-child(3) { margin-top: -20px; }

/* ───────────────────────── 按钮 ───────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 13px 38px;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  color: var(--primary);
  border: 1px solid #ffd0c8;
  font-size: 16px;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
}
.btn-ghost:hover { background: var(--hero-bg); }
.btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ───────────────────────── 通用区块 ───────────────────────── */
.section { padding: 60px 20px; max-width: 1160px; margin: 0 auto; }
.section--tint { background: var(--bg); max-width: none; }
.section--tint > .section-inner { max-width: 1160px; margin: 0 auto; }
.section-title { text-align: center; font-size: 28px; font-weight: 800; }
.section-sub {
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  color: var(--aux);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-title::after {
  content: '';
  display: block;
  width: 42px; height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 14px auto 0;
}
.section-lead {
  margin-top: 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.9;
}

/* ───────────────────────── 品类大图网格 ───────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}
.cat-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .18s, transform .18s;
}
.cat-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .1); transform: translateY(-3px); }
.cat-card img {
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  background: var(--bg);
}
.cat-label {
  display: block;
  padding: 13px 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.cat-card:hover .cat-label { color: var(--primary); }

/* ───────────────────────── 服务优势 ───────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.feature .icon { line-height: 0; color: var(--primary); }
.feature .icon svg { width: 34px; height: 34px; }
.feature .name { font-size: 17px; font-weight: 700; margin-top: 12px; }
.feature .desc { font-size: 13px; color: var(--sub); margin-top: 8px; line-height: 1.7; }

/* ───────────────────────── 合作流程 ───────────────────────── */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; margin-top: 30px; }
.step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; }
.step .no {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.step .t { font-weight: 700; font-size: 16px; }
.step .d { font-size: 13px; color: var(--sub); margin-top: 4px; line-height: 1.7; }

/* ───────────────────────── 常见问题 ───────────────────────── */
.faq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; }
.faq-item {
  background: #fffafa;
  border-left: 3px solid var(--primary);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
}
.faq-q { font-size: 16px; font-weight: 700; }
.faq-a { font-size: 14px; color: var(--sub); line-height: 1.8; margin-top: 8px; }

/* ───────────────────────── 留资表单 ───────────────────────── */
.form-wrap { max-width: 640px; margin: 0 auto; }
.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 26px;
  box-shadow: 0 8px 34px rgba(0, 0, 0, .09);
  margin-top: 30px;
}
.form-item { margin-bottom: 16px; }
.form-item label { display: block; font-size: 14px; color: var(--sub); margin-bottom: 6px; }
.form-item input, .form-item textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.form-item input:focus, .form-item textarea:focus { border-color: var(--primary); }

/* 蜜罐字段: 仅机器人会填, 对真实用户与读屏软件均不可见 */
.hp-field {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  left: -9999px;
}

.submit-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  padding: 15px 0;
  cursor: pointer;
  font-family: inherit;
}
.submit-btn:hover { background: var(--primary-dark); }
.submit-btn:disabled { opacity: .6; }
.form-tip { text-align: center; font-size: 12px; color: var(--aux); margin-top: 12px; line-height: 1.7; }
.form-tip a { color: var(--aux); }
.msg { text-align: center; font-size: 14px; margin-top: 10px; min-height: 20px; }
.msg.ok { color: #52c41a; }
.msg.err { color: var(--primary); }

/* ───────────────────────── 联系区 ───────────────────────── */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 46px;
}
.contact-box { text-align: center; }
.contact-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.qr {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  margin: 0 auto;
  background: #fff;
}
.contact-text { font-size: 13px; color: var(--sub); line-height: 1.9; margin-top: 10px; }
.contact .btn-ghost { margin-bottom: 14px; }

/* ───────────────────────── 页脚 ───────────────────────── */
footer {
  background: #2b2b2b;
  color: #999;
  text-align: center;
  font-size: 12px;
  padding: 26px 16px;
  line-height: 2;
}
footer a { color: #999; text-decoration: none; }
footer a:hover { color: #ccc; }
.footer-tel {
  background: none;
  border: none;
  padding: 0;
  color: #999;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
}
.footer-tel:hover { color: #ccc; }

/* ───────────────────────── 品类落地页 ───────────────────────── */
.page-hero {
  background: linear-gradient(180deg, var(--hero-bg) 0%, #fff 100%);
  padding: 44px 20px 52px;
}
.page-hero-inner { max-width: 1160px; margin: 0 auto; }
.crumb { font-size: 13px; color: var(--aux); margin-bottom: 20px; }
.crumb a { color: var(--aux); text-decoration: none; }
.crumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: 34px; font-weight: 800; line-height: 1.35; letter-spacing: 1px; }
.page-hero .lead {
  margin-top: 16px;
  max-width: 780px;
  font-size: 15px;
  color: var(--sub);
  line-height: 1.9;
}
.page-hero .hero-actions { margin-top: 26px; }

.prose { margin-top: 20px; font-size: 15px; color: #333; line-height: 1.95; }
.prose p { margin-bottom: 14px; }
.prose strong { color: var(--text); }

/* 品类落地页的子品类卡片: grid + auto-fit, 3 个或 4 个都能铺满一行 */
.subcat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 26px;
  list-style: none;
}
.subcat li {
  background: #fff7f6;
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}
.subcat li .spec { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--sub); line-height: 1.6; }

.scenes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.scene {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow);
}
.scene .st { font-size: 15px; font-weight: 700; }
.scene .sd { font-size: 13px; color: var(--sub); margin-top: 6px; line-height: 1.75; }

/* 品类页互相内链, 补上单页站缺失的内部链接结构 */
.crosslinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.crosslinks a {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.crosslinks a:hover { background: #fff7f6; border-color: #ffd0c8; }

/* ───────────────────────── 响应式 ───────────────────────── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 34px; }
  .hero-copy { flex: 1 1 auto; }
  .hero-media { flex: 1 1 auto; width: 100%; }
  .hero-title { font-size: 30px; }
  .hero-collage img { height: 118px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-card img { height: 132px; }
  .features { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .steps { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .scenes { grid-template-columns: 1fr; }
  .crosslinks { grid-template-columns: 1fr; }
  .section { padding: 44px 20px; }
  .page-hero h1 { font-size: 26px; }
  .nav-menu { gap: 18px; font-size: 14px; }
}

@media (max-width: 560px) {
  .hero { padding: 40px 20px 48px; }
  .hero-title { font-size: 26px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }
  .cat-card img { height: 110px; }
  .cat-label { font-size: 14px; padding: 11px 6px; }
}
