/* ============================================================
   子页面共享样式：好物推荐 / F1 车手图鉴 / 羽毛球档案
   依赖 style.css 的主题变量
   ============================================================ */
body.p-page { background: var(--navy); cursor: auto; }
body.p-page * { cursor: auto; }
body.p-page a, body.p-page button { cursor: pointer; }

.p-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad-x);
  background: linear-gradient(180deg, rgba(29,34,68,.94), rgba(29,34,68,.55) 70%, rgba(29,34,68,0));
  backdrop-filter: blur(8px);
}
.p-nav .back {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); font-weight: 800; font-size: 17px;
  transition: transform .3s, color .3s;
}
.p-nav .back:hover { transform: translateX(-4px); color: var(--pink); }
.p-nav .back i { font-style: normal; font-size: 20px; }
.p-nav .pt { font-family: var(--font-mono); letter-spacing: .22em; font-size: 13px; color: var(--cream-dim); }

.p-hero {
  padding: calc(72px + 9vh) var(--pad-x) 7vh;
  text-align: center; position: relative; overflow: hidden;
}
.p-hero .label {
  display: inline-block; background: var(--pink); color: var(--navy-deep);
  font-size: 14px; font-weight: 800; padding: 8px 18px; border-radius: 999px;
  transform: rotate(-2deg); margin-bottom: 22px;
}
.p-hero h1 {
  font-size: clamp(48px, 8.6vw, 132px); font-weight: 900;
  color: var(--cream); line-height: 1.08; letter-spacing: .01em;
}
.p-hero h1 em { font-style: normal; color: var(--pink); }
.p-hero .sub { margin-top: 16px; color: var(--cream-dim); font-size: clamp(15px, 1.6vw, 19px); }
.p-hero .hero-art { position: absolute; pointer-events: none; z-index: -1; }

.p-marquee {
  overflow: hidden; padding: 13px 0;
  background: var(--pink); color: var(--navy-deep);
  font-family: var(--font-mono); font-weight: 700; font-size: 15px;
}
.p-marquee .track { display: flex; gap: 42px; width: max-content; animation: marquee 24s linear infinite; white-space: nowrap; }

.sec-g { padding: 9vh var(--pad-x) 4vh; }
.sec-g .g-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: 6vh; max-width: 1180px; margin-inline: auto; }
.g-head h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 900; }
.g-head h2 em { font-style: normal; color: var(--pink); }
.g-head .cnt { font-family: var(--font-mono); color: var(--cream-dim); font-size: 14px; }

