: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); }
.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-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-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;
}

/* 响应式 */
@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;
    }
    
    .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;
    }
}
