.membership-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 20px 64px;
	color: var(--text-main, #0f172a);
}

.membership-hero {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
	align-items: center;
	margin-bottom: 32px;
}

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 700;
	font-size: 0.78rem;
	color: var(--primary-color, #2563eb);
}

.membership-hero h1 {
	margin: 8px 0;
	font-size: 2rem;
}

.membership-hero .lead {
	margin: 8px 0 16px;
	color: var(--text-muted, #4b5563);
}

.hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.hero-actions .btn {
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
}

.btn.primary {
	background: var(--primary-color, #2563eb);
	color: #fff;
}

.btn.ghost {
	border: 1px solid var(--border-subtle, #d1d5db);
	color: var(--text-main, #111);
	background: var(--bg-lighter, #f8fafc);
}

.hero-card {
	border: 1px solid var(--border-subtle, #e5e7eb);
	border-radius: 12px;
	padding: 20px;
	background: var(--bg-darker, #ffffff);
	box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.hero-card h3 {
	margin-bottom: 8px;
}

.hero-card ul {
	margin: 0;
	padding-left: 18px;
	color: var(--text-muted, #4b5563);
}

.membership-section {
	margin-top: 32px;
}

.section-header {
	margin-bottom: 12px;
}

.section-subtitle {
	color: var(--text-muted, #4b5563);
}

.plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
}

.plan-card {
	position: relative;
	border: 1px solid var(--border-subtle, #e5e7eb);
	border-radius: 14px;
	padding: 16px;
	background: var(--bg-darker, #ffffff);
	box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

.plan-card.highlighted {
	border-color: var(--primary-color, #2563eb);
}

.plan-tag {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--primary-color, #2563eb);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.plan-desc {
	color: var(--text-muted, #4b5563);
	margin-bottom: 8px;
}

.plan-features {
	list-style: disc;
	padding-left: 18px;
	color: var(--text-main, #0f172a);
	margin: 0 0 12px 0;
}

.plan-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.price-main {
	font-weight: 700;
	font-size: 1.1rem;
}

.price-sub {
	display: block;
	color: var(--text-muted, #6b7280);
	font-size: 0.85rem;
}

.plan-actions {
	display: flex;
	gap: 8px;
}

.plan-btn,
.plan-secondary-link {
	padding: 8px 12px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
}

.plan-btn {
	background: var(--primary-color, #2563eb);
	color: #fff;
}

.plan-secondary-link {
	border: 1px solid var(--border-subtle, #d1d5db);
	color: var(--text-main, #111);
}

.member-steps {
	padding-left: 18px;
	line-height: 1.7;
}

.member-hint {
	margin-top: 8px;
	color: var(--text-muted, #4b5563);
}

/* 付款方式內嵌列表 */
.payment-methods-inline {
	list-style: none;
	padding: 8px 0 8px 12px;
	margin: 8px 0;
}

.payment-methods-inline li {
	margin-bottom: 6px;
	font-size: 0.95rem;
	color: var(--text-muted, #4b5563);
}

.gateway-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	margin-right: 6px;
}

.gateway-tag.ecpay {
	background: linear-gradient(135deg, rgba(34, 139, 34, 0.15), rgba(34, 139, 34, 0.08));
	border: 1px solid rgba(34, 139, 34, 0.3);
	color: #228b22;
}

.gateway-tag.paypal {
	background: linear-gradient(135deg, rgba(0, 48, 135, 0.15), rgba(0, 48, 135, 0.08));
	border: 1px solid rgba(0, 48, 135, 0.3);
	color: #003087;
}

/* 深色主題 */
:root[data-theme="dark"] .gateway-tag.ecpay {
	background: linear-gradient(135deg, rgba(34, 139, 34, 0.25), rgba(34, 139, 34, 0.12));
	border-color: rgba(34, 139, 34, 0.4);
	color: #4ade80;
}

:root[data-theme="dark"] .gateway-tag.paypal {
	background: linear-gradient(135deg, rgba(0, 112, 186, 0.25), rgba(0, 112, 186, 0.12));
	border-color: rgba(0, 112, 186, 0.4);
	color: #60a5fa;
}

@media (prefers-color-scheme: dark) {
	:root[data-theme="system"] .gateway-tag.ecpay {
		background: linear-gradient(135deg, rgba(34, 139, 34, 0.25), rgba(34, 139, 34, 0.12));
		border-color: rgba(34, 139, 34, 0.4);
		color: #4ade80;
	}
	
	:root[data-theme="system"] .gateway-tag.paypal {
		background: linear-gradient(135deg, rgba(0, 112, 186, 0.25), rgba(0, 112, 186, 0.12));
		border-color: rgba(0, 112, 186, 0.4);
		color: #60a5fa;
	}
}

.contact-list {
	list-style: disc;
	padding-left: 18px;
	line-height: 1.7;
}

.muted {
	color: var(--text-muted, #6b7280);
}

@media (max-width: 900px) {
	.membership-hero { grid-template-columns: 1fr; }
}