﻿/* ============================================
   逆序极乐 ESIDARAP - 首页样式
   ============================================ */

/* 英雄区域 */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px var(--space-xl) var(--space-2xl);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/bg_esidarap.png') center/cover no-repeat;
    opacity: 0.4;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 20, 37, 0.3) 0%,
        rgba(26, 20, 37, 0.6) 50%,
        rgba(26, 20, 37, 0.9) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-logo {
    margin-bottom: var(--space-lg);
}

.hero-logo img {
    width: 120px;
    height: 120px;
    border-radius: var(--border-radius);
    image-rendering: pixelated;
    box-shadow: 0 0 30px rgba(157, 78, 221, 0.4);
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #c4b5fd;
    margin-bottom: var(--space-xl);
    font-family: 'STKaiti', 'KaiTi', '楷体', serif;
    letter-spacing: 0.15em;
    text-shadow: 0 0 20px rgba(157, 78, 221, 0.5), 0 0 40px rgba(157, 78, 221, 0.3);
    animation: subtitleGlow 3s ease-in-out infinite;
}

@keyframes subtitleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(157, 78, 221, 0.5), 0 0 40px rgba(157, 78, 221, 0.3);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 30px rgba(157, 78, 221, 0.7), 0 0 60px rgba(157, 78, 221, 0.5);
        opacity: 1;
    }
}

/* 混沌主题副标题 */
[data-theme="chaos"] .hero-subtitle {
    color: #fca5a5;
    text-shadow: 0 0 20px rgba(217, 70, 92, 0.5), 0 0 40px rgba(217, 70, 92, 0.3);
    animation: subtitleGlowChaos 3s ease-in-out infinite;
}

@keyframes subtitleGlowChaos {
    0%, 100% {
        text-shadow: 0 0 20px rgba(217, 70, 92, 0.5), 0 0 40px rgba(217, 70, 92, 0.3);
        opacity: 0.9;
    }
    50% {
        text-shadow: 0 0 30px rgba(217, 70, 92, 0.7), 0 0 60px rgba(217, 70, 92, 0.5);
        opacity: 1;
    }
}

/* 统计数据区域 - 紧凑版 */
.stats-section {
    background: rgba(36, 26, 53, 0.6);
    border-top: 1px solid rgba(157, 78, 221, 0.1);
    border-bottom: 1px solid rgba(157, 78, 221, 0.1);
    padding: var(--space-md) 0;
    position: relative;
    z-index: 1;
}

.stats-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: 0 var(--space-xl);
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    background: rgba(42, 30, 61, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
}

.stat-card:hover {
    border-color: var(--color-accent);
}

.stat-icon {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 2px;
}

/* 关于模组区域 */
.about-section {
    background: rgba(42, 30, 61, 0.45);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.about-content {
    margin-bottom: var(--space-xl);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.8;
}

.about-content strong {
    color: var(--color-accent);
}

/* 外部链接 */
.external-links h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.link-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.link-btn:hover {
    border-color: var(--color-accent);
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-2px);
}

.link-btn.steam:hover {
    border-color: #1b2838;
    background: rgba(27, 40, 56, 0.3);
}

.link-btn.github:hover {
    border-color: #333;
    background: rgba(51, 51, 51, 0.3);
}

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

/* Boss区域 - 紧凑版 */
.boss-section {
    background: rgba(42, 30, 61, 0.45);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.boss-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.boss-category {
    margin-bottom: var(--space-lg);
}

.boss-category:last-child {
    margin-bottom: 0;
}

.boss-category h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
    border-left: 3px solid var(--color-accent);
}

.boss-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--space-sm);
}

.boss-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm);
    background: rgba(45, 31, 69, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.boss-item:hover {
    transform: translateY(-2px);
    border-color: var(--color-accent);
}

.boss-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    image-rendering: pixelated;
    margin-bottom: var(--space-xs);
}

.boss-item span {
    font-size: 0.75rem;
    color: var(--text-primary);
}

/* 物品分类区域 */
.items-section {
    background: rgba(42, 30, 61, 0.45);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.item-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-md);
}

