/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f4f0e6;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航栏样式 (BEM规范) */
.main-nav {
    background: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 999;
}

.main-nav__list {
    display: flex;
    list-style: none;
    max-width: 1100px;
    margin: auto;
}

.main-nav__item {
    flex: 1;
    text-align: center;
}

.main-nav__link {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 15px 0;
    font-size: 16px;
    transition: background-color 0.3s, color 0.3s;
}

.main-nav__link:hover,
.main-nav__link--active {
    background: #d4af37;
    color: #000;
}

/* 剧情分类标签样式 (BEM规范) */
.story-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.story-tabs__button {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #d4af37;
    color: #8b6f3a;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.story-tabs__button:hover {
    background: #f0e8d8;
}

.story-tabs__button--active {
    background: #d4af37;
    color: #000;
}

/* 剧情内容区域样式 (BEM规范) */
.story-content__title {
    font-size: 28px;
    color: #8b6f3a;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ccc;
}

.story-content__block {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.story-content__block--active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 剧情表格样式 (BEM规范) */
.story-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.story-table th,
.story-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    vertical-align: middle;
}

.story-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.story-table__image {
    width: 200px;
    margin-bottom: 8px;
}

.story-table__link {
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.story-table__link:hover {
    color: #d4af37;
    text-decoration: underline;
}

.story-table__description {
    color: #333;
    font-size: 15px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-nav__list {
        flex-wrap: wrap;
        max-width: 100%;
    }

    .main-nav__item {
        flex: 0 0 50%;
    }

    .main-nav__link {
        padding: 12px 5px;
        font-size: 14px;
    }

    .story-content__title {
        font-size: 24px;
    }

    .story-table__image {
        width: 150px;
    }
}

@media (max-width: 480px) {
    .main-nav__item {
        flex: 0 0 100%;
    }

    .story-content__title {
        font-size: 20px;
    }

    .story-table__image {
        width: 120px;
    }

    .story-table th,
    .story-table td {
        padding: 10px 8px;
    }

    .story-table__description {
        font-size: 14px;
    }
}