/* 目录页样式 - 双栏结构（左集数、右详情） */

.catalogue-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1f160f;
    overflow: hidden;
    font-family: "Microsoft YaHei", sans-serif;
}

.cat-layout {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    border-radius: 28px;
    overflow: hidden;
    background: #7a5534;
    border: 6px solid #d7a16a;
    box-shadow: inset 0 0 0 2px rgba(255, 225, 175, 0.25);
}

/* 左侧目录 */
.cat-left {
    width: 196px;
    background: #b57f4f;
    border-right: 4px solid rgba(255, 222, 168, 0.35);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.cat-left-head {
    height: 76px;
    line-height: 76px;
    text-align: center;
    color: #fff3d2;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 3px;
    background: rgba(122, 74, 39, 0.5);
}

.cat-episodes {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 14px 20px;
}

.cat-episodes::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.cat-episode-item {
    margin-bottom: 14px;
    border-radius: 16px;
    border: 3px solid transparent;
    padding: 6px;
    background: rgba(255, 240, 206, 0.1);
    -webkit-transition: all 0.18s ease;
    transition: all 0.18s ease;
}

.cat-episode-thumb {
    width: 100%;
    height: 98px;
    border-radius: 12px;
    overflow: hidden;
    background: #47301f;
    position: relative;
}

.cat-episode-thumb img {
    width: 100%;
    height: 100%;
    display: block;
}

.cat-episode-placeholder {
    width: 100%;
    height: 100%;
    background: -webkit-linear-gradient(top, #77573d 0%, #4f3523 100%);
    background: linear-gradient(to bottom, #77573d 0%, #4f3523 100%);
}

.cat-episode-title {
    margin-top: 8px;
    text-align: center;
    color: #fff0d2;
    font-size: 28px;
    font-weight: 700;
}

.cat-episode-item.active {
    border-color: rgba(255, 223, 151, 0.6);
    background: rgba(255, 240, 206, 0.2);
}

.cat-episode-item.focused,
.cat-episode-item:focus {
    outline: none;
    border-color: #ffe08d;
    background: rgba(255, 240, 206, 0.32);
    box-shadow: 0 0 0 3px rgba(255, 221, 143, 0.35);
}

/* 右侧详情 */
.cat-right {
    position: relative;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    background-color: #7b5638;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.cat-right-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(67, 39, 20, 0.38);
}

.cat-right-content {
    position: absolute;
    left: 32px;
    top: 24px;
    right: 28px;
    bottom: 26px;
}

.cat-story-title {
    color: #f8e6bd;
    font-size: 52px;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 18px;
    text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.cat-story-tag {
    display: inline-block;
    min-width: 170px;
    padding: 8px 24px;
    border-radius: 20px;
    background: #3c98ef;
    border: 1px solid #fff;
    color: #ffffff;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
}

.cat-story-desc {
    width: 62%;
    min-height: 186px;
    border-radius: 18px;
    background: rgba(34, 42, 52, 0.35);
    color: #f6f0df;
    font-size: 30px;
    line-height: 1.45;
    padding: 20px 24px;
    box-sizing: border-box;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cat-start-btn {
    position: absolute;
    right: 24px;
    bottom: 18px;
    width: 286px;
    height: 88px;
    border: none;
    border-radius: 42px;
    font-size: 50px;
    font-weight: 800;
    color: #5b3f00;
    letter-spacing: 6px;
    background: -webkit-linear-gradient(top, #ffd85d 0%, #eeb028 100%);
    background: linear-gradient(to bottom, #ffd85d 0%, #eeb028 100%);
    box-shadow: 0 10px 18px rgba(71, 43, 0, 0.32);
}

.cat-start-btn.focused,
.cat-start-btn:focus {
    outline: none;
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(255, 233, 168, 0.8), 0 12px 24px rgba(81, 50, 0, 0.45);
}

.cat-empty {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    margin-top: -24px;
    text-align: center;
    color: #f4e4c7;
    font-size: 42px;
}
