/* 区域样式 */
.hero {
    background-image: url('../images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    /*background-attachment: fixed;*/
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    min-width: 1480px;
    min-height: 750px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 1480px;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--light-bg);
    padding: 2rem;
}

.hero-content h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    font-family: '楷体', KaiTi, serif;
}

/* 故事简介样式 */
.story-intro {
    padding: 4rem 0;
    background-color: #fff;
}
.story-intro h3 {
    text-align: center;
    font-size: 25px;
}
.story-intro p {
    font-size: 1.2rem;
    text-align: justify;
    max-width: 1000px;
    margin: 10px auto;
    text-indent: 2em;
}

/* 主要人物样式 */
.main-characters {
    padding: 4rem 0;
    background-color: var(--light-bg);
}

.main-characters h3{
    font-size: 25px;
    text-align: center;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.character-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.character-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.character-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.character-card:hover img {
    transform: scale(1.1);
}

.character-card h4 {
    text-align: center;
    margin: 1rem 0 0.5rem;
    font-size: 1.2rem;
}

.character-card .character-title {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* 角色模态框样式 */
.character-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1100;
}

.character-modal .modal-content {
    background-color: var(--light-bg);
    max-width: 600px;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.character-modal .modal-title {
    font-family: '楷体', KaiTi, serif;
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.character-modal .modal-description {
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
    text-indent: 2em;
}

.character-modal .classic-lines {
    background-color: rgba(139, 69, 19, 0.1);
    padding: 1.5rem;
    border-radius: 4px;
    margin-top: 1.5rem;
}

.character-modal .classic-lines h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.character-modal .modal-quote {
    font-style: italic;
    color: var(--secondary-color);
    text-align: center;
    font-size: 1.1rem;
}
