/**
 * ElitePulse Booking 样式
 * 品牌配色：深邃蓝/香槟金/极简白
 * 设计风格：LatePoint 极简风格
 */

:root {
	--ep-primary: #3b82f6;
	--ep-success: #48bb78;
	--ep-danger: #e53e3e;
	--ep-warning: #d4af37;

	/* 灰色系 */
	--ep-gray-100: #f7fafc;
	--ep-gray-200: #edf2f7;
	--ep-gray-300: #e2e8f0;
	--ep-gray-400: #cbd5e0;
	--ep-gray-500: #a0aec0;
	--ep-gray-600: #718096;
	--ep-gray-700: #4a5568;
	--ep-gray-800: #2d3748;
	--ep-gray-900: #1a365d;

	/* 其他颜色 */
	--ep-white: #ffffff;
	--ep-black: #000000;
	--ep-gold: #d4af37;
	--ep-gold-dark: #b8860b;
	--ep-blue: #1a365d;
	--ep-blue-light: #2c5282;
	--ep-gold: #d4af37;
	--ep-gold-light: #f4e4bc;
	--ep-white: #ffffff;
	--ep-gray-light: #f7fafc;
	--ep-gray: #e2e8f0;
	--ep-gray-dark: #718096;
	--ep-text: #2d3748;
	--ep-border-radius: 12px;
	--ep-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
	--ep-shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);
	--ep-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 主容器 */
.ep-booking {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--ep-text);
	line-height: 1.6;
}

/* 1. 默认状态（针对桌面端） */
.ep-booking__container {
	max-width: 1400px !important; /* 改为1400px支持两栏布局：360px左侧 + 1040px右侧 */
	min-width: 960px; /* 确保最小宽度足够显示三栏 */
	margin: 0 auto;
	padding: 2rem;
	background: var(--ep-white);
	border-radius: var(--ep-border-radius);
	box-shadow: var(--ep-shadow);
}



/* 2. 响应式补丁（针对手机端） */
@media (max-width: 768px) {
    .ep-booking__container {
        min-width: 0 !important; /* 彻底解除 960px 的限制 */
        width: 100% !important;
        padding: 10px !important;
    }
    
    /* 强制三栏布局转为垂直单栏布局 */
    .ep-calendar-layout-wrapper {
        flex-direction: column !important;
    }
}

/* 步骤指示器 */
.ep-booking__steps {
	display: flex;
	justify-content: space-between;
	margin-bottom: 3rem;
	position: relative;
}

.ep-booking__steps::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--ep-gray);
	z-index: 0;
}

.ep-booking__step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
	cursor: pointer;
	transition: var(--ep-transition);
}

.ep-booking__step-number {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--ep-white);
	border: 2px solid var(--ep-gray);
	color: var(--ep-gray-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	transition: var(--ep-transition);
}

.ep-booking__step--active .ep-booking__step-number,
.ep-booking__step--completed .ep-booking__step-number {
	background: var(--ep-blue);
	border-color: var(--ep-blue);
	color: var(--ep-white);
}

.ep-booking__step-label {
	margin-top: 0.5rem;
	font-size: 0.875rem;
	color: var(--ep-gray-dark);
	text-align: center;
}

.ep-booking__step--active .ep-booking__step-label {
	color: var(--ep-blue);
	font-weight: 600;
}

/* 会员额度显示 */
.ep-booking__credits {
	background: linear-gradient(135deg, var(--ep-blue) 0%, var(--ep-blue-light) 100%);
	color: var(--ep-white);
	padding: 1rem 1.5rem;
	border-radius: var(--ep-border-radius);
	margin-bottom: 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ep-booking__credits-label {
	font-size: 0.875rem;
	opacity: 0.9;
}

.ep-booking__credits-value {
	font-size: 1.5rem;
	font-weight: 700;
}

/* 时区显示 */
.ep-booking__timezone {
	display: flex;
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 1rem;
	background: var(--ep-gray-light);
	border-radius: var(--ep-border-radius);
}

.ep-booking__timezone-item {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.ep-booking__timezone-label {
	font-size: 0.75rem;
	color: var(--ep-gray-dark);
	margin-bottom: 0.25rem;
}

.ep-booking__timezone-value {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--ep-text);
}

/* 步骤内容 */
.ep-booking__step-content {
	display: none;
	animation: fadeIn 0.3s ease-in;
}

.ep-booking__step-content--active {
	display: block;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ep-booking__title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 2rem;
	color: var(--ep-blue);
}

/* 服务列表 */
.ep-booking__services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.ep-booking__service {
	background: var(--ep-white);
	border: 2px solid var(--ep-gray);
	border-radius: var(--ep-border-radius);
	padding: 1.5rem;
	cursor: pointer;
	transition: var(--ep-transition);
	text-align: center;
}

.ep-booking__service:hover {
	border-color: var(--ep-blue);
	box-shadow: var(--ep-shadow-hover);
	transform: translateY(-2px);
}

.ep-booking__service--selected {
	border-color: var(--ep-blue);
	background: var(--ep-gray-light);
}

.ep-booking__service-name {
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--ep-text);
}

