:root {
    --bg-paper: #f3e9d2; /* 泛黄的纸张色 */
    --ink-black: #1a1a1a;
    --chow-blue: #2c3e50; /* 尹天仇西装蓝 */
    --drama-red: #c0392b; /* 戏剧性的红色 */
    --gold-highlight: #f1c40f;
}

body {
    font-family: "KaiTi", "STKaiti", "Georgia", serif;
    background-color: var(--bg-paper);
    background-image: 
        linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px),
        linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 2rem 2rem;
    color: var(--ink-black);
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

/* 标题区域：复古电影海报风格 */
.movie-header {
    text-align: center;
    border: 8px double var(--ink-black);
    padding: 3rem 1rem;
    background: #fff;
    margin-bottom: 4rem;
    box-shadow: 10px 10px 0px var(--drama-red);
    transform: rotate(-1deg);
    position: relative;
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 10px 10px;
}

.movie-header::before {
    content: "ACTOR'S MANUAL";
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Impact", sans-serif;
    color: #ccc;
    letter-spacing: 5px;
    font-size: 1.2rem;
}

.movie-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 1rem 0 0.5rem 0;
    line-height: 1.2;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.1);
    color: var(--ink-black);
}

.movie-subtitle {
    font-size: 1.6rem;
    color: var(--drama-red);
    font-weight: bold;
    font-style: italic;
    border-top: 2px solid var(--ink-black);
    display: inline-block;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* 剧本对话框 */
.dialogue-box {
    background: #fff;
    border-left: 6px solid var(--chow-blue);
    padding: 2rem;
    margin: 3rem 0;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    position: relative;
    font-family: "SimSun", "Songti SC", serif; /* 宋体，像打印剧本 */
}

.character-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--chow-blue);
    margin-bottom: 0.8rem;
    background: #e8f4f8;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}

.dialogue-box p {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.8;
}

/* 脚本内容区 */
.script-content {
    background: rgba(255, 255, 255, 0.6);
    padding: 2rem;
    border: 1px dashed var(--ink-black);
    margin-bottom: 3rem;
}

.script-content h3 {
    border-bottom: 3px solid var(--drama-red);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 2rem;
    color: var(--ink-black);
    font-size: 1.8rem;
}

/* 场景卡片（首页）：场记板风格 */
.scene-list {
    display: grid;
    gap: 1.5rem;
}

.scene-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    background: #1a1a1a;
    color: #fff;
    padding: 1.5rem 1.5rem 1.5rem 1rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    border: 2px solid #000;
    box-shadow: 6px 6px 0px rgba(0,0,0,0.2);
}

/* 场记板条纹装饰 */
.scene-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background-image: repeating-linear-gradient(
        -45deg,
        #fff,
        #fff 10px,
        #000 10px,
        #000 20px
    );
    border-right: 2px solid #fff;
}

.scene-card:hover {
    transform: translateX(-5px) translateY(-5px);
    box-shadow: 10px 10px 0px var(--drama-red);
}

.scene-number {
    margin-left: 20px; /* 避开条纹 */
    font-family: "Impact", sans-serif;
    font-size: 2rem;
    color: var(--gold-highlight);
    margin-right: 1.5rem;
    min-width: 120px;
}

.scene-title {
    font-size: 1.2rem;
    font-weight: bold;
    flex: 1;
    color: #ecf0f1;
}

.scene-action {
    background: var(--drama-red);
    color: #fff;
    padding: 4px 8px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 2px;
    transform: rotate(-10deg);
}

/* 代码块：黑客帝国终端 */
.code-block {
    background: #0d0d0d;
    color: #00ff00;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #333;
    font-family: "Consolas", monospace;
    margin: 1.5rem 0;
    box-shadow: inset 0 0 10px #000;
}

.command { color: #fff; font-weight: bold; }
.comment { color: #7f8c8d; font-style: italic; }

/* 导演批注 */
.director-note {
    background: #fffde7;
    border: 1px solid #f1c40f;
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    transform: rotate(1deg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
}

.director-note::before {
    content: "📌";
    position: absolute;
    top: -15px;
    left: 50%;
    font-size: 1.5rem;
}

/* 互动测试区 */
.interactive-test {
    border: 4px dashed var(--drama-red);
    padding: 2rem;
    text-align: center;
    background: rgba(255,255,255,0.8);
    margin-top: 4rem;
}

.test-btn {
    background: var(--ink-black);
    color: var(--gold-highlight);
    border: 2px solid var(--gold-highlight);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.2s;
}

.test-btn:hover {
    background: var(--drama-red);
    color: #fff;
    border-color: var(--drama-red);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    border-top: 2px solid var(--ink-black);
    padding-top: 2rem;
}

.nav-btn {
    text-decoration: none;
    color: var(--ink-black);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border: 2px solid transparent;
}

.nav-btn:hover {
    border: 2px solid var(--ink-black);
    background: #fff;
}

/* 测验样式 */
.quiz-container {
    background: #fff;
    border: 2px solid #eee;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.question { font-size: 1.2rem; font-weight: bold; margin-bottom: 1rem; }
.result.correct { color: #27ae60; font-weight: bold; }
.result.incorrect { color: #c0392b; font-weight: bold; }

@media (max-width: 600px) {
    .movie-title { font-size: 2.2rem; }
    .scene-card { flex-direction: column; align-items: flex-start; }
    .scene-number { margin: 0 0 0.5rem 20px; }
}
