* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #333;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Header：高度由内容 + padding 决定，不设固定 min-height；内页见 body.agreement-page .header */
.header {
	width: 100%;
	background: url('../img/img1.png') no-repeat top center;
	background-size: cover;
	background-color: #e8f5f4;
	height: auto;
	padding-top: clamp(120px, 22vw, 248px);
	padding-bottom: 48px;
	box-sizing: border-box;
}

.container {
	max-width: 1600px;
	margin: 0 auto;
	padding-left: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left));
	padding-right: max(clamp(20px, 4vw, 56px), env(safe-area-inset-right));
}

.nav {
	width: 100%;
	max-width: 1600px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	top: 0;
	z-index: 999;
	padding: 10px max(clamp(20px, 4vw, 56px), env(safe-area-inset-left)) 10px max(clamp(20px, 4vw, 56px), env(safe-area-inset-right));
	box-sizing: border-box;
}

.logo {
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: clamp(18px, 3.2vw, 40px);
	color: #000;
	text-decoration: none;
	min-width: 0;
}

.logo span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.logo img {
	width: clamp(48px, 12vw, 106px);
	height: auto;
	aspect-ratio: 106 / 80;
	object-fit: contain;
	flex-shrink: 0;
}

.download-btn {
	min-width: 96px;
	width: auto;
	height: 50px;
	padding: 0 18px;
	opacity: 1;
	border-radius: 64px;
	background: rgba(0, 186, 173, 1);
	display: flex;
	justify-content: center;
	align-items: center;
	color: white;
	font-size: clamp(14px, 2.2vw, 16px);
	transition: all 0.3s;
	flex-shrink: 0;
}

.download-btn:hover {
	background: rgba(0, 186, 173, .8);
	transform: translateY(-2px);
}

.hero {
	display: flex;
	align-items: center;
}

.hero-content {
	flex: 1;
	min-width: 0;
}

.hero h1 {
	font-size: clamp(28px, 6vw, 64px);
	font-weight: 700;
	margin-bottom: clamp(16px, 3vw, 40px);
	line-height: 1.15;
}

.hero h2 {
	font-size: clamp(22px, 5.5vw, 64px);
	font-weight: 700;
	margin-bottom: clamp(28px, 4vw, 60px);
	line-height: 1.15;
}

.btn-group {
	display: flex;
	gap: clamp(12px, 2.5vw, 28px);
	flex-wrap: wrap;
	align-items: center;
}

.btn {
	background: rgba(0, 186, 173, 1);
	color: white;
	padding: clamp(14px, 2vw, 18px) clamp(20px, 4vw, 40px);
	border-radius: 52px;
	text-decoration: none;
	font-size: clamp(15px, 2.2vw, 19px);
	transition: all 0.3s;
	border: none;
	cursor: pointer;
	line-height: 1.25;
	text-align: center;
}

.btn:hover {
	background: rgba(0, 186, 173, .8);
	transform: translateY(-2px);
}

.hero-image {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.hero-image img {
	max-width: 100%;
	height: auto;
}

/* Feature Sections */
.section1 {
	margin: clamp(48px, 12vw, 170px) auto;
}

.section1 .feature-content {
	padding-top: clamp(24px, 5vw, 70px);
}

.section2 {
	margin: 0 auto clamp(48px, 8vw, 110px);
}

.section2 .feature-content {
	padding-top: clamp(24px, 8vw, 115px);
}

.section3 {
	margin: 0 auto clamp(48px, 10vw, 150px);
}

.section3 .feature-content {
	padding-top: clamp(24px, 9vw, 130px);
}

.section4 {
	margin: 0 auto clamp(64px, 15vw, 420px);
}

.section4 .feature-content {
	padding-top: clamp(24px, 9vw, 135px);
}

.feature {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: clamp(24px, 4vw, 56px);
	max-width: min(1500px, 100%);
	margin: 0 auto;
	padding: 0;
	width: 100%;
	box-sizing: border-box;
}

.feature:nth-child(even) {
	flex-direction: row-reverse;
}

.feature-content {
	width: 100%;
	max-width: 820px;
	min-width: 0;
	box-sizing: border-box;
}

.feature-title {
	font-size: clamp(26px, 4.5vw, 52px);
	font-weight: 500;
	letter-spacing: 0px;
	line-height: 1.15;
	color: rgba(0, 0, 0, 1);
	margin-bottom: clamp(36px, 6vw, 80px);
	position: relative;
}

.feature-title::after {
	content: '';
	display: block;
	position: absolute;
	top: calc(100% + clamp(16px, 3vw, 32px));
	left: 0;
	width: clamp(48px, 8vw, 70px);
	height: 7px;
	opacity: 1;
	background: rgba(0, 0, 0, 1);
}

.feature-desc {
	font-size: clamp(15px, 1.5vw, 16px);
	font-weight: 400;
	letter-spacing: 0px;
	line-height: clamp(26px, 4vw, 30px);
	color: rgba(98, 98, 98, 1);
}

.feature-image {
	width: 100%;
	max-width: min(386px, 100%);
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	margin-left: auto;
	margin-right: auto;
}

.feature-image img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
	object-position: top center;
}