.g-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 38px 30px; max-width: 1180px; margin: 0 auto;
}
.g-card {
  position: relative; border-radius: 20px; padding: 24px 24px 26px;
  background: rgba(29, 34, 68, .55); border: 1px solid rgba(242, 239, 230, .1);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.g-card:hover { transform: translateY(-9px) rotate(-1deg); border-color: rgba(242,145,186,.55); box-shadow: 0 26px 60px rgba(0,0,0,.42); }
.g-card .stkbox { height: 230px; display: grid; place-items: center; margin-bottom: 16px; }
.g-card .stkbox > img {
  max-height: 230px; max-width: 82%;
  filter: drop-shadow(0 16px 24px rgba(0,0,0,.38));
  animation: stk-float 3.6s ease-in-out infinite;
  will-change: transform;
}
/* 粘贴式悬浮贴纸（.stk 结构）自适应卡片 */
.g-card .stkbox .stk { --w: min(200px, 62%) !important; line-height: 0; }
.g-card .stkbox .stk .stk__img { max-height: 230px; }
.g-card .stkbox .stk .stk__gnd { display: none; }
.g-card:nth-child(2n) .stkbox img { animation-delay: -1.3s; }
.g-card:nth-child(3n) .stkbox img { animation-delay: -2.3s; }
@keyframes stk-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-11px) rotate(1.2deg); }
}
.g-card h3 { font-size: 21px; font-weight: 900; }
.g-card .tag {
  display: inline-block; margin: 10px 0 8px; font-size: 12px; font-weight: 800;
  letter-spacing: .12em; background: var(--pink); color: var(--navy-deep);
  border-radius: 999px; padding: 5px 13px;
}
.g-card p { font-size: 14.5px; color: #c9c5b8; line-height: 1.75; }

.reveal { opacity: 0; transform: translateY(46px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- 悬浮大贴纸（hero） ---------- */
.p-stk {
  position: absolute; pointer-events: none; z-index: 1;
  filter: drop-shadow(0 16px 26px rgba(0,0,0,.4));
  animation: stk-float 4.2s ease-in-out infinite;
  will-change: transform;
}
.p-stk.l { left: 3%; bottom: 6%; width: clamp(150px, 22vw, 320px); transform: rotate(-5deg); }
.p-stk.r { right: 3%; bottom: 4%; width: clamp(160px, 23vw, 340px); transform: rotate(4deg); animation-delay: -1.6s; }
@media (max-width: 900px) { .p-stk { display: none; } }

/* ---------- 车手卡 · 人物立绘 ---------- */
.driver.has-stk .cn, .driver.has-stk .en, .driver.has-stk .team { padding-right: 44%; }
.driver.has-stk p { padding-right: 40%; min-height: 150px; }
.driver .person {
  position: absolute; right: -2%; bottom: -2%; height: 96%;
  pointer-events: none;
  filter: drop-shadow(-8px 10px 18px rgba(0,0,0,.45));
  animation: stk-float 4.4s ease-in-out infinite;
}
.driver .person > img { height: 100%; width: auto; object-fit: contain; }
.driver .person .stk { --w: 220px !important; }
.driver .person .stk .stk__gnd { display: none; }

/* ---------- F1 页 ---------- */
.speedlines {
  position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 130px, rgba(242,239,230,.055) 130px 133px);
  animation: slide-lines 1.1s linear infinite;
}
@keyframes slide-lines { to { transform: translateX(-133px); } }
.driver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 26px; max-width: 1180px; margin: 0 auto; }
.driver {
  position: relative; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(242,239,230,.12); background: var(--coal);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.driver:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 24px 55px rgba(0,0,0,.45); }
.driver .top { height: 7px; }
.driver .num {
  font-family: 'Archivo Black', 'Arial Black', sans-serif; font-size: 82px; line-height: 1;
  padding: 20px 24px 0; color: transparent; -webkit-text-stroke: 2px var(--cream);
}
.driver .cn { font-size: 29px; font-weight: 900; padding: 8px 24px 0; }
.driver .en { font-family: var(--font-mono); padding: 2px 24px; color: var(--cream-dim); font-size: 14px; letter-spacing: .1em; }
.driver .team { display: flex; align-items: center; gap: 10px; padding: 14px 24px 6px; font-size: 14.5px; font-weight: 800; }
.driver .team i { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.driver p { padding: 0 24px 24px; color: #b9b5a8; font-size: 14.5px; line-height: 1.75; }

.wk-timeline { max-width: 920px; margin: 0 auto; display: grid; gap: 14px; }
.wk {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px 18px; align-items: center;
  background: rgba(29, 34, 68, .55); border: 1px solid rgba(242,239,230,.1);
  border-radius: 16px; padding: 18px 24px;
}
.wk b { font-size: 19px; font-weight: 900; }
.wk .when { font-family: var(--font-mono); color: var(--cream-dim); font-size: 13px; }
.wk .bar { height: 8px; border-radius: 99px; background: rgba(242,239,230,.12); overflow: hidden; }
.wk .bar i { display: block; height: 100%; width: 0; background: var(--pink); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); }
.wk .desc { grid-column: 2; color: #b9b5a8; font-size: 14px; }

/* ---------- 羽毛球页 ---------- */
.court-bg {
  position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 96px, var(--cream) 96px 98px),
              repeating-linear-gradient(90deg, transparent 0 96px, var(--cream) 96px 98px);
}
.bars { max-width: 820px; margin: 0 auto; display: grid; gap: 22px; }
.skill { display: grid; grid-template-columns: 96px 1fr 56px; gap: 16px; align-items: center; }
.skill .name { font-weight: 900; font-size: 16px; }
.skill .bar { height: 10px; border-radius: 99px; background: rgba(242,239,230,.12); overflow: hidden; }
.skill .bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--pink), var(--coral)); transition: width 1.3s cubic-bezier(.2,.7,.2,1); }
.skill .val { font-family: var(--font-mono); color: var(--cream-dim); text-align: right; }

.gear-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.gear { background: rgba(29,34,68,.55); border: 1px solid rgba(242,239,230,.1); border-radius: 16px; padding: 22px; transition: transform .3s, border-color .3s; }
.gear:hover { transform: translateY(-6px); border-color: rgba(242,145,186,.5); }
.gear b { display: block; font-size: 17px; font-weight: 900; margin-bottom: 6px; }
.gear span { color: #b9b5a8; font-size: 14px; line-height: 1.65; display: block; }

.p-footer {
  padding: 9vh var(--pad-x) 60px; text-align: center;
  border-top: 1px solid rgba(242,239,230,.12); margin-top: 10vh;
}
.p-footer .row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.p-footer .mini { margin-top: 26px; color: var(--cream-dim); font-size: 13px; opacity: .75; }

@media (max-width: 700px) {
  .g-grid, .driver-grid, .gear-grid { grid-template-columns: 1fr; }
  .wk { grid-template-columns: 1fr; }
  .wk .desc { grid-column: 1; }
}
