/* GAG Recipes - Dark Gaming Theme Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ffc8;
    --secondary-color: #ffcc00;
    --accent-color: #ff6b6b;
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2a2a2a;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --border-color: #333;
    --shadow-neon: 0 0 12px rgba(0, 255, 200, 0.1);
    --shadow-glow: 0 0 20px rgba(0, 255, 200, 0.3);
    --border-radius: 0.5rem;
    --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary) !important;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* 全局防白色背景保护 */
* {
    background-color: inherit;
}

html {
    background-color: var(--bg-primary) !important;
}

/* 确保所有可能的白色背景都被覆盖 */
div, section, main, header, footer, nav {
    background-color: transparent !important;
}

div[style*="background: white"],
div[style*="background: #fff"],
div[style*="background: #ffffff"],
div[style*="background-color: white"],
div[style*="background-color: #fff"],
div[style*="background-color: #ffffff"] {
    background-color: var(--bg-secondary) !important;
}

/* Header Styles - 确保无白色背景 */
.header {
    background: var(--bg-secondary) !important;
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-neon);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    text-shadow: 0 0 10px var(--primary-color);
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-color));
    transition: all 0.3s ease;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 12px var(--primary-color));
    transform: scale(1.05);
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(0, 255, 200, 0.1);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.nav-link.active {
    color: var(--bg-primary);
    background: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Hero Banner */
.hero-banner {
    text-align: center;
    margin-bottom: 2rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    position: relative;
}

.hero-banner-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
}

.hero-banner:hover .hero-banner-image {
    transform: scale(1.02);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.2), transparent);
    animation: shine 4s infinite;
    z-index: 1;
}



/* Smart Content Tabs */
.content-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background: rgba(45, 212, 191, 0.1);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: rgba(45, 212, 191, 0.1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

/* Video Preview Cards */
.featured-videos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.video-preview-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-preview-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}



.video-preview-card .video-info {
    padding: 1rem;
}

/* Tips Cards */
.tips-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tip-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.tip-text h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tip-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Page Headers */
.hero, .page-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: var(--shadow-neon);
    position: relative;
    overflow: hidden;
}

/* Value Props Section - 高对比度优化 */
.value-props {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(45, 212, 191, 0.1) 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.value-props::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.value-props h5 {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.value-props ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.value-props li {
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
}

.value-props li::before {
    content: '✨';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    opacity: 0.8;
}

.value-props li {
    padding-left: 3rem;
}

.value-props li:hover {
    background: rgba(45, 212, 191, 0.2);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.value-props strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero::before, .page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 200, 0.1), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.page-title, .hero h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
    position: relative;
    z-index: 1;
}

.page-subtitle, .hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.3);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background: var(--secondary-color);
    color: var(--bg-primary);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Content Sections */
.featured-section, .content-section, .filters-section, .recipes-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-neon);
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

/* Recipe Cards */
.featured-grid, .recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.recipe-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-neon);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

.recipe-card.prismatic {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) padding-box,
                linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57) border-box;
    animation: prismaticBorder 3s ease-in-out infinite;
}

.recipe-card.divine {
    border-color: #9333ea;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.recipe-card.legendary {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

@keyframes prismaticBorder {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.recipe-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.recipe-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--text-primary);
}

