/* --- 全局变量 --- */
:root {
	--primary: #1a1a1a;
	--secondary: #666;
	--bg: #fcfcfc;
	--border: #e2e8f0;
	--accent: #d4af37;
	/* 香槟金，用于高亮选中状态 */
	--accent-light: #f9f4e7;
}

body {
	margin: 0;
	font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
	background-color: var(--bg);
	color: var(--primary);
	line-height: 1.6;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

/* --- 头部 --- */
.page-header {
	text-align: center;
	padding: 20px 0 20px;
}

.page-title {
	font-size: 42px;
	font-weight: 300;
	margin-bottom: 15px;
}

.page-desc {
	color: var(--secondary);
	max-width: 600px;
	margin: 0 auto;
}

/* --- 核心布局：垂直排列 --- */
.configurator-layout {
	display: flex;
	flex-direction: column;
	gap: 40px;
	margin-bottom: 100px;
}

/* 服务选择区 */
.selection-area {}

.section-label {
	font-size: 14px;
	color: #999;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 20px;
	display: block;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

.options-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 40px;
}

/* 服务卡片 */
.option-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 20px;
	cursor: pointer;
	transition: all 0.2s ease;
	position: relative;
	overflow: hidden;
	/* 新增：让内容垂直+水平居中 */
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.option-card:hover {
	border-color: #999;
	transform: translateY(-2px);
}

/* 选中状态 */
.option-card.selected {
	border-color: var(--accent);
	background-color: var(--accent-light);
	box-shadow: 0 0 0 1px var(--accent);
	/* 加粗边框效果 */
}

.option-card.selected::after {
	content: '✓';
	position: absolute;
	top: 10px;
	right: 10px;
	color: var(--accent);
	font-weight: bold;
}

.opt-icon {
	font-size: 24px;
	margin-bottom: 10px;
	display: block;
	text-align: center;
}

.opt-name {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: 5px;
	display: block;
	text-align: center;
}

.opt-price {
	font-size: 13px;
	color: #666;
	text-align: center;
}

.option-card.selected .opt-price {
	color: #b88a4d;
	font-weight: 600;
	text-align: center;
}

/* 详细表单区 */
.details-form {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 40px;
	margin-top: 20px;
}

.form-group {
	margin-bottom: 25px;
}

.form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
}

.form-input,
.form-textarea {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
	transition: 0.3s;
	background: #fcfcfc;
}

.form-input:focus,
.form-textarea:focus {
	border-color: var(--primary);
	outline: none;
	background: #fff;
}

.form-textarea {
	height: 120px;
	resize: vertical;
}

.file-upload {
	border: 2px dashed #ddd;
	padding: 30px;
	text-align: center;
	border-radius: 4px;
	cursor: pointer;
	color: #999;
	font-size: 14px;
}

.file-upload:hover {
	border-color: var(--accent);
	color: var(--accent);
}

/* 详情和清单的水平布局 */
.details-summary-layout {
	display: grid;
	grid-template-columns: 2fr 1fr;
	/* 详情2，清单1 */
	gap: 40px;
}

/* 右侧：悬浮清单 (Sticky) */
.summary-sidebar {
	position: sticky !important;
	top: 40px !important;
	/* 距离顶部距离 */
	height: fit-content !important;
}

.summary-card {
	background: #1a1a1a;
	color: #fff;
	border-radius: 8px;
	padding: 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.summary-title {
	font-size: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid #333;
	padding-bottom: 15px;
}

.selected-list {
	list-style: none;
	padding: 0;
	margin-bottom: 30px;
	min-height: 100px;
	/* 保持最小高度 */
}

.selected-item {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	margin-bottom: 12px;
	color: #ccc;
}

.selected-item span:last-child {
	color: #fff;
}

.total-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 16px;
	border-top: 1px solid #333;
	padding-top: 20px;
	margin-bottom: 30px;
}

.total-price {
	font-size: 32px;
	color: var(--accent);
	font-weight: 700;
}

.total-label {
	font-size: 12px;
	color: #888;
	display: block;
	text-align: right;
}

.btn-submit {
	width: 100%;
	padding: 15px;
	background: var(--accent);
	color: #000;
	border: none;
	border-radius: 4px;
	font-weight: 700;
	font-size: 16px;
	cursor: pointer;
	transition: 0.3s;
}

.btn-submit:hover {
	background: #f3e5b5;
}

/* 响应式 */
@media (max-width: 900px) {
	.details-summary-layout {
		grid-template-columns: 1fr;
	}

	.options-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.summary-sidebar {
		position: static;
		margin-top: 40px;
	}
}