:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #a855f7;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at bottom, #1e293b 0%, #020617 100%);
    z-index: -1;
    overflow: hidden;
}

.stars-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 40% 80%, white, transparent);
    background-size: 200% 200%;
    animation: stars 20s linear infinite;
    opacity: 0.3;
}

@keyframes stars {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50%, -50%); }
}

/* Header Styles */
.site-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 2px;
}

.main-navigation {
    flex: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    z-index: 1001;
    position: relative;
}

.menu-icon {
    width: 30px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active .menu-icon:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-icon:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-icon:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.search-input {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 200px;
    outline: none;
}

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

.search-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.search-button:hover {
    color: var(--primary-color);
}

.user-action {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.user-action:hover {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Main Content */
.main-wrapper {
    padding: 3rem 0;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 2rem;
    margin-bottom: 5rem;
    animation: fadeInUp 1s ease-out;
}

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

.hero-content {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-image {
    animation: fadeInRight 1s ease-out;
}

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

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Comics Grid */
.comics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.comic-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out backwards;
}

.comic-card:nth-child(1) { animation-delay: 0.1s; }
.comic-card:nth-child(2) { animation-delay: 0.2s; }
.comic-card:nth-child(3) { animation-delay: 0.3s; }
.comic-card:nth-child(4) { animation-delay: 0.4s; }
.comic-card:nth-child(5) { animation-delay: 0.5s; }
.comic-card:nth-child(6) { animation-delay: 0.6s; }

.comic-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.comic-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.comic-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--darker-bg);
}

.comic-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.comic-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.comic-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.comic-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.comic-badge.finished {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.comic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comic-card:hover .comic-overlay {
    opacity: 1;
}

.read-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient-1);
    color: white;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1rem;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.comic-card:hover .read-btn {
    transform: scale(1);
}

.comic-details {
    padding: 1.5rem;
}

.comic-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.comic-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.comic-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comic-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Latest Updates */
.latest-updates-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.updates-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.update-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

.update-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.update-link {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.update-thumb {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.update-info {
    flex: 1;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.update-chapter {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.update-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Categories */
.categories-section {
    margin-bottom: 5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    background: rgba(99, 102, 241, 0.1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Comics Section */
.comics-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
}

/* Video Section */
.video-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out backwards;
}

.video-card:nth-child(1) { animation-delay: 0.1s; }
.video-card:nth-child(2) { animation-delay: 0.2s; }
.video-card:nth-child(3) { animation-delay: 0.3s; }

.video-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.video-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--darker-bg);
}

.video-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.video-details {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.video-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-views {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Features */
.features-section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .search-input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }
    
    .header-top {
        width: 100%;
    }
    
    .logo-area {
        flex: 1;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-navigation {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .main-navigation.active {
        max-height: 500px;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        width: 100%;
    }
    
    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(51, 65, 85, 0.5);
        width: 100%;
        text-align: left;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* 确保菜单按钮在移动设备上正确显示 */
    .menu-toggle {
        margin: 0;
        padding: 0.5rem;
    }
    
    .menu-icon {
        width: 24px;
        height: 2px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .comics-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .updates-list {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .comics-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-container {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
}

/* Library Page Styles */
.page-header-section {
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

/* Filter Section */
.filter-section {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.filter-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.filter-select {
    padding: 0.6rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Library Section */
.library-section {
    margin-bottom: 5rem;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.library-stats {
    font-size: 1rem;
    color: var(--text-secondary);
}

.library-stats strong {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(30, 41, 59, 0.8);
    padding: 0.25rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.view-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.view-btn.active {
    background: var(--gradient-1);
    color: white;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.library-grid.list-view {
    grid-template-columns: 1fr;
}

.library-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out backwards;
}

.library-card:nth-child(1) { animation-delay: 0.1s; }
.library-card:nth-child(2) { animation-delay: 0.2s; }
.library-card:nth-child(3) { animation-delay: 0.3s; }
.library-card:nth-child(4) { animation-delay: 0.4s; }
.library-card:nth-child(5) { animation-delay: 0.5s; }
.library-card:nth-child(6) { animation-delay: 0.6s; }

.library-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.library-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.library-grid.list-view .library-link {
    flex-direction: row;
}

.library-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 140%;
    overflow: hidden;
    background: var(--darker-bg);
    flex-shrink: 0;
}

.library-grid.list-view .library-thumbnail {
    width: 200px;
    padding-top: 0;
    height: 280px;
}

.library-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.library-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

.library-badge.hot {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.library-badge.new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.library-badge.finished {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.library-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.library-card:hover .library-overlay {
    opacity: 1;
}

.library-details {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.library-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.library-author {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.library-summary {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.library-grid.list-view .library-summary {
    -webkit-line-clamp: 2;
}

.library-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.library-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Pagination */
.pagination-section {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 1rem 1.5rem;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: var(--gradient-1);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-num {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    background: rgba(30, 41, 59, 0.8);
}

.page-num:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.page-num.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.page-dots {
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 0.5rem;
}

/* Responsive for Library Page */
@media (max-width: 768px) {
    .library-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .library-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .library-grid.list-view .library-link {
        flex-direction: column;
    }
    
    .library-grid.list-view .library-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .filter-panel {
        padding: 1.5rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .library-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .page-num {
        min-width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }
}

/* Categories Page Styles */
.categories-page-section {
    margin-bottom: 5rem;
}

.categories-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.category-page-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.category-page-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.category-page-image {
    position: relative;
    width: 100%;
    padding-top: 60%;
    overflow: hidden;
    background: var(--darker-bg);
}

.category-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.category-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-page-icon {
    font-size: 4rem;
    opacity: 0.9;
}

.category-page-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-page-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.category-page-count {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-page-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* Ranking Page Styles */
.ranking-tabs-section {
    margin-bottom: 3rem;
}

.ranking-tabs {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ranking-tab {
    padding: 0.75rem 2rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ranking-tab:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.ranking-tab.active {
    background: var(--gradient-1);
    border-color: transparent;
    color: white;
}

.ranking-content-section {
    margin-bottom: 5rem;
}

.ranking-tab-content {
    display: none;
}

.ranking-tab-content.active {
    display: block;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    transform: translateX(5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.ranking-item.rank-1,
.ranking-item.rank-2,
.ranking-item.rank-3 {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    border-color: var(--primary-color);
}

.ranking-number {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    color: white;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.ranking-item.rank-1 .ranking-number {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: var(--dark-bg);
    font-size: 1.75rem;
}

.ranking-item.rank-2 .ranking-number {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: var(--dark-bg);
    font-size: 1.75rem;
}

.ranking-item.rank-3 .ranking-number {
    background: linear-gradient(135deg, #cd7f32, #e6a857);
    color: white;
    font-size: 1.75rem;
}

.ranking-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.ranking-cover {
    width: 140px;
    height: 190px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.ranking-item:hover .ranking-cover {
    border-color: var(--primary-color);
}

.ranking-info {
    flex: 1;
}

.ranking-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ranking-author {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.ranking-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.ranking-stat {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Latest Page Styles */
.latest-timeline-section {
    margin-bottom: 5rem;
}

.update-date-group {
    margin-bottom: 3rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.update-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.update-date-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.update-count {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.update-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.update-item-full {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.update-item-full:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.update-link-full {
    display: flex;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
}

.update-cover-full {
    width: 100px;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.update-item-full:hover .update-cover-full {
    border-color: var(--primary-color);
}

.update-info-full {
    flex: 1;
}

.update-title-full {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.update-chapter-full {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.update-meta-full {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.update-time-full,
.update-author-full {
    display: flex;
    align-items: center;
}

/* About Section */
.about-section {
    margin-bottom: 5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

.about-image {
    animation: fadeInRight 1s ease-out;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--shadow-card);
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-bottom: 4rem;
}

.about-team {
    margin-bottom: 4rem;
    text-align: center;
}

.about-contact {
    text-align: center;
}

/* News Section */
.news-section {
    margin-bottom: 5rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.news-card:nth-child(1) { animation-delay: 0.1s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.3s; }
.news-card:nth-child(4) { animation-delay: 0.4s; }
.news-card:nth-child(5) { animation-delay: 0.5s; }

.news-link {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.news-thumbnail {
    width: 300px;
    flex-shrink: 0;
    background: var(--darker-bg);
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.news-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.news-date {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.news-summary {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive for new pages */
@media (max-width: 768px) {
    .categories-page-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .ranking-tabs {
        padding: 1rem;
    }
    
    .ranking-tab {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .ranking-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .ranking-link {
        flex-direction: column;
        text-align: center;
    }
    
    .ranking-cover {
        width: 120px;
        height: 160px;
    }
    
    .update-link-full {
        flex-direction: column;
    }
    
    .update-cover-full {
        width: 100%;
        height: 200px;
    }
    
    .update-date-group {
        padding: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .news-link {
        flex-direction: column;
    }
    
    .news-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .news-content {
        padding: 1.5rem;
    }
}

/* APP下载模块样式 */
.app-download-section {
    background: var(--bg-primary);
    padding: 5rem 0;
}

.app-download-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

/* PC端样式：左边图片，右边文案 */
@media (min-width: 769px) {
    .app-download-content {
        flex-direction: row;
    }
    
    .app-image {
        flex: 0 0 300px;
        text-align: center;
    }
    
    .app-info {
        flex: 1;
        text-align: left;
    }
}

.app-image {
    flex: 0 0 300px;
    text-align: center;
}

.app-icon {
    width: 200px;
    height: 200px;
    border-radius: 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.app-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.feature-icon {
    font-size: 1.25rem;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.download-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ios-button {
    background: #007AFF;
    color: white;
}

.android-button {
    background: #34A853;
    color: white;
}

.direct-button {
    background: var(--gradient-1);
    color: white;
}

.download-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.button-icon {
    font-size: 1.25rem;
}

.download-qrcode {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.qrcode-image {
    width: 100px;
    height: 100px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    background: white;
}

.qrcode-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

@media (max-width: 768px) {
    .app-download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .app-image {
        flex: 0 0 auto;
    }
    
    .app-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-button {
        width: 200px;
        justify-content: center;
    }
    
    .download-qrcode {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .categories-page-grid {
        grid-template-columns: 1fr;
    }
    
    .ranking-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .ranking-item.rank-1 .ranking-number,
    .ranking-item.rank-2 .ranking-number,
    .ranking-item.rank-3 .ranking-number {
        font-size: 1.5rem;
    }
    
    .update-date-group {
        padding: 1rem;
    }
}

/* Article Page Styles */
.article-page-section {
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.article-header {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.meta-icon {
    font-size: 1.1rem;
}

.article-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-tags {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.tags-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.tag-item {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.tag-item:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.article-nav {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
}

.nav-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

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

.nav-label {
    color: var(--text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
    flex: 1;
}

.nav-link:hover {
    color: var(--secondary-color);
}

.no-data {
    color: var(--text-muted);
}

.back-to-list {
    text-align: center;
    margin-top: 3rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.back-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.back-icon {
    font-size: 1.2rem;
}

/* Related Articles Section */
.related-articles-section {
    padding: 3rem 0;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
    margin-bottom: 3rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.related-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.related-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: var(--darker-bg);
}

.related-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.related-info {
    padding: 1.5rem;
}

.related-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.related-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive for Article Page */
@media (max-width: 768px) {
    .article-header {
        padding: 1.5rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .article-content {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .article-tags {
        padding: 1rem 1.5rem;
    }
    
    .article-nav {
        padding: 1rem 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-content {
        padding: 1rem;
    }
    
    .back-btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
}

