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

:root {
    --primary: #ff6b35;
    --primary-dark: #e55a2b;
    --secondary: #4ecdc4;
    --accent: #ffe66d;
    --bg-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --bg-card: rgba(255, 255, 255, 0.98);
    --bg-card-dark: rgba(30, 30, 50, 0.95);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --text-white: #ffffff;
    --border-radius: 12px;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
}

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

.top-bar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary), #ff8c42);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.logo-text {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--primary);
}

.nav-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 69px;
    z-index: 999;
}

.nav-menu-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
}

.nav-item {
    padding: 15px 25px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
}

.nav-item.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: rgba(255, 107, 53, 0.08);
}

.hero {
    text-align: center;
    padding: 60px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), #ff8c42);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card.coming-soon {
    opacity: 0.7;
    cursor: not-allowed;
}

.category-card.coming-soon:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

.category-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.category-info {
    padding: 25px;
}

.category-info h2 {
    font-size: 1.8em;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background: linear-gradient(135deg, #636e72, #b2bec3);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 500;
}

.badge-orange {
    background: linear-gradient(135deg, var(--primary), #ff8c42);
}

.category-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 1em;
}

.category-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 0.9em;
}

.view-btn {
    background: linear-gradient(135deg, var(--primary), #ff8c42);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.view-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: var(--transition);
}

.view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

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

.view-btn.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    box-shadow: none;
}

.category-header {
    text-align: center;
    padding: 50px 20px;
    color: white;
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, transparent 70%);
    animation: pulse 10s ease-in-out infinite;
}

.category-header h1 {
    font-size: 3em;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.category-intro {
    font-size: 1.2em;
    opacity: 0.95;
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 35px;
    font-size: 1.05em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.gallery-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff8c42);
    transform: scaleX(0);
    transition: var(--transition);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-info {
    padding: 22px;
}

.gallery-item-info h3 {
    font-size: 1.4em;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.gallery-item-info p {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

.gallery-item-info .image-count {
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.9em;
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 20px;
}

.back-section {
    text-align: center;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.back-btn {
    display: inline-block;
    background: var(--bg-card);
    color: var(--primary);
    padding: 16px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05em;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary-dark);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.4s ease;
}

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

.lightbox-content {
    position: relative;
    margin: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
}

.close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 20px;
    font-size: 1.3em;
    font-weight: 600;
}

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 20px;
    color: var(--text-white);
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.95em;
    margin-bottom: 10px;
}

.footer-icp {
    color: var(--text-light);
    font-size: 0.9em;
}

.footer-icp a {
    color: var(--text-light);
    text-decoration: none;
}

.footer-icp a:hover {
    color: var(--primary);
}

.subcategories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.subcategory-card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.subcategory-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4ecdc4, var(--secondary));
    transform: scaleX(0);
    transition: var(--transition);
}

.subcategory-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

.subcategory-image {
    height: 200px;
    overflow: hidden;
}

.subcategory-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.subcategory-card:hover .subcategory-image img {
    transform: scale(1.1);
}

.subcategory-info {
    padding: 22px;
}

.subcategory-info h2 {
    font-size: 1.5em;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subcategory-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 18px;
    font-size: 0.95em;
}

.subcategory-stats {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 0.9em;
}

.character-detail {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.character-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 45px;
}

.main-image {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.main-image img {
    max-width: 100%;
    max-height: 380px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.character-detail:hover .main-image img {
    transform: scale(1.02);
}

.character-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.character-info h2 {
    font-size: 2em;
    color: var(--primary);
    margin-bottom: 22px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.character-info h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #ff8c42);
    border-radius: 2px;
}

.character-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.character-stats {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 107, 53, 0.05);
    border-radius: 10px;
    transition: var(--transition);
}

.stat-item:hover {
    background: rgba(255, 107, 53, 0.1);
    transform: translateX(5px);
}

.stat-label {
    font-weight: 600;
    color: var(--text-primary);
    min-width: 85px;
    font-size: 1em;
}

.stat-item span {
    color: var(--text-secondary);
    font-size: 1em;
}

.image-navigator {
    display: flex;
    align-items: center;
    padding: 30px 45px;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-btn {
    background: linear-gradient(135deg, var(--primary), #ff8c42);
    color: white;
    border: none;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 1.6em;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.nav-images {
    flex: 1;
    margin: 0 35px;
    overflow: hidden;
}

.nav-images-container {
    display: flex;
    gap: 18px;
    transition: var(--transition);
}

.nav-image-item {
    flex: 0 0 120px;
    height: 85px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-image-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-image-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.3);
    transform: translateY(-5px);
}

.nav-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.material-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    z-index: 1;
}

.tag-vip {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a2e;
}

.tag-free {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    color: white;
}

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

.tag-exclusive {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

.material-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.price {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary);
}

.price-free {
    color: #4ecdc4;
}

.points {
    color: #ffd700;
    font-weight: 600;
}

.points span {
    font-weight: 500;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .top-bar-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    .categories, .gallery, .subcategories {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo-section {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu-content {
        justify-content: flex-start;
    }
    
    .nav-item {
        padding: 12px 18px;
        font-size: 0.9em;
    }
    
    .hero h1 {
        font-size: 2.5em;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .gallery {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .category-header h1 {
        font-size: 2.3em;
    }
    
    .category-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .subcategories {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .character-main {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 25px;
    }
    
    .main-image {
        min-height: 300px;
    }
    
    .image-navigator {
        padding: 25px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-images {
        margin: 20px 0;
        width: 100%;
    }
    
    .nav-image-item {
        flex: 0 0 90px;
        height: 65px;
    }
    
    .close {
        top: 20px;
        right: 30px;
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .category-info h2 {
        font-size: 1.5em;
    }
}
