:root {
    --primary: #FF7A1A;
    --primary-hover: #E85F00;
    --primary-light: #FFF1E6;
    --accent: #FFB020;
    --coral: #FF5A3D;
    --bg: #FFFDF9;
    --card: #FFFFFF;
    --border: #F0E6DD;
    --text: #2B2118;
    --text-secondary: #7A6A5C;
    --text-light: #A89B90;
    --success: #2FBF71;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow: 0 2px 12px rgba(255, 122, 26, 0.08);
    --shadow-hover: 0 4px 20px rgba(255, 122, 26, 0.15);
    --header-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.logo { font-size: 20px; font-weight: bold; color: var(--primary); display: flex; align-items: center; gap: 6px; }
.logo-img { height: 32px; width: auto; display: block; }
.logo-icon { font-size: 24px; line-height: 1; }
.logo-text { line-height: 1; }
.nav { display: flex; gap: 24px; flex: 1; justify-content: center; }
.nav a { color: var(--text-secondary); font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--primary); border-bottom-color: var(--primary); }

.header-right { display: flex; align-items: center; gap: 12px; }

.search-box input {
    width: 180px;
    padding: 6px 12px 6px 32px;
    border: 1px solid var(--border);
    border-radius: 20px;
    outline: none;
    font-size: 13px;
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A89B90' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cpath d='m21 21-4.35-4.35'%3E%3C/path%3E%3C/svg%3E") no-repeat 10px center;
    transition: all 0.2s;
}
.search-box input:focus { border-color: var(--primary); width: 240px; background-color: var(--card); }

.score-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-hover); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,122,26,0.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-block { width: 100%; }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-error { background: #EF4444; color: white; border: 1px solid #EF4444; }
.btn-error:hover { background: #DC2626; border-color: #DC2626; color: white; }
.btn-sm { padding: 4px 12px; font-size: 12px; }

.user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: var(--primary);
    overflow: hidden;
    cursor: pointer;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-width: 160px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1001;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: var(--card);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
    overflow-y: auto;
}

.mobile-menu.open .mobile-menu-inner {
    transform: translateX(0);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav a {
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 15px;
}

.mobile-nav a.active,
.mobile-nav a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-user {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
    color: var(--text);
}

.mobile-user-info .user-avatar {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.mobile-user-info .username {
    font-weight: 600;
    font-size: 15px;
}

.mobile-user-info .user-score {
    font-size: 13px;
    color: var(--primary);
    margin-top: 2px;
}

.mobile-post-btn {
    margin-top: 8px;
}

.mobile-logout {
    color: var(--error);
    text-align: center;
    padding: 10px;
    font-size: 14px;
}

.mobile-auth {
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Main */
.main { padding: 24px 0; min-height: calc(100vh - var(--header-height) - 80px); }
.content-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 24px; }

/* Card */
.card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow 0.2s; }
.card:hover { box-shadow: var(--shadow-hover); }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 16px; font-weight: 600; }
.card-body { padding: 20px; }

/* Post List */
.post-item { padding: 20px; border-bottom: 1px solid var(--border); transition: background 0.2s; cursor: pointer; }
.post-item:last-child { border-bottom: none; }
.post-item:hover { background: var(--bg); }
.post-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.post-title:hover { color: var(--primary); }
.post-meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: var(--text-light); margin-bottom: 10px; flex-wrap: wrap; }
.post-meta .category { color: var(--primary); background: var(--primary-light); padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.post-excerpt { color: var(--text-secondary); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-stats { display: flex; gap: 20px; margin-top: 12px; font-size: 13px; color: var(--text-light); }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.widget { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.widget-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.widget-body { padding: 16px 20px; }

.category-list { display: flex; flex-direction: column; gap: 4px; }
.category-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--text-secondary); transition: all 0.2s; }
.category-item:hover, .category-item.active { background: var(--primary-light); color: var(--primary); }
.category-item .count { background: var(--border); padding: 2px 8px; border-radius: 10px; font-size: 12px; }

.hot-post-list { display: flex; flex-direction: column; gap: 12px; }
.hot-post-item { display: flex; gap: 12px; align-items: flex-start; }
.hot-post-item .rank { flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-light); }
.hot-post-item:nth-child(1) .rank { background: var(--error); color: white; }
.hot-post-item:nth-child(2) .rank { background: var(--warning); color: white; }
.hot-post-item:nth-child(3) .rank { background: var(--accent); color: white; }
.hot-post-item .title { font-size: 14px; color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-post-item .title:hover { color: var(--primary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; padding: 20px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--text-secondary); transition: all 0.2s; }
.pagination a:hover { background: var(--primary-light); color: var(--primary); }
.pagination .current { background: var(--primary); color: white; }
.pagination .disabled { opacity: 0.3; cursor: not-allowed; }

/* Post Detail */
.post-detail { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 30px; }
.post-detail .post-title { font-size: 26px; margin-bottom: 12px; line-height: 1.3; }
.post-detail .post-meta { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.post-content { font-size: 15px; line-height: 1.8; color: var(--text); }
.post-content p { margin-bottom: 16px; }

.post-media { margin: 20px 0; text-align: center; }
.post-media img { max-width: 100%; border-radius: 8px; }
.post-media video { max-width: 100%; border-radius: 8px; }

.post-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--card);
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.action-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.liked {
    background: #ffe4e6;
    border-color: #ff6b6b;
    color: #e74c3c;
}

.action-btn .icon { font-size: 16px; }

/* Comments */
.comment-section { margin-top: 24px; background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; }
.comment-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.comment-form textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; resize: vertical; font-size: 14px; font-family: inherit; outline: none; transition: border-color 0.2s; }
.comment-form textarea:focus { border-color: var(--primary); }
.comment-form .submit-btn { margin-top: 10px; text-align: right; }
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-item { display: flex; gap: 12px; }
.comment-item .avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-weight: bold; color: var(--primary); overflow: hidden; }
.comment-item .avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-header .username { font-weight: 500; color: var(--text); font-size: 14px; }
.comment-header .time { font-size: 12px; color: var(--text-light); }
.comment-content { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

.comment-actions { margin-top: 8px; }
.comment-like-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}
.comment-like-btn:hover { background: var(--bg); color: var(--primary); }
.comment-like-btn.liked { color: var(--primary); }

