/* =====================================
   Hollow Knight 攻略站 - 主样式文件
   ===================================== */

/* CSS 变量定义 */
:root {
    /* 颜色主题 - 基于游戏的暗黑风格 */
    --primary-color: #2c1810;
    --secondary-color: #8b4513;
    --accent-color: #ffa500;
    --text-light: #f5f5dc;
    --text-dark: #2c1810;
    --bg-dark: #1a1a1a;
    --bg-light: #f8f8f8;
    --border-color: #444;
    --shadow-dark: rgba(0, 0, 0, 0.7);
    --shadow-light: rgba(0, 0, 0, 0.1);
    
    /* 字体设置 */
    --font-primary: 'Noto Sans SC', sans-serif;
    --font-heading: 'Cinzel', serif;
    
    /* 尺寸变量 */
    --max-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================
   导航栏样式
   ===================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid var(--accent-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* 汉堡菜单 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: var(--transition);
}

/* =====================================
   英雄区域样式
   ===================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hollow-knight-bg.jpg') center/cover no-repeat;
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    margin-top: 80px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px var(--shadow-dark);
    line-height: 1.2;
}

.hero-text {
    max-width: 580px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(245, 245, 220, 0.9);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-weight: 500;
}

.hero-description {
    font-size: 1rem;
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* 英雄区域视频样式 */
.hero-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    background: var(--bg-dark);
    aspect-ratio: 16 / 9;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.knight-img {
    width: 100%;
    max-width: 400px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
}

.fallback-image {
    display: none;
}

/* =====================================
   区域通用样式
   ===================================== */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--accent-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

/* =====================================
   快速导航区域
   ===================================== */
.quick-nav {
    padding: 5rem 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.nav-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.nav-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.nav-card p {
    color: #666;
    line-height: 1.6;
}

/* =====================================
   最新攻略区域
   ===================================== */
.latest-guides {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.guide-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.guide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.guide-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-color);
    backdrop-filter: blur(5px);
}

.guide-icon-img {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 5px rgba(255, 165, 0, 0.5));
}

.guide-content {
    padding: 1.5rem;
}

.guide-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.guide-content p {
    color: rgba(245, 245, 220, 0.8);
    margin-bottom: 1rem;
}

.guide-difficulty {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
}

/* =====================================
   游戏统计区域
   ===================================== */
.game-stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* =====================================
   页脚样式
   ===================================== */
.footer {
    background: var(--bg-dark);
    padding: 3rem 0 1rem;
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(245, 245, 220, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(245, 245, 220, 0.6);
}

/* =====================================
   响应式设计
   ===================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        z-index: 1000;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    /* 移动端视频优化 */
    .hero-video-container {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        aspect-ratio: 16 / 9;
    }

    .nav-grid,
    .guides-grid,
    .stats-grid,
    .game-info-cards {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    /* 视频响应式 */
    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-container iframe {
        height: 200px;
    }

    /* 发售信息响应式 */
    .platforms {
        justify-content: center;
    }

    .platform {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .nav-card,
    .guide-card {
        margin: 0 10px;
    }

    /* 小屏幕视频优化 */
    .hero-video-container {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .platforms {
        justify-content: center;
        gap: 0.25rem;
    }

    .platform {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
}

/* =====================================
   滚动行为优化
   ===================================== */
html {
    scroll-behavior: smooth;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff8c00;
}

/* =====================================
   动画效果
   ===================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-card,
.guide-card,
.stat-item {
    animation: fadeInUp 0.6s ease-out;
}

/* 发售信息样式 */
.release-info {
    margin-top: 1.5rem;
    text-align: center;
}

.release-tag {
    background: linear-gradient(135deg, var(--accent-color), #ff8c00);
    color: var(--text-dark);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
    }
    to {
        box-shadow: 0 4px 25px rgba(255, 165, 0, 0.7);
    }
}

.platforms {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.platform {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 视频区域样式 */
.video-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-family: var(--font-heading);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.video-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}

.video-container:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.video-container iframe {
    width: 100%;
    height: 280px;
    border: none;
}

.video-info {
    padding: 1rem;
}

.video-info h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.video-info p {
    color: rgba(255, 255, 220, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* NEW标签样式 */
.new-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4444, #ff6666);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    animation: pulse 2s infinite;
}

/* 游戏信息卡片 */
.game-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.info-card h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    padding-bottom: 0.5rem;
}

.info-card p {
    color: rgba(255, 255, 220, 0.9);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.info-card strong {
    color: var(--accent-color);
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* =====================================
   任务系统区域样式
   ===================================== */
.quest-system {
    padding: 5rem 0;
    background: var(--bg-light);
    color: var(--text-dark);
}

.quest-system .section-title {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.quest-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.quest-type-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.quest-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.quest-type-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05), rgba(255, 165, 0, 0.1));
}

.quest-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.quest-type-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.quest-type-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.quest-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =====================================
   武器工具系统样式
   ===================================== */
.tools-system {
    padding: 5rem 0;
    background: var(--bg-dark);
}

.tools-categories {
    margin-bottom: 3rem;
}

.tools-category {
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tools-category h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    padding-bottom: 0.5rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tool-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tool-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.tool-item h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tool-item p {
    color: rgba(255, 255, 220, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 资源信息区域 */
.resource-info {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-info h3 {
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 165, 0, 0.3);
    padding-bottom: 0.5rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    text-align: center;
}

.resource-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.resource-card h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.resource-card p {
    color: rgba(255, 255, 220, 0.9);
    line-height: 1.6;
}
