 :root {
	--primary: #8e44ad;
	--secondary: #732d91;
	--light: #f9f9f9;
	--dark: #2c3e50;
	--success: #27ae60;
	--warning: #f39c12;
	--danger: #e74c3c;
}

body {
	font-family: 'Microsoft YaHei', sans-serif;
	line-height: 1.8;
	color: var(--dark);
	background-color: #f5f7fa;
	margin: 0;
	padding: 0;
}

.container {
	max-width: 900px;
	margin: 20px auto;
	background: white;
	padding: 30px;
	border-radius: 10px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

h1 {
	text-align: center;
	color: var(--primary);
	padding-bottom: 15px;
	border-bottom: 2px solid var(--primary);
	margin-bottom: 30px;
	position: relative;
}

h1::after {
	content: "";
	position: absolute;
	bottom: -3px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 3px;
	background: var(--secondary);
}

.scene {
	margin-bottom: 40px;
	padding: 25px;
	background: var(--light);
	border-left: 4px solid var(--primary);
	border-radius: 0 5px 5px 0;
	transition: all 0.3s;
}

.scene:hover {
	transform: translateX(5px);
	box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.scene-title {
	font-size: 1.2em;
	color: var(--primary);
	margin-bottom: 15px;
	padding-bottom: 8px;
	border-bottom: 1px dashed var(--primary);
	display: flex;
	align-items: center;
}

.scene-title::before {
	content: "◆";
	margin-right: 10px;
	color: var(--secondary);
}

.narrator {
	color: #7f8c8d;
	font-style: italic;
	margin: 12px 0;
	padding: 8px 12px;
	background: #fdfdfd;
	border-left: 2px solid #bdc3c7;
	position: relative;
}

.narrator::before {
	content: "『";
	color: #bdc3c7;
	margin-right: 5px;
}

.narrator::after {
	content: "』";
	color: #bdc3c7;
	margin-left: 5px;
}

.dialogue {
	margin: 15px 0;
	padding: 12px 18px;
	background: #e8f4f8;
	border-left: 3px solid #3498db;
	border-radius: 0 5px 5px 0;
	position: relative;
}

.dialogue::before {
	content: "“";
	color: #3498db;
	font-size: 1.5em;
	line-height: 0;
	position: absolute;
	top: 15px;
	left: 8px;
}

.dialogue::after {
	content: "”";
	color: #3498db;
	font-size: 1.5em;
	line-height: 0;
	position: absolute;
	bottom: -5px;
	right: 10px;
}

.character {
	font-weight: bold;
	color: #2980b9;
	margin-right: 8px;
}

.action {
	color: var(--success);
	margin: 12px 0;
	padding: 8px 15px;
	background: #e8f8e5;
	border-left: 3px solid var(--success);
	border-radius: 0 5px 5px 0;
}

.flashback {
	background: #fff8e1;
	border-left-color: #f39c12;
}

.flashback .character {
	color: #f39c12;
}

.navigation {
	display: flex;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 25px;
	border-top: 1px solid #eee;
}

.nav-button {
	padding: 10px 20px;
	background: var(--primary);
	color: white;
	text-decoration: none;
	border-radius: 5px;
	transition: all 0.3s;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nav-button:hover {
	background: var(--secondary);
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-button.disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	opacity: 0.7;
}

.chapter-indicator {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.9);
	padding: 8px 15px;
	border-radius: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	font-size: 0.9em;
}

@media (max-width: 768px) {
	.container {
		margin: 10px;
		padding: 15px;
	}
	.scene {
		padding: 15px;
		margin-bottom: 25px;
	}
	.nav-button {
		padding: 8px 15px;
		font-size: 0.9em;
	}
}