/* 苍影图库 · 前台样式（延续 index.html 的移动卡片风格） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
}
:root {
    --ink: #1c1c1e;
    --sub: #6b6b70;
    --muted: #9a9aa0;
    --line: #ececef;
    --bg: #f6f6f8;
    --card: #fff;
    --gold: #a8792f;
}
html {
    background: #ececef;
    -webkit-text-size-adjust: 100%;
}
html,
body {
    min-height: 100%;
}
body {
    max-width: 420px;
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    background: var(--bg);
    color: var(--ink);
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.12);
    overflow-x: hidden;
    padding-bottom: 24px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    position: relative;
}
img {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    font-family: inherit;
}
@media (max-width: 440px) {
    html {
        background: var(--bg);
    }
    body {
        margin: 0 auto;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh;
    }
}

/* ============ 深色模式 ============ */
body.dark {
    background: #121212;
    color: #eee;
    border-color: #2a2a2a;
}
body.dark .topbar,
body.dark .category,
body.dark .card,
body.dark .about-text,
body.dark .panel,
body.dark .form-card,
body.dark .list-row,
body.dark .vip-card,
body.dark .photo-item,
body.dark .empty,
body.dark .searchbar {
    background: #1e1e1e !important;
    color: #e6e6e6;
}
body.dark .topbar {
    border-color: #2a2a2a;
}
body.dark .brand,
body.dark .card-album-name,
body.dark .page-title,
body.dark .video-title,
body.dark .about-title,
body.dark .panel-title {
    color: #f2f2f2 !important;
    border-color: #3a3a3a !important;
}
body.dark .card-header {
    background: #1e1e1e !important;
}
body.dark .tag-item {
    background: #2a2a2a;
    color: #bbb;
}
body.dark .tag-item.active,
body.dark .subchip.active {
    background: #444;
    color: #fff;
}
body.dark .subchip {
    background: #262626;
    color: #bbb;
}
body.dark .theme-toggle {
    background: #333;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
body.dark .about-text,
body.dark .muted,
body.dark .cate-item,
body.dark .list-sub {
    color: #aaa !important;
}
body.dark footer {
    background: #1a1a1a;
}
body.dark .footer-top-text {
    color: #aaa;
}
body.dark .copyright {
    color: #666;
}
body.dark .form-card input,
body.dark .form-card textarea,
body.dark .form-card select,
body.dark .searchbar input {
    background: #262626;
    border-color: #3a3a3a;
    color: #eee;
}
body.dark .btn-dark {
    background: #f2f2f2;
    color: #111;
}
body.dark .plan-card {
    background: #1e1e1e;
    border-color: #333;
}
body.dark .plan-card.active {
    border-color: #f0f0f0;
    background: #262626;
}
body.dark .divider {
    background: #2a2a2a;
}
body.dark .notice-bar {
    background: #2a2418;
    color: #e8c98f;
}
body.dark .section-title {
    color: #f2f2f2 !important;
}
body.dark .cate-name {
    color: #cfcfcf !important;
}
body.dark .cate-avatar {
    background: #2a2a2a;
    color: #eee;
}
body.dark .cate-item.on .cate-avatar {
    border-color: #f2f2f2;
}
body.dark .searchbar input::placeholder {
    color: #7a7a7a;
}
body.dark .footer-qr {
    background: #262626;
}
body.dark .lb-save,
body.dark .btn-light {
    background: #2a2a2a;
    color: #eee;
    border-color: #3a3a3a;
}

/* ============ 顶栏 ============ */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 0 14px;
    background: #fff;
    border-radius: 24px 24px 0 0;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
}
@media (max-width: 440px) {
    .topbar {
        border-radius: 0;
    }
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    min-width: 0;
}
.brand-logo {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    object-fit: cover;
    background: #141414;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.top-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.top-links a {
    font-size: 12px;
    color: var(--sub);
    padding: 5px 11px;
    border-radius: 20px;
    background: #f2f2f4;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.top-links a:active {
    background: #e4e4e7;
}
.top-links a.primary {
    background: #141414;
    color: #fff;
}
.top-links a.gold {
    background: #f7f0e2;
    color: var(--gold);
}
.top-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #141414;
    color: #fff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ============ 轮播 ============ */
