/**
 * Think Member - 前台样式（下载框 / 会员中心）
 */

.tm-box,
.tm-mc,
.tm-pay {
	--tm-primary: #ff5e52;
	--tm-accent: #ff8a80;
	--tm-radius: 6px;
	--tm-radius-sm: 4px;
	--tm-ink: #333333;
	--tm-body: #4a4a4a;
	--tm-muted: #999999;
	--tm-line: #f0f0f0;
	--tm-soft: #f7f7f7;
	--tm-success: #18a058;
	--tm-danger: #e64545;
	--tm-shadow: 0 0 10px rgba(0, 0, 0, .04);
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	color: var(--tm-body);
	-webkit-font-smoothing: antialiased;
}

.tm-box *,
.tm-box *::before,
.tm-box *::after,
.tm-mc *,
.tm-mc *::before,
.tm-mc *::after,
.tm-pay *,
.tm-pay *::before,
.tm-pay *::after { box-sizing: border-box; }

.tm-box p, .tm-mc p, .tm-pay p { margin: 0; }
.tm-box h2, .tm-box h3, .tm-mc h2, .tm-mc h3, .tm-pay h3 { margin: 0; font-weight: 700; }
.tm-box a, .tm-mc a, .tm-pay a { text-decoration: none; }
.tm-svg { flex: none; vertical-align: middle; }

/* =====================================================================
 * 下载框
 * ================================================================== */
.tm-box {
	position: relative;
	margin: 28px 0;
	padding: 20px 22px 16px;
	border-radius: var(--tm-radius);
	background:
		radial-gradient(520px 200px at 0% -30%, rgba(79, 70, 229, .10), transparent 70%),
		linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
	border: 1px solid var(--tm-line);
	box-shadow: var(--tm-shadow);
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.tm-box::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--tm-primary), var(--tm-accent));
	opacity: .9;
}

.tm-box:hover { box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 26px 50px -28px rgba(15, 23, 42, .4); }

