/* Basic Style Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Import Modern Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Basic Variables Definition - Modern Dark Theme */
:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #ec4899;
    --secondary-dark: #db2777;
    --secondary-light: #f472b6;
    --accent-color: #10b981;
    --accent-dark: #059669;
    --danger-color: #ef4444;
    --text-color: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --bg-primary: #1e293b;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-card: #0f172a;
    --bg-hover: #1e293b;
    --border-color: #334155;
    --border-light: #475569;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Animation Styles */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明背景 */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-out;
    pointer-events: none; /* 默认不拦截事件 */
    opacity: 0; /* 默认隐藏 */
}

.loading.active {
    pointer-events: all; /* 激活时拦截事件 */
    opacity: 1; /* 激活时显示 */
}

/* Notification Bar Styles - Hidden on paymentSuccess page */
.notification {
    position: fixed;
    top: -80px;
    left: 0;
    width: 100%;
    padding: 16px 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
    z-index: 999;
    transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: none; /* 隐藏通知条 */
}

.notification.show {
    top: 70px; /* 导航栏下方 */
    display: block; /* 显示通知条 */
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 12px;
}

.notification.error {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
}

.notification-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification-message {
    font-size: 0.95rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* API Error Message Styles */
.api-error {
    background-color: #fee2e2;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 0 0 8px 8px;
    margin: 10px auto 15px;
    border-left: none;
    border-bottom: 4px solid #b91c1c;
    display: none;
    animation: slideInDown 0.3s ease-out;
    position: relative;
    z-index: 10;
    width: 85%;
    max-width: 380px;
    box-sizing: border-box;
    text-align: center;
}

.api-error.show {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
        height: 0;
        padding: 0 16px;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        height: auto;
        padding: 12px 16px;
    }
}

/* Responsive Notification Design */
@media (max-width: 768px) {
    .notification {
        padding: 12px 0;
    }
    
    .notification-content {
        gap: 8px;
        padding: 0 15px;
    }
    
    .notification-message {
        font-size: 0.85rem;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Image Viewer Loading Animation */
.image-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    display: none; /* 默认隐藏 */
}

.image-loading .loading-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255, 255, 255, 0.1);
    border-top: 6px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Bar Styles */
.navbar {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* 响应式设计 - 在小屏幕上隐藏导航链接中的隐私政策和服务条款 */
    @media (max-width: 768px) {
        .nav-links {
            flex-wrap: wrap;
        }
    }
    border-bottom: 1px solid var(--border-color);
}

/* Auth Buttons Container */
.auth-buttons {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

/* Button Base Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

/* Primary Button Style */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button Style */
.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-color);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.nav-links a.active {
    color: var(--primary-color);
    background-color: rgba(99, 102, 241, 0.1);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 1px;
}

/* Main Content Styles */
main {
    padding: 40px 0;
}

/* Detail Page Back Button Container */
.back-button-container {
    margin-top: 30px;
    margin-bottom: 20px;
}

