/* 充值与福利活动宣传页：和官网 site.css 同一套白底 + 金色。 */
:root {
  --bg: #f5f5f7; --card: #fff;
  --ink: #1d1d1f; --sub: #86868b; --line: #ececf0;
  --gold: #d6a84e; --gold-ink: #3b2a0a; --gold-text: #a3761f; --gold-soft: #fbf4e4;
  --red: #c8432f; --red-soft: #fdeeea; --green: #2e7d32; --green-soft: #e9f5ea;
  --title: "STKaiti", "KaiTi", "楷体", "Kaiti SC", "Songti SC", serif;
  --sans: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 116px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
b { font-weight: 600; }

/* 顶栏 */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 14px 40px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 24px/1.2 var(--title); letter-spacing: 4px; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.seal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--gold); color: var(--gold-ink); font: 18px/1 var(--title); letter-spacing: 0; text-shadow: none; }
.back { color: #fff; text-decoration: none; padding: 6px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .12); backdrop-filter: blur(4px); font-size: 14px; }
.back:hover { background: #fff; color: var(--ink); }

/* 首屏 */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; background: #1e3a7a url(img/hero.jpg) 70% 30% / cover no-repeat; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 28, 70, .78) 0%, rgba(14, 28, 70, .45) 45%, rgba(14, 28, 70, .1) 75%), linear-gradient(0deg, rgba(14, 28, 70, .5), transparent 40%); }
.hero-body { position: relative; z-index: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 100px 40px 64px; color: #fff; }
.kicker { display: inline-block; margin: 0 0 16px; padding: 4px 14px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 13px; letter-spacing: 3px; }
.hero h1 { margin: 0; font: 60px/1.15 var(--title); letter-spacing: 8px; text-shadow: 0 4px 24px rgba(0, 0, 0, .45); }
.sub { max-width: 520px; margin: 16px 0 28px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.sub b { color: #ffd98a; }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stats li { min-width: 140px; padding: 12px 18px; border-radius: 12px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.stats b { display: block; font: 600 24px/1.2 var(--sans); color: #ffd98a; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: rgba(255, 255, 255, .85); }

/* 分类导航（吸顶） */
.tabs { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; gap: 4px; overflow-x: auto; padding: 10px 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.tabs { scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 7px 16px; border-radius: 999px; text-decoration: none; color: #48484d; font-size: 15px; transition: background .15s, color .15s; }
.tabs a:hover { color: var(--gold-text); }
.tabs a.cur { background: var(--gold); color: var(--gold-ink); }

main { max-width: 1120px; margin: 0 auto; padding: 8px 24px 40px; }
.block { padding-top: 40px; }
.block-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 4px 16px; }
.block-head h2 { margin: 0; font: 30px/1.3 var(--title); letter-spacing: 3px; }
.block-head p { margin: 0; color: var(--sub); }
.tag { align-self: center; padding: 2px 10px; border-radius: 6px; font-size: 12px; letter-spacing: 1px; }
.tag.free { background: var(--green-soft); color: var(--green); }
.tag.pay { background: var(--red-soft); color: var(--red); }

.card { margin-bottom: 16px; padding: 22px 24px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.card h3 { margin: 0 0 14px; font-size: 18px; }
.card h3 small { margin-left: 8px; color: var(--sub); font-size: 13px; font-weight: 400; }
.card.feature { background: linear-gradient(135deg, #fffaf0, #fff 60%); box-shadow: inset 0 0 0 1px #f0dfb8, var(--shadow); }
.note { margin: -6px 0 14px; color: #55555a; font-size: 14px; }

/* 道具：图标 + 名称（数量压在图标右下角） */
.items { display: flex; flex-wrap: wrap; gap: 12px 8px; }
.it { width: 72px; margin: 0; text-align: center; }
.ic { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 5px; border-radius: 14px; background: var(--g, linear-gradient(145deg, #8e9aaf, #5f6b80)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .28), 0 3px 8px rgba(0, 0, 0, .12); }
.ic svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.ic b { position: absolute; right: -6px; bottom: -6px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 11.5px/1.5 var(--sans); box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-variant-numeric: tabular-nums; white-space: nowrap; }
.it figcaption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.35; color: #3a3a3f; word-break: break-all; }
/* 游戏原图标：浅色道具格底 */
.it.game .ic { background: radial-gradient(circle at 50% 40%, #fffdf7, #f1e6cf); box-shadow: inset 0 0 0 1px #e3d2ad, 0 2px 6px rgba(0, 0, 0, .08); }
.ic img { width: 52px; height: 52px; object-fit: contain; }
.it.head .ic { overflow: visible; }
.it.head .ic img { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; }
.zy-ic img { width: 40px; height: 40px; object-fit: contain; }
.zy-ic:has(img) { background: radial-gradient(circle, #fff, #ffe9e3); }
.it.hot .ic { box-shadow: inset 0 0 0 2px #ffe3a1, 0 0 0 2px #d6a84e, 0 4px 12px rgba(214, 168, 78, .45); }
.it.hot figcaption { color: #8a5d0f; font-weight: 600; }
.c-jade { --g: linear-gradient(145deg, #ff8a7a, #d23c2c); }
.c-coin { --g: linear-gradient(145deg, #f7cf6b, #c98d1c); }
.c-gem { --g: linear-gradient(145deg, #7fd3ff, #2f78d6); }
.c-pill { --g: linear-gradient(145deg, #92e0a6, #2f9e5a); }
.c-book { --g: linear-gradient(145deg, #c9a27a, #8a5a34); }
.c-map { --g: linear-gradient(145deg, #e6c48b, #a8743a); }
.c-pet { --g: linear-gradient(145deg, #ffa86b, #e0602a); }
.c-mount { --g: linear-gradient(145deg, #8fd8e8, #2b8fae); }
.c-fashion { --g: linear-gradient(145deg, #f59ac8, #c2417f); }
.c-talisman { --g: linear-gradient(145deg, #f3a35f, #c25a1d); }
.c-material { --g: linear-gradient(145deg, #b59cf0, #6a49c4); }
.c-medal { --g: linear-gradient(145deg, #9bb2d8, #4a6496); }
.c-star { --g: linear-gradient(145deg, #ffd36b, #e08a14); }
.c-title { --g: linear-gradient(145deg, #b77de0, #6b3fa0); }
.c-gift { --g: linear-gradient(145deg, #ff9c9c, #d8464f); }

/* 新号登录礼时间线 */
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.timeline li { padding: 14px 16px; border-radius: 12px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.timeline .day { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.timeline .day b { font: 20px/1.2 var(--title); color: var(--gold-text); }
.timeline .day span { color: var(--red); font-weight: 600; font-size: 14px; }

/* 首充 3 天 */
.days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.days > div { padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #f0dfb8; }
.days h4 { margin: 0 0 8px; font: 18px/1.3 var(--title); color: var(--gold-text); }

/* 首充加赠卡片 */
.zy-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.zy-card { position: relative; display: flex; flex-direction: column; align-items: center; padding: 16px 8px 0; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, #fff7f4, #fff); box-shadow: inset 0 0 0 1px #f3d6cf; text-align: center; }
.zy-card.best { background: linear-gradient(180deg, #fff3d6, #fffaf0); box-shadow: inset 0 0 0 1px #e9c77b, 0 6px 16px rgba(214, 168, 78, .25); }
.zy-card .rib { position: absolute; top: 8px; right: -26px; width: 92px; padding: 2px 0; transform: rotate(35deg); background: var(--red); color: #fff; font: 600 11px/1.4 var(--sans); font-style: normal; }
.zy-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 50%; background: linear-gradient(145deg, #ff8a7a, #d23c2c); box-shadow: 0 3px 8px rgba(210, 60, 44, .35); }
.zy-ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.zy-give { color: var(--red); font: 700 20px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.zy-unit { color: var(--red); font-size: 12px; margin-bottom: 4px; }
.zy-base { color: var(--sub); font-size: 12px; margin-bottom: 10px; }
.zy-price { align-self: stretch; padding: 7px 0; background: var(--gold); color: var(--gold-ink); font: 700 16px/1.2 var(--sans); }
/* 首充赠玉表（旧） */
.table-wrap { overflow-x: auto; }
.zy-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zy-table th, .zy-table td { padding: 8px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.zy-table th { color: var(--sub); font-weight: 400; font-size: 13px; text-align: left; }
.zy-table td.zy { color: var(--red); font-weight: 600; }

/* 档位卡（每日累充） */
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.tier { padding: 14px 16px; border-radius: 12px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.tier-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.tier-head b { font-size: 18px; }
.tier-head b em { font-style: normal; font-size: 13px; color: var(--sub); font-weight: 400; margin-right: 2px; }

/* 转盘 */
.wheel { padding: 18px 16px; border-radius: 14px; background: radial-gradient(circle at 50% 0, #fff1cc, #fffaf0 70%); box-shadow: inset 0 0 0 1px #ecd9ac; }
.grade { padding: 14px 16px; border-radius: 12px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.grade.g0 { background: var(--gold-soft); box-shadow: inset 0 0 0 1px #ecd9ac; }
.grade h4 { margin: 0 0 10px; font-size: 16px; }

/* 档位切换 */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pills button { padding: 6px 14px; border: 0; border-radius: 999px; background: #f1f1f4; color: #48484d; font: 14px/1.3 var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; transition: background .15s, color .15s; }
.pills button:hover { color: var(--gold-text); }
.pills button[aria-selected=true] { background: var(--gold); color: var(--gold-ink); font-weight: 600; }
.total-detail h4 { margin: 0 0 12px; font: 26px/1.3 var(--title); }
.total-detail h4 small { margin-left: 10px; font: 14px var(--sans); color: var(--sub); }

/* 在线礼 */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { padding: 14px 16px; border-radius: 12px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.steps li > b { display: block; margin-bottom: 8px; color: var(--gold-text); }

/* 签到日历 */
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.calendar > div { padding: 8px 6px 10px; border-radius: 10px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.calendar > div > b { display: block; margin-bottom: 6px; color: var(--sub); font-weight: 400; font-size: 12px; text-align: center; }
.calendar .it { margin: 0 auto; }
.calendar > div.big { background: var(--gold-soft); box-shadow: inset 0 0 0 1px #ecd9ac; }

/* 升级礼包 */
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.up-grid > div { padding: 12px 14px; border-radius: 12px; background: #fafafb; box-shadow: inset 0 0 0 1px var(--line); }
.up-grid h4 { margin: 0 0 8px; font-size: 15px; color: var(--gold-text); }
.up-grid .chip { font-size: 13px; padding: 3px 9px; }

/* 更多活动 */
.more-title { margin: 22px 4px 12px; font: 22px/1.3 var(--title); letter-spacing: 2px; color: var(--gold-text); }
.more-grid .free { color: var(--green); font-weight: 600; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.more-grid .card { margin: 0; }
.more-grid .meta { margin: -8px 0 10px; color: var(--sub); font-size: 13px; }
.more-grid .price { color: var(--red); font-weight: 600; }
.more-grid p.desc { margin: 0 0 10px; font-size: 14px; color: #48484d; }

.foot-note { margin: 32px 0 0; text-align: center; color: var(--sub); font-size: 13px; }
.foot { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; color: var(--sub); font: 18px var(--title); letter-spacing: 3px; border-top: 1px solid var(--line); background: #fff; }

@media (max-width: 760px) {
  .top { padding: 12px 18px; }
  .hero { min-height: 460px; }
  .hero-body { padding: 84px 20px 40px; }
  .hero h1 { font-size: 40px; letter-spacing: 4px; }
  .stats li { min-width: 0; flex: 1 1 40%; }
  .tabs { justify-content: flex-start; }
  main { padding: 8px 12px 32px; }
  .card { padding: 18px 16px; }
  .days, .wheel, .steps { grid-template-columns: 1fr 1fr; }
  .calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .days, .wheel, .steps { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
