/* ===== 基础变量 ===== */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #eef2ff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --bg: #f3f4f6;
    --card: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
    --radius: 8px;
    --nav-height: 54px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px) + 8px);
    min-height: 100vh;
}

body.no-bottom-nav {
    padding-bottom: 0;
}

a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--card);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -2px 10px rgba(0,0,0,.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--text-light);
    font-size: 12px;
    padding: 6px 20px;
    transition: color .2s;
}

.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--primary); font-weight: 600; }

/* ===== 页面容器 ===== */
.page {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 8px;
}

/* ===== 海报 ===== */
.poster {
    position: relative;
    line-height: 0;
    margin: 6px 8px 0;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(15, 23, 42, .08);
}

.poster-media {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    border-radius: 12px;
}

.poster-video-wrap {
    position: relative;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.poster video.poster-media {
    background: #000;
}

.poster-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0;
    padding: 0;
    padding-left: 4px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 50%;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    cursor: pointer;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
    transition: opacity .25s ease, transform .2s ease, background .2s ease;
    -webkit-tap-highlight-color: transparent;
}

.poster-play-btn svg {
    width: 26px;
    height: 26px;
}

.poster-play-btn:active {
    transform: translate(-50%, -50%) scale(.94);
    background: rgba(0, 0, 0, .55);
}

.poster-video-wrap.is-playing .poster-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* ===== 公告滚动 ===== */
.announcement-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 8px 0;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #dcfce7;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(34, 197, 94, .08);
    overflow: hidden;
}

.announcement-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #ecfdf5;
}

.announcement-icon svg {
    width: 15px;
    height: 15px;
    color: var(--home-green, #22c55e);
}

.announcement-scroll {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.announcement-track {
    display: flex;
    width: max-content;
    gap: 48px;
    white-space: nowrap;
    animation: announcement-marquee 6s linear infinite;
    -webkit-animation: announcement-marquee 6s linear infinite;
}

.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

.announcement-item {
    flex-shrink: 0;
    font-size: 12px;
    color: #374151;
    line-height: 1.4;
}

@keyframes announcement-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

@-webkit-keyframes announcement-marquee {
    0% { -webkit-transform: translate3d(0, 0, 0); }
    100% { -webkit-transform: translate3d(-50%, 0, 0); }
}

/* ===== 个人资料板块 ===== */
.profile-panel {
    position: relative;
    background: var(--card);
    margin: 6px 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-verify-badge {
    position: absolute;
    top: 10px;
    right: -30px;
    z-index: 2;
    width: 108px;
    padding: 4px 0;
    text-align: center;
    transform: rotate(45deg);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .1em;
    box-shadow: 0 2px 6px rgba(22, 163, 74, .32);
    pointer-events: none;
}

.profile-card {
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-panel .profile-card {
    padding-bottom: 8px;
}

.profile-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.profile-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
}

.profile-title {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 1px;
}

.profile-bio {
    font-size: 11px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

/* ===== 首页解锁播报（海报右上角轻量标签） ===== */
.unlock-broadcast {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 4;
    max-width: 58%;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
}

.unlock-broadcast.is-visible {
    opacity: 1;
}

.unlock-broadcast-list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    overflow: hidden;
}

.unlock-broadcast-item {
    max-width: 100%;
    overflow: hidden;
}

.unlock-broadcast-item-inner {
    display: inline-block;
    max-width: 100%;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .42);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, .9);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: top;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}

.unlock-broadcast-item-top .unlock-broadcast-item-inner {
    background: rgba(15, 23, 42, .5);
}

.unlock-broadcast-item-bottom .unlock-broadcast-item-inner {
    background: rgba(15, 23, 42, .3);
}

.unlock-broadcast-user {
    font-style: normal;
    font-weight: 700;
    color: #fff;
}

.unlock-broadcast-amount {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    white-space: nowrap;
}

.unlock-broadcast-amount-num {
    font-weight: 700;
    color: #fde68a;
}

.unlock-broadcast-amount-unit {
    font-size: .76em;
    font-weight: 500;
    color: #fde68a;
    opacity: .88;
}

.unlock-broadcast-item-bottom.is-leaving {
    animation: unlock-broadcast-leave 2.2s ease forwards;
    pointer-events: none;
}

.unlock-broadcast-item-bottom.is-entering .unlock-broadcast-item-inner {
    animation: unlock-broadcast-enter .8s ease forwards;
}

@keyframes unlock-broadcast-leave {
    0% {
        opacity: 1;
        max-height: 24px;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        max-height: 0;
        transform: translateY(-4px);
    }
}

@keyframes unlock-broadcast-enter {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 首页文章板块 ===== */
.home-page {
    --home-green: #22c55e;
    --home-green-dark: #16a34a;
}

.contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 7px 8px;
    border: none;
    border-radius: 6px;
    background: var(--home-green);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s;
}

.contact-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.contact-btn:hover {
    background: var(--home-green-dark);
}

.home-search {
    margin-top: 6px;
    margin-bottom: 6px;
}

.home-search .search-box {
    border-radius: 6px;
    padding: 0 2px 0 10px;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.home-search .search-box input {
    padding: 7px 6px;
    font-size: 16px;
}

.home-search .search-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--home-green);
    cursor: pointer;
    flex-shrink: 0;
}

