/* 短剧解锁收款页 —— 前台样式（手机优先，桌面居中一栏） */
:root {
    --red: #e3241b;
    --red-d: #b5140c;
    --red-l: #ff5a3c;
    --gold: #ffe9b8;
    --gold-2: #f7c76a;
    --bg: #f5f5f7;
    --card: #ffffff;
    --ink: #1f1f1f;
    --ink-2: #555;
    --muted: #8c8c8c;
    --line: #efefef;
    --green: #07c160;
    --radius: 14px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { background: #e9e9ec; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink); font-size: 15px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 92px; }
@media (min-width: 520px) { .app { box-shadow: 0 0 40px rgba(0,0,0,.08); } }

/* ---------- 头图 ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(120% 80% at 50% -10%, #ff7a4d 0%, var(--red) 45%, var(--red-d) 100%);
    padding: 34px 20px 54px; text-align: center;
}
.hero-grid {
    position: absolute; inset: 0; opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 80%);
}
.hero-in { position: relative; }
.hero-badge {
    display: inline-block; font-size: 12px; color: var(--red-d); background: linear-gradient(135deg, #fff3cf, var(--gold-2));
    padding: 3px 12px; border-radius: 999px; font-weight: 600; margin-bottom: 14px;
}
.hero h1 {
    font-size: 34px; line-height: 1.2; font-weight: 800; letter-spacing: 1px;
    color: #fff; text-shadow: 0 4px 0 rgba(120, 10, 0, .35);
}
.hero-sub { margin-top: 10px; font-size: 16px; color: var(--gold); font-weight: 500; letter-spacing: 1px; }
.hero-tags { margin-top: 16px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hero-tags span {
    font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
}

/* ---------- 主体 ---------- */
.main { padding: 0 14px; margin-top: -34px; position: relative; }
.main-top { margin-top: 14px; }
.card {
    background: var(--card); border-radius: var(--radius); padding: 18px 16px; margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 0 10px; }
.sec-title:first-child { margin-top: 0; }
.sec-title span { font-size: 16px; font-weight: 700; }
.sec-title span::before { content: ""; display: inline-block; width: 4px; height: 14px; background: var(--red); border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.sec-title em { font-style: normal; font-size: 12px; color: var(--muted); }

/* 价格卡 */
.price-card { padding-top: 16px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.p-name { font-size: 19px; font-weight: 700; }
.p-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.p-price { color: var(--red); white-space: nowrap; }
.p-price .cur { font-size: 16px; font-weight: 700; }
.p-price b { font-size: 38px; font-weight: 800; line-height: 1; }
.p-price small { font-size: 18px; font-weight: 700; }
.p-price s { display: block; font-size: 12px; color: var(--muted); text-align: right; }
.features { list-style: none; margin-top: 12px; }
.features li { display: flex; align-items: center; font-size: 14px; color: var(--ink-2); padding: 4px 0; }
.features i {
    width: 18px; height: 18px; border-radius: 50%; background: #fff1f0; margin-right: 8px; flex: none; position: relative;
}
.features i::after { content: ""; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid var(--red); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* 短剧网格 */
.drama-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.drama { position: relative; }
.drama-cover {
    aspect-ratio: 3 / 4; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; justify-content: flex-end;
    color: #fff; font-size: 13px; line-height: 1.3; overflow: hidden; position: relative;
    background: linear-gradient(160deg, #5b2c8f, #2a1a5e);
}
.drama:nth-child(6n+2) .drama-cover { background: linear-gradient(160deg, #ff8a5c, #b3140a); }
.drama:nth-child(6n+3) .drama-cover { background: linear-gradient(160deg, #2f6bff, #132a80); }
.drama:nth-child(6n+4) .drama-cover { background: linear-gradient(160deg, #1f1f2e, #4a4a7a); }
.drama:nth-child(6n+5) .drama-cover { background: linear-gradient(160deg, #ff5fa2, #8a1c5a); }
.drama:nth-child(6n+6) .drama-cover { background: linear-gradient(160deg, #11a37a, #0a4f3c); }
.drama-cover b { font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.4); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.drama-tag { position: absolute; top: 6px; left: 6px; font-size: 10px; background: rgba(0,0,0,.35); padding: 1px 6px; border-radius: 4px; }
.drama-lock {
    position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); font-size: 16px;
    width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center;
}

/* 小卡 */
.mini-card { padding: 4px 16px; }
.mini-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mini-row:last-child { border-bottom: 0; }
.mini-row em { font-style: normal; color: var(--muted); font-size: 12px; }
.pay-trust { display: flex; align-items: center; gap: 10px; }
.wx-mark { width: 38px; height: 38px; border-radius: 10px; background: #e8f8ef; display: flex; align-items: center; justify-content: center; flex: none; }
.pay-trust b { display: block; font-size: 14px; }
.pay-trust span { font-size: 12px; color: var(--muted); }

/* 页脚 */
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 10px 14px 16px; line-height: 1.9; }
.foot-company { color: var(--ink-2); font-size: 13px; }
.foot-links a { margin: 0 6px; }
.foot-icp a { color: var(--muted); }
.foot-small { padding-bottom: 12px; }

/* 悬浮条 */
.float-bar {
    position: fixed; right: 0; top: 38%; z-index: 20; display: flex; flex-direction: column; gap: 6px;
    max-width: 480px; margin: 0 auto; pointer-events: none;
}
.float-bar a {
    pointer-events: auto; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--red-d);
    background: linear-gradient(to bottom, #fff1c2, #ffd766); border: 1px solid #f5b945; border-right: 0;
    padding: 6px 6px 5px; border-radius: 10px 0 0 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); line-height: 1.1;
}
.float-bar i { font-style: normal; font-size: 15px; margin-bottom: 2px; }

/* 底部购买栏 */
.buy-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 480px; margin: 0 auto;
    background: #fff; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
    box-shadow: 0 -4px 16px rgba(0,0,0,.06);
}
.agree { display: flex; align-items: flex-start; font-size: 11px; color: var(--muted); line-height: 1.4; flex: 1; cursor: pointer; }
.agree input { width: 14px; height: 14px; margin: 1px 5px 0 0; accent-color: var(--red); flex: none; }
.agree a { color: #1890ff; }
.buy-btn {
    flex: none; border: 0; color: #fff; font-size: 16px; font-weight: 700; padding: 0 22px; height: 46px; border-radius: 999px;
    background: linear-gradient(135deg, var(--red-l), var(--red)); box-shadow: 0 6px 16px rgba(227, 36, 27, .35);
}
.buy-btn small { font-weight: 600; font-size: 14px; }
.buy-btn:disabled { opacity: .6; }

/* ---------- 通用页头 / 表单 ---------- */
.page-head {
    position: sticky; top: 0; z-index: 15; height: 46px; background: #fff; display: flex; align-items: center; padding: 0 12px;
    border-bottom: 1px solid var(--line); font-weight: 600;
}
.page-head .back { width: 32px; font-size: 26px; line-height: 1; color: var(--ink-2); font-weight: 300; }
.input {
    width: 100%; height: 44px; border: 1.5px solid #e5e5e5; border-radius: 10px; padding: 0 12px; font-size: 15px; background: #fafafa;
    outline: none; margin-bottom: 12px; font-family: inherit; color: var(--ink);
}
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--red); background: #fff; }
.f-label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.form-row { display: flex; gap: 8px; }
.form-row .input { margin-bottom: 0; }
.form-err { color: #f5222d; font-size: 12px; min-height: 18px; margin-top: 4px; }
.btn {
    display: block; width: 100%; height: 46px; line-height: 46px; text-align: center; border-radius: 999px; font-size: 16px; font-weight: 600;
    border: 0; cursor: pointer; margin-top: 6px;
}
.btn-primary { background: linear-gradient(135deg, var(--red-l), var(--red)); color: #fff; box-shadow: 0 6px 16px rgba(227,36,27,.3); }
.btn-ghost { background: #fff; color: var(--ink-2); border: 1px solid #ddd; }
.btn-sm { width: auto; height: 44px; line-height: 44px; padding: 0 18px; margin: 0; }
.btns { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 4px; }
.muted { color: var(--muted); font-size: 13px; }
.para { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; text-align: justify; }

/* ---------- 状态卡 ---------- */
.status-card { text-align: center; padding: 26px 16px; }
.st-icon {
    width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 10px; font-size: 28px; font-weight: 700; color: #fff;
    background: #faad14; display: flex; align-items: center; justify-content: center;
}
.st-2 .st-icon { background: var(--green); }
.st-3 .st-icon { background: #1890ff; }
.st-4 .st-icon { background: #bfbfbf; }
.st-text { font-size: 20px; font-weight: 700; }
.st-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.status-card .btn { margin-top: 16px; }

/* 二维码 */
.qr-card { text-align: center; }
.qr-title { font-size: 16px; font-weight: 600; }
.qr-title b { color: var(--red); }
.qr-box { position: relative; width: 200px; height: 200px; margin: 14px auto 8px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qr-box #qrcode { width: 180px; height: 180px; }
.qr-box #qrcode img { width: 180px; height: 180px; display: block; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); background: #fff; border-radius: 6px; padding: 3px; }
.qr-tip { font-size: 12px; color: var(--muted); }
.mock-card p { margin: 8px 0 12px; text-align: left; }

/* 开通卡 */
.unlock-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; }
.unlock-img { width: 180px; margin: 10px auto; display: block; border-radius: 10px; }

/* 收款详情 */
.detail { display: grid; grid-template-columns: 84px 1fr; row-gap: 10px; font-size: 14px; }
.detail dt { color: var(--muted); }
.detail dd { word-break: break-all; text-align: right; }
.dd-amount { color: var(--red); font-weight: 700; font-size: 16px; }
.dd-mono { font-family: Menlo, Consolas, monospace; font-size: 13px; }
.copy { margin-left: 6px; font-size: 12px; color: #1890ff; background: #fff; border: 1px solid #91d5ff; border-radius: 4px; padding: 0 6px; }

/* 订单列表 */
.order-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-item:last-child { border-bottom: 0; }
.order-item .row { display: flex; justify-content: space-between; }
.order-item .no { color: var(--muted); font-size: 12px; font-family: Menlo, Consolas, monospace; }
.order-item .amt { color: var(--red); font-weight: 700; }
.st-tag { font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #f5f5f5; color: var(--muted); }
.st-tag.st-2 { background: #e8f8ef; color: var(--green); }
.st-tag.st-3 { background: #e6f4ff; color: #1890ff; }
.st-tag.st-4 { background: #f5f5f5; color: #999; }
.st-tag.st-0 { background: #fff7e6; color: #d48806; }

/* ---------- 弹窗 / 提示 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.show { display: block; }
.modal-mask { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.modal-box {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(86vw, 380px); max-height: 76vh;
    background: #fff; border-radius: 14px; padding: 18px 16px 16px; display: flex; flex-direction: column;
}
.modal-title { font-weight: 700; font-size: 16px; text-align: center; margin-bottom: 10px; }
.modal-body { overflow-y: auto; flex: 1; max-height: 52vh; }
.modal-btn {
    margin-top: 14px; height: 42px; border: 0; border-radius: 999px; background: linear-gradient(135deg, var(--red-l), var(--red); color: #fff;
    font-size: 15px; font-weight: 600;
}
.toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%); background: rgba(0,0,0,.78); color: #fff; font-size: 14px;
    padding: 10px 16px; border-radius: 8px; z-index: 200; max-width: 80vw; text-align: center; display: none; line-height: 1.5;
}
.toast.show { display: block; }
.mock-banner { background: #fff7e6; color: #ad6800; font-size: 12px; text-align: center; padding: 6px 10px; border-bottom: 1px solid #ffe58f; }