/* Forms */
.form-group { margin-bottom: 20px; }
.form-label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text); }
.form-control { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; transition: all 0.2s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,122,26,0.1); }
.form-text { font-size: 12px; color: var(--text-light); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--error); margin-top: 4px; }

/* Auth */
.auth-container { min-height: calc(100vh - 64px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 40px; }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header h1 { font-size: 24px; color: var(--text); margin-bottom: 8px; }
.auth-header p { color: var(--text-secondary); }
.auth-footer { text-align: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 14px; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* User Profile */
.user-profile { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 30px; text-align: center; }
.user-profile .avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--primary-light); margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: bold; color: var(--primary); overflow: hidden; }
.user-profile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-profile .username { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.user-profile .meta { color: var(--text-secondary); font-size: 13px; }

/* Admin */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 220px; background: #1f1f1f; color: #fff; flex-shrink: 0; }
.admin-sidebar-header { padding: 20px; border-bottom: 1px solid #333; font-size: 18px; font-weight: 600; color: var(--primary); }
.admin-nav { padding: 16px 0; }
.admin-nav a { display: block; padding: 12px 24px; color: #999; transition: all 0.2s; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,122,26,0.1); color: var(--primary); }
.admin-main { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.admin-header { height: 60px; background: var(--card); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; }
.admin-header h1 { font-size: 20px; font-weight: 600; }
.admin-content { flex: 1; padding: 24px; }

.admin-card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.admin-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--bg); font-weight: 600; font-size: 13px; color: var(--text-secondary); }
.table tr:hover { background: var(--bg); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-primary { background: var(--primary-light); color: var(--primary); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); padding: 24px; }
.stat-card .label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--primary); }

/* Footer */
.footer { background: var(--card); border-top: 1px solid var(--border); padding: 24px 0; text-align: center; color: var(--text-light); font-size: 13px; margin-top: 40px; }