.home-search .search-icon-btn svg {
    width: 18px;
    height: 18px;
}

.home-article-grid {
    gap: 8px;
    padding: 2px 0 4px;
}

.article-card-v2 {
    display: block;
    background: var(--card);
    border-radius: 6px;
    padding: 7px 10px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
    color: inherit;
    transition: box-shadow .2s, border-color .2s, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.article-card-v2:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

/* 首页：独立卡片，文章之间明显区分 */
.home-article-grid .article-card-v2 {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e8e6;
    border-radius: 8px;
    padding: 7px 10px 7px 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05), 0 2px 8px rgba(15, 23, 42, .03);
}

.home-article-grid .article-card-v2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #d1d5db;
}

.home-article-grid .article-card-v2:has(.tag-public)::before {
    background: linear-gradient(180deg, #bbf7d0, #86efac);
}

.home-article-grid .article-card-v2:has(.tag-paid)::before {
    background: linear-gradient(180deg, #fecaca, #fca5a5);
}

.home-article-grid .article-card-v2:has(.tag-partial)::before {
    background: linear-gradient(180deg, #fde68a, #fcd34d);
}

.home-article-grid .article-card-v2:hover {
    border-color: #d1d9d4;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .07), 0 4px 14px rgba(15, 23, 42, .04);
}

.home-article-grid .article-card-v2:active {
    transform: scale(.995);
    border-color: rgba(34, 197, 94, .35);
    box-shadow: 0 1px 4px rgba(34, 197, 94, .12);
}

.home-article-grid .article-card-v2-footer {
    border-top: none;
    padding-top: 4px;
    margin-top: 2px;
    gap: 3px 8px;
    position: relative;
}

.home-article-grid .article-card-v2-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, #eef0ef 0%, #e5e7eb 50%, #eef0ef 100%);
}

.home-article-grid .article-card-date,
.home-article-grid .article-card-views {
    color: #9ca3af;
}

.home-article-grid .article-card-tags {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.home-article-grid .article-card-views::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 3px;
    margin-right: 5px;
    border-radius: 50%;
    background: #d1d5db;
    vertical-align: middle;
    transform: translateY(-1px);
}

.article-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    min-width: 0;
}

.tag-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 34px;
    height: 18px;
    padding: 0 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    letter-spacing: .02em;
    box-sizing: border-box;
}

.tag-v2.tag-public {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #15803d;
    box-shadow: none;
}

.tag-v2.tag-paid {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
    box-shadow: none;
}

.tag-v2.tag-partial {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #d97706;
    box-shadow: none;
}

.article-stamp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1.5px dashed #ef4444;
    border-radius: 50%;
    color: #ef4444;
    font-size: 10px;
    font-weight: 700;
    transform: rotate(-12deg);
    flex-shrink: 0;
    margin-left: auto;
}

.article-stamp.stamp-purchased {
    border-color: var(--home-green);
    color: var(--home-green);
    font-size: 9px;
}

.article-card-v2-title {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-v2-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px 6px;
    font-size: 10px;
    color: var(--text-light);
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}

.article-card-date {
    color: var(--text-light);
    white-space: nowrap;
}

.article-card-tag {
    display: inline-flex;
    align-items: center;
    max-width: 88px;
    padding: 1px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 2px rgba(29, 78, 216, .22);
}

.home-article-grid .article-card-tag--1 {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 1px 3px rgba(29, 78, 216, .28);
}

.home-article-grid .article-card-tag--2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 1px 3px rgba(109, 40, 217, .28);
}

.home-article-grid .article-card-tag--3 {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    box-shadow: 0 1px 3px rgba(234, 88, 12, .28);
}

.article-card-views {
    color: var(--text-light);
    white-space: nowrap;
}

