/* ============================================================
   game-content.css —— 游戏介绍相关页面公共样式
   抽取自 character-classes / gameplay / system-settings / game-settings
   前后台 iframe 预览共用，确保预览与前端一致
   ============================================================ */

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background-color: #000000;
    /* 背景图统一使用 /themes/<theme>/images/bg.webp（见各页面内覆盖样式及 header.ejs 全局 .bg-layer）；
       本文件为纯静态 css 无法取主题名，此处不再内联图片，避免 404 死引用 */
}

body {
    font-family: 'Arial', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #e0e0e0;
    background: transparent;
}

/* ---------- 布局容器 ---------- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ---------- 导航栏 ---------- */
.navbar {
    background: rgba(0, 0, 0, 0.2);
    padding: 5px 0;
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar h1 { font-size: 24px; font-weight: bold; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
    color: white; text-decoration: none; font-size: 14px;
    transition: all 0.3s; padding: 6px 16px; border-radius: 6px;
}
.nav-links a:hover { color: #1a1a2e; background: linear-gradient(90deg, #ffd700, #ff8c00); }
.nav-links a.active { color: #1a1a2e; background: linear-gradient(90deg, #ffd700, #ff8c00); font-weight: 600; }

/* ---------- 横幅 ---------- */
.banner {
    min-height: 370px; padding: 100px 0 140px; text-align: center;
    margin-top: 80px;
    /* 背景图见页面内覆盖：/themes/<theme>/images/bg.webp */
    background-size: auto; background-position: center top;
    background-repeat: no-repeat; background-color: black;
}
.banner h2 { font-size: 48px; margin-bottom: 20px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); color: white; }
.banner p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; color: white; }

/* ---------- 内容区 ---------- */
.content {
    color: #e0e0e0; padding: 60px 0;
    border-radius: 20px 20px 0 0; margin-top: -30px;
    position: relative; border-top: 1px solid rgba(255, 215, 0, 0.15);
    flex: 1 0 auto;
}

/* ---------- 区块标题 ---------- */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; margin-bottom: 10px; color: #ffd700; }
.section-title h3 {
    font-size: 16px; margin-bottom: 8px; color: #1a1a2e;
    background: linear-gradient(90deg, #ffd700, #ff8c00);
    display: inline-block; padding: 6px 16px; border-radius: 16px; font-weight: 600;
}
.section-title p { font-size: 12px; color: #666; }

/* ============================================================
   角色职业页 (.class-*)
   ============================================================ */
.class-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; padding: 0 20px; }
.class-row { display: grid; gap: 30px; padding: 0 20px; margin-bottom: 30px; }
.class-row.row-3 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.class-row.row-4 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.class-card {
    background: rgba(40, 40, 40, 0.8); border-radius: 12px; padding: 30px;
    border: 1px solid rgba(255, 215, 0, 0.15); transition: all 0.3s;
}
.class-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 215, 0, 0.1); }
.class-header { display: flex; align-items: center; margin-bottom: 20px; }
.class-icon { width: 68px; height: 68px; margin-right: 15px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.class-icon img { width: 100%; height: 100%; object-fit: contain; }
.class-info h3 { font-size: 20px; margin-bottom: 5px; color: #ffd700; }
.class-info p { font-size: 14px; color: #a0a0a0; }
.class-content { margin-top: 20px; }
.class-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #e0e0e0; }
.class-content p { font-size: 14px; color: #a0a0a0; line-height: 1.5; margin-bottom: 15px; }
.class-content ul { list-style: none; margin-bottom: 15px; }
.class-content li { font-size: 14px; color: #a0a0a0; line-height: 1.5; margin-bottom: 5px; padding-left: 20px; position: relative; }
.class-content li:before { content: "•"; position: absolute; left: 0; color: #ffd700; font-weight: bold; }

/* ============================================================
   游戏玩法页 (.gameplay-section / .section-*)
   ============================================================ */
.gameplay-section { max-width: 800px; margin: 0 auto 60px; padding: 0 20px; }
.section-header { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #ffd700; }
.section-header h3 { font-size: 20px; font-weight: 600; color: #ffd700; }
.section-content { margin-bottom: 30px; }
.section-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #ffd700; }
.section-content p { font-size: 14px; color: #b0b0b0; line-height: 1.5; margin-bottom: 15px; }
.section-content ul { list-style: none; margin-bottom: 15px; }
.section-content li { font-size: 14px; color: #b0b0b0; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative; }
.section-content li:before { content: "•"; position: absolute; left: 0; color: #ffd700; font-weight: bold; }

.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 30px; }
.info-card {
    background: rgba(40, 40, 40, 0.8); border-radius: 8px; padding: 20px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.15);
}
.info-card h5 { font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #ffd700; }
.info-card p { font-size: 13px; color: #b0b0b0; line-height: 1.4; }

/* ============================================================
   系统设置页 (.settings-* / .features / .feature-card / .btn)
   ============================================================ */
.section { margin-bottom: 60px; }
.settings-section { margin-bottom: 40px; }
.settings-section .section-header { margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #ffd700; }
.settings-section .section-header h3 { font-size: 18px; font-weight: 600; color: #ffd700; }
.settings-section .section-content { margin-bottom: 30px; }
.settings-section .section-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; color: #ffd700; }
.settings-section .section-content p { font-size: 14px; color: #a0a0a0; line-height: 1.5; margin-bottom: 15px; }
.settings-section .section-content ul { list-style: none; margin-bottom: 15px; }
.settings-section .section-content li { font-size: 14px; color: #a0a0a0; line-height: 1.5; margin-bottom: 8px; padding-left: 20px; position: relative; }
.settings-section .section-content li:before { content: "•"; position: absolute; left: 0; color: #ffd700; font-weight: bold; }

.settings-table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    background: rgba(30, 30, 30, 0.8); border-radius: 8px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 215, 0, 0.15);
}
.settings-table th, .settings-table td {
    padding: 12px 15px; text-align: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15); width: 50%;
}
.settings-table th { background: linear-gradient(90deg, #ffd700, #ff8c00); color: #1a1a2e; font-weight: 600; }
.settings-table tr:hover { background: rgba(255, 215, 0, 0.1); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card {
    background: rgba(30, 30, 30, 0.8); padding: 30px; border-radius: 12px;
    text-align: center; transition: all 0.3s; border: 1px solid rgba(255, 215, 0, 0.15);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2); }
.feature-card .feature-icon { font-size: 24px; margin-bottom: 10px; }
.feature-card h4 { font-size: 14px; font-weight: 600; margin-bottom: 5px; color: #ffd700; }
.feature-card p { font-size: 12px; color: #a0a0a0; line-height: 1.4; }

.btn {
    display: inline-block; padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2); color: white; text-decoration: none;
    border-radius: 30px; font-size: 16px; font-weight: 500; transition: all 0.3s;
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }

/* ============================================================
   游戏设置页卡片 (.card / .card-*) —— 前端 game-settings 三卡片
   ============================================================ */
.card {
    background: rgba(30, 30, 30, 0.8); border-radius: 10px; padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transition: all 0.3s;
    text-align: center; border: 1px solid rgba(255, 215, 0, 0.15);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3); }
.card-icon { font-size: 32px; margin-bottom: 15px; color: #ffd700; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 15px; color: #ffd700; }
.card-description { font-size: 14px; color: #a0a0a0; margin-bottom: 20px; line-height: 1.5; }
.card-link {
    display: inline-block; padding: 8px 20px;
    background: linear-gradient(90deg, #ffd700, #ff8c00); color: #1a1a2e;
    text-decoration: none; border-radius: 30px; font-size: 14px; font-weight: bold; transition: all 0.3s;
}
.card-link:hover { background: linear-gradient(90deg, #ff8c00, #ffd700); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4); }

/* ============================================================
   游戏特色 (.features-section / .feature-* ) —— 前端 game-settings 底部区块
   ============================================================ */
.features-section { margin-top: 60px; padding: 0 20px; }
.features-title { text-align: center; margin-bottom: 40px; }
.features-title h3 { font-size: 24px; color: #ffd700; margin-bottom: 10px; }
.feature-list { max-width: 100%; margin: 0 auto; }
.feature-item { display: flex; align-items: flex-start; margin-bottom: 20px; }
.feature-item .feature-icon { font-size: 20px; color: #ffd700; margin-right: 15px; margin-top: 2px; }
.feature-content { flex: 1; }
.feature-content h4 { font-size: 16px; font-weight: 600; margin-bottom: 5px; color: #ffd700; }
.feature-content p { font-size: 14px; color: #a0a0a0; line-height: 1.5; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 768px) {
    .navbar .container { flex-direction: column; gap: 10px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .banner h2 { font-size: 36px; }
    .banner p { font-size: 16px; }
    .class-container { grid-template-columns: 1fr; padding: 0 20px; }
    .content { padding: 30px 0; }
}
@media (max-width: 480px) {
    .banner { padding: 60px 0; }
    .banner h2 { font-size: 28px; }
    .content { padding: 40px 0; }
    .container { padding: 20px; }
    .card-container { grid-template-columns: 1fr; }
}
