﻿:root {
    --bg0: #070b14;
    --bg1: #0b1220;
    --card: rgba(255,255,255,.06);
    --card2: rgba(255,255,255,.08);
    --stroke: rgba(255,255,255,.12);
    --text: #eaf0ff;
    --muted: rgba(234,240,255,.72);
    --muted2: rgba(234,240,255,.52);
    --brand: #7c5cff;
    --brand2: #30d5c8;
    --good: #37d67a;
    --warn: #ffb020;
    --vip: #ffcc66;
    --shadow: 0 18px 40px rgba(0,0,0,.45);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "PingFang SC","Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: var(--bg1);
    -webkit-font-smoothing: antialiased;
    padding-bottom: env(safe-area-inset-bottom);
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 14px 22px;
}

/* 顶部区域（无标题栏，只有轻量“欢迎块”） */
.hero {
    position: relative;
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(124,92,255,.18), rgba(48,213,200,.10));
    box-shadow: var(--shadow);
    border-radius: calc(var(--radius) + 6px);
    padding: 16px 14px 14px;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(220px 140px at 15% 35%, rgba(255,255,255,.12), transparent 60%), radial-gradient(260px 160px at 85% 20%, rgba(255,255,255,.10), transparent 62%);
    pointer-events: none;
}

.hero h1 {
    margin: 0;
    font-size: 18px;
    letter-spacing: .2px;
    position: relative;
}

.hero p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 13px;
    position: relative;
}

.filters {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    position: relative;
}

.pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(0,0,0,.12);
    color: var(--muted);
    font-size: 13px;
    user-select: none;
}

.pill strong {
    color: var(--text);
    font-weight: 600;
}

.pill .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}

.pill.active {
    background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(48,213,200,.14));
    border-color: rgba(255,255,255,.18);
    color: var(--text);
}

.pill.active .dot {
    background: linear-gradient(135deg, var(--brand), var(--brand2));
}

/* 搜索 */
.search {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.searchbox {
    flex: 1;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.05);
}

.searchbox input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.searchbox input::placeholder {
    color: rgba(234,240,255,.45);
}

.kbd {
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(234,240,255,.60);
    font-size: 12px;
    background: rgba(0,0,0,.10);
    white-space: nowrap;
}

/* 网格 */
.grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(1, minmax(0,1fr));
    gap: 12px;
}

@media (min-width: 720px) {
    .wrap {
        padding: 22px 18px 28px;
    }

    .grid {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 14px;
    }

    .hero h1 {
        font-size: 20px;
    }
}

.card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, var(--card), rgba(0,0,0,.10));
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
    overflow: hidden;
    transform: translateZ(0);
}

.card:active {
    transform: scale(.99);
}

.card-inner {
    padding: 14px 12px 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(48,213,200,.18));
    border: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 12px 26px rgba(0,0,0,.25);
}

.icon svg {
    width: 22px;
    height: 22px;
    opacity: .95;
}

.meta {
    min-width: 0;
    flex: 1 1 auto;
}

.title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.name {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    color: rgba(234,240,255,.82);
    background: rgba(255,255,255,.06);
    flex: 0 0 auto;
}

.badge.free {
    border-color: rgba(55,214,122,.35);
    background: rgba(55,214,122,.10);
}

.badge.vip {
    border-color: rgba(255,204,102,.40);
    background: rgba(255,204,102,.12);
    color: rgba(255,232,196,.95);
}

.desc {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.foot {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px 12px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.06);
    color: rgba(234,240,255,.9);
    font-size: 12.5px;
    font-weight: 600;
}

.cta svg {
    width: 16px;
    height: 16px;
    opacity: .9;
}

.price {
    font-size: 12px;
    color: var(--muted2);
    white-space: nowrap;
}

.price strong {
    color: rgba(255,232,196,.95);
    font-weight: 800;
}

/* VIP 角标 */
.ribbon {
    position: absolute;
    top: 10px;
    right: -36px;
    transform: rotate(45deg);
    background: linear-gradient(135deg, rgba(255,204,102,.92), rgba(255,160,64,.90));
    color: rgba(25,18,8,.95);
    font-weight: 900;
    font-size: 11px;
    letter-spacing: .8px;
    padding: 7px 46px;
    box-shadow: 0 10px 20px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.35);
}

/* 轻提示 */
.hint {
    margin-top: 12px;
    color: rgba(234,240,255,.55);
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

/* 底部固定的小导航（可选） */
.dock {
    position: sticky;
    bottom: 10px;
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.dock a {
    flex: 1;
    text-align: center;
    padding: 10px 10px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: rgba(0,0,0,.12);
    color: rgba(234,240,255,.78);
    font-size: 13px;
    box-shadow: 0 14px 28px rgba(0,0,0,.25);
}

.dock a.primary {
    background: linear-gradient(135deg, rgba(124,92,255,.28), rgba(48,213,200,.16));
    color: var(--text);
    border-color: rgba(255,255,255,.18);
    font-weight: 700;
}
.site-footer {
    margin-top: 22px;
    padding: 18px 12px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    font-size: 12px;
    color: rgba(234,240,255,.55);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.8;
}

.footer-links a {
    color: rgba(234,240,255,.70);
    text-decoration: none;
    padding: 2px 4px;
}

.footer-links a:hover {
    color: rgba(234,240,255,.95);
}

.footer-links .sep {
    opacity: .35;
}

.footer-meta {
    margin-top: 10px;
    line-height: 1.6;
}

.footer-meta .slogan {
    margin-top: 4px;
    font-size: 11px;
    opacity: .65;
}