.article-card-price {
    margin-left: auto;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.article-card-price.free {
    color: var(--home-green);
    font-size: 10px;
}

.home-page .articles-section {
    padding: 0 8px;
    margin-top: 2px;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    right: 14px;
    bottom: calc(var(--nav-height) + 14px);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--home-green, #22c55e);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(34, 197, 94, .38);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .2s;
    -webkit-tap-highlight-color: transparent;
}

.back-to-top svg {
    width: 22px;
    height: 22px;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:active {
    background: var(--home-green-dark, #16a34a);
}

.back-to-top.is-visible:active {
    transform: scale(.94);
}

/* ===== 搜索 ===== */
.search-section {
    padding: 0 8px;
    margin-bottom: 6px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--card);
    border-radius: 20px;
    padding: 2px 2px 2px 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.search-icon {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    flex-shrink: 0;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    padding: 7px 8px;
    font-size: 16px;
    background: transparent;
}

.search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    cursor: pointer;
    transition: background .2s;
}

.search-btn:hover { background: var(--primary-dark); }

/* ===== 文章区域 ===== */
.articles-section {
    padding: 0 10px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.section-header h3 {
    font-size: 15px;
    font-weight: 700;
}

.article-count {
    font-size: 12px;
    color: var(--text-light);
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== 文章卡片 ===== */
.article-card {
    display: flex;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow .2s;
    color: inherit;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
}

.article-card-cover {
    width: 88px;
    min-height: 88px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #a5b4fc, #818cf8);
    background-size: cover;
    background-position: center;
}

.article-card-body {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.tag-public { background: #d1fae5; color: #065f46; }
.tag-paid { background: #fee2e2; color: #991b1b; }
.tag-partial { background: #fef3c7; color: #92400e; }

.article-price {
    font-size: 13px;
    color: var(--danger);
    font-weight: 600;
}

.article-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.article-card-summary {
    font-size: 12px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.article-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-light);
}

.purchased-badge {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding-bottom: 4px;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: var(--card);
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    transition: all .2s;
}

.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

/* ===== 文章详情 ===== */
.article-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 110;
    max-width: 640px;
    margin: 0 auto;
    height: calc(44px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    display: flex;
    align-items: center;
    padding-left: 2px;
    padding-right: 2px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.article-top-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--text);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s ease;
}

.article-top-back svg {
    width: 22px;
    height: 22px;
}

.article-top-back:active {
    opacity: .55;
}

.article-top-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.article-top-spacer {
    width: 44px;
    flex-shrink: 0;
}

.article-page {
    padding-top: calc(44px + env(safe-area-inset-top, 0px) + 6px);
}

.article-page .article-detail {
    background: transparent;
    min-height: auto;
}

.article-detail-v2 {
    padding: 4px 10px 16px;
}

.article-detail-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 8px;
    color: var(--text);
}

.article-detail-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
}

.article-detail-time {
    color: var(--text-light);
}

.article-detail-report {
    color: var(--home-green, #22c55e);
    font-size: 11px;
    white-space: nowrap;
}

.article-detail-card {
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.article-global-banner {
    width: 100%;
    display: block;
}

.article-global-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 10px 12px 4px;
    line-height: 1.5;
}

.article-detail-content {
    padding: 8px 12px 14px;
    font-size: 14px;
    line-height: 1.7;
}

/* 资料流：往期 + 解锁无缝衔接 */
.article-flow-card {
    border-radius: 12px;
    overflow: visible;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .06);
}

.article-flow-public {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.article-flow-unlocked:last-child {
    border-radius: 0 0 12px 12px;
}

.article-flow-section {
    position: relative;
}

.article-flow-public {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}

.article-flow-card > .article-flow-public:only-child {
    border-radius: 12px;
}

.article-flow-unlocked {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 50%);
    padding: 14px 0 4px;
}

.article-flow-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
}

.article-flow-public .article-flow-head {
    gap: 10px;
    padding: 10px 14px 10px 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 65%);
    border-bottom: 1px solid #e8edf3;
    position: relative;
}

.article-flow-public .article-flow-head::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 14px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, .45) 0%, transparent 85%);
}

.article-flow-paid-box {
    position: relative;
    margin: 0 12px 14px;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(245, 158, 11, .12);
    overflow: visible;
}

.article-paid-seal {
    position: absolute;
    top: -12px;
    right: 10px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-15deg);
    border: 2px solid #dc2626;
    border-radius: 50%;
    color: #dc2626;
    background: rgba(255, 251, 235, .92);
    box-shadow:
        inset 0 0 0 1px rgba(220, 38, 38, .2),
        0 1px 4px rgba(220, 38, 38, .12);
    pointer-events: none;
    z-index: 2;
}

.article-paid-seal::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px dashed rgba(220, 38, 38, .4);
    border-radius: 50%;
}

.article-paid-seal-text {
    position: relative;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .06em;
    text-align: center;
}

.article-flow-badge {
    flex-shrink: 0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.4;
}

.article-flow-badge-public {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 20px;
    padding: 0 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    color: #fff;
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    box-shadow: 0 1px 3px rgba(71, 85, 105, .28);
}

.article-flow-badge-unlocked {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    box-shadow: 0 1px 3px rgba(245, 158, 11, .25);
}

.article-flow-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}

.article-flow-public .article-flow-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: .03em;
}

.article-flow-public .article-flow-title::before {
    content: '';
    width: 3px;
    height: 13px;
    border-radius: 2px;
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
    flex-shrink: 0;
}

