/* ============================================================
   正酱堂官网 · components.css
   Hero / 数据卡 / 品牌卡 / 产品卡 / 价签 / 评分卡 / 时间轴 /
   对比表 / 留资表单 / 占位块
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(197, 165, 90, .18), transparent 50%),
    radial-gradient(ellipse at 90% 85%, rgba(197, 165, 90, .14), transparent 45%),
    linear-gradient(150deg, var(--green-dark) 0%, var(--green) 55%, #23543E 100%);
  color: var(--cream);
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 90px 20px 80px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 40px;
  align-items: center;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  letter-spacing: .2em;
  color: var(--gold-light);
  border: 1px solid rgba(197, 165, 90, .5);
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 22px;
}
.hero h1 { color: var(--cream); margin-bottom: 18px; }
.hero h1 .gold { color: var(--gold-light); }
.hero .sub {
  font-size: 1.05rem;
  color: rgba(245, 242, 235, .82);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-bottle { display: flex; justify-content: center; }
.hero-bottle svg { width: min(240px, 60vw); height: auto; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .35)); }
.hero-logo svg { width: min(300px, 64vw); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 20px 56px; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-bottle { order: -1; }
  .hero-bottle svg { width: 150px; }
  .hero-logo svg { width: 180px; }
}

/* ---------- 信任数据卡 ---------- */
.stat-band { background: var(--green-dark); padding: 34px 0; }
.stat-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card { text-align: center; padding: 10px; }
.stat-card .num {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--gold-light);
  font-weight: 700;
}
.stat-card .num small { font-size: .55em; margin-left: 2px; }
.stat-card .label { color: rgba(245, 242, 235, .8); font-size: .92rem; margin-top: 4px; }
@media (max-width: 768px) { .stat-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 26px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card .card-kicker {
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--gold-deep);
  margin-bottom: 8px;
  display: block;
}
.card p { color: var(--ink-soft); font-size: .94rem; }
.card .card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--gold-deep);
  font-weight: 600;
  font-size: .9rem;
}
.card .card-link:hover { text-decoration: underline; }

/* 品牌卡顶部色条 */
.brand-card { border-top: 4px solid var(--gold); overflow: hidden; }
.brand-card .brand-motto {
  font-family: var(--font-serif);
  color: var(--green);
  font-size: 1.02rem;
  margin: 6px 0 10px;
}

/* 品牌页大图 */
.brand-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  padding: 28px;
}
/* 柔和展台：让带包装盒的组合图自然融入白/米白两种区块背景 */
.brand-figure::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: min(520px, 110%);
  aspect-ratio: 1 / 1;
  background: radial-gradient(ellipse 72% 72% at 50% 55%, rgba(245, 242, 235, .92) 0%, rgba(245, 242, 235, .45) 55%, transparent 78%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.section--white .brand-figure::before {
  background: radial-gradient(ellipse 72% 72% at 50% 55%, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .42) 55%, transparent 78%);
}
.brand-figure img {
  position: relative;
  z-index: 1;
  max-height: 380px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .22));
}
/* 极淡边缘羽化，抑制残余白边/锯齿 */
@supports ((-webkit-mask-image: radial-gradient(black, transparent)) or (mask-image: radial-gradient(black, transparent))) {
  .brand-figure img {
    -webkit-mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, black 88%, transparent 100%);
    mask-image: radial-gradient(ellipse 96% 96% at 50% 50%, black 88%, transparent 100%);
  }
}
@media (max-width: 900px) {
  .brand-figure { min-height: 240px; padding: 20px; }
  .brand-figure::before { width: min(360px, 112%); }
  .brand-figure img { max-height: 280px; }
}

/* ---------- 产品卡 & 价签 ---------- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-figure {
  background: linear-gradient(160deg, var(--cream) 0%, var(--cream-dark) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 26px 0 0;
  height: 190px;
}
.product-figure svg { height: 165px; width: auto; }
.product-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-body .p-name { font-family: var(--font-serif); font-size: 1.12rem; color: var(--green); font-weight: 700; }
.product-body .p-desc { font-size: .86rem; color: var(--ink-soft); margin: 6px 0 14px; flex: 1; }
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--green-dark);
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  width: fit-content;
}
.price-tag .rmb { font-size: .85rem; }
.price-tag .val { font-family: var(--font-serif); font-size: 1.3rem; }
.price-tag .spec { font-size: .72rem; font-weight: 400; opacity: .85; }
.price-tag--ask {
  background: var(--cream-dark); color: var(--ink-soft); font-weight: 600;
  cursor: pointer; border: none; font-family: inherit; font-size: .9rem;
  padding: 6px 16px; border-radius: 999px; transition: background .2s, color .2s;
}
.price-tag--ask:hover { background: var(--gold); color: var(--green-dark); }
.price-pending { background: var(--cream); color: var(--ink-soft); cursor: default; }
.price-pending .val { font-family: var(--font-sans); font-size: 1.1rem; opacity: .75; }

/* 产品图 */
.product-figure img.product-img { width: auto; height: 175px; object-fit: contain; display: block; margin: 0 auto; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .18)); transition: transform .25s; }
.product-card:hover .product-figure img.product-img { transform: translateY(-4px) scale(1.02); }