.item-category {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(45, 31, 69, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.item-category:hover {
    transform: translateY(-3px);
    border-color: rgba(157, 78, 221, 0.25);
    background: rgba(157, 78, 221, 0.12);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.category-name {
    font-size: 0.875rem;
    color: var(--text-primary);
}

/* 新内容区域 */
.new-content-section {
    background: rgba(42, 30, 61, 0.45);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--border-radius);
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.new-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
}

.new-content-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(45, 31, 69, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.new-content-item:hover {
    border-color: rgba(157, 78, 221, 0.25);
    background: rgba(157, 78, 221, 0.12);
}

.new-content-icon {
    font-size: 1.25rem;
}

/* 紧凑版新内容区域 */
.new-content-section.compact {
    padding: var(--space-lg);
}

.new-content-section.compact h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.new-content-grid.compact {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: var(--space-sm);
}

.new-content-grid.compact .new-content-item {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    justify-content: center;
}

/* 外部链接板块 */
.external-links-section {
    background: rgba(42, 30, 61, 0.45);
    border: 1px solid rgba(157, 78, 221, 0.12);
    border-radius: var(--border-radius);
    padding: var(--space-lg);
    position: relative;
    z-index: 1;
}

.external-links-section h2 {
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.external-links-section .link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.external-links-section .link-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(45, 31, 69, 0.5);
    border: 1px solid rgba(157, 78, 221, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.external-links-section .link-btn:hover {
    border-color: rgba(157, 78, 221, 0.25);
    background: rgba(157, 78, 221, 0.12);
    transform: translateY(-2px);
}

.external-links-section .link-btn.steam:hover {
    border-color: rgba(27, 40, 56, 0.5);
    background: rgba(27, 40, 56, 0.3);
}

.external-links-section .link-icon {
    font-size: 1.25rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        padding: 80px var(--space-md) var(--space-xl);
    }
    
    .hero-logo img {
        width: 80px;
        height: 80px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        padding: 0 var(--space-md);
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .about-section,
    .boss-section,
    .items-section,
    .new-content-section {
        padding: var(--space-md);
    }
    
    .boss-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .item-categories {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .new-content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .link-buttons {
        flex-direction: column;
    }
    
    .link-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .boss-grid,
    .item-categories,
    .new-content-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   混沌主题首页样式 - 暗红色系
   ============================================ */

/* 混沌主题英雄区域背景 */
[data-theme="chaos"] .hero-bg {
    background: url('../assets/images/bg_chaos.png') center/cover no-repeat;
    opacity: 0.35;
}

[data-theme="chaos"] .hero-bg::after {
    background: linear-gradient(
        to bottom,
        rgba(26, 10, 10, 0.4) 0%,
        rgba(26, 10, 10, 0.7) 50%,
        rgba(26, 10, 10, 0.95) 100%
    );
}

[data-theme="chaos"] .hero-logo img {
    box-shadow: 0 0 30px rgba(217, 70, 92, 0.4);
}

/* 混沌主题卡片透明效果 */
[data-theme="chaos"] .stats-section {
    background: rgba(42, 16, 16, 0.4);
    border-color: rgba(217, 70, 92, 0.1);
}

[data-theme="chaos"] .stat-card {
    background: rgba(45, 20, 20, 0.4);
    border-color: rgba(217, 70, 92, 0.1);
}

[data-theme="chaos"] .stat-card:hover {
    border-color: rgba(217, 70, 92, 0.25);
}

[data-theme="chaos"] .about-section,
[data-theme="chaos"] .boss-section,
[data-theme="chaos"] .items-section,
[data-theme="chaos"] .new-content-section,
[data-theme="chaos"] .external-links-section {
    background: rgba(45, 20, 20, 0.35);
    border-color: rgba(217, 70, 92, 0.1);
}

[data-theme="chaos"] .item-category,
[data-theme="chaos"] .boss-item,
[data-theme="chaos"] .new-content-item,
[data-theme="chaos"] .link-btn {
    background: rgba(58, 21, 21, 0.4);
    border-color: rgba(217, 70, 92, 0.1);
}

[data-theme="chaos"] .item-category:hover,
[data-theme="chaos"] .boss-item:hover,
[data-theme="chaos"] .new-content-item:hover,
[data-theme="chaos"] .link-btn:hover {
    background: rgba(217, 70, 92, 0.12);
    border-color: rgba(217, 70, 92, 0.25);
}

[data-theme="chaos"] .boss-category h3 {
    border-color: rgba(217, 70, 92, 0.3);
}
