/* 自定义样式表 - 覆盖 Twine 默认样式 */

body {
	font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #333;
}

.page-container {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	padding: 2em;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	max-width: 800px;
	margin: 20px auto;
	transition: margin-left 0.3s ease;
	line-height: 1.6;
}

.page-container h2 {
	margin-top: 0;
	color: #667eea;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

.page-container h3 {
	color: #667eea;
	margin-top: 1.5em;
	margin-bottom: 0.5em;
}

.page-container p {
	margin: 1em 0;
	line-height: 1.6;
}

.page-container em {
	font-style: italic;
	color: #666;
}

.page-container ul, .page-container ol {
	margin: 1em 0;
	padding-left: 2em;
}

.page-container li {
	margin: 0.5em 0;
	line-height: 1.5;
}

/* 角色选择页面特殊样式 */
.character-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 20px 0;
	text-align: left;
}

.character-card {
	border: 2px solid #667eea;
	padding: 20px;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	background: white;
}

.character-card:hover {
	background: #f8f9ff;
	border-color: #764ba2;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.character-card h3 {
	margin: 0 0 10px 0;
	color: #667eea;
	font-size: 1.2em;
}

.character-card p {
	margin: 10px 0;
	line-height: 1.5;
	color: #555;
}

.character-select-btn {
	margin-top: 15px;
	padding: 8px 16px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.3s ease;
}

.character-select-btn:hover {
	background: #764ba2;
}

/* 通用按钮样式 */
.action-btn {
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;
	display: inline-block;
	text-decoration: none;
	text-align: center;
	min-width: 120px;
}

.action-btn.primary {
	background: #667eea;
	color: white;
}

.action-btn.primary:hover {
	background: #764ba2;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn.secondary {
	background: #f8f9fa;
	color: #667eea;
	border: 2px solid #667eea;
}

.action-btn.secondary:hover {
	background: #667eea;
	color: white;
}

.action-btn.large {
	padding: 16px 32px;
	font-size: 18px;
	min-width: 160px;
}

.action-btn:active {
	transform: translateY(0);
}

/* 游戏状态相关样式 */
.day-info, .character-confirm, .exchange-info, .ending-content {
	margin: 20px 0;
}

.character-status, .inventory-status {
	background: #f8f9ff;
	padding: 20px;
	border-radius: 8px;
	margin: 15px 0;
	border-left: 4px solid #667eea;
}

.inventory-list, .inventory-display {
	margin-top: 10px;
}

.inventory-item {
	padding: 8px 12px;
	margin: 5px 0;
	background: #f0f2ff;
	border-radius: 5px;
	border-left: 3px solid #667eea;
	font-size: 14px;
}

.inventory-empty {
	color: #999;
	font-style: italic;
	padding: 10px;
	text-align: center;
}

.exchange-section {
	margin: 20px 0;
	padding: 20px;
	background: #fafafa;
	border-radius: 8px;
}

.exchange-item {
	padding: 10px 15px;
	margin: 8px 0;
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 14px;
}

.exchange-item:hover {
	border-color: #667eea;
	background: #f8f9ff;
}

.exchange-item.selected {
	border-color: #667eea;
	background: #e8f0ff;
	box-shadow: 0 0 8px rgba(102, 126, 234, 0.3);
}

.player-item {
	border-left: 4px solid #28a745;
}

.npc-item {
	border-left: 4px solid #dc3545;
}

.day-actions, .confirm-actions, .exchange-actions, .ending-actions {
	text-align: center;
	margin: 30px 0;
	padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.page-container {
		padding: 1em;
		margin: 10px;
	}

	.character-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.character-card {
		padding: 15px;
	}

	.action-btn {
		width: 100%;
		margin: 5px 0;
	}

	.day-info, .character-confirm, .exchange-info {
		padding: 15px;
	}

	.exchange-section {
		padding: 15px;
		margin: 15px 0;
	}
}

/* 响应式设计 - 小屏幕上改为单列布局 */
@media (max-width: 768px) {
	.character-select-grid {
		grid-template-columns: 1fr !important;
		max-width: 100% !important;
		margin: 20px 10px !important;
	}

	.no-sidebar-margin .passage {
		padding-left: 1em !important;
		padding-right: 1em !important;
	}
}

.passage a {
	color: #667eea;
	text-decoration: none;
	border-bottom: 2px solid #667eea;
	transition: all 0.3s ease;
}