.banner {
    width: 100%;
    height: 178px;
    background-color: #2c2c2c;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.banner-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.banner-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    position: relative;
}
.banner-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 42%, rgba(0, 0, 0, 0.3));
}
.banner-caption {
    position: absolute;
    left: 14px;
    bottom: 14px;
    right: 14px;
    z-index: 4;
    color: #fff;
    font-size: 13px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    pointer-events: none;
}
.banner-caption b {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: block;
}
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.banner-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: background 0.3s, width 0.3s;
    border: none;
    padding: 0;
}
.banner-dot.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* ============ 分类 ============ */
.category {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    padding: 12px 8px;
    background: #fff;
    margin: 8px 10px;
    border-radius: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    transition: background 0.3s;
}
.cate-item {
    text-align: center;
    font-size: 11px;
    color: #444;
    cursor: pointer;
    user-select: none;
    padding: 4px 0;
    border-radius: 10px;
    transition: background 0.2s;
}
.cate-item:active {
    background: #f2f2f4;
}
.cate-item.on .cate-name {
    font-weight: 700;
    color: #111;
}
body.dark .cate-item.on .cate-name {
    color: #fff;
}
.cate-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e9e9ec center/cover no-repeat;
    margin: 0 auto 4px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
    overflow: hidden;
}
.cate-item.on .cate-avatar {
    border-color: #141414;
    box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.12);
}
body.dark .cate-item.on .cate-avatar {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}
.cate-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
}

/* 子分类 */
.subchips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 10px 10px;
    scrollbar-width: none;
}
.subchips::-webkit-scrollbar {
    display: none;
}
.subchip {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 13px;
    border-radius: 16px;
    background: #fff;
    color: #555;
    border: 1px solid #e6e6e9;
    white-space: nowrap;
}
.subchip.active {
    background: #141414;
    color: #fff;
    border-color: #141414;
}

/* ============ 标签条 ============ */
.tag-bar {
    padding: 0 10px 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
}
.tag-bar::-webkit-scrollbar {
    display: none;
}
.tag-item {
    flex-shrink: 0;
    padding: 5px 14px;
    border-radius: 20px;
    background: #e5e5e7;
    white-space: nowrap;
    font-size: 12px;
    color: #333;
    transition: all 0.25s;
    cursor: pointer;
    user-select: none;
}
.tag-item.active {
    background: #666;
    color: #fff;
}

/* ============ 搜索 ============ */
.searchbar {
    display: flex;
    gap: 8px;
    margin: 0 10px 10px;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.searchbar input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 16px;
    color: inherit;
    outline: none;
    min-width: 0;
}
.searchbar button {
    border: none;
    background: #141414;
    color: #fff;
    font-size: 12px;
    padding: 0 16px;
    border-radius: 10px;
    cursor: pointer;
}

/* ============ 通知条 ============ */
.notice-bar {
    margin: 0 10px 10px;
    background: #fff8e8;
    color: #8a6a1f;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    line-height: 1.6;
}

/* ============ 瀑布流卡片 ============ */
.waterfall {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px 18px;
}
.card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: background 0.3s, transform 0.12s;
    cursor: pointer;
    touch-action: manipulation;
}
.card:active {
    transform: scale(0.97);
}
.card-header {
    height: 30px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
}
.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot.red {
    background: #ff5f57;
}
.dot.yellow {
    background: #ffbd2e;
}
.dot.green {
    background: #28c840;
}
.card-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #e9e9ec;
}
.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-text-wrap {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    padding: 34px 10px 9px;
    color: #fff;
    z-index: 2;
}
.card-album-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card-count {
    font-size: 11px;
    opacity: 0.88;
    display: flex;
    align-items: center;
    gap: 6px;
}
.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    font-size: 10px;
    padding: 3px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    backdrop-filter: blur(2px);
}
.badge.vip {
    background: rgba(168, 121, 47, 0.9);
}
.badge.free {
    background: rgba(19, 122, 75, 0.9);
}

