/* 我的 — 1:1 参考 https://wwnoxrhlpvbk4.ok.kimi.link/ */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

[data-lucide] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

html,
body {
	min-height: 100%;
	min-height: 100dvh;
	font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}

.device {
	width: 100%;
	max-width: 430px;
	margin: 0 auto;
	min-height: 100vh;
	min-height: 100dvh;
	position: relative;
}

.scroll {
	min-height: 100vh;
	min-height: 100dvh;
	overflow-y: auto;
	overflow-x: hidden;
	padding-bottom: calc(110px + env(safe-area-inset-bottom, 0));
	scrollbar-width: none;
}

.scroll::-webkit-scrollbar {
	display: none;
}

/* ── 顶栏 ── */
.mine-head {
	padding: calc(48px + env(safe-area-inset-top, 0)) 16px 8px;
	color: #fff;
}

.mine-user-bar {
	display: flex;
	align-items: center;
	gap: 12px;
}

.mine-logout-btn {
	flex-shrink: 0;
	margin-left: auto;
}

.mine-icon-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	border: none;
	cursor: pointer;
	font-family: inherit;
}

.mine-icon-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mine-user-row {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	padding-bottom: 6px;
	flex: 1;
	min-width: 0;
}

.mine-user-row.is-member {
	cursor: pointer;
}