.ep-booking__service-duration {
	font-size: 0.875rem;
	color: var(--ep-gray-dark);
}

/* 日历 */
.ep-booking__calendar {
	margin-bottom: 2rem;
}

.ep-calendar-day.is-past {
	background: var(--ep-gray-light) !important;
	color: var(--ep-gray) !important;
	pointer-events: none;
	opacity: 0.6;
}

.ep-calendar-day.is-unavailable {
	background: var(--ep-white) !important;
	color: var(--ep-gray) !important;
	pointer-events: none;
	opacity: 0.4;
	position: relative;
}

.ep-calendar-day.is-unavailable::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 15px;
	height: 1px;
	background: var(--ep-gray);
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* 🆕 可约日期：深色/高亮 */
.ep-calendar-day:not(.is-past):not(.is-unavailable):not(.ep-booking__day--empty) {
	color: var(--ep-blue);
	font-weight: 700;
	background: var(--ep-white);
	border: 1.5px solid var(--ep-blue-light);
	cursor: pointer;
}

.ep-calendar-day:not(.is-past):not(.is-unavailable):not(.ep-booking__day--empty):hover {
	background: var(--ep-blue);
	color: var(--ep-white);
	transform: scale(1.1);
	z-index: 10;
	box-shadow: var(--ep-shadow-hover);
}

/* 时间段网格 */
.ep-booking__time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.ep-booking__time-slot {
	background: var(--ep-white);
	border: 2px solid var(--ep-gray);
	border-radius: 8px;
	padding: 0.75rem 1rem;
	text-align: center;
	cursor: pointer;
	transition: var(--ep-transition);
	font-weight: 500;
}

.ep-booking__time-slot:hover {
	border-color: var(--ep-blue);
	background: var(--ep-gray-light);
	transform: scale(1.05);
}

.ep-booking__time-slot--selected {
	border-color: var(--ep-blue);
	background: var(--ep-blue);
	color: var(--ep-white);
}

.ep-booking__time-slot--disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: var(--ep-gray);
}

.ep-booking__time-slot--disabled:hover {
	transform: none;
	border-color: var(--ep-gray);
}

/* 时区对比提示 */
.ep-booking__timezone-hint {
	margin-top: 1rem;
	padding: 1rem;
	background: var(--ep-gold-light);
	border-left: 4px solid var(--ep-gold);
	border-radius: 8px;
	font-size: 0.875rem;
	color: var(--ep-text);
}

/* 预约摘要 */
.ep-booking__summary {
	background: var(--ep-gray-light);
	border-radius: var(--ep-border-radius);
	padding: 1.5rem;
	margin-bottom: 2rem;
}

/* 交付方式切换 */
.ep-booking__delivery-method {
	margin-bottom: 2rem;
}

.ep-booking__delivery-label {
	font-size: 0.875rem;
	color: var(--ep-gray-dark);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	margin-bottom: 1rem;
}

.ep-booking__delivery-options {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.ep-booking__delivery-option {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--ep-white);
	border: 2px solid var(--ep-gray);
	border-radius: 12px;
	cursor: pointer;
	transition: var(--ep-transition);
	position: relative;
}

.ep-booking__delivery-option:hover {
	border-color: var(--ep-blue);
	box-shadow: var(--ep-shadow);
	transform: translateY(-2px);
}

.ep-booking__delivery-option--active {
	border-color: var(--ep-blue);
	background: var(--ep-gray-light);
}

.ep-booking__delivery-radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.ep-booking__delivery-icon {
	font-size: 1.5rem;
}