/* ============ 视频区 ============ */
.video-block {
    padding: 6px 10px 20px;
}
.section-title {
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid #ccc;
    display: inline-block;
    margin-bottom: 12px;
    color: #222;
    transition: color 0.3s, border-color 0.3s;
}
.video-box {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    aspect-ratio: 16 / 9;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}
.video-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #111;
}
.video-box .play-icon-big {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #222;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
.video-cap {
    position: absolute;
    left: 10px;
    bottom: 8px;
    right: 10px;
    color: #fff;
    font-size: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    z-index: 2;
}

/* ============ 关于 ============ */
.about-block {
    padding: 4px 10px 20px;
}
.about-text {
    background: #fff;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 13px;
    color: #444;
    line-height: 1.75;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

/* ============ 页脚 ============ */
footer {
    background: #111;
    color: #aaa;
    padding: 22px 12px 18px;
    margin-top: 10px;
    border-radius: 0 0 24px 24px;
}
@media (max-width: 440px) {
    footer {
        border-radius: 0;
    }
}
.footer-top-text {
    text-align: center;
    font-size: 13px;
    margin-bottom: 15px;
    letter-spacing: 1.6px;
    color: #bbb;
}
.qrcode-row {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.qrcode-item {
    text-align: center;
}
.qrcode-box {
    width: 96px;
    height: 96px;
    background: #fff;
    padding: 5px;
    border-radius: 10px;
    margin: 0 auto 6px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #999;
}
.qrcode-item p {
    font-size: 12px;
    color: #999;
}
.copyright {
    text-align: center;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    line-height: 1.8;
}
.copyright a {
    color: #777;
}

/* ============ 主题按钮 ============ */
.theme-toggle {
    position: fixed;
    right: max(12px, calc(50% - 262px));
    bottom: 84px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.12s;
    touch-action: manipulation;
    user-select: none;
}
.theme-toggle:active {
    transform: scale(0.9);
}
@media (max-width: 440px) {
    .theme-toggle {
        right: 12px;
        bottom: 72px;
    }
}

/* ============ 通用页面块 ============ */
.section {
    padding: 0 10px;
}
.page-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px 6px;
}
.back {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #333;
    flex-shrink: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}
.page-title {
    font-size: 16px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.page-sub {
    font-size: 11px;
    color: var(--muted);
    font-weight: 400;
    margin-top: 2px;
}
.panel {
    background: #fff;
    border-radius: 16px;
    margin: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.panel-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}
.muted {
    color: var(--muted);
    font-size: 12px;
}

/* 相册详情 */
.album-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--muted);
    padding: 0 12px 10px;
}
.album-desc {
    margin: 0 10px 12px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}









.photo-grid {
    column-count: 2;
    column-gap: 8px;
    padding: 0 10px 18px;
}
.photo-grid > .empty {
    column-span: all;
}
.photo-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #e9e9ec;
    margin: 0 0 8px;
    display: block;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    cursor: zoom-in;
}
.photo-item img {
    display: block;
    width: 100%;
    height: auto;
}
.photo-item.locked .pimg {
    filter: blur(7px);
    transform: scale(1.02);
}




















.photo-item .lockmask {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.42);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
    pointer-events: none;
    z-index: 2;
}
.lockmask svg {
    width: 22px;
    height: 22px;
}
.member-tip {
    margin: 0 10px 12px;
    background: #141414;
    color: #fff;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.member-tip p {
    font-size: 12px;
    line-height: 1.6;
    color: #ddd;
}
.member-tip b {
    display: block;
    font-size: 13px;
    color: #fff;
    margin-bottom: 2px;
}
.member-tip a {
    flex-shrink: 0;
    background: #fff;
    color: #111;
    font-size: 12px;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
}

/* 空状态 */
.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 46px 20px;
    color: var(--muted);
    font-size: 13px;
    background: #fff;
    border-radius: 16px;
    line-height: 1.8;
}

/* 分页 */
.pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 4px 10px 20px;
    font-size: 12px;
    color: var(--sub);
}
.pager a,
.pager .cur {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #fff;
    color: var(--sub);
}
.pager .cur {
    background: #141414;
    color: #fff;
}
.pager .dotsep {
    color: var(--muted);
}
.pager .pginfo {
    color: var(--muted);
    margin-left: 4px;
}