.article-flow-bridge {
    height: 10px;
    background: linear-gradient(180deg, #f1f5f9 0%, #fef3c7 55%, #fffbeb 100%);
    border-top: 1px solid #e8edf3;
}

.article-flow-section:first-child .article-flow-bridge {
    display: none;
}

.article-flow-bridge-mosaic {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

.article-flow-public .article-flow-body {
    padding: 10px 10px 14px;
}

.article-flow-unlocked .article-flow-body {
    padding: 16px 12px 12px;
}

.article-content-blocks,
.article-unlocked-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-public-block {
    position: relative;
    padding: 9px 12px 9px 15px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    color: #334155;
    word-break: break-word;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e8edf3;
    border-radius: 10px;
    box-shadow:
        0 1px 3px rgba(15, 23, 42, .04),
        inset 0 1px 0 rgba(255, 255, 255, .85);
    overflow: hidden;
}

.article-public-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #64748b 0%, #94a3b8 100%);
    border-radius: 10px 0 0 10px;
}

.article-public-block:nth-child(even) {
    background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
}

.article-public-block:nth-child(even)::before {
    background: linear-gradient(180deg, #475569 0%, #64748b 100%);
}

.article-public-block + .article-public-block {
    margin-top: 0;
}

.article-public-block p {
    margin: 0;
}

.article-flow-public .article-content-blocks {
    gap: 8px;
}

.article-flow-public .article-public-block {
    transition: border-color .15s ease, box-shadow .15s ease;
}

.article-flow-public .article-public-block:active {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .06);
}

.article-unlocked-block {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.55;
    color: #78350f;
    word-break: break-word;
    background: #fff;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(245, 158, 11, .08);
}

.article-flow-paid-box .article-unlocked-block {
    padding: 4px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.article-flow-paid-box .article-unlocked-block + .article-unlocked-block {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #fde68a;
}

.article-unlocked-block p {
    margin: 0;
}

/* 内容马赛克 */
.content-mosaic {
    position: relative;
    overflow: hidden;
}

.content-mosaic-inflow {
    min-height: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px dashed #dbe3ec;
}

.content-mosaic-standalone {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 14px rgba(15, 23, 42, .06);
}

.content-mosaic-compact {
    min-height: 0;
    background: #f8fafc;
    border: none;
}

.content-mosaic-inner {
    padding: 10px 12px 28px;
    font-size: 13px;
    line-height: 1.55;
    color: #94a3b8;
    filter: blur(4px);
    user-select: none;
    pointer-events: none;
    opacity: .7;
    letter-spacing: .02em;
}

.content-mosaic-compact .content-mosaic-inner,
.content-mosaic-inflow .content-mosaic-inner {
    padding: 8px 14px 26px;
    font-size: 12px;
    line-height: 1.5;
}

.content-mosaic-inner p {
    margin: 0 0 4px;
}

.content-mosaic-inner p:last-child {
    margin-bottom: 0;
}

.content-mosaic-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(248,250,252,.2) 0%, rgba(255,255,255,.55) 55%, rgba(255,255,255,.92) 100%),
        repeating-linear-gradient(
            -45deg,
            transparent 0,
            transparent 3px,
            rgba(148,163,184,.06) 3px,
            rgba(148,163,184,.06) 4px
        );
    pointer-events: none;
}

.content-mosaic-inflow .content-mosaic-shade {
    background:
        linear-gradient(180deg, rgba(248,250,252,.3) 0%, rgba(255,255,255,.5) 45%, rgba(241,245,249,.85) 100%),
        repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(148,163,184,.05) 8px, rgba(148,163,184,.05) 9px);
}

.content-mosaic-lock {
    position: absolute;
    left: 50%;
    bottom: 8px;
    top: auto;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, .95);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}

.content-mosaic-lock svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

.article-flow-card + .article-pay-cta,
.content-mosaic-standalone + .article-pay-cta {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e7eb;
}

.article-pay-cta {
    text-align: center;
    padding: 4px 0 8px;
}

.article-pay-tip {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.article-pay-price {
    font-size: 24px;
    font-weight: 700;
    color: #ef4444;
    margin-bottom: 12px;
}

.article-pay-balance {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.article-pay-balance strong {
    color: var(--home-green, #22c55e);
    font-weight: 700;
}

.article-pay-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-pay-modal .modal-header {
    margin-bottom: 14px;
}

.article-pay-modal .modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1e293b;
}

.article-pay-modal-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid #fecaca;
}

.article-pay-modal-price-label {
    font-size: 12px;
    color: #9ca3af;
    letter-spacing: .04em;
}

.article-pay-modal-price-value {
    font-size: 26px;
    font-weight: 800;
    color: #ef4444;
    line-height: 1.1;
    letter-spacing: .02em;
}

.article-pay-channel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-pay-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
}

.article-pay-channel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 11px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}