.ep-booking__delivery-icon--wechat {
	filter: hue-rotate(90deg) saturate(1.2);
}

.ep-booking__delivery-text {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ep-text);
}

.ep-booking__delivery-option--active .ep-booking__delivery-text {
	color: var(--ep-blue);
}

/* 微信提示区块 */
.ep-booking__wechat-notice {
	background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
	border: 2px solid #07c160;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
}

.ep-booking__wechat-notice-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
}

.ep-booking__wechat-notice-icon {
	font-size: 1.5rem;
	filter: hue-rotate(90deg) saturate(1.2);
}

.ep-booking__wechat-notice-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ep-blue);
}

.ep-booking__wechat-notice-content {
	background: var(--ep-white);
	border-radius: 8px;
	padding: 1.25rem;
}

.ep-booking__wechat-id-display {
	background: var(--ep-gray-light);
	border-radius: 8px;
	padding: 1rem;
	margin: 1rem 0;
	text-align: center;
}

.ep-booking__wechat-id-label {
	font-size: 0.875rem;
	color: var(--ep-gray-dark);
	margin-right: 0.5rem;
}

.ep-booking__wechat-id-value {
	font-size: 1.25rem;
	font-weight: 700;
	color: #07c160;
	letter-spacing: 0.5px;
}

.ep-booking__wechat-hint {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	color: var(--ep-gray-dark);
	line-height: 1.5;
}

/* 表单提示文字 */
.ep-booking__form-hint {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: var(--ep-gray-dark);
	line-height: 1.6;
}

.ep-booking__form-hint strong {
	color: var(--ep-text);
	font-weight: 600;
}

.ep-booking__form-hint span {
	color: var(--ep-gold);
	font-weight: 600;
}

.ep-booking__summary-item {
	display: flex;
	justify-content: space-between;
	padding: 0.75rem 0;
	border-bottom: 1px solid var(--ep-gray);
}

.ep-booking__summary-item:last-child {
	border-bottom: none;
}

.ep-booking__summary-label {
	color: var(--ep-gray-dark);
	font-size: 0.875rem;
}

.ep-booking__summary-value {
	font-weight: 600;
	color: var(--ep-text);
}

/* 表单 */
.ep-booking__form {
	margin-bottom: 2rem;
}

.ep-booking__form-group {
	margin-bottom: 1.5rem;
}

.ep-booking__form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
	color: var(--ep-text);
}

.ep-booking__form-required {
	color: #e53e3e;
}

.ep-booking__form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 2px solid var(--ep-gray);
	border-radius: 8px;
	font-size: 1rem;
	transition: var(--ep-transition);
}

.ep-booking__form-input:focus {
	outline: none;
	border-color: var(--ep-blue);
	box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

/* 按钮 */
.ep-booking__actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 2rem;
}

.ep-booking__button {
	padding: 0.75rem 2rem;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--ep-transition);
	position: relative;
	overflow: hidden;
}

.ep-booking__button::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.ep-booking__button:active::before {
	width: 300px;
	height: 300px;
}

.ep-booking__button--primary {
	background: var(--ep-blue);
	color: var(--ep-white);
}

.ep-booking__button--primary:hover {
	background: var(--ep-blue-light);
	box-shadow: var(--ep-shadow-hover);
}

.ep-booking__button--secondary {
	background: var(--ep-gray);
	color: var(--ep-text);
}

.ep-booking__button--secondary:hover {
	background: var(--ep-gray-dark);
	color: var(--ep-white);
}

.ep-booking__button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* 加载状态 */
.ep-booking__overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 9999;
}

.ep-booking__overlay--hidden {
	display: none;
}

