/* ============================================================
   css/panels/panels-premium-purchase.css — 高级版介绍页（TASK-PAY-003）

   定位：Kstar 二级空间页面（跟「我的 / 设置」同一个 App、同一套主题变量），
        不是后台、不是商城。页面内容优先于装饰；英文只做一处品牌装饰（Premium）。
   动效：外壳进出场走 Settings Secondary Layer（Motion Example 10 / 12，在
        panels-settings.css 里，本文件不重复实现）；这里只做
        ① 逐层入场（一次性，结束即摘类）② CTA 轻按反馈（Example 03 Soft）。
   铁律：颜色一律走主题变量；不用 emoji；不写死高度；360 / 390 / 430 都不横向溢出。
   ============================================================ */

.pp-page {
    --pp-hair: rgba(196, 168, 106, 0.26);
    --pp-hair-soft: rgba(196, 168, 106, 0.12);
    padding-bottom: 6px;
}

/* ---------- 01 顶部身份区 ---------- */
.pp-hero {
    position: relative;
    padding: 22px 2px 20px;
    overflow: hidden;
}
/* 顶部一缕暖光：给「身份区」一点材质，不抢内容 */
.pp-hero-glow {
    position: absolute;
    top: -46px;
    left: -18px;
    right: -18px;
    height: 132px;
    background: radial-gradient(120% 100% at 22% 0%, rgba(201, 168, 168, 0.20), rgba(196, 168, 106, 0.10) 45%, transparent 72%);
    pointer-events: none;
}
.pp-kicker {
    position: relative;
    font-family: var(--font-decorative, 'Playfair Display'), Georgia, serif;
    font-style: italic;
    font-size: 12.5px;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--gold, #C4A86A);
}
.pp-title {
    position: relative;
    margin: 9px 0 0;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 24px;
    line-height: 1.38;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}
.pp-sub {
    position: relative;
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.85;
    color: var(--text-secondary);
}

/* ---------- 通用分区 ---------- */
.pp-sec {
    margin-top: 6px;
    padding: 18px 0 16px;
    border-top: 1px solid var(--pp-hair-soft);
}
.pp-sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.pp-sec-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0.6px;
    color: var(--text-primary);
}
.pp-sec-count {
    font-size: 11.5px;
    letter-spacing: 0.6px;
    color: var(--text-muted);
}
.pp-loading {
    padding: 10px 2px 4px;
    font-size: 12.5px;
    color: var(--text-muted);
    letter-spacing: 0.4px;
}