.feature-section {
	padding-left: max(clamp(20px, 5vw, 80px), env(safe-area-inset-left));
	padding-right: max(clamp(20px, 5vw, 80px), env(safe-area-inset-right));
	box-sizing: border-box;
}

/* Course Cards */
.course-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.course-card {
	background: white;
	border-radius: 12px;
	padding: 10px;
	display: flex;
	gap: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.course-image {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.course-info {
	flex: 1;
}

.course-title {
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 5px;
}

.course-desc {
	font-size: 12px;
	color: #999;
}

/* Post List */
.post-list {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.post-card {
	background: white;
	border-radius: 12px;
	padding: 15px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.post-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.post-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-content {
	font-size: 14px;
	margin-bottom: 10px;
}

.post-image {
	width: 100%;
	height: 150px;
	border-radius: 8px;
	overflow: hidden;
}

.post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Practice Cards */
.practice-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
	margin-bottom: 20px;
}

.practice-card {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 20px;
	border-radius: 15px;
	color: white;
	text-align: center;
}

.practice-card.pink {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.practice-item {
	background: white;
	padding: 12px;
	border-radius: 10px;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.practice-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
}

.practice-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Action Grid */
.score-display {
	text-align: center;
	font-size: 48px;
	font-weight: bold;
	color: #667eea;
	margin-bottom: 20px;
}

.action-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-bottom: 20px;
}

.action-btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 15px 10px;
	border-radius: 12px;
	text-align: center;
	color: white;
	font-size: 12px;
	font-weight: bold;
}

.action-btn:nth-child(2) {
	background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.action-btn:nth-child(3) {
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.action-btn:nth-child(4) {
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.action-btn:nth-child(5) {
	background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.action-btn:nth-child(6) {
	background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.calendar-view {
	background: #f5f5f5;
	padding: 15px;
	border-radius: 12px;
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.calendar-day {
	text-align: center;
	padding: 8px;
	font-size: 12px;
}

.calendar-day.active {
	background: #667eea;
	color: white;
	border-radius: 50%;
}

/* Footer */
.footer {
	background: rgba(61, 61, 61, 1);
	text-align: center;
	padding: clamp(28px, 5vw, 44px) max(16px, env(safe-area-inset-left)) clamp(28px, 5vw, 44px) max(16px, env(safe-area-inset-right));
	font-size: clamp(13px, 1.8vw, 16px);
	font-weight: 400;
	letter-spacing: 0px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 1);
}

.footer .container p {
	word-break: break-word;
}

/* Agreement Pages Styles */
.agreement-main {
	min-height: calc(100vh - 200px);
	padding: 40px 20px;
	background-color: #ffffff;
}

.agreement-container {
	max-width: min(1600px, 100%);
	width: 100%;
	margin: 0 auto;
	border-radius: 58px;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0px 2px 18px rgba(0, 0, 0, 0.08);
	align-items: center;
	padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 55px);
}

.agreement-title {
	font-size: clamp(22px, 3.5vw, 36px);
	font-weight: 400;
	letter-spacing: 0px;
	line-height: 1.35;
	color: rgba(0, 0, 0, 1);
	text-align: center;
	margin-bottom: clamp(28px, 4vw, 45px);
}

.agreement-content {
	color: #000;
	font-size: 16px;
	line-height: 1.8;
}

.agreement-intro {
	margin-bottom: 30px;
	text-align: justify;
}

/* Sections */
.agreement-section {
	margin-bottom: 35px;
}

.agreement-section p {
	margin-bottom: 15px;
	text-align: justify;
}

/* Lists */
.agreement-list {
	margin-left: 20px;
	margin-bottom: 15px;
	padding-left: 0;
}

.agreement-list li {
	margin-bottom: 12px;
	text-align: justify;
	line-height: 1.8;
}

.agreement-list li strong {
	font-weight: 600;
}

.agreement-sublist {
	margin-top: 8px;
	margin-left: 20px;
	margin-bottom: 8px;
	list-style-type: none;
	counter-reset: sub-counter;
}

.agreement-sublist li {
	counter-increment: sub-counter;
	position: relative;
	padding-left: 25px;
}

.agreement-sublist li::before {
	content: "(" counter(sub-counter) ")";
	position: absolute;
	left: 0;
	font-weight: normal;
}

.agreement-numlist {
	margin-left: 20px;
	margin-bottom: 20px;
	padding-left: 20px;
}

.agreement-numlist li {
	margin-bottom: 10px;
	text-align: justify;
	line-height: 1.8;
}

.agreement-section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 28px 0 16px;
	color: #000;
}

.agreement-section .agreement-section-title:first-child {
	margin-top: 0;
}

.sdk-item {
	margin-bottom: 20px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.sdk-item:last-child {
	border-bottom: none;
}

.sdk-item .agreement-intro {
	margin-bottom: 8px;
}

.agreement-content a {
	color: #00baad;
	text-decoration: underline;
}

.agreement-content a:hover {
	text-decoration: none;
}

/* Contact Info */
.contact-info {
	margin-top: 20px;
	margin-bottom: 15px;
}

.contact-info p {
	margin-bottom: 8px;
	text-align: left;
}

/* Agreement page header and nav adjustments */
body.agreement-page {
	background-color: #ffffff;
}

body.agreement-page .header {
	background: #ffffff;
	height: auto;
	min-height: 0;
	padding: 0;
}

body.agreement-page .nav {
	background: #ffffff;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

body.agreement-page .agreement-main {
	padding: clamp(88px, 14vw, 150px) max(12px, env(safe-area-inset-left)) 60px max(12px, env(safe-area-inset-right));
}


.footer2 {
	text-align: center;
	padding-bottom: 10px;
}

.footer2 div {
	font-size: clamp(14px, 2vw, 16px);
	font-weight: 600;
	letter-spacing: 0px;
	line-height: 1.45;
	color: rgba(0, 0, 0, 1);
	margin-bottom: clamp(20px, 4vw, 35px);
	padding: 0 max(12px, env(safe-area-inset-left)) 0 max(12px, env(safe-area-inset-right));
}

/* Responsive */
@media (max-width: 1024px) {
	.feature {
		flex-wrap: wrap;
		justify-content: center;
	}

	.feature-image {
		max-width: min(386px, 88vw);
	}
}

@media (max-width: 900px) {
	.feature {
		flex-direction: column !important;
		align-items: stretch;
	}

	.feature-image {
		max-width: min(386px, 86vw);
		order: -1;
	}

	.section1 .feature-content,
	.section2 .feature-content,
	.section3 .feature-content,
	.section4 .feature-content {
		padding-top: 20px;
	}

	.feature-title {
		margin-bottom: clamp(28px, 5vw, 48px);
	}
}

@media (max-width: 768px) {
	.hero {
		flex-direction: column;
		align-items: flex-start;
	}

	.btn-group {
		flex-direction: column;
		align-items: stretch;
	}

	.btn {
		width: 100%;
		box-sizing: border-box;
	}

	.download-btn {
		height: 46px;
		min-height: 44px;
	}

	.agreement-container {
		border-radius: clamp(20px, 5vw, 58px);
		margin: 0 auto;
		padding: clamp(24px, 5vw, 40px) clamp(16px, 4vw, 28px);
	}

	.agreement-content {
		font-size: 15px;
	}

	.agreement-section-title {
		font-size: 17px;
	}

	.agreement-list,
	.agreement-numlist {
		margin-left: 12px;
		padding-left: 8px;
	}

	.agreement-sublist {
		margin-left: 8px;
	}
}

@media (max-width: 480px) {
	.agreement-intro,
	.agreement-section p,
	.agreement-list li,
	.agreement-numlist li {
		text-align: left;
		hyphens: auto;
	}

	.agreement-content {
		font-size: 14px;
	}
}