.mine-avatar,
.mine-avatar-guest {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mine-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mine-avatar-guest svg {
	width: 22px;
	height: 22px;
	stroke: #fff;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mine-user-meta {
	min-width: 0;
	flex: 1;
}

.mine-user-name-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.mine-user-name {
	font-size: 18px;
	font-weight: 800;
	color: #fff;
	letter-spacing: 0.01em;
}

.mine-tier-badge {
	display: none;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	white-space: nowrap;
}

.mine-tier-badge.show {
	display: inline-flex;
}

.mine-tier-badge.t-silver { background: rgba(184, 184, 200, 0.25); color: #f1f5f9; }
.mine-tier-badge.t-gold { background: rgba(212, 168, 67, 0.28); color: #fef3c7; }
.mine-tier-badge.t-diamond { background: rgba(56, 189, 248, 0.28); color: #e0f2fe; }
.mine-tier-badge.t-platinum { background: rgba(148, 163, 184, 0.28); color: #f8fafc; }
.mine-tier-badge.t-black { background: rgba(212, 175, 55, 0.28); color: #fde68a; }

.mine-user-sub {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.72);
}

/* ── VIP 会员卡 ── */
.vip-wrap {
	padding: 0 16px;
	margin-top: 4px;
	position: relative;
	z-index: 2;
}

.vip-card {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 55%, #1a1208 100%);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.35);
}

.vip-card::before {
	content: "";
	position: absolute;
	inset: 0;
	background: url("../img/member/card-bg.jpg") center/cover no-repeat;
	opacity: 0.35;
	pointer-events: none;
}

.vip-card-inner {
	position: relative;
	padding: 16px 16px 14px;
}

.vip-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.vip-card-main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 1;
	text-decoration: none;
	color: inherit;
}

.vip-card-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.vip-card-icon svg {
	width: 20px;
	height: 20px;
	stroke: #fde68a;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.vip-card-title-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.vip-card-title-row h2 {
	font-size: 16px;
	font-weight: 800;
	color: #fff;
}

.vip-card-tag {
	display: none;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 700;
	background: rgba(212, 175, 55, 0.2);
	color: #fde68a;
	border: 1px solid rgba(212, 175, 55, 0.35);
}

.vip-card-tag.show {
	display: inline-flex;
}

.vip-card-desc {
	font-size: 11px;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.55;
}

.vip-card-btn {
	flex-shrink: 0;
	align-self: center;
	padding: 8px 16px;
	border-radius: 999px;
	background: linear-gradient(135deg, #fde68a, #d4af37);
	color: #1e293b;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	border: none;
	box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
	white-space: nowrap;
}

.vip-card-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.vip-stat {
	text-align: center;
}

.vip-stat .num {
	display: block;
	font-size: 16px;
	font-weight: 800;
	color: #fde68a;
	line-height: 1.2;
}

.vip-stat .lbl {
	display: block;
	margin-top: 2px;
	font-size: 10px;
	color: rgba(255, 255, 255, 0.55);
}

/* ── 内容区 ── */
.page-body {
	padding: 16px 16px 8px;
}

.block {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-radius: 18px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.8);
}

.block-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.block-hd-left {
	display: flex;
	align-items: center;
	gap: 8px;
}

.block-bar {
	width: 4px;
	height: 16px;
	border-radius: 999px;
	background: #5b8ff9;
	flex-shrink: 0;
}

.block-title {
	font-size: 16px;
	font-weight: 800;
	color: #1a1d2f;
}

.block-link {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	font-size: 12px;
	font-weight: 600;
	color: #5b8ff9;
	text-decoration: none;
}

.block-link svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2.5;
}

.ben-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.ben-item {
	background: #f8faff;
	border-radius: 12px;
	padding: 12px 8px;
	text-align: center;
	border: none;
	text-decoration: none;
	color: inherit;
	display: block;
	-webkit-tap-highlight-color: transparent;
}

.ben-item:active {
	opacity: 0.92;
}

.ben-item .ico {
	width: 48px;
	height: 48px;
	margin: 0 auto 8px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ben-item:nth-child(1) .ico {
	background: #ebf1ff;
	color: #5b8ff9;
}

.ben-item:nth-child(2) .ico {
	background: #e8f5e9;
	color: #27ae60;
}

.ben-item:nth-child(3) .ico {
	background: #f3f0ff;
	color: #7b61ff;
}

.ben-item .ico svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ben-item .name {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #1a1d2f;
}

.ben-item .sub {
	display: block;
	margin-top: 2px;
	font-size: 11px;
	color: #8c929d;
	line-height: 1.3;
}

.svc-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.svc-grid--single {
	grid-template-columns: 1fr;
}

.svc-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 100px;
	background: #f8faff;
	border-radius: 12px;
	padding: 16px 10px;
	border: none;
	text-decoration: none;
	color: inherit;
}

.svc-item .ico {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.svc-item:nth-child(1) .ico {
	background: #ebf1ff;
	color: #5b8ff9;
}

.svc-item:nth-child(2) .ico {
	background: #fff7e6;
	color: #fa8c16;
}

.svc-item .ico svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.svc-item .name {
	font-size: 14px;
	font-weight: 700;
	color: #1a1d2f;
}

.svc-item .sub {
	font-size: 11px;
	color: #8c929d;
}

.svc-item--wide {
	grid-column: 1 / -1;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	text-align: left;
	padding: 14px 16px;
}

.svc-item--wide .ico {
	flex-shrink: 0;
}

.svc-item--wide .name,
.svc-item--wide .sub {
	display: block;
}

.tools-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px 6px;
}

.tool-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	text-decoration: none;
	color: inherit;
	padding: 2px 0;
}

.tool-item .ring {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tool-item:nth-child(1) .ring {
	background: #ebf1ff;
	color: #5b8ff9;
}

.tool-item:nth-child(2) .ring {
	background: #fff7e6;
	color: #fa8c16;
}

.tool-item:nth-child(3) .ring {
	background: #e6fffb;
	color: #13c2c2;
}

.tool-item:nth-child(4) .ring {
	background: #f3f0ff;
	color: #7b61ff;
}

.tool-item .ring [data-lucide] {
	color: inherit;
}

.tool-item:nth-child(1) .ring svg {
	stroke: #5b8ff9;
}

.tool-item:nth-child(2) .ring svg {
	stroke: #fa8c16;
}

.tool-item:nth-child(3) .ring svg {
	stroke: #13c2c2;
}

.tool-item:nth-child(4) .ring svg {
	stroke: #7b61ff;
}

.tool-item .ring svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tool-item > span:not([data-lucide]) {
	font-size: 12px;
	font-weight: 500;
	color: #1a1d2f;
	text-align: center;
	line-height: 1.25;
}

/* ── 会员推荐横幅（对齐参考 Profile） ── */
.mine-tip {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	padding: 20px;
	margin-bottom: 12px;
	background: linear-gradient(to right, #4a1d7a, #2d3a8c, #1e3a8a);
	box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.18), 0 4px 6px -4px rgba(15, 23, 42, 0.12);
	border: none;
}

.mine-tip-dot {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}

.mine-tip-dot--1 {
	top: 12px;
	right: 80px;
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
}

.mine-tip-dot--2 {
	bottom: 12px;
	right: 128px;
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.15);
}

.mine-tip-dot--3 {
	top: 50%;
	right: 48px;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.1);
	transform: translateY(-50%);
}

.mine-tip-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.mine-tip-main {
	min-width: 0;
	flex: 1;
}

.mine-tip-head {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 4px;
}

.mine-tip-crown svg {
	width: 20px;
	height: 20px;
	stroke: #f0c040;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mine-tip-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #f0c040;
	line-height: 1.3;
}

.mine-tip-desc {
	margin: 0 0 0 28px;
	font-size: 12px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.55);
}

