/* ===== 游戏指南页面样式 ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #0a0a1a 0%, #0d1525 50%, #0a0a2e 100%);
    color: #ccc;
    font-family: 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    /* 覆盖 style.css 全局样式，允许页面滚动 */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* ===== 顶部导航栏 ===== */
.info-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 30px;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 204, 255, 0.15);
}

.back-btn {
    color: #00ccff;
    text-decoration: none;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(0, 204, 255, 0.3);
    transition: all 0.3s;
    white-space: nowrap;
}

.back-btn:hover {
    background: rgba(0, 204, 255, 0.1);
    border-color: #00ccff;
}

.navbar-title {
    font-size: 20px;
    color: #00ccff;
    letter-spacing: 4px;
    font-weight: bold;
}

/* ===== 标签导航 ===== */
.tab-nav {
    position: sticky;
    top: 57px;
    z-index: 99;
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 14px 20px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tab-btn {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: #aaa;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    white-space: nowrap;
}

.tab-btn:hover {
    background: rgba(0, 204, 255, 0.08);
    color: #ddd;
    border-color: rgba(0, 204, 255, 0.2);
}

.tab-btn.active {
    background: rgba(0, 204, 255, 0.15);
    color: #00ccff;
    border-color: #00ccff;
    box-shadow: 0 0 16px rgba(0, 204, 255, 0.2);
}

/* ===== 内容区域 ===== */
.info-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

.panel-inner {
    max-width: 900px;
    margin: 0 auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== 通用标题 ===== */
.section-title {
    font-size: 30px;
    color: #00ccff;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 6px;
    text-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}

.section-desc {
    text-align: center;
    color: #888;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* ===== 信息卡片 ===== */
.info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    transition: border-color 0.3s;
}

.info-card:hover {
    border-color: rgba(0, 204, 255, 0.2);
}

.card-heading {
    font-size: 18px;
    color: #00ccff;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.info-paragraph {
    color: #bbb;
    font-size: 15px;
    line-height: 2;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    color: #bbb;
    font-size: 15px;
    line-height: 2.2;
    padding-left: 22px;
    position: relative;
}

.info-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #00ccff;
}

.info-list.numbered {
    counter-reset: item;
}

.info-list.numbered li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 1px;
    width: 20px;
    height: 20px;
    background: rgba(0, 204, 255, 0.15);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 50%;
    color: #00ccff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.info-tip {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0, 204, 255, 0.06);
    border-left: 3px solid #00ccff;
    border-radius: 6px;
    color: #88ccdd;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 回合流程图 ===== */
.phase-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.phase-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(0, 204, 255, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(0, 204, 255, 0.1);
    transition: all 0.3s;
}

.phase-step:hover {
    background: rgba(0, 204, 255, 0.08);
    border-color: rgba(0, 204, 255, 0.25);
}

.phase-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ccff, #0088cc);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 204, 255, 0.3);
}

.phase-info strong {
    display: block;
    color: #00ccff;
    font-size: 16px;
    margin-bottom: 4px;
}

.phase-info p {
    color: #999;
    font-size: 14px;
    line-height: 1.7;
}

/* ===== 卡牌介绍 ===== */
.card-type-heading {
    font-size: 22px;
    color: #ffd700;
    margin: 30px 0 16px;
    padding-left: 14px;
    border-left: 4px solid #ffd700;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.card-info-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 20px;
    transition: all 0.3s;
}

.card-info-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 204, 255, 0.25);
    transform: translateY(-2px);
}

.card-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-info-name {
    font-size: 18px;
    font-weight: bold;
    color: #eee;
}

.card-info-type {
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid;
}

.card-type-basic {
    color: #66dd66;
    border-color: rgba(102, 221, 102, 0.3);
    background: rgba(102, 221, 102, 0.1);
}

.card-type-trick {
    color: #ffaa44;
    border-color: rgba(255, 170, 68, 0.3);
    background: rgba(255, 170, 68, 0.1);
}

.card-type-equip {
    color: #cc88ff;
    border-color: rgba(204, 136, 255, 0.3);
    background: rgba(204, 136, 255, 0.1);
}

.card-info-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 成员介绍 ===== */
.faction-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: #aaa;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.filter-btn:hover {
    background: rgba(0, 204, 255, 0.08);
    color: #ddd;
}

.filter-btn.active {
    background: rgba(0, 204, 255, 0.15);
    color: #00ccff;
    border-color: #00ccff;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 18px;
}

.hero-info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-info-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-info-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.hero-info-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-info-emoji {
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hero-info-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
}

.hero-info-title {
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}

.hero-info-faction {
    font-size: 12px;
    margin-bottom: 6px;
}

.hero-info-hp {
    font-size: 12px;
    color: #ff6666;
}

/* ===== 角色详情弹窗 ===== */
.hero-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hero-modal-overlay.active {
    display: flex;
}

.hero-modal {
    background: linear-gradient(135deg, #12122a 0%, #0d1525 100%);
    border: 1px solid rgba(0, 204, 255, 0.2);
    border-radius: 18px;
    max-width: 560px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 30px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.modal-hero-header {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-hero-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.modal-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-hero-name {
    font-size: 28px;
    margin-bottom: 4px;
}

.modal-hero-title {
    color: #888;
    font-size: 15px;
    margin-bottom: 10px;
}

.modal-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.modal-tag {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #aaa;
    background: rgba(255, 255, 255, 0.04);
}

.modal-section {
    margin-bottom: 22px;
}

.modal-section-title {
    font-size: 16px;
    color: #00ccff;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #00ccff;
}

.modal-bio {
    color: #bbb;
    font-size: 14px;
    line-height: 2;
}

.modal-skill-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.modal-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.modal-skill-name {
    font-size: 16px;
    font-weight: bold;
    color: #ffd700;
}

.modal-skill-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 特技介绍 ===== */
.skill-type-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 14px;
}

.skill-type-badge {
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid;
}

.skill-type-badge.active-skill {
    color: #ff8844;
    border-color: rgba(255, 136, 68, 0.3);
    background: rgba(255, 136, 68, 0.1);
}

.skill-type-badge.passive-skill {
    color: #44aaff;
    border-color: rgba(68, 170, 255, 0.3);
    background: rgba(68, 170, 255, 0.1);
}

.skill-type-badge.triggered-skill {
    color: #aa66ff;
    border-color: rgba(170, 102, 255, 0.3);
    background: rgba(170, 102, 255, 0.1);
}

.skill-type-desc {
    color: #777;
    margin-right: 8px;
}

.skill-list {
    max-width: 800px;
    margin: 0 auto;
}

.skill-group {
    margin-bottom: 30px;
}

.skill-group-title {
    margin-bottom: 16px;
}

.skill-info-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 14px;
    transition: all 0.3s;
}

.skill-info-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 204, 255, 0.2);
}

.skill-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-info-name {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
}

.skill-owners {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.skill-owner {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 10px;
    border: 1px solid;
    background: rgba(255, 255, 255, 0.04);
}

.skill-info-desc {
    color: #999;
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 滚动条美化 ===== */
.hero-modal::-webkit-scrollbar {
    width: 6px;
}

.hero-modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.hero-modal::-webkit-scrollbar-thumb {
    background: rgba(0, 204, 255, 0.3);
    border-radius: 3px;
}

.hero-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 204, 255, 0.5);
}

/* ===== 移动端适配 ===== */
@media screen and (max-width: 768px) {
    .info-navbar {
        padding: 12px 16px;
    }

    .navbar-title {
        font-size: 16px;
        letter-spacing: 2px;
    }

    .tab-nav {
        top: 53px;
        padding: 10px 12px;
        gap: 6px;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .section-title {
        font-size: 24px;
        letter-spacing: 3px;
    }

    .info-card {
        padding: 18px 16px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 12px;
    }

    .hero-info-card {
        padding: 14px 8px;
    }

    .hero-info-avatar {
        width: 60px;
        height: 60px;
    }

    .hero-info-name {
        font-size: 15px;
    }

    .modal-hero-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .modal-hero-avatar {
        margin: 0 auto;
    }

    .modal-hero-tags {
        justify-content: center;
    }

    .hero-modal {
        padding: 22px 18px;
    }

    .skill-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
