:root {
	--primary-color: #4a6fa5;
	--secondary-color: #166088;
	--accent-color: #ff6b6b;
	--light-color: #f8f9fa;
	--dark-color: #343a40;
	--success-color: #51a851;
	--rest-day-color: #6c757d;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
	background-color: #f5f7fa;
	color: #333;
	line-height: 1.6;
	padding-bottom: 80px;
}

.container {
	max-width: 100%;
	padding: 0 15px;
}

header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 20px 15px;
	margin-bottom: 20px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	border-radius: 0 0 15px 15px;
}

h1 {
	font-size: 1.8rem;
	margin-bottom: 5px;
	text-align: center;
}

.subtitle {
	text-align: center;
	opacity: 0.9;
	font-size: 0.95rem;
	margin-bottom: 10px;
}

.training-principles {
	background-color: white;
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 20px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	border-left: 4px solid var(--accent-color);
}

.principles-title {
	color: var(--secondary-color);
	font-weight: 600;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.principles-title i {
	margin-right: 8px;
	color: var(--accent-color);
}

.principle-item {
	display: flex;
	align-items: flex-start;
	margin-bottom: 8px;
	font-size: 0.9rem;
}

.principle-item i {
	color: var(--success-color);
	margin-right: 8px;
	margin-top: 3px;
	flex-shrink: 0;
}

.days-container {
	display: flex;
	overflow-x: auto;
	margin-bottom: 20px;
	padding-bottom: 10px;
	scrollbar-width: thin;
}

.days-container::-webkit-scrollbar {
	height: 5px;
}

.days-container::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 10px;
}

.day-tab {
	padding: 12px 20px;
	background-color: white;
	border-radius: 10px;
	margin-right: 10px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.day-tab.active {
	background-color: var(--primary-color);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(74, 111, 165, 0.3);
}

.day-tab.rest-day {
	background-color: #e9ecef;
	color: var(--rest-day-color);
}

.training-plan {
	background-color: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
	margin-bottom: 25px;
	display: none;
}

.training-plan.active {
	display: block;
}

.plan-header {
	background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
	color: white;
	padding: 18px 20px;
}

.plan-header h2 {
	font-size: 1.4rem;
	margin-bottom: 5px;
}

.plan-subtitle {
	font-size: 0.9rem;
	opacity: 0.9;
	display: flex;
	justify-content: space-between;
}

.plan-content {
	padding: 0;
}

/* 超级组样式 */
.super-group {
	padding: 15px;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s;
}

.super-group:hover {
	background-color: #f9f9f9;
}

.super-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.super-group-name {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 1.1rem;
}

.super-group-rest {
	background-color: var(--primary-color);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.super-group-exercises {
	margin-bottom: 15px;
}

.super-exercise {
	margin-bottom: 15px;
	padding: 15px;
	background-color: #f8f9fa;
	border-radius: 10px;
	border-left: 3px solid var(--accent-color);
}

.exercise-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.exercise-name {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 1rem;
}

.exercise-sets {
	background-color: var(--secondary-color);
	color: white;
	padding: 4px 10px;
	border-radius: 15px;
	font-size: 0.8rem;
	font-weight: 600;
}

.exercise-details {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}

.detail-item {
	display: flex;
	flex-direction: column;
}

.detail-label {
	font-size: 0.75rem;
	color: #666;
	margin-bottom: 4px;
}

.detail-value {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 0.9rem;
}

.exercise-tips {
	background-color: #f0f7ff;
	padding: 10px;
	border-radius: 8px;
	font-size: 0.85rem;
	color: #444;
}

.exercise-tips-title {
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 5px;
	display: flex;
	align-items: center;
	font-size: 0.85rem;
}

.exercise-tips-title i {
	margin-right: 6px;
}

/* 独立动作样式 */
.single-exercise {
	padding: 18px 20px;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s;
}

.single-exercise:hover {
	background-color: #f9f9f9;
}

.single-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.single-name {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 1.1rem;
}

.single-sets {
	background-color: var(--primary-color);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

/* 巨人组样式 */
.giant-group {
	padding: 15px;
	border-bottom: 1px solid #eee;
	transition: background-color 0.2s;
}

.giant-group:hover {
	background-color: #f9f9f9;
}

.giant-group-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.giant-group-name {
	font-weight: 600;
	color: var(--dark-color);
	font-size: 1.1rem;
}

.giant-group-rest {
	background-color: var(--accent-color);
	color: white;
	padding: 5px 12px;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600;
}

.giant-group-info {
	background-color: #fff9e6;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 15px;
	font-size: 0.9rem;
	border-left: 3px solid #ffc107;
}

/* 完成标记 */
.completed-mark {
	color: var(--success-color);
	font-size: 1.2rem;
	margin-left: 8px;
	display: none;
}

.super-exercise.completed .completed-mark,
.single-exercise.completed .completed-mark {
	display: inline;
}

/* 切换按钮 */
.toggle-complete {
	background: none;
	border: 2px solid #ddd;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	margin-left: 10px;
	transition: all 0.3s;
}

.toggle-complete:hover {
	border-color: var(--success-color);
}

.super-exercise.completed .toggle-complete,
.single-exercise.completed .toggle-complete {
	background-color: var(--success-color);
	border-color: var(--success-color);
	color: white;
}

/* 计时器按钮 */
.timer-button {
	display: block;
	width: calc(100% - 40px);
	background-color: var(--success-color);
	color: white;
	border: none;
	padding: 15px;
	font-size: 1.1rem;
	font-weight: 600;
	border-radius: 10px;
	margin: 20px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.timer-button:hover {
	background-color: #3d8c3d;
}

.footer-note {
	text-align: center;
	color: #666;
	font-size: 0.85rem;
	margin-top: 30px;
	padding: 0 15px;
}

.footer-note strong {
	color: var(--primary-color);
}

@media (max-width: 480px) {
	.exercise-details {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 8px;
	}

	h1 {
		font-size: 1.5rem;
	}

	.plan-header h2 {
		font-size: 1.2rem;
	}
}

/* 计时器样式 */
.timer-container {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: white;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
	padding: 15px;
	border-radius: 20px 20px 0 0;
	display: none;
	z-index: 1000;
}

.timer-container.active {
	display: block;
}

.timer-display {
	font-size: 3.5rem;
	text-align: center;
	font-weight: 700;
	color: var(--secondary-color);
	margin: 10px 0;
	font-family: 'Courier New', monospace;
}

.timer-controls {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 15px;
}

.timer-btn {
	padding: 12px 25px;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 1rem;
	transition: all 0.3s;
}

.timer-btn.start {
	background-color: var(--success-color);
	color: white;
}

.timer-btn.pause {
	background-color: #ffc107;
	color: #333;
}

.timer-btn.reset {
	background-color: #6c757d;
	color: white;
}

.timer-btn.close {
	background-color: #dc3545;
	color: white;
}

.timer-presets {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
	flex-wrap: wrap;
}

.timer-preset {
	padding: 8px 15px;
	background-color: #e9ecef;
	border-radius: 20px;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.3s;
}

.timer-preset:hover {
	background-color: #d0d7de;
}

.timer-preset.active {
	background-color: var(--primary-color);
	color: white;
}

.timer-title {
	text-align: center;
	font-weight: 600;
	color: var(--dark-color);
	margin-bottom: 5px;
}