/* ===================================================================
   Auth v4 — 登入 / 註冊 页样式（与结算 v4 风格统一）
   =================================================================== */
:root {
	--auth-accent:       #3d4a3a;
	--auth-accent-hover: #2d3a2a;
	--auth-line:         #ede9e3;
	--auth-bg:           #f9f8f6;
	--auth-text:         #3d3229;
	--auth-muted:        #9a9489;
	--auth-radius:       14px;
	--auth-shadow:       0 6px 28px rgba(61, 50, 41, .08);
}

.auth-v4-wrap {
	background: var(--auth-bg);
	min-height: 60vh;
	padding: 48px 16px 64px;
	box-sizing: border-box;
}

.auth-v4-crumb {
	max-width: 460px;
	margin: 0 auto 18px;
	font-size: 13px;
	color: #9a9489;
}
.auth-v4-crumb a {
	color: #9a9489;
	text-decoration: none;
}
.auth-v4-crumb a:hover { color: var(--auth-accent); }
.auth-v4-crumb span { margin: 0 6px; color: #cfc9bf; }

.auth-v4-card {
	max-width: 460px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: var(--auth-radius);
	box-shadow: var(--auth-shadow);
	padding: 40px 36px 36px;
	box-sizing: border-box;
}
.auth-v4-card--wide { max-width: 660px; }

/* 内嵌会员中心 con-r 时：去掉外层留白、左对齐 */
.auth-v4-card--member {
	margin: 0 0 40px;
	max-width: none;
}

/* 会员中心：侧栏 + 主内容 */
.auth-v4-wrap--member {
	padding-top: 32px;
	padding-bottom: 48px;
}
.member-v4-layout {
	display: grid;
	grid-template-columns: 200px minmax(0, 1fr);
	gap: 28px;
	max-width: 1080px;
	margin: 0 auto;
}
.member-v4-main { min-width: 0; }
.member-v4-main .auth-v4-crumb {
	max-width: none;
	margin-bottom: 16px;
}

.member-v4-nav {
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: var(--auth-radius);
	box-shadow: var(--auth-shadow);
	padding: 20px 0;
	height: fit-content;
	position: sticky;
	top: 24px;
}
.member-v4-nav__title {
	margin: 0 0 12px;
	padding: 0 20px;
	font-size: 15px;
	font-weight: 700;
	color: var(--auth-text);
	letter-spacing: .5px;
}
.member-v4-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.member-v4-nav__link {
	display: block;
	padding: 11px 20px;
	font-size: 14px;
	color: #7a746a;
	text-decoration: none;
	border-left: 3px solid transparent;
	transition: color .15s, background .15s, border-color .15s;
}
.member-v4-nav__link:hover {
	color: var(--auth-accent);
	background: #faf9f7;
}
.member-v4-nav__link.is-active {
	color: var(--auth-accent);
	font-weight: 700;
	background: #f3f5f2;
	border-left-color: var(--auth-accent);
}

.auth-v4-field__input[readonly] {
	background: #f7f6f4;
	color: #8d877c;
	cursor: not-allowed;
}

/* 订单列表 v4 详情行 */
.order-v4-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 20px;
	padding: 14px 20px;
	font-size: 13px;
	color: #7a746a;
	border-top: 1px solid var(--auth-line);
	background: #fcfbfa;
}
.order-v4-meta dt {
	margin: 0;
	font-weight: 600;
	color: var(--auth-text);
}
.order-v4-meta dd {
	margin: 0 0 8px;
}
.order-v4-goods-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--auth-line);
	font-size: 14px;
}
.order-v4-goods-row:last-child { border-bottom: none; }
.order-v4-goods-name {
	flex: 1;
	color: var(--auth-text);
}
.order-v4-goods-price {
	font-weight: 700;
	color: #c0392b;
	white-space: nowrap;
}

/* 注册多字段：两列网格 */
.auth-v4-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}
.auth-v4-grid .auth-v4-field--full { grid-column: 1 / -1; }

.auth-v4-field__optional {
	font-weight: 400;
	color: #b3ada3;
	font-size: 12px;
	margin-left: 4px;
}
.auth-v4-card__crumb-region {
	display: inline-block;
	margin-top: 6px;
	font-size: 12px;
	color: #b3ada3;
}

.auth-v4-card__head {
	text-align: center;
	margin-bottom: 28px;
}
.auth-v4-card__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--auth-text);
	letter-spacing: 1px;
	margin: 0 0 6px;
}
.auth-v4-card__sub {
	font-size: 13px;
	color: #9a9489;
	margin: 0;
}