.ep-booking__spinner {
	width: 40px;
	height: 40px;
	border: 4px solid var(--ep-gray);
	border-top-color: var(--ep-blue);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.ep-booking__overlay-message {
	margin-top: 1rem;
	color: var(--ep-white);
	font-weight: 600;
}

/* 错误提示 */
.ep-booking__error {
	background: #fed7d7;
	border: 2px solid #fc8181;
	border-radius: var(--ep-border-radius);
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #c53030;
}

.ep-booking__error--hidden {
	display: none;
}

.ep-booking__error-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fc8181;
	color: var(--ep-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

/* 成功提示 */
.ep-booking__success {
	background: #c6f6d5;
	border: 2px solid #68d391;
	border-radius: var(--ep-border-radius);
	padding: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
	color: #22543d;
}

.ep-booking__success--hidden {
	display: none;
}

.ep-booking__success-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #68d391;
	color: var(--ep-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex-shrink: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
	.ep-booking__container {
		padding: 1rem;
	}

	.ep-booking__steps {
		margin-bottom: 2rem;
	}

	.ep-booking__step-label {
		font-size: 0.75rem;
	}

	.ep-booking__time-slots {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	}

	.ep-booking__actions {
		flex-direction: column;
	}

	.ep-booking__button {
		width: 100%;
	}
}

/* 雅致灰斜纹 - 用于忙碌/休息状态 */
.cell-gray-stripe {
	background-color: #F3F4F6 !important;
	background-image: repeating-linear-gradient(-45deg,
			transparent,
			transparent 10px,
			rgba(255, 255, 255, 0.8) 10px,
			rgba(255, 255, 255, 0.8) 20px) !important;
	cursor: not-allowed !important;
	border-color: #E2E8F0 !important;
	color: #94A3B8 !important;
}

/* 品牌蓝 - 统一可约状态 */
.cell-brand-blue {
	background-color: #E0E7FF !important;
	border-color: #3B82F6 !important;
	color: #1E293B !important;
}

/* 兼容原有 ep-status-busy 名称 */
.ep-status-busy {
	background-color: #F3F4F6 !important;
	background-image: repeating-linear-gradient(-45deg,
			transparent,
			transparent 10px,
			rgba(255, 255, 255, 0.8) 10px,
			rgba(255, 255, 255, 0.8) 20px) !important;
	cursor: not-allowed !important;
}

.ep-booking__service,
.ep-booking__time-slot {
	position: relative;
	overflow: hidden;
}

.ep-booking__service::after,
.ep-booking__time-slot::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(26, 54, 93, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.ep-booking__service:active::after,
.ep-booking__time-slot:active::after {
	width: 300px;
	height: 300px;
}


/* 🆕 Inline 模式：日历下方展开时段选择器 */
.ep-booking__inline-slots {
	margin-top: 1.5rem;
	padding: 1.5rem;
	background: var(--ep-gray-light);
	border: 2px solid var(--ep-blue);
	border-radius: var(--ep-border-radius);
	animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
		max-height: 0;
	}

	to {
		opacity: 1;
		transform: translateY(0);
		max-height: 1000px;
	}
}

.ep-booking__inline-slots-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--ep-gray);
}

.ep-booking__inline-slots-title {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--ep-blue);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ep-booking__inline-slots-date {
	font-size: 0.875rem;
	color: var(--ep-gray-dark);
	background: var(--ep-white);
	padding: 0.375rem 0.75rem;
	border-radius: 6px;
}

.ep-booking__inline-time-slots {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 0.75rem;
}

/* 移动端优化 */
@media (max-width: 768px) {
	.ep-booking__inline-slots {
		padding: 1rem;
		margin-top: 1rem;
	}

	.ep-booking__inline-slots-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.ep-booking__inline-time-slots {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
		gap: 0.5rem;
	}
}

/* 🆕 Full Calendar Styles */
.ep-booking__calendar-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.ep-booking__calendar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.ep-booking__current-month {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--ep-text);
}

.ep-booking__nav-btn {
	background: transparent;
	border: 1px solid var(--ep-gray);
	border-radius: 6px;
	padding: 4px 12px;
	cursor: pointer;
	transition: all 0.2s;
}

.ep-booking__nav-btn:hover {
	background: var(--ep-gray-light);
}

.ep-booking__weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: 600;
	color: var(--ep-gray-dark);
	margin-bottom: 8px;
	font-size: 0.875rem;
}

.ep-booking__days-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.ep-booking__day {
	aspect-ratio: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 50%;
	font-weight: 500;
	transition: all 0.2s;
}

.ep-booking__day:hover:not(.ep-booking__day--empty):not(.ep-booking__day--past) {
	background: var(--ep-gray-light);
	color: var(--ep-blue);
}

.ep-booking__day--selected {
	background: var(--ep-blue) !important;
	color: #fff !important;
}

.ep-booking__day--past {
	color: #cbd5e0;
	cursor: not-allowed;
}

.ep-booking__day--today {
	border: 1px solid var(--ep-blue);
	color: var(--ep-blue);
}