/* ---------- 02 高级版能带来什么（四句价值，不用卡片，用细线与序号排开）---------- */
.pp-value {
    display: flex;
    gap: 12px;
    padding: 12px 0;
}
.pp-value + .pp-value { border-top: 1px solid var(--pp-hair-soft); }
.pp-value-num {
    flex: 0 0 auto;
    padding-top: 1px;
    font-family: var(--font-decorative, 'Playfair Display'), Georgia, serif;
    font-style: italic;
    font-size: 12.5px;
    letter-spacing: 1px;
    color: var(--gold, #C4A86A);
    opacity: 0.9;
}
.pp-value-body { min-width: 0; }
.pp-value-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--text-primary);
}
.pp-value-text {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ---------- 03 高级能力（价值组标题 + 紧凑清单，不做卡片墙）---------- */
.pp-group { margin-bottom: 18px; }
.pp-group:last-child { margin-bottom: 2px; }
.pp-cat-head {
    padding-bottom: 7px;
    border-bottom: 1px solid var(--pp-hair);
}
.pp-cat-title {
    display: block;
    font-family: var(--font-serif, Georgia, serif);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}
.pp-cat-note {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
.pp-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid rgba(196, 168, 106, 0.09);
}
.pp-group .pp-item:last-child { border-bottom: none; }
.pp-item-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.pp-item-name {
    font-size: 13.5px;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}
.pp-item-desc {
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
/* 「暂未开放」小标：默认不显示，由 JS 按管理员开关逐条点亮（绝不让人以为买了就全都能用） */
.pp-off-tag {
    display: none;
    margin-left: 6px;
    padding: 1px 6px;
    border: 1px solid var(--pp-hair);
    border-radius: 999px;
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    vertical-align: 1px;
}
.pp-item.pp-off .pp-off-tag { display: inline-block; }
.pp-item.pp-off .pp-item-name { color: var(--text-secondary); }
.pp-item.pp-off .pp-icon { opacity: 0.42; }

/* ---------- 能力小图标：纯 CSS 线稿（禁 emoji、禁外来图标库）---------- */
.pp-icon {
    flex: 0 0 auto;
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(196, 168, 106, 0.55);
    border-radius: 7px;
}
/* 通用小记号：右上角一点（每个能力再各自叠加一条特征线） */
.pp-icon::after {
    content: '';
    position: absolute;
    top: 2px; right: 2px;
    width: 4px; height: 4px;
    border-radius: 50%;
    background: rgba(196, 168, 106, 0.42);
}
/* 竖线（每项都有，可叠加变形） */
.pp-icon::before {
    content: '';
    position: absolute;
    left: 5px; right: 5px; bottom: 4px;
    height: 1px;
    background: rgba(196, 168, 106, 0.6);
}
.pp-ic-voiceCall::before { left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 3px; background: none; border: 1px solid rgba(196,168,106,0.6); }
.pp-ic-location::before { left: 50%; right: auto; bottom: 4px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50% 50% 50% 0; border: 1px solid rgba(196,168,106,0.6); background: none; transform: rotate(-45deg); }
.pp-ic-sleep::before { left: 5px; right: 5px; bottom: 7px; height: 5px; border: 1px solid rgba(196,168,106,0.6); border-top: none; border-radius: 0 0 8px 8px; background: none; }
.pp-ic-music::before { left: 8px; right: 6px; bottom: 6px; height: 6px; border-left: 1px solid rgba(196,168,106,0.6); border-top: 1px solid rgba(196,168,106,0.6); background: none; }
.pp-ic-voiceTone::before { left: 5px; bottom: 6px; width: 2px; height: 4px; background: rgba(196,168,106,0.6); box-shadow: 3px -2px 0 rgba(196,168,106,0.6), 6px -4px 0 rgba(196,168,106,0.45); right: auto; }
.pp-ic-nest::before { left: 6px; right: 6px; bottom: 6px; height: 0; border-top: 1px solid rgba(196,168,106,0.6); border-left: 5px solid transparent; border-right: 5px solid transparent; background: none; }
.pp-ic-guestRoom::before { left: 6px; right: 6px; bottom: 5px; height: 5px; border: 1px solid rgba(196,168,106,0.6); border-radius: 2px; background: none; }
.pp-ic-closet::before { left: 7px; bottom: 5px; width: 5px; height: 6px; border: 1px solid rgba(196,168,106,0.6); border-radius: 3px 3px 0 0; background: none; }
.pp-ic-health::before { left: 6px; right: 6px; bottom: 8px; height: 1px; background: rgba(196,168,106,0.6); }
.pp-ic-health::after { top: 8px; left: 8px; width: 4px; height: 6px; border-radius: 1px; background: rgba(196,168,106,0.5); }
.pp-ic-finance::before { left: 50%; bottom: 6px; width: 7px; height: 7px; margin-left: -3.5px; border: 1px solid rgba(196,168,106,0.6); border-radius: 50%; background: none; }
.pp-ic-calendar::before { left: 5px; right: 5px; bottom: 8px; height: 1px; background: rgba(196,168,106,0.6); }
.pp-ic-calendar::after { top: 9px; left: 5px; width: 1px; height: 4px; border-radius: 0; background: rgba(196,168,106,0.5); box-shadow: 3px 0 0 rgba(196,168,106,0.5), 6px 0 0 rgba(196,168,106,0.5); }
.pp-ic-tasks::before { left: 5px; bottom: 6px; width: 10px; height: 5px; border-left: 1px solid rgba(196,168,106,0.6); border-bottom: 1px solid rgba(196,168,106,0.6); background: none; transform: skewX(-14deg); right: auto; }
.pp-ic-countdown::before { left: 5px; right: 5px; bottom: 5px; height: 8px; border: 1px solid rgba(196,168,106,0.6); border-radius: 4px 4px 2px 2px; background: none; }
.pp-ic-checkin::before { left: 8px; bottom: 5px; width: 5px; height: 5px; border-left: 1px solid rgba(196,168,106,0.6); border-bottom: 1px solid rgba(196,168,106,0.6); background: none; transform: skewX(-18deg); right: auto; }
.pp-ic-flower::before { left: 9px; bottom: 5px; width: 1px; height: 9px; background: rgba(196,168,106,0.6); right: auto; }
.pp-ic-flower::after { top: 4px; left: 6px; width: 4px; height: 4px; border-radius: 50%; background: none; border: 1px solid rgba(196,168,106,0.6); box-shadow: 4px 2px 0 -1px rgba(196,168,106,0.45); }
.pp-ic-books::before { left: 5px; bottom: 6px; width: 5px; height: 7px; border: 1px solid rgba(196,168,106,0.6); border-radius: 1px 0 0 1px; background: none; box-shadow: 5px 0 0 -1px rgba(196,168,106,0.45); right: auto; }
.pp-ic-vocabulary::before { left: 5px; right: 5px; bottom: 6px; height: 6px; border: 1px solid rgba(196,168,106,0.6); border-radius: 2px; background: none; }
.pp-ic-vocabulary::after { top: 6px; right: 2px; width: 1px; height: 6px; border-radius: 0; background: rgba(196,168,106,0.5); }
.pp-ic-speak::before { left: 6px; right: 6px; bottom: 6px; height: 5px; border: 1px solid rgba(196,168,106,0.6); border-radius: 3px 3px 6px 6px; background: none; }
.pp-ic-codeMode::before { left: 7px; bottom: 6px; width: 5px; height: 5px; border-left: 1px solid rgba(196,168,106,0.6); border-bottom: 1px solid rgba(196,168,106,0.6); background: none; transform: rotate(-45deg); right: auto; }
.pp-ic-games::before { left: 5px; right: 5px; bottom: 6px; height: 6px; border: 1px solid rgba(196,168,106,0.6); border-radius: 3px; background: none; }
.pp-ic-games::after { top: 8px; left: 7px; width: 1px; height: 5px; background: rgba(196,168,106,0.5); box-shadow: 4px 1px 0 rgba(196,168,106,0.5); border-radius: 0; }
.pp-ic-trpg::before { left: 6px; bottom: 6px; width: 7px; height: 7px; border: 1px solid rgba(196,168,106,0.6); background: none; transform: rotate(45deg); right: auto; }
.pp-ic-allThemes::before { left: 6px; bottom: 6px; width: 7px; height: 7px; border: 1px solid rgba(196,168,106,0.6); border-radius: 50%; background: none; right: auto; }
.pp-ic-allThemes::after { top: 5px; right: 4px; width: 5px; height: 5px; border-radius: 50%; background: none; border: 1px solid rgba(196,168,106,0.45); }
.pp-ic-diary::before { left: 6px; right: 6px; bottom: 5px; height: 9px; border: 1px solid rgba(196,168,106,0.6); border-radius: 2px; background: none; }
.pp-ic-diary::after { top: 6px; left: 5px; width: 2px; height: 6px; border-radius: 1px; background: rgba(196,168,106,0.5); }
.pp-ic-capsule::before { left: 6px; right: 6px; bottom: 6px; height: 7px; border: 1px solid rgba(196,168,106,0.6); border-radius: 4px; background: none; }
.pp-ic-capsule::after { top: 6px; left: 9px; width: 1px; height: 7px; border-radius: 0; background: rgba(196,168,106,0.5); }
.pp-ic-mailbox::before { left: 5px; right: 5px; bottom: 6px; height: 7px; border: 1px solid rgba(196,168,106,0.6); border-radius: 1px; background: none; }
.pp-ic-mailbox::after { top: 7px; left: 6px; width: 7px; height: 5px; border-left: 1px solid rgba(196,168,106,0.5); border-bottom: 1px solid rgba(196,168,106,0.5); background: none; transform: rotate(-45deg); border-radius: 0; }
.pp-ic-fileUpload::before { left: 7px; right: 7px; bottom: 8px; height: 5px; border: 1px solid rgba(196,168,106,0.6); border-radius: 1px; background: none; }
.pp-ic-fileUpload::after { top: 5px; left: 50%; width: 1px; height: 6px; margin-left: -0.5px; background: rgba(196,168,106,0.55); border-radius: 0; }
.pp-ic-redpacket::before { left: 6px; right: 6px; bottom: 5px; height: 8px; border: 1px solid rgba(196,168,106,0.6); border-radius: 2px; background: none; }
.pp-ic-redpacket::after { top: 4px; left: 50%; width: 3px; height: 4px; margin-left: -1.5px; border-radius: 0 0 2px 2px; background: rgba(196,168,106,0.5); }
.pp-ic-intimacy::before { left: 50%; bottom: 8px; width: 6px; height: 6px; margin-left: -3px; border: 1px solid rgba(196,168,106,0.6); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: none; transform: rotate(-45deg); right: auto; }
.pp-ic-intimacy::after { top: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: none; border: 1px solid rgba(196,168,106,0.45); }

/* ---------- 05 已有同行码 ---------- */
.pp-redeem {
    text-align: center;
    padding: 20px 0 14px;
}
.pp-redeem-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}
.pp-redeem-text {
    margin: 6px 0 14px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--text-secondary);
}
.pp-cta-ghost {
    display: inline-block;
    padding: 11px 26px;
    border: 1px solid var(--pp-hair);
    border-radius: 13px;
    background: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease;
}
.pp-cta-ghost:active { transform: scale(0.975); background: rgba(201, 168, 168, 0.08); }
.pp-foot {
    margin-top: 4px;
    padding: 0 6px 4px;
    font-size: 11px;
    line-height: 1.8;
    color: var(--text-muted);
    text-align: center;
}

/* ---------- 逐层入场（一次性：动画结束由 JS 摘掉 pp-in）---------- */
/* 只动这一层（顶部身份区 / 每句价值 / 每个能力组），内层文字一律不动 ——
   内层跟着动会出现「内容自己抖一下」的廉价感，也更容易在窄屏上蹭出横向溢出。 */
.pp-in { animation: ppLayerIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes ppLayerIn {
    from { opacity: 0; transform: translateY(7px); }
    to   { opacity: 1; transform: translateY(0); }
}
.pp-done { animation: none; }

/* ---------- 窄屏 / 大屏 ---------- */
@media (max-width: 370px) {
    .pp-title { font-size: 21.5px; }
    .pp-sub { font-size: 12.5px; }
    .pp-item-body { gap: 6px; }
    .pp-cta-ghost { padding: 11px 20px; }
}
@media (min-width: 431px) {
    .pp-title { font-size: 25px; }
}

/* ---------- 减少动效：整块归零（外壳的过渡由 panels-settings.css 管）---------- */
@media (prefers-reduced-motion: reduce) {
    .pp-page, .pp-page * {
        animation: none !important;
        transition-duration: 0s !important;
    }
    .pp-cta:active, .pp-cta-ghost:active { transform: none; }
}
