/*
Theme Name: shenhuo
Theme URI: https://shenhuodalu.com
Author: 您的名字
Description: 神火大陆游戏官网主题
Version: 1.0
*/

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #0a0a0f; color: #e0e0e0; line-height: 1.6; }

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

/* ===== 防止导航栏遮挡内容 ===== */
main { padding-top: 140px; }

/* ===== 导航栏 ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 10px 0; transition: all 0.3s ease; }
.site-header.scrolled { background: rgba(10,10,15,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212,175,55,0.2); }
.main-nav { display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-block; flex-shrink: 0; width: 115px; height: 115px; transition: transform 0.3s ease; }
.logo:hover { transform: scale(1.05); }
.logo img { width: 115px; height: 115px; object-fit: contain; display: block; }
.nav-links { display: flex; list-style: none; gap: 35px; align-items: center; margin: 0; }
.nav-links a { color: #e0e0e0; text-decoration: none; font-size: 18px; font-weight: 500; transition: color 0.3s; letter-spacing: 1px; }
.nav-links a:hover { color: #d4af37; }
.nav-links a i { margin-right: 6px; font-size: 14px; color: #d4af37; }
.nav-download { background: linear-gradient(135deg, #d4af37, #b8860b); color: #0a0a0f !important; padding: 8px 22px; border-radius: 25px; font-weight: 700 !important; transition: transform 0.3s, box-shadow 0.3s; }
.nav-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,0.4); color: #0a0a0f !important; }
.nav-download i { color: #0a0a0f !important; }

/* ===== Hero 区（背景轮播） ===== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero .hero-swiper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero .hero-swiper .swiper-slide { width: 100%; height: 100%; }
.hero .hero-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::before { content: ''; position: absolute; inset: 0; background: rgba(10, 10, 15, 0.5); z-index: 1; }
.hero-content { text-align: center; z-index: 2; position: relative; padding: 40px 20px; }
.hero-pagination { position: absolute; bottom: 30px; left: 0; width: 100%; z-index: 10; text-align: center; }
.hero-pagination .swiper-pagination-bullet { width: 14px; height: 14px; background: rgba(255,255,255,0.4); opacity: 1; margin: 0 6px !important; border-radius: 50%; transition: all 0.3s; }
.hero-pagination .swiper-pagination-bullet-active { background: #d4af37; transform: scale(1.2); }
.hero-title { font-size: clamp(48px, 10vw, 96px); font-weight: bold; background: linear-gradient(135deg, #d4af37, #f4e4bc, #d4af37); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 10px; letter-spacing: 8px; }
.hero-subtitle { font-size: 20px; color: #ccc; margin-bottom: 30px; letter-spacing: 4px; }
.hero-classes { display: flex; justify-content: center; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.class-tag { display: inline-flex; align-items: center; gap: 10px; padding: 10px 28px; border: 1px solid rgba(212,175,55,0.6); background: rgba(10,10,15,0.4); backdrop-filter: blur(4px); color: #d4af37; border-radius: 30px; font-size: 15px; font-weight: 500; transition: all 0.3s ease; }
.class-tag:hover { background: rgba(212,175,55,0.15); border-color: #d4af37; transform: translateY(-3px); }
.class-icon-img { width: 24px; height: 24px; object-fit: contain; display: inline-block; }
.cta-button { display: inline-block; padding: 15px 50px; background: linear-gradient(135deg, #d4af37, #b8860b); color: #0a0a0f; text-decoration: none; font-weight: bold; font-size: 18px; border-radius: 30px; transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 20px rgba(212,175,55,0.3); }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(212,175,55,0.5); }

/* ===== 通用区块 ===== */
section { padding: 80px 0; }
.section-title { font-size: 36px; color: #d4af37; text-align: center; margin-bottom: 20px; }
.section-desc { text-align: center; color: #888; margin-bottom: 50px; }

/* ===== 视听盛宴 ===== */
.media-section { padding: 80px 0; background: #0f0a1a; }
.media-wrapper { display: flex; gap: 20px; justify-content: center; align-items: flex-start; max-width: 1300px; margin: 0 auto; }
.media-video, .media-screenshots { flex: 0 0 640px; width: 640px; height: 450px; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 8px 32px rgba(0,0,0,0.6); position: relative; }
.media-video iframe { width: 100%; height: 100%; border: none; display: block; }
.video-tip { position: absolute; bottom: 12px; right: 16px; color: rgba(255,255,255,0.7); font-size: 13px; background: rgba(0,0,0,0.5); padding: 4px 12px; border-radius: 20px; pointer-events: none; backdrop-filter: blur(4px); }
.screenshots-swiper { width: 100%; height: 100%; }
.screenshots-swiper .swiper-slide { width: 100%; height: 100%; }
.screenshots-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swiper-button-prev, .swiper-button-next { color: #fff !important; background: rgba(0,0,0,0.4) !important; width: 36px !important; height: 36px !important; border-radius: 50% !important; }
.swiper-button-prev::after, .swiper-button-next::after { font-size: 16px !important; }
.swiper-pagination-bullet { background: #fff !important; opacity: 0.6 !important; }
.swiper-pagination-bullet-active { background: #d4af37 !important; opacity: 1 !important; }

/* ===== 攻略 & 活动 ===== */
.news-section { padding: 80px 0; background: #0f0a1a; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.news-col { background: #1a1520; padding: 30px; border-radius: 12px; border: 1px solid #333; }
.news-col h3 { color: #d4af37; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }
.more-link { color: #d4af37; font-size: 14px; text-decoration: none; }
.news-list { list-style: none; }
.news-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.news-list li a { color: #ccc; text-decoration: none; transition: color 0.3s; }
.news-list li a:hover { color: #d4af37; }
.news-list .post-date { color: #666; font-size: 13px; white-space: nowrap; margin-left: 15px; }

/* ===== 游戏介绍（职业） ===== */
.about-section { padding: 80px 0; background: #0a0a0f; }
.about-content { max-width: 900px; margin: 0 auto 40px; color: #ccc; font-size: 16px; line-height: 1.9; }
.about-content p { margin-bottom: 18px; }
.about-content strong { color: #d4af37; }

.classes-section { padding: 60px 0; background: #0a0a0f; }
.classes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.class-card { background: linear-gradient(135deg, #151520, #1e1a2e); padding: 40px 30px; border-radius: 16px; text-align: center; border: 1px solid #333; transition: transform 0.3s, border-color 0.3s; }
.class-card:hover { transform: translateY(-10px); border-color: #d4af37; }
.class-icon { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; border: 2px solid rgba(212,175,55,0.4); background: rgba(10,10,15,0.5); display: flex; align-items: center; justify-content: center; transition: border-color 0.3s, transform 0.3s; }
.class-card:hover .class-icon { border-color: #d4af37; transform: scale(1.08); }
.class-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.class-card h3 { color: #d4af37; margin-bottom: 15px; }
.class-card p { color: #aaa; font-size: 14px; }

/* ===== 游戏特色 ===== */
.features-section { padding: 80px 0; background: #0f0a1a; }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.feature-card { background: #151520; padding: 40px; border-radius: 16px; border: 1px solid #333; transition: border-color 0.3s; }
.feature-card:hover { border-color: #d4af37; }
.feature-icon { font-size: 40px; margin-bottom: 20px; }
.feature-card h3 { color: #d4af37; margin-bottom: 15px; }
.feature-card p { color: #aaa; }

/* ===== 下载区 ===== */
.download-section { background: linear-gradient(135deg, #0f0a1a, #1a1520); }
.download-buttons { text-align: center; }
.download-btn.main-btn { display: inline-block; padding: 18px 60px; background: linear-gradient(135deg, #d4af37, #b8860b); color: #0a0a0f; text-decoration: none; font-weight: bold; font-size: 20px; border-radius: 30px; transition: transform 0.3s, box-shadow 0.3s; letter-spacing: 2px; }
.download-btn.main-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(212,175,55,0.4); }

/* ===== 推荐阅读（原友情链接区域） ===== */
.friends-section { padding: 40px 0 30px; background: #080810; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.friends-title { color: #888; font-size: 16px; margin-bottom: 16px; letter-spacing: 2px; }
.friend-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; }
.friend-links a { color: #666; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.friend-links a:hover { color: #d4af37; }

/* ===== 底部权威信息 ===== */
.site-footer { background: #06060e; padding: 35px 0 25px; text-align: center; border-top: 1px solid rgba(212, 175, 55, 0.15); }
.site-footer .container { display: flex; flex-direction: column; gap: 10px; }
.footer-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; }
.site-footer p { color: #666; font-size: 13px; margin: 0; }
.footer-copyright { color: #888 !important; }
.footer-company { color: #666 !important; }
.footer-icp a { color: #666; text-decoration: none; transition: color 0.3s; }
.footer-icp a:hover { color: #d4af37; text-decoration: underline; }
.footer-license { color: #555; font-size: 12px !important; }
.footer-age { color: #888 !important; font-size: 14px !important; }
.age-badge { display: inline-block; background: #d4af37; color: #0a0a0f; padding: 0 10px; border-radius: 4px; font-weight: bold; font-size: 14px; line-height: 22px; }
.footer-health { background: rgba(255, 255, 255, 0.02); padding: 10px 20px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.04); }
.health-text { color: #555 !important; font-size: 12px !important; letter-spacing: 1px; }
.footer-links { margin-top: 4px; }
.footer-links a { color: #666; text-decoration: none; font-size: 13px; transition: color 0.3s; }
.footer-links a:hover { color: #d4af37; text-decoration: underline; }
.footer-links .divider { color: #333; font-size: 13px; }
.footer-address { color: #444 !important; font-size: 12px !important; letter-spacing: 0.5px; }

/* ===== 汉堡菜单按钮 ===== */
.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 30px; height: 22px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1001; }
.hamburger span { display: block; width: 100%; height: 3px; background: #d4af37; border-radius: 3px; transition: all 0.3s ease; transform-origin: center; }
.hamburger.active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* ===== 分类归档页样式 ===== */
.archive-page { padding-top: 150px; padding-bottom: 60px; min-height: 60vh; background: #0a0a0f; }
.archive-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.archive-title { font-size: 32px; color: #d4af37; margin-bottom: 10px; }
.archive-desc { color: #888; margin-bottom: 30px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.archive-item { background: #151520; padding: 20px; border-radius: 12px; border: 1px solid #222; transition: border-color 0.3s, transform 0.3s; }
.archive-item:hover { border-color: #d4af37; transform: translateY(-5px); }
.archive-thumb { border-radius: 8px; overflow: hidden; margin-bottom: 15px; }
.archive-thumb img { width: 100%; height: auto; display: block; }
.archive-item h2 { font-size: 18px; margin-bottom: 8px; }
.archive-item h2 a { color: #e0e0e0; text-decoration: none; transition: color 0.3s; }
.archive-item h2 a:hover { color: #d4af37; }
.archive-meta { color: #666; font-size: 13px; margin-bottom: 10px; }
.archive-item p { color: #aaa; font-size: 14px; margin-bottom: 12px; }
.archive-readmore { color: #d4af37; text-decoration: none; font-size: 14px; transition: color 0.3s; }
.archive-readmore:hover { color: #f4e4bc; }
.archive-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.archive-pagination a, .archive-pagination .current { padding: 8px 16px; border: 1px solid #333; border-radius: 6px; color: #ccc; text-decoration: none; transition: all 0.3s; }
.archive-pagination .current { background: #d4af37; color: #0a0a0f; border-color: #d4af37; }
.archive-pagination a:hover { border-color: #d4af37; color: #d4af37; }

/* ===== 动画 ===== */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s, transform 0.8s; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */

/* 1320px 以下 */
@media (max-width: 1320px) {
    .media-video, .media-screenshots { flex: 0 0 48%; width: 48%; height: auto; aspect-ratio: 640/450; }
    .media-wrapper { flex-wrap: wrap; justify-content: center; }
}

/* 1024px 以下 */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: 1fr; }
    .classes-grid { grid-template-columns: repeat(2, 1fr); }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 768px 以下（手机端） */
@media (max-width: 768px) {
    main { padding-top: 100px; }
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(10,10,15,0.98); backdrop-filter: blur(12px); flex-direction: column; justify-content: center; align-items: center; gap: 25px; padding: 40px 20px; transition: all 0.4s ease; transform: translateX(100%); opacity: 0; visibility: hidden; z-index: 1000; margin: 0; list-style: none; }
    .nav-links.active { transform: translateX(0); opacity: 1; visibility: visible; }
    .nav-links li { margin: 0; }
    .nav-links a { font-size: 20px; color: #e0e0e0; text-decoration: none; transition: color 0.3s; padding: 8px 20px; display: inline-flex; align-items: center; gap: 10px; }
    .nav-links a:hover { color: #d4af37; }
    .nav-links a i { font-size: 20px; color: #d4af37; }
    .nav-links .nav-download { background: linear-gradient(135deg, #d4af37, #b8860b); color: #0a0a0f !important; padding: 12px 35px; border-radius: 30px; font-weight: 700; margin-top: 10px; }
    .nav-links .nav-download i { color: #0a0a0f !important; }
    .media-video, .media-screenshots { flex: 0 0 100%; width: 100%; aspect-ratio: 640/450; }
    .media-wrapper { gap: 16px; }
    .classes-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 36px; }
    section { padding: 50px 0; }
    .section-title { font-size: 28px; }
    .hero-pagination .swiper-pagination-bullet { width: 10px; height: 10px; }
    .footer-row { flex-direction: column; gap: 4px; }
    .footer-health { padding: 8px 12px; }
    .health-text { font-size: 11px !important; }
    .site-footer { padding: 25px 0 18px; }
    .archive-page { padding-top: 120px; }
    .archive-title { font-size: 24px; }
}

/* 480px 以下 */
@media (max-width: 480px) {
    .hero-title { font-size: 28px; letter-spacing: 4px; }
    .hero-subtitle { font-size: 16px; }
    .class-tag { padding: 6px 16px; font-size: 13px; }
    .cta-button { padding: 12px 30px; font-size: 16px; }
}