:root {
    --portal-text: rgba(255, 255, 255, 0.96);
    --portal-muted: rgba(255, 255, 255, 0.48);
    --portal-primary: #007aff;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background-color: #030408;
    color: var(--portal-text);
    font-size: 14px;
    min-height: 100dvh;
    padding-bottom: calc(24px + var(--safe-bottom));
}
a { color: inherit; text-decoration: none; }
.shell { max-width: 430px; margin: 0 auto; }
.top-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    height: calc(48px + var(--safe-top));
    padding: var(--safe-top) 16px 0;
    background: transparent;
}
.back-btn {
    position: absolute;
    left: max(8px, env(safe-area-inset-left));
    bottom: 0;
    top: var(--safe-top);
    width: 44px;
    height: 48px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-btn img {
    width: 24px;
    height: 24px;
    mix-blend-mode: screen;
}
.top-title {
    flex: 1;
    margin: 0;
    padding: 0 44px;
    font-size: 17px;
    font-weight: 500;
    text-align: center;
    line-height: 48px;
}
.content { padding: 12px 16px 0; }
.is-hidden { display: none !important; }
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
}
.grid .card { display: block; }
.grid .thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a2744, #0d1525);
}
.grid .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.grid .thumb-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--portal-muted);
    font-size: 12px;
}
.grid .title {
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fee-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
}
.fee-badge.fee-paid { color: #ffd60a; }
.fee-badge.fee-free { color: #34c759; }
.thumb-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 6px 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}
.load-more {
    text-align: center;
    padding: 20px 0 8px;
}
.load-more button {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: var(--portal-text);
    border-radius: 20px;
    padding: 8px 28px;
    font-size: 14px;
    cursor: pointer;
}
.empty-hint {
    text-align: center;
    color: var(--portal-muted);
    padding: 48px 16px;
}