.recipe-rarity {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.rarity-common { background: #6b7280; color: white; }
.rarity-uncommon { background: #10b981; color: white; }
.rarity-rare { background: #3b82f6; color: white; }
.rarity-legendary { 
    background: linear-gradient(45deg, #ffd89b, #19547b); 
    color: white; 
    box-shadow: 0 0 10px rgba(255, 216, 155, 0.5);
}
.rarity-mythical { 
    background: linear-gradient(45deg, #f093fb, #f5576c); 
    color: white;
    box-shadow: 0 0 10px rgba(240, 147, 251, 0.5);
}
.rarity-divine { 
    background: linear-gradient(45deg, #667eea, #764ba2); 
    color: white;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}
.rarity-prismatic { 
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57); 
    color: white; 
    animation: prismaticGlow 3s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

@keyframes prismaticGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.recipe-ingredients, .detail-group {
    margin-bottom: 1rem;
}

.ingredients-title, .detail-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ingredients-list, .ingredients-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ingredient-tag {
    background: var(--primary-color);
    color: var(--bg-primary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recipe-stats, .recipe-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.recipe-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.detail-group {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.recipe-time, .cook-time {
    color: var(--secondary-color);
    font-weight: 600;
}

.recipe-actions {
    display: flex;
    gap: 0.5rem;
}

.rewards-list {
    list-style: none;
    margin-top: 0.5rem;
}

.rewards-list li {
    padding: 0.2rem 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.rewards-list li::before {
    content: "🎁 ";
    margin-right: 0.5rem;
}

/* Filters */
.filters-section {
    background: var(--bg-secondary);
}

.filters-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.filter-select, .search-input, input, select {
    padding: 0.6rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.filter-select:focus, .search-input:focus, input:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 200, 0.3);
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Tables */
.recipes-table, table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    margin-top: 1rem;
}

.recipes-table th, .recipes-table td, th, td {
    border: 1px solid var(--border-color);
    padding: 0.8rem;
    text-align: left;
}

.recipes-table th, th {
    background: var(--bg-secondary);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.recipes-table tr:hover, tr:hover {
    background: rgba(0, 255, 200, 0.05);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.results-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.recipe-name {
    font-weight: 600;
    color: var(--primary-color);
}

.ingredients-list-table, .table-ingredients {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Strategy Cards */
.strategy-grid, .tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.strategy-card, .tip-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.strategy-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

/* 2x2 Strategy Grid */
.strategy-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.strategy-card-2x2 {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(45, 212, 191, 0.1) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.strategy-card-2x2:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-neon);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(45, 212, 191, 0.2) 100%);
}

.strategy-card-2x2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(45, 212, 191, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.strategy-card-2x2:hover::before {
    opacity: 1;
}

.strategy-icon-large {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.5));
}

.strategy-card-2x2 .strategy-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.strategy-card-2x2 .strategy-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive adjustments for 2x2 grid */
@media (max-width: 768px) {
    .strategy-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
    }
    
    .strategy-card-2x2 {
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .strategy-icon-large {
        font-size: 2.5rem;
    }
    
    .strategy-card-2x2 .strategy-title {
        font-size: 1.2rem;
    }
    
    /* Hero Banner responsive */
    .hero-banner {
        margin-bottom: 1.5rem;
        border-radius: var(--border-radius);
    }
    
    .hero-banner-image {
        max-width: 100%;
        border-radius: var(--border-radius-sm);
    }
    

    
    /* Mobile performance optimizations */
    .hero-banner-image {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    
    /* Reduce animations on mobile for better performance */
    .strategy-card-2x2::before,
    .hero-banner::before {
        animation: none;
    }
    
    /* Optimize touch targets */
    .btn {
        min-height: 44px;
        padding: 12px 24px;
    }
    
    /* Mobile tabs optimization */
    .content-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        flex: 1;
        min-width: 120px;
    }
    

    
    .tips-cards {
        grid-template-columns: 1fr;
    }
    
    /* Improve text readability on mobile */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
}

/* Accessibility Panel */
.accessibility-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.accessibility-toggle:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.accessibility-options {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-tertiary);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    min-width: 250px;
    box-shadow: var(--shadow-neon);
    display: none;
    animation: fadeIn 0.3s ease;
}

.accessibility-options.show {
    display: block;
}

.accessibility-options h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

.option-group {
    margin-bottom: 1rem;
}

.option-group label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.option-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.option-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.accessibility-btn {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.accessibility-btn:hover {
    background: var(--secondary-color);
}

/* High Contrast Mode */
body.high-contrast {
    --text-primary: #ffffff;
    --text-secondary: #f0f0f0;
    --bg-primary: #000000;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --primary-color: #00ff00;
    --secondary-color: #ffff00;
    --border-color: #ffffff;
}

body.high-contrast .value-props li {
    background: #2a2a2a;
    border-color: #00ff00;
    color: #ffffff;
}

body.high-contrast .step-card {
    background: #2a2a2a;
    border-color: #00ff00;
}

/* Font Size Classes */
body.font-size-small {
    font-size: 14px;
}

body.font-size-medium {
    font-size: 16px;
}

body.font-size-large {
    font-size: 18px;
}

body.font-size-extra-large {
    font-size: 20px;
}

/* Contrast Level Classes */
body.contrast-level-1 {
    /* Default contrast */
}

body.contrast-level-2 .value-props li {
    background: rgba(45, 212, 191, 0.2);
    border-color: rgba(45, 212, 191, 0.5);
    color: var(--text-primary);
}

body.contrast-level-3 .value-props li {
    background: rgba(45, 212, 191, 0.3);
    border-color: var(--primary-color);
    color: var(--text-primary);
    font-weight: 600;
}

.tip-item {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.strategy-icon, .tip-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: drop-shadow(0 0 5px currentColor);
}

.strategy-title, .tip-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tip-text {
    color: var(--bg-primary);
    line-height: 1.4;
    font-size: 1rem;
}

.strategy-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-image {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.footer-logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-section-title {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 200, 0.3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 200, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .page-title, .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .recipe-details {
        grid-template-columns: 1fr;
    }
    
    .strategy-grid, .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .hero, .page-header {
        padding: 2rem 1rem;
    }
    
    .content-section, .filters-section, .recipes-section {
        padding: 1.5rem;
    }
    
    .recipe-card {
        padding: 1rem;
    }
    
    .page-title, .hero h1 {
        font-size: 1.8rem;
    }
    
    .recipes-table, table {
        font-size: 0.8rem;
    }
    
    .recipes-table th, .recipes-table td, th, td {
        padding: 0.5rem 0.3rem;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Introduction Content Styles */
.intro-content {
    text-align: center;
}

.intro-content h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.intro-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.step-card {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(45, 212, 191, 0.05) 100%);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, rgba(45, 212, 191, 0.1) 100%);
}

.step-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(45, 212, 191, 0.2);
}

.step-card p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 500;
}

.value-props {
    text-align: left;
    max-width: 600px;
    margin: 2rem auto 0;
}

.value-props h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.value-props ul {
    list-style: none;
    padding: 0;
}

.value-props li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    line-height: 1.5;
}

.value-props li::before {
    content: "🎯";
    position: absolute;
    left: 0;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* About Section Styles */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px);
}

.about-card:hover::before {
    opacity: 1;
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 8px var(--primary-color));
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-mission {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--border-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-mission::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.about-mission h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
}

.about-mission p {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.3);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .about-mission {
        padding: 2rem 1.5rem;
    }
    
    .mission-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Rare Benefits 2x2 Grid */
.rare-benefits-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    max-width: 900px;
}

.rare-benefit-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    color: var(--bg-primary);
}

.rare-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
    z-index: 1;
}

.rare-benefit-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 255, 200, 0.4);
    border-color: var(--accent-color);
}

.benefit-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.3));
    z-index: 2;
    position: relative;
}