.article-pay-channel-icon-alipay {
    background: linear-gradient(135deg, #3b9bff 0%, #1677ff 100%);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .02em;
}

.article-pay-channel-icon-wxpay {
    background: linear-gradient(135deg, #2dd36f 0%, #07c160 100%);
    color: #fff;
}

.article-pay-channel-icon-wxpay svg {
    display: block;
    width: 24px;
    height: 24px;
}

.article-pay-channel-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article-pay-channel-name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.article-pay-channel-desc {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.35;
}

.article-pay-channel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #cbd5e1;
}

.article-pay-channel-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.article-pay-channel-alipay:hover,
.article-pay-channel-alipay:active {
    border-color: rgba(22, 119, 255, .45);
    background: #f0f7ff;
    box-shadow: 0 2px 10px rgba(22, 119, 255, .12);
}

.article-pay-channel-alipay:hover .article-pay-channel-name,
.article-pay-channel-alipay:active .article-pay-channel-name {
    color: #1677ff;
}

.article-pay-channel-alipay:hover .article-pay-channel-arrow,
.article-pay-channel-alipay:active .article-pay-channel-arrow {
    color: #1677ff;
}

.article-pay-channel-wxpay:hover,
.article-pay-channel-wxpay:active {
    border-color: rgba(7, 193, 96, .45);
    background: #ecfdf3;
    box-shadow: 0 2px 10px rgba(7, 193, 96, .12);
}

.article-pay-channel-wxpay:hover .article-pay-channel-name,
.article-pay-channel-wxpay:active .article-pay-channel-name {
    color: #07c160;
}

.article-pay-channel-wxpay:hover .article-pay-channel-arrow,
.article-pay-channel-wxpay:active .article-pay-channel-arrow {
    color: #07c160;
}

.article-pay-channel:active {
    transform: scale(.99);
}

.article-disclaimer {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: 10px;
}

.article-disclaimer-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.article-disclaimer-body h4 {
    font-size: 14px;
    color: #dc2626;
    margin-bottom: 4px;
}

.article-disclaimer-body p {
    font-size: 12px;
    color: #b91c1c;
    line-height: 1.6;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s;
    text-align: center;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-block { display: block; width: 100%; }
.btn-success { background: var(--success); color: #fff; }

/* ===== 认证页面 ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: var(--card);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 400px;
}

.auth-card h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.auth-bonus-tip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 20px;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid rgba(34, 197, 94, .2);
    line-height: 1.45;
    text-align: center;
}

.auth-bonus-icon {
    display: block;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    color: #16a34a;
}

.auth-bonus-text {
    font-size: 13px;
    color: #166534;
    font-weight: 500;
}

.auth-bonus-amount {
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
    letter-spacing: .01em;
}

.auth-link {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== 表单 ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* ===== 我的页面 ===== */
.my-page {
    padding: 12px 12px 20px;
}

.my-hero {
    margin-bottom: 16px;
    padding: 18px 16px 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(22, 163, 74, .28);
}

.my-hero-profile {
    display: flex;
    align-items: center;
    gap: 14px;
}

.my-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .85);
    background: #f3f4f6;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.my-hero-info {
    flex: 1;
    min-width: 0;
}

.my-hero-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.my-nickname {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-user-id {
    font-size: 12px;
    color: rgba(255, 255, 255, .78);
    letter-spacing: .02em;
}

.my-edit-profile-btn {
    flex-shrink: 0;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #166534;
    background: rgba(255, 255, 255, .92);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}

.my-edit-profile-btn:active {
    transform: scale(.96);
}

.my-hero-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
}

.my-balance-label {
    display: block;
    font-size: 11px;
    opacity: .82;
    margin-bottom: 2px;
    letter-spacing: .04em;
}

.my-balance-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.my-recharge-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border: none;
    border-radius: 999px;
    background: #fff;
    color: #15803d;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    transition: transform .15s ease, box-shadow .15s ease;
}

.my-recharge-btn:active {
    transform: scale(.97);
}

.my-menu-group {
    margin-bottom: 14px;
}

.my-menu-group-title {
    margin: 0 0 8px 4px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .06em;
}

.my-menu {
    background: var(--card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .06);
    border: 1px solid rgba(229, 231, 235, .8);
}

.my-menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 13px 14px;
    border: none;
    border-bottom: 1px solid #f1f5f9;
    background: var(--card);
    color: var(--text);
    font-size: 15px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.my-menu-item:last-child {
    border-bottom: none;
}

.my-menu-item:active {
    background: #f8fafc;
}

.my-menu-text {
    flex: 1;
    font-weight: 500;
}

.my-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 12px;
    border-radius: 10px;
    flex-shrink: 0;
}

.my-menu-icon svg {
    width: 18px;
    height: 18px;
}

