/**
 * @fileoverview 配置窗口样式
 * @description 独立配置窗口的所有样式定义
 */

/* 遮罩层 */
.decade-config-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	writing-mode: horizontal-tb;
}

/* 对话框容器 */
.decade-config-dialog {
	width: 80%;
	height: 85%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(102, 126, 234, 0.5);
	position: relative;
	writing-mode: horizontal-tb !important;
}

/* 装饰图案 */
.decade-config-pattern {
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 1px, transparent 1px);
	background-size: 30px 30px;
	opacity: 0.5;
	pointer-events: none;
}

/* 标题 */
.decade-config-title {
	position: absolute;
	top: 30px;
	left: 30px;
	font-size: 32px;
	font-weight: bold;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
	z-index: 10;
}

/* QQ头像（关闭按钮） */
.decade-config-avatar {
	position: absolute;
	top: 10px;
	right: 10px;
	cursor: pointer;
	border-radius: 50%;
	width: 65px;
	height: 65px;
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.5);
	transition: all 0.3s ease;
	z-index: 10;
}

.decade-config-avatar:hover {
	transform: scale(1.1) rotate(5deg);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.7);
}

/* 左侧标签栏 */
.decade-config-sidebar {
	position: absolute;
	left: 30px;
	top: 90px;
	bottom: 30px;
	width: 180px;
	z-index: 10;
	writing-mode: horizontal-tb;
}

/* 标签按钮 */
.decade-config-tab {
	position: relative;
	display: flex;
	align-items: center;
	padding: 12px 14px;
	margin-bottom: 10px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 100%;
	box-sizing: border-box;
	white-space: nowrap;
	flex-shrink: 0;
	writing-mode: horizontal-tb;
}

.decade-config-tab:not(.active) {
	color: rgba(255, 255, 255, 0.7);
	background: transparent;
}

.decade-config-tab.active {
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
}

.decade-config-tab:not(.active):hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* 右侧内容区 */
.decade-config-content {
	position: absolute;
	left: 240px;
	top: 90px;
	right: 30px;
	bottom: 30px;
	overflow-y: auto;
	padding-right: 10px;
	z-index: 10;
	writing-mode: horizontal-tb;
}

/* 配置分组标题 */
.decade-config-section-title {
	position: relative;
	font-size: 16px;
	font-weight: bold;
	color: #fff;
	margin: 20px 0 12px 0;
	padding-bottom: 8px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	writing-mode: horizontal-tb !important;
}

.decade-config-section-title:first-child {
	margin-top: 0;
}

/* 配置项容器 */
.decade-config-item {
	position: relative;
	padding: 16px 18px;
	margin-bottom: 12px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	transition: all 0.3s ease;
	writing-mode: horizontal-tb !important;
}

.decade-config-item:hover {
	background: rgba(255, 255, 255, 0.15);
	transform: translateY(-2px);
}

/* 配置项表格 */
.decade-config-table {
	width: 100%;
	writing-mode: horizontal-tb !important;
	table-layout: fixed;
}

.decade-config-table tr {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
}

/* 配置项名称 */
.decade-config-name {
	color: #fff;
	font-size: 15px;
	font-weight: 500;
	writing-mode: horizontal-tb !important;
	cursor: pointer;
	flex: 0 0 auto;
}

/* 配置项介绍 */
.decade-config-intro {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: -5px;
	padding-top: 3px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	writing-mode: horizontal-tb !important;
	display: none;
	text-align: left;
}

.decade-config-intro.show {
	display: block;
}

/* 配置项控件容器 */
.decade-config-control {
	text-align: right;
	writing-mode: horizontal-tb !important;
	flex: 1;
	display: flex;
	justify-content: flex-end;
	min-width: 0;
}

/* 开关控件 */
.decade-config-toggle {
	width: 50px;
	height: 26px;
	border-radius: 13px;
	position: relative;
	cursor: pointer;
	transition: all 0.3s ease;
}

.decade-config-toggle.off {
	background: rgba(200, 200, 200, 0.5);
}

.decade-config-toggle.on {
	background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
}

.decade-config-toggle-slider {
	width: 20px;
	height: 20px;
	background: #fff;
	border-radius: 50%;
	position: absolute;
	top: 3px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.decade-config-toggle.off .decade-config-toggle-slider {
	left: 3px;
}

.decade-config-toggle.on .decade-config-toggle-slider {
	left: 27px;
}

/* 选项容器 */
.decade-config-options {
	display: flex !important;
	flex-wrap: wrap !important;
	flex-direction: row-reverse !important;
	justify-content: flex-start !important;
	writing-mode: horizontal-tb !important;
	align-items: center !important;
}

/* 单个选项 */
.decade-config-option {
	padding: 5px 10px;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 5px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	writing-mode: horizontal-tb !important;
	white-space: nowrap;
	display: inline-flex !important;
	position: relative !important;
}

.decade-config-option:first-child {
	margin-right: 0 !important;
}

.decade-config-option:hover {
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
	transform: translateY(-1px);
}

.decade-config-option.selected {
	background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%);
	border-color: rgba(255, 255, 255, 0.5);
	color: #333;
	font-weight: 500;
}

/* 输入框 */
.decade-config-input {
	padding: 8px 14px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	border-radius: 8px;
	color: #333;
	font-size: 14px;
	min-width: 100px;
	writing-mode: horizontal-tb !important;
	outline: none;
	transition: all 0.3s ease;
}

.decade-config-input:focus {
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