.rare-benefit-card h4 {
    color: var(--bg-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
    position: relative;
}

.rare-benefit-card p {
    color: var(--bg-primary);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    font-weight: 500;
    z-index: 2;
    position: relative;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 768px) {
    .rare-benefits-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        max-width: 100%;
        margin: 1.5rem auto;
    }
    
    .rare-benefit-card {
        padding: 1.5rem;
    }
    
    .benefit-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .rare-benefit-card h4 {
        font-size: 1.1rem;
    }
}

/* Simplified Cards for Featured Recipes */
.featured-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.featured-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.featured-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.featured-card.prismatic {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-tertiary), var(--bg-tertiary)) padding-box,
                linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57) border-box;
    animation: prismaticBorder 3s ease-in-out infinite;
}

.featured-card.divine {
    border-color: #9333ea;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
}

.featured-card.legendary {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

@keyframes prismaticBorder {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.featured-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.featured-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Simple Table Styles for All Recipes */
.simple-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-neon);
    margin: 2rem 0;
}

.simple-table th,
.simple-table td {
    padding: 1rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.simple-table th {
    background: var(--bg-secondary);
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.simple-table tr:hover {
    background: rgba(0, 255, 200, 0.05);
}

.simple-table tr:last-child td {
    border-bottom: none;
}

/* Rarity badges for simple display */
.rarity-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Main navigation improvements */
.main-nav {
    background: var(--bg-secondary);
    padding: 1rem 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2rem;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav h1 {
    color: var(--primary-color);
    font-size: 2rem;
    text-shadow: 0 0 10px var(--primary-color);
}

.main-nav nav {
    display: flex;
    gap: 1rem;
}

.main-nav a {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: 600;
}

.main-nav a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 聊天系统和反馈系统共存优化 */
.feedback-trigger {
    /* 将反馈按钮移到右下角更靠边的位置 */
    bottom: 20px !important;
    right: 20px !important;
    z-index: 999 !important;
}

/* 反馈面板位置优化 */
.feedback-panel {
    /* 将反馈面板移到右上角，避免覆盖主内容 */
    position: fixed !important;
    top: 80px !important;
    right: 20px !important;
    bottom: auto !important;
    width: 320px !important;
    max-height: 500px !important;
    z-index: 1001 !important;
}

/* 移动端聊天和反馈按钮优化 */
@media (max-width: 768px) {
    .chat-trigger {
        bottom: 100px !important;
        left: 15px !important;
    }
    
    .feedback-trigger {
        bottom: 20px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }
    
    /* 移动端反馈面板优化 */
    .feedback-panel {
        top: 70px !important;
        right: 15px !important;
        left: 15px !important;
        width: auto !important;
        max-height: 60vh !important;
    }
    
    /* 确保聊天面板不被其他元素遮挡 */
    .chat-panel.open {
        z-index: 1002 !important;
    }
}

@media (max-width: 480px) {
    .chat-trigger {
        bottom: 90px !important;
        left: 10px !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .feedback-trigger {
        bottom: 15px !important;
        right: 10px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    /* 小屏幕反馈面板优化 */
    .feedback-panel {
        top: 60px !important;
        right: 10px !important;
        left: 10px !important;
        width: auto !important;
        max-height: 50vh !important;
    }
}

/* 聊天系统专用样式增强 */
.chat-panel {
    /* 确保在所有设备上都有良好的性能 */
    will-change: transform;
    backface-visibility: hidden;
}

.chat-messages {
    /* 优化滚动性能 */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 高对比度模式下的聊天系统优化 */
body.high-contrast .chat-panel {
    border-color: #00ff00 !important;
    background: #000000 !important;
}

body.high-contrast .chat-header {
    background: #00ff00 !important;
    color: #000000 !important;
}

body.high-contrast .message-content {
    border-color: #00ff00 !important;
}

body.high-contrast .chat-message.user .message-content {
    background: #00ff00 !important;
    color: #000000 !important;
}

/* 可访问性增强 */
.chat-trigger:focus,
.chat-send-btn:focus,
.quick-action-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* 减少动画以提高性能和可访问性 */
@media (prefers-reduced-motion: reduce) {
    .chat-trigger,
    .chat-panel,
    .chat-message,
    .typing-dots span {
        animation: none !important;
        transition: none !important;
    }
}

/* 紧凑型视频布局样式 */
.video-compact-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-neon);
}

.video-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-compact-card {
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.video-compact-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
}

.video-compact-thumbnail {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    cursor: pointer;
}

.video-compact-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-compact-thumbnail:hover img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-compact-thumbnail:hover .video-play-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(0, 255, 157, 0.4);
    transition: all 0.3s ease;
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 255, 157, 0.6);
}

.video-duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.video-compact-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.video-compact-info h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 8px rgba(45, 212, 191, 0.3);
}

.video-compact-info p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
    flex: 1;
}

/* 移动端紧凑视频样式 */
@media (max-width: 768px) {
    .video-compact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-compact-thumbnail {
        height: 200px;
    }
    
    .video-compact-info {
        padding: 1.25rem;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .video-compact-section {
        padding: 1.5rem;
    }
    
    .video-compact-thumbnail {
        height: 160px;
    }
    
    .video-compact-info {
        padding: 1rem;
    }
    
    .video-compact-info h4 {
        font-size: 1rem;
    }
    
    .video-compact-info p {
        font-size: 0.85rem;
    }
}