/* ---------- 价盘咨询弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(18, 48, 31, .62);
  display: none; align-items: center; justify-content: center; z-index: 999;
  padding: 20px; opacity: 0; transition: opacity .22s;
}
.modal-mask.is-open { display: flex; opacity: 1; }
.modal-box {
  background: #fff; border-radius: 16px; max-width: 360px; width: 100%;
  padding: 28px 26px 26px; text-align: center; position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); transform: translateY(12px);
  transition: transform .22s;
}
.modal-mask.is-open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 12px; right: 14px; width: 30px; height: 30px;
  border: none; background: transparent; font-size: 1.4rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; border-radius: 50%;
}
.modal-close:hover { background: rgba(0, 0, 0, .06); }
.modal-box h3 { font-family: var(--font-serif); color: var(--green); font-size: 1.3rem; margin-bottom: 6px; }
.modal-box .modal-lead { font-size: .92rem; color: var(--ink-soft); margin-bottom: 16px; }
.modal-box .modal-lead b { color: var(--green-dark); }
.modal-qr { width: 168px; height: 168px; object-fit: contain; border: 1px solid var(--cream-dark); border-radius: 10px; margin: 0 auto 12px; display: block; }
.modal-hint { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }
.modal-hint a { color: var(--gold-deep); font-weight: 700; }

/* ---------- 三维九度评分卡 ---------- */
.score-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px;
}
.score-card h4 {
  font-family: var(--font-serif);
  color: var(--green);
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.score-card .dim-note { font-size: .82rem; color: var(--ink-soft); margin-bottom: 16px; }
.score-row { margin-bottom: 13px; }
.score-row .score-label {
  display: flex;
  justify-content: space-between;
  font-size: .86rem;
  margin-bottom: 5px;
  color: var(--ink);
}
.score-row .score-label b { color: var(--gold-deep); font-family: var(--font-serif); }
.score-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--cream-dark);
  overflow: hidden;
}
.score-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green-soft), var(--gold));
}

/* ---------- 淘汰原因占比条 ---------- */
.reject-bar {
  display: flex;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 22px 0 12px;
}
.reject-bar div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  font-size: .82rem;
  letter-spacing: .04em;
  white-space: nowrap;
}
.reject-bar .r1 { background: var(--green-dark); }
.reject-bar .r2 { background: var(--green-soft); }
.reject-bar .r3 { background: var(--gold-deep); }
.reject-legend { display: flex; gap: 22px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); }
.reject-legend i {
  display: inline-block;
  width: 11px; height: 11px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: -1px;
}

/* ---------- 时间轴 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(197, 165, 90, .25));
}
.timeline li { position: relative; padding: 0 0 26px 18px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -27px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 1px var(--gold-deep);
}
.section--green .timeline li::before { border-color: var(--green); }
.timeline .t-title { font-family: var(--font-serif); font-weight: 700; color: var(--green); font-size: 1.02rem; }
.section--green .timeline .t-title { color: var(--gold-light); }
.timeline p { font-size: .9rem; color: var(--ink-soft); margin-top: 3px; }
.section--green .timeline p { color: rgba(245, 242, 235, .75); }

/* ---------- 对比表 ---------- */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .92rem;
}
.compare-table th, .compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--cream-dark);
}
.compare-table thead th {
  background: var(--green);
  color: var(--cream);
  font-family: var(--font-serif);
  letter-spacing: .06em;
}
.compare-table thead th.hl { background: var(--gold-deep); color: var(--white); }
.compare-table td.hl { color: var(--green); font-weight: 700; background: rgba(197, 165, 90, .1); }
.compare-table tbody tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* ---------- 留资表单 ---------- */
.lead-form {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px;
}
.lead-form .form-row { margin-bottom: 18px; }
.lead-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 7px;
}
.lead-form label .req { color: #B4441F; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--cream-dark);
  border-radius: 8px;
  font-size: .95rem;
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .2s;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
}
.form-hint { font-size: .8rem; color: var(--ink-soft); margin-top: 6px; }
.form-msg { margin-top: 14px; font-size: .9rem; display: none; padding: 12px 14px; border-radius: 8px; }
.form-msg.ok { display: block; background: rgba(45, 92, 70, .1); color: var(--green); }
.form-msg.err { display: block; background: rgba(180, 68, 31, .08); color: #B4441F; }

/* 联系方式卡（表单侧栏） */
.contact-panel {
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 34px 30px;
}
.contact-panel h3 { color: var(--gold-light); margin-bottom: 18px; }
.contact-panel .c-item { margin-bottom: 18px; }
.contact-panel .c-item .c-label { font-size: .78rem; letter-spacing: .18em; color: rgba(245, 242, 235, .6); }
.contact-panel .c-item .c-value {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
}
.contact-panel .c-item a.c-value:hover { color: var(--gold-light); }
.qr-placeholder {
  width: 150px; height: 150px;
  border: 1.5px dashed rgba(197, 165, 90, .6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: .78rem;
  color: rgba(245, 242, 235, .65);
  line-height: 1.6;
  padding: 12px;
}

/* ---------- 图片占位块 ---------- */
.img-placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(197, 165, 90, .07) 0 12px, transparent 12px 24px),
    var(--cream-dark);
  border: 1.5px dashed var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: .85rem;
  text-align: center;
  min-height: 200px;
  padding: 20px;
  line-height: 1.7;
}

/* ---------- 门店实景图库 ---------- */
.store-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.store-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
@media (min-width: 901px) {
  .store-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .store-gallery img:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- 步骤卡（合伙人路径） ---------- */
.step-card { text-align: center; padding: 28px 20px; }
.step-card .step-no {
  width: 46px; height: 46px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: var(--green-dark);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 首页价盘条 ---------- */
.price-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 1024px) { .price-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .price-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 合规提示条 ---------- */
.notice-strip {
  background: rgba(197, 165, 90, .13);
  border: 1px solid rgba(197, 165, 90, .4);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: .84rem;
  color: var(--ink-soft);
  text-align: center;
}
