/* 目录页样式 */

.catalogue-page {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #0d1117;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    overflow: hidden;
}

/* ── 顶部标题栏 ─────────────────────────── */
.cat-header {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 32px 60px 20px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cat-title {
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    letter-spacing: 6px;
}

.cat-title span {
    color: #FFD138;
}

.cat-count {
    font-size: 24px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
}

/* ── 主区域（卡片 + 左右箭头） ───────────── */
.cat-main {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 24px 40px;
    gap: 32px;
    overflow: hidden;
}

/* 左右导航按钮 */
.cat-nav-btn {
    background: rgba(255,255,255,0.06);
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    font-size: 32px;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    flex-shrink: 0;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.cat-nav-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.cat-nav-btn.focused,
.cat-nav-btn:focus {
    outline: none;
    border-color: #FFD138;
    color: #FFD138;
    background: rgba(255,209,56,0.12);
    box-shadow: 0 0 0 3px rgba(255,209,56,0.3);
}

/* ── 故事卡片 ───────────────────────────── */
.cat-card {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    max-width: 900px;
    background: #151d2e;
    border-radius: 20px;
    overflow: hidden;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    flex-direction: column;
    border: 2px solid rgba(255,255,255,0.06);
}

.cat-thumb {
    width: 100%;
    height: 340px;
    background: #0d1a2e;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cat-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    background: -webkit-linear-gradient(135deg, #1a2a4a 0%, #0d1a2e 100%);
    background: linear-gradient(135deg, #1a2a4a 0%, #0d1a2e 100%);
    font-size: 96px;
}

.cat-info {
    padding: 24px 32px 28px;
}

.cat-story-title {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 12px;
}

.cat-story-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.cat-tag {
    background: rgba(255,209,56,0.15);
    border: 1px solid rgba(255,209,56,0.4);
    color: #FFD138;
    font-size: 20px;
    padding: 4px 16px;
    border-radius: 20px;
}

.cat-duration {
    font-size: 20px;
    color: rgba(255,255,255,0.4);
}

.cat-story-desc {
    font-size: 22px;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* ── 底部：圆点 + 开始按钮 ──────────────── */
.cat-footer {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 20px 60px 32px;
    flex-shrink: 0;
}

.cat-dots {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    gap: 12px;
}

.cat-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.cat-dot.active {
    width: 28px;
    border-radius: 5px;
    background: #FFD138;
}

/* 开始按钮 */
.cat-start-btn {
    background: #FFD138;
    border: none;
    border-radius: 50px;
    padding: 18px 56px;
    font-size: 28px;
    font-weight: bold;
    color: #1a1a1a;
    cursor: pointer;
    letter-spacing: 3px;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.cat-start-btn.focused,
.cat-start-btn:focus {
    outline: none;
    background: #ffe566;
    box-shadow: 0 0 0 4px rgba(255,209,56,0.5), 0 0 24px 8px rgba(255,209,56,0.4);
    -webkit-transform: scale(1.06);
    transform: scale(1.06);
}