.mine-tip-desc strong {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.9);
}

.mine-tip-arrow {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.8);
}

.mine-tip-arrow svg {
	width: 20px;
	height: 20px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ── 编辑资料弹层 ── */
.profile-sheet-mask {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(15, 23, 42, 0.45);
	display: none;
	align-items: flex-end;
	justify-content: center;
}

.profile-sheet-mask.open {
	display: flex;
}

.profile-sheet {
	width: 100%;
	max-width: 430px;
	background: #fff;
	border-radius: 20px 20px 0 0;
	padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0));
	box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

.profile-sheet h3 {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	text-align: center;
	margin-bottom: 18px;
}

.profile-avatar-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
}

.profile-avatar-btn {
	position: relative;
	width: 88px;
	height: 88px;
	border: none;
	padding: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #e2e8f0;
	cursor: pointer;
}

.profile-avatar-btn img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.profile-avatar-btn .cam {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
}

.profile-avatar-btn .cam svg {
	width: 14px;
	height: 14px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
}

.profile-avatar-tip {
	font-size: 12px;
	color: #64748b;
}

.profile-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
}

.profile-field input {
	width: 100%;
	height: 44px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 0 14px;
	font-size: 15px;
	outline: none;
}

.profile-field input:focus {
	border-color: #2563eb;
}

.profile-actions {
	display: flex;
	gap: 10px;
	margin-top: 20px;
}

.profile-actions button {
	flex: 1;
	height: 44px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 700;
	border: none;
	cursor: pointer;
}

.profile-actions .btn-cancel {
	background: #f1f5f9;
	color: #475569;
}

.profile-actions .btn-save {
	background: linear-gradient(145deg, #3b82f6, #2563eb);
	color: #fff;
}

.profile-actions .btn-save:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ── 底部导航 ── */
.tabbar {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(14px + env(safe-area-inset-bottom, 0));
	width: min(300px, calc(100% - 40px));
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	display: flex;
	justify-content: space-around;
	align-items: center;
	padding: 10px 8px;
	border-radius: 999px;
	box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
	border: 1px solid rgba(226, 232, 240, 0.95);
	z-index: 100;
}

.tab {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	font-size: 10px;
	color: #9ca3af;
	min-width: 52px;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.tab.active,
.tab.on {
	color: #5b8ff9;
	font-weight: 600;
}

.tab svg,
.tab [data-lucide] svg {
	width: 20px;
	height: 20px;
}
