/* Override Font Awesome font-display to avoid render blocking */
@font-face { font-family: 'Font Awesome 6 Free'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-regular-400.woff2') format('woff2'); }
@font-face { font-family: 'Font Awesome 6 Free'; font-style: normal; font-weight: 900; font-display: swap; src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-solid-900.woff2') format('woff2'); }
@font-face { font-family: 'Font Awesome 6 Brands'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/webfonts/fa-brands-400.woff2') format('woff2'); }

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #1a1a2e;
}

/* 侧边栏样式 */
.sidebar-nav {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #fff;
    z-index: 1001;
    transition: left 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.sidebar-nav.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #666;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.sidebar-close:hover {
    color: #333;
}

.sidebar-content {
    padding: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px;
    border-bottom: 1px solid #eee;
}

.sidebar-logo img {
    width: 40px;
    height: 40px;
}

.sidebar-logo span {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    color: #666;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-item:hover {
    background: #f5f5f5;
    color: #333;
}

.sidebar-item.active {
    background: #f0f0ff;
    color: #a259f7;
    border-left-color: #a259f7;
}

.sidebar-item i {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
}

.sidebar-item span {
    font-size: 1em;
    font-weight: 500;
}
.navbar {
    display: flex;
    align-items: center;
    background: #222;
    color: #fff;
    padding: 0 24px;
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 998;
}
.navbar .logo {
    font-size: 1em;
    font-weight: 500;
    color: #fff;
    margin-right: auto;
    margin-left: 20px;
    display: flex;
    align-items: center;
}
.navbar .logo a {
    color: inherit;
}
.navbar nav {
    display: none;
}
.navbar .search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 4px 14px;
    position: relative;
    height: 36px;
    margin-right: 8px;
}
.navbar .search input[type="text"] {
    padding: 4px 8px;
    border: none;
    outline: none;
    font-size: 0.9em;
    background: transparent;
    width: 180px;
}
.navbar .search i {
    font-size: 0.95em;
}
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    width: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    padding: 0;
}
.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: #fff;
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}
.nav-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3em;
    cursor: pointer;
    padding: 8px 12px;
    margin-left: 12px;
}
.main-left {
    max-width: 938px;
    margin: 0 auto;
}
.container {
    display: flex;
    margin: 28px auto;
    max-width: 1456px;
    gap: 32px;
}
.main-content {
    flex: 2;
    background: #22243a;
    border-radius: 24px;
    box-shadow: 0 2px 16px #0003;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-content img {
    width: 100%;
    max-width: 700px;
    border-radius: 16px;
    margin-bottom: 24px;
}
.main-content h1 {
    margin: 0 0 12px 0;
    font-size: 2.2em;
}
.main-content p {
    margin: 0 0 24px 0;
    color: #555;
    font-size: 1.1em;
}
.main-content .play-btn {
    background: #f44336;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 14px 36px;
    font-size: 1.2em;
    cursor: pointer;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar {
    flex: 1;
    border-radius: 24px;
    padding: 24px;
    min-width: 320px;
}
.sidebar h2 {
    color: #e53935;
    margin-top: 0;
    font-size: 1.3em;
}
.featured-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.featured-game {
    background: #f5f5f5;
    border-radius: 16px;
    padding: 9px;
    width: 140px;
    box-sizing: border-box;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.featured-game img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 6px;
}
.featured-game .tag {
    background: #e53935;
    color: #fff;
    font-size: 0.8em;
    border-radius: 8px;
    padding: 2px 8px;
    margin-bottom: 4px;
}
.featured-game .title {
    font-weight: bold;
    font-size: 1em;
    color: #222;
}
.games-section {
    margin: 48px auto 0 auto;
    max-width: 1458px;
    padding: 0 24px 32px 24px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}
.section-header h2,
.section-header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 700;
    color: #e8e8f8;
}
.section-header .new-title {
    color: #a259f7;
}
.section-desc {
    margin: 4px 0 0 0;
    color: #8a94a6;
    font-size: 1em;
}
.view-all-link {
    color: #4a9eed;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05em;
    transition: color 0.2s;
}
.view-all-link:hover {
    color: #0d47a1;
}
.new-link {
    color: #a259f7;
}
.games-list {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}
.game-card {
    position: relative;
    background: #22243a;
    border-radius: 20px;
    box-shadow: 0 2px 16px #0003;
    width: 192px;              /* 调整为228px */
    padding: 10px 10px 10px 10px; /* 适当缩小内边距 */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    border: 2px solid transparent;
}
.game-card:hover {
    box-shadow: 0 6px 24px #0002;
    transform: translateY(-4px) scale(1.03);
    border-color: #a259f7;
}
.game-card img {
    width: 184px;
    height: 103px;             /* 可适当微调图片高度 */
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 9px;
    background: #f3f3f3;
    position: relative;
    z-index: 1;
}
.card-video {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 184px;
    height: 103px;
    object-fit: cover;
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
    background: #111;
}
.card-video.visible {
    opacity: 1;
}
.game-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.game-title {
    font-size: 0.9em;
    font-weight: 450;
    color: #d0d0e8;
    margin-bottom: 6px;
}
.game-meta {
    font-size: 0.98em;
    color: #8a94a6;
    display: flex;
    gap: 16px;
}
.icon-star::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ebe45fe8;
    margin-right: 4px;
}
.icon-users::before {
    content: "\f500";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #8a94a6;
    margin-right: 4px;
}
.bloodmoney-section {
    max-width: 1200px !important;
    margin: 48px auto 0 auto;
}
.bloodmoney-section .bm-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.bloodmoney-section .bm-icon {
    flex-shrink: 0;
}
.bm-feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 2em;
}
.bm-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff;
    border: 1.5px solid #e3d7fa;
    border-radius: 14px;
    padding: 16px 18px;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 2px 8px #a259f71a;
    font-size: 1em;
    flex: 1 1 220px;
}
.bm-feature-icon {
    font-size: 1.5em;
    margin-top: 2px;
    display: flex;
    align-items: center;
}
.bm-feature-title {
    font-weight: 600;
    font-size: 1.08em;
    margin-bottom: 2px;
    color: #222;
}
.bm-feature-desc {
    color: #666;
    font-size: 0.98em;
}
.bm-details {
    background: #faf7ff;
    border-radius: 18px;
    padding: 28px 24px 18px 24px;
    box-shadow: 0 2px 16px #a259f71a;
    margin-top: 1.5em;
}
.bm-list {
    margin: 0.5em 0 0.5em 1.2em;
    padding: 0;
    color: #444;
    font-size: 1em;
}
.bm-list li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}
a:hover {
    color: #a259f7;
    text-decoration: none;
}
/* 评分星星动画 */
@keyframes star-bounce {
    0% { transform: scale(1) rotate(-8deg);}
    50% { transform: scale(1.15) rotate(8deg);}
    100% { transform: scale(1) rotate(-8deg);}
}