/* 按钮 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: #f1f1f3;
    color: #222;
    transition: transform 0.12s, background 0.2s;
    touch-action: manipulation;
}
.btn:active {
    transform: scale(0.98);
}
.btn-dark {
    background: #141414;
    color: #fff;
}
.btn-block {
    width: 100%;
    display: flex;
}
.btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 9px;
}
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 表单 */
.form-card {
    background: #fff;
    border-radius: 16px;
    margin: 10px;
    padding: 18px 16px 20px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.form-card label {
    display: block;
    font-size: 12px;
    color: var(--sub);
    margin: 12px 0 6px;
}
.form-card label:first-child {
    margin-top: 0;
}
.form-card input[type=text],
.form-card input[type=password],
.form-card input[type=email],
.form-card input[type=tel],
.form-card textarea,
.form-card select {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #e2e2e6;
    border-radius: 10px;
    font-size: 16px;
    background: #fbfbfc;
    color: inherit;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.form-card input:focus,
.form-card textarea:focus {
    border-color: #141414;
    background: #fff;
}
.form-tip {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.7;
}
.form-err {
    background: #fdecea;
    border: 1px solid #f5c2bd;
    color: #a3211a;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    margin-bottom: 12px;
    line-height: 1.6;
}
.form-ok {
    background: #eaf6ef;
    border: 1px solid #bfe3cf;
    color: #13704a;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 9px;
    margin-bottom: 12px;
}
.auth-switch {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    padding: 14px 0 10px;
}
.auth-switch a {
    color: #141414;
    font-weight: 600;
    border-bottom: 1px solid currentColor;
}
body.dark .auth-switch a {
    color: #fff;
}

/* 个人中心 */
.vip-card {
    margin: 10px;
    background: linear-gradient(135deg, #1a1a1c, #2e2a24 55%, #4a3b26);
    border-radius: 18px;
    padding: 18px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.vip-card::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    right: -60px;
    top: -70px;
    background: radial-gradient(circle, rgba(201, 160, 99, 0.32), transparent 70%);
}
.vip-card .vip-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #c9a063;
    margin-bottom: 8px;
}
.vip-card .vip-main {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}
.vip-card .vip-exp {
    font-size: 12px;
    color: #cfc6ba;
}
.vip-card .vip-act {
    margin-top: 14px;
    display: inline-block;
    background: #fff;
    color: #141414;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
}
.user-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 10px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #141414;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.user-name {
    font-size: 15px;
    font-weight: 600;
}
.user-id {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.list-row:last-child {
    border-bottom: none;
}
.list-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.thumb-mini {
    width: 44px;
    height: 44px;
    border-radius: 9px;
    object-fit: cover;
    background: #eee;
    flex-shrink: 0;
}
.row-flex {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 购买页 */
.plans {
    display: grid;
    gap: 10px;
    padding: 10px;
}
.plan-card {
    background: #fff;
    border: 1.5px solid #e8e8ec;
    border-radius: 16px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.plan-card.active {
    border-color: #141414;
    background: #fafaf8;
}
.plan-card .p-name {
    font-size: 14px;
    font-weight: 600;
}
.plan-card .p-days {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.plan-card .p-price {
    font-size: 19px;
    font-weight: 700;
    color: #141414;
    font-variant-numeric: tabular-nums;
}
.plan-card .p-price small {
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 2px;
}
.plan-card.active .p-price {
    color: #a8792f;
}
.pay-methods {
    display: flex;
    gap: 10px;
    padding: 0 10px 10px;
}
.pay-method {
    flex: 1;
    background: #fff;
    border: 1.5px solid #e8e8ec;
    border-radius: 12px;
    padding: 12px 10px;
    text-align: center;
    font-size: 13px;
    cursor: pointer;
}
.pay-method.active {
    border-color: #141414;
    font-weight: 600;
}
.pay-bar {
    padding: 6px 10px 18px;
}

/* 大图浏览 */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    touch-action: none;
}
.lightbox.show {
    display: flex;
}
.lightbox img {
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}
.lightbox .lb-close {
    position: absolute;
    top: max(14px, env(safe-area-inset-top));
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: none;
    font-size: 20px;
    z-index: 3;
    cursor: pointer;
}
.lightbox .lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 64px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    border-radius: 10px;
}
.lightbox .lb-prev {
    left: 10px;
}
.lightbox .lb-next {
    right: 10px;
}
.lightbox .lb-count {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    color: #ddd;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
}
.lightbox .lb-save {
    position: absolute;
    right: 14px;
    bottom: max(16px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 12px;
    padding: 7px 13px;
    border-radius: 20px;
    border: none;
}

/* 视频弹窗 */
.vmodal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}
.vmodal.show {
    display: flex;
}
.vmodal .vm-box {
    width: 100%;
    max-width: 720px;
}
.vmodal video,
.vmodal iframe {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border: none;
    border-radius: 12px;
    display: block;
}
.vmodal .vm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    border: none;
    font-size: 18px;
}

/* 顶部提示 */
.flash {
    margin: 8px 10px 0;
    background: #eaf6ef;
    border: 1px solid #bfe3cf;
    color: #13704a;
    font-size: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    line-height: 1.6;
}
.flash.err {
    background: #fdecea;
    border-color: #f5c2bd;
    color: #a3211a;
}

/* 相册操作条 */
.album-actions {
    display: flex;
    gap: 8px;
    padding: 0 10px 12px;
}
.album-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 13px;
}
.fav-on {
    background: #141414;
    color: #fff;
}

/* ============ 底部四栏导航 ============ */
body {
    padding-bottom: 92px;
}
.tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    width: 100%;
    max-width: 420px;
    height: 58px;
    display: flex;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    border-radius: 0 0 24px 24px;
    z-index: 900;
    padding-bottom: env(safe-area-inset-bottom);
}
.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: #9a9aa0;
    letter-spacing: 0.5px;
}
.tab svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
    opacity: 0.55;
}
.tab.on {
    color: #1c1c1e;
}
.tab.on svg {
    opacity: 1;
}
.tab:active {
    background: rgba(0, 0, 0, 0.04);
}
body.dark .tabbar {
    background: rgba(22, 22, 24, 0.94);
    border-top-color: #2a2a2e;
}
body.dark .tab {
    color: #8a8a90;
}
body.dark .tab.on {
    color: #f2f2f4;
}

