/* AI短剧榜：浅色榜单风格（与黄果官网深色网格区分） */
:root {
  --bg: #f5f5f7; --card: #fff; --text: #1d1d1f; --text-2: #55555c; --text-3: #8a8a93; --line: #e6e6ea;
  --accent: #e5402f; --accent-2: #ff7a1a; --ok: #10a35a; --shadow: 0 1px 2px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121214; --card: #1c1c1f; --text: #f2f2f4; --text-2: #c2c2c8; --text-3: #8d8d95; --line: #2b2b30; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 20; background: var(--card); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { font-size: 19px; font-weight: 800; letter-spacing: .5px; }
.brand b { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 6px; padding: 0 6px; margin-right: 3px; }
.top-cta { background: var(--accent); color: #fff; border-radius: 16px; padding: 4px 14px; font-size: 14px; font-weight: 600; }
.nav { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; height: 40px; align-items: center; font-size: 14px; color: var(--text-2); }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a.on { color: var(--accent); border-color: var(--accent); font-weight: 600; }

main { padding-bottom: 32px; }
h1 { font-size: 22px; margin: 18px 0 6px; }
h2 { font-size: 17px; margin: 0; }
.lead { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }
.crumbs { font-size: 13px; color: var(--text-3); margin-top: 14px; }
.crumbs i { font-style: normal; margin: 0 6px; }
section { margin-top: 22px; }
.sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.sh a { font-size: 13px; color: var(--text-3); }

.list { list-style: none; margin: 0; padding: 0; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.it { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); position: relative; }
.it:last-child { border-bottom: 0; }
.rk { flex: 0 0 26px; text-align: center; font-size: 17px; font-weight: 800; color: var(--text-3); font-style: italic; }
.rk1 { color: #e5402f; } .rk2 { color: #ff7a1a; } .rk3 { color: #f5a623; }
.cv { flex: 0 0 66px; height: 88px; border-radius: 8px; overflow: hidden; background: var(--line); }
.cv img { width: 100%; height: 100%; object-fit: cover; }
.tx { flex: 1; min-width: 0; }
.tx h3 { font-size: 15px; margin: 0 0 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mt, .tg { margin: 0; font-size: 12px; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.go { flex: 0 0 auto; border: 1px solid var(--accent); color: var(--accent); border-radius: 14px; padding: 2px 12px; font-size: 13px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; font-size: 14px; }
.chips small { color: var(--text-3); margin-left: 4px; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.links a { display: block; background: var(--card); border-radius: 10px; padding: 10px 14px; box-shadow: var(--shadow); }
.faq details { background: var(--card); border-radius: 10px; padding: 10px 14px; margin-top: 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--text-2); font-size: 14px; }

.foot { border-top: 1px solid var(--line); padding: 16px 0 28px; font-size: 12px; color: var(--text-3); text-align: center; }
.foot p { margin: 4px 0; }

/* 领取面板 */
.sheet { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet-card { width: 100%; max-width: 480px; background: var(--card); border-radius: 16px 16px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); position: relative; max-height: 92vh; overflow-y: auto; }
@media (min-width: 600px) { .sheet { align-items: center; } .sheet-card { border-radius: 16px; } }
.sheet-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 26px; color: var(--text-3); cursor: pointer; }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet .sub { margin: 0 0 14px; font-size: 13px; color: var(--text-3); }
.btn { display: block; width: 100%; text-align: center; border: 0; border-radius: 22px; padding: 11px 16px; font-size: 15px; font-weight: 600; cursor: pointer; }
.btn + .btn, .btn + .note, .note + .btn { margin-top: 10px; }
.btn-main { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-ok { background: var(--ok); color: #fff; }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.note { font-size: 12px; color: var(--text-3); text-align: center; margin: 10px 0 0; }
.note a { text-decoration: underline; }
.code { margin: 6px 0 12px; padding: 14px; border-radius: 12px; background: var(--bg); text-align: center; font: 700 24px/1.2 ui-monospace, Menlo, monospace; letter-spacing: 2px; cursor: pointer; }
.code small { display: block; font: 400 12px/1.4 -apple-system, sans-serif; letter-spacing: 0; color: var(--text-3); margin-top: 4px; }
.cap { display: flex; justify-content: center; min-height: 70px; margin: 6px 0 10px; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 60; background: rgba(0,0,0,.82); color: #fff; padding: 8px 16px; border-radius: 18px; font-size: 14px; max-width: 86vw; text-align: center; }

/* 18+ 确认 */
.age { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; place-items: center; padding: 16px; }
.age-card { max-width: 360px; text-align: center; }
.age-card h3 { font-size: 19px; margin: 0 0 8px; }
.age-card p { color: var(--text-2); font-size: 14px; margin: 0 0 18px; }
