/**
 * 全局样式 - 聚福分享智能体平台
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 */
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --primary-light: #7c8fff;
    
    /* 辅助色 */
    --secondary-color: #f093fb;
    --secondary-dark: #e972f0;
    
    /* 功能色 */
    --success-color: #10b981;
    --success-light: rgba(16, 185, 129, 0.15);
    --warning-color: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.15);
    --danger-color: #ef4444;
    --danger-light: rgba(239, 68, 68, 0.15);
    --info-color: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.15);
    
    /* 文字色 */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --text-white: #ffffff;
    
    /* 背景色 */
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    --bg-light: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.96);
    --bg-hover: rgba(102, 126, 234, 0.05);
    
    /* 边框色 */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-primary: rgba(102, 126, 234, 0.2);
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 6px 20px rgba(102, 126, 234, 0.35);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    background-attachment: fixed;
    min-height: 100vh;
    padding: 16px 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.page-loaded {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 首页产品网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* 首页特色网格 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

/* 首页产品卡片链接 */
.home-product-card-link {
    display: block;
    margin-bottom: 0;
    text-decoration: none;
}

.home-product-card-link:hover {
    text-decoration: none;
}

/* 通用工具类 */
.cursor-pointer {
    cursor: pointer;
}
.text-danger {
    color: var(--danger-color);
}
.ml-8 {
    margin-left: 8px;
}
.mt-auto {
    margin-top: auto;
}

/* 响应式网格 */
@media (max-width: 1200px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    body {
        padding: 12px 4px;
    }
    
    .container {
        padding: 0 4px;
    }
    
    .card {
        padding: 16px;
        border-radius: 16px;
        margin-bottom: 12px;
    }
    
    .card-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .modal {
        padding: 20px;
        margin: 8px;
        width: calc(100% - 16px);
    }
    
    .modal-wide {
        width: calc(100% - 16px);
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    /* 首页响应式 768px */
    .product-grid {
        gap: 10px;
    }
    .home-product-card-link {
        margin-bottom: 0;
    }
    .home-product-image {
        height: 120px;
    }
    .home-product-info {
        padding: 10px;
    }
    .home-product-title {
        font-size: 13px;
        line-height: 1.4;
    }
    .home-product-summary {
        font-size: 11px;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    .home-price-value {
        font-size: 15px;
    }
    .home-product-meta {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 8px 2px;
    }
    
    .page-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .card {
        padding: 12px;
        border-radius: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-info {
        padding: 12px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .product-summary {
        font-size: 12px;
    }
    
    .price-value {
        font-size: 16px;
    }
    
    .form-control {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 12px;
    }
    
    .code-editor {
        border-radius: 12px;
    }
    
    .code-content {
        padding: 12px;
    }
    
    .code-textarea {
        font-size: 12px;
        min-height: 200px;
    }
    
    .code-preview {
        font-size: 12px;
    }
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
    line-height: 1.3;
}

/* 全局导航 */
.global-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 0 8px;
}

.global-nav a {
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.global-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.global-nav a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.global-nav a:hover::before {
    left: 100%;
}

.global-nav a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-primary);
}

.global-nav .member-badge {
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.global-nav .member-badge.svip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.global-nav .member-badge.normal {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}

/* 导航下拉菜单（移动端） */
.nav-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1000;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-md);
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    font-size: 20px;
    color: var(--primary-color);
}

/* 响应式导航 */
@media (max-width: 768px) {
    .global-nav {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 80px 16px 24px;
        box-shadow: var(--shadow-xl);
        z-index: 999;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
    
    .global-nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .global-nav a {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 20px;
        border-radius: var(--radius-md);
        font-size: 15px;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .page-title {
        font-size: 22px;
        margin-bottom: 16px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 标签导航 */
.nav-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 8px;
    margin-bottom: 28px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-tab {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 16px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-tab:hover {
    background: #f3f4f6;
    transform: scale(1.02);
}

.nav-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: scale(1.02);
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 卡片样式 */
.card {
    background: linear-gradient(135deg, var(--bg-light) 0%, #f0f4ff 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 2px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-gray);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    outline: none;
    font-size: 15px;
    background: #fff;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 160px;
    resize: vertical;
    line-height: 1.7;
}

/* AI页面强制宽度设置 */
#agentPrompt,
#userInput,
#resultOutput,
.ai-page textarea,
.ai-page input {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    padding-right: 50px;
}

/* 按钮样式 */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-primary);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.55);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(-2px) scale(1.01);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-success:hover {
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.55);
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-warning:hover {
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.55);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    box-shadow: 0 12px 35px rgba(239, 68, 68, 0.55);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 12px;
}

.btn-block {
    width: 100%;
}

/* 商品卡片 */
.product-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.18);
    border-color: rgba(102, 126, 234, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.product-info {
    padding: 20px;
}

.product-category {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-summary {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-light);
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.product-tag {
    background: #f3f4f6;
    color: var(--text-gray);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
}

/* 网格布局 */
.grid {
    display: grid;
    gap: 20px;
}

.grid-1 {
    grid-template-columns: 1fr;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* 代码编辑器包装器 */
.code-editor-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* 代码编辑器 */
.code-editor {
    background: linear-gradient(135deg, #1e1e2e 0%, #252536 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #3d3d5c;
    width: 100%;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #3d3d5c;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27c93f; }

.code-language {
    margin-left: auto;
    color: #a0a0b0;
    font-size: 13px;
    font-weight: 600;
}

.code-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.code-toolbar button,
.copy-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.code-toolbar button:hover,
.copy-btn:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.code-toolbar button:active,
.copy-btn:active {
    transform: translateY(0);
}

.code-content {
    padding: 16px;
    overflow-x: auto;
}

.code-textarea {
    width: 100%;
    min-height: 300px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    padding: 0;
}

.code-preview {
    font-family: 'Fira Code', 'Monaco', 'Consolas', 'Microsoft YaHei', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #e0e0e0;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 8px 0;
}

.code-preview .keyword { color: #ff79c6; }
.code-preview .string { color: #f1fa8c; }
.code-preview .comment { color: #6272a4; font-style: italic; }
.code-preview .function { color: #50fa7b; }
.code-preview .number { color: #bd93f9; }
.code-preview .operator { color: #ffb86c; }

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.table tr:hover {
    background: #f8fafc;
}

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

/* 弹窗样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

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

.modal {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-wide {
    max-width: 900px;
    width: 95%;
}

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

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

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.modal-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f6;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: var(--text-dark);
}

.modal-body {
    margin-bottom: 24px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* 消息提示 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 2000;
    animation: slideInDown 0.3s ease, fadeOut 0.3s ease 3s forwards;
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    text-align: center;
}

.toast.show {
    display: flex;
}

.toast-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.toast-error {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.toast-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translate(-50%, -70%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* 复制提示 */
.copy-tip {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: none;
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    padding: 12px 32px;
    border-radius: 30px;
    animation: copyBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

@keyframes copyBounce {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.copy-tip.show {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* 头像 */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

/* 价格标签 */
.price-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.price-badge.free {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: #fff;
}

.price-badge.paid {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: #fff;
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: default;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.status-badge.inactive {
    background: rgba(156, 163, 175, 0.15);
    color: var(--text-light);
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.status-badge.paid {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-color);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

/* 后台常用状态标签样式 */
.status-badge.success,
.data-table .status-badge.success,
tbody .status-badge.success,
.data-table tbody td a.status-badge.success,
.data-table-wrapper .status-badge.success {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #10b981 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.status-badge.warning,
.data-table .status-badge.warning,
tbody .status-badge.warning,
.data-table tbody td a.status-badge.warning,
.data-table-wrapper .status-badge.warning {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #f59e0b !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.status-badge.error,
.data-table .status-badge.error,
tbody .status-badge.error,
.data-table tbody td a.status-badge.error,
.data-table-wrapper .status-badge.error {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.status-badge.info,
.data-table .status-badge.info,
tbody .status-badge.info,
.data-table tbody td a.status-badge.info,
.data-table-wrapper .status-badge.info {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

.status-badge.primary,
.data-table .status-badge.primary,
tbody .status-badge.primary,
.data-table tbody td a.status-badge.primary,
.data-table-wrapper .status-badge.primary {
    background: rgba(102, 126, 234, 0.15) !important;
    color: #667eea !important;
    text-decoration: none !important;
    display: inline-block !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* 空状态 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

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

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* 加载状态 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 12px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 14px;
    color: var(--text-gray);
}

/* 错误状态 */
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 16px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--danger-color);
}

.error-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: 8px;
}

.error-desc {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 卡片悬浮效果增强 */
.card-hover {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.01);
}

/* 按钮涟漪效果 */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* 输入框聚焦效果增强 */
.form-control-glow:focus {
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 0 20px rgba(102, 126, 234, 0.1);
}

/* 图片懒加载占位 */
.lazy-image {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    position: relative;
    overflow: hidden;
}

.lazy-image::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0.3;
}

.lazy-image img {
    transition: opacity 0.3s ease;
}

.lazy-image.loaded img {
    opacity: 1;
}

.lazy-image.loaded::before {
    display: none;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pagination a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: translateY(-2px);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

/* 文件上传 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.upload-text {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 600;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 8px;
}

.upload-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.upload-item {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    background: #f3f4f6;
}

.upload-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.upload-item .cover-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--primary-color);
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 10px;
}

.upload-item .remove-btn {
    position: absolute;
    bottom: 4px;
    left: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-item:hover .remove-btn {
    opacity: 1;
}

/* 富文本编辑器容器 */
.editor-container {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.editor-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.editor-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.editor-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.editor-content {
    min-height: 300px;
    padding: 20px;
    background: #fff;
    font-size: 15px;
    line-height: 1.8;
    outline: none;
}

/* Hero 区域 */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.hero-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    position: relative;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    position: relative;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stat-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 4px;
}

/* 统计卡片 */
.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-info .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.stat-info .stat-label {
    font-size: 13px;
    color: var(--text-gray);
}

/* 功能卡片 */
.feature-card {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 资讯列表项 */
.news-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: #fff;
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.data-table tr:hover {
    background: #f8fafc;
}

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

/* 按钮组 */
.btn-group {
    display: flex;
    gap: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 16px 10px;
    }

    .container {
        max-width: 100%;
    }

    .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .global-nav {
        gap: 8px;
        margin-bottom: 16px;
        overflow-x: visible;
        -webkit-overflow-scrolling: touch;
        white-space: normal;
        padding-bottom: 4px;
    }

    .global-nav a {
        padding: 10px 16px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .nav-tabs {
        flex-wrap: wrap;
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
        margin-bottom: 16px;
    }

    /* SVIP会员卡片样式 */
.profile-svip-card {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 16px;
    padding: 20px;
}

.profile-svip-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
}

.profile-svip-active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(245, 158, 11, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.profile-svip-expired {
    background: rgba(156, 163, 175, 0.1);
    border: 1px solid rgba(156, 163, 175, 0.2);
}

.profile-svip-normal {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.profile-svip-icon {
    font-size: 28px;
}

.profile-svip-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.profile-svip-badge {
    margin-left: auto;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.profile-svip-active .profile-svip-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
}

.profile-svip-expired .profile-svip-badge {
    background: rgba(156, 163, 175, 0.2);
    color: var(--text-light);
}

.profile-svip-info {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.profile-svip-countdown {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.profile-svip-countdown-label {
    font-size: 14px;
    color: var(--text-gray);
}

.profile-svip-countdown-value {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.profile-svip-countdown-unit {
    font-size: 16px;
    color: var(--text-gray);
    font-weight: 600;
}

.profile-svip-expire {
    font-size: 13px;
    color: var(--text-light);
}

.profile-svip-benefits {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 16px;
}

.profile-svip-benefits h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.profile-svip-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-svip-benefits li {
    font-size: 13px;
    color: var(--text-gray);
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-svip-benefits li:last-child {
    border-bottom: none;
}

.profile-svip-expired-hint,
.profile-svip-upgrade {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.profile-svip-expired-hint p,
.profile-svip-upgrade p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 12px;
}

.profile-svip-expired-hint .btn,
.profile-svip-upgrade .btn {
    width: 100%;
}

/* 响应式SVIP样式 */
@media (max-width: 768px) {
    .profile-svip-card {
        padding: 16px;
    }
    
    .profile-svip-countdown-value {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .profile-svip-status {
        padding: 10px 12px;
    }
    
    .profile-svip-icon {
        font-size: 22px;
    }
    
    .profile-svip-label {
        font-size: 14px;
    }
    
    .profile-svip-countdown-value {
        font-size: 28px;
    }
}

/* 导航栏会员徽章 */
.global-nav .member-badge {
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.global-nav .member-badge.svip {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.35);
}

.global-nav .member-badge.normal {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}

.nav-tab {
        padding: 10px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .card {
        padding: 20px;
        border-radius: 16px;
        margin-bottom: 16px;
    }

    .card-title {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .modal {
        padding: 24px;
        width: 95%;
    }

    .modal-title {
        font-size: 18px;
    }

    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .product-card {
        border-radius: 16px;
    }

    .product-image {
        height: 180px;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 15px;
    }

    .table {
        font-size: 13px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
    }

    .pagination a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ========================================
   首页特定样式
   ======================================== */

/* 首页产品卡片 */
.home-product-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(102, 126, 234, 0.08);
}

.home-product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
}

.home-product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.home-product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    z-index: 1;
    pointer-events: none;
}

.home-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-product-card:hover .home-product-image img {
    transform: scale(1.12);
}

.home-product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

/* 热门标签 */
.home-product-image .hot-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.3);
    margin-bottom: 0;
    border: none;
}

.home-product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.home-product-card:hover .home-product-title {
    color: var(--primary-color);
}

.home-product-summary {
    font-size: 11px;
    color: var(--text-gray);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.home-price-value {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.home-product-meta {
    font-size: 11px;
    color: var(--text-light);
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.home-product-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 免费标签美化 */
.price-badge.free {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 首页AI秘籍列表项 */
.home-news-item {
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.home-news-item:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.home-news-image {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

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

.home-news-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-news-desc {
    font-size: 13px;
    color: var(--text-gray);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 4px;
    line-height: 1.5;
}

/* 平台特色图标 */
.home-feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 平台特色渐变背景 */
.bg-gradient-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.bg-gradient-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.bg-gradient-green {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
}

.bg-gradient-pink {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

/* 首页响应式 - 平台特色 */
@media (max-width: 600px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .feature-card {
        padding: 14px 10px;
    }
    .feature-card h3 {
        font-size: 13px;
    }
    .feature-card p {
        font-size: 11px;
        line-height: 1.5;
    }
    .home-feature-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        margin-bottom: 8px;
    }
}

@media (max-width: 400px) {
    .feature-card {
        padding: 12px 8px;
    }
    .feature-card h3 {
        font-size: 12px;
    }
    .feature-card p {
        font-size: 10px;
    }
    .home-feature-icon {
        width: 34px;
        height: 34px;
        font-size: 16px;
        margin-bottom: 6px;
    }
}

/* 首页响应式 - AI秘籍列表 */
@media (max-width: 768px) {
    .home-news-item {
        padding: 12px;
        gap: 12px;
    }
    .home-news-image {
        width: 80px;
        height: 56px;
    }
    .home-news-title {
        font-size: 14px;
    }
    .home-news-desc {
        font-size: 12px;
    }
}

/* 最新AI秘籍样式 */
.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.latest-news-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
    color: inherit !important;
}

.latest-news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.latest-news-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.latest-news-placeholder {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    font-size: 24px;
    flex-shrink: 0;
}

.latest-news-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.latest-news-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 4px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.latest-news-desc {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 6px 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.latest-news-date {
    font-size: 11px;
    color: #9ca3af;
    margin-top: auto;
}

/* AI秘籍响应式 */
@media (max-width: 768px) {
    .latest-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .latest-news-item {
        padding: 10px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .latest-news-image,
    .latest-news-placeholder {
        width: 100%;
        height: 120px;
        border-radius: 8px;
    }
    
    .latest-news-title {
        font-size: 13px;
        white-space: normal;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .latest-news-desc {
        font-size: 11px;
        display: none;
    }
    
    .latest-news-date {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .global-nav a {
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 10px;
    }

    .nav-tab {
        padding: 8px 10px;
        font-size: 11px;
    }

    .card {
        padding: 16px;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .upload-area {
        padding: 24px 16px;
    }

    .upload-icon {
        font-size: 36px;
    }
}

/* ========================================
   产品列表页样式
   ======================================== */

/* 页面头部区域 */
.page-header-section {
    margin-bottom: 32px;
}

.page-header-title {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.page-header-subtitle {
    color: var(--text-gray);
    font-size: 15px;
}

/* 通用工具类 - 文本 */
.text-center {
    text-align: center;
}

.text-gray {
    color: var(--text-gray);
}

.text-base {
    font-size: 15px;
}

.text-4xl {
    font-size: 48px;
}

/* 通用工具类 - 间距 */
.mb-32 {
    margin-bottom: 32px;
}

.padding-40 {
    padding: 40px;
}

/* 分类导航标签 */
.category-nav-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.category-nav-tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-gray);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.category-nav-tab:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: rgba(102, 126, 234, 0.2);
}

.category-nav-tab.active {
    background: linear-gradient(135deg, var(--primary-color), #764ba2);
    color: #fff;
    box-shadow: var(--shadow-md);
}

/* 搜索表单容器 */
.search-form-container {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.search-form-container .form-control {
    flex: 1;
}

/* 页面区块标题 */
.page-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-section-title .count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ========================================
   产品详情页样式
   ======================================== */

/* 产品详情页布局 */
.detail-grid {
    grid-template-columns: 1fr 320px;
    gap: 24px;
    position: relative;
}

.detail-sidebar {
}

.detail-main {
}

.back-btn {
    position: absolute;
    top: 0;
    right: 340px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
    font-size: 14px;
    font-weight: 500;
}

.detail-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 16px 0;
    line-height: 1.4;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-gray);
    font-size: 14px;
}

.detail-price-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.detail-price-value {
    font-size: 24px;
    font-weight: 700;
}

.detail-images-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.upload-preview-item {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

/* 产品详情页响应式 */
@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        order: 2;
    }

    .detail-main {
        order: 1;
    }

    .back-btn {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 16px;
    }
}

@media (max-width: 600px) {
    .detail-grid {
        gap: 16px;
    }

    .detail-title {
        font-size: 20px;
    }

    .detail-meta {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }

    .detail-price-box {
        flex-direction: column;
        gap: 12px;
    }

    .detail-price-box .btn {
        width: 100%;
    }

    .upload-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* 详情页组件样式 */
.detail-header-wrapper {
    margin-bottom: 20px;
}

.detail-images-wrapper {
    margin-bottom: 24px;
}

.detail-images-wrapper.upload-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.detail-price-wrapper {
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 16px;
    border: 1px solid #fbbf24;
}

.price-badge-large {
    font-size: 18px;
    padding: 8px 20px;
}

.detail-price-value-gold {
    color: #92400e;
}

.detail-description-wrapper {
    color: var(--text-dark);
    line-height: 1.8;
    font-size: 15px;
}

.sidebar-card-title {
    font-size: 16px;
}

.seller-info-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-avatar-large {
    width: 50px;
    height: 50px;
    font-size: 18px;
}

.seller-name {
    font-weight: 600;
    color: var(--text-dark);
}

.seller-desc {
    font-size: 13px;
    color: var(--text-gray);
}

.recommend-wrapper {
    margin-top: 16px;
}

.recommend-item {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
}

.recommend-item-title {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-item-price {
    font-size: 13px;
    color: var(--primary-color);
}

/* 图片放大模态框 */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10000;
}

.image-modal-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.product-tag {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
}

/* ==================== 登录和注册页样式 ==================== */

.captcha-wrapper .captcha-input {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    flex-shrink: 0;
    flex-grow: 0;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
}

.auth-toast {
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.captcha-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
}

.captcha-img {
    width: 120px;
    height: 42px;
    cursor: pointer;
    border-radius: 8px;
    flex-shrink: 0;
    object-fit: fill;
}

.auth-footer {
    text-align: center;
    margin-top: 16px;
}

.warm-tips {
    margin-top: 20px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #7dd3fc;
    border-radius: 8px;
    font-size: 13px;
}

.warm-tips-title {
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 8px;
}

.warm-tips-list {
    margin: 0;
    padding-left: 18px;
    color: #475569;
    line-height: 1.8;
}

.warm-tips-list li {
    margin-bottom: 4px;
}

.warm-tips-list li:last-child {
    margin-bottom: 0;
}

.user-notice {
    margin-bottom: 24px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
}

.user-notice-title {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 12px;
    font-size: 15px;
}

.user-notice-list {
    margin: 0;
    padding-left: 20px;
    color: #78350f;
    line-height: 1.9;
    font-size: 13px;
}

.user-notice-list li {
    margin-bottom: 8px;
}

.user-notice-list li:last-child {
    margin-bottom: 0;
}

.auth-link {
    color: var(--primary-color);
    font-weight: 600;
}

.captcha-wrapper .captcha-input-small {
    width: 90px !important;
    max-width: 90px !important;
    min-width: 90px !important;
    flex-shrink: 0;
}

.captcha-img-small {
    width: 110px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    flex-shrink: 0;
    display: block;
}

.required-field {
    color: #ef4444;
}

/* ==================== 个人中心相关样式 ==================== */

.profile-balance-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
    margin-bottom: 24px;
    align-items: stretch;
}

.profile-recharge-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 900px) {
    .profile-balance-grid {
        grid-template-columns: 1fr;
    }
    .profile-recharge-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-recharge-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-card-wrapper {
    margin-bottom: 24px;
}

.profile-alert {
    margin-bottom: 24px;
}

.profile-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 28px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.profile-balance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.profile-balance-label {
    font-size: 14px;
    opacity: 0.9;
}

.profile-balance-status {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
}

.profile-balance-amount {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-balance-desc {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 8px;
}

.profile-redeem-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.profile-redeem-title {
    margin-bottom: 16px;
    font-size: 16px;
}

.profile-redeem-form-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.profile-redeem-hint {
    color: #64748b;
    font-size: 13px;
    margin-top: 10px;
}

.profile-section-title {
    margin-bottom: 16px;
}

.profile-recharge-btn {
    padding: 16px;
}

.profile-recharge-price {
    font-size: 24px;
    font-weight: 700;
}

.profile-recharge-price-primary {
    color: var(--primary-color);
}

.profile-recharge-price-warning {
    color: #f59e0b;
}

.profile-recharge-price-success {
    color: #10b981;
}

.profile-recharge-price-danger {
    color: #ef4444;
}

.profile-recharge-price-purple {
    color: #8b5cf6;
}

.profile-recharge-label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.profile-amount-positive {
    color: #10b981;
    font-weight: 600;
}

.profile-amount-negative {
    color: #ef4444;
    font-weight: 600;
}

/* ==================== balance.php 样式 ==================== */

.balance-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-member-svip {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.balance-member-normal {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(156, 163, 175, 0.15);
    color: #6b7280;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.balance-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.balance-quick-btn {
    padding: 16px;
    text-align: center;
}

.balance-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: stretch;
}

@media (max-width: 900px) {
    .balance-grid {
        grid-template-columns: 1fr;
    }
    .redeem-card .redeem-form-row {
        flex-wrap: wrap !important;
        gap: 12px;
    }
    .redeem-card .redeem-input {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    .redeem-card .redeem-btn {
        width: 100% !important;
    }
}
/* -------- 会员卡片样式 -------- */
.member-card {
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.member-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.member-card-svip .member-card-bg {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

.member-card-normal .member-card-bg {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 50%, #d1d5db 100%);
}

.member-card-shine {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.member-card-content {
    position: relative;
    z-index: 2;
    color: white;
}

.member-card-badge {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.member-card-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.member-card-svip .member-card-title {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.member-card-desc {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 20px;
}

.member-card-benefits {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.benefit-tag {
    padding: 6px 16px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

.benefit-tag-gray {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.balance-content {
    position: relative;
    z-index: 1;
}

.balance-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.balance-label-icon {
    font-size: 16px;
}

.balance-amount {
    color: white;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
}

.balance-member-info {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.redeem-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
}

.redeem-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.redeem-header-icon {
    font-size: 24px;
}

.redeem-header-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.redeem-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.redeem-btn {
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 120px;
}

.redeem-hint {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.redeem-hint-icon {
    font-size: 16px;
}

.redeem-hint-text {
    font-size: 13px;
    color: #92400e;
}

.buy-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 1px solid #fcd34d;
}

.buy-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

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

.buy-btn {
    padding: 16px;
    text-align: center;
    border-color: #f59e0b;
    color: #d97706;
}

.buy-btn-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.buy-btn-price {
    font-weight: 600;
    font-size: 16px;
}

.buy-btn-text {
    font-size: 12px;
    color: #d97706;
}

.buy-empty {
    grid-column: span 2;
    text-align: center;
    color: #d97706;
}

.records-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.records-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-gray);
}

.record-amount {
    color: #10b981;
}

/* 消息弹窗动画 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeInUp {
    from { 
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 消息弹窗样式 */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.message-modal-content {
    background: white;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-width: 320px;
    width: 90%;
    position: relative;
}

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

.message-modal-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
}

.message-modal-success .message-modal-content {
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.message-modal-error .message-modal-content {
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.message-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.message-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-dark);
}

.message-modal-btn {
    margin-top: 20px;
    padding: 10px 32px;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* 购买弹窗样式 */
.buy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.buy-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.buy-modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.buy-modal-header-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.buy-modal-header-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.buy-modal-header-desc {
    font-size: 13px;
    color: var(--text-gray);
}

.buy-modal-input-group {
    margin-bottom: 20px;
}

.buy-modal-input-label {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
    display: block;
}

.buy-modal-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    background: #f8fafc;
}

.buy-modal-btns {
    display: flex;
    gap: 12px;
}

.buy-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10000;
    animation: fadeInUp 0.3s ease;
}

/* ==================== 订单页面样式 ==================== */

.orders-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    gap: 16px;
}

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

.order-section-title {
    margin-bottom: 20px;
}

.order-section-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.order-section-title p {
    font-size: 14px;
    color: var(--text-gray);
}

.order-empty {
    text-align: center;
    padding: 40px;
}

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

.order-product-image {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    display: block;
}

.order-product-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.order-product-info {
    flex: 1;
}

.order-product-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.order-product-title a {
    text-decoration: none;
    color: var(--text-dark);
}

.order-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

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

.order-no {
    font-weight: 600;
    color: var(--text-dark);
}

.order-date {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 4px;
}

@media (max-width: 600px) {
    .orders-quick-grid {
        grid-template-columns: 1fr;
    }
    .order-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    .order-item {
        flex-direction: column;
        gap: 12px;
    }
    .order-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* ==================== 后台管理页面通用样式 ==================== */

.admin-page {
    animation: fadeInUp 0.5s ease;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.6);
    min-height: calc(100vh - 60px);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.12);
}

.admin-header-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.admin-header-info p {
    font-size: 14px;
    color: var(--text-gray);
}

.admin-header-stats {
    display: flex;
    gap: 24px;
}

.admin-stat {
    text-align: center;
}

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

.admin-stat-label {
    font-size: 12px;
    color: var(--text-gray);
}

.admin-section {
    margin-bottom: 32px;
}

.admin-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.admin-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.admin-nav-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    transform: scaleX(0);
    transition: transform 0.35s ease;
}

.admin-nav-card:hover::before {
    transform: scaleX(1);
}

.admin-nav-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.18);
    border-color: var(--primary-color);
}

.admin-nav-icon {
    font-size: 36px;
    margin-bottom: 14px;
    transition: transform 0.35s ease;
}

.admin-nav-card:hover .admin-nav-icon {
    transform: scale(1.15);
}

.admin-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.admin-nav-desc {
    font-size: 12px;
    color: var(--text-gray);
}

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

.admin-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
}

.admin-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.admin-stat-info {
    flex: 1;
}

.admin-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

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

.admin-alerts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.admin-alert-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.admin-alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.admin-alert-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-alert-badge {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.admin-alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-alert-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s ease;
}

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

.admin-alert-item:hover {
    background: rgba(102, 126, 234, 0.03);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 8px;
}

.admin-alert-info {
    flex: 1;
}

.admin-alert-item-title {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 14px;
    margin-bottom: 2px;
}

.admin-alert-meta {
    font-size: 12px;
    color: var(--text-light);
}

.admin-empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-gray);
}

.admin-empty-icon {
    font-size: 40px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.admin-empty-text {
    font-size: 14px;
}

.data-table-wrapper {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.data-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.data-table th:first-child {
    border-radius: 20px 0 0 0;
}

.data-table th:last-child {
    border-radius: 0 20px 0 0;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.03);
}

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

.data-table tbody tr:last-child td:first-child {
    border-radius: 0 0 0 20px;
}

.data-table tbody tr:last-child td:last-child {
    border-radius: 0 0 20px 0;
}

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

.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
}

.admin-user-name {
    font-weight: 600;
    color: var(--text-dark);
}

.admin-user-email {
    font-size: 12px;
    color: var(--text-light);
}

.admin-balance {
    font-weight: 600;
    color: var(--success-color);
}

.admin-btn-group {
    display: flex;
    gap: 8px;
}

.admin-btn-sm {
    padding: 8px 14px;
    font-size: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-btn-sm:hover {
    transform: translateY(-2px);
}

.admin-btn-sm.btn-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: #fff;
}

.admin-btn-sm.btn-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: #fff;
}

.admin-btn-sm.btn-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: #fff;
}

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

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.pagination a {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.pagination a:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 后台页面淡入动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-grid {
    display: grid;
    gap: 20px;
}

.admin-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.admin-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.admin-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.admin-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

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

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

.admin-card-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    word-break: break-all;
}

.admin-card-row:last-child {
    margin-bottom: 0;
}

.admin-card-label {
    color: var(--text-gray);
    font-size: 13px;
    margin-right: 8px;
    flex-shrink: 0;
}

.admin-link {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.admin-form {
    max-width: 600px;
}

.admin-form-group {
    margin-bottom: 20px;
}

.admin-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.admin-form-input,
.admin-form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.admin-form-input:focus,
.admin-form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

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

.admin-stat-card {
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.admin-stat-card-label {
    font-size: 13px;
    color: var(--text-gray);
}

.admin-visitors-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

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

.admin-visitors-table tr:hover {
    background: var(--bg-light);
}

.admin-visitors-table .ip {
    font-family: monospace;
    font-size: 13px;
}

.admin-visitors-table .page {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-referrer-list,
.admin-page-list {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-md);
}

.admin-referrer-item,
.admin-page-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.admin-referrer-item:last-child,
.admin-page-item:last-child {
    border-bottom: none;
}

.admin-referrer-name,
.admin-page-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    color: var(--text-dark);
}

.admin-referrer-count,
.admin-page-count {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 16px;
}

.admin-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.admin-online-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: adminPulse 2s infinite;
}

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

.admin-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.admin-empty-data {
    text-align: center;
    color: var(--text-gray);
    padding: 20px;
}

.admin-form-box {
    background: var(--bg-light);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    align-items: center;
}

.admin-form-label-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.admin-table-price {
    font-weight: 600;
    color: var(--primary-color);
}

.admin-table-link {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
    max-width: 300px;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-table-link:hover {
    text-decoration: underline;
}

.admin-btn-cell {
    display: flex;
    gap: 8px;
}

.admin-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.admin-modal {
    background: white;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 450px;
}

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

.admin-modal-group {
    margin-bottom: 16px;
}

.admin-modal-label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
    color: var(--text-dark);
}

.admin-modal-footer {
    display: flex;
    gap: 12px;
}

.admin-modal-btn {
    flex: 1;
}

.admin-stats-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.admin-stat-simple {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.admin-stat-simple-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-stat-simple-label {
    color: var(--text-gray);
}

.admin-card-box {
    margin-bottom: 24px;
}

.admin-generate-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.admin-generate-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.admin-new-cards {
    background: var(--bg-light);
    padding: 16px;
    border-radius: 8px;
}

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

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

.admin-card-code {
    font-family: monospace;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-btn-group {
    display: flex;
    gap: 8px;
}

.admin-card-code-cell {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-dark);
}

.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}

.admin-settings-form {
    max-width: 800px;
    margin: 0 auto;
}

.admin-settings-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.admin-settings-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-light);
    color: var(--text-dark);
}

.admin-settings-hint {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

.home-feature-icon-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.home-feature-icon-blue {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.home-feature-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.home-feature-icon-pink {
    background: linear-gradient(135deg, #ec4899 0%, #be185d 100%);
}

.home-feature-title-orange {
    color: #92400e;
}

.home-feature-title-blue {
    color: #1e40af;
}

.home-feature-title-green {
    color: #065f46;
}

.home-feature-title-pink {
    color: #9d174d;
}

.home-feature-desc-orange {
    color: #a16207;
}

.home-feature-desc-blue {
    color: #1e3a8a;
}

.home-feature-desc-green {
    color: #064e3b;
}

.home-feature-desc-pink {
    color: #831843;
}

.admin-settings-center {
    text-align: center;
}

.admin-cardcodes-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.admin-cardcodes-select {
    width: 160px;
}

.admin-cardcodes-select-sm {
    width: 120px;
}

.admin-cardcodes-label {
    display: block;
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.admin-cardcodes-box {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}

.admin-cardcodes-box-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.admin-cardcodes-inner {
    padding: 20px;
}

.admin-generated-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.admin-generated-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.admin-generated-count {
    font-size: 14px;
    opacity: 0.8;
}

.admin-generated-list {
    display: grid;
    gap: 12px;
    max-height: 300px;
    overflow-y: auto;
}

.admin-generated-item {
    background: white;
    padding: 14px 18px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-generated-code {
    font-family: monospace;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.admin-generated-value {
    color: #10b981;
    font-weight: 700;
    font-size: 14px;
}

.admin-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-filter-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

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

.admin-filter-select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
}

.admin-code-cell {
    font-family: monospace;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 4px 8px;
    background: #f5f5f5;
    border-radius: 4px;
    transition: all 0.2s;
}

.admin-code-cell:hover {
    background: #e5e5e5;
    color: var(--primary-color);
}

.admin-empty-icon-box {
    background: var(--bg-light);
    border-radius: 12px;
}

.admin-empty-icon-lg {
    font-size: 40px;
    margin-bottom: 12px;
}

/* 后台页面响应式 */
@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .admin-header-stats {
        justify-content: center;
    }

    .admin-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .admin-stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .admin-alerts-grid {
        grid-template-columns: 1fr;
    }

    .data-table-wrapper {
        overflow-x: auto;
    }

    .data-table {
        min-width: 600px;
    }
}

/* 后台吐司提示 */
.admin-toast {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

.admin-toast-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
}

.admin-toast-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #dc2626;
}

/* 后台销售数量 */
.admin-sales {
    font-weight: 600;
    color: var(--primary-color);
}

/* 后台空状态 */
.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.admin-empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.admin-empty-text {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* 后台分类表单 */
.admin-category-form {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.02) 100%);
}

/* 后台生成卡密区域 */
.admin-generated-codes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 后台按钮轮廓样式 */
.admin-btn-sm.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-gray);
}

.admin-btn-sm.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* =============================== */
/* 新增：通用美化类和布局工具 */
/* =============================== */

/* -------- 布局工具 -------- */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start { display: flex; align-items: flex-start; gap: 12px; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.flex-col { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }

/* -------- 间距工具 -------- */
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-4 { margin-bottom: 4px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mr-8 { margin-right: 8px; }

/* -------- 文字样式 -------- */
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 20px; }
.text-3xl { font-size: 24px; }
.text-4xl { font-size: 32px; }
.text-5xl { font-size: 42px; }
.text-gray { color: var(--text-gray); }
.text-light { color: var(--text-light); }
.text-dark { color: var(--text-dark); }
.text-white { color: white; }
.text-muted { color: #9ca3af; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* -------- 卡片美化 -------- */
.card-hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }
.card-glow { box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15); }

/* -------- 渐变背景 -------- */
.bg-gradient-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-yellow { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.bg-gradient-blue { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.bg-gradient-green { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); }
.bg-gradient-pink { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.bg-gradient-orange { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.bg-gradient-purple { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }

/* -------- 装饰元素 -------- */
.decor-dot { width: 200px; height: 200px; border-radius: 50%; position: absolute; opacity: 0.1; }
.decor-dot-1 { background: white; top: -50%; right: -30%; }
.decor-dot-2 { background: white; bottom: -30%; left: -20%; width: 150px; height: 150px; }

/* -------- 圆角工具 -------- */
.rounded-sm { border-radius: 4px; }
.rounded-md { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-xl { border-radius: 16px; }
.rounded-2xl { border-radius: 20px; }

/* -------- 首页产品卡片 -------- */
.home-product-card { height: 100%; display: flex; flex-direction: column; }
.home-product-image { height: 200px; overflow: hidden; border-radius: 12px 12px 0 0; }
.home-product-info { padding: 20px; display: flex; flex-direction: column; }
.home-product-title { font-size: 16px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.home-product-summary { font-size: 13px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 12px; color: #6b7280; }
.home-price-value { font-size: 18px; font-weight: 700; }
.home-product-meta { font-size: 12px; color: #9ca3af; }
@media (max-width: 600px) {
    .home-product-image { height: 120px; }
    .home-product-info { padding: 10px; }
    .home-product-title { font-size: 13px; line-height: 1.4; }
    .home-product-summary { font-size: 11px; line-height: 1.5; margin-bottom: 8px; }
    .home-price-value { font-size: 15px; }
    .home-product-meta { font-size: 10px; }
}

/* -------- 平台特色卡片 -------- */
.feature-card { text-align: center; padding: 24px 16px; border-radius: 12px; border: none; }
.home-feature-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 28px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) {
    .feature-card { padding: 16px 12px; }
    .feature-card h3 { font-size: 14px; }
    .feature-card p { font-size: 12px; }
    .home-feature-icon { width: 48px; height: 48px; font-size: 22px; margin-bottom: 12px; }
}
@media (max-width: 400px) {
    .home-feature-icon { width: 40px; height: 40px; font-size: 18px; }
}

/* -------- 产品详情页 -------- */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; position: relative; }
.detail-back-btn { position: absolute; top: 0; right: 340px; z-index: 10; display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 10px 18px; border-radius: 12px; box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35); font-size: 14px; font-weight: 500; }
.detail-title { font-size: 28px; font-weight: 700; color: var(--text-dark); margin: 16px 0; line-height: 1.4; }
.detail-meta { display: flex; align-items: center; gap: 16px; color: var(--text-gray); font-size: 14px; }
.detail-price-box { display: flex; align-items: center; gap: 16px; padding: 28px; background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-radius: 16px; border: 1px solid #fbbf24; }
.detail-price-value { font-size: 42px; font-weight: 800; color: #92400e; }
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-sidebar { order: 2; }
    .detail-main { order: 1; }
    .detail-back-btn { position: relative; top: auto; right: auto; margin-bottom: 16px; }
}
@media (max-width: 600px) {
    .detail-grid { gap: 16px; }
    .detail-title { font-size: 20px; }
    .detail-meta { flex-wrap: wrap; gap: 8px; font-size: 12px; }
    .detail-price-box { flex-direction: column; gap: 12px; padding: 20px; }
    .detail-price-box .btn { width: 100%; }
    .upload-preview { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* -------- 个人中心 -------- */
.profile-card { border: 2px solid transparent; background: white; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.profile-balance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.profile-balance-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3); }
.profile-recharge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.profile-recharge-btn { padding: 16px; text-align: center; }
@media (max-width: 900px) {
    .profile-balance-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .profile-recharge-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------- 订单列表 -------- */
.orders-quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.orders-quick-item { padding: 16px; text-align: center; }
.order-card { background: white; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.order-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.order-item { display: flex; align-items: center; gap: 16px; }
.order-product-image, .order-item-image { width: 80px; height: 80px; max-width: 80px; max-height: 80px; object-fit: cover; border-radius: 12px; flex-shrink: 0; display: block; }
.order-footer { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-color); }
@media (max-width: 600px) {
    .order-item { flex-direction: column; align-items: flex-start; gap: 12px; }
    .order-footer { flex-wrap: wrap; }
}

/* -------- 余额页面 -------- */
/* -------- 登录注册页 -------- */
.auth-card { max-width: 520px; margin: 0 auto; }
.auth-caption { color: var(--text-light); text-align: center; margin-top: 16px; }
.captcha-row { display: flex; gap: 12px; align-items: center; width: 100%; }
.captcha-wrapper .captcha-input {
    width: 120px !important;
    max-width: 120px !important;
    min-width: 120px !important;
    flex-shrink: 0;
}

.captcha-wrapper .captcha-input-small {
    width: 90px !important;
    max-width: 90px !important;
    min-width: 90px !important;
    flex-shrink: 0;
}
.captcha-image { width: 120px; height: 42px; cursor: pointer; border-radius: 8px; flex-shrink: 0; }
.captcha-image-small { width: 110px; height: 40px; cursor: pointer; border-radius: 8px; border: 1px solid #e5e7eb; flex-shrink: 0; display: block; }

@media (max-width: 480px) {
    .captcha-wrapper {
        flex-wrap: wrap;
        gap: 8px;
    }
    .captcha-input {
        width: calc(100% - 140px) !important;
        max-width: none !important;
        min-width: auto !important;
    }
    .captcha-img {
        width: 120px;
        height: 42px;
    }
}

/* -------- 图片上传预览 -------- */
.upload-item { cursor: pointer; }
.upload-item:hover img { transform: scale(1.03); }
.upload-item img { transition: transform 0.2s ease; }

/* -------- 后台管理页面表格相关 -------- */
.data-table-toolbar { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; }
.data-table-toolbar-title { font-size: 16px; font-weight: 600; color: var(--text-dark); margin: 0; }
.admin-btn-add { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%); color: #fff; border-radius: 12px; font-size: 14px; font-weight: 500; text-decoration: none; transition: all 0.3s ease; }
.admin-btn-add:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35); }
.admin-sort-wrapper { display: flex; align-items: center; gap: 6px; }
.admin-sort-value { background: #e5e7eb; padding: 2px 10px; border-radius: 6px; font-size: 12px; color: #6b7280; }
.admin-sort-input { width: 30px !important; padding: 1px 2px !important; font-size: 11px !important; text-align: center; border: 1px solid #ddd; border-radius: 3px; height: 20px !important; }
.admin-sort-btn { padding: 4px 8px; font-size: 11px; border-radius: 4px; }
.admin-cover-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.admin-cover-placeholder { width: 50px; height: 50px; background: #f3f4f6; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }

/* -------- 底部声明 -------- */
.site-footer {
    padding: 1px 1px;
    margin-top: 24px;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: #f59e0b;
    font-weight: 600;
    margin: 6px 0;
    line-height: 1.6;
}
.admin-title-link { color: var(--primary-color); font-weight: 500; text-decoration: none; }
.admin-title-link:hover { text-decoration: underline; }
.admin-table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-status-published { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(16, 185, 129, 0.15); color: #10b981; }
.admin-status-draft { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.admin-status-offline { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(156, 163, 175, 0.15); color: #6b7280; }
.admin-role-admin { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.admin-role-seller { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(79, 172, 254, 0.15); color: #4facfe; }
.admin-role-user { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; background: rgba(156, 163, 175, 0.15); color: #6b7280; }
.admin-svip-badge { display: flex; flex-direction: column; gap: 4px; }
.admin-svip-permanent { font-size: 10px; color: #8b5cf6; font-weight: 500; }
.admin-svip-days { font-size: 10px; color: #6b7280; font-weight: 500; }
.admin-svip-expired { font-size: 10px; color: #ef4444; font-weight: 500; }
.admin-mb-0 { margin-bottom: 0; }
.admin-form-group { flex: 1; }
.admin-form-group-sm { width: 100px; flex-shrink: 0; }
.admin-form-label { display: block; font-size: 13px; color: var(--text-gray); margin-bottom: 6px; }
.admin-category-form-body { padding: 20px; background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.02) 100%); border-bottom: 1px solid var(--border-light); }
.admin-order-no { font-family: monospace; color: var(--text-gray); font-size: 13px; }
.admin-text-muted { color: var(--text-light); font-size: 12px; }
.text-success { color: #10b981; }
.text-danger { color: #ef4444; }
.font-semibold { font-weight: 600; }
.text-primary { color: var(--primary-color); }
/* -------- cleanup清理页面 -------- */
.cleanup-page { max-width: 800px; margin: 0 auto; background: rgba(255, 255, 255, 0.95); border-radius: 24px; padding: 32px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.6); }
.cleanup-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.cleanup-stat-box { background: linear-gradient(135deg, #fff 0%, #f8fafc 100%); border-radius: 16px; padding: 20px; text-align: center; border: 1px solid var(--border-color); }
.cleanup-stat-number { font-size: 32px; font-weight: 700; color: var(--primary-color); margin-bottom: 4px; }
.cleanup-stat-label { font-size: 13px; color: var(--text-gray); }
.cleanup-stat-box.warning .cleanup-stat-number { color: #f59e0b; }
.cleanup-stat-box.success .cleanup-stat-number { color: #10b981; }
.cleanup-warning-box { background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(245, 158, 11, 0.05) 100%); border: 1px solid rgba(245, 158, 11, 0.2); border-radius: 12px; padding: 16px; margin-bottom: 24px; }
.cleanup-warning-title { margin: 0 0 8px 0; color: #d97706; font-size: 14px; font-weight: 600; }
.cleanup-warning-text { margin: 0; color: #92400e; font-size: 13px; }
.cleanup-file-list { background: #fff; border-radius: 12px; border: 1px solid var(--border-color); max-height: 300px; overflow-y: auto; }
.cleanup-file-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-size: 13px; }
.cleanup-file-item:last-child { border-bottom: none; }
.cleanup-file-name { color: var(--text-dark); flex: 1; }
.cleanup-file-size { color: var(--text-gray); font-size: 12px; }
.cleanup-empty { text-align: center; padding: 48px 20px; }
.cleanup-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.cleanup-empty-text { font-size: 14px; color: var(--text-gray); }
.cleanup-subtitle { color: var(--text-gray); margin-bottom: 24px; }
.cleanup-section-title { font-size: 16px; font-weight: 600; color: var(--text-dark); margin-bottom: 12px; }
.cleanup-margin-bottom { margin-bottom: 16px; }
.cleanup-alert { margin-top: 24px; padding: 16px; border-radius: 12px; }
.cleanup-alert.success { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.cleanup-alert.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
/* -------- 管理后台统计卡片 -------- */
.admin-stat-success { color: #10b981; }
.admin-stat-warning { color: #f59e0b; }
.admin-stat-border { border-left: 1px solid var(--border-light); padding-left: 16px; }
.admin-stat-small-label { font-size: 12px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.admin-stat-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.admin-stat-label { color: #9ca3af; margin-right: 2px; }
.admin-stat-divider { color: #e5e7eb; }
.admin-card-form { padding: 20px; }
.admin-card-form-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.admin-card-form-group { width: 160px; }
.admin-card-form-group-sm { width: 120px; }
.admin-card-form-label { display: block; font-size: 13px; color: var(--text-gray); margin-bottom: 8px; }
.admin-generated-box { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 24px; border-radius: 16px; margin-bottom: 24px; }
.admin-generated-title { font-size: 16px; font-weight: 600; color: white; margin-bottom: 16px; }
.admin-generated-subtitle { font-size: 14px; opacity: 0.8; }
.admin-code-item { background: white; padding: 14px 18px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; }
.admin-code-text { font-family: monospace; font-size: 14px; color: var(--text-dark); font-weight: 500; }
.admin-code-value { color: #10b981; font-weight: 700; font-size: 14px; }
.admin-table-filter { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.admin-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-filter-select { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 8px; background: white; font-size: 13px; }
.admin-export-row { display: flex; gap: 12px; align-items: center; }
.admin-code-list { display: grid; gap: 12px; max-height: 300px; overflow-y: auto; }
.admin-table-margin { margin-bottom: 24px; }

@media (max-width: 768px) {
    .page-title {
        padding-left: 58px;
        text-align: left;
    }
}

@media (max-width: 390px) {
    .page-title {
        font-size: 22px;
    }
}