.auth-v4-field { margin-bottom: 18px; }
.auth-v4-field__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--auth-text);
	margin-bottom: 8px;
}
.auth-v4-field__input {
	width: 100%;
	height: 48px;
	padding: 0 14px;
	font-size: 15px;
	color: var(--auth-text);
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: 10px;
	box-sizing: border-box;
	transition: border-color .18s, box-shadow .18s;
	outline: none;
}
.auth-v4-field__input:focus {
	border-color: var(--auth-accent);
	box-shadow: 0 0 0 3px rgba(61, 74, 58, .1);
}
.auth-v4-field__input::placeholder { color: #bfb9af; }

.auth-v4-pwd { position: relative; }
.auth-v4-pwd__toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	border: none;
	background: none;
	cursor: pointer;
	color: #b0aaa0;
	display: inline-flex;
	padding: 4px;
}
.auth-v4-pwd__toggle:hover { color: var(--auth-accent); }

.auth-v4-submit {
	width: 100%;
	height: 50px;
	margin-top: 6px;
	border: none;
	border-radius: 10px;
	background: var(--auth-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 2px;
	cursor: pointer;
	transition: background .18s, transform .06s;
}
.auth-v4-submit:hover { background: var(--auth-accent-hover); }
.auth-v4-submit:active { transform: translateY(1px); }
.auth-v4-submit.is-loading { opacity: .7; pointer-events: none; }

.auth-v4-foot {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--auth-line);
	text-align: center;
	font-size: 13px;
	color: #9a9489;
}
.auth-v4-foot a {
	color: var(--auth-accent);
	font-weight: 600;
	text-decoration: none;
	margin-left: 4px;
}
.auth-v4-foot a:hover { text-decoration: underline; }

@media (max-width: 768px) {
	.member-v4-layout { grid-template-columns: 1fr; }
	.member-v4-nav { position: static; }
	.member-v4-nav__list {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
		padding: 0 12px 8px;
	}
	.member-v4-nav__link {
		border: 1px solid var(--auth-line);
		border-radius: 999px;
		border-left: 1px solid var(--auth-line);
		padding: 8px 14px;
	}
	.member-v4-nav__link.is-active {
		border-color: var(--auth-accent);
	}
	.order-v4-meta { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
	.auth-v4-wrap { padding: 28px 12px 44px; }
	.auth-v4-card { padding: 30px 22px 28px; border-radius: 12px; }
	.auth-v4-card__title { font-size: 20px; }
	.auth-v4-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   我的訂單 — 订单列表（会员中心，沿用 v4 风格）
   =================================================================== */
.order-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.order-item {
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: var(--auth-radius);
	box-shadow: var(--auth-shadow);
	overflow: hidden;
}

.order-item .order-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	background: #faf9f7;
	border-bottom: 1px solid var(--auth-line);
	font-size: 13px;
}
.order-item .order-sn {
	font-weight: 700;
	color: var(--auth-text);
	letter-spacing: .3px;
}
.order-item .order-time { color: #a59f95; }

.order-item .order-goods {
	padding: 8px 20px;
}
.order-item .order-good-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px dashed var(--auth-line);
}
.order-item .order-good-item:last-child { border-bottom: none; }
.order-item .order-good-item img {
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--auth-line);
	background: #f5f3f0;
	flex-shrink: 0;
}
.order-item .good-info {
	flex: 1 1 auto;
	min-width: 0;
}
.order-item .good-name {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--auth-text);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.order-item .good-param {
	margin: 0 0 4px;
	font-size: 13px;
	color: #a59f95;
}
.order-item .good-numb {
	margin: 0;
	font-size: 13px;
	color: #8d877c;
}

.order-item .order-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-top: 1px solid var(--auth-line);
	background: #fff;
}
.order-item .order-total {
	font-size: 14px;
	color: #8d877c;
}
.order-item .order-total em {
	font-style: normal;
	font-size: 18px;
	font-weight: 800;
	color: #c0392b;
	margin-left: 4px;
}
.order-item .order-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	color: var(--auth-accent);
	background: #eef1ec;
	border-radius: 999px;
}

.order-empty {
	text-align: center;
	padding: 64px 20px;
	background: #fff;
	border: 1px solid var(--auth-line);
	border-radius: var(--auth-radius);
	box-shadow: var(--auth-shadow);
}
.order-empty p {
	margin: 0 0 18px;
	font-size: 15px;
	color: #a59f95;
}
.order-empty a {
	display: inline-block;
	padding: 11px 32px;
	background: var(--auth-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 1px;
	border-radius: 10px;
	text-decoration: none;
	transition: background .18s;
}
.order-empty a:hover { background: var(--auth-accent-hover); }

@media (max-width: 520px) {
	.order-item .order-top,
	.order-item .order-goods,
	.order-item .order-bottom { padding-left: 14px; padding-right: 14px; }
	.order-item .order-good-item img { width: 60px; height: 60px; }
	.order-item .good-name { font-size: 14px; }
}