h1 {
    margin-bottom: 40px;
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Category Container Styles */
.category-wrapper {
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    transform-origin: top;
}

.category-wrapper:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Category Title Styles */
.category-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
    padding: 0px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.category-header:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.category-header:hover::before {
    left: 100%;
}

.category-title {
    font-size: 1rem !important;
    font-weight: 400 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.category-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: pulse-light 2s infinite;
}

@keyframes pulse-light {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.category-count {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(0, 0, 0, 0.2);
    padding: 4px 16px;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

.category-count:hover {
    background-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

/* Category Content Area */
.category-content {
    padding: 24px;
    transition: all var(--transition-slow);
}

/* Category Tag Styles */
.category-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 8px;
    color: white;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    transition: all var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    margin-right: 6px;
    opacity: 0.8;
}

.category-tag:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Different Category Tag Colors */
.category-tag.celebrity {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.category-tag.anime {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.category-tag.historical {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.category-tag.chinese-cartoon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.category-tag.fictional {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Search Container Styles */
.search-container {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.search-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Search Input Styles */
.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 280px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), inset 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Search Icon Styles */
.search-icon {
    position: absolute;
    left: 20px;
    font-size: 18px;
    color: var(--text-muted);
    z-index: 1;
    transition: all var(--transition-normal);
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    transition: all var(--transition-normal);
}

.search-input::placeholder {
    color: var(--text-muted);
    font-style: normal;
    transition: color var(--transition-normal);
}

.search-input:focus::placeholder {
    color: var(--border-light);
}

/* Control Buttons Container */
.control-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Search Button */
.search-btn {
    padding: 16px 24px;
    border: none;
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, var(--primary-color), #4f46e5);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #4f46e5, var(--primary-color));
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.4);
}

/* Modern Button Styles - Redesigned */
.btn {
    padding: 16px 24px;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Add Button Glow Effect */
.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg);
    transition: transform 0.6s ease-out;
    z-index: 0;
}

.btn:hover::after {
    transform: translateX(100%) rotate(45deg);
}

/* Ensure Button Content is Above Glow */
.btn span {
    position: relative;
    z-index: 1;
}

/* Primary Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Secondary Button Styles */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: var(--white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-light), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Neutral Button Styles */
.btn-neutral {
    background: linear-gradient(135deg, var(--border-color), var(--border-light));
    color: var(--text-color);
}

.btn-neutral:hover {
    background: linear-gradient(135deg, var(--border-light), rgba(255, 255, 255, 0.2));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-neutral:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Button Icon Styles */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
}

/* No Results Message Styles - Modern Design */
.no-results-message {
    text-align: center;
    padding: 80px 40px;
    color: var(--text-secondary);
    font-size: 18px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    margin: 40px auto;
    max-width: 800px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.no-results-message:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.no-results-message::before {
    content: '🔍';
    display: block;
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

.no-results-message h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1.5rem;
    font-weight: 600;
}

.no-results-message p {
    max-width: 600px;
    margin: 0 auto 24px;
    line-height: 1.6;
    opacity: 0.9;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Table Container Styles */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

/* Add Styles for Responsive Tables */
.table-and-pagination {
    position: relative;
    overflow: hidden;
}

/* Page Transition Animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes fadeIn {}

@keyframes slideIn {}

.slide-up {
    animation: slideUp 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.pulse {
    animation: pulse 2s infinite;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Element Hover Tooltip Animation */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Table Styles */
.image-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.image-table th, .image-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.image-table tr {
    background-color: transparent;
}

.image-table tr:last-child td {
    border-bottom: none;
}

/* Person Card Styles - Modern Design */
.person-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.person-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.person-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.person-card:hover::before {
    transform: scaleX(1);
}

.person-logo {
    display: none;
}

.person-name {
    font-weight: normal;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    margin-bottom: 2px;
    /* 姓名在中间 */
    order: 2;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
}

.person-card:hover .person-name {
    color: var(--primary-light);
}

.image-count {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    /* 数量在姓名下方 */
    order: 3;
}

.update-time {
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 10px;
    /* 更新时间在数量下方 */
    order: 4;
    display: block;
    background-color: rgba(99, 102, 241, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.person-preview {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.person-card:hover .person-preview {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
    flex-wrap: wrap;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.pagination button {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.pagination button:hover:not(:disabled), .pagination button.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(99, 102, 241, 0.3);
}

.pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
}

/* Page Jump Styles */
.page-jump-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.page-jump-input {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    width: 65px;
    text-align: center;
}

.page-jump-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.page-jump-button {
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: var(--white);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

.page-jump-button:hover {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(16, 185, 129, 0.3);
}

/* Modal Styles - Modern Design */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
    animation: fadeIn var(--transition-normal);
}

/* 确保detail页面的弹窗背景色与首页一致 */
#detail-page .modal,
.detail-container .modal {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

/* Register Modal Specific Styles */
.register-modal-content {
    max-width: 450px;
    margin: 5% auto;
    overflow: visible;
    position: relative;
}

.modal-title {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Login Modal Specific Styles */
#login-modal .register-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-modal .modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-modal .register-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#login-modal .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#login-modal .form-label {
    text-align: left;
    width: 55%;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust form width for login modal */
#login-modal .form-input,
#login-modal .password-input-container {
    width: 55%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure password input inside container has same width */
#login-modal .password-input-container .form-input {
    width: 100%;
    box-sizing: border-box;
}

/* Register Modal Specific Styles - Make it consistent with Login Modal */
#register-modal .register-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#register-modal .modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#register-modal .modal-title {
    text-align: center !important;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    position: relative;
}

#register-modal .register-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#register-modal .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#register-modal .form-label {
    text-align: left;
    width: 55%;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust form width for register modal */
#register-modal .form-input,
#register-modal .password-input-container {
    width: 55%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure password input inside container has same width */
#register-modal .password-input-container .form-input {
    width: 100%;
    box-sizing: border-box;
}

/* Reset Password Modal Specific Styles - Make it consistent with Login Modal */
#reset-password-modal .register-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#reset-password-modal .modal-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#reset-password-modal .modal-title {
    text-align: center !important;
    color: var(--text-color);
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    position: relative;
}

#reset-password-modal .register-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#reset-password-modal .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#reset-password-modal .form-label {
    text-align: left;
    width: 55%;
    margin-bottom: 8px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust form width for reset password modal */
#reset-password-modal .form-input,
#reset-password-modal .password-input-container {
    width: 55%;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Ensure password input inside container has same width */
#reset-password-modal .password-input-container .form-input {
    width: 100%;
    box-sizing: border-box;
}

/* Form Styles */
.register-form {
    width: 100%;
}

/* Forgot Password Link Style */
.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-normal);
    white-space: nowrap;
    margin: auto 0;
    padding: 0 8px;
}

.forgot-password-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.form-group {
    margin-bottom: 12px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
}

.form-input {
    width: 80%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    font-size: 14px;
    outline: none;
    transition: all var(--transition-normal);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

.form-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 20px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    justify-content: center;
}

/* 密码输入框容器样式 */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 80%;
}

/* 密码输入框样式调整 */
.password-input-container .form-input {
  padding-right: 40px;
  width: 100%;
}

/* 切换密码可见性按钮样式 */
.toggle-password-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.toggle-password-btn:hover {
  opacity: 1;
}

.toggle-password-btn i {
  pointer-events: none;
}

.form-actions .btn {
    flex: 1;
    max-width: 150px;
    padding: 12px 20px;
    font-size: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: var(--border-radius-lg);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: slideIn var(--transition-normal);
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    z-index: 20;
}

.close-btn:hover {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.5);
    transform: rotate(90deg);
}

.modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 70px 20px 20px;
    min-height: 600px;
    position: relative;
    box-sizing: border-box;
}

.nav-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    font-size: 2rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.image-container {
    position: relative;
    max-width: 100%;
    max-height: 60vh;
    overflow: hidden;
    text-align: center;
    transition: all var(--transition-slow);
    display: flex;
    align-items: center;
    justify-content: center;
}

#current-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

#download-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
}

#download-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md), 0 0 15px rgba(99, 102, 241, 0.3);
}