.my-menu-icon--green { background: #ecfdf5; color: #16a34a; }
.my-menu-icon--blue { background: #eff6ff; color: #2563eb; }
.my-menu-icon--purple { background: #f5f3ff; color: #7c3aed; }
.my-menu-icon--orange { background: #fff7ed; color: #ea580c; }
.my-menu-icon--indigo { background: #eef2ff; color: #4f46e5; }
.my-menu-icon--red { background: #fef2f2; color: #dc2626; }

.my-menu-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #cbd5e1;
    flex-shrink: 0;
}

.my-menu-arrow svg {
    width: 16px;
    height: 16px;
}

.my-menu-logout .my-menu-text {
    color: #dc2626;
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.modal-content-sm {
    max-width: 300px;
}

.recharge-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.recharge-option {
    padding: 10px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
}

.recharge-option:hover,
.recharge-option.active {
    border-color: var(--home-green, #22c55e);
    background: #ecfdf5;
    color: var(--home-green, #22c55e);
}

.pay-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.pay-method-option {
    padding: 10px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all .2s;
}

.pay-method-option:hover,
.pay-method-option.active {
    border-color: var(--home-green, #22c55e);
    background: #ecfdf5;
    color: var(--home-green, #22c55e);
}

.service-qrcode-wrap {
    text-align: center;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-qrcode-wrap img {
    max-width: 200px;
    border-radius: 8px;
    margin: 0 auto;
}

.empty-hint {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

.login-prompt {
    text-align: center;
    padding: 60px 20px;
}

.login-prompt-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--text-light);
}

.login-prompt-icon svg {
    width: 48px;
    height: 48px;
}
.login-prompt h2 { margin-bottom: 8px; }
.login-prompt p { color: var(--text-secondary); margin-bottom: 24px; }
.login-actions { display: flex; gap: 12px; justify-content: center; }

.page-header {
    padding: 12px 14px 8px;
}

.page-header h1 { font-size: 17px; }
.page-desc { font-size: 12px; color: var(--text-secondary); }

/* ===== 已购文章列表 ===== */
.purchased-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.purchased-card {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
    color: inherit;
    transition: box-shadow .2s, transform .2s;
}

.purchased-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
    transform: translateY(-1px);
}

.purchased-card-accent {
    width: 4px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #22c55e, #16a34a);
}

.purchased-card-body {
    flex: 1;
    min-width: 0;
    padding: 14px 12px 14px 14px;
}

.purchased-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.purchased-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #16a34a;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.purchased-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.purchased-card-summary {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.purchased-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    font-size: 11px;
    color: var(--text-light);
}

.purchased-card-date {
    color: var(--text-secondary);
}

.purchased-card-go {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
    border-left: 1px solid #f3f4f6;
    font-size: 11px;
    font-weight: 600;
    color: var(--home-green, #22c55e);
    flex-shrink: 0;
}

.purchased-card-go svg {
    width: 18px;
    height: 18px;
}

.record-page .purchased-list .empty-state {
    margin-top: 24px;
}

/* ===== 已购 / 充值记录 ===== */
.record-page {
    padding: 10px 10px 16px;
}

.record-tabs {
    display: flex;
    background: var(--card);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
}

.record-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-radius: 8px;
    transition: all .2s;
}

.record-tab.active {
    background: var(--home-green, #22c55e);
    color: #fff;
    font-weight: 600;
}

.record-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.record-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--card);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.record-item-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 4px;
}

.record-item-time {
    font-size: 12px;
    color: var(--text-light);
}

.record-item-amount {
    font-size: 16px;
    font-weight: 700;
    color: var(--home-green, #22c55e);
    white-space: nowrap;
}

/* ===== 弹窗 ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal.hidden { display: none; }

.modal-content {
    background: var(--card);
    border-radius: var(--radius);
    width: 100%;
    max-width: 420px;
    padding: 24px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 { font-size: 18px; }

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.admin-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #374151;
}

.image-upload-field {
    margin-bottom: 16px;
}

.image-upload-field--compact {
    margin-bottom: 12px;
}

.image-upload-field--compact .image-upload-label {
    margin-bottom: 6px;
    font-size: 12px;
}

.image-upload-compact-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.image-upload-compact-body {
    flex: 1;
    min-width: 0;
}

.image-upload-field--compact .image-upload-preview {
    width: 72px;
    height: 72px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.image-upload-field--compact.image-upload-field--poster .image-upload-preview {
    width: 140px;
    height: 78px;
}

.image-upload-field--compact.image-upload-field--poster .image-upload-preview img,
.image-upload-field--compact.image-upload-field--poster .image-upload-preview video {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.image-upload-field--compact .image-upload-actions {
    margin-bottom: 8px;
}

.image-upload-field--compact .image-upload-hint {
    margin: 6px 0 0;
    font-size: 11px;
}

.image-upload-field--compact .image-upload-warning {
    margin-top: 6px;
    padding: 6px 8px;
    font-size: 11px;
}

/* ===== 站点设置页 ===== */
.settings-notice {
    background: #d1fae5;
    color: #065f46;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}

.settings-card {
    padding: 0;
    overflow: hidden;
    margin-bottom: 16px;
}

.settings-section {
    padding: 18px 20px;
}

.settings-section-head {
    margin-bottom: 12px;
}

.settings-section-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 2px;
}

.settings-section-desc {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

.settings-divider {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.settings-profile-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.settings-profile-media {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-profile-fields .form-group {
    margin-bottom: 12px;
}

.settings-profile-fields .form-group input,
.settings-profile-fields .form-group textarea {
    padding: 8px 12px;
    font-size: 13px;
}

.settings-field-row {
    display: grid;
    gap: 12px;
}

.settings-field-row--2 {
    grid-template-columns: 1fr 1fr;
}

.form-group-tip {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--text-light);
    line-height: 1.3;
}

.settings-form-actions {
    padding: 14px 20px;
    background: #f9fafb;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .settings-profile-layout {
        grid-template-columns: 1fr;
    }

    .settings-field-row--2 {
        grid-template-columns: 1fr;
    }

    .image-upload-field--compact.image-upload-field--poster .image-upload-preview {
        width: 120px;
        height: 68px;
    }
}

.image-upload-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.image-upload-preview {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    margin-bottom: 10px;
}

.image-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.image-upload-preview--poster {
    width: 100%;
    max-width: 360px;
    height: auto;
    min-height: 0;
    background: transparent;
    border: none;
    padding: 0;
}

.image-upload-preview--poster:empty {
    display: none;
}

.image-upload-preview--poster img,
.image-upload-preview--poster video {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.image-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.image-upload-select {
    cursor: pointer;
    margin: 0;
}

.image-upload-url-wrap {
    margin-top: 10px;
}

.image-upload-url-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.image-upload-url {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-sizing: border-box;
}

.image-upload-url:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .15);
}

.image-upload-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0;
}

.image-upload-warning {
    font-size: 12px;
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 8px 10px;
    margin: 8px 0 0;
}

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
}

.profile-edit-avatar-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.profile-edit-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
    margin-bottom: 10px;
}

.profile-edit-avatar-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-edit-avatar-actions label {
    margin: 0;
    cursor: pointer;
}

.admin-report-images {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-report-images img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* ===== 通用 ===== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--text-light);
}

.empty-state-icon svg {
    width: 44px;
    height: 44px;
}

.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #1f2937;
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 300;
    transition: transform .3s;
    white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ===== 管理后台 ===== */
.admin-layout {
    display: flex;
    min-height: 100vh;
    padding-bottom: 0;
}

.admin-sidebar {
    width: 220px;
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 0 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.admin-sidebar h2,
.admin-brand {
    padding: 0 20px 20px;
    font-size: 16px;
    border-bottom: 1px solid #334155;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-brand-icon {
    display: inline-flex;
    align-items: center;
}

.admin-brand-icon svg {
    width: 18px;
    height: 18px;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 2px 10px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 14px;
    transition: background .2s, color .2s;
}

.admin-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: .85;
}

.admin-nav-icon svg {
    width: 18px;
    height: 18px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #334155;
    color: #fff;
}

.admin-nav a.active .admin-nav-icon {
    opacity: 1;
}

.admin-nav {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 8px;
}

.admin-sidebar-footer {
    flex-shrink: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid #334155;
}

.admin-logout-btn {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    background: var(--danger);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.admin-logout-btn:hover {
    background: #dc2626;
}

.admin-logout-btn:active {
    transform: scale(.98);
}

.admin-main {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

@media (min-width: 769px) {
    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 100;
    }

    .admin-main {
        margin-left: 220px;
        min-height: 100vh;
    }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.admin-header h1 { font-size: 22px; }

.admin-table {
    width: 100%;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.admin-table th {
    background: var(--bg);
    font-weight: 600;
    font-size: 13px;
    color: var(--text-secondary);
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-actions {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 4px 12px;
    font-size: 12px;
    border-radius: 4px;
}

.btn-danger { background: var(--danger); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }

.admin-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.pay-key-masked {
    color: var(--text-light);
    letter-spacing: .12em;
    font-size: 15px;
}

.admin-input-compact {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.admin-input-compact:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.admin-users-panels {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.admin-users-panel {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: var(--shadow);
}

.admin-users-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-users-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

.admin-users-panel-icon svg {
    width: 20px;
    height: 20px;
}

.admin-users-panel-icon--search {
    background: #eff6ff;
    color: #2563eb;
}

.admin-users-panel-icon--bonus {
    background: #ecfdf5;
    color: #16a34a;
}

.admin-users-panel-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.admin-users-panel-desc {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.45;
}

.admin-users-panel-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-users-panel-input {
    flex: 1;
    min-width: 160px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}

.admin-users-panel-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-users-bonus-input {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 140px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}

.admin-users-bonus-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.admin-users-bonus-prefix {
    padding: 0 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-users-bonus-input input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px 10px 6px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.admin-users-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex-shrink: 0;
}

.admin-users-panel-foot {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    font-size: 12px;
    color: var(--text-light);
}

.admin-users-panel-foot strong {
    color: var(--text-secondary);
    font-weight: 600;
}

@media (max-width: 900px) {
    .admin-users-panels {
        grid-template-columns: 1fr;
    }
}

.history-color-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.history-color-label {
    font-size: 12px;
    color: #6b7280;
    margin-right: 4px;
}

.history-color-btn {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: var(--c, #374151);
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.history-color-btn:hover {
    background: #f3f4f6;
    border-color: var(--c, #9ca3af);
}

.history-color-hint {
    font-size: 12px;
    color: #6b7280;
    margin-top: 6px;
}

.history-color-hint code {
    font-size: 11px;
    background: #f3f4f6;
    padding: 1px 4px;
    border-radius: 3px;
}

.history-editor-wrap {
    display: grid;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.history-editor-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group .history-editor-wrap .history-editor-input:focus {
    border-color: transparent;
    box-shadow: none;
}

.history-editor-mirror,
.history-editor-input {
    grid-area: 1 / 1;
    width: 100%;
    min-height: 120px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.6;
    font-family: inherit;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
    margin: 0;
    border: none;
}

.history-editor-mirror {
    pointer-events: none;
    overflow: hidden;
    color: #111827;
}

.history-editor-input {
    resize: vertical;
    overflow: auto;
    background: transparent;
    color: transparent;
    caret-color: #111827;
    outline: none;
}

.history-editor-input::placeholder {
    color: #9ca3af;
    -webkit-text-fill-color: #9ca3af;
}

.history-tag {
    color: #d1d5db;
    font-size: 12px;
}

.history-colored {
    font-weight: 500;
}

.admin-toggle-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.admin-toggle-card:hover {
    box-shadow: var(--shadow);
}

.admin-toggle-card.is-on {
    border-color: #22c55e;
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
}

.admin-toggle-card.is-off {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.admin-toggle-main {
    flex: 1;
    min-width: 0;
}

.admin-toggle-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

.admin-toggle-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-toggle-card.is-on .admin-toggle-badge {
    background: #22c55e;
    color: #fff;
}

.admin-toggle-card.is-off .admin-toggle-badge {
    background: #9ca3af;
    color: #fff;
}

.admin-toggle-desc {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.admin-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 32px;
    flex-shrink: 0;
}

.admin-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-switch-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background .2s;
}

.admin-switch-slider::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .2s;
}

.admin-switch input:checked + .admin-switch-slider {
    background: #22c55e;
}

.admin-switch input:checked + .admin-switch-slider::before {
    transform: translateX(24px);
}

.admin-switch input:focus-visible + .admin-switch-slider {
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .25);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ===== 仪表盘 ===== */
.admin-dashboard-hero {
    margin-bottom: 24px;
    padding: 22px 24px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #7c3aed 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(79, 70, 229, .22);
}

.admin-dashboard-hero h1 {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.admin-dashboard-hero p {
    margin: 0;
    font-size: 13px;
    opacity: .88;
}

.admin-stats--dashboard {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.admin-stats--dashboard .stat-card {
    position: relative;
    padding: 18px 18px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.admin-stats--dashboard .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.admin-stats--dashboard .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat-card--indigo::before { background: linear-gradient(90deg, #6366f1, #818cf8); }
.stat-card--blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card--amber::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card--green::before { background: linear-gradient(90deg, #22c55e, #4ade80); }

.stat-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.stat-card-icon svg {
    width: 20px;
    height: 20px;
}

.stat-card--indigo .stat-card-icon { background: #eef2ff; color: #4f46e5; }
.stat-card--blue .stat-card-icon { background: #eff6ff; color: #2563eb; }
.stat-card--amber .stat-card-icon { background: #fffbeb; color: #d97706; }
.stat-card--green .stat-card-icon { background: #ecfdf5; color: #16a34a; }

.stat-card--indigo .stat-value { color: #4f46e5; }
.stat-card--blue .stat-value { color: #2563eb; }
.stat-card--amber .stat-value { color: #d97706; }
.stat-card--green .stat-value { color: #16a34a; }

.admin-stats--dashboard .stat-value {
    font-size: 30px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.admin-stats--dashboard .stat-label {
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
}

.admin-dashboard-recent {
    padding: 0;
    overflow: hidden;
}

.admin-dashboard-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.admin-dashboard-section-head h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}

.admin-dashboard-section-head p {
    margin: 0;
    font-size: 12px;
    color: var(--text-light);
}

.admin-dashboard-link {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding-top: 2px;
}

.admin-dashboard-link:hover {
    color: var(--primary-dark);
}

.admin-dashboard-table-wrap {
    overflow-x: auto;
}

.admin-table--dashboard {
    box-shadow: none;
    border-radius: 0;
}

.admin-table--dashboard th {
    background: #fafbfc;
    font-size: 12px;
    padding: 10px 22px;
}

.admin-table--dashboard td {
    padding: 13px 22px;
    font-size: 13px;
}

.admin-dashboard-article-title {
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}

.admin-dashboard-article-title:hover {
    color: var(--primary);
}

.admin-tag {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
}

.admin-tag--public { background: #ecfdf5; color: #15803d; }
.admin-tag--paid { background: #fef2f2; color: #dc2626; }
.admin-tag--partial { background: #fffbeb; color: #b45309; }
.admin-tag--order-paid { background: #ecfdf5; color: #15803d; }
.admin-tag--order-pending { background: #fffbeb; color: #b45309; }
.admin-tag--order-failed { background: #fef2f2; color: #dc2626; }

.admin-dashboard-order-no {
    font-size: 12px;
    max-width: 110px;
    word-break: break-all;
    color: var(--text-secondary);
}

.admin-dashboard-item {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-dashboard-views {
    display: inline-block;
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.admin-dashboard-time {
    color: var(--text-light);
    font-size: 12px;
    white-space: nowrap;
}

.admin-dashboard-empty {
    padding: 40px 22px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-dashboard-empty a {
    font-weight: 600;
}

@media (max-width: 1100px) {
    .admin-stats--dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .admin-stats--dashboard {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-hero {
        padding: 18px 16px;
    }
}

@media (max-width: 768px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; height: auto; }
    .admin-nav {
        display: flex;
        flex: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 8px;
        gap: 4px;
    }
    .admin-nav a { white-space: nowrap; margin: 0; padding: 8px 12px; }
    .admin-sidebar-footer {
        padding: 10px 12px 12px;
    }
    .admin-logout-btn {
        max-width: 200px;
    }
}

@media (min-width: 768px) {
    .article-grid {
        display: flex;
        flex-direction: column;
    }
}

/* 防止 iOS / 微信内置浏览器聚焦输入框时自动放大页面（字号须 >= 16px） */
input:not([type='checkbox']):not([type='radio']):not([type='hidden']):not([type='file']):not([type='button']):not([type='submit']):not([type='reset']):not([type='image']):not([type='range']):not([type='color']),
textarea,
select {
    font-size: 16px !important;
}