/* Error Page */
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code { font-size: 120px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.error-page .message { font-size: 24px; color: var(--text-secondary); margin-bottom: 30px; }

/* Paywall */
.paywall-content { color: #666; line-height: 1.8; }
.paywall-box {
    text-align: center;
    padding: 40px 20px;
    margin: 30px 0;
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8d9 100%);
    border-radius: 12px;
    border: 2px dashed #ffb088;
}
.paywall-icon { font-size: 48px; margin-bottom: 10px; }
.paywall-box h3 { margin: 0 0 10px 0; color: #333; }
.paywall-box p { margin: 8px 0; color: #666; }

/* 高斯模糊 */
.blur-content {
    filter: blur(3px);
    user-select: none;
    pointer-events: none;
}
.blur-text {
    filter: blur(3px);
    user-select: none;
}

/* 用户中心 */
.user-center {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.user-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.user-info-card {
    background: var(--card);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.user-info-card .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    overflow: hidden;
}

.user-info-card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-card .username {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.user-info-card .user-score {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.user-info-card .user-score strong {
    color: var(--primary);
    font-size: 15px;
}

.badge-vip {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.user-menu {
    background: var(--card);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.menu-item:hover {
    background: var(--bg);
    color: var(--primary);
}

.menu-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 500;
}

.menu-item .icon {
    font-size: 18px;
}

.menu-recharge {
    color: var(--primary);
    font-weight: 500;
}

.menu-vip {
    background: linear-gradient(135deg, #fff5e6, #ffe4c4);
    color: #ff8c00;
    font-weight: 500;
    margin-top: 8px;
}

.user-content {
    flex: 1;
    min-width: 0;
}

/* 积分记录 */
.score-list {
    display: flex;
    flex-direction: column;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.score-info {
    flex: 1;
}

.score-remark {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

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

.score-change {
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

.score-change.positive {
    color: #2ecc71;
}

.score-change.negative {
    color: #e74c3c;
}

/* 充值页面 */
.recharge-page {
    max-width: 600px;
    margin: 0 auto;
}

.recharge-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, var(--primary-light), #ffe4c4);
    border-radius: 12px;
    margin-bottom: 24px;
}

.current-score .label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.current-score .value {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
}

.package-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.package-item {
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card);
}

.package-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.package-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    position: relative;
}

.package-item.selected::after {
    content: '✓';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.package-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.package-score {
    font-size: 13px;
    color: var(--text-secondary);
}

.package-score strong {
    color: var(--text);
    font-size: 14px;
}

.custom-amount {
    margin-top: 16px;
}

.custom-amount label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.custom-amount input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
}

.custom-amount input:focus {
    border-color: var(--primary);
}

/* 订单列表 */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.order-item:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(255,122,26,0.1);
}

.order-info {
    flex: 1;
}

.order-no {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4px;
}

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

.order-amount {
    text-align: right;
    flex-shrink: 0;
}

.order-amount .amount {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
}

.order-amount .score {
    font-size: 12px;
    color: #2ecc71;
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    flex-shrink: 0;
}

.status.pending {
    background: #fff3e0;
    color: #f57c00;
}

.status.paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status.cancelled {
    background: #f5f5f5;
    color: #9e9e9e;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-left: 4px;
}

.tag-register {
    background: #e8f5e9;
    color: #2e7d32;
}

.tag-post {
    background: #e3f2fd;
    color: #1565c0;
}

.tag-pay {
    background: #fce4ec;
    color: #c2185b;
}

.tag-other {
    background: #f5f5f5;
    color: #757575;
}

/* 移动端分类导航 - 默认隐藏 */
.mobile-cats-bar {
    display: none;
}

/* 响应式 */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .nav, .search-box, .score-badge, .user-dropdown .dropdown-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-cats-bar {
        display: block;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        position: sticky;
        top: var(--header-height);
        z-index: 99;
    }
    
    .mobile-cats {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 10px 16px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
    }
    
    .mobile-cats::-webkit-scrollbar {
        display: none;
    }
    
    .mobile-cat-item {
        flex-shrink: 0;
        padding: 6px 14px;
        background: var(--bg);
        border-radius: 16px;
        font-size: 13px;
        color: var(--text-secondary);
        text-decoration: none;
        white-space: nowrap;
        transition: all 0.2s;
    }
    
    .mobile-cat-item.active {
        background: var(--primary);
        color: white;
        font-weight: 500;
    }
    
    .header-right {
        gap: 8px;
    }
    
    .header-right .btn {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .content-wrap {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: -1;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card .value {
        font-size: 24px;
    }
    
    .post-detail {
        padding: 20px;
    }
    
    .post-detail .post-title {
        font-size: 20px;
    }
    
    .comment-section {
        padding: 16px;
    }
    
    .post-actions {
        gap: 8px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    /* 用户中心移动端 */
    .user-center {
        flex-direction: column;
    }
    
    .user-sidebar {
        width: 100%;
    }
    
    .user-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .menu-item {
        flex: 1 1 calc(50% - 4px);
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .menu-vip {
        margin-top: 0;
    }
    
    /* 充值页面移动端 */
    .package-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .current-score .value {
        font-size: 36px;
    }
    
    /* 订单页面移动端 */
    .order-item {
        flex-wrap: wrap;
    }
    
    .order-info {
        width: 100%;
        order: 1;
    }
    
    .order-amount {
        order: 2;
    }
    
    .order-status {
        order: 3;
    }
    
    /* 后台移动端 */
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
    
    .admin-nav {
        display: flex;
        overflow-x: auto;
        padding: 8px 0;
    }
    
    .admin-nav a {
        white-space: nowrap;
        padding: 8px 16px;
    }
    
    .admin-content {
        padding: 16px;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th, .table td {
        padding: 10px 12px;
    }
    
    /* 认证页面移动端 */
    .auth-card {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .post-item {
        padding: 16px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-meta {
        font-size: 12px;
        gap: 12px;
    }
}

/* RTA 模态框 */
.rta-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.rta-modal {
    background: var(--card);
    border-radius: 16px;
    padding: 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: rtaFadeIn 0.3s ease;
}

@keyframes rtaFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(-20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.rta-modal-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.rta-modal-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 12px;
}

.rta-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.rta-modal-links {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 24px;
}

.rta-modal-links a {
    color: var(--primary);
    text-decoration: none;
}

.rta-modal-links span {
    margin: 0 8px;
    color: var(--border);
}

.rta-checkbox-group {
    text-align: left;
    margin-bottom: 24px;
}

.rta-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.rta-checkbox:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.rta-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.rta-checkbox span {
    font-size: 14px;
    color: var(--text);
    flex: 1;
}

.rta-confirm-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.rta-confirm-btn:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.rta-confirm-btn:disabled {
    background: var(--border);
    color: var(--text-light);
    cursor: not-allowed;
}

.rta-leave-tip {
    margin-top: 16px;
    font-size: 12px;
    color: var(--error);
}

.rta-footer {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.rta-footer a {
    color: var(--text-secondary);
    text-decoration: none;
}

/* 语言切换 */
.lang-switcher {
    margin-right: 12px;
}

.lang-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--card);
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
}

.lang-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* 移动端语言切换 */
.mobile-lang {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.mobile-lang a {
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
}

.mobile-lang a.active {
    background: var(--primary);
    color: white;
}

/* 付费分类标识 */
.paid-cat .paid-badge {
    font-size: 11px;
    margin-left: 2px;
}

.paid-category-lock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* 付费内容遮罩 */
.paid-content-blur {
    position: relative;
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.paid-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(2px);
    z-index: 10;
}

.paid-content-overlay .lock-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.paid-content-overlay .lock-text {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card);
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    padding: 8px;
    display: none;
    z-index: 100;
}

.user-dropdown .dropdown-menu.show {
    display: block;
}

.user-dropdown .dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: background 0.2s;
}

.user-dropdown .dropdown-menu a:hover {
    background: var(--bg);
    color: var(--primary);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .lang-switcher {
        display: none;
    }
    
    .rta-content {
        padding: 0 16px;
        font-size: 13px;
    }
}

/* 登录引导模态框 */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.login-modal {
    background: var(--card);
    border-radius: 16px;
    padding: 40px 32px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.login-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.login-modal-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.login-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-light);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.login-modal-close:hover {
    background: var(--bg);
    color: var(--text);
}

@media (max-width: 768px) {
    .login-modal {
        padding: 32px 24px;
        margin: 20px;
    }
}

/* ========== 移动端文字显示优化 ========== */
@media (max-width: 768px) {
    /* 确保基础行高足够 */
    body {
        line-height: 1.7;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* 帖子标题优化 */
    .post-title {
        font-size: 17px !important;
        line-height: 1.5 !important;
        margin-bottom: 10px !important;
    }
    
    /* 帖子摘要优化 - 增加行高，3行截断 */
    .post-excerpt {
        font-size: 14px !important;
        line-height: 1.7 !important;
        -webkit-line-clamp: 3;
        margin-bottom: 10px;
    }
    
    /* 帖子元信息 */
    .post-meta {
        font-size: 12px !important;
        line-height: 1.5;
        flex-wrap: wrap;
        gap: 8px 12px !important;
    }
    
    /* 移动端分类标签高度自适应 */
    .mobile-cat-item {
        height: auto;
        min-height: 32px;
        line-height: 20px;
        padding: 6px 14px !important;
        display: flex;
        align-items: center;
    }
    
    /* 导航栏文字 */
    .nav a {
        font-size: 14px;
    }
    
    /* 卡片内边距调整 */
    .post-item {
        padding: 14px 16px !important;
    }
    
    /* 帖子详情页标题 */
    .post-detail .post-title {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    
    /* 帖子正文字体 */
    .post-content {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    
    .post-content p {
        margin-bottom: 14px !important;
    }
    
    /* 评论区文字 */
    .comment-content {
        font-size: 14px !important;
        line-height: 1.7 !important;
    }
    
    /* 按钮文字大小 */
    .btn {
        font-size: 14px !important;
        padding: 8px 16px !important;
    }
    
    .btn-lg {
        font-size: 15px !important;
        padding: 12px 24px !important;
    }
    
    /* 输入框文字 */
    input, textarea, select {
        font-size: 16px !important; /* 防止iOS缩放 */
    }
    
    /* 卡片标题 */
    .card-header h2, .card-header h3 {
        font-size: 16px !important;
    }
    
    /* 热门帖子标题 */
    .hot-post-item .title {
        font-size: 14px !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 2;
    }
    
    /* 防止文字过小 */
    small, .text-sm {
        font-size: 12px !important;
    }
}

/* 小屏手机额外优化 */
@media (max-width: 375px) {
    .post-title {
        font-size: 16px !important;
    }
    
    .post-excerpt {
        font-size: 13px !important;
    }
    
    .mobile-cat-item {
        font-size: 12px !important;
        padding: 5px 12px !important;
    }
}

/* ===== VIP 会员引导条 ===== */
.vip-guide-banner {
    background: linear-gradient(135deg, #ff8a00, #ff5e3a);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.vip-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.vip-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    flex-wrap: wrap;
}

.vip-banner-text .vip-icon {
    font-size: 24px;
}

.vip-banner-text .vip-title {
    font-size: 16px;
    font-weight: 600;
}

.vip-banner-text .vip-desc {
    font-size: 13px;
    opacity: 0.9;
}

.vip-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-vip-gradient {
    background: white;
    color: #ff5e3a;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-vip-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #ff5e3a;
}

.vip-banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.vip-banner-close:hover {
    background: rgba(255,255,255,0.3);
}

/* 调整 sticky header 位置，避免与引导条重叠 */
.vip-guide-banner + .main .header {
    top: 44px;
}

/* ===== alert-info ===== */
.alert-info {
    background: #E3F2FD;
    color: #1565C0;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2196F3;
}

/* ===== 移动端适配 ===== */
@media (max-width: 768px) {
    .vip-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .vip-banner-text {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .vip-banner-text .vip-icon {
        display: none;
    }
    
    .vip-banner-text .vip-title {
        font-size: 14px;
    }
    
    .vip-banner-text .vip-desc {
        font-size: 12px;
    }
    
    .vip-banner-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-vip-gradient {
        flex: 1;
        text-align: center;
    }
}

/* 面包屑导航 */
.breadcrumbs {
    padding: 12px 0;
    font-size: 14px;
    color: #999;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: var(--primary, #ff6b35);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ddd;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}