#download-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.image-info {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    color: var(--text-secondary);
    padding: 40px 0;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 10px 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Responsive Style Optimization */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .image-table {
        font-size: 0.95rem;
    }
    
    /* 减少表格列数以适应中等屏幕 */
    .image-table td {
        width: 33.33%;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .nav-links {
        margin-top: 8px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    /* Auth buttons responsive */
    .auth-buttons {
        margin-left: 0;
        margin-top: 12px;
        justify-content: center;
        width: 100%;
    }

    .auth-buttons .btn {
        flex: 1;
        justify-content: center;
        font-size: 0.9rem;
        padding: 8px 12px;
    }

    .nav-links li {
        margin: 0;
    }

    h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        text-align: center;
    }

    .search-container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-input-wrapper {
        min-width: 100%;
    }

    .control-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .modal-content {
        margin: 15% auto 5% auto;
        width: 95%;
        padding: 0;
    }
    
    .api-error {
        padding: 10px 12px;
        font-size: 0.9rem;
        width: 90%;
        max-width: 350px;
        margin: 8px auto 15px;
    }

    .nav-btn {
        font-size: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .modal-body {
        min-height: 300px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    /* 移动设备优化：表格列数调整为2列 */
    .image-table td {
        width: 50%;
    }
    
    /* 简化人物卡片布局 */
    .person-card {
        padding: 10px;
        min-height: 120px;
    }
    
    .person-name {
        font-size: 12px;
        height: auto;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: normal;
    }
    
    .image-count {
        font-size: 12px;
    }
    
    .person-preview {
        max-height: 80px;
    }
    
    /* 简化分页控件 */
    .pagination {
        justify-content: center;
    }
    
    .page-jump-container {
        display: none; /* 移动设备上隐藏页码跳转 */
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
        padding: 0 5px;
    }

    h1 {
        font-size: 1.5rem;
        padding: 0 10px;
    }

    .category-header {
        padding: 12px 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .category-content {
        padding: 12px;
    }

    .person-card {
        padding: 8px;
        min-height: 100px;
    }

    .person-name {
        font-size: 11px;
        height: 20px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: normal;
    }

    .image-count {
        font-size: 11px;
        margin-bottom: 5px;
    }

    .person-preview {
        max-height: 70px;
        width: 100%;
        object-fit: contain;
    }

    /* 小屏幕上表格改为单列显示 */
    .image-table td {
        width: 100%;
        display: block;
    }

    .pagination {
        gap: 4px;
        padding: 10px 5px;
    }

    .pagination button {
        padding: 6px 10px;
        font-size: 12px;
        min-width: auto;
    }

    .page-jump-container {
        display: none;
    }
    
    /* 优化模态框在小屏幕上的显示 */
    .register-modal-content {
        margin: 5% auto;
        width: 98%;
        padding: 0;
    }
    
    .modal-body {
        padding: 60px 15px 15px;
        min-height: 500px;
    }
    
    .api-error {
        padding: 8px 10px;
        font-size: 0.85rem;
        width: 92%;
        max-width: 320px;
        margin: 6px auto 15px;
    }
    
    .close-btn {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .nav-btn {
        font-size: 1.2rem;
        width: 40px;
        height: 40px;
    }
    
    #current-image {
        max-height: 60vh;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* 优化搜索框大小 */
    .search-input {
        font-size: 14px;
        padding: 10px;
    }
    
    /* 简化分类标题显示 */
    .category-title {
        font-size: 16px;
    }
    
    .category-count {
        font-size: 13px;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    padding: 32px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all var(--transition-fast);
    position: relative;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
}

.footer-link:hover {
    color: var(--primary-light);
    background-color: rgba(99, 102, 241, 0.1);
    transform: translateY(-1px);
}

.footer-divider {
    color: var(--border-color);
    font-size: 16px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}

/* Responsive Footer Design */
@media (max-width: 768px) {
    .footer {
        padding: 24px 0;
        margin-top: 20px;
    }
    
    .footer-links {
        gap: 12px;
    }
    
    .footer-link {
        font-size: 13px;
        padding: 3px 6px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .footer-copyright {
        font-size: 13px;
    }
}

/* VIP Payment Page Styles */
.vip-payment-container {
    max-width: 1200px;
    margin: 0 auto;
}

.vip-header {
    text-align: center;
    margin-bottom: 50px;
}

.vip-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.vip-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.vip-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.vip-plan-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 2px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vip-plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-light);
}

.vip-plan-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.2);
}

.vip-plan-card.popular::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 6px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.plan-header {
    margin-bottom: 24px;
}

.plan-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}

.price-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-light);
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
}

.plan-saving {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
}

.plan-features {
    margin-bottom: 32px;
    flex: 1;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--accent-color);
    flex-shrink: 0;
}

.subscribe-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.subscribe-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.4);
}

.vip-faq {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.vip-faq h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 32px;
}

.faq-item {
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    text-align: left;
    transition: all var(--transition-normal);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question i {
    transition: transform var(--transition-normal);
    color: var(--text-secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-answer p {
    padding: 0 0 16px 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive VIP Payment Page Design */
@media (max-width: 768px) {
    .vip-title {
        font-size: 2rem;
    }
    
    .vip-subtitle {
        font-size: 1rem;
    }
    
    .vip-plans {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .vip-plan-card {
        padding: 24px;
    }
    
    .vip-faq {
        padding: 24px;
    }
    
    .vip-faq h2 {
        font-size: 1.5rem;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .vip-title {
        font-size: 1.8rem;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .plan-features li {
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .subscribe-btn {
        font-size: 1rem;
        padding: 14px;
    }
}

/* Tab Styles */
.tab-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-header::-webkit-scrollbar {
    display: none;
}

.tab-button {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    white-space: nowrap;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

.tab-content {
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
    opacity: 1;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}