.passage a:hover {
	color: #764ba2;
	border-bottom-color: #764ba2;
	background: rgba(102, 126, 234, 0.1);
	padding: 2px 4px;
	border-radius: 3px;
}

/* 角色选择页面的按钮样式 */
.character-select-grid a {
	display: inline-block;
	padding: 10px 20px;
	background: #667eea;
	color: white !important;
	border: none !important;
	border-radius: 5px;
	text-decoration: none;
	margin-top: 10px;
	transition: background 0.3s ease;
	font-weight: bold;
}

.character-select-grid a:hover {
	background: #764ba2;
	color: white !important;
	border-bottom: none !important;
	padding: 10px 20px;
}

/* 角色详情页面的"开启旅途"按钮样式 */
.start-journey-button {
	margin-top: 20px;
	text-align: center;
}

.start-journey-button a {
	display: inline-block;
	padding: 12px 30px;
	background: #667eea;
	color: white !important;
	border: none !important;
	border-radius: 5px;
	text-decoration: none;
	transition: background 0.3s ease;
	font-weight: bold;
	font-size: 1.1em;
}

.start-journey-button a:hover {
	background: #764ba2;
	color: white !important;
	border-bottom: none !important;
	padding: 12px 30px;
}

/* 自定义按钮样式 */
.link-internal {
	display: inline-block;
	margin: 0.5em;
	padding: 0.5em 1em;
	background: #667eea;
	color: white;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	transition: background 0.3s ease;
}

.link-internal:hover {
	background: #764ba2;
}

/* 侧边栏样式 */
#game-sidebar {
	position: fixed;
	left: 0;
	top: 0;
	width: 200px;
	height: 100vh;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
	overflow-y: auto;
	z-index: 1000;
	padding: 20px;
	box-sizing: border-box;
	font-size: 14px;
	transition: transform 0.3s ease, width 0.3s ease;
}

#game-sidebar.collapsed {
	width: 50px;
	padding: 15px 10px;
	transform: translateX(-150px); /* 隐藏主要内容，只留切换按钮 */
}

#game-sidebar .sidebar-toggle {
	position: absolute;
	right: -15px;
	top: 20px;
	width: 30px;
	height: 30px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
}

#game-sidebar.collapsed .sidebar-toggle {
	right: -15px;
	transform: rotate(180deg);
}

#game-sidebar .sidebar-toggle:hover {
	background: #764ba2;
	transform: scale(1.1);
}

#game-sidebar .sidebar-toggle:active {
	transform: scale(0.95);
}

#game-sidebar .sidebar-content {
	opacity: 1;
	transition: opacity 0.3s ease;
}

#game-sidebar.collapsed .sidebar-content {
	opacity: 0;
	pointer-events: none;
}

#game-sidebar.hidden {
	display: none;
}

#game-sidebar h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: #667eea;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
	font-size: 16px;
}

#game-sidebar .inventory-item {
	padding: 8px;
	margin: 5px 0;
	background: #f5f5f5;
	border-radius: 5px;
	border-left: 3px solid #667eea;
	font-size: 13px;
}

#game-sidebar .inventory-empty {
	color: #999;
	font-style: italic;
	padding: 10px;
	text-align: center;
	font-size: 12px;
}

#game-sidebar .character-info {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #ddd;
}

#game-sidebar .character-info strong {
	color: #667eea;
	display: block;
	margin-bottom: 5px;
	font-size: 14px;
}

#game-sidebar .character-info span {
	font-size: 16px;
	font-weight: bold;
}

#game-sidebar .character-info small {
	font-size: 12px;
}

/* 当侧边栏显示且展开时，调整主内容区域 */
#game-sidebar:not([style*="display: none"]):not(.collapsed) ~ * .passage,
body:has(#game-sidebar:not([style*="display: none"]):not(.collapsed)) .passage {
	margin-left: 220px;
}

/* 角色选择页面和其他非游戏页面，不应用侧边栏边距 */
.no-sidebar-margin .passage,
.passage:has(.character-select-grid) {
	margin-left: 0 !important;
	max-width: none !important;
	padding-left: 2em !important;
	padding-right: 2em !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
	#game-sidebar {
		display: none !important;
	}

	.passage {
		margin-left: 0 !important;
		padding-left: 1em !important;
		padding-right: 1em !important;
	}
}

