* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: inherit;
}

body {
	font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', 'Hiragino Sans GB', 'Helvetica Neue', Arial, sans-serif;
	background: linear-gradient(to bottom right, #f0f9ff, #e0f2fe, #ede9fe);
	min-height: 100vh;
	overflow-x: hidden;
}

/* ==================== 顶部导航栏 ==================== */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 14px 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
	z-index: 1000;
	position: sticky;
	top: 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header h1 {
	color: #333;
	font-size: 20px;
	font-weight: 600;
}

.header-buttons {
	display: flex;
	gap: 12px;
}

/* ==================== 通用按钮 ==================== */
.btn {
	padding: 8px 16px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	filter: brightness(1.05);
}
.btn:active {
	transform: translateY(0);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-small {
	padding: 4px 8px;
	font-size: 12px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
}

.btn-lock.locked {
	background-color: #F59E0B;
	color: white;
}
.btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
	pointer-events: none;
}

.homework-item.locked {
	border: 1px solid #F59E0B;
	background-color: #FFFBEB;
	transition: all 0.3s ease;
}

.btn-success {
	background-color: #10B981;
	color: white;
}

.btn-danger {
	background-color: #EF4444;
	color: white;
}

.btn-warning {
	background-color: #F59E0B;
	color: white;
}

/* ==================== 主容器 ==================== */
.main-container {
	display: grid;
	grid-template-columns: 1fr 8fr 1fr;
	gap: 16px;
	padding: 16px;
	min-height: calc(100vh - 64px);
}

/* 预览模式下的主容器布局 */
.preview-mode-active .main-container {
	grid-template-columns: 1fr 7fr 2fr;
}

/* ==================== 左侧科目选择 ==================== */
.subject-sidebar {
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.subject-item {
	padding: 10px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid transparent;
}

.subject-item:hover {
	background-color: #f3f4f6;
	transform: translateX(2px);
}

.subject-item.active {
	background: linear-gradient(135deg, #4F46E5, #6366f1);
	color: white;
	border-color: #4F46E5;
	box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

/* ==================== 中间主体内容 ==================== */
.main-content {
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
	padding: 24px;
	overflow-y: auto;
	min-height: calc(100vh - 96px);
}

/* ==================== 编辑模式 ==================== */
.edit-mode {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.subject-info {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 8px;
}

.subject-info h2 {
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
}

.estimated-time {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s ease;
	height: 38px;
	width: 84px;
	box-sizing: border-box;
}

.estimated-time:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.add-homework-btn {
	align-self: flex-start;
}

.homework-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.homework-item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	transition: all 0.3s ease;
	position: relative;
}

.homework-item:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
	border-color: #c7d2fe;
}

.homework-item.locked:hover {
	border-color: #F59E0B;
}

.homework-item.fade-out {
	opacity: 0;
	transform: translateY(-10px);
}

.homework-item.fade-in {
	opacity: 0;
	transform: translateY(-10px);
	transition: all 0.3s ease;
}

.homework-content {
	padding: 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	min-height: 84px;
	resize: vertical;
	font-family: inherit;
	transition: all 0.2s ease;
	flex: 1;
}

.homework-content:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ==================== 公告编辑页脚 ==================== */
.ann-edit-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 12px;
	flex-wrap: wrap;
	gap: 8px;
}

.submit-time {
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	width: 118px;
	transition: all 0.2s ease;
	height: 38px;
	box-sizing: border-box;
}

.submit-time:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.time-dropdown {
	position: absolute;
	background-color: white;
	border: 1px solid #ddd;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	z-index: 10000;
	max-height: 170px;
	overflow-y: auto;
	display: none;
}

.time-option {
	padding: 10px 12px;
	cursor: pointer;
	transition: background-color 0.2s;
	font-size: 14px;
}

.time-option:hover {
	background-color: #f3f4f6;
}

.delete-homework-btn {
	padding: 10px 12px;
	height: 84px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==================== 预览模式 ==================== */
.preview-mode {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.preview-subjects,
.preview-subjects *,
#export-area,
#export-area * {
	font-family: 'Times New Roman', 'SimSun', serif;
}

.preview-subjects {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 20px;
	/* 脚本渲染前保持占位，避免首屏高度塌陷导致跳动 */
	min-height: 240px;
}

.preview-subject {
	display: flex;
	flex-direction: column;
}

.preview-time {
	background-color: #e0e0e0;
	position: relative;
}

/* ==================== 右侧快捷键 ==================== */
.shortcut-sidebar {
	background-color: white;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.shortcut-title {
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 8px;
}

.shortcut-item {
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	background-color: #f9fafb;
}

.shortcut-item:hover {
	background-color: #f3f4f6;
	transform: translateY(-1px);
}

/* ==================== 模态框 ==================== */
.modal {
	display: none;
	position: fixed;
	z-index: 2000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	overflow: auto;
}

.modal.active {
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	padding: 32px;
	border-radius: 12px;
	width:500px;
	height: 90%;
	overflow: auto;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
}

.modal-header h2 {
	font-size: 20px;
	font-weight: 600;
	color: #1f2937;
}

.close-modal {
	font-size: 24px;
	font-weight: bold;
	cursor: pointer;
	color: #6b7280;
	transition: color 0.2s;
}

.close-modal:hover {
	color: #374151;
}

.tab-buttons {
	display: flex;
	margin-bottom: 24px;
	border-bottom: 1px solid #e5e7eb;
	width: 100%;
}

.tab-btn {
	flex: 1;
	text-align: center;
	padding: 10px 20px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.tab-btn:hover {
	color: #374151;
}

.tab-btn.active {
	color: #4F46E5;
	border-bottom-color: #4F46E5;
}

.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

.setting-item {
	margin-bottom: 20px;
}

.setting-item label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: #374151;
}

.setting-item input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s ease;
}

.setting-item input:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.options-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.options-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.option-item {
	display: flex;
	gap: 12px;
	align-items: center;
	opacity: 1;
	transform: translateY(0);
	transition: all 0.3s ease;
}

.option-input {
	height: 36px;
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
}

.delete-option-btn {
	padding: 10px 15px;
	font-size: 14px;
}

.option-item.fade-out {
	opacity: 0;
	transform: translateY(-10px);
}

.option-item.fade-in {
	opacity: 0;
	transform: translateY(-10px);
}

/* ==================== 导出区域 ==================== */
#export-area {
	display: none;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 992px) {
	.main-container,
	.preview-mode-active .main-container {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr auto;
	}

	.subject-sidebar {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.shortcut-sidebar {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
	}

	.shortcut-sidebar.announcement-mode {
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
	}
}

.row-flex {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.row-flex label {
	min-width: 96px;
	font-weight: 500;
	color: #374151;
	font-size: 14px;
}
.row-flex input[type="text"],
.row-flex input[type="number"] {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	transition: all 0.2s ease;
}
.row-flex input:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.checkbox-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.checkbox-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
	cursor: pointer;
}
.checkbox-row label {
	font-size: 14px;
	color: #374151;
	cursor: pointer;
}
.dynamic-settings-container {
	display: flex;
	flex-direction: column;
}
@media (max-width: 640px) {
	.row-flex { flex-wrap: wrap; }
	.row-flex label { min-width: 100%; }
}

/* ==================== 关于模态框 ==================== */
.about-content {
	padding-top: 16px;
}
.about-section {
	margin-bottom: 24px;
	padding-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}
.about-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}
.about-section-title {
	font-size: 16px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.about-section-text {
	margin-top: 6px;
	font-size: 14px;
	color: #6b7280;
	line-height: 1.4;
}
.about-changelog {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.changelog-item {
	background-color: #f9fafb;
	padding: 12px;
	border-radius: 8px;
}

/* ==================== 更新日志：版本头部 ==================== */
.changelog-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
/* ==================== 更新日志：版本号标签 ==================== */
.changelog-version-tag {
	background: #eef2ff;
	color: #4F46E5;
	padding: 2px 14px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.5px;
}
/* ==================== 更新日志：日期 ==================== */
.changelog-date {
	font-size: 13px;
	color: #9ca3af;
	margin-left: auto; /* 或者使用 flex 控制 */
}
/* ==================== 更新日志：分组标题 ==================== */
.section-label {
	font-weight: 700;
	font-size: 14px;
	color: #1f2937;
	margin: 12px 0 6px 0;
	padding-bottom: 2px;
	border-bottom: 2px solid #e5e7eb;
}

/* ==================== 更新日志：主列表 ==================== */
.changelog-list {
	list-style: none;
	padding: 0;
	margin: 0 0 8px 0;
}
.changelog-list > li {
	font-size: 13px;
	color: #374151;
	padding-left: 10px;
	position: relative;
	margin-bottom: 6px;
	line-height: 1.6;
}
.changelog-list > li::before {
	content: "•";
	position: absolute;
	left: 2px;
	color: #4F46E5;
	font-weight: bold;
}

/* ==================== 更新日志：子列表 ==================== */

/* ==================== 更新日志：深色适配 ==================== */
body[data-theme="dark"] .changelog-version-tag {
	background: #1e293b;
	color: #818cf8;
}
body[data-theme="dark"] .section-label {
	color: #e2e8f0;
	border-bottom-color: #334155;
}
body[data-theme="dark"] .changelog-list > li {
	color: #cbd5e1;
}

.about-dev-info {
	font-size: 14px;
	color: #6b7280;
}
.about-dev-info p {
	margin-bottom: 6px;
}
.about-dev-info strong {
	color: #374151;
}
.about-copyright {
	text-align: center;
	padding-top: 16px;
}
.about-copyright p {
	font-size: 12px;
	color: #505050;
}

/* ==================== 13. 主题变量与深色模式 ==================== */
:root {
	--theme-bg-1: #f0f9ff;
	--theme-bg-2: #e0f2fe;
	--theme-bg-3: #ede9fe;
	--theme-card-solid: #ffffff;
	--theme-card-hover: #f3f4f6;
	--theme-text-primary: #333333;
	--theme-text-secondary: #374151;
	--theme-text-muted: #6b7280;
	--theme-border: #e5e7eb;
	--theme-border-light: #d1d5db;
	--theme-input-bg: #ffffff;
	--theme-accent: #4F46E5;
	--theme-modal-bg: #ffffff;
	--theme-section-bg: #f9fafb;
}
body[data-theme="dark"] {
	--theme-bg-1: #0f172a;
	--theme-bg-2: #1e293b;
	--theme-bg-3: #1a1a2e;
	--theme-card-solid: #1e293b;
	--theme-card-hover: #334155;
	--theme-text-primary: #e2e8f0;
	--theme-text-secondary: #cbd5e1;
	--theme-text-muted: #94a3b8;
	--theme-border: #334155;
	--theme-border-light: #475569;
	--theme-input-bg: #0f172a;
	--theme-accent: #818cf8;
	--theme-modal-bg: #1e293b;
	--theme-section-bg: #0f172a;
}
body[data-theme="dark"] { background: linear-gradient(to bottom right,var(--theme-bg-1),var(--theme-bg-2),var(--theme-bg-3)); }
body[data-theme="dark"] .header { background: rgba(15,23,42,0.9); }
body[data-theme="dark"] .header h1 { color: var(--theme-text-primary); }
body[data-theme="dark"] .subject-sidebar,
body[data-theme="dark"] .main-content,
body[data-theme="dark"] .shortcut-sidebar { background-color: var(--theme-card-solid); }
body[data-theme="dark"] .subject-item { color: var(--theme-text-secondary); }
body[data-theme="dark"] .subject-item:hover { background-color: var(--theme-card-hover); }
body[data-theme="dark"] .subject-item.active { background-color: var(--theme-accent); color: #fff; }
body[data-theme="dark"] .shortcut-item { background-color: var(--theme-section-bg); color: var(--theme-text-secondary); border-color: var(--theme-border-light); }
body[data-theme="dark"] .shortcut-item:hover { background-color: var(--theme-card-hover); }
body[data-theme="dark"] .modal-content { background-color: var(--theme-modal-bg); }
body[data-theme="dark"] .modal-header h2 { color: var(--theme-text-primary); }
body[data-theme="dark"] .row-flex label,
body[data-theme="dark"] .setting-item label,
body[data-theme="dark"] .checkbox-row label { color: var(--theme-text-secondary); }
body[data-theme="dark"] .row-flex input,
body[data-theme="dark"] .option-input,
body[data-theme="dark"] .estimated-time,
body[data-theme="dark"] .submit-time,
body[data-theme="dark"] .homework-content { background-color: var(--theme-input-bg); color: var(--theme-text-primary); border-color: var(--theme-border-light); }
body[data-theme="dark"] .about-section-title { color: var(--theme-text-secondary); }
body[data-theme="dark"] .about-section-text { color: var(--theme-text-muted); }
body[data-theme="dark"] .about-dev-info { color: var(--theme-text-muted); }
body[data-theme="dark"] .about-dev-info strong { color: var(--theme-text-secondary); }
body[data-theme="dark"] .changelog-item { background-color: var(--theme-section-bg); }
body[data-theme="dark"] .about-copyright p { color: var(--theme-text-muted); }
body[data-theme="dark"] .time-dropdown { background-color: var(--theme-modal-bg); border-color: var(--theme-border); }
body[data-theme="dark"] .time-option:hover { background-color: var(--theme-card-hover); }
body[data-theme="dark"] .homework-item { border-color: var(--theme-border); }
body[data-theme="dark"] .homework-item.locked { border-color: #F59E0B; background-color: rgba(245,158,11,0.1); }
body[data-theme="dark"] #important-date-display { color: var(--theme-text-secondary); }
body[data-theme="dark"] .shortcut-title { color: var(--theme-text-muted); }
body[data-theme="dark"] .tab-btn { color: var(--theme-text-muted); }
body[data-theme="dark"] .tab-btn:hover { color: var(--theme-text-primary); }
body[data-theme="dark"] .tab-btn.active { color: var(--theme-accent); border-bottom-color: var(--theme-accent); }
body[data-theme="dark"] .tab-buttons { border-bottom-color: var(--theme-border); }
body[data-theme="dark"] .about-section { border-bottom-color: var(--theme-border); }
body[data-theme="dark"] .close-modal { color: var(--theme-text-muted); }
body[data-theme="dark"] .close-modal:hover { color: var(--theme-text-primary); }

/* 深色模式：作业内容详情（预览区）背景变深、字变浅 */
body[data-theme="dark"] #preview-subjects > div {
	background-color: var(--theme-card-solid) !important;
	color: var(--theme-text-primary) !important;
}
body[data-theme="dark"] #preview-subjects > div div {
	color: var(--theme-text-primary) !important;
}
body[data-theme="dark"] #preview-subjects .preview-time {
	background-color: var(--theme-card-hover) !important;
	color: var(--theme-text-primary) !important;
}
body[data-theme="dark"] #preview-subjects strong {
	color: var(--theme-accent) !important;
}
body[data-theme="dark"] #preview-subjects span[style*="color: #666666"] {
	color: var(--theme-text-muted) !important;
}

/* ==================== 主题切换按钮 ==================== */
.theme-toggle {
	background: transparent;
	border: none;
	border-radius: 0;
	width: auto; height: auto;
	padding: 0; margin-left: 2px;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; font-size: 18px;
	color: #374151;
	transition: transform 0.3s ease; flex-shrink: 0;
}
.theme-toggle:hover { transform: scale(1.15); color: #111827; }
.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: inline; }
body[data-theme="dark"] .theme-toggle .sun-icon { display: inline; }
body[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
body[data-theme="dark"] .theme-toggle,
body[data-theme="dark"] .theme-toggle:hover { color: #ffffff; }

/* ==================== 晚自习模式 ==================== */
.evening-study-overlay {
	display: none; position: fixed; top: 0; left: 0;
	width: 100vw; height: 100vh; background: var(--theme-card-solid);
	z-index: 9999; flex-direction: column;
	align-items: center; justify-content: center;
	padding: 10px; overflow: hidden;
}
.evening-study-overlay.active { display: flex; }
.evening-study-time {
	position: absolute; top: 20px; right: 30px;
	font-size: 28px; color: var(--theme-text-primary);
	font-family: 'Times New Roman','SimSun',serif;
	z-index: 10001;
}
.evening-study-content {
	background: var(--theme-card-solid); color: var(--theme-text-primary); padding: 15px;
	max-width: 95%; max-height: 90vh;
	overflow: hidden; display: flex; flex-direction: column;
	align-items: center; justify-content: center;
	box-shadow: none; border: none; border-radius: 0;
	font-family: 'Times New Roman', 'SimSun', serif;
}
/* 晚自习模式深色模式：内容区子元素也跟随主题 */
body[data-theme="dark"] .evening-study-content > div {
	background-color: var(--theme-card-solid) !important;
	color: var(--theme-text-primary) !important;
}
body[data-theme="dark"] .evening-study-content > div div {
	color: var(--theme-text-primary) !important;
}
body[data-theme="dark"] .evening-study-content .preview-time {
	background-color: var(--theme-card-hover) !important;
	color: var(--theme-text-primary) !important;
}
body[data-theme="dark"] .evening-study-content strong {
	color: var(--theme-accent) !important;
}
body[data-theme="dark"] .evening-study-content span[style*="color: #666666"] {
	color: var(--theme-text-muted) !important;
}
.evening-study-exit-hint {
	position: absolute; bottom: 20px; left: 50%;
	transform: translateX(-50%); font-size: 14px;
	color: var(--theme-text-muted); z-index: 10001;
}

/* ==================== 晚自习按钮 ==================== */
.btn-evening { background-color: #6366f1; color: #fff; }
.btn-evening:hover { background-color: #5558e3; }

@media (max-width: 768px) {
	.header { flex-wrap: wrap; gap: 8px; }
	.header-buttons { flex-wrap: wrap; }
}

body[data-theme="dark"] #announcement-content,
body[data-theme="dark"] .changelog-date,
body[data-theme="dark"] .subject-info h2,
body[data-theme="dark"] .shortcut-sidebar > div {
	color: var(--theme-text-secondary) !important;
}
body[data-theme="dark"] [style*="color: #333"],
body[data-theme="dark"] [style*="color: #6b7280"],
body[data-theme="dark"] [style*="color: rgb(64, 64, 64)"] {
	color: var(--theme-text-secondary) !important;
}

.btn svg, .theme-toggle svg {
	display: block;
	flex-shrink: 0;
	pointer-events: none;   /* 点击落到按钮本身，避免命中图标子元素 */
}
