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

.pay-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

.pay-notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.pay-notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.pay-notification-icon {
    font-size: 28px;
    margin-right: 12px;
}

.pay-notification-content {
    flex: 1;
}

.pay-notification-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.pay-notification-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.pay-notification-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.pay-notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 主题颜色变量 */
:root {
    /* 默认深紫主题 */
    --primary-bg: #1a1a2e;
    --secondary-bg: #2a2a4a;
    --accent-color: #667eea;
    --accent-secondary: #764ba2;
    --text-color: #fff;
    --text-secondary: #ccc;
    --text-muted: #888;
    --border-color: #333;
    --card-bg: #2a2a4a;
    --success-color: #10b981;
    --warning-color: #f5a623;
    --danger-color: #f5576c;
}

/* 极光紫主题 */
[data-theme="aurora"] {
    --primary-bg: #0f0f23;
    --secondary-bg: #1a1a3e;
    --accent-color: #a855f7;
    --accent-secondary: #ec4899;
    --text-color: #fff;
    --text-secondary: #e5e5e5;
    --text-muted: #a3a3a3;
    --border-color: #2d2d5a;
    --card-bg: #1a1a3e;
}

/* 海洋蓝主题 */
[data-theme="ocean"] {
    --primary-bg: #0c1929;
    --secondary-bg: #1e3a5f;
    --accent-color: #0ea5e9;
    --accent-secondary: #06b6d4;
    --text-color: #fff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --card-bg: #1e3a5f;
}

/* 日出橙主题 */
[data-theme="sunrise"] {
    --primary-bg: #1a1a1a;
    --secondary-bg: #2d2d2d;
    --accent-color: #f97316;
    --accent-secondary: #f59e0b;
    --text-color: #fff;
    --text-secondary: #d4d4d4;
    --text-muted: #a3a3a3;
    --border-color: #404040;
    --card-bg: #2d2d2d;
}

/* 森林绿主题 */
[data-theme="forest"] {
    --primary-bg: #142210;
    --secondary-bg: #1e3a1e;
    --accent-color: #22c55e;
    --accent-secondary: #10b981;
    --text-color: #fff;
    --text-secondary: #e2e8f0;
    --text-muted: #86efac;
    --border-color: #365314;
    --card-bg: #1e3a1e;
}

/* 玫瑰红主题 */
[data-theme="rose"] {
    --primary-bg: #1a1016;
    --secondary-bg: #2d1f2a;
    --accent-color: #f43f5e;
    --accent-secondary: #ec4899;
    --text-color: #fff;
    --text-secondary: #fce7f3;
    --text-muted: #f9a8d4;
    --border-color: #4a1942;
    --card-bg: #2d1f2a;
}

/* 午夜蓝主题 */
[data-theme="midnight"] {
    --primary-bg: #030712;
    --secondary-bg: #0f172a;
    --accent-color: #3b82f6;
    --accent-secondary: #8b5cf6;
    --text-color: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --card-bg: #0f172a;
}

/* 经典蓝主题 */
[data-theme="classic"] {
    --primary-bg: #1e3a8a;
    --secondary-bg: #1e40af;
    --accent-color: #3b82f6;
    --accent-secondary: #60a5fa;
    --text-color: #fff;
    --text-secondary: #dbeafe;
    --text-muted: #93c5fd;
    --border-color: #1d4ed8;
    --card-bg: #1e40af;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
}

.header {
    background: var(--primary-bg);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

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

.menu-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.header h1 {
    font-size: 18px;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 8px;
}

.icon-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--primary-bg);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 16px;
    text-align: right;
}

.close-sidebar {
    font-size: 28px;
    cursor: pointer;
    color: #888;
}

.sidebar-nav {
    padding: 0 16px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 12px;
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px;
    transition: background 0.3s;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 150;
    display: none;
}

.overlay.active {
    display: block;
}

.main {
    flex: 1;
    padding: 0;
}

.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

.page-panel {
    display: none;
}

.page-panel.active {
    display: block;
}

.banner {
    position: relative;
    padding: 16px;
    background: #1a1a2e;
}

.banner-img {
    width: 100%;
    display: block;
    border-radius: 8px;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
}