/* 更自然的评分星星动画：轻微缩放呼吸效果 */
@keyframes star-breath {
    0% { transform: scale(1);}
    50% { transform: scale(1.13);}
    100% { transform: scale(1);}
}
.star-animate {
    display: inline-block;
    animation: star-breath 1.6s ease-in-out infinite;
}

/* 游戏标签基础样式 */
.game-tag {
    padding: 6px 22px;
    border-radius: 22px;
    font-size: 1em;
    font-weight: 600;
    border-width: 2px;
    border-style: solid;
    display: inline-block;
}
.game-tag-red   { background: #2d1a1a; color: #f47272; border-color: #5a2a2a; box-shadow: 0 2px 8px #f4433611; }
.game-tag-blue  { background: #1a2233; color: #7da8d8; border-color: #1e3a5f; box-shadow: 0 2px 8px #1976d211; }
.game-tag-purple{ background: #221a33; color: #c084fc; border-color: #3d2a5a; box-shadow: 0 2px 8px #a259f711; }
.game-tag-yellow{ background: #2a2010; color: #d4a444; border-color: #4a3820; box-shadow: 0 2px 8px #b97a0011; }
.game-tag-green { background: #1a2a22; color: #34d399; border-color: #1a4a32; box-shadow: 0 2px 8px #00b89411; }

/* 标签动效 */
.tag-animate {
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.tag-animate:hover {
    box-shadow: 0 4px 16px #a259f755;
    transform: translateY(-3px) scale(1.07);
}
/* How to Play 卡片整体 */
.how-to-play-card {
    max-width: 900px;
    margin: 36px auto 0 auto;
    background: #22243a;
    border-radius: 22px;
    box-shadow: 0 2px 16px #00000033;
    padding: 32px 28px 28px 28px;
    position: relative;
    transition: box-shadow 0.2s;
}
.how-to-play-card:hover {
    box-shadow: 0 6px 32px #a259f722;
}

/* 标题 */
.how-to-play-header {
    font-size: 1.28em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #e8e8f4;
}
.how-to-play-header .fa-gamepad {
    color: #a259f7;
    font-size: 1.2em;
}

/* 内容区布局 */
.how-to-play-content {
    display: flex;
    gap: 36px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.how-to-controls {
    flex: 1 1 320px;
    min-width: 220px;
}
.control-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.control-key {
    font-weight: 600;
    background: #1e2040;
    padding: 10px 18px;
    border-radius: 10px;
    min-width: 160px;
    text-align: center;
    color: #e8e8f4;
    box-shadow: 0 1px 4px #00000033;
    font-size: 1em;
    margin-right: 8px;
    flex-shrink: 0;
    border: 1px solid #2a2c4a;
}
.control-desc {
    color: #9098b8;
    font-size: 1em;
    line-height: 1.6;
    flex: 1;
}

/* 说明区 */
.how-to-instructions {
    flex: 1 1 220px;
    min-width: 180px;
}
.instructions-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: #e8e8f4;
    font-size: 1.08em;
}
.how-to-instructions ul {
    color: #b8bdd4;
    font-size: 1em;
    line-height: 1.7;
    padding-left: 20px;
    margin: 0;
}

/* 移动端提示 */
.how-to-mobile-tip {
    margin-top: 28px;
    background: #1e2040;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #9098b8;
    font-size: 1em;
    border: 1px solid #2a2c4a;
}
.how-to-mobile-tip .fa-undo {
    font-size: 1.2em;
    color: #a259f7;
}

/* 面包屑导航 */
.breadcrumb {
    max-width: 900px;
    margin: 32px auto 0 auto;
    font-size: 1em;
    color: #7078a0;
}
.breadcrumb a {
    color: #7da8d8;
    text-decoration: none;
}
.breadcrumb a:hover {
    color: #a8c8f0;
    text-decoration: underline;
}
.breadcrumb span[style*="font-weight:500"],
.breadcrumb .current {
    color: #e8e8f4;
    font-weight: 500;
}

/* 游戏主标题 */
.game-main-title {
    color: #e8e8f4;
    max-width: 900px;
    margin: 0 auto 18px auto;
    padding: 0 24px;
}

/* 游戏描述区样式 */
.game-desc-section {
    max-width: 1200px;
    margin: 48px auto 0 auto;
    padding-bottom: 32px;
}
.game-desc-title {
    font-size: 1.45em;
    font-weight: 700;
    color: #e8e8f4;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}
.game-desc-lead {
    font-size: 1.12em;
    color: #4b4f5b;
    margin-bottom: 18px;
    font-weight: 500;
}
.game-desc-section p {
    color: #6c6f7a;
    font-size: 1.04em;
    line-height: 1.8;
    margin-bottom: 12px;
}

/* 文件路径: /css/style.css */
.new-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #c0392b;
    color: #fff;
    font-size: 0.95em;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 8px #c0392b33;
    z-index: 2;
    letter-spacing: 1px;
    display: block; 
}

/* 搜索下拉框样式 */
.search-dropdown {
    position: absolute;
    top: 48px;
    right: 0;              /* 从右侧对齐 */
    transform: none;        /* 去掉居中 */
    width: 420px;           /* 可根据实际调整 */
    max-width: 90vw;
    background: #fff;
    box-shadow: 0 4px 24px #0002;
    border-radius: 18px;
    z-index: 99;
    display: none;
    max-height: 420px;
    overflow: auto;
}

/* 响应式优化 */
@media (max-width: 700px) {
    .how-to-play-card {
        padding: 20px 8px 18px 8px;
    }
    .how-to-play-content {
        flex-direction: column;
        gap: 18px;
    }
    .how-to-controls, .how-to-instructions {
        min-width: 0;
    }
    .control-key {
        min-width: 110px;
        font-size: 0.98em;
        padding: 8px 10px;
    }
}
@media (max-width: 1100px) {
    .games-list {
        gap: 18px;
    }
    .game-card {
        width: 170px;
        padding: 10px 10px 8px 10px;
    }
    .game-card img {
        height: 80px;
    }
}
/* 遮罩层样式 */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

@media (max-width: 800px) {
    .games-section {
        padding: 0 4vw 24px 4vw;
    }
    .games-list {
        flex-wrap: wrap;
        gap: 10px;
    }
    .game-card {
        width: calc(50% - 5px);  /* 50% 减去一半的 gap */
        min-width: 140px;
        max-width: 200px;
    }
    .navbar .search {
        width: auto;
        padding: 3px 12px;
        height: 32px;
    }
    .navbar .search input[type="text"] {
        width: 100px;
        font-size: 0.85em;
    }
    .navbar .logo a span:nth-child(3) {
        display: none;
    }
}

@media (max-width: 600px) {
    .navbar .logo {
        font-size: 0.9em;
    }
    .navbar .logo a span:nth-child(2) {
        display: none;
    }
    .navbar .search input[type="text"] {
        width: 80px;
    }
}
@media (max-width: 900px) {
    .bm-feature-cards {
        flex-direction: column;
        gap: 12px;
    }
    .bm-feature-card {
        min-width: 0;
        max-width: 100%;
    }
}
/* 移动端 Featured Games 区域下移到主内容下方 */
@media (max-width: 700px) {
    .container {
        display: flex;
        flex-direction: column;
    }
    .main-content {
        order: 1;
        width: 100%;
    }
    .sidebar {
        order: 2;
        width: 100%;
        margin-top: 24px;
        padding: 0;
    }
    .featured-list {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: flex-start;
    }
    .featured-game {
        width: 48%;
        min-width: 140px;
        box-sizing: border-box;
        margin-bottom: 10px;
        padding: 8px;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 2px 8px #a259f71a;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .featured-game img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 6px;
    }
    .featured-game .title {
        font-size: 0.98em;
        text-align: center;
        margin-top: 2px;
    }
    .featured-game .tag {
        font-size: 0.8em;
        margin-bottom: 4px;
        color: #a259f7;
        background: #f3eaff;
        border-radius: 6px;
        padding: 2px 8px;
    }
}

/* 超小屏幕一行一个卡片 */
@media (max-width: 420px) {
    .featured-game {
        width: 100%;
        min-width: 0;
    }
}

/* 在桌面端显示导航栏 */
@media (min-width: 768px) {
    .navbar nav {
        display: flex;
        gap: 24px;
        margin-right: 24px;
    }
    
    .navbar nav a {
        color: #fff;
        text-decoration: none;
        font-size: 0.95em;
        transition: opacity 0.2s;
    }
    
    .navbar nav a:hover {
        opacity: 0.8;
    }
}

/* ── Site Footer ── */
.site-footer {
    background: #181828;
    color: #c8c8d8;
    padding: 36px 0 24px 0;
    margin-top: 48px;
}
.site-footer.no-gap { margin-top: 0; }
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 32px 16px;
}
.footer-brand {
    flex: 2 1 320px;
    min-width: 220px;
}
.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.footer-brand-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.footer-brand-logo span {
    font-size: 1.6em;
    font-weight: 700;
    color: #c0392b;
}
.footer-brand p {
    color: #8898a8;
    font-size: 1em;
    line-height: 1.7;
    margin: 0;
}
.footer-col {
    flex: 1 1 120px;
    min-width: 100px;
}
.footer-col h4, .footer-col-title {
    color: #e8e8f8;
    font-size: 1.1em;
    margin: 0 0 10px 0;
    font-weight: 700;
}
.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-col li { margin-bottom: 6px; }
.footer-col a {
    color: #8898a8;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col a:hover { color: #c8c8d8; }
.footer-copy {
    text-align: center;
    color: #888;
    font-size: 0.95em;
    margin-top: 32px;
}
.footer-disclaimer {
    text-align: center;
    color: #aaa;
    font-size: 0.85em;
    margin-top: 10px;
}
.footer-lang {
    color: #ff4d4f;
    font-weight: 600;
}

/* ── Static Pages (About, Contact, Privacy, Terms, Cookie, 404) ── */
.static-page { max-width:780px; margin:48px auto 60px; padding:0 24px; }
.static-page h1 { font-size:2em; font-weight:800; color:#e8e8f4; margin:0 0 8px; }
.static-page .subtitle { color:#9098b8; font-size:1.05em; margin:0 0 40px; }
.static-page h2 { font-size:1.2em; font-weight:700; color:#e8e8f4; margin:36px 0 12px; padding-left:14px; border-left:4px solid #c0392b; }
.static-page p { color:#b8bdd4; line-height:1.8; margin:0 0 14px; font-size:1em; }
.static-page ul { color:#b8bdd4; line-height:1.8; padding-left:1.4em; margin:0 0 14px; }
.static-page li { margin-bottom:6px; }
.static-page strong { color:#e8e8f4; }
.static-page a { color:#c0392b; }
.contact-card { display:flex; align-items:flex-start; gap:20px; background:#1e2040; border-radius:12px; padding:24px; margin-bottom:20px; }
.contact-card-icon { flex-shrink:0; width:48px; height:48px; background:#c0392b22; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.4em; color:#f05a48; }
.contact-card h3 { color:#e8e8f4; font-size:1.1em; margin:0 0 6px; }
.contact-card p { color:#b8bdd4; margin:0; line-height:1.7; }

/* ── Game Article — ld-* (level-devil, stickman-hook, no-im-not-a-human, exhibit-of-sorrows) ── */
.ld-h2 { font-size:1.4em; font-weight:800; color:#e8e8f4; margin:36px 0 12px; padding-left:14px; border-left:4px solid #f44336; position:relative; }
.ld-h2::after { content:''; display:block; width:40px; height:2px; background:linear-gradient(90deg,#f44336,transparent); margin-top:5px; }
.ld-h3 { font-size:.9em; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:#f44336; margin:22px 0 8px; }
.ld-article p { color:#b8bdd4; line-height:1.8; margin:0 0 12px; font-size:1em; }
.ld-article ul { color:#b8bdd4; line-height:1.8; padding-left:1.4em; margin:0 0 12px; }
.ld-article li { margin-bottom:4px; }
.ld-article strong { color:#e8e8f4; }
.ld-table { width:100%; border-collapse:collapse; margin:16px 0 24px; font-size:.95em; }
.ld-table thead tr { background:#f44336; color:#fff; }
.ld-table th { padding:10px 14px; text-align:left; font-weight:700; }
.ld-table td { padding:9px 14px; border-bottom:1px solid #2a2c4a; color:#b8bdd4; background:#22243a; }
.ld-table tbody tr:nth-child(even) td { background:#1e2040; }
.ld-table tbody tr:hover td { background:#2a2c4a; }
.ld-tip { background:#1e2040; border-left:3px solid #f44336; border-radius:0 10px 10px 0; padding:14px 18px; margin:18px 0; color:#b8bdd4; font-size:.97em; }
.ld-tip b { color:#f44336; }
.ld-similar { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.ld-similar a { background:#22243a; color:#f44336; border:1px solid #3a2a2a; padding:6px 16px; border-radius:20px; text-decoration:none; font-size:.93em; transition:background .2s,color .2s; }
.ld-similar a:hover { background:#f44336; color:#fff; }
.ld-toc { background:#1e2040; border:1px solid #2a2c4a; border-radius:12px; padding:24px 28px; margin-bottom:40px; }
.ld-toc-title { font-size:.8em; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#7078a0; margin:0 0 14px; }
.ld-toc ol { margin:0; padding:0 0 0 18px; }
.ld-toc li { margin:6px 0; }
.ld-toc a { color:#f44336; text-decoration:none; font-size:1em; font-weight:500; transition:color .2s; }
.ld-toc a:hover { color:#e53935; text-decoration:underline; }

/* ── Idols of Ash Article — ioa-* (index.html) ── */
.ioa-toc { background:#1e2040; border:1px solid #2a2c4a; border-radius:12px; padding:24px 28px; margin-bottom:40px; }
.ioa-toc-title { font-size:.8em; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#7078a0; margin:0 0 14px; }
.ioa-toc ol { margin:0; padding:0 0 0 18px; }
.ioa-toc li { margin:6px 0; }
.ioa-toc a { color:#f05a48; text-decoration:none; font-size:1em; font-weight:500; transition:color .2s; }
.ioa-toc a:hover { color:#f07866; text-decoration:underline; }
.ioa-toc ol ol { margin-top:4px; }
.ioa-toc ol ol a { color:#8898b6; font-size:.93em; font-weight:400; }
.ioa-h2 { font-size:1.55em; font-weight:800; margin:48px 0 16px; padding-left:16px; border-left:4px solid #c0392b; color:#e8e8f4; position:relative; }
.ioa-h2::after { content:''; display:block; width:48px; height:2px; background:linear-gradient(90deg,#c0392b,transparent); margin-top:6px; }
.ioa-h3 { font-weight:700; margin:28px 0 10px; color:#f05a48; letter-spacing:.04em; text-transform:uppercase; font-size:.95em; }
.ioa-article p { color:#b8bdd4; line-height:1.8; margin:0 0 14px; font-size:1.02em; }
.ioa-article ul, .ioa-article ol { color:#b8bdd4; line-height:1.8; padding-left:1.4em; margin:0 0 14px; }
.ioa-article li { margin-bottom:4px; }
.ioa-article strong { color:#e8e8f4; }
.ioa-tip-box { background:#1e2040; border-left:3px solid #c0392b; border-radius:0 10px 10px 0; padding:16px 20px; margin:20px 0; color:#b8bdd4; }
.ioa-tip-box b { color:#f05a48; }
.ioa-cta { background:linear-gradient(135deg,#1e2040,#22243a); border:1px solid #3a2040; border-radius:14px; padding:32px; text-align:center; margin-top:48px; }
.ioa-cta h2 { border:none; padding:0; color:#c0392b; font-size:1.4em; margin:0 0 10px; }
.ioa-cta h2::after { display:none; }
.ioa-cta p { color:#9098b8; margin:0 0 20px; }
.ioa-cta a { display:inline-block; background:#c0392b; color:#fff; font-weight:700; padding:12px 36px; border-radius:30px; text-decoration:none; font-size:1.05em; transition:background .2s,transform .15s; }
.ioa-cta a:hover { background:#e74c3c; transform:scale(1.04); }
.ioa-yt { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:12px; margin:24px 0; background:#000; cursor:pointer; }
.ioa-yt iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; border-radius:12px; }
.ioa-yt-thumb { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; border-radius:12px; }
.ioa-yt-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:68px; height:48px; background:#c0392b; border-radius:10px; display:flex; align-items:center; justify-content:center; transition:background .2s,transform .15s; pointer-events:none; }
.ioa-yt:hover .ioa-yt-play { background:#e74c3c; transform:translate(-50%,-50%) scale(1.08); }
.ioa-yt-play::after { content:''; border-style:solid; border-width:10px 0 10px 20px; border-color:transparent transparent transparent #fff; margin-left:4px; }
.ioa-similar { display:flex; flex-wrap:wrap; gap:10px; margin:16px 0; }
.ioa-similar a { background:#22243a; color:#c0392b; border:1px solid #3a2040; padding:7px 16px; border-radius:20px; text-decoration:none; font-size:.95em; transition:background .2s,color .2s; }
.ioa-similar a:hover { background:#c0392b; color:#fff; }
.ioa-table { width:100%; border-collapse:collapse; margin:20px 0 28px; font-size:.97em; }
.ioa-table thead tr { background:#c0392b; color:#fff; }
.ioa-table th { padding:11px 16px; text-align:left; font-weight:700; letter-spacing:.04em; }
.ioa-table td { padding:10px 16px; border-bottom:1px solid #2a2c4a; color:#b8bdd4; background:#22243a; }
.ioa-table tbody tr:nth-child(even) td { background:#1e2040; }
.ioa-table tbody tr:hover td { background:#2a2c4a; }
.ioa-badge { display:inline-block; padding:2px 10px; border-radius:20px; font-size:.82em; font-weight:700; }
.ioa-badge-mod  { background:#2a2a40; color:#e67e22; }
.ioa-badge-high { background:#2a2030; color:#f06050; }
.ioa-badge-ext  { background:#2a203a; color:#b070ff; }
.ioa-faq { margin:16px 0 8px; }
.ioa-faq-item { border-bottom:1px solid #2a2c4a; padding:18px 0; }
.ioa-faq-item:last-child { border-bottom:none; }
.ioa-faq-q { font-size:1.05em; font-weight:700; color:#e8e8f4; margin:0 0 8px; padding:0; text-transform:none; letter-spacing:0; }
@media(max-width:600px) {
    .ioa-h2 { font-size:1.25em; }
    .ioa-table { font-size:.85em; }
    .ioa-table th, .ioa-table td { padding:8px 10px; }
}