.tm-box--flat { background: #fff; }
.tm-box--outline { background: transparent; border: 1.5px dashed #dddddd; box-shadow: none; }
.tm-box--outline::before { display: none; }

.tm-box__top { display: flex; gap: 15px; align-items: flex-start; }

.tm-box__thumb {
	position: relative;
	width: 62px; height: 62px;
	flex: none;
	border-radius: 6px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, #ff5e52, #e0483e);
	box-shadow: 0 10px 20px -12px rgba(15, 23, 42, .5);
	overflow: hidden;
}

.tm-box__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tm-box__ext {
	color: #fff;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1;
}
.tm-box__type {
	position: absolute;
	bottom: 0; left: 0; right: 0;
	padding: 2px 0;
	background: rgba(15, 23, 42, .38);
	color: #fff;
	font-size: 9px;
	font-style: normal;
	text-align: center;
	letter-spacing: .06em;
}

.tm-box__thumb.tm-ext--archive { background: linear-gradient(135deg, #f59e0b, #d97706); }
.tm-box__thumb.tm-ext--doc { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.tm-box__thumb.tm-ext--media { background: linear-gradient(135deg, #ec4899, #db2777); }
.tm-box__thumb.tm-ext--image { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.tm-box__thumb.tm-ext--code { background: linear-gradient(135deg, #5b8cff, #ff5e52); }
.tm-box__thumb.tm-ext--other { background: linear-gradient(135deg, #999999, #666666); }

.tm-box__head { flex: 1; min-width: 0; }
.tm-box__title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tm-box__title {
	font-size: 16.5px;
	line-height: 1.45;
	color: var(--tm-ink);
	letter-spacing: -.01em;
	font-weight: 700;
}

.tm-pill {
	display: inline-flex; align-items: center; gap: 4px;
	height: 22px; padding: 0 8px;
	border-radius: 7px;
	font-size: 11px; font-weight: 700;
	color: var(--pill, #999999);
	background: color-mix(in srgb, var(--pill, #999999) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--pill, #999999) 22%, #fff);
	white-space: nowrap;
}

.tm-chip {
	display: inline-flex; align-items: center; gap: 3px;
	height: 20px; padding: 0 7px;
	border-radius: 6px;
	font-size: 10.5px; font-weight: 700;
	background: #f5f5f5; color: #666666;
	white-space: nowrap;
}
.tm-chip--ok { background: #e8f6f0; color: #0b7a5a; }
.tm-chip--warn { background: #fef3c7; color: #b45309; }
.tm-chip--muted { background: #f5f5f5; color: #bbbbbb; }

.tm-box__meta {
	display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
	margin-top: 6px;
	font-size: 11.5px;
	color: var(--tm-muted);
}
.tm-box__meta-item { display: inline-flex; align-items: center; gap: 4px; }
.tm-box__meta-item + .tm-box__meta-item::before {
	content: "·";
	margin-right: 2px;
	color: #dddddd;
}

.tm-box__desc {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.75;
	color: var(--tm-body);
	opacity: .92;
}

.tm-box__codes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.tm-code {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 5px 9px;
	background: #f5f5f5;
	border: 1px dashed #d7dee9;
	border-radius: 8px;
	font-size: 11.5px;
	color: var(--tm-muted);
}
.tm-code b {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: var(--tm-ink);
	font-size: 12.5px;
	letter-spacing: .04em;
}
.tm-code__copy {
	display: inline-flex; align-items: center; justify-content: center;
	width: 20px; height: 20px;
	border: none; border-radius: 5px;
	background: #fff; color: var(--tm-muted);
	cursor: pointer;
	transition: all .15s;
}
.tm-code__copy:hover { color: var(--tm-primary); background: #fff1f0; }

.tm-box__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	margin-top: 16px; padding-top: 14px;
	border-top: 1px solid #f2f2f2;
	flex-wrap: wrap;
}

.tm-box__quota { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--tm-muted); flex-wrap: wrap; }
.tm-quota-text { display: inline-flex; align-items: center; gap: 4px; }
.tm-quota-text b { color: var(--tm-primary); font-weight: 700; }
.tm-quota-bar {
	position: relative; display: inline-block;
	width: 76px; height: 5px; border-radius: 8px; background: #f2f2f2; overflow: hidden;
}
.tm-quota-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: linear-gradient(90deg, var(--tm-primary), var(--tm-accent)); }
.tm-quota-hint { color: #bbbbbb; }

.tm-box__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 按钮 */
.tm-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 38px; padding: 0 17px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 13px; font-weight: 600; line-height: 1;
	cursor: pointer;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
	white-space: nowrap;
}
.tm-btn:hover { transform: translateY(-1px); }
.tm-btn:active { transform: none; }
.tm-btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.tm-btn--primary {
	background: linear-gradient(135deg, var(--tm-primary), color-mix(in srgb, var(--tm-primary) 78%, #000));
	color: #fff;
	box-shadow: 0 12px 24px -14px var(--tm-primary);
}
.tm-btn--primary:hover { color: #fff; box-shadow: 0 16px 30px -14px var(--tm-primary); }

.tm-btn--ghost {
	background: #fff;
	border-color: #dde3ee;
	color: #444444;
}
.tm-btn--ghost:hover { border-color: #c3cbdb; background: #fafafa; color: var(--tm-ink); }

.tm-btn--lg { height: 44px; padding: 0 24px; font-size: 14px; border-radius: 4px; }
.tm-btn--block { width: 100%; }

.tm-btn--signin {
	height: 32px; padding: 0 12px;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .32);
	color: #fff;
	font-size: 12px;
	backdrop-filter: blur(6px);
}
.tm-btn--signin:hover { background: rgba(255, 255, 255, .28); }
.tm-btn--signin[disabled] { opacity: .65; }

.tm-box__lock {
	display: flex; align-items: center; gap: 7px;
	margin: 12px -22px -16px;
	padding: 10px 22px;
	background: #fffbeb;
	border-top: 1px solid #fde68a;
	color: #b45309;
	font-size: 12px;
}
.tm-box__lock-icon { display: inline-flex; }

.tm-box__brand {
	display: flex; align-items: center; gap: 5px; justify-content: flex-end;
	margin-top: 10px;
	font-size: 10px;
	color: #b6c0cf;
	letter-spacing: .04em;
}

.tm-box.is-locked .tm-box__actions .tm-btn--primary { background: #fff; color: var(--tm-primary); border-color: #c9d9ff; box-shadow: none; }

/* =====================================================================
 * 会员中心
 * ================================================================== */
.tm-mc { margin: 8px 0 40px; color: var(--tm-body); }

.tm-mc .tm-btn { text-decoration: none; }

/* Hero */
.tm-mc-hero {
	position: relative;
	padding: 26px 28px 22px;
	border-radius: calc(var(--tm-radius) + 6px);
	background:
		radial-gradient(86% 128% at 0% -32%, color-mix(in srgb, var(--tm-primary) 52%, transparent) 0%, transparent 60%),
		radial-gradient(66% 100% at 100% 132%, color-mix(in srgb, var(--tm-accent) 16%, transparent) 0%, transparent 62%),
		linear-gradient(150deg, #0a1122 0%, #0d1a2e 55%, #12294a 100%);
	color: #fff;
	box-shadow: 0 30px 64px -38px rgba(9, 14, 28, .62);
	overflow: hidden;
	isolation: isolate;
}

.tm-mc-hero__deco { position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; }
.tm-mc-hero__deco--a {
	width: 320px; height: 320px; right: -90px; top: -140px;
	background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .35), transparent 65%);
}
.tm-mc-hero__deco--b {
	width: 240px; height: 240px; left: 32%; bottom: -160px;
	background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .2), transparent 70%);
}

.tm-mc-hero__main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.tm-mc-avatar { position: relative; width: 84px; height: 84px; flex: none; }
.tm-mc-avatar__img {
	width: 84px; height: 84px;
	border-radius: 8px;
	border: 2px solid rgba(255, 255, 255, .55);
	box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .45);
	display: block;
}
.tm-mc-avatar .tm-avatar {
	border-radius: 8px;
	background: linear-gradient(135deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12));
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26);
}
.tm-mc-avatar__ring {
	position: absolute; inset: -4px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, .28);
	pointer-events: none;
}

.tm-mc-identity { flex: 1; min-width: 200px; }
.tm-mc-name-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tm-mc-name { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: #fff; }

.tm-mc .tm-level-badge {
	background: rgba(255, 255, 255, .18) !important;
	border-color: rgba(255, 255, 255, .32) !important;
	color: #fff !important;
	backdrop-filter: blur(6px);
}
.tm-mc-hero .tm-chip { background: rgba(255, 255, 255, .18); color: #fff; }

.tm-mc-sub {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	margin-top: 8px;
	font-size: 12px;
	color: rgba(255, 255, 255, .82);
}
.tm-mc-sub i { font-style: normal; opacity: .5; }

.tm-mc-wallet {
	display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
	padding-left: 22px;
	border-left: 1px solid rgba(255, 255, 255, .2);
	min-width: 150px;
}
.tm-mc-wallet__label { font-size: 11.5px; color: rgba(255, 255, 255, .78); letter-spacing: .04em; }
.tm-mc-wallet__value { font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #fff; }

.tm-mc-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-top: 22px;
}
.tm-mc-stat {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 14px;
	border-radius: 6px;
	background: rgba(255, 255, 255, .13);
	border: 1px solid rgba(255, 255, 255, .16);
	backdrop-filter: blur(8px);
}
.tm-mc-stat__icon {
	width: 32px; height: 32px; flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	background: rgba(255, 255, 255, .18);
	color: #fff;
}
.tm-mc-stat b { display: block; font-size: 17px; font-weight: 700; color: #fff; line-height: 1.2; }
.tm-mc-stat em { font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, .78); }

/* body */
.tm-mc-body {
	display: grid;
	grid-template-columns: 236px minmax(0, 1fr);
	gap: 20px;
	margin-top: 20px;
	align-items: start;
}

.tm-mc-nav {
	display: flex; flex-direction: column; gap: 3px;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.tm-mc-nav__item {
	display: flex; align-items: center; gap: 9px;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px; font-weight: 600;
	color: var(--tm-muted);
	transition: all .16s ease;
}
.tm-mc-nav__item:hover { background: #f7f9fd; color: var(--tm-ink); }
.tm-mc-nav__item.is-active { background: color-mix(in srgb, var(--tm-primary) 9%, #fff); color: var(--tm-primary); }
.tm-mc-nav__item em {
	margin-left: auto;
	font-style: normal;
	font-size: 10.5px; font-weight: 700;
	padding: 1px 6px; border-radius: 8px;
	background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
	color: var(--tm-primary);
}

.tm-mc-upgrade {
	margin-top: 14px;
	padding: 15px 16px;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
}
.tm-mc-upgrade__head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--tm-ink); }
.tm-mc-upgrade__head b { color: var(--tm-primary); font-size: 12px; }
.tm-mc-upgrade__bar {
	height: 6px; margin: 10px 0; border-radius: 8px; background: #f2f2f2; overflow: hidden;
}
.tm-mc-upgrade__bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--tm-primary), var(--tm-accent)); transition: width .4s ease; }
.tm-mc-upgrade p { font-size: 11.5px; color: var(--tm-muted); line-height: 1.6; }
.tm-mc-upgrade p b { color: var(--tm-primary); }
.tm-mc-upgrade__next { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--tm-muted); }

.tm-mc-tip {
	display: flex; gap: 10px;
	margin-top: 14px; padding: 14px 15px;
	border-radius: var(--tm-radius);
	background: #f5f5f5;
	border: 1px solid #f0f0f0;
	color: #666666;
}
.tm-mc-tip .tm-svg { color: var(--tm-primary); margin-top: 2px; }
.tm-mc-tip b { display: block; font-size: 12px; color: var(--tm-ink); }
.tm-mc-tip span { display: block; margin-top: 3px; font-size: 11px; line-height: 1.6; }

/* 退出登录（会员只使用前台时，这是唯一的登出入口） */
.tm-mc-logout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 4px;
	border: 1px solid var(--tm-line);
	background: #fff;
	color: var(--tm-muted);
	font-size: 12px;
	font-weight: 600;
	transition: color .16s ease, border-color .16s ease, background .16s ease;
}
.tm-mc-logout .tm-svg { color: #bbbbbb; transition: color .16s ease; }
.tm-mc-logout:hover {
	color: var(--tm-danger);
	border-color: color-mix(in srgb, var(--tm-danger) 24%, #fff);
	background: color-mix(in srgb, var(--tm-danger) 4%, #fff);
}
.tm-mc-logout:hover .tm-svg { color: var(--tm-danger); }

@container tm-mc (max-width: 620px) {
	.tm-mc-logout { margin-top: 0; }
}

/* content */
.tm-mc-content { min-width: 0; }
.tm-panel {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03);
	margin-bottom: 18px;
	overflow: hidden;
}
.tm-panel__head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid #f1f4f9;
	flex-wrap: wrap;
}
.tm-panel__head h3 { font-size: 14.5px; font-weight: 700; color: var(--tm-ink); }
.tm-panel__hint { font-size: 11.5px; color: var(--tm-muted); }
.tm-panel__more { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--tm-primary); }

.tm-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 18px 20px; }
.tm-perk { display: flex; gap: 11px; padding: 13px 14px; border-radius: 4px; background: #fafbff; border: 1px solid #f0f3fa; }
.tm-perk__icon {
	width: 36px; height: 36px; flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	background: color-mix(in srgb, var(--tm-primary) 9%, #fff);
	color: var(--tm-primary);
}
.tm-perk b { display: block; font-size: 12.5px; color: var(--tm-ink); }
.tm-perk p { margin-top: 3px; font-size: 11.5px; color: var(--tm-muted); line-height: 1.55; }

/* feed */
.tm-feed { list-style: none; margin: 0; padding: 4px 8px 8px; }
.tm-feed__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 4px; }
.tm-feed__item:hover { background: #fafbff; }
.tm-feed__icon {
	width: 36px; height: 36px; flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	background: #f5f5f5; color: #666666;
	font-size: 9.5px; font-weight: 800;
}
.tm-feed__icon--plus { background: #e8f6f0; color: #0b7a5a; font-size: 16px; }
.tm-feed__icon--minus { background: #fee2e2; color: #b91c1c; font-size: 16px; }
.tm-feed__body { flex: 1; min-width: 0; }
.tm-feed__body b { display: block; font-size: 12.5px; color: var(--tm-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-feed__body span { display: block; margin-top: 2px; font-size: 11px; color: #bbbbbb; }
.tm-feed__value { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tm-feed__value.is-plus { color: var(--tm-success); }
.tm-feed__value.is-minus { color: var(--tm-danger); }

/* tables */
.tm-table-wrap { overflow-x: auto; }
.tm-table { width: 100%; border-collapse: collapse; }
.tm-table th {
	padding: 10px 18px;
	text-align: left;
	font-size: 11px; font-weight: 600;
	color: var(--tm-muted);
	background: #fbfcfe;
	border-bottom: 1px solid var(--tm-line);
	white-space: nowrap;
}
.tm-table td { padding: 13px 18px; border-bottom: 1px solid #f3f5fa; font-size: 12.5px; vertical-align: middle; }
.tm-table tbody tr:last-child td { border-bottom: none; }
.tm-table tbody tr:hover { background: #fafafa; }
.tm-table .is-right { text-align: right; }

.tm-cell-res { display: flex; align-items: center; gap: 10px; }
.tm-cell-res__icon {
	width: 34px; height: 34px; flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	background: #f5f5f5; color: #666666;
	font-size: 9px; font-weight: 800;
}
.tm-cell-res__icon.tm-ext--archive { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.tm-cell-res__icon.tm-ext--doc { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.tm-cell-res__icon.tm-ext--media { background: linear-gradient(135deg, #ec4899, #db2777); color: #fff; }
.tm-cell-res__icon.tm-ext--image { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: #fff; }
.tm-cell-res__icon.tm-ext--code { background: linear-gradient(135deg, #5b8cff, #ff5e52); color: #fff; }
.tm-cell-res__icon.tm-ext--other { background: linear-gradient(135deg, #999999, #666666); color: #fff; }
.tm-cell-res b { display: block; font-size: 12.5px; font-weight: 600; color: var(--tm-ink); }
.tm-cell-res span { display: block; margin-top: 2px; font-size: 11px; color: #bbbbbb; }

.tm-mini-btn {
	display: inline-flex; align-items: center; gap: 4px;
	height: 28px; padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #666666;
	font-size: 11.5px; font-weight: 600;
	white-space: nowrap;
	transition: all .15s;
}
.tm-mini-btn:hover { border-color: color-mix(in srgb, var(--tm-primary) 40%, #fff); color: var(--tm-primary); background: #fafafa; }

.tm-link { color: var(--tm-primary); font-weight: 600; }
.tm-muted { color: #bbbbbb; font-size: 12px; }
.tm-code-inline { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: #999999; background: #fafafa; padding: 2px 6px; border-radius: 5px; }

/* 空状态 */
.tm-empty {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 8px; padding: 46px 20px;
	color: #dddddd;
	text-align: center;
}
.tm-empty__title { font-size: 13.5px; font-weight: 600; color: #999999; }
.tm-empty__desc { font-size: 12px; color: #bbbbbb; }

/* 提示 */
.tm-alert {
	display: flex; align-items: center; gap: 8px;
	padding: 11px 14px; margin-bottom: 16px;
	border-radius: 4px;
	font-size: 12.5px;
 }
.tm-alert--success { background: #edf8f3; color: #0b7a5a; border: 1px solid #cdeade; }
.tm-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* 表单 */
.tm-form { padding: 18px 20px; }
.tm-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.tm-field { display: flex; flex-direction: column; gap: 6px; }
.tm-field > span { font-size: 11.5px; font-weight: 600; color: #666666; }
.tm-field input {
	width: 100%;
	height: 38px;
	padding: 0 12px;
	border: 1px solid #dfe3ec;
	border-radius: 4px;
	font-size: 12.5px;
	color: var(--tm-ink);
	background: #fff;
	transition: border-color .16s, box-shadow .16s;
}
.tm-field input:focus { border-color: color-mix(in srgb, var(--tm-primary) 45%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 10%, transparent); outline: none; }
.tm-field input:disabled { background: #fafafa; color: #bbbbbb; }
.tm-form__foot { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* 分页 */
.tm-pagination { display: flex; gap: 6px; flex-wrap: wrap; padding: 16px 20px; justify-content: center; }
.tm-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 32px; height: 32px; padding: 0 9px;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	background: #fff;
	color: #666666;
	font-size: 12px;
}
.tm-pagination .page-numbers:hover { border-color: #c9d9ff; color: var(--tm-primary); }
.tm-pagination .page-numbers.current { background: var(--tm-primary); border-color: var(--tm-primary); color: #fff; font-weight: 700; }
.tm-pagination .page-numbers.dots { border: none; background: none; }

/* 未登录卡片 */
.tm-mc--guest { display: flex; justify-content: center; padding: 12px 0 40px; }
.tm-guest-card {
	position: relative;
	width: 100%;
	max-width: 560px;
	padding: 40px 36px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: 8px;
	box-shadow: 0 30px 70px -40px rgba(15, 23, 42, .45);
	overflow: hidden;
}
.tm-guest-card__glow {
	position: absolute; left: 50%; top: -140px; transform: translateX(-50%);
	width: 420px; height: 280px;
	background: radial-gradient(circle, color-mix(in srgb, var(--tm-primary) 22%, transparent), transparent 65%);
	pointer-events: none;
}
.tm-guest-card__badge {
	width: 62px; height: 62px; margin: 0 auto 18px;
	display: grid; place-items: center;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--tm-primary), color-mix(in srgb, var(--tm-primary) 60%, var(--tm-accent)));
	color: #fff;
	box-shadow: 0 18px 34px -18px color-mix(in srgb, var(--tm-primary) 80%, transparent);
}
.tm-guest-card h2 { font-size: 20px; color: var(--tm-ink); letter-spacing: -.01em; }
.tm-guest-card > p { margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--tm-muted); }
.tm-guest-card__actions { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.tm-guest-card__list {
	list-style: none; margin: 26px 0 0; padding: 18px 0 0;
	border-top: 1px dashed #f0f0f0;
	display: flex; flex-direction: column; gap: 9px;
	text-align: left;
}
.tm-guest-card__list li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #999999; }
.tm-guest-card__list .tm-svg { color: var(--tm-primary); }

/* Toast */
.tm-toast {
	position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
	z-index: 100060;
	display: flex; align-items: center; gap: 8px;
	padding: 11px 18px;
	background: rgba(15, 23, 42, .94);
	color: #fff;
	border-radius: 4px;
	font-size: 12.5px;
	box-shadow: 0 20px 40px -18px rgba(15, 23, 42, .6);
	animation: tm-toast-in .22s ease;
}
.tm-toast.is-error { background: rgba(185, 28, 28, .95); }

@keyframes tm-toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 会员中心页面在常见主题下的宽度自适应 */
.tm-member-page .entry-content,
.tm-member-page .post-content,
.tm-member-page .entry-content-wrap,
.tm-member-page .post-content-wrap,
.tm-member-page .wp-block-post-content,
.tm-member-page .site-main,
.tm-member-page .content-area,
.tm-member-page .site-content { max-width: none !important; }

/*
 * 会员中心按视口自适应，不再被主题正文窄列（常见 680~760px）锁死。
 * 1160px 上限 + 两侧至少 24px 留白；窄屏保持跟随主题。
 */
@media (min-width: 782px) and (max-width: 1207px) {
	body.tm-member-page .tm-mc {
		width: calc(100vw - 48px);
		max-width: none;
		margin-left: calc(50% - 50vw + 24px);
		margin-right: calc(50% - 50vw + 24px);
	}

	/* 页面标题跟随会员中心同宽，避免标题窄窄地居中在上方 */
	body.tm-member-page .entry-header,
	body.tm-member-page .page-header {
		max-width: none;
		margin-left: calc(50% - 50vw + 24px);
		margin-right: calc(50% - 50vw + 24px);
	}
}

@media (min-width: 1208px) {
	body.tm-member-page .tm-mc {
		width: 1160px;
		max-width: none;
		margin-left: calc(50% - 580px);
		margin-right: 0;
	}

	body.tm-member-page .entry-header,
	body.tm-member-page .page-header {
		width: 1160px;
		max-width: none;
		margin-left: calc(50% - 580px);
		margin-right: 0;
	}
}

/* 独立页面模板：宽度由插件容器决定，不再做视口突破 */
.tm-member-main { display: block; }

.tm-member-shell {
	width: min(1160px, calc(100% - 48px));
	margin: 0 auto;
	padding: 36px 0 64px;
}

body.tm-member-standalone .tm-mc {
	width: auto;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* 响应式 */
@media (max-width: 620px) {
	.tm-mc-body { grid-template-columns: minmax(0, 1fr); }
	.tm-mc-nav { flex-direction: row; overflow-x: auto; padding: 6px; width: 100%; max-width: 100%; min-width: 0; }
	.tm-mc-nav__item { white-space: nowrap; flex: none; }
	.tm-mc-nav__item em { display: none; }
	.tm-mc-wallet { padding-left: 0; border-left: none; align-items: flex-start; flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
	.tm-mc-wallet__value { font-size: 24px; }
	.tm-mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-perks { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.tm-box::before { width: 3px; }
	.tm-box__thumb { width: 50px; height: 50px; border-radius: 4px; }
	.tm-box__ext { font-size: 11px; }
	.tm-box__title { font-size: 15px; }
	.tm-box__foot { flex-direction: column; align-items: stretch; }
	.tm-box__actions { width: 100%; }
	.tm-box__actions .tm-btn { flex: 1; }
	.tm-mc-hero { padding: 20px 18px 18px; }
	.tm-mc-name { font-size: 18px; }
	.tm-mc-avatar, .tm-mc-avatar__img { width: 64px; height: 64px; border-radius: 6px; }
	.tm-mc-avatar__ring { border-radius: 8px; }
	.tm-mc-wallet { width: 100%; justify-content: space-between; }
	.tm-mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-mc-stat { padding: 10px; }
	.tm-mc-stat b { font-size: 15px; }
	.tm-form__grid { grid-template-columns: minmax(0, 1fr); }
	.tm-guest-card { padding: 30px 22px; }
	.tm-table th, .tm-table td { padding: 10px 12px; }
}

/* =====================================================================
 * 头像兜底
 * ================================================================== */
.tm-avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	border-radius: 50%;
	overflow: hidden;
	color: #fff;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	background: linear-gradient(135deg, hsl(var(--tm-av-h, 240), 72%, 60%), hsl(calc(var(--tm-av-h, 240) + 26), 70%, 46%));
	box-shadow: inset 0 -8px 18px rgba(15, 23, 42, .12);
}
.tm-avatar img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	border-radius: inherit;
	border: 0;
	box-shadow: none;
}
.tm-avatar__initial { display: block; line-height: 1; }

/* =====================================================================
 * 容器查询：窄内容列（很多主题正文只有 600~700px）也能优雅排版
 * ================================================================== */
.tm-mc { container-type: inline-size; container-name: tm-mc; }
.tm-box { container-type: inline-size; container-name: tm-box; }

@container tm-mc (max-width: 620px) {
	.tm-mc-hero__main { gap: 14px; }
	.tm-mc-wallet {
		width: 100%;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding-left: 0;
		border-left: none;
		gap: 10px;
	}
	.tm-mc-wallet__value { font-size: 26px; }
	.tm-mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-mc-body { grid-template-columns: minmax(0, 1fr); }
	.tm-mc-nav { flex-direction: row; overflow-x: auto; padding: 6px; }
	.tm-mc-nav__item { white-space: nowrap; flex: none; }
	.tm-mc-nav__item em { display: none; }
	.tm-mc-upgrade { margin-top: 10px; }
	.tm-perks { grid-template-columns: minmax(0, 1fr); }
	.tm-mc-sub { font-size: 11.5px; }
}

@container tm-mc (max-width: 520px) {
	.tm-mc-hero { padding: 20px 18px 18px; }
	.tm-mc-name { font-size: 18px; }
	.tm-mc-avatar, .tm-mc-avatar__img, .tm-mc-avatar img { width: 64px; height: 64px; border-radius: 8px; }
	.tm-mc-avatar__ring { border-radius: 8px; }
	.tm-mc-wallet__value { font-size: 22px; }
	.tm-mc-stat { padding: 10px; }
	.tm-mc-stat b { font-size: 15px; }
	.tm-mc-stat__icon { width: 28px; height: 28px; }
	.tm-panel__head { padding: 14px 16px; }
	.tm-table th, .tm-table td { padding: 10px 12px; }
	.tm-feed { padding: 2px 4px 6px; }
	.tm-guest-card { padding: 28px 20px; }
}

@container tm-box (max-width: 560px) {
	.tm-box__thumb { width: 52px; height: 52px; border-radius: 6px; }
	.tm-box__ext { font-size: 11px; }
	.tm-box__title { font-size: 15px; }
	.tm-box__foot { flex-direction: column; align-items: stretch; gap: 12px; }
	.tm-box__actions { width: 100%; }
	.tm-box__actions .tm-btn { flex: 1; }
	.tm-box__brand { margin-top: 8px; }
}

.tm-mc-side__extra { display: block; }
@container tm-mc (max-width: 620px) {
	.tm-mc-body { display: flex; flex-direction: column; gap: 16px; }
	.tm-mc-side { display: contents; }
	.tm-mc-nav { order: 1; }
	.tm-mc-content { order: 2; }
	.tm-mc-side__extra { order: 3; display: flex; flex-direction: column; gap: 12px; }
	.tm-mc-side__extra .tm-mc-upgrade, .tm-mc-side__extra .tm-mc-tip { margin-top: 0; }
}

/* 禁用态按钮 */
.tm-btn[disabled],
.tm-btn--primary[disabled] {
	background: #eef2f8;
	border-color: #e3e9f2;
	color: #bbbbbb;
	box-shadow: none;
	opacity: 1;
	cursor: not-allowed;
	transform: none;
}

/* 会员中心表格在窄容器下的取舍 */
@container tm-mc (max-width: 640px) {
	.tm-table--downloads th:nth-child(2),
	.tm-table--downloads td:nth-child(2),
	.tm-table--purchases th:nth-child(2),
	.tm-table--purchases td:nth-child(2) { display: none; }
	.tm-table th { font-size: 10.5px; }
	.tm-table td { font-size: 12px; }
	.tm-cell-res__icon { width: 30px; height: 30px; }
}

/* =====================================================================
 * 会员购买：引导、套餐、充值、订单、支付弹窗
 * ================================================================== */

/* ---------- 顶部钱包操作 ---------- */
.tm-mc-wallet__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.tm-btn--wallet {
	height: 30px;
	padding: 0 12px;
	border-radius: 4px;
	font-size: 12px;
	color: #fff;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .3);
	backdrop-filter: blur(4px);
}
.tm-btn--wallet:hover { background: rgba(255, 255, 255, .28); color: #fff; border-color: rgba(255, 255, 255, .45); }

/* ---------- 提示条 ---------- */
.tm-alert--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.tm-alert--order { align-items: center; flex-wrap: wrap; gap: 10px; }
.tm-alert--order code {
	font-size: 11.5px;
	padding: 2px 7px;
	border-radius: 6px;
	background: rgba(146, 64, 14, .08);
	color: #92400e;
}
.tm-alert--order .tm-mini-btn { margin-left: auto; }
.tm-mc-nav__item em.is-warn { background: #fff7ed; color: #c2410c; }

/* ---------- 三步引导 ---------- */
.tm-guide {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	padding: 0 18px 16px;
}
.tm-guide__step {
	display: flex;
	gap: 10px;
	padding: 13px;
	border-radius: 6px;
	background: linear-gradient(180deg, #fafafa, #f6f8ff);
	border: 1px solid #edf0f9;
}
.tm-guide__num {
	width: 24px; height: 24px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 8px;
	background: color-mix(in srgb, var(--tm-primary) 12%, #fff);
	color: var(--tm-primary);
	font-size: 12px;
	font-weight: 800;
}
.tm-guide__step b { display: block; font-size: 12.5px; color: var(--tm-ink); margin-bottom: 3px; }
.tm-guide__step em { display: block; font-style: normal; font-size: 11.5px; color: var(--tm-muted); line-height: 1.6; }
.tm-guide__actions { display: flex; gap: 10px; padding: 0 18px 18px; flex-wrap: wrap; }
.tm-guide__actions .tm-btn { height: 38px; padding: 0 18px; }

/* ---------- 会员套餐 ---------- */
.tm-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(214px, 1fr));
	gap: 14px;
	padding: 0 18px 18px;
}

.tm-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 16px 16px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--tm-line);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .03), 0 18px 32px -30px rgba(15, 23, 42, .45);
	overflow: hidden;
}

.tm-plan::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--plan-color), color-mix(in srgb, var(--plan-color) 30%, #fff));
	opacity: .9;
}

.tm-plan.is-current {
	border-color: color-mix(in srgb, var(--plan-color) 42%, #fff);
	background: linear-gradient(180deg, color-mix(in srgb, var(--plan-color) 5%, #fff), #fff 46%);
}

.tm-plan.is-disabled { opacity: .62; }

.tm-plan__ribbon {
	position: absolute;
	top: 12px; right: 12px;
	padding: 3px 8px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	color: color-mix(in srgb, var(--plan-color) 80%, #000 6%);
	background: color-mix(in srgb, var(--plan-color) 12%, #fff);
}

.tm-plan__head { display: flex; align-items: center; gap: 10px; }
.tm-plan__icon {
	width: 38px; height: 38px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	color: #fff;
	background: linear-gradient(135deg, color-mix(in srgb, var(--plan-color) 78%, #fff), var(--plan-color));
	box-shadow: 0 10px 18px -12px color-mix(in srgb, var(--plan-color) 70%, transparent);
}
.tm-plan__name b { display: block; font-size: 14px; color: var(--tm-ink); letter-spacing: -.01em; }
.tm-plan__name em { display: block; font-style: normal; font-size: 11px; color: var(--tm-muted); margin-top: 2px; }

.tm-plan__price { display: flex; align-items: baseline; gap: 6px; }
.tm-plan__price strong { font-size: 27px; font-weight: 800; letter-spacing: -.03em; color: var(--tm-ink); line-height: 1; }
.tm-plan__price span { font-size: 11.5px; color: var(--tm-muted); }

.tm-plan__perks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.tm-plan__perks li {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 11.5px;
	color: #666666;
	line-height: 1.55;
}
.tm-plan__perks li .tm-svg { color: var(--tm-primary); margin-top: 1px; }
.tm-plan .tm-btn { margin-top: auto; height: 38px; }

/* ---------- 充值套餐 ---------- */
.tm-pkgs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	padding: 0 18px 18px;
}

/* 宽容器（会员中心无侧栏或整页展示）时一排 4 个 */
@container tm-mc (min-width: 960px) {
	.tm-pkgs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.tm-pkg {
	position: relative;
	padding: 16px 14px 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--tm-line);
	text-align: center;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tm-pkg:hover { border-color: color-mix(in srgb, var(--tm-primary) 40%, #fff); box-shadow: 0 16px 30px -24px rgba(15, 23, 42, .5); transform: translateY(-2px); }
.tm-pkg.has-bonus { border-color: color-mix(in srgb, var(--tm-primary) 22%, #fff); background: linear-gradient(180deg, color-mix(in srgb, var(--tm-primary) 4%, #fff), #fff 55%); }

.tm-pkg__badge {
	position: absolute;
	top: -9px; left: 50%;
	transform: translateX(-50%);
	padding: 2px 9px;
	border-radius: 8px;
	background: linear-gradient(135deg, #fb923c, #f97316);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 6px 14px -8px rgba(249, 115, 22, .9);
}

.tm-pkg__points { display: flex; align-items: baseline; justify-content: center; gap: 3px; }
.tm-pkg__points strong { font-size: 26px; font-weight: 800; letter-spacing: -.03em; color: var(--tm-ink); line-height: 1.1; }
.tm-pkg__points span { font-size: 11px; color: var(--tm-muted); }
.tm-pkg__meta { display: block; margin-top: 3px; font-style: normal; font-size: 10.5px; color: var(--tm-muted); }
.tm-pkg__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eef1f8; }
.tm-pkg__foot b { font-size: 15px; color: var(--tm-primary); letter-spacing: -.02em; }
.tm-pkg__foot .tm-btn { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 8px; }

/* ---------- 说明列表 ---------- */
.tm-notes { list-style: none; margin: 0; padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 9px; }
.tm-notes li { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; color: #666666; line-height: 1.65; }
.tm-notes li .tm-svg { color: var(--tm-primary); margin-top: 2px; }

/* ---------- 订单 ---------- */
.tm-status {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}
.tm-status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tm-status--warn { background: #fff7ed; color: #c2410c; }
.tm-status--ok { background: #e8f6f0; color: #0b7a5a; }
.tm-status--muted { background: #f5f5f5; color: #999999; }

.tm-order-cell { display: flex; align-items: center; gap: 10px; }
.tm-order-cell__icon {
	width: 30px; height: 30px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	color: #fff;
	background: linear-gradient(135deg, #ff5e52, #e0483e);
}
.tm-order-cell__icon--level { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tm-order-cell__icon--points { background: linear-gradient(135deg, #7aa2ff, #ff5e52); }
.tm-order-cell__body { min-width: 0; }
.tm-order-cell b { display: block; font-size: 12.5px; color: var(--tm-ink); font-weight: 600; line-height: 1.45; }
.tm-order-cell__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.tm-order-cell__meta em { font-style: normal; font-size: 10.5px; color: var(--tm-muted); }
.tm-order-no {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 5px;
	background: #f5f5f5;
	color: #999999;
	font-size: 10px;
	letter-spacing: .01em;
	white-space: nowrap;
}
.tm-order-pay { display: block; font-size: 12px; color: #444444; }
.tm-order-time { display: block; margin-top: 2px; font-style: normal; font-size: 10.5px; color: var(--tm-muted); white-space: nowrap; }

/* 行内操作按钮（订单表格） */
.tm-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }

.tm-mini-btn--primary {
	background: linear-gradient(135deg, #ff5e52, #ff5e52);
	color: #fff;
	border: 1px solid transparent;
	box-shadow: 0 8px 16px -10px rgba(79, 70, 229, .9);
}
.tm-mini-btn--primary:hover { color: #fff; }

.tm-hint--soft {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0 18px 18px;
	padding: 10px 12px;
	border-radius: 4px;
	background: #f6f8ff;
	border: 1px solid #e6eaff;
	font-size: 11.5px;
	color: #666666;
	line-height: 1.7;
}
.tm-hint--soft .tm-svg { color: var(--tm-primary); margin-top: 2px; }

/* ---------- 支付弹窗 ---------- */
.tm-pay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.tm-pay.is-open { display: flex; }

.tm-pay__mask {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .52);
	backdrop-filter: blur(6px);
	animation: tm-pay-fade .2s ease;
}

.tm-pay__dialog {
	position: relative;
	width: min(430px, 100%);
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 26px 24px 22px;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 40px 90px -40px rgba(15, 23, 42, .6);
	animation: tm-pay-pop .26s cubic-bezier(.2, .9, .3, 1.1);
	font-size: 13px;
	color: var(--tm-body);
}
.tm-pay__dialog::-webkit-scrollbar { width: 4px; }
.tm-pay__dialog::-webkit-scrollbar-thumb { background: #dfe4ef; border-radius: 4px; }

.tm-pay__close {
	position: absolute;
	top: 14px; right: 14px;
	width: 30px; height: 30px;
	display: grid; place-items: center;
	border: 1px solid transparent;
	border-radius: 4px;
	background: #f5f5f5;
	color: #999999;
	cursor: pointer;
	transition: all .18s ease;
	z-index: 2;
}
.tm-pay__close:hover { background: #eef1f8; color: #0f172a; }

.tm-pay__step[hidden] { display: none; }

.tm-pay__head { margin-bottom: 18px; padding-right: 26px; }
.tm-pay__head--center { text-align: center; padding-right: 0; padding-top: 6px; }
.tm-pay__eyebrow {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--tm-primary);
}
.tm-pay__head h3 { font-size: 18px; font-weight: 700; color: var(--tm-ink); letter-spacing: -.02em; line-height: 1.3; }
.tm-pay__head p { margin-top: 5px; font-size: 11.5px; color: var(--tm-muted); line-height: 1.6; }

.tm-pay__amount {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 16px;
	margin-bottom: 18px;
	border-radius: 6px;
	background: linear-gradient(135deg, #f7f8ff, #f1f4ff);
	border: 1px solid #e7eaff;
}
.tm-pay__amount span { font-size: 12px; color: #666666; }
.tm-pay__amount strong { font-size: 24px; font-weight: 800; color: var(--tm-primary); letter-spacing: -.03em; line-height: 1; }

.tm-pay__label { margin-bottom: 9px; font-size: 11.5px; font-weight: 600; color: #444444; }

.tm-pay__methods { display: flex; flex-direction: column; gap: 9px; margin-bottom: 18px; }

.tm-pay-method {
	display: flex;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 11px 13px;
	border: 1.5px solid var(--tm-line);
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	transition: all .18s ease;
	font-family: inherit;
}
.tm-pay-method:hover { border-color: #cdd5e6; background: #fafafa; }
.tm-pay-method.is-active {
	border-color: color-mix(in srgb, var(--tm-primary) 55%, #fff);
	background: color-mix(in srgb, var(--tm-primary) 4%, #fff);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 10%, transparent);
}

.tm-pay-method__icon {
	width: 38px; height: 38px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 4px;
	color: #fff;
	background: linear-gradient(135deg, color-mix(in srgb, var(--pay, #ff5e52) 78%, #fff), var(--pay, #ff5e52));
	box-shadow: 0 8px 16px -12px var(--pay, #ff5e52);
}

.tm-pay-method__body { flex: 1; min-width: 0; }
.tm-pay-method__body b { display: block; font-size: 13px; color: var(--tm-ink); font-weight: 600; }
.tm-pay-method__body em {
	display: block;
	margin-top: 2px;
	font-style: normal;
	font-size: 11px;
	color: var(--tm-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tm-pay-method__check {
	width: 20px; height: 20px;
	flex: none;
	display: grid; place-items: center;
	border-radius: 50%;
	border: 1.5px solid #dbe2ef;
	color: transparent;
	transition: all .18s ease;
}
.tm-pay-method.is-active .tm-pay-method__check {
	background: var(--tm-primary);
	border-color: var(--tm-primary);
	color: #fff;
}

.tm-pay__submit { width: 100%; height: 44px; font-size: 13.5px; }
.tm-pay__submit[disabled] { opacity: .6; pointer-events: none; }

.tm-pay__note {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: 12px;
	font-size: 11px;
	color: #999999;
	line-height: 1.65;
}
.tm-pay__note .tm-svg { color: #bbbbbb; margin-top: 2px; }

/* 二维码 */
.tm-qr { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 16px; }

.tm-qr__frame {
	position: relative;
	width: 210px; height: 210px;
	padding: 12px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid var(--tm-line);
	box-shadow: 0 18px 36px -30px rgba(15, 23, 42, .6);
	display: grid;
	place-items: center;
	overflow: hidden;
}
.tm-qr__frame img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }

.tm-qr__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px;
	text-align: center;
	color: #bbbbbb;
}
.tm-qr__empty .tm-svg { color: #dddddd; }
.tm-qr__empty b { font-size: 12.5px; color: #999999; font-weight: 600; }
.tm-qr__empty span { font-size: 10.5px; }

.tm-qr__badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	border-radius: 8px;
	background: #fff1f0;
	color: #e0483e;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .02em;
	white-space: nowrap;
}

.tm-qr__amount { font-size: 22px; font-weight: 800; color: var(--tm-ink); letter-spacing: -.03em; }
.tm-qr__account { font-size: 11.5px; color: var(--tm-muted); text-align: center; word-break: break-all; }

.tm-pay__order {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border-radius: 4px;
	background: #f7f9fd;
	border: 1px dashed #dfe5f0;
	font-size: 11px;
	color: var(--tm-muted);
}
.tm-pay__order code { font-size: 11.5px; color: #444444; font-weight: 600; letter-spacing: .02em; }
.tm-pay__order .tm-code__copy { margin-left: auto; }

.tm-pay__tips {
	margin: 14px 0 0;
	padding: 0 0 0 18px;
	display: flex;
	flex-direction: column;
	gap: 5px;
	font-size: 11px;
	color: #999999;
	line-height: 1.6;
}
.tm-pay__tips li::marker { color: #9db8ff; font-weight: 700; }

.tm-pay__status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 14px;
	padding: 9px;
	border-radius: 4px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	font-size: 11.5px;
	color: #b45309;
	font-weight: 600;
}
.tm-pay__status i {
	width: 6px; height: 6px;
	border-radius: 50%;
	background: #f59e0b;
	animation: tm-pulse 1.6s infinite;
}
.tm-pay__status.is-ok { background: #edf8f3; border-color: #cdeade; color: #0b7a5a; }
.tm-pay__status.is-ok i { background: #0f9d72; animation: none; }
.tm-pay__status.is-off { background: #fafafa; border-color: #e2e8f0; color: #999999; }
.tm-pay__status.is-off i { background: #bbbbbb; animation: none; }

.tm-pay__actions { display: flex; gap: 10px; margin-top: 14px; }
.tm-pay__actions .tm-btn { flex: 1; height: 40px; }

/* 完成 */
.tm-pay__done { text-align: center; padding: 18px 6px 10px; }
.tm-pay__done-icon {
	width: 64px; height: 64px;
	margin: 0 auto 14px;
	display: grid; place-items: center;
	border-radius: 50%;
	color: #fff;
	background: linear-gradient(135deg, #34d399, #059669);
	box-shadow: 0 18px 34px -18px rgba(5, 150, 105, .8);
	animation: tm-pop-in .35s ease;
}
.tm-pay__done h3 { font-size: 17px; color: var(--tm-ink); }
.tm-pay__done p { margin: 6px 0 18px; font-size: 12px; color: var(--tm-muted); line-height: 1.7; }

@keyframes tm-pay-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tm-pay-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes tm-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); }
	50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); }
}
@keyframes tm-pop-in { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- 容器查询适配 ---------- */
@container tm-mc (max-width: 620px) {
	.tm-guide { grid-template-columns: minmax(0, 1fr); }
	.tm-plans { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
}

@container tm-mc (max-width: 640px) {
	.tm-table--orders th:nth-child(3),
	.tm-table--orders td:nth-child(3) { display: none; }
	.tm-table--orders th, .tm-table--orders td { padding-left: 12px; padding-right: 12px; }
	.tm-guide, .tm-plans, .tm-pkgs, .tm-notes { padding-left: 14px; padding-right: 14px; }
	.tm-guide__actions { padding: 0 14px 16px; }
	.tm-hint--soft { margin-left: 14px; margin-right: 14px; }
}

@container tm-mc (max-width: 460px) {
	.tm-plans { grid-template-columns: minmax(0, 1fr); }
	.tm-pkgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-pkg__points strong { font-size: 22px; }
	.tm-alert--order .tm-mini-btn { margin-left: 0; }
}

@media (max-width: 480px) {
	.tm-pay { padding: 0; }
	.tm-pay__dialog {
		width: 100%;
		max-height: 92vh;
		padding: 24px 18px 20px;
		border-radius: 8px 20px 0 0;
		margin-top: auto;
	}
	.tm-pay.is-open { align-items: flex-end; }
	.tm-qr__frame { width: 176px; height: 176px; }
}

/* =====================================================================
 * 0.2.0 会员中心视觉升级
 * ================================================================== */
.tm-mc { font-size: 13.5px; }

/* ---------- 头部 ---------- */
.tm-mc-hero {
	padding: 32px 34px 54px;
	border-radius: 8px;
	background:
		radial-gradient(86% 128% at 0% -32%, color-mix(in srgb, var(--tm-primary) 52%, transparent) 0%, transparent 60%),
		radial-gradient(66% 100% at 100% 132%, color-mix(in srgb, var(--tm-accent) 16%, transparent) 0%, transparent 62%),
		linear-gradient(150deg, #0a1122 0%, #0d1a2e 55%, #12294a 100%);
	box-shadow: 0 34px 70px -40px rgba(9, 14, 28, .6);
}

.tm-mc-hero__main { gap: 20px; align-items: center; }

.tm-mc-avatar, .tm-mc-avatar__img { width: 88px; height: 88px; }
.tm-mc-avatar__img { border-radius: 8px; border-width: 2px; }
.tm-mc-avatar .tm-avatar { border-radius: 8px; }
.tm-mc-avatar__ring { border-radius: 8px; inset: -5px; border-color: rgba(255, 255, 255, .22); }

.tm-mc-name { font-size: 23px; letter-spacing: -.02em; }
.tm-mc-sub { margin-top: 9px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }

.tm-mc-wallet {
	align-items: flex-start;
	gap: 4px;
	padding: 13px 17px;
	min-width: 186px;
	border-left: none;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 6px;
	background: rgba(255, 255, 255, .13);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18);
	backdrop-filter: blur(12px);
}
.tm-mc-wallet__label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.tm-mc-wallet__value { font-size: 31px; margin-top: 2px; }
.tm-mc-wallet__actions { width: 100%; margin-top: 8px; gap: 7px; }

.tm-btn--wallet, .tm-btn--signin {
	height: 29px;
	padding: 0 11px;
	border-radius: 4px;
	font-size: 11.5px;
	font-weight: 600;
	background: rgba(255, 255, 255, .16);
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
}
.tm-btn--wallet:hover, .tm-btn--signin:hover { background: rgba(255, 255, 255, .3); color: #fff; }

/* ---------- 数据卡片 ---------- */
.tm-mc-stats {
	position: relative;
	z-index: 3;
	gap: 12px;
	margin: -36px 24px 0;
}
.tm-mc-stat {
	gap: 12px;
	padding: 15px 17px;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #f0f0f0;
	box-shadow: 0 20px 36px -30px rgba(15, 23, 42, .6), 0 1px 2px rgba(15, 23, 42, .03);
	backdrop-filter: none;
}
.tm-mc-stat__icon {
	width: 40px; height: 40px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--tm-primary) 9%, #fff);
	color: var(--tm-primary);
}
.tm-mc-stat:nth-child(2) .tm-mc-stat__icon,
.tm-mc-stat:nth-child(3) .tm-mc-stat__icon,
.tm-mc-stat:nth-child(4) .tm-mc-stat__icon { background: color-mix(in srgb, var(--tm-primary) 9%, #fff); color: var(--tm-primary); }
.tm-mc-stat b { font-size: 19px; color: var(--tm-ink); letter-spacing: -.02em; }
.tm-mc-stat em { font-size: 11px; color: var(--tm-muted); }

/* ---------- 侧栏 ---------- */
.tm-mc-side { position: sticky; top: 24px; }

.tm-mc-nav {
	gap: 2px;
	padding: 10px;
	border-radius: 6px;
	border-color: #f0f0f0;
	box-shadow: 0 22px 44px -38px rgba(15, 23, 42, .6);
}
.tm-mc-nav__item {
	position: relative;
	gap: 10px;
	padding: 11px 13px;
	border-radius: 4px;
	font-size: 13px;
}
.tm-mc-nav__item .tm-svg { color: #bbbbbb; transition: color .16s ease; }
.tm-mc-nav__item:hover .tm-svg { color: var(--tm-ink); }
.tm-mc-nav__item.is-active {
	background: color-mix(in srgb, var(--tm-primary) 8%, #fff);
	color: var(--tm-primary);
	font-weight: 700;
}
.tm-mc-nav__item.is-active .tm-svg { color: var(--tm-primary); }
.tm-mc-nav__item.is-active::before {
	content: "";
	position: absolute;
	left: -10px;
	top: 50%;
	width: 3px;
	height: 19px;
	transform: translateY(-50%);
	border-radius: 0 4px 4px 0;
	background: linear-gradient(180deg, var(--tm-primary), var(--tm-accent));
}
.tm-mc-nav__item em { font-size: 10.5px; padding: 1px 7px; }

.tm-mc-upgrade {
	margin-top: 12px;
	padding: 17px 17px;
	border-radius: 6px;
	border-color: #f0f0f0;
	box-shadow: 0 22px 44px -38px rgba(15, 23, 42, .6);
}
.tm-mc-upgrade__bar { height: 7px; margin: 11px 0; }
.tm-mc-tip { border-radius: 6px; padding: 15px 16px; }

/* ---------- 面板 ---------- */
.tm-mc-body { grid-template-columns: 240px minmax(0, 1fr); gap: 20px; margin-top: 20px; }

.tm-panel {
	border-radius: 6px;
	border-color: #f0f0f0;
	box-shadow: 0 22px 46px -40px rgba(15, 23, 42, .55), 0 1px 2px rgba(15, 23, 42, .03);
	margin-bottom: 16px;
}
.tm-panel__head { padding: 17px 22px; border-bottom-color: #f0f0f0; }
.tm-panel__head h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 15px;
	letter-spacing: -.01em;
}
.tm-panel__head h3::before {
	content: "";
	width: 4px;
	height: 15px;
	flex: none;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--tm-primary), var(--tm-accent));
}
.tm-panel__hint { font-size: 11.5px; }

.tm-perks { padding: 18px 22px 22px; gap: 12px; }
.tm-perk {
	padding: 15px 16px;
	border-radius: 6px;
	background: #fafafa;
	border-color: #f0f0f0;
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.tm-perk:hover { border-color: color-mix(in srgb, var(--tm-primary) 22%, #fff); box-shadow: 0 16px 30px -28px rgba(15, 23, 42, .6); transform: translateY(-1px); }
.tm-perk__icon { width: 40px; height: 40px; border-radius: 4px; }
.tm-perk b { font-size: 13px; }
.tm-perk p { font-size: 11.5px; }

.tm-feed { padding: 8px 10px 10px; }
.tm-feed__item { padding: 12px 13px; border-radius: 4px; }
.tm-feed__icon { width: 38px; height: 38px; border-radius: 4px; }
.tm-feed__body b { font-size: 13px; }
.tm-feed__body span { font-size: 11px; color: var(--tm-muted); }
.tm-feed__value { font-size: 13.5px; font-weight: 700; }

.tm-table th { font-size: 11px; letter-spacing: .04em; }
.tm-table td { font-size: 12.5px; }

.tm-empty { padding: 44px 20px; }

.tm-alert { border-radius: 6px; }

/* =====================================================================
 * 登录 / 注册
 * ================================================================== */
.tm-mc--guest { margin: 8px auto 40px; }

.tm-auth {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	max-width: 940px;
	margin: 0 auto;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e7ebf4;
	box-shadow: 0 40px 90px -60px rgba(15, 23, 42, .75), 0 1px 2px rgba(15, 23, 42, .04);
}

.tm-auth__radio {
	position: absolute;
	width: 1px; height: 1px;
	opacity: 0;
	pointer-events: none;
}

.tm-auth__intro {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 44px 38px 34px;
	color: #fff;
	overflow: hidden;
	isolation: isolate;
	background:
		radial-gradient(90% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 58%),
		linear-gradient(150deg, var(--tm-primary) 0%, #ff7d70 100%);
}
.tm-auth__glow {
	position: absolute;
	right: -70px; bottom: -90px;
	width: 280px; height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 68%);
	pointer-events: none;
	z-index: -1;
}

.tm-auth__brand {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .82);
}
.tm-auth__title {
	margin: 22px 0 0;
	font-size: 31px;
	line-height: 1.3;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff;
}
.tm-auth__desc {
	margin: 14px 0 0;
	font-size: 12.8px;
	line-height: 1.8;
	color: rgba(255, 255, 255, .8);
}
.tm-auth__perks {
	list-style: none;
	margin: 28px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 11px;
	font-size: 12.5px;
	color: rgba(255, 255, 255, .9);
}
.tm-auth__perks li { display: flex; align-items: center; gap: 9px; }
.tm-auth__perks .tm-svg {
	width: 19px; height: 19px;
	padding: 3px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
	color: #fff;
	flex: none;
}
.tm-auth__foot {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 30px;
	font-size: 11px;
	color: rgba(255, 255, 255, .62);
}

.tm-auth__panel { padding: 34px 38px 36px; }

.tm-auth__tabs {
	display: flex;
	gap: 5px;
	padding: 4px;
	margin-bottom: 22px;
	border-radius: 6px;
	background: #f5f5f5;
}
.tm-auth__tab {
	flex: 1;
	padding: 9px 0;
	border-radius: 4px;
	text-align: center;
	font-size: 13.5px;
	font-weight: 600;
	color: #999999;
	cursor: pointer;
	transition: all .18s ease;
	user-select: none;
}
.tm-auth__tab:hover { color: var(--tm-ink); }
.tm-auth #tm-auth-login:checked ~ .tm-auth__panel .tm-auth__tab[for="tm-auth-login"],
.tm-auth #tm-auth-register:checked ~ .tm-auth__panel .tm-auth__tab[for="tm-auth-register"] {
	background: #fff;
	color: var(--tm-ink);
	box-shadow: 0 6px 14px -10px rgba(15, 23, 42, .6);
}

.tm-auth__panes { position: relative; }
.tm-auth__pane { display: none; flex-direction: column; gap: 14px; }
.tm-auth #tm-auth-login:checked ~ .tm-auth__panel .tm-auth__pane--login { display: flex; }
.tm-auth #tm-auth-register:checked ~ .tm-auth__panel .tm-auth__pane--register { display: flex; }


.tm-auth__field { display: flex; flex-direction: column; gap: 7px; }
.tm-auth__field > span {
	font-size: 12.5px;
	font-weight: 600;
	color: #444444;
}
.tm-auth__field > span i {
	margin-left: 4px;
	font-style: normal;
	font-size: 11px;
	font-weight: 500;
	color: #bbbbbb;
}
.tm-auth__field input {
	width: 100%;
	height: 44px;
	padding: 0 13px;
	border: 1px solid #dfe4ef;
	border-radius: 4px;
	background: #fafafa;
	color: var(--tm-ink);
	font-size: 13.5px;
	font-family: inherit;
	transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.tm-auth__field input::placeholder { color: #a9b3c4; }
.tm-auth__field input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--tm-primary) 55%, #fff);
	background: #fff;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tm-primary) 12%, transparent);
}

.tm-auth__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.tm-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
}
.tm-auth__check { display: inline-flex; align-items: center; gap: 7px; color: #666666; cursor: pointer; }
.tm-auth__check input { width: 14px; height: 14px; accent-color: var(--tm-primary); }
.tm-auth__link { color: var(--tm-primary); font-weight: 600; }
.tm-auth__link:hover { text-decoration: underline; }

.tm-auth__submit { height: 46px; margin-top: 4px; font-size: 14px; }

.tm-auth__note {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	margin: 0;
	padding: 10px 12px;
	border-radius: 4px;
	background: #f5f8ff;
	border: 1px solid #e8eeff;
	font-size: 11.5px;
	line-height: 1.65;
	color: #666666;
}
.tm-auth__note .tm-svg { color: var(--tm-primary); margin-top: 2px; flex: none; }

.tm-auth__hp {
	position: absolute;
	left: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
}

.tm-auth__alert { margin-bottom: 16px; }
.tm-auth__closed-note {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: -6px 0 16px;
	padding: 8px 11px;
	border-radius: 4px;
	background: #fafafa;
	border: 1px solid #e9eef6;
	font-size: 11.5px;
	color: #999999;
}
.tm-auth__closed-note .tm-svg { color: #bbbbbb; flex: none; }

/* ---------- 容器适配 ---------- */
@container tm-mc (max-width: 620px) {
	.tm-auth { grid-template-columns: minmax(0, 1fr); }
	.tm-auth__intro { padding: 32px 28px 28px; }
	.tm-auth__title { font-size: 24px; margin-top: 14px; }
	.tm-auth__desc { margin-top: 10px; }
	.tm-auth__perks { display: none; }
	.tm-auth__foot { padding-top: 18px; }
	.tm-auth__panel { padding: 26px 28px 30px; }
}

@container tm-mc (max-width: 620px) {
	.tm-mc-hero { padding: 26px 22px 46px; border-radius: 8px; }
	.tm-mc-stats { margin: -30px 14px 0; }
	.tm-mc-side { position: static; }
}

@container tm-mc (max-width: 620px) {
	.tm-mc-hero__main { align-items: flex-start; }
	.tm-mc-wallet {
		width: 100%;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 5px;
	}
	.tm-mc-wallet__actions { width: 100%; }
	.tm-mc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tm-mc-body { grid-template-columns: minmax(0, 1fr); }
	.tm-mc-nav { flex-direction: row; overflow-x: auto; }
	.tm-mc-nav__item { white-space: nowrap; flex: none; }
	.tm-mc-nav__item.is-active::before { display: none; }
	.tm-mc-nav__item em { display: none; }
}

@container tm-mc (max-width: 560px) {
	.tm-mc-hero { padding: 22px 18px 40px; border-radius: 8px; }
	.tm-mc-avatar, .tm-mc-avatar__img { width: 66px; height: 66px; border-radius: 8px; }
	.tm-mc-avatar .tm-avatar { border-radius: 8px; }
	.tm-mc-avatar__ring { border-radius: 8px; }
	.tm-mc-name { font-size: 19px; }
	.tm-mc-stats { margin: -28px 10px 0; gap: 8px; }
	.tm-mc-stat { padding: 12px; gap: 9px; border-radius: 6px; }
	.tm-mc-stat__icon { width: 32px; height: 32px; border-radius: 4px; }
	.tm-mc-stat b { font-size: 15.5px; }
	.tm-mc-stat em { font-size: 10px; }
	.tm-panel__head { padding: 14px 16px; }
	.tm-perks { padding: 14px 16px 16px; grid-template-columns: minmax(0, 1fr); }
	.tm-auth { border-radius: 8px; }
	.tm-auth__intro { padding: 26px 20px 22px; }
	.tm-auth__title { font-size: 21px; }
	.tm-auth__panel { padding: 22px 20px 26px; }
	.tm-auth__grid { grid-template-columns: minmax(0, 1fr); }
}

/* 提取码提示（不直接展示提取码本身） */
.tm-box__codehint {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 10px 0 0;
	font-size: 11px;
	line-height: 1.6;
	color: #999999;
}
.tm-box__codehint .tm-svg { color: #bbbbbb; flex: none; }
.tm-mc-upgrade p { word-break: keep-all; }

/* 窄容器细节 */
@container tm-mc (max-width: 620px) {
	.tm-mc-nav { scrollbar-width: none; -ms-overflow-style: none; }
	.tm-mc-nav::-webkit-scrollbar { display: none; }
}

@container tm-mc (max-width: 560px) {
	.tm-feed__item .tm-mini-btn {
		font-size: 0;
		padding: 7px 8px;
		gap: 0;
	}
	.tm-feed__item .tm-mini-btn .tm-svg { width: 15px; height: 15px; }
}

@container tm-mc (max-width: 560px) {
	.tm-mc-wallet__label { white-space: nowrap; letter-spacing: .04em; }
}

/* =====================================================================
 * 浅色扁平适配（对应 xiu 等博客主题：白卡 + 1px 细线 + 小圆角 + 无阴影）
 * ================================================================== */

/* 头部：白卡，不用深色渐变 */
.tm-mc-hero {
	padding: 22px 22px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: #fff;
	color: var(--tm-ink);
	box-shadow: none;
}
.tm-mc-hero__deco { display: none; }

.tm-mc-avatar__img {
	border-radius: 50%;
	border: 1px solid var(--tm-line);
	box-shadow: none;
}
.tm-mc-avatar .tm-avatar {
	border-radius: 50%;
	background: color-mix(in srgb, var(--tm-primary) 10%, #fff);
	color: var(--tm-primary);
	box-shadow: none;
}
.tm-mc-avatar__ring { display: none; }

.tm-mc-name { color: var(--tm-ink); font-size: 19px; }
.tm-mc .tm-level-badge {
	background: color-mix(in srgb, var(--tm-primary) 10%, #fff) !important;
	border-color: transparent !important;
	color: var(--tm-primary) !important;
	backdrop-filter: none;
}
.tm-mc-hero .tm-chip { background: var(--tm-soft); color: var(--tm-muted); }
.tm-mc-sub { margin-top: 7px; font-size: 12px; color: var(--tm-muted); }

.tm-mc-wallet {
	padding: 10px 14px;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	background: var(--tm-soft);
	box-shadow: none;
	backdrop-filter: none;
}
.tm-mc-wallet__label { color: var(--tm-muted); }
.tm-mc-wallet__value { color: var(--tm-primary); font-size: 26px; }
.tm-btn--wallet, .tm-btn--signin {
	background: #fff;
	border: 1px solid var(--tm-line);
	color: var(--tm-body);
}
.tm-btn--wallet:hover, .tm-btn--signin:hover {
	background: #fff;
	border-color: var(--tm-primary);
	color: var(--tm-primary);
}

/* 数据卡：独立白卡，不再叠在头部上 */
.tm-mc-stats { margin: 12px 0 0; gap: 10px; }
.tm-mc-stat {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: none;
	backdrop-filter: none;
}
.tm-mc-stat__icon {
	background: color-mix(in srgb, var(--tm-primary) 10%, #fff);
	color: var(--tm-primary);
	border-radius: var(--tm-radius-sm);
}
.tm-mc-stat b { color: var(--tm-ink); }
.tm-mc-stat em { color: var(--tm-muted); }

/* 侧栏与内容面板 */
.tm-mc-nav {
	background: #fff;
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: none;
}
.tm-mc-nav__item { border-radius: var(--tm-radius-sm); color: var(--tm-body); }
.tm-mc-nav__item:hover { background: var(--tm-soft); color: var(--tm-primary); }
.tm-mc-nav__item.is-active {
	background: color-mix(in srgb, var(--tm-primary) 8%, #fff);
	color: var(--tm-primary);
}
.tm-mc-nav__item.is-active::before {
	width: 2px;
	background: var(--tm-primary);
}

.tm-panel {
	border: 1px solid var(--tm-line);
	border-radius: var(--tm-radius);
	box-shadow: none;
}
.tm-panel__head { border-bottom-color: var(--tm-line); }
.tm-panel__head h3::before { background: var(--tm-primary); }

.tm-mc-upgrade, .tm-mc-tip, .tm-mc-logout {
	border-radius: var(--tm-radius);
	box-shadow: none;
}
