/* 指尖踏江湖 官网首页样式（index.html 专用；公共样式在 style.css） */
:root { --header-h: 62px; --card: linear-gradient(180deg, rgba(27, 33, 50, .85), rgba(14, 18, 28, .95)); --line: rgba(255, 255, 255, .08); }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }

/* ---------- 顶栏 ---------- */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: rgba(9, 11, 17, .96); box-shadow: 0 1px 0 var(--gold-faint); transition: box-shadow .3s; }
.topbar.solid { box-shadow: 0 1px 0 var(--gold-faint), 0 6px 20px rgba(0, 0, 0, .45); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar .logo-img { display: block; height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 15px; color: #d8cbb0; letter-spacing: 1px; position: relative; padding: 4px 0; }
.nav a:hover { color: var(--gold-hi); }
.nav a:not(.btn-gold)::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transition: width .25s, left .25s; }
.nav a:not(.btn-gold):hover::after { width: 100%; left: 0; }
.nav .btn-gold { padding: 7px 18px; font-size: 14px; }
.menu-btn { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-btn i { display: block; width: 22px; height: 2px; background: var(--gold); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open i:nth-child(2) { opacity: 0; }
.menu-btn.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero { margin-top: var(--header-h); aspect-ratio: 2000 / 550; }
.hero picture { position: absolute; inset: 0; }
.hero-cta { display: flex; justify-content: center; gap: 16px; align-items: center; margin-top: 18px; animation: cta-in 1.2s ease .6s both; }
@keyframes cta-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.btn-gold.big { padding: 14px 40px; font-size: 18px; letter-spacing: 3px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 28px rgba(233, 170, 70, .4); }
.btn-line { display: inline-flex; align-items: center; padding: 13px 30px; font-size: 16px; letter-spacing: 2px; color: var(--gold-hi); border: 1px solid var(--gold-line); border-radius: 10px; background: rgba(0, 0, 0, .35); backdrop-filter: blur(4px); transition: background .2s, border-color .2s; }
.btn-line:hover { background: rgba(233, 198, 122, .14); border-color: var(--gold); }
.slogan { margin-top: -5.5vw; position: relative; z-index: 6; }
.slogan-img { display: block; width: min(820px, 64vw); height: auto; margin: 0 auto; }

/* ---------- 公告条 ---------- */
.notice-bar { margin-top: 26px; }
.notice-bar .wrap { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 10px; background: rgba(233, 198, 122, .07); border: 1px solid var(--gold-faint); }
.nb-tag { flex: none; padding: 2px 10px; font-size: 12px; font-weight: 700; color: #2b1906; border-radius: 4px; background: linear-gradient(180deg, #fbe7ab, #d9a94f); }
.nb-track { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.nb-text { display: inline-block; padding-left: 100%; font-size: 14px; color: #eadfc6; animation: nb-scroll linear infinite; }
.nb-text span { margin-right: 80px; }
.nb-text span::before { content: "◆"; margin-right: 8px; font-size: 10px; color: var(--gold); }
@keyframes nb-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- 亮点小卡 ---------- */
.sec { padding: 72px 0 0; }
.sec.hl { padding-top: 30px; }
.hl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.hl-card { position: relative; padding: 22px 18px 18px; text-align: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .2s, border-color .2s; }
.hl-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.hl-card:hover { transform: translateY(-3px); border-color: rgba(233, 198, 122, .4); }
.hl-card b { display: block; font-family: var(--f-title); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: 1px; }
.hl-card strong { display: block; margin-top: 8px; font-size: 16px; color: #f4f1ea; font-weight: 600; }
.hl-card span { display: block; margin-top: 4px; font-size: 13px; color: #9aa2b3; }

/* ---------- 区块标题（覆盖 style.css 里的横排样式） ---------- */
.sec-title { display: block; text-align: center; margin-bottom: 34px; position: relative; }
.sec-title::before, .sec-title::after { display: none; }
.sec-title small { display: block; font-size: 12px; letter-spacing: 5px; color: var(--gold-deep); font-weight: 700; }
.sec-title h2 { margin-top: 2px; font-family: var(--f-title); font-size: clamp(28px, 3.2vw, 40px); letter-spacing: 8px; font-weight: 700; line-height: 1.3; }
.sec-title p { margin-top: 8px; font-size: 14px; color: var(--muted); letter-spacing: 2px; }
.sec-title p::before, .sec-title p::after { content: ""; display: inline-block; width: 46px; height: 1px; margin: 0 14px; vertical-align: middle; background: linear-gradient(90deg, transparent, var(--gold)); }
.sec-title p::after { background: linear-gradient(90deg, var(--gold), transparent); }

/* ---------- 下载 ---------- */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dl-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.rec-badge { display: none; position: absolute; top: -12px; right: 18px; padding: 3px 12px; font-size: 12px; font-weight: 700; color: #2b1906; border-radius: 999px; background: linear-gradient(180deg, #fbe7ab, #d9a94f); box-shadow: 0 4px 12px rgba(233, 170, 70, .35); }
.dl-card.rec .rec-badge { display: block; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-ico { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.dl-ico svg { width: 30px; height: 30px; fill: #f4f1ea; }
.dl-ico.pc svg { fill: #6cb4ff; }
.dl-ico.android svg { fill: #3ddc84; }
.dl-head h3 { font-size: 22px; color: #f4f1ea; line-height: 1.3; }
.dl-meta { font-size: 12px; color: #7f8799; margin-top: 2px; min-height: 1.2em; }
.dl-desc { margin-top: 16px; font-size: 14px; line-height: 1.75; color: #a6adbd; min-height: 3.5em; }
.dl-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dl-tags span { padding: 2px 10px; font-size: 12px; color: #b3bacb; border: 1px solid var(--line); border-radius: 6px; background: rgba(0, 0, 0, .25); }
.dl-btn { margin-top: auto; padding-top: 12px; padding-bottom: 12px; font-size: 16px; }
.dl-card .dl-btn { margin-top: 22px; }
.dl-btn.off { filter: saturate(.25); opacity: .65; }
.mirrors { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; }
.mirrors a { color: var(--gold); border-bottom: 1px dashed rgba(233, 198, 122, .5); }
.mirrors:empty { display: none; }
.qr-strip { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 26px auto 0; padding: 16px 26px; width: fit-content; max-width: 100%; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.qr-strip img { width: 112px; height: 112px; padding: 6px; background: #fff; border-radius: 8px; }
.qr-strip b { display: block; font-size: 17px; color: #f4f1ea; }
.qr-strip span { font-size: 13px; color: #9aa2b3; }
.dl-tip { margin-top: 22px; text-align: center; font-size: 13px; color: #858c9c; }
.dl-tip em { color: var(--gold); font-style: normal; }

/* ---------- 特色 ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat-card { display: flex; gap: 16px; padding: 22px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.feat-card:hover { transform: translateY(-3px); border-color: rgba(233, 198, 122, .4); }
.feat-ico { flex: none; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, rgba(233, 198, 122, .18), rgba(233, 198, 122, .05)); border: 1px solid var(--gold-faint); }
.feat-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feat-card h3 { font-size: 18px; color: #f4f1ea; line-height: 1.4; }
.feat-card p { margin-top: 6px; font-size: 14px; line-height: 1.75; color: #a6adbd; }

/* ---------- 页签 ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.tab { padding: 8px 20px; font-size: 15px; color: #c9bfa6; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); transition: all .2s; }
.tab:hover { color: var(--gold-hi); border-color: var(--gold-line); }
.tab[aria-selected="true"] { color: #2b1906; font-weight: 700; background: linear-gradient(180deg, #fbe7ab, #d9a94f); border-color: #ffe6a3; }
.panel-note { margin: -10px 0 18px; text-align: center; font-size: 13px; color: var(--muted); }

/* 七日好礼 */
.gift-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.gift-card { padding: 16px 12px 18px; text-align: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.gift-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #a8792c, #fbe7ab, #a8792c); }
.gift-day { display: inline-block; padding: 2px 12px; font-family: var(--f-title); font-size: 17px; font-weight: 700; color: var(--gold-hi); border-radius: 999px; background: rgba(233, 198, 122, .12); }
.gift-card ul { list-style: none; margin-top: 12px; }
.gift-card li { padding: 7px 4px; font-size: 13px; line-height: 1.5; color: #eadfc6; border-top: 1px dashed rgba(255, 255, 255, .08); }
.gift-card li:first-child { border-top: 0; }
.gift-card li.hi { color: var(--gold); font-weight: 600; }

/* 表格 */
.tbl-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); background: rgba(14, 18, 28, .8); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); line-height: 1.6; }
.tbl th { font-size: 13px; letter-spacing: 2px; color: var(--gold); background: rgba(233, 198, 122, .07); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.tbl td.k { white-space: nowrap; font-weight: 700; color: var(--gold-hi); font-family: var(--f-title); font-size: 16px; }
.tbl td .title-tag { display: inline-block; padding: 1px 10px; margin-right: 6px; font-size: 12px; color: #2b1906; border-radius: 4px; background: linear-gradient(180deg, #fbe7ab, #d9a94f); white-space: nowrap; }
.tbl.drop td.k { font-size: 15px; }

/* 钱庄 */
.bank-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.bank-card { padding: 18px 10px; text-align: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.bank-card b { display: block; font-family: var(--f-title); font-size: 20px; color: var(--gold-hi); }
.bank-card span { display: block; margin-top: 8px; font-size: 14px; color: #eadfc6; }

/* 首充 */
.first-box { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.first-price { text-align: center; padding: 22px 10px; border-radius: 14px; background: radial-gradient(circle at 50% 30%, rgba(233, 198, 122, .25), transparent 70%); border: 1px solid var(--gold-faint); }
.first-price small { display: block; font-size: 14px; letter-spacing: 3px; color: var(--gold); }
.first-price b { display: block; font-family: var(--f-title); font-size: 64px; line-height: 1.1; }
.first-price em { font-style: normal; font-size: 22px; }
.first-price span { display: block; margin-top: 4px; font-size: 14px; color: #c9bfa6; }
.first-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.first-items li { list-style: none; padding: 12px 14px; font-size: 14px; color: #eadfc6; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.first-items li::before { content: "✦"; margin-right: 8px; color: var(--gold); }

/* 称号 */
.title-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.title-card { padding: 18px 16px; text-align: center; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.title-card b { display: block; font-family: var(--f-title); font-size: 19px; letter-spacing: 1px; }
.title-card span { display: block; margin-top: 8px; font-size: 13px; line-height: 1.6; color: #a6adbd; }

/* ---------- 帮会活动 ---------- */
.guild-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guild-card { position: relative; padding: 26px 22px 24px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.guild-card::after { content: attr(data-n); position: absolute; right: 14px; top: -10px; font-family: var(--f-title); font-size: 90px; line-height: 1; color: rgba(233, 198, 122, .06); font-weight: 700; }
.guild-day { display: inline-block; padding: 3px 12px; font-size: 12.5px; color: var(--gold-hi); border-radius: 999px; background: rgba(233, 198, 122, .12); border: 1px solid var(--gold-faint); }
.guild-card h3 { margin-top: 14px; font-family: var(--f-title); font-size: 24px; letter-spacing: 2px; color: #f4f1ea; }
.guild-card p { margin-top: 10px; font-size: 14px; line-height: 1.8; color: #a6adbd; }

/* ---------- 加入我们 ---------- */
#contact { padding-top: 72px; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 40px; border-radius: 18px; background: radial-gradient(ellipse 60% 120% at 0% 50%, rgba(233, 198, 122, .14), transparent 70%), var(--card); border: 1px solid var(--gold-faint); }
.join h2 { font-family: var(--f-title); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: 4px; }
.join p { margin-top: 6px; font-size: 14px; color: var(--muted); }
.join-acts { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.join-acts a, .join-acts button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; color: var(--gold-hi); border: 1px solid var(--gold-line); border-radius: 10px; background: rgba(0, 0, 0, .3); transition: background .2s; }
.join-acts a:hover, .join-acts button:hover { background: rgba(233, 198, 122, .14); }
.join-acts b { color: #fff; }

footer { margin-top: 70px; }

/* ---------- 手机底部下载条 / 提示 ---------- */
.mbar { display: none; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(9, 11, 17, .96); border-top: 1px solid var(--gold-faint); box-shadow: 0 -6px 20px rgba(0, 0, 0, .45); }
.mbar img { width: 40px; height: 40px; border-radius: 10px; }
.mbar-txt { flex: 1; line-height: 1.3; }
.mbar-txt b { display: block; font-size: 15px; color: #f4f1ea; }
.mbar-txt small { font-size: 12px; color: #9aa2b3; }
.mbar .btn-gold { padding: 9px 22px; font-size: 15px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1000px) {
  .hl-grid, .title-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid, .guild-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-grid, .bank-grid { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
}
@media (max-width: 900px) {
  .dl-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .dl-card.rec { order: -1; }
  .first-box { grid-template-columns: 1fr; }
  .first-items { grid-template-columns: repeat(2, 1fr); }
  .join { flex-direction: column; text-align: center; }
  .join-acts { justify-content: center; }
}
@media (max-width: 760px) {
  .menu-btn { display: flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px; background: rgba(9, 11, 17, .98); border-bottom: 1px solid var(--gold-faint); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 13px 24px; font-size: 16px; }
  .nav a:not(.btn-gold)::after { display: none; }
  .nav .btn-gold { margin: 10px 24px 0; justify-content: center; }
  .hero { aspect-ratio: 960 / 550; }
  .hero-cta { display: none; }
  .slogan { margin-top: 4px; }
  .slogan-img { width: 100%; }
  .sec { padding-top: 52px; }
  .sec-title h2 { letter-spacing: 5px; }
  .sec-title p::before, .sec-title p::after { width: 24px; margin: 0 8px; }
  .mbar { display: flex; }
  body { padding-bottom: 70px; }
  .qr-strip { display: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 24px); }
  .hl-grid { gap: 10px; }
  .hl-card { padding: 16px 10px 14px; }
  .feat-grid, .guild-grid, .title-grid { grid-template-columns: 1fr; }
  .gift-grid, .bank-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .first-items { grid-template-columns: 1fr; }
  .tabs { gap: 8px; }
  .tab { padding: 7px 14px; font-size: 14px; }
  .tbl th, .tbl td { padding: 10px 12px; font-size: 13px; }
  .join { padding: 26px 18px; }
  .notice-bar .wrap { padding: 8px 12px; }
}

/* 补充修正 */
.nav .btn-gold, .nav .btn-gold:hover { color: #2b1906; }
@media (max-width: 640px) { .gift-card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