/* ============ 单张图片星标收藏 ============ */
.ph-star {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(12, 12, 14, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    cursor: pointer;
}
.ph-star svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.7;
    stroke-linejoin: round;
}
.ph-star.on {
    background: rgba(255, 255, 255, 0.9);
}
.ph-star.on svg {
    fill: #e3a92b;
    stroke: #e3a92b;
}
.ph-star:active {
    transform: scale(0.92);
}

/* ============ 解锁更多 / 开通会员 ============ */
.unlock-card {
    margin: 0 10px 12px;
    background: linear-gradient(135deg, #141416 0%, #2c2c31 100%);
    color: #fff;
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}
.unlock-card .uc-title {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.unlock-card .uc-count {
    color: #e3b96b;
    font-size: 20px;
    font-weight: 700;
}
.unlock-card .uc-desc {
    font-size: 11px;
    color: #b6b6bd;
    margin-top: 6px;
    line-height: 1.6;
}
.unlock-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 99px;
    overflow: hidden;
    margin: 12px 0 4px;
}
.unlock-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #d8ab5c, #f0cd8c);
}
.unlock-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #9a9aa2;
}
.unlock-card .uc-btn {
    display: block;
    margin-top: 12px;
    padding: 11px;
    text-align: center;
    background: #fff;
    color: #141416;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 600;
}
.unlock-card .uc-btn:active {
    background: #eee;
}

/* ============ 验证码 ============ */
.cap-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}
.cap-row input {
    flex: 1;
    margin: 0 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.cap-img {
    flex: 0 0 auto;
    width: 108px;
    height: 40px;
    border: 1px solid #dcdfe5;
    border-radius: 9px;
    background: #f6f6f8;
    cursor: pointer;
}
body.dark .cap-img {
    border-color: #333;
}

/* ============ 前台分类页 ============ */
.cate-block {
    margin: 0 10px 10px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}
.cate-block-hd {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cate-block-ico {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #77777d;
}
.cate-block-ico img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cate-block-name {
    font-size: 14px;
    font-weight: 600;
}
.cate-block-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
}
.cate-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.cate-chip {
    padding: 6px 12px;
    border-radius: 99px;
    background: #f4f4f6;
    font-size: 12px;
    color: #55555b;
}
.cate-chip:active {
    background: #e9e9ec;
}
body.dark .cate-block {
    background: #1c1c1f;
}
body.dark .cate-chip {
    background: #26262a;
    color: #c9c9d0;
}
body.dark .cate-block-name {
    color: #f2f2f4;
}

/* ============ 收藏页 ============ */
.fav-tabs {
    display: flex;
    gap: 8px;
    padding: 0 10px 12px;
}
.fav-tabs a {
    padding: 8px 14px;
    border-radius: 99px;
    background: #fff;
    font-size: 12px;
    color: #6b6b70;
}
.fav-tabs a.on {
    background: #141414;
    color: #fff;
}
body.dark .fav-tabs a {
    background: #1c1c1f;
    color: #b9b9c0;
}
body.dark .fav-tabs a.on {
    background: #f2f2f4;
    color: #141416;
}
.fav-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    display: block;
}
.fav-item .fi-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #eee;
}
.fav-item .fi-body {
    padding: 8px 10px 10px;
}
.fav-item .fi-title {
    font-size: 12px;
    font-weight: 600;
    color: #1c1c1e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fav-item .fi-cate {
    display: inline-block;
    margin-top: 5px;
    font-size: 10px;
    color: #8a6a2b;
    background: #faf3e4;
    border-radius: 6px;
    padding: 2px 7px;
}
body.dark .fav-item {
    background: #1c1c1f;
}
body.dark .fav-item .fi-title {
    color: #f2f2f4;
}
body.dark .fav-item .fi-cate {
    background: #2b2617;
    color: #d9b676;
}

