/* ==========================================================
   5. 世界观 & 9. 玩家故事
   section-worldview.css: Worldview Section Styles
   ========================================================== */

/* 主要内容块应用玻璃效果 */
#worldview .main-objective,
#worldview .game-process,
#worldview #realm-content-area,
#worldview #faction-content-area,
#worldview #conflict-content-area,
#worldview .realm-system,
#worldview .power-system,
#worldview .elegant-content {
    background: rgba(13, 16, 25, 0.6); border-radius: var(--card-radius);
    backdrop-filter: blur(8px); box-shadow: var(--box-shadow), inset 0 1px 1px rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border); padding: 30px;
    position: relative; overflow: hidden; margin-bottom: 40px;
}
#worldview .main-objective::before, #worldview .game-process::before, #worldview #realm-content-area::before, #worldview #faction-content-area::before, #worldview #conflict-content-area::before, #worldview .realm-system::before, #worldview .power-system::before, #worldview .elegant-content::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

/* --- 游戏目标 & 笔记 --- */
.main-objective .objective-heading { font-size: 1.8rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 15px; text-shadow: var(--title-text-shadow); }
.main-objective .objective-heading:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgba(230, 213, 138, 0), var(--secondary-color), rgba(230, 213, 138, 0)); border-radius: 3px; box-shadow: 0 0 10px rgba(230, 213, 138, 0.3); }
.main-objective .objective-text { font-size: 1.2rem; line-height: 1.7; margin-bottom: 30px; color: var(--text-light); text-shadow: var(--text-shadow); }
.main-objective .highlight { color: var(--secondary-color); font-weight: bold; text-shadow: 0 0 5px rgba(230, 213, 138, 0.3); }
.notes-section { margin-top: 30px; }
.notes-row { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
/* Note card base styles in components/cards.css */
.note-card { flex: 1; cursor: pointer; text-align: left; transform: translateY(0); } /* Base styling */
.note-header { background: linear-gradient(90deg, rgba(74, 99, 181, 0.2), rgba(58, 78, 138, 0.1)); padding: 10px 15px; border-bottom: 1px solid rgba(74, 99, 181, 0.2); position: relative; }
.note-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent); }
.note-tag { background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); color: white; font-size: 0.9rem; padding: 3px 10px; border-radius: 20px; font-weight: 500; display: inline-block; box-shadow: 0 2px 8px rgba(74, 99, 181, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.note-body { padding: 12px 15px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; }
.note-card.active { background: linear-gradient(135deg, rgba(26, 28, 50, 0.8), rgba(16, 24, 36, 0.9)); transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(230, 213, 138, 0.1); border-left: 3px solid var(--secondary-color); }
.note-card::after { content: "点击切换"; position: absolute; bottom: 10px; right: 10px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); transition: all 0.3s ease; }
.note-card.active::after { content: "点击切换"; }
.note-card:hover::after { color: rgba(255, 255, 255, 0.8); }

