/* blade-logs.css */
:root {
    --bg-color: #0b0b0d;
    --card-bg: #141416;
    --text-main: #d1d1d1;
    --text-dim: #666;
    --accent: #d4af37;
    --danger: #ff5555;
    --loot: #4caf50;
    --btn-bg: #2a2a2c;
    --border: #222;
}

* { box-sizing: border-box; }
body { background-color: var(--bg-color); color: var(--text-main); font-family: 'Noto Serif TC', serif; margin: 0; padding: 0; line-height: 1.8; font-size: 17px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* Nav */
nav { padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); background: rgba(11, 11, 13, 0.95); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.logo { font-family: 'Noto Serif TC', serif; font-size: 1.2rem; font-weight: 900; color: var(--accent); letter-spacing: 2px; }
.nav-links a { margin-left: 15px; font-family: 'Noto Sans TC', sans-serif; font-size: 0.9rem; color: var(--text-main); opacity: 0.8; }
.nav-links a:hover { opacity: 1; color: var(--accent); }
.btn-outline { padding: 4px 12px; border: 1px solid #444; border-radius: 4px; font-size: 0.85rem; }

/* Header (Modified for Image Background) */
.log-header {
    padding: 100px 20px 60px; /* 增加高度以展示圖片 */
    text-align: center;
    background-color: #1a1a1d;
    background-size: cover;
    background-position: center;
    position: relative;
    border-bottom: 1px solid var(--border);
    color: #ffffff;
}
/* 黑色遮罩，確保文字在圖片上清晰可見 */
.log-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(11,11,13,0.3), rgba(11,11,13,1));
    z-index: 1;
}

.log-header > * {
    position: relative;
    z-index: 2; 
    /* 加強對比度：增加文字陰影 */
    text-shadow: 0 4px 8px rgba(0,0,0,0.9);
}
.header-content { position: relative; z-index: 2; } /* 包裹文字 */

.log-meta { font-family: 'Roboto Mono', monospace; color: #ccc; font-size: 0.85rem; margin-bottom: 10px; letter-spacing: 1px; display: inline-block; border: 1px solid rgba(255,255,255,0.3); padding: 2px 8px; border-radius: 4px; background: rgba(0,0,0,0.5); }
h1 { font-family: 'Noto Sans TC', sans-serif; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.8); font-size: 1.8rem; line-height: 1.4; max-width: 800px; margin: 10px auto 20px; }

.tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 0.8rem; padding: 2px 8px; background: rgba(0,0,0,0.6); color: #ccc; border-radius: 4px; font-family: sans-serif; border: 1px solid #444; }
.tag.gold { color: var(--accent); border-color: var(--accent); }

/* Timeline & Cards */
.container { max-width: 650px; margin: 0 auto; padding: 40px 20px; position: relative; }
.timeline-line { position: absolute; left: 30px; top: 60px; bottom: 100px; width: 2px; background: #222; z-index: 0; }

.turn-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 50px; position: relative; z-index: 1; margin-left: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.turn-card::before { content: ''; position: absolute; left: -30px; top: 25px; width: 12px; height: 12px; background: #333; border: 2px solid var(--bg-color); border-radius: 50%; }
.turn-card.loot { border-left: 3px solid var(--loot); } .turn-card.loot::before { background: var(--loot); }
.turn-card.danger { border-left: 3px solid var(--danger); } .turn-card.danger::before { background: var(--danger); }

.turn-header { display: flex; justify-content: space-between; margin-bottom: 15px; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; color: var(--text-dim); border-bottom: 1px solid #222; padding-bottom: 10px; }
.story-text { font-size: 1rem; margin-bottom: 20px; color: #ddd; }
.hl { color: #fff; font-weight: bold; background: rgba(255,255,255,0.1); padding: 0 4px; border-radius: 2px; }
.hl-loot { color: var(--loot); } .hl-danger { color: var(--danger); }

/* UI Simulation */
.options-ui { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.opt { font-family: 'Noto Sans TC', sans-serif; font-size: 0.9rem; color: #555; padding: 6px 10px; border-radius: 4px; border: 1px solid transparent; }
.opt.picked { color: var(--accent); background: rgba(212, 175, 55, 0.05); border-color: rgba(212, 175, 55, 0.3); font-weight: bold; }
.opt-idx { display: inline-block; width: 20px; font-family: 'Roboto Mono', monospace; opacity: 0.7; }

.numpad-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #333; }
.key { background: var(--btn-bg); color: #777; border-radius: 8px; text-align: center; padding: 12px 0; font-family: 'Roboto Mono', monospace; font-size: 1.1rem; box-shadow: 0 2px 0 #1a1a1c; transition: transform 0.1s; }
.key.active { background: var(--accent); color: #000; font-weight: bold; box-shadow: 0 0 10px rgba(212, 175, 55, 0.4); transform: translateY(1px); }
.key-status { font-size: 0.9rem; padding: 14px 0; font-family: 'Noto Sans TC'; } .key-settings { font-size: 1.2rem; }

.result-box { margin-top: 15px; font-size: 0.9rem; color: #888; background: #0f0f11; padding: 10px; border-radius: 4px; }

.sticky-cta { position: sticky; bottom: 20px; background: rgba(20, 20, 22, 0.9); backdrop-filter: blur(10px); border: 1px solid var(--accent); padding: 12px 20px; border-radius: 50px; display: flex; justify-content: space-between; align-items: center; max-width: 500px; margin: 40px auto 0; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 90; }
.cta-text { font-size: 0.85rem; color: #fff; font-family: 'Noto Sans TC'; }
.cta-btn { background: var(--accent); color: #000; padding: 8px 16px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; font-family: 'Noto Sans TC'; white-space: nowrap; }
footer { text-align: center; color: #444; font-size: 0.8rem; margin-top: 60px; }

@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .turn-card { padding: 15px; margin-left: 15px; }
    .timeline-line { left: 20px; }
    .turn-card::before { left: -21px; }
}