/* ═══════════════════════════════════════════════════════════════════
   驴火装机 · 首页 v3「报头 · 长卷」（原创设计）
   仅作用于首页；GSAP/Lenis/Splide 动效配合 home.js
   ═══════════════════════════════════════════════════════════════════ */

.home-v3 { --ink: #201B16; --paper: #F6F1E6; --card: #FFFBF3; --seal: #B23A2E; --sauce: #7A4A2B; --gold: #D8A24A; --line: #D8CBB4; }
.home-v3, .home-v3 * { box-sizing: border-box; }
.home-v3 { background: transparent; }

/* ── HERO ─────────────────────────────────────────────────────── */
.v3-hero { position: relative; overflow: hidden; padding: 34px 0 10px; }
.v3-hero-inner {
  max-width: var(--w-page, 1080px); margin: 0 auto; padding: 0 18px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 28px; align-items: center;
}
.v3-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .32em; font-weight: 800; color: var(--seal);
  text-transform: uppercase;
}
.v3-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--seal); display: inline-block; }
.v3-hero h1 {
  margin: 14px 0 0;
  font-family: var(--v2-serif, "Songti SC", serif);
  font-size: clamp(34px, 5.6vw, 64px);
  line-height: 1.14; letter-spacing: .03em; color: var(--ink);
  font-weight: 900;
}
.v3-hero h1 em { font-style: normal; color: var(--seal); }
.v3-sub { margin: 16px 0 0; max-width: 30em; color: #5d5245; font-size: 15px; line-height: 1.95; }
.v3-hero-cta { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

.v3-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 6px; text-decoration: none;
  font-weight: 800; font-size: 15px; cursor: pointer;
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  box-shadow: 4px 4px 0 rgba(122, 74, 43, .2);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.v3-btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(122, 74, 43, .24); }
.v3-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(122, 74, 43, .2); }
.v3-btn-solid { background: var(--seal); border-color: #8E2A21; color: #FFF9EE; }
.v3-btn-line { background: var(--card); }
.v3-btn .icon { width: 1.05em; height: 1.05em; }

.v3-stats { display: flex; gap: 26px; margin-top: 28px; }
.v3-stats b {
  display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.v3-stats span { font-size: 12px; color: #8B7E6C; letter-spacing: .12em; }

.v3-hero-art { position: relative; }
.v3-hero-art img {
  width: 100%; max-width: 520px; display: block; margin-left: auto;
  border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 8px 8px 0 rgba(122, 74, 43, .18);
}
.v3-seal {
  position: absolute; right: -6px; top: -18px;
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--seal); color: #FFF9EE;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--v2-serif, "Songti SC", serif); font-weight: 900; font-size: 15px; line-height: 1.3;
  letter-spacing: .12em;
  box-shadow: 3px 3px 0 rgba(32, 27, 22, .25);
  transform: rotate(8deg);
  mix-blend-mode: multiply;
}

/* ── 跑马灯 ───────────────────────────────────────────────────── */
.v3-marquee {
  margin: 30px 0 6px; padding: 12px 0; overflow: hidden;
  background: var(--ink); color: #F6F1E6;
  border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
}
.v3-marquee-track { display: flex; gap: 46px; width: max-content; animation: v3-marq 26s linear infinite; }
.v3-marquee-track span { white-space: nowrap; font-size: 13.5px; letter-spacing: .22em; opacity: .92; }
.v3-marquee-track i { color: var(--gold); font-style: normal; }
@keyframes v3-marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── 区块 ─────────────────────────────────────────────────────── */
.v3-sec { max-width: var(--w-page, 1080px); margin: 0 auto; padding: 46px 18px 8px; }
.v3-sec > header { margin-bottom: 20px; }
.v3-sec h2 {
  margin: 0; font-family: var(--v2-serif, "Songti SC", serif);
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; color: var(--ink); letter-spacing: .04em;
}
.v3-sec h2::after { content: ""; display: block; width: 54px; height: 5px; margin-top: 10px; background: var(--seal); }
.v3-sec header p { margin: 10px 0 0; color: #8B7E6C; font-size: 13.5px; letter-spacing: .06em; }

/* 套餐卡（Splide 内） */
.v3-plan {
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  box-shadow: 5px 5px 0 rgba(122, 74, 43, .16);
  padding: 18px 16px 16px; height: 100%;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .16s ease, box-shadow .16s ease;
}
.v3-plan:hover { transform: translateY(-4px); box-shadow: 8px 10px 0 rgba(122, 74, 43, .2); }
.v3-plan-badge {
  align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: #FFF9EE; background: var(--sauce); padding: 3px 10px; border-radius: 3px;
}
.v3-plan h3 { margin: 2px 0 0; font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.4; }
.v3-plan p { margin: 0; color: #8B7E6C; font-size: 12.5px; line-height: 1.7; min-height: 42px; }
.v3-plan .price { font-size: 24px; font-weight: 900; color: var(--seal); font-variant-numeric: tabular-nums; }
.v3-plan .price small { font-size: 12px; color: #8B7E6C; font-weight: 700; margin-left: 4px; }
.v3-plan .go {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: var(--seal); cursor: pointer;
}
.v3-plan .go .icon { transition: transform .16s ease; }
.v3-plan:hover .go .icon { transform: translateX(4px); }

/* 特色卡 */
.v3-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.v3-feat {
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  padding: 18px 16px; box-shadow: 4px 4px 0 rgba(122, 74, 43, .14);
}
.v3-feat .ic {
  width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 2px solid var(--ink); color: var(--seal);
}
.v3-feat .ic .icon { width: 20px; height: 20px; }
.v3-feat h4 { margin: 12px 0 4px; font-size: 15px; font-weight: 900; color: var(--ink); }
.v3-feat p { margin: 0; font-size: 12.5px; color: #8B7E6C; line-height: 1.7; }

/* 配置单票据 */
.v3-tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.v3-ticket {
  position: relative; background: var(--card); border: 2px solid var(--ink); border-radius: 10px;
  padding: 16px 16px 14px; box-shadow: 4px 4px 0 rgba(122, 74, 43, .14);
  text-decoration: none; display: block; overflow: hidden;
}
.v3-ticket::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 44px; height: 0;
  border-top: 2px dashed var(--line);
}
.v3-ticket .no { font-family: var(--v2-serif, serif); font-size: 20px; font-weight: 900; color: var(--seal); }
.v3-ticket .nm { margin-top: 4px; font-size: 13.5px; color: var(--ink); font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v3-ticket .ft { margin-top: 14px; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.v3-ticket .ft span { font-size: 11.5px; color: #8B7E6C; }
.v3-ticket .ft b { font-size: 17px; font-weight: 900; color: var(--ink); }

/* 联系区 */
.v3-contact {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: stretch;
}
.v3-contact-card {
  background: var(--ink); color: #F6F1E6; border-radius: 10px; padding: 26px 24px;
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(122, 74, 43, .2);
}
.v3-contact-card h3 { margin: 0 0 10px; font-family: var(--v2-serif, serif); font-size: 22px; letter-spacing: .06em; }
.v3-contact-card p { margin: 0 0 18px; color: #cfc3b2; font-size: 13.5px; line-height: 1.9; }
.v3-contact-card .v3-btn { border-color: var(--gold); }
.v3-contact-side {
  background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: 22px 20px;
  box-shadow: 4px 4px 0 rgba(122, 74, 43, .14);
}
.v3-contact-side .row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; color: #5d5245; font-size: 13.5px; line-height: 1.7; }
.v3-contact-side .row .icon { width: 18px; height: 18px; color: var(--seal); flex: none; margin-top: 2px; }

/* 滚动揭示初始态：仅当 home.js 成功启用动效时才会加 .v3-anim（渐进增强） */
.v3-anim .v3-reveal { opacity: 0; transform: translateY(26px); }

/* ── 手机端 ───────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .v3-hero-inner { grid-template-columns: 1fr; gap: 18px; padding: 0 14px; }
  .v3-hero-art img { margin: 0 auto; max-width: 100%; }
  .v3-seal { width: 74px; height: 74px; font-size: 12.5px; right: 2px; top: -12px; }
  .v3-stats { gap: 18px; }
  .v3-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v3-tickets { grid-template-columns: 1fr 1fr; }
  .v3-contact { grid-template-columns: 1fr; }
  .v3-sec { padding: 34px 14px 6px; }
}
@media (max-width: 420px) {
  .v3-feats { grid-template-columns: 1fr; }
  .v3-tickets { grid-template-columns: 1fr; }
  .v3-hero-cta .v3-btn { flex: 1 1 auto; justify-content: center; }
}

/* 赵州桥拱线分隔（石家庄元素） */
.v3-divider { max-width: 1080px; margin: 30px auto 0; padding: 0 18px; color: var(--v2-line-strong, #B9A98C); }
.v3-divider svg { display: block; width: 190px; height: 46px; margin: 0 auto; opacity: .9; }
.v3-divider::after { content: "赵州桥畔 · 河北石家庄"; display: block; text-align: center; margin-top: 6px; font-size: 11px; letter-spacing: .34em; color: #8B7E6C; }
@media (max-width: 640px) { .v3-divider { margin-top: 20px; } .v3-divider svg { width: 150px; height: 38px; } }

/* ══════════════════════════════════════════════
   卡片微交互升级（纯视觉，不动功能）
   套餐卡：金红顶线展开 + 价格上浮
   特色卡：图标盖印翻转 + 卡片抬升
   票据卡：虚线变朱砂 + 金额变色
   统计数字：金线规则
   ══════════════════════════════════════════════ */
.v3-plan { position: relative; overflow: hidden; }
.v3-plan::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--seal, #B23A2E), var(--gold, #D8A24A));
  transform: scaleX(0); transform-origin: left; transition: transform .32s cubic-bezier(.16,1,.3,1);
}
.v3-plan:hover::before { transform: scaleX(1); }
.v3-plan .price { transition: transform .22s ease; }
.v3-plan:hover .price { transform: translateY(-2px); }

.v3-feat { transition: transform .22s ease, box-shadow .22s ease; }
.v3-feat:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 rgba(122, 74, 43, .2); }
.v3-feat .ic { transition: transform .28s cubic-bezier(.16,1,.3,1), background .28s ease, color .28s ease, border-color .28s ease; }
.v3-feat:hover .ic { transform: rotate(-7deg) scale(1.1); background: var(--seal, #B23A2E); color: #FFF9EE; border-color: #8E2A21; }

.v3-ticket { transition: transform .22s ease, box-shadow .22s ease; }
.v3-ticket:hover { transform: translateY(-5px); box-shadow: 7px 9px 0 rgba(122, 74, 43, .2); }
.v3-ticket::after { transition: border-top-color .25s ease; }
.v3-ticket:hover::after { border-top-color: var(--seal, #B23A2E); }
.v3-ticket .ft b { transition: color .25s ease; }
.v3-ticket:hover .ft b { color: var(--seal, #B23A2E); }

.v3-stats b { position: relative; }
.v3-stats b::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 26px; height: 3px;
  background: var(--gold, #D8A24A);
}

.quota-banner { border-left: 5px solid var(--seal, #B23A2E) !important; }

@media (prefers-reduced-motion: reduce) {
  .v3-plan::before, .v3-plan .price, .v3-feat, .v3-feat .ic, .v3-ticket, .v3-ticket::after, .v3-ticket .ft b { transition: none !important; }
}
