/* ============================================================
   神话图谱 · 独立页面样式（复用长廊 variables 配色）
   ============================================================ */
.myth-body {
    background:
        radial-gradient(1200px 600px at 50% -10%, rgba(201, 169, 98, 0.10), transparent 60%),
        radial-gradient(900px 500px at 90% 100%, rgba(178, 34, 34, 0.08), transparent 60%),
        var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    min-height: 100vh;
}

/* ---------- 顶部导航 ---------- */
.myth-nav {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--nav-height);
    padding: 0 24px;
    background: rgba(10, 14, 23, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
}
.myth-back {
    color: var(--gold-primary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    transition: 0.3s;
    white-space: nowrap;
}
.myth-back:hover { background: var(--gold-glow); }
.myth-nav-title {
    font-family: var(--font-title);
    font-size: 20px;
    letter-spacing: 4px;
    color: var(--gold-light);
}
.myth-search {
    margin-left: auto;
    width: 260px;
    max-width: 40vw;
    padding: 8px 14px;
    background: rgba(15, 21, 34, 0.8);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}
.myth-search:focus { border-color: var(--gold-primary); box-shadow: 0 0 0 2px var(--gold-glow); }
.myth-search::placeholder { color: var(--text-muted); }

/* ---------- 开篇 ---------- */
.myth-hero {
    text-align: center;
    padding: 56px 24px 24px;
}
.myth-hero h1 {
    font-family: var(--font-title);
    font-size: clamp(26px, 4vw, 44px);
    letter-spacing: 6px;
    color: var(--gold-light);
    text-shadow: 0 0 24px var(--gold-glow-strong);
    margin-bottom: 14px;
}
.myth-hero p {
    color: var(--text-gray);
    font-size: 14px;
    letter-spacing: 2px;
}
.myth-stats {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 13px;
    letter-spacing: 1px;
}

/* ---------- 分类筛选 ---------- */
.myth-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 8px 24px 26px;
}
.myth-chip {
    padding: 7px 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 18px;
    color: var(--text-gray);
    font-size: 13px;
    cursor: pointer;
    transition: 0.25s;
}
.myth-chip:hover { color: var(--gold-light); border-color: var(--border-strong); }
.myth-chip.on {
    color: var(--bg-deep);
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    border-color: var(--gold-primary);
    font-weight: 600;
}

/* ---------- 卡片网格 ---------- */
.myth-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
    gap: 18px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 80px;
}
.myth-card {
    position: relative;
    padding: 20px 20px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-smooth), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}
.myth-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--gold-primary);
    opacity: 0.5;
}
.myth-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--gold-glow);
}
.myth-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}
.myth-name {
    font-family: var(--font-title);
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--gold-light);
}
.myth-tag {
    flex: none;
    font-size: 11px;
    color: var(--gold-primary);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    padding: 2px 6px;
    white-space: nowrap;
}
.myth-content {
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.myth-source {
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ---------- 空状态 ---------- */
.myth-empty {
    display: none;
    text-align: center;
    color: var(--text-muted);
    padding: 60px 20px 120px;
    letter-spacing: 2px;
}

/* ---------- 详情弹层 ---------- */
.myth-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-overlay);
    backdrop-filter: blur(6px);
}
.myth-modal.open { display: flex; }
.myth-modal-box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 36px 34px 30px;
    background: linear-gradient(180deg, #121A28, #0C121D);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.myth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-gray);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.myth-modal-close:hover { color: var(--gold-light); }
.myth-modal-name {
    font-family: var(--font-title);
    font-size: 30px;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: 8px;
}
.myth-modal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 22px;
    font-size: 12.5px;
    color: var(--text-muted);
}
.myth-modal-meta .sep { color: var(--border-strong); }
.myth-modal-body {
    font-size: 15px;
    line-height: 2;
    color: var(--text-white);
    white-space: pre-wrap;
}
.myth-modal-block-title {
    margin: 26px 0 10px;
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--gold-primary);
    padding-left: 10px;
    border-left: 2px solid var(--gold-primary);
}
.myth-rel {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.myth-rel a {
    font-size: 12.5px;
    color: var(--gold-light);
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    transition: 0.25s;
}
.myth-rel a:hover { background: var(--gold-glow); border-color: var(--border-strong); }

@media (max-width: 640px) {
    .myth-nav { padding: 0 14px; gap: 10px; }
    .myth-nav-title { font-size: 16px; letter-spacing: 2px; }
    .myth-search { width: 150px; font-size: 13px; }
    .myth-hero { padding-top: 36px; }
    .myth-grid { grid-template-columns: 1fr; padding: 0 14px 60px; }
    .myth-modal-box { padding: 28px 20px 24px; }
    .myth-modal-name { font-size: 24px; }
}