/* --- 游戏过程 & 玩家故事 --- */
.process-header { text-align: center; margin-bottom: 40px; position: relative; }
.process-heading { font-size: 1.8rem; font-weight: 600; color: var(--secondary-color); margin-bottom: 20px; position: relative; display: inline-block; padding-bottom: 15px; text-shadow: var(--title-text-shadow); }
.process-heading:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgba(230, 213, 138, 0), var(--secondary-color), rgba(230, 213, 138, 0)); border-radius: 3px; box-shadow: 0 0 10px rgba(230, 213, 138, 0.3); }
.process-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(230, 213, 138, 0.2), transparent); width: 150px; margin: 0 auto; }
.stories-container { margin-top: 40px; }
.stories-introduction { max-width: 800px; margin: 0 auto 30px; text-align: center; font-size: 1.1rem; line-height: 1.7; color: var(--text-secondary); text-shadow: var(--text-shadow); }
.story-slider { background: rgba(13, 16, 25, 0.5); border-radius: var(--card-radius); padding: 20px; box-shadow: var(--box-shadow); margin: 30px 0; position: relative; border: 1px solid rgba(230, 213, 138, 0.1); backdrop-filter: blur(5px); display: flex; align-items: center; }
/* Slider arrows & nav dots in components/slider.css */
.story-container { flex: 1; position: relative; overflow: hidden; border-radius: 8px; background-color: transparent; box-shadow: none; min-height: 705px; height: auto; }
.story-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 640px; opacity: 0; visibility: hidden; transition: all 0.5s ease; transform: translateX(50px); z-index: 1; }
.story-slide.active { opacity: 1; visibility: visible; transform: translateX(0); z-index: 2; }
.story-content { padding: 30px; height: 100%; }
.story-header { position: relative; margin-bottom: 25px; padding-bottom: 15px; }
.story-badge { display: inline-block; padding: 5px 12px; background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); border-radius: 20px; color: white; font-size: 0.9rem; font-weight: 500; margin-bottom: 10px; box-shadow: 0 2px 10px rgba(74, 99, 181, 0.3); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.story-header h3 { font-size: 1.8rem; color: var(--secondary-color); margin: 5px 0 15px; text-shadow: var(--title-text-shadow); }
.story-divider { height: 2px; background: linear-gradient(to right, var(--secondary-color), transparent); width: 80px; opacity: 0.7; }
.story-narrative {
    display: flex;
    gap: 20px;
    height: auto;
    min-height: 510px;
}
.story-visual { width: 180px; display: flex; flex-direction: column; align-items: center; }
.story-image { width: 140px; height: 140px; margin-bottom: 20px; border-radius: 50%; background: radial-gradient(circle, rgba(74, 99, 181, 0.2), rgba(13, 16, 25, 0.5)); display: flex; align-items: center; justify-content: center; border: 1px solid rgba(230, 213, 138, 0.1); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.05); }
.story-icon { font-size: 55px; color: var(--secondary-color); text-shadow: 0 0 15px rgba(230, 213, 138, 0.5); }
.story-text {
    flex: 1;
    padding-bottom: 20px;
    overflow-y: auto;
    scrollbar-width: none;
    min-height: 315px;
}
.story-text::-webkit-scrollbar {
    display: none;
}
.story-text p { margin-bottom: 10px; line-height: 1.6; font-size: 0.95rem; color: var(--text-secondary); text-shadow: var(--text-shadow); }
#story-1 .story-text p { margin-bottom: 8px; }
/* Story Interview Link Styles */
.story-visual .document-link { position: static; text-align: center; margin-top: 10px; }
.story-visual .document-link .elegant-link { color: var(--secondary-color); border-color: rgba(230, 213, 138, 0.3); background: linear-gradient(135deg, rgba(230, 213, 138, 0.05), rgba(230, 213, 138, 0.1)); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 0 5px rgba(230, 213, 138, 0.1); padding: 10px 18px; font-size: 0.95rem; letter-spacing: 0.5px; }
.story-visual .document-link .elegant-link:hover { background: linear-gradient(135deg, rgba(230, 213, 138, 0.1), rgba(230, 213, 138, 0.15)); transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(230, 213, 138, 0.2); border-color: rgba(230, 213, 138, 0.5); }
.story-visual .document-link .elegant-link .link-icon { color: var(--secondary-color); font-size: 1.3rem; }
.story-visual .document-link .elegant-link:hover .link-icon { transform: scale(1.15); }
.story-visual .document-link .elegant-link:hover span:not(.link-icon) { font-weight: normal; }

/* --- 内容区显隐 --- */
.worldview-content-area { display: none; margin: 30px 0; padding-top: 20px; /* 基础样式 */ }
.worldview-content-area.active { display: block; } /* 显示活动区域 */
.back-button-container { display: flex; justify-content: flex-start; margin-bottom: 20px; }
/* 返回按钮样式在 components/buttons.css 中 */

/* --- 境界系统 --- */
.realm-system { margin: 0 auto 60px; max-width: none; }
.realm-header { text-align: center; margin-bottom: 30px; }
.realm-title { font-size: 1.8rem; margin-bottom: 10px; color: var(--secondary-color); font-weight: 600; position: relative; padding-bottom: 15px; display: inline-block; text-shadow: var(--title-text-shadow); }
.realm-title:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgba(230, 213, 138, 0), var(--secondary-color), rgba(230, 213, 138, 0)); border-radius: 3px; box-shadow: 0 0 10px rgba(230, 213, 138, 0.3); }
.realm-header p { color: var(--text-secondary); margin-top: 5px; text-shadow: var(--text-shadow); }
.realm-chart-container { margin: 30px 0; background: rgba(13, 16, 25, 0.3); padding: 20px; border-radius: var(--border-radius); box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2); overflow-x: auto; }
.realm-chart { display: flex; justify-content: space-between; gap: 25px; min-width: 800px; min-height: 500px; }
/* Realm group base styles in components/cards.css */
.realm-group { flex: 1; display: flex; flex-direction: column; padding: 0; } /* Base structure */
.realm-group-header { display: flex; align-items: center; padding: 15px 20px; background: linear-gradient(to bottom, rgba(26, 28, 50, 0.7), rgba(16, 24, 36, 0.6)); border-bottom: 1px solid rgba(230, 213, 138, 0.15); position: relative; }
.realm-group-header::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent); }
.realm-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 15px; color: white; font-size: 1.1rem; font-weight: bold; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.mortal .realm-icon { background: linear-gradient(135deg, var(--emerald), #2c7c64); box-shadow: 0 3px 10px rgba(78, 204, 163, 0.3); }
.immortal .realm-icon { background: linear-gradient(135deg, var(--secondary-color), #b8a45e); box-shadow: 0 3px 10px rgba(230, 213, 138, 0.3); }
.true-immortal .realm-icon { background: linear-gradient(135deg, var(--blood-red), #c13b2d); box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3); }
.realm-group-title { font-size: 1.4rem; color: var(--text-light); margin: 0; font-weight: 500; text-shadow: var(--text-shadow); }
.realm-levels { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.realm-level { padding: 15px; border-bottom: 1px solid rgba(230, 213, 138, 0.08); transition: var(--transition); flex: 1; display: flex; flex-direction: column; }
.realm-level:last-child { border-bottom: none; }
.realm-level:hover { background: rgba(230, 213, 138, 0.03); }
.level-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.level-name { font-weight: bold; font-size: 1.1rem; color: var(--secondary-color); text-shadow: var(--text-shadow); }
.level-indicator { width: 10px; height: 10px; border-radius: 50%; }
.mortal .level-indicator { background-color: var(--emerald); box-shadow: 0 0 10px rgba(78, 204, 163, 0.7); }
.immortal .level-indicator { background-color: var(--secondary-color); box-shadow: 0 0 10px rgba(230, 213, 138, 0.7); }
.true-immortal .level-indicator { background-color: var(--blood-red); box-shadow: 0 0 10px rgba(231, 76, 60, 0.7); }
.level-description { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; overflow-y: auto; flex: 1; display: flex; align-items: center; text-shadow: var(--text-shadow); }

/* --- 势力系统 --- */
.power-system.new-layout { margin-bottom: 40px; }
.power-system.new-layout h3 { font-size: 1.8rem; text-align: center; margin: 0 auto 30px; color: var(--secondary-color); position: relative; padding-bottom: 15px; display: inline-block; text-shadow: var(--title-text-shadow); }
.power-system.new-layout h3:after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, rgba(230, 213, 138, 0), var(--secondary-color), rgba(230, 213, 138, 0)); border-radius: 3px; box-shadow: 0 0 10px rgba(230, 213, 138, 0.3); }
.faction-container { display: flex; background: rgba(13, 16, 25, 0.4); border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2); margin-top: 20px; border: 1px solid rgba(230, 213, 138, 0.1); }
.faction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 15px; background: rgba(16, 32, 47, 0.3); width: 240px; border-right: 1px solid rgba(230, 213, 138, 0.1); }
.faction-grid.large-grid { width: 240px; }
/* Faction item styles in components/cards.css (base) and here for specifics */
.faction-item { display: flex; flex-direction: column; align-items: center; padding: 10px 5px; border-radius: var(--border-radius); cursor: pointer; border: 1px solid transparent; background: rgba(255, 255, 255, 0.03); }
.faction-item.active { transform: translateY(-3px); background: rgba(230, 213, 138, 0.1); border: 1px solid var(--secondary-color); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.faction-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.faction-name { font-size: 13px; color: var(--text-light); text-align: center; font-weight: 500; text-shadow: var(--text-shadow); }
.faction-detail { flex: 1; padding: 25px; background: rgba(13, 16, 25, 0.3); position: relative; }
.detail-content { display: none; height: 100%; }
.detail-header { display: flex; align-items: center; margin-bottom: 15px; }
.detail-icon { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-right: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
.detail-header h4 { font-size: 1.6rem; color: var(--secondary-color); margin: 0; text-shadow: var(--text-shadow); }
.detail-description { font-size: 1rem; line-height: 1.6; color: var(--text-secondary); opacity: 0.9; margin-bottom: 20px; text-shadow: var(--text-shadow); white-space: pre-line; }

/* --- 大争之世 --- */
.elegant-content { padding: 40px 30px; }
.decorated-title { text-align: center; position: relative; padding: 20px 0; margin-bottom: 40px; }
.gold-title { color: var(--secondary-color); font-size: 2.2rem; font-weight: 600; letter-spacing: 1px; margin: 20px 0; text-shadow: var(--title-text-shadow); }
.ornament-line { height: 1px; background: linear-gradient(90deg, transparent, rgba(230, 213, 138, 0.4), transparent); margin: 15px auto; max-width: 60%; opacity: 0.7; position: relative; }
.ornament-line::before, .ornament-line::after { content: "✧"; position: absolute; top: 50%; transform: translateY(-50%); color: rgba(230, 213, 138, 0.6); font-size: 1rem; opacity: 0.7; }
.ornament-line::before { left: 25%; }
.ornament-line::after { right: 25%; }
.ornament-line.top { transform: translateY(-10px); }
.ornament-line.bottom, .ornament-line.bottom-full { display: none; }
.elegant-text-content { max-width: 900px; margin: 0 auto; line-height: 1.8; color: var(--text-secondary); font-size: 1.05rem; text-shadow: var(--text-shadow); padding-bottom: 80px; /* 为链接腾出空间 */ }
.intro-text { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; position: relative; padding-left: 25px; border-left: 3px solid rgba(230, 213, 138, 0.4); }
.content-text { margin-bottom: 25px; text-align: justify; }
.elegant-content .document-link { text-align: right; position: absolute; bottom: 30px; right: 30px; left: auto; margin-top: 0; }

/* 强制应用游戏过程部分的高度调整 - 高优先级选择器 */
#worldview .game-process .story-slider {
    min-height: 640px !important; /* 620px + 20px */
}

#worldview .game-process .story-container {
    min-height: 705px !important; /* 685px + 20px */
}

#worldview .game-process .story-slide {
    min-height: 640px !important; /* 620px + 20px */
}

#worldview .game-process .story-narrative {
    min-height: 510px !important; /* 490px + 20px */
}

#worldview .game-process .story-text {
    min-height: 315px !important; /* 295px + 20px */
}