/* 三国群英传 - 页面布局 */

/* 头部 */
#app-header {
    text-align: center;
    padding: 30px 20px 10px;
    max-width: 1200px;
    margin: 0 auto;
}

.app-title {
    font-family: var(--font-title);
    font-size: 48px;
    color: var(--水墨黑);
    margin-bottom: 20px;
    letter-spacing: 8px;
}

/* 进度条 */
.progress-bar-container {
    max-width: 600px;
    margin: 0 auto 20px;
}

.progress-bar {
    position: relative;
    height: var(--progress-height);
    background: var(--progress-bg);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--progress-fill);
    border-radius: 14px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: var(--progress-text-color);
    white-space: nowrap;
}

/* 导航按钮 */
.header-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.seal-btn {
    width: var(--seal-size);
    height: var(--seal-size);
    border-radius: var(--seal-radius);
    background: var(--seal-bg);
    color: var(--seal-text);
    border: none;
    font-family: var(--font-title);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(178, 34, 34, 0.3);
}

.seal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(178, 34, 34, 0.4);
}

.seal-btn:active {
    transform: translateY(0);
}

/* 主内容区 */
#app-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 筛选栏 */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: transparent;
    color: var(--淡墨灰);
    font-family: var(--font-body);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--朱砂印);
    color: var(--朱砂印);
}

.filter-btn.active {
    background: var(--朱砂印);
    color: white;
    border-color: var(--朱砂印);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--card-width), 1fr));
    gap: 20px;
    justify-items: center;
    padding: 10px 0;
}

/* 推荐战役区 */
.campaign-recommend {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

/* 弹窗 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .app-title {
        font-size: 36px;
        letter-spacing: 4px;
    }

    #app-main {
        padding: 10px;
    }

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

    .seal-btn {
        --seal-size: 36px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .app-title {
        font-size: 28px;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }

    .hero-card {
        width: 260px;
        max-width: 90vw;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 12px;
    }

    .header-nav {
        gap: 8px;
    }

    .nav-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}
