/* ============================================================
   pages/home · 首页
   ------------------------------------------------------------
   首屏英雄区、品牌条、板块标题、首页版产品卡、价值主张、评价、服务费说明。
   视觉基准：线上版首页（2026-10-20 实测，
   渐变角 159deg、标题 35/42、搜索框 500px 圆角 34px、品牌条 #F2F2F2）。
   ============================================================ */

/* ---------- 首屏 ---------- */
.hero {
  background: var(--hero-grad);
  color: #fff;
  padding: 38px 0 44px;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
}
.hero h1 {
  font-size: 35px;
  line-height: 42px;
  font-weight: 700;
  letter-spacing: -.2px;
  color: #fff;
}
.hero .sub {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--hero-ink-2);
  max-width: 500px;
}

/* 搜索框：按钮嵌在输入框内部，和原站一致 */
.searchbox { position: relative; margin-top: 24px; max-width: 500px; }
.searchbox input {
  width: 100%;
  height: 46px;
  padding: 11px 132px 11px 20px;
  border: 0;
  border-radius: 34px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .16);
}
.searchbox input::placeholder { color: #98a2b3; }
.searchbox input:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .35), 0 2px 10px rgba(0, 0, 0, .18); }
.searchbox button {
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 34px;
  background: linear-gradient(to bottom, var(--action), var(--action-dark));
  color: var(--action-ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.searchbox button:hover { filter: brightness(1.05); }

.trending {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 15px;
  color: #d5dff1;
}
.trending a {
  background: var(--hero-chip);
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 4px 13px;
  color: #fff;
  font-size: 15px;
}
.trending a:hover { border-color: rgba(255, 255, 255, .38); }

.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .38));
}

/* ---------- 板块标题（原站是居中单行，没有右侧链接） ---------- */
section.block { max-width: var(--maxw); margin: 0 auto; padding: 40px var(--pad); }
.block-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  text-align: center;
}
.block-head h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: var(--brand);
}
.block-head .more { margin-left: 0; font-size: 15px; color: var(--brand-2); font-weight: 500; }
.block-head .more:hover { text-decoration: underline; }
.block-head .block-note { font-size: 14px; color: var(--ink-2); }

/* ---------- 品牌条 ---------- */
.brands { background: #f2f2f2; padding: 26px 0; }
.brands-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.brands-inner h3 {
  font-size: 21px;
  font-weight: 400;
  color: var(--ink-2);
  text-align: center;
  margin-bottom: 18px;
  letter-spacing: 0;
}
/* 10 个品牌一行铺满（原站是 flex 平分），窄屏改成横滑 */
.brand-row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}
.brand-row a {
  background: #fff;
  min-width: 0;
  border-radius: var(--radius-sm);
  padding: 8px;
  box-shadow: 0 0 5px -1px rgba(0, 0, 0, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow .15s;
}
.brand-row a:hover { box-shadow: 0 3px 12px -2px rgba(0, 0, 0, .26); }
.brand-row img { height: 30px; width: 100%; object-fit: contain; }
.brand-row .txt { font-weight: 700; color: var(--ink-2); font-size: 14px; letter-spacing: .2px; padding: 0 8px; }

/* ---------- 首页版产品卡 ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
:where(.card--home) .card-img { padding: 16px; height: 132px; }
:where(.card--home) .card-img img { max-height: 100px; }
:where(.card--home) .card-body { padding: 12px 14px 14px; gap: 6px; }
:where(.card--home) .card-title { font-weight: 500; color: var(--ink); }
:where(.card--home) .card-title:hover { color: var(--brand-2); }
:where(.card--home) .rating { gap: 5px; }
:where(.card--home) .stars { letter-spacing: -1px; }
:where(.card--home) .variant-hint { font-size: 13px; color: var(--ink-2); }
:where(.card--home) .variant-hint b { font-weight: 700; }
:where(.card--home) .price-range {
  margin-top: auto;
  font-size: 17px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.2px;
}
:where(.card--home) .price-range small { font-size: 11px; font-weight: 500; margin-left: 3px; }
:where(.card--home) .fee-note { font-size: 12px; color: var(--ink-3); }
:where(.card--home) .card-cta {
  margin-top: 8px;
  text-align: center;
  padding: 8px 0;
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: #2b5f8a;
  font-weight: 700;
  font-size: 14px;
}
:where(.card--home) .card-cta:hover { background: #d3e4f9; }

/* ---------- 价值主张 ---------- */
.usp { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.usp-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 38px var(--pad);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.usp-item { display: flex; gap: 14px; align-items: flex-start; }
.usp-item .ic {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.usp-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--brand); }
.usp-item p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---------- 客户评价（浅蓝通栏，原站 #E4EEFC） ---------- */
.reviews-band { background: var(--brand-soft); }
.reviews-band section.block { padding-top: 38px; padding-bottom: 44px; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quote {
  background: #fff;
  border-radius: 17px;
  padding: 24px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s;
}
.quote:hover { transform: translateY(-3px); }
.quote .stars { font-size: 15px; letter-spacing: 0; }
.quote p { font-size: 15px; color: #374151; line-height: 1.6; }
.quote .who { font-size: 14px; color: var(--brand); font-weight: 600; margin-top: auto; }

/* ---------- 服务费说明 ---------- */
.fee { max-width: var(--maxw); margin: 0 auto 48px; padding: 0 var(--pad); }
.fee-box {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.fee-box .ic { font-size: 20px; line-height: 1.2; }
.fee-box h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: #7a3c00; }
.fee-box p { font-size: 14px; color: #8a4b00; line-height: 1.6; max-width: 900px; }
.fee-box code { background: #fff3d6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }

/* ---------- 窄屏 ---------- */
@media (max-width: 900px) {
  .hero h1 br { display: none; }
  .brand-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .brand-row::-webkit-scrollbar { display: none; }
  .brand-row a { flex: 0 0 auto; }
  .brand-row img { width: auto; height: 26px; }
  .hero { padding: 28px 0 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 18px; }
  .hero h1 { font-size: 28px; line-height: 34px; }
  .hero .sub { font-size: 17px; }
  .searchbox { max-width: none; }
  .hero-art { order: 2; }
  .hero-art img { max-height: 190px; margin: 0 auto; width: auto; }
  .usp-inner { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
}