.banner-title {
    font-size: 48px;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-text {
    color: #ff6b9d;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}

.banner-text .highlight {
    background: #000;
    color: #ffeb3b;
    padding: 8px 16px;
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    margin: 12px 0;
    border-radius: 8px;
}

.banner-contact {
    background: linear-gradient(90deg, #ff6b9d, #ff8a5c);
    color: #fff;
    padding: 12px 16px;
    font-weight: bold;
    display: inline-block;
    border-radius: 8px;
}

.notice {
    background: #2a2a4a;
    color: #ffb74d;
    padding: 12px 16px;
    margin: 16px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.8;
    overflow: hidden;
    position: relative;
    height: 42px;
}

.notice-scroll {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.notice-item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notice-item.active {
    opacity: 1;
    transform: translateY(0);
}

.lottery-section {
    background: #2a2a4a;
    margin: 0 16px 16px;
    padding: 16px;
    border-radius: 12px;
}

.lottery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}

.lottery-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.lottery-ball {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #fff;
    box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}

.lottery-ball.red {
    background: linear-gradient(135deg, #ff6b6b, #d32f2f);
    border: 2px solid #fff;
}

.lottery-ball.blue {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    border: 2px solid #fff;
}

.lottery-ball.green {
    background: linear-gradient(135deg, #81c784, #388e3c);
    border: 2px solid #fff;
}

.plus {
    font-size: 24px;
    color: #888;
    margin: 0 4px;
}

.lottery-animals {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    text-align: center;
    font-size: 12px;
}

.lottery-animals span {
    padding: 6px 4px;
    background: #3a3a5a;
    border-radius: 4px;
}

.lottery-animals span.empty {
    background: transparent;
}

.search-section {
    padding: 0 16px 16px;
}

.search-input {
    width: 100%;
    padding: 14px 20px;
    background: #2a2a4a;
    border: 2px solid transparent;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s;
    outline: none;
}

.search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-input::placeholder {
    color: #888;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px 16px;
}

.article-card {
    position: relative;
    background: var(--secondary-bg);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    height: 180px;
}

.article-card:hover {
    transform: scale(1.02);
}

.article-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 8px;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-bg);
    display: flex;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    z-index: 100;
}

.bottom-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s;
}

.bottom-item.active {
    color: #667eea;
}

.bottom-item span:first-child {
    font-size: 20px;
}

.bottom-item span:last-child {
    font-size: 12px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 300;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--secondary-bg);
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 16px;
    flex: 1;
}

.close {
    font-size: 28px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.login-tabs {
    display: flex;
    margin-bottom: 20px;
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

.login-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

.modal-body input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: var(--primary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 14px;
}

.modal-body input::placeholder {
    color: var(--text-muted);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-full {
    width: 100%;
}

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

.publish-header {
    text-align: center;
    margin-bottom: 24px;
}

.publish-header h2 {
    font-size: 22px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.publish-form {
    background: #2a2a4a;
    border-radius: 12px;
    padding: 24px;
}

.cover-upload-area {
    position: relative;
    width: 100%;
    height: 180px;
    border: 2px dashed #3a3a5a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    overflow: hidden;
    margin-bottom: 12px;
}

.cover-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.upload-placeholder {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 8px;
}

.upload-text {
    color: #888;
    font-size: 14px;
}

.upload-hint {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.cover-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.cover-url-input {
    width: 100%;
    padding: 12px;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.cover-url-input:focus {
    border-color: #667eea;
}

/* 付费阅读选项样式 */
.price-setting {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-options {
    display: flex;
    gap: 12px;
}

.price-option {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #222244;
    border: 2px solid #3a3a5a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.price-option:hover {
    border-color: #667eea;
}

.price-option input[type="radio"] {
    display: none;
}

.price-option input[type="radio"]:checked + .option-label {
    color: #667eea;
}

.price-option input[type="radio"]:checked ~ .option-desc {
    color: #667eea;
}

.price-option:has(input[type="radio"]:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.option-label {
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.option-desc {
    font-size: 12px;
    color: #888;
    margin-left: 8px;
}

.price-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    flex: 1;
    padding: 12px 16px;
    background: #222244;
    border: 2px solid #3a3a5a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.price-input:focus {
    border-color: #667eea;
}

.price-unit {
    color: #888;
    font-size: 14px;
}

.publish-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.publish-actions .btn {
    flex: 1;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3a3a5a;
    color: #888;
}

.btn-outline:hover {
    border-color: #667eea;
    color: #fff;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.publish-success {
    text-align: center;
    padding: 60px 20px;
}

.publish-success .success-icon {
    font-size: 80px;
    margin-bottom: 24px;
}

.publish-success h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.publish-success p {
    color: #888;
    margin-bottom: 24px;
}

.package-list {
    padding: 16px;
}

.package-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.package-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.package-card .price {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.package-card .days {
    opacity: 0.8;
    margin-bottom: 16px;
}

.member-center {
    padding: 16px;
}

.member-info {
    background: #2a2a4a;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.member-info .username {
    font-size: 18px;
    margin-bottom: 8px;
}

.member-info .vip-status {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    color: #333;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 12px;
}

.member-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-item {
    background: #2a2a4a;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

.stat-item .value {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.stat-item .label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.recharge-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recharge-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* 充值弹窗 */
.recharge-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

.recharge-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.recharge-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.recharge-modal-body {
    padding: 20px;
    text-align: center;
}

.recharge-modal-footer {
    padding: 12px 20px 20px;
    text-align: center;
}

.promo-code {
    background: #2a2a4a;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.promo-code .code {
    background: #1a1a2e;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: 8px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

.pagination button {
    padding: 8px 16px;
    background: #2a2a4a;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:hover {
    background: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vip-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(90deg, #ffd700, #ffb347);
    color: #333;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 4px;
}

.top-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53);
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    margin-right: 4px;
    font-weight: 600;
}

.top-badge-banner {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    border-radius: 4px;
    font-size: 11px;
    color: #fff;
    font-weight: 600;
}

.commission-list {
    background: #2a2a4a;
    border-radius: 8px;
    margin-top: 16px;
}

.commission-item {
    padding: 12px 16px;
    border-bottom: 1px solid #3a3a5a;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.commission-info {
    flex: 1;
}

.commission-info .type {
    font-size: 14px;
    margin-bottom: 4px;
}

.commission-info .time {
    font-size: 12px;
    color: #888;
}

.commission-amount {
    font-weight: bold;
    color: #4caf50;
}

.article-count-section {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 0 16px 16px;
    border-radius: 12px;
    text-align: center;
}

.article-count-title {
    font-size: 16px;
    color: #fff;
}

.count-value {
    font-size: 28px;
    font-weight: bold;
    color: #ffeb3b;
    margin-right: 4px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.btn-back {
    padding: 6px 12px;
    background: #2a2a4a;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-back:hover {
    background: #667eea;
}

.category-section {
    margin-bottom: 16px;
}

.lottery-image-container {
    width: 100%;
    padding: 0 16px;
    margin-bottom: 16px;
}

.lottery-image-container img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.category-card {
    background: #2a2a4a;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    background: #3a3a5a;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.category-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.category-card:hover .category-bg-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
}

.category-icon {
    font-size: 40px;
    margin-bottom: 12px;
    z-index: 2;
}

.category-name {
    font-size: 13px;
    color: #fff;
    font-weight: 600;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.category-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.article-section {
    margin-bottom: 16px;
}

.sort-buttons {
    display: flex;
    gap: 8px;
    margin: 0 16px 12px;
}

.sort-btn {
    flex: 1;
    padding: 8px 16px;
    background: #2a2a4a;
    border: none;
    border-radius: 8px;
    color: #888;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn:hover {
    background: #3a3a5a;
}

.sort-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.free-article-section {
    margin-bottom: 16px;
}

.free-article-section .section-header h3 {
    color: #4caf50;
}

@media (max-width: 480px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lottery-animals {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .member-stats {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #aaa;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background: #2a2a4a;
    border: 1px solid #3a3a5a;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

.article-list {
    background: #1a1a2e;
    border-radius: 8px;
    overflow: hidden;
}

.article-item {
    padding: 16px;
    border-bottom: 1px solid #2a2a4a;
}

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

.article-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #888;
}

.status {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.status-pending {
    background: #f59e0b;
    color: #fff;
}

.status-approved {
    background: #10b981;
    color: #fff;
}

.status-rejected {
    background: #ef4444;
    color: #fff;
}

/* 登录页面样式 */
.login-page {
    padding: 20px;
}

.login-icons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.icon-item span {
    font-size: 12px;
    color: #888;
}

.login-box {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 40px 24px;
}

.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
}

.login-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.login-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.login-btn-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #3a3a5c;
}

.social-divider span {
    color: #888;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-icon {
    width: 28px;
    height: 28px;
}

.social-btn-wechat {
    background: #07C160;
}

.social-btn-wechat:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(7, 193, 96, 0.4);
}

.social-btn-qq {
    background: #12B7F5;
}

.social-btn-qq:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(18, 183, 245, 0.4);
}

/* 文章详情页面 */
.article-detail-wrapper {
    padding-bottom: 80px;
}

.article-author-section {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #1a1a2e;
    gap: 12px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info-detail {
    flex: 1;
}

.author-name-level {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.author-name-detail {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.author-level {
    padding: 2px 8px;
    background: linear-gradient(135deg, #f5a623 0%, #f77f00 100%);
    border-radius: 10px;
    font-size: 12px;
    color: #fff;
}

.author-tags-detail {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.author-actions {
    display: flex;
    gap: 8px;
}

.author-action-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: none;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.follow-btn {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #fff;
}

.message-btn {
    background: #3a3a5c;
    color: #fff;
}

/* 文章头部 */
.article-header-section {
    padding: 16px;
    position: relative;
}

.vip-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
}

.sold-count {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 4px 12px;
    background: #2d2d4a;
    border-radius: 20px;
    color: #07c160;
    font-size: 13px;
}

.article-title-detail {
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

/* 付费内容区域 */
.paid-content-section {
    padding: 20px 16px;
    text-align: center;
}

.paid-hint {
    color: #888;
    font-size: 14px;
    margin-bottom: 16px;
}

.price-display {
    margin-bottom: 20px;
}

.price-symbol {
    font-size: 20px;
    color: #f5576c;
}

.price-value {
    font-size: 48px;
    font-weight: bold;
    color: #f5576c;
}

.vip-prices {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.vip-price-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

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

.vip-discount-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.vip-discount-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

.vip-discount-item .vip-label {
    font-size: 13px;
    color: #666;
}

.vip-discount-item .vip-price {
    font-size: 16px;
    font-weight: bold;
    color: #f5576c;
}

.user-discount-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
    border-radius: 8px;
    color: #fff;
}

.user-discount-label {
    font-size: 14px;
    font-weight: 500;
}

.user-discount-price {
    font-size: 28px;
    font-weight: bold;
}

.user-discount-rate {
    font-size: 14px;
    padding: 4px 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.vip-name {
    color: #888;
    font-size: 13px;
}

.vip-price {
    color: #f5a623;
    font-size: 16px;
    font-weight: 600;
}

.buy-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.content-hidden {
    margin-top: 24px;
    padding: 20px;
    border: 2px dashed #f5576c;
    border-radius: 12px;
    color: #f5576c;
    font-size: 15px;
}

.hidden-icon {
    margin-right: 8px;
}

/* 文章内容 */
.article-cover-detail {
    padding: 0 16px;
    margin-bottom: 16px;
}

.article-cover-detail img {
    width: 100%;
    border-radius: 8px;
}

.article-content-detail {
    padding: 0 16px;
    color: #ddd;
    line-height: 1.8;
    font-size: 15px;
}

/* 文章统计信息 */
.article-stats-detail {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    margin: 16px;
    background: #1a1a2e;
    border-radius: 12px;
}

.stat-detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 14px;
}

.stat-icon {
    font-size: 16px;
}

/* 评论区 */
.comments-section {
    padding: 16px;
}

.comments-header h3 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 16px 0;
}

.comment-input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-input-section textarea {
    flex: 1;
    background: #1a1a2e;
    border: 1px solid #3a3a5c;
    border-radius: 8px;
    padding: 12px;
    color: #fff;
    resize: none;
}

.comment-input-section textarea:focus {
    outline: none;
    border-color: #667eea;
}

.submit-comment-btn {
    padding: 0 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.comments-list {
    margin-top: 16px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #2a2a4a;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #3a3a5c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content-wrapper {
    flex: 1;
}

.comment-user-name {
    color: #667eea;
    font-size: 14px;
    margin-bottom: 4px;
}

.comment-text {
    color: #ddd;
    font-size: 14px;
    line-height: 1.6;
}

.comment-time {
    color: #666;
    font-size: 12px;
    margin-top: 6px;
}

.no-comment {
    text-align: center;
    color: #666;
    padding: 40px 0;
}

/* 底部操作栏 */
.article-bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    padding: 10px 16px;
    gap: 16px;
    border-top: 1px solid #2a2a4a;
}

.bottom-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
}

.bottom-action-btn span:first-child {
    font-size: 22px;
}

.action-count {
    font-size: 12px;
}

.buy-btn-bottom {
    margin-left: auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    color: #fff;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* 返回按钮 */
.back-btn {
    display: none;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 4px;
}

.logout-btn {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.author-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.author-tag {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid;
}

.author-tag-default {
    border-color: #666;
    color: #888;
    background: rgba(102, 102, 102, 0.1);
}

.author-tag-red {
    border-color: #f5576c;
    color: #f5576c;
    background: rgba(245, 87, 108, 0.1);
}

.author-tag-yellow {
    border-color: #f5a623;
    color: #f5a623;
    background: rgba(245, 166, 35, 0.1);
}

.author-tag-green {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.article-meta-info {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #888;
    font-size: 13px;
}

/* 文章结束标记 */
.article-end-mark {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
    position: relative;
}

.article-end-mark::before,
.article-end-mark::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #333;
}

.article-end-mark::before {
    left: 10%;
}

.article-end-mark::after {
    right: 10%;
}

/* 互动功能区 */
.interact-section {
    padding: 20px 16px;
    text-align: center;
}

.interact-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    font-size: 13px;
    margin: 0 8px 12px;
}

.interact-hint {
    color: #888;
    font-size: 14px;
    margin-top: 10px;
}

/* 相关推荐 */
.related-section {
    padding: 20px 16px;
    margin-bottom: 80px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.title-marker {
    width: 4px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-title h3 {
    font-size: 18px;
    color: #fff;
    font-weight: 600;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-item {
    display: flex;
    gap: 12px;
    background: #1a1a2e;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: transform 0.2s;
}

.related-item:hover {
    transform: translateY(-2px);
}

.related-cover {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-title {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    gap: 12px;
}

.related-likes {
    font-size: 12px;
    color: #888;
}

/* 底部操作栏文字 */
.action-text {
    font-size: 12px;
    color: #888;
}

/* 消息页面 */
.message-container {
    padding: 16px;
    min-height: 100vh;
}

.message-header {
    padding: 16px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 16px;
}

.message-header h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 600;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #1a1a2e;
    border-radius: 12px;
}

.message-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.message-sender {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.message-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.4;
}

.message-time {
    font-size: 12px;
    color: #666;
}

.message-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

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

.message-empty p {
    color: #888;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 底部导航徽章 */
.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #f5576c;
    border-radius: 9px;
    font-size: 11px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 点赞和收藏状态 */
.bottom-action-btn.liked {
    color: #f5576c;
}

.bottom-action-btn.favorited {
    color: #f5a623;
}

.bottom-action-btn.liked span:first-child,
.bottom-action-btn.favorited span:first-child {
    transform: scale(1.2);
}

/* 个人中心标签栏 */
.member-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    margin-top: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tabs-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.tab-item {
    flex-shrink: 0;
    text-align: center;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 25px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: none;
    min-width: 100px;
}

.tab-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.tab-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.tab-item span {
    margin-right: 6px;
    font-size: 16px;
}

/* 分销/推广中心样式 */
.distribution-panel {
    padding: 0;
}

.distribution-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 16px;
    text-align: center;
}

.distribution-header h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.distribution-desc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
    line-height: 1.6;
}

.distribution-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.dist-stat-item {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.dist-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    display: block;
    margin-bottom: 4px;
}

.dist-stat-label {
    font-size: 13px;
    color: #999;
}

.distribution-section {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.distribution-section h4 {
    font-size: 16px;
    margin: 0 0 16px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invite-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.invite-link {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    background: #fafafa;
    cursor: pointer;
}

.invite-link:hover {
    background: #f5f5f5;
}

.copy-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.team-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.team-member:hover {
    background: #f1f3f4;
}

.member-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.member-name {
    font-weight: 500;
    color: #333;
}

.member-vip {
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.member-time {
    font-size: 13px;
    color: #999;
}

.withdraw-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.withdraw-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.withdraw-form label {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.withdraw-form input,
.withdraw-form select {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.withdraw-btn {
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.withdraw-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.withdraw-tip {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 5px;
}

.commission-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.commission-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.commission-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.commission-level {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.commission-time {
    font-size: 12px;
    color: #999;
}

.commission-amount {
    font-size: 16px;
    font-weight: 600;
    color: #4CAF50;
}

.distribution-level {
    padding: 16px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    text-align: center;
}

.level-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.level-label {
    font-size: 14px;
    color: #666;
}

.level-value {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
}

.level-desc {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
}

@media screen and (max-width: 480px) {
    .member-tabs {
        padding: 4px;
        border-radius: 10px;
    }
    
    .tab-item {
        padding: 12px 16px;
        font-size: 13px;
        margin: 0 3px;
    }
    
    .tab-item span {
        font-size: 14px;
        margin-right: 4px;
    }
    
    .distribution-stats {
        flex-direction: column;
    }
    
    .invite-box {
        flex-direction: column;
    }
    
    .invite-link {
        width: 100%;
    }
}

/* 用户列表 */
.user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.user-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.user-item:hover {
    transform: translateY(-2px);
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    margin-right: 12px;
}

.user-info {
    flex: 1;
}

.user-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.user-time {
    font-size: 12px;
    color: #999;
}

/* 私信模态框美化 */
.message-modal .modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
}

.message-modal .modal-header {
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 24px;
}

.message-modal .modal-header h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.message-modal .close-btn {
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.message-modal .close-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
}

.message-modal .modal-body {
    padding: 24px;
    background: #fff;
}

.message-modal .modal-body textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 15px;
    resize: none;
    transition: all 0.3s;
    background: #f8f9fa;
}

.message-modal .modal-body textarea:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.message-modal .modal-footer {
    padding: 16px 24px 24px;
    background: #fff;
    border-top: none;
    display: flex;
    gap: 12px;
}

.message-modal .btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.message-modal .btn-outline {
    background: #f0f0f0;
    color: #666;
}

.message-modal .btn-outline:hover {
    background: #e0e0e0;
    color: #333;
}

.message-modal .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.message-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.message-modal .btn-primary:active {
    transform: translateY(0);
}

/* 接收人信息样式 */
.message-receiver-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 16px;
}

.message-receiver-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.message-receiver-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.message-receiver-hint {
    font-size: 12px;
    color: #999;
}

/* 会话相关样式 */
.message-item {
    transition: all 0.2s;
    cursor: pointer;
}

.message-item:hover {
    background: #2a2a4a;
    transform: translateY(-2px);
}

.message-item.unread {
    background: rgba(102, 126, 234, 0.1);
    border-left: 3px solid #667eea;
}

.message-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #f5576c;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* 会话详情页面 */
.conversation-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #1a1a2e;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.conversation-header {
    padding: 16px;
    border-bottom: 1px solid #333;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    overflow: hidden;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-name {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.conversation-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: 100px;
    background: #0f0f1e;
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-message.sent {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
}

.chat-message.sent .chat-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-bubble {
    background: #2a2a4a;
    border-bottom-left-radius: 4px;
}

.chat-content {
    font-size: 14px;
    color: #fff;
    line-height: 1.5;
}

.chat-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    text-align: right;
}

.conversation-input {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #1a1a2e;
    border-top: 1px solid #333;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.conversation-input input {
    flex: 1;
    padding: 12px 16px;
    background: #2a2a4a;
    border: 2px solid #3a3a5c;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.conversation-input input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.conversation-input input::placeholder {
    color: #888;
}

.conversation-input button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.conversation-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.conversation-input button:active {
    transform: translateY(0);
}

/* 消息列表小按钮 */
.btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

/* 新消息提示动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.badge {
    animation: pulse 2s ease-in-out infinite;
}

/* 消息标签页样式 */
.message-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.message-tab {
    flex: 1;
    padding: 12px;
    background: #2a2a4a;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    transition: all 0.3s;
}

.message-tab:hover {
    background: #3a3a5c;
    color: #ccc;
}

.message-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

/* 系统通知样式 */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notification-item {
    padding: 16px;
    background: #1a1a2e;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-item:hover {
    background: #2a2a4a;
    transform: translateY(-2px);
}

.notification-item.unread {
    border-left: 4px solid #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.notification-delete-btn {
    margin-left: auto;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 6px;
    color: #ef4444;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgba(239, 68, 68, 0.5);
}

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

.notification-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.notification-time {
    font-size: 12px;
    color: #888;
}

.notification-type {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.notification-type.system {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
}

.notification-type.notice {
    background: rgba(245, 166, 35, 0.2);
    color: #f5a623;
}

.notification-type.activity {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.notification-content {
    font-size: 14px;
    color: #ccc;
    line-height: 1.5;
}

.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.notification-empty .empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.notification-empty p {
    color: #888;
    font-size: 16px;
}

/* 联系管理员卡片 */
.contact-admin-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.contact-admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.contact-admin-card .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.contact-admin-card .card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.contact-admin-card .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.contact-admin-card .card-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

/* 消息功能禁用提示 */
.message-disabled {
    text-align: center;
    padding: 60px 20px;
}

.message-disabled .disabled-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.message-disabled h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.message-disabled p {
    color: #888;
    font-size: 14px;
}

/* 主题选择器样式 */
.theme-selector {
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.theme-selector h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 500;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: transparent;
    border: 2px solid transparent;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.theme-option.active {
    border-color: var(--accent-color);
    background: rgba(102, 126, 234, 0.1);
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.theme-preview::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.theme-preview::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 100% 0, 100% 100%);
}

.theme-name {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
}

.theme-option.active .theme-name {
    color: var(--accent-color);
    font-weight: 600;
}

/* 主题颜色预览 */
.theme-default .theme-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-aurora .theme-preview {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.theme-ocean .theme-preview {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
}

.theme-sunrise .theme-preview {
    background: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
}

.theme-forest .theme-preview {
    background: linear-gradient(135deg, #22c55e 0%, #10b981 100%);
}

.theme-rose .theme-preview {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}

.theme-midnight .theme-preview {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
}

.theme-classic .theme-preview {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* 主题切换提示 */
.theme-toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--secondary-bg);
    color: var(--text-color);
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.theme-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 右侧联系客服按钮 */
.contact-service-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 10px 6px;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 10px;
}

.contact-service-btn:hover {
    padding-right: 10px;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.3);
}

.contact-service-btn span:first-child {
    font-size: 16px;
}

.contact-text {
    font-size: 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* 微信和QQ客服悬浮图标 */
.customer-service-icons {
    position: fixed;
    right: 4px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.customer-service-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: relative;
}

.customer-service-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.service-wechat {
    background: linear-gradient(135deg, #07c160 0%, #10b981 100%);
}

.service-qq {
    background: linear-gradient(135deg, #1da1f2 0%, #0ea5e9 100%);
}

/* 支付方式选择弹窗 */
.pay-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pay-modal-content {
    background: var(--primary-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pay-modal-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pay-modal-header h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.pay-modal-price {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 600;
}

.pay-modal-body {
    padding: 16px;
}

.pay-method-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--secondary-bg);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.pay-method-item:last-child {
    margin-bottom: 0;
}

.pay-method-item:hover {
    background: rgba(255, 107, 107, 0.1);
}

.pay-method-item.selected {
    border-color: var(--accent-color);
    background: rgba(255, 107, 107, 0.1);
}

.pay-icon {
    font-size: 28px;
    margin-right: 14px;
}

.pay-info {
    flex: 1;
}

.pay-name {
    color: var(--text-color);
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.pay-balance,
.pay-desc {
    color: var(--text-muted);
    font-size: 12px;
}

.pay-balance {
    color: #07c160;
}

.pay-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.pay-check.disabled {
    background: #666;
}

.pay-modal-footer {
    display: flex;
    border-top: 1px solid var(--border-color);
}

.pay-btn-cancel,
.pay-btn-confirm {
    flex: 1;
    padding: 14px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pay-btn-cancel {
    color: var(--text-muted);
    background: transparent;
    border-right: 1px solid var(--border-color);
}

.pay-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pay-btn-confirm {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
}

.pay-btn-confirm:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* 支付二维码弹窗 */
.payment-qr-content {
    max-width: 400px;
}

.pay-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pay-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.payment-qr-info {
    text-align: center;
    padding: 20px 20px 10px;
}

.payment-amount {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    margin: 0 0 8px 0;
}

.payment-tip {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.payment-status {
    padding: 15px;
    background: rgba(255, 200, 100, 0.1);
    border-radius: 8px;
    margin: 0 20px 15px;
}

.status-checking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.checking-icon {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.checking-text {
    font-size: 14px;
    color: var(--text-muted);
}

.checking-countdown {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color);
}

.payment-qr-image {
    padding: 20px;
    text-align: center;
}

.payment-qr-image img {
    max-width: 100%;
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.payment-link-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.payment-link-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.payment-link-text {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.payment-link-hint {
    color: var(--text-muted);
    font-size: 13px;
    margin: 12px 0 8px;
}

.payment-link-input {
    width: 100%;
    max-width: 320px;
    padding: 10px 12px;
    font-size: 12px;
    font-family: monospace;
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    word-break: break-all;
}

.payment-link-input:hover {
    border-color: var(--accent-color);
}

.payment-wechat-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    width: 100%;
}

.wechat-pay-iframe {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 12px;
    background: #fff;
    margin: 15px 0;
}

.payment-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    color: #4CAF50;
    font-size: 14px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.payment-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-qr-code {
    max-width: 100%;
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: #fff;
    padding: 8px;
}

.qr-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.payment-actions {
    display: flex;
    padding: 0 20px 20px;
    gap: 10px;
}

.payment-actions .pay-btn {
    flex: 1;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.payment-actions .pay-btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.payment-actions .pay-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.payment-actions .pay-btn-confirm {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #fff;
}

.payment-actions .pay-btn-confirm:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* 客服二维码弹窗 */
.service-qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.service-qr-modal.active {
    display: flex;
}

.service-qr-content {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px;
    max-width: 320px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-qr-content h3 {
    color: var(--text-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.service-qr-content .qr-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.service-qr-content .qr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.service-qr-content .qr-image .placeholder {
    font-size: 48px;
}

.service-qr-content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.service-qr-close {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.service-qr-close:hover {
    background: var(--accent-secondary);
}

/* 充值记录列表样式 */
.recharge-list {
    margin-top: 10px;
}

.recharge-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
}

.recharge-info {
    flex: 1;
}

.recharge-type {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.recharge-time {
    font-size: 12px;
    color: #888;
}

.recharge-amount {
    font-size: 18px;
    font-weight: 600;
}

/* 联系客服面板样式 */
.service-panel {
    padding: 15px;
}

.service-header {
    margin-bottom: 20px;
}

.service-header h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
}

.service-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.service-contact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-icon {
    font-size: 20px;
}

.service-btn {
    margin-left: auto;
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.service-btn:hover {
    background: #5a6fd6;
}

/* 客服二维码区域样式 */
.service-qr-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.qr-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.qr-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.qr-image {
    width: 150px;
    height: 150px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.qr-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.qr-desc {
    font-size: 12px;
    color: #888;
}

/* 精选文章区域样式 */
.featured-article-section {
    margin-bottom: 16px;
}

.featured-article-section .section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.featured-article-section .section-header h3 {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 600;
}

.featured-article-section .section-header .featured-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.featured-article-section .article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.featured-article-section .article-card {
    position: relative;
    background: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
    height: 180px;
}

.featured-article-section .article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff8e53, #ff6b6b);
    background-size: 200% 100%;
    animation: gradient 2s linear infinite;
    z-index: 1;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.featured-article-section .article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.featured-article-section .article-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-section .article-card .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.featured-article-section .article-card .vip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* 分类详情页面样式 */
.category-detail-header {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.category-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    text-align: center;
}

.category-banner-overlay h2 {
    font-size: 24px;
    color: #fff;
    margin-bottom: 8px;
}

.category-banner-overlay p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.category-article-list {
    padding: 16px;
}

.category-article-item {
    position: relative;
    background: #2a2a4a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    height: 180px;
}

.category-article-item:hover {
    transform: translateY(-2px);
    background: #3a3a5a;
}

.category-article-item .article-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.category-article-item .article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-article-item .article-cover .vip-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 4px;
    font-size: 11px;
    color: #333;
    font-weight: 500;
}

.category-article-item .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
}

.category-article-item .article-title {
    font-size: 14px;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.category-article-item .article-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.category-article-item .article-tags .tag {
    font-size: 11px;
    color: #4caf50;
    background: rgba(76, 175, 80, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.category-article-item .article-tags .tag.vip-tag {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
}

.category-article-item .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-article-item .author-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #aaa;
}

.category-article-item .like-info {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888;
}

.no-data {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 14px;
}

/* 全部类型卡片样式 */
.content-type-section {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.content-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.content-type-card {
    position: relative;
    background: var(--primary-bg);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    height: 140px;
}

.content-type-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.content-type-card .type-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-type-card .type-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 10px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
}

.content-type-card .type-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.content-type-card .type-count {
    font-size: 11px;
    color: #aaa;
}



/* 内容类型详情页面样式 */
.content-type-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    border-radius: 12px;
    margin-bottom: 16px;
}

.type-banner-icon {
    font-size: 48px;
}

.type-banner-info h2 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 4px;
}

.type-banner-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.content-type-article-list {
    padding-bottom: 80px;
}

.vip-badge-small {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* 自定义弹窗（替代alert/confirm） */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-alert-box {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.25s ease;
}

.custom-alert-message {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 24px;
    word-break: break-word;
}

.custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.custom-alert-btn {
    padding: 10px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 100px;
}

.custom-alert-return {
    background: #f0f0f0;
    color: #666;
}

.custom-alert-return:hover {
    background: #e0e0e0;
}

.custom-alert-confirm {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.custom-alert-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

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