@charset "UTF-8";

/* =========================================
   基礎設定與變數
   ========================================= */
:root {
    --bg-overlay: rgba(20, 20, 25, 0.85); /* 深色遮罩，提升可讀性 */
    --card-bg: rgba(30, 32, 28, 0.85); /* 軍事深綠/灰色 */
    --card-border: #5a5f50;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    /* 強調色 */
    --bronze: #cd7f32;
    --gold: #d4af37;
    --gold-dark: #b8941F;
    --camo-green: #4b5320;
    --camo-light: #708050;
    --danger: #cf3030;
    /* 效果 */
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.7);
    --glass-blur: blur(10px);
    /* 漸層 */
    --grad-ruins: linear-gradient(rgba(10, 12, 10, 0.75), rgba(10, 12, 10, 0.75));
    --grad-vignette: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.6) 100%);
    --grad-bronze-fade: linear-gradient(90deg, rgba(205, 127, 50, 0.1), transparent);
    --grad-tg: linear-gradient(45deg, #0088cc, #005f8f);
    --grad-tg-hover: linear-gradient(45deg, #00aaff, #0077b3);
    --grad-ai-tech: linear-gradient(to bottom, #00aaff, #004466);
    --grad-warning-stripe: repeating-linear-gradient(45deg, var(--danger), var(--danger) 10px, #000 10px, #000 20px);
    --grad-action: linear-gradient(45deg, #cc0000, #800000);
    --grad-action-hover: linear-gradient(45deg, #ff0000, #aa0000);
}

/* =========================================
   全域重設與字體
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans TC', sans-serif; color: var(--text-primary); background-color: #1a1a1a; background-image: var(--grad-ruins), url('../img/ruins_bg.png'); background-size: 600px; background-repeat: repeat; background-attachment: fixed; background-position: center; position: relative; overflow-x: hidden; min-height: 100vh; }
/* 迷彩邊際陰影效果 */
body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--grad-vignette); pointer-events: none; z-index: -1; }
h1, h2, h3, h4, h5, h6 { font-family: 'Noto Serif TC', serif; font-weight: 700; }

/* =========================================
   頁首與導覽
   ========================================= */
.page-header { text-align: center; padding: 5rem 0 3rem; position: relative; }
.page-title { color: var(--gold); font-size: 3rem; text-shadow: 0 4px 10px rgba(0,0,0,0.8); text-transform: uppercase; letter-spacing: 3px; border-bottom: 2px solid var(--bronze); display: inline-block; padding-bottom: 1rem; margin-bottom: 1.5rem; }
.page-subtitle { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 2rem; font-weight: 300; }

/* 劇本分頁 - 網格佈局 */
.scenario-tabs { margin-top: 2rem; }
.scenario-tab { display: block; width: 100%; padding: 1rem 1rem; background: rgba(0, 0, 0, 0.6); border: 1px solid var(--text-secondary); color: var(--text-secondary); text-decoration: none; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease; clip-path: polygon(5% 0, 100% 0, 100% 90%, 95% 100%, 0 100%, 0 10%); font-weight: bold; text-align: center; height: 100%; display: flex; align-items: center; justify-content: center; }
.scenario-tab:hover, .scenario-tab.active { background: var(--bronze); color: #fff; border-color: var(--bronze); box-shadow: 0 0 15px rgba(205, 127, 50, 0.4); }

/* =========================================
   內容卡片 (廢墟/地堡風格)
   ========================================= */
.content-card { background: var(--card-bg); border: 1px solid var(--card-border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); padding: 3rem; border-radius: 4px; margin-bottom: 3rem; box-shadow: var(--shadow-strong); position: relative; overflow: hidden; }
/* 內容卡片的噪點疊加層 */
.content-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E"); pointer-events: none; z-index: 0; }
.content-card > * { position: relative; z-index: 1; }
/* 卡片角落裝飾 */
.content-card::before { content: ''; position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-top: 3px solid var(--bronze); border-left: 3px solid var(--bronze); z-index: 2; }
.section-title { color: var(--gold); border-left: 5px solid var(--bronze); padding-left: 1rem; margin-bottom: 2rem; font-size: 2rem; background: var(--grad-bronze-fade); padding-top: 0.5rem; padding-bottom: 0.5rem; }

/* =========================================
   排版與工具類
   ========================================= */
.text-bronze { color: var(--bronze) !important; }
.text-gold-dark { color: var(--gold) !important; }
.text-primary-color { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-italic-secondary { color: #888; font-style: italic; margin-bottom: 1rem; }
.h5-bronze { color: var(--bronze); font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
.h5-gold { color: var(--gold); font-size: 1.25rem; font-weight: bold; margin-bottom: 1rem; }
.alert-box { background: rgba(207, 48, 48, 0.1); border: 1px solid var(--danger); color: #ffaaaa; padding: 1.5rem; margin-top: 2rem; border-radius: 0; position: relative; border-left-width: 5px; }
.bg-preface { border-top: 4px solid var(--gold); }

/* =========================================
   表格 (戰術螢幕風格 - 帶邊框)
   ========================================= */
.elegant-table { width: 100%; margin-top: 1rem; border-collapse: collapse; background: rgba(0, 0, 0, 0.3); border: 2px solid var(--bronze); }
.elegant-table thead th { background: rgba(40, 40, 40, 0.9); color: var(--gold); text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; padding: 1.2rem; border: 1px solid var(--bronze); text-align: left; }
.elegant-table tbody td { padding: 1.2rem; border: 1px solid rgba(212, 175, 55, 0.3); color: #ccc; font-size: 0.95rem; }
.elegant-table tbody tr:hover { background: rgba(205, 127, 50, 0.05); }

/* =========================================
   手風琴 (軍事板箱格式)
   ========================================= */
.survival-accordion-item { background: transparent; border: 1px solid #444; margin-bottom: 1rem; border-radius: 0; }
.survival-accordion-button { background: rgba(60, 60, 60, 0.4); color: #ddd; font-weight: 600; border: none; box-shadow: none; padding: 1.5rem; font-size: 1.1rem; }
.survival-accordion-button:not(.collapsed) { background: rgba(205, 127, 50, 0.2); color: var(--gold); border-left: 4px solid var(--gold); }
.survival-accordion-button:focus { box-shadow: none; border-color: var(--gold); }
.accordion-body { background: rgba(0, 0, 0, 0.2); border-top: 1px solid #444; color: #ccc; padding: 2rem; }
/* 手風琴內的清單 */
.survival-list { list-style: none; counter-reset: survival-counter; }
.survival-list li { position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.survival-list li::before { counter-increment: survival-counter; content: counter(survival-counter); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; background: #333; color: var(--bronze); text-align: center; line-height: 2rem; font-weight: bold; border: 1px solid var(--bronze); }
.survival-list.success-list li::before { color: var(--gold); border-color: var(--gold); }
.survival-list li strong { color: #fff; font-size: 1.1rem; }
.survival-list li em { display: block; color: #888; margin-top: 0.5rem; font-size: 0.9rem; }

/* =========================================
   警告區塊
   ========================================= */
.warning-section { background: rgba(20, 15, 10, 0.9); border: 1px solid var(--danger); padding: 3rem; position: relative; margin-bottom: 3rem; box-shadow: 0 0 20px rgba(200, 50, 50, 0.1); }
.warning-section::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: var(--grad-warning-stripe); }
.warning-title { color: var(--danger); text-align: center; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; }
.warning-subtitle { border-left: 3px solid var(--danger); padding-left: 1rem; margin-top: 2rem; margin-bottom: 1.5rem; color: #fff; }
/* 行動清單 */
.action-list .action-item { background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--camo-light); color: var(--text-primary); padding: 1rem; margin-bottom: 0.5rem; }
.action-list .action-item.danger { border-left-color: var(--danger); background: rgba(207, 48, 48, 0.05); }

/* =========================================
   頁尾與其他
   ========================================= */
.page-footer { text-align: center; color: #555; padding: 4rem 0; border-top: 1px solid #333; }
.truth-box { border: 1px dashed var(--bronze); padding: 2rem; text-align: center; margin-top: 2rem; background: rgba(0,0,0,0.3); }
.tg-note { background: rgba(0, 162, 232, 0.1); color: #4db3ff; padding: 1rem; text-align: center; border: 1px solid rgba(0, 162, 232, 0.3); margin-top: 1rem; }
/* Telegram 按鈕 */
.btn-tg-custom { display: block; width: 100%; margin-top: 1.5rem; padding: 1rem; background: var(--grad-tg); color: white; text-align: center; text-decoration: none; font-weight: bold; border: 1px solid #4db3ff; box-shadow: 0 0 15px rgba(0, 136, 204, 0.4); transition: all 0.3s ease; text-transform: uppercase; letter-spacing: 1px; }
.btn-tg-custom:hover { background: var(--grad-tg-hover); box-shadow: 0 0 25px rgba(0, 136, 204, 0.6); color: white; transform: translateY(-2px); }

/* AI 監管區塊 */
.ai-supervision-section { background: rgba(0, 20, 40, 0.85); border: 1px solid #00aaff; box-shadow: 0 0 20px rgba(0, 170, 255, 0.2); margin-bottom: 3rem; position: relative; overflow: hidden; }
.ai-supervision-section::before { content: ''; position: absolute; top: 0; left: 0; width: 5px; height: 100%; background: var(--grad-ai-tech); }
.ai-supervision-title { color: #00aaff; margin-bottom: 1.5rem; text-shadow: 0 0 10px rgba(0, 170, 255, 0.5); }

/* 全民投票中的選項框 */
.option-box, .option-box-b { background: rgba(255,255,255,0.03); border: 1px solid #444; padding: 2rem; height: 100%; }
.option-box-b { border-color: var(--gold); }

/* 工具動畫 */
.animate-in { opacity: 0; animation: fadeIn 0.8s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
/* 延遲設定 */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-800 { animation-delay: 0.8s; }
.delay-1000 { animation-delay: 1s; }
.delay-1200 { animation-delay: 1.2s; }

/* 置入廢墟圖片的容器 */
.ruin-img-container { width: 100%; margin-bottom: 2rem; border: 1px solid var(--bronze); padding: 5px; background: rgba(0,0,0,0.5); }
.ruin-img-container img { width: 100%; height: auto; display: block; filter: sepia(0.3) contrast(1.1); }

/* =========================================
   最後呼籲區塊
   ========================================= */
.final-call-section { border-top: 5px solid var(--danger); background: rgba(40, 0, 0, 0.4); text-align: center; }
.final-call-title { font-size: 5rem; color: #ff3333; text-shadow: 0 0 20px rgba(255, 0, 0, 0.6); margin-bottom: 2rem; font-weight: 900; letter-spacing: 5px; }
.btn-action-custom { display: inline-block; padding: 1.5rem 3rem; background: var(--grad-action); color: white; text-decoration: none; font-size: 1.4rem; font-weight: bold; border: 2px solid #ff3333; box-shadow: 0 0 20px rgba(204, 0, 0, 0.5); transition: all 0.3s ease; clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); }
.btn-action-custom:hover { background: var(--grad-action-hover); transform: scale(1.05); box-shadow: 0 0 35px rgba(255, 0, 0, 0.8); color: white; }


/* Twemoji 修正: 確保所有表情符號大小正確 */
img.emoji { height: 1.2em !important; width: 1.2em !important; margin: 0 .05em 0 .1em !important; vertical-align: -0.1em !important; display: inline-block !important; }