@media (max-width: 480px) {
	/* 小屏幕使用覆盖层模式 */
	#game-sidebar {
		width: 100vw !important;
		max-width: 320px !important;
	}

	#game-sidebar .sidebar-toggle {
		right: -60px !important;
		padding: 6px 10px !important;
		font-size: 12px !important;
	}

	/* 小屏幕浮动按钮调整 */
	#mobile-sidebar-btn {
		bottom: 15px !important;
		right: 15px !important;
		width: 45px !important;
		height: 45px !important;
		font-size: 18px !important;
	}
}

/* 剧情页面样式 */
.scene-content {
	max-width: 900px;
	margin: 0 auto;
}

.dialogue-section {
	display: flex;
	margin: 30px 0;
	align-items: flex-start;
	gap: 20px;
}

.character-portrait {
	flex-shrink: 0;
	text-align: center;
	min-width: 80px;
}

.portrait-circle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea, #764ba2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin: 0 auto 8px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.character-name {
	font-size: 12px;
	font-weight: bold;
	color: #555;
}

.dialogue-bubble {
	flex: 1;
	padding: 20px;
	border-radius: 15px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	line-height: 1.6;
}

.dialogue-bubble::before {
	content: '';
	position: absolute;
	top: 20px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
}

.king-bubble {
	background: linear-gradient(135deg, #ffd700, #ffed4e);
	color: #333;
	border: 2px solid #ffd700;
}

.king-bubble::before {
	left: -20px;
	border-right-color: #ffd700;
}

.hefei-bubble {
	background: linear-gradient(135deg, #ff6b6b, #ee5a52);
	color: white;
	border: 2px solid #ff6b6b;
}

.hefei-bubble::before {
	right: -20px;
	border-left-color: #ff6b6b;
}

.narrative-text {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	margin: 20px 0;
	border-left: 4px solid #667eea;
	font-style: italic;
	color: #555;
	line-height: 1.7;
}

.scene-actions {
	text-align: center;
	margin: 40px 0;
	padding: 30px;
}

/* 内心独白页面样式 */
.inner-thoughts-content {
	max-width: 800px;
	margin: 0 auto;
}

.character-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 40px;
	padding: 20px;
	background: #f8f9ff;
	border-radius: 10px;
	border: 2px solid #667eea;
}

.character-avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea, #764ba2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	font-weight: bold;
	color: white;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.emotion-badge {
	display: inline-block;
	padding: 5px 15px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: bold;
	margin-top: 8px;
}

.emotion-badge.焦虑 {
	background: #fff3cd;
	color: #856404;
}

.emotion-badge.坚定 {
	background: #d1ecf1;
	color: #0c5460;
}

.emotion-badge.得意 {
	background: #f8d7da;
	color: #721c24;
}

.emotion-badge.担忧 {
	background: #fff3cd;
	color: #856404;
}

.emotion-badge.好奇 {
	background: #d1ecf1;
	color: #0c5460;
}

.emotion-badge.谨慎 {
	background: #e2e3e5;
	color: #383d41;
}

.thoughts-list {
	margin: 30px 0;
}

.thought-item {
	margin: 25px 0;
	opacity: 0;
	animation: fadeInUp 0.8s ease forwards;
}

.thought-bubble {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	padding: 20px 25px;
	border-radius: 15px;
	position: relative;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
	line-height: 1.6;
}

.thought-bubble::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 30px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-top-color: #667eea;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.thoughts-actions {
	text-align: center;
	margin: 50px 0;
	padding: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.dialogue-section {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.dialogue-bubble::before {
		display: none;
	}

	.character-portrait {
		order: -1;
	}

	.character-header {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.thought-bubble {
		margin: 0 10px;
	}
}

/* 选择交换对象页面样式 */
.current-character-info {
	background: #f8f9ff;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 30px;
	border: 2px solid #667eea;
}

.character-summary {
	display: flex;
	align-items: center;
	gap: 15px;
}

.character-avatar-small {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea, #764ba2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: bold;
	color: white;
	flex-shrink: 0;
}

.character-summary-text {
	font-size: 16px;
	color: #333;
}

.exchange-targets-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin: 30px 0;
}

.exchange-target-card {
	display: flex;
	align-items: center;
	padding: 20px;
	border: 2px solid #e0e0e0;
	border-radius: 10px;
	background: white;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.exchange-target-card:hover {
	border-color: #667eea;
	box-shadow: 0 4px 16px rgba(102, 126, 234, 0.2);
	transform: translateY(-2px);
	background: #f8f9ff;
}

.target-avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: linear-gradient(135deg, #28a745, #20c997);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	font-weight: bold;
	color: white;
	margin-right: 15px;
	flex-shrink: 0;
}

.target-info {
	flex: 1;
}

.target-info h4 {
	margin: 0 0 5px 0;
	color: #667eea;
	font-size: 18px;
}

.target-title {
	margin: 0 0 8px 0;
	color: #666;
	font-size: 14px;
	font-weight: normal;
}

.target-description {
	margin: 0;
	color: #555;
	font-size: 14px;
	line-height: 1.4;
}

.exchange-arrow {
	font-size: 24px;
	color: #667eea;
	margin-left: 15px;
	transition: transform 0.3s ease;
}

.exchange-target-card:hover .exchange-arrow {
	transform: scale(1.2);
}

.exchange-instructions {
	margin-top: 40px;
}

.instruction-box {
	background: #fff3cd;
	border: 2px solid #ffc107;
	border-radius: 10px;
	padding: 20px;
}

.instruction-box h4 {
	margin: 0 0 15px 0;
	color: #856404;
}

.instruction-box ul {
	margin: 0;
	padding-left: 20px;
}

.instruction-box li {
	margin: 8px 0;
	color: #856404;
	line-height: 1.5;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.exchange-targets-list {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.exchange-target-card {
		padding: 15px;
	}

	.target-avatar {
		width: 50px;
		height: 50px;
		font-size: 20px;
		margin-right: 12px;
	}

	.target-info h4 {
		font-size: 16px;
	}

	.current-character-info {
		padding: 15px;
	}

	.character-summary {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}

	.instruction-box {
		padding: 15px;
	}
}

/* 交换物品页面样式 */
.exchange-info-section {
	background: #f8f9ff;
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 30px;
	border: 2px solid #667eea;
}

.exchange-section {
	margin: 20px 0;
	padding: 20px;
	background: #fafafa;
	border-radius: 8px;
}

.exchange-section h3 {
	margin: 0 0 15px 0;
	color: #667eea;
	border-bottom: 2px solid #667eea;
	padding-bottom: 8px;
	font-size: 18px;
}

.items-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
	margin-top: 15px;
}

.exchange-item {
	padding: 12px 15px;
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	font-size: 14px;
	min-height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.exchange-item:hover {
	border-color: #667eea;
	background: #f8f9ff;
}

.exchange-item.selected {
	border-color: #28a745;
	background: #e8f5e9;
	box-shadow: 0 0 8px rgba(40, 167, 69, 0.3);
}

.player-item {
	border-left: 4px solid #667eea;
}

.target-item {
	border-left: 4px solid #28a745;
}

.exchange-controls {
	text-align: center;
	margin: 30px 0;
	padding: 20px;
}

.exchange-controls .action-btn {
	min-width: 200px;
	font-size: 16px;
	padding: 12px 24px;
}

.exchange-actions {
	text-align: center;
	margin: 40px 0;
	padding: 30px;
}

/* 物品详情页面样式 */
.item-detail-container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.item-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
	padding: 20px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.item-icon {
	font-size: 48px;
	background: rgba(255, 255, 255, 0.2);
	width: 80px;
	height: 80px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.item-info h3 {
	margin: 0 0 10px 0;
	font-size: 24px;
	font-weight: bold;
}

.item-info p {
	margin: 0;
	opacity: 0.9;
	font-size: 16px;
	line-height: 1.5;
}

.item-story {
	background: #f8f9fa;
	padding: 30px;
	border-radius: 10px;
	border-left: 4px solid #667eea;
	margin-bottom: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.item-story h4 {
	margin: 0 0 20px 0;
	color: #667eea;
	font-size: 18px;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

.item-story-content {
	line-height: 1.8;
	font-size: 16px;
	color: #333;
	text-align: justify;
}

.item-actions {
	text-align: center;
	padding: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.items-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 8px;
	}

	.exchange-item {
		padding: 10px;
		font-size: 13px;
		min-height: 35px;
	}

	.exchange-controls .action-btn {
		width: 100%;
		min-width: auto;
	}

	.item-header {
		flex-direction: column;
		text-align: center;
		gap: 15px;
	}

	.item-icon {
		width: 60px;
		height: 60px;
		font-size: 32px;
	}

	.item-info h3 {
		font-size: 20px;
	}

	.item-story {
		padding: 20px;
	}

	.item-story-content {
		font-size: 15px;
		line-height: 1.6;
	}
}

/* 第二天故事页面样式 */
.story-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px;
}

.story-header {
	text-align: center;
	margin-bottom: 30px;
	padding: 20px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.day-indicator {
	margin-top: 10px;
}

.day-number {
	font-size: 18px;
	font-weight: bold;
	background: rgba(255, 255, 255, 0.2);
	padding: 5px 15px;
	border-radius: 20px;
	margin-right: 10px;
}

.story-title {
	font-size: 16px;
	opacity: 0.9;
}

.story-content {
	background: #f8f9fa;
	padding: 30px;
	border-radius: 10px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.scene-description {
	background: #e9ecef;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 30px;
	border-left: 4px solid #667eea;
}

.narrative-section {
	margin-bottom: 30px;
}

.narrative-section h3 {
	color: #667eea;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.narrative-section p {
	line-height: 1.8;
	margin-bottom: 15px;
}

.character-reactions {
	margin-bottom: 30px;
}

.character-reactions h4 {
	color: #28a745;
	border-bottom: 2px solid #28a745;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.reaction-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.reaction-item {
	background: white;
	padding: 15px;
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	display: flex;
	align-items: center;
	gap: 15px;
	transition: all 0.3s ease;
}

.reaction-item:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.character-avatar {
	font-size: 24px;
	background: linear-gradient(135deg, #667eea, #764ba2);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	flex-shrink: 0;
}

.reaction-item p {
	margin: 0;
	line-height: 1.5;
	font-size: 14px;
}

.story-dialogue {
	margin-bottom: 30px;
}

.story-dialogue h4 {
	color: #dc3545;
	border-bottom: 2px solid #dc3545;
	padding-bottom: 10px;
	margin-bottom: 20px;
}

.story-reflection {
	background: #fff3cd;
	padding: 20px;
	border-radius: 8px;
	border-left: 4px solid #ffc107;
	margin-bottom: 30px;
}

.story-reflection h4 {
	color: #856404;
	margin-bottom: 15px;
}

.story-reflection p {
	margin-bottom: 10px;
	line-height: 1.6;
}

.story-actions {
	text-align: center;
	padding: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.story-container {
		padding: 15px;
	}

	.story-header {
		padding: 15px;
	}

	.story-content {
		padding: 20px;
	}

	.reaction-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.reaction-item {
		padding: 12px;
	}

	.character-avatar {
		width: 40px;
		height: 40px;
		font-size: 20px;
	}
}

/* 对话页面样式 */
.dialogue-container {
	max-width: 1000px;
	margin: 0 auto;
}

.dialogue-scene {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 10px;
	margin: 20px 0;
	border-left: 4px solid #667eea;
}

.scene-description {
	margin: 0;
	color: #555;
	line-height: 1.6;
}

.dialogue-section {
	display: flex;
	margin: 30px 0;
	align-items: flex-start;
	gap: 20px;
}

.character-portrait.visitor {
	flex-direction: row-reverse;
}

.character-portrait.host {
	flex-direction: row;
}

.dialogue-bubble {
	flex: 1;
	padding: 20px;
	border-radius: 15px;
	position: relative;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	line-height: 1.6;
	max-width: 600px;
}

.dialogue-bubble p {
	margin: 8px 0;
}

.dialogue-bubble::before {
	content: '';
	position: absolute;
	top: 20px;
	width: 0;
	height: 0;
	border: 10px solid transparent;
}

.visitor-bubble {
	background: linear-gradient(135deg, #28a745, #20c997);
	color: white;
}

.visitor-bubble::before {
	right: -20px;
	border-left-color: #28a745;
}

.host-bubble {
	background: linear-gradient(135deg, #667eea, #764ba2);
	color: white;
}

.host-bubble::before {
	left: -20px;
	border-right-color: #667eea;
}

.dialogue-actions {
	text-align: center;
	margin: 40px 0;
	padding: 30px;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.dialogue-section {
		flex-direction: column;
		align-items: center;
		gap: 15px;
	}

	.dialogue-bubble::before {
		display: none;
	}

	.character-portrait {
		order: -1;
	}

	.dialogue-bubble {
		margin: 0 10px;
		width: calc(100% - 20px);
	}

	.dialogue-scene {
		padding: 15px;
		margin: 15px 10px;
	}
}

/* 确保侧边栏在正确位置 */
#game-sidebar {
	position: fixed !important;
}
