/* ==========================================================================
   AC1.0 会员模块（注册弹窗 / 顶部会员入口 / 会员中心）
   --------------------------------------------------------------------------
   参考 ECS_PXUGE.com 的注册设置逻辑（两级标签页、邮箱/手机/微信三种方式、
   验证码倒计时），但配色改用本站主题的强调色，视觉上与 Ameya 皮肤一致。
   想换成参考项目的深色+金色，只需修改下面四个变量即可。

   本文件在 ac10-responsive 之后入队，因此同权重声明会覆盖主题样式表。
   ========================================================================== */

:root {
	--ac10-member-accent: #ff6a3e;
	--ac10-member-accent-dark: #e2542b;
	--ac10-member-accent-soft: #fff4ef;
	--ac10-member-ink: #22252a;
	--ac10-member-muted: #7b8290;
	--ac10-member-line: #e6e8ec;
	--ac10-member-mask: rgba(17, 20, 26, .72);
}

/* ==========================================================================
   1. 顶部会员入口（位于页头上方栏 .header-above 内）
   ========================================================================== */

.header-above .trh-member {
	margin: 0 0 0 14px;
	padding: 0;
	list-style: none;
}

.header-above .trh-member > li {
	display: inline-block;
	position: relative;
	vertical-align: middle;
}

/* 上方栏给每个 li 加了竖线分隔符，会员入口不需要 */
.header-above .trh-member > li:after,
.header-above ul.trh-member li:last-child:after {
	visibility: hidden;
}

.ac10-member-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 3px 12px 3px 4px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	line-height: 1.2;
	cursor: pointer;
	transition: background .25s ease, border-color .25s ease;
}

.ac10-member-toggle:hover,
.ac10-member-toggle:focus {
	background: rgba(255, 255, 255, .24);
	border-color: rgba(255, 255, 255, .55);
	outline: none;
}

.ac10-member-avatar {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	overflow: hidden;
	/* 占位头像是金色线稿（来自参考项目 /VI/陌生人*.svg），
	   白底比半透明白底更清晰；会员上传的照片会整体盖住它。 */
	background: #fff;
}

.ac10-member-avatar-img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .25s ease;
}

.ac10-member-avatar-hover {
	opacity: 0;
}

.ac10-member-toggle:hover .ac10-member-avatar-hover,
.ac10-member-entry:hover .ac10-member-avatar-hover {
	opacity: 1;
}

.ac10-member-name {
	max-width: 11em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ac10-member-caret {
	font-size: 12px;
	opacity: .85;
	transition: transform .25s ease;
}

.ac10-member-entry.is-open .ac10-member-caret {
	transform: rotate(180deg);
}

.ac10-member-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	z-index: 1200;
	min-width: 176px;
	padding: 6px 0;
	background: #fff;
	border: 1px solid var(--ac10-member-line);
	border-radius: 10px;
	box-shadow: 0 14px 32px rgba(20, 24, 32, .18);
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.ac10-member-entry:hover .ac10-member-dropdown,
.ac10-member-entry.is-open .ac10-member-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.ac10-member-dropdown-item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 9px 16px;
	color: var(--ac10-member-ink) !important;
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.ac10-member-dropdown-item:hover,
.ac10-member-dropdown-item:focus {
	background: var(--ac10-member-accent-soft);
	color: var(--ac10-member-accent) !important;
}

.ac10-member-dropdown-item .fa {
	width: 15px;
	text-align: center;
	font-size: 14px;
	background: none;
	color: inherit;
}

.ac10-member-dropdown-item.is-danger:hover,
.ac10-member-dropdown-item.is-danger:focus {
	background: #fff1f1;
	color: #e5484d !important;
}

.ac10-member-dropdown-divider {
	display: block;
	height: 1px;
	margin: 6px 0;
	background: var(--ac10-member-line);
}

/* ==========================================================================
   2. 注册 / 登录弹窗
   ========================================================================== */

.ac10-auth-mask {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: var(--ac10-member-mask);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.ac10-auth-mask.is-open {
	display: flex;
}

body.ac10-auth-locked {
	overflow: hidden;
}

.ac10-auth-box {
	width: 420px;
	max-width: 100%;
	max-height: 92vh;
	overflow: hidden auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 26px 64px rgba(15, 18, 25, .38);
	animation: ac10AuthIn .3s ease;
}

@keyframes ac10AuthIn {
	from {
		opacity: 0;
		transform: translateY(-24px) scale(.97);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.ac10-auth-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px 0;
}

.ac10-auth-tabs {
	display: flex;
	gap: 26px;
}

.ac10-auth-tab {
	position: relative;
	padding: 8px 0;
	background: none;
	border: 0;
	color: var(--ac10-member-muted);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.ac10-auth-tab.is-active {
	color: var(--ac10-member-ink);
}

.ac10-auth-tab.is-active:after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--ac10-member-accent);
}

.ac10-auth-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: #f2f3f5;
	border: 0;
	border-radius: 50%;
	color: #8a909c;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}

.ac10-auth-close:hover {
	background: #ffe9e0;
	color: var(--ac10-member-accent);
}

.ac10-auth-body {
	padding: 18px 22px 24px;
}

.ac10-auth-page,
.ac10-auth-pane {
	display: none;
}

.ac10-auth-page.is-active,
.ac10-auth-pane.is-active {
	display: block;
	animation: ac10FadeIn .25s ease;
}

@keyframes ac10FadeIn {
	from {
		opacity: 0;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* 一级方法标签（登录：账号密码 / 邮箱验证码 / 手机验证码） */
.ac10-auth-methods {
	display: flex;
	gap: 6px;
	padding: 4px;
	margin-bottom: 18px;
	background: #f5f6f8;
	border-radius: 10px;
}

.ac10-method {
	flex: 1;
	padding: 8px 0;
	background: none;
	border: 0;
	border-radius: 8px;
	color: var(--ac10-member-muted);
	font-size: 13px;
	cursor: pointer;
	transition: all .2s ease;
}

.ac10-method.is-active {
	background: #fff;
	color: var(--ac10-member-accent);
	font-weight: 600;
	box-shadow: 0 1px 4px rgba(20, 24, 32, .1);
}

.ac10-method:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.ac10-field {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 14px;
}

.ac10-field-icon {
	position: absolute;
	left: 14px;
	width: 16px;
	font-size: 15px;
	line-height: 1;
	color: #b3b9c4;
	text-align: center;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   输入框：选择器必须带 .ac10-auth-box 才盖得住主题自带的表单样式。
   assets/css/typography/typograhpy.css 里有一条
     input[type="text"], input[type="email"], input[type="password"], … {
         padding: .5625rem 1rem; border-radius: 3px; background: #fff;
         font-size: inherit; letter-spacing: .5px; …
     }
   它的权重是 (0,1,1)，而 .ac10-input 只有 (0,1,0)，**优先级高于加载顺序**，
   所以不管谁先谁后都是它赢：占位文字从 16px 处开始，正好压在 left:14px 的
   图标上（实测 padLeft=16px、图标 14~30px；2026-10-09 用户截图反馈）。
   这里把权重提到 (0,2,0)，并把布局相关的属性一次写全，
   以后再有第三方（WPForms/GiveWP 之类）的 input[type=…] 规则也压不过来。
   注意：会员中心的表单用的是 .ac10-member-form-row input[type="text"]（(0,2,1)），
   本来就够具体，不需要跟着改。
   -------------------------------------------------------------------------- */
.ac10-auth-box .ac10-input {
	display: block;
	width: 100%;
	padding: 12px 14px 12px 40px;
	background: #fafbfc;
	border: 1px solid var(--ac10-member-line);
	border-radius: 10px;
	color: var(--ac10-member-ink);
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: normal;
	vertical-align: middle;
	outline: none;
	transition: all .2s ease;
}

.ac10-auth-box .ac10-input:focus {
	background: #fff;
	border-color: var(--ac10-member-accent);
	box-shadow: 0 0 0 3px rgba(255, 106, 62, .12);
}

.ac10-auth-box .ac10-input.has-code {
	padding-right: 112px;
}

.ac10-code-btn {
	position: absolute;
	top: 50%;
	right: 6px;
	padding: 7px 12px;
	background: var(--ac10-member-accent-soft);
	border: 1px solid rgba(255, 106, 62, .35);
	border-radius: 8px;
	color: var(--ac10-member-accent);
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background .2s ease;
}

.ac10-code-btn:hover:not(:disabled) {
	background: #ffe6dc;
}

.ac10-code-btn:disabled {
	opacity: .55;
	cursor: not-allowed;
}

.ac10-submit {
	width: 100%;
	margin-top: 6px;
	padding: 13px;
	background: var(--ac10-member-accent);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all .25s ease;
}

.ac10-submit:hover {
	background: var(--ac10-member-accent-dark);
	box-shadow: 0 10px 22px rgba(255, 106, 62, .28);
	transform: translateY(-1px);
}

.ac10-submit:disabled {
	opacity: .6;
	cursor: not-allowed;
	box-shadow: none;
	transform: none;
}

.ac10-auth-foot {
	margin-top: 14px;
	color: var(--ac10-member-muted);
	font-size: 12px;
	text-align: center;
}

.ac10-auth-foot a {
	color: var(--ac10-member-accent);
	text-decoration: none;
	cursor: pointer;
}

.ac10-auth-foot a:hover {
	text-decoration: underline;
}

.ac10-notice {
	padding: 14px 16px;
	background: #fff8ec;
	border: 1px solid #ffe2b8;
	border-radius: 10px;
	color: #8a5a12;
	font-size: 13px;
	line-height: 1.7;
}

.ac10-wechat {
	padding: 10px 0 4px;
	text-align: center;
}

/* 微信二维码：容器是白卡片，里面装微信官方 qrconnect 页面（iframe 懒加载） */
.ac10-wechat-qr {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 336px;
	min-height: 400px;
	margin: 0 auto 14px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--ac10-member-line);
	border-radius: 14px;
	color: #07c160;
	font-size: 64px;
}

.ac10-wechat-frame {
	display: block;
	width: 300px;
	max-width: 100%;
	height: 400px;
	background: #fff;
	border: 0;
}

.ac10-wechat-tip {
	margin: 0;
	color: var(--ac10-member-ink);
	font-size: 14px;
}

.ac10-wechat-tip strong {
	color: #07c160;
}

.ac10-wechat-coming {
	margin: 6px 0 0;
	color: var(--ac10-member-muted);
	font-size: 12px;
}

.ac10-wechat-coming a {
	color: #07c160;
	text-decoration: none;
}

.ac10-wechat-coming a:hover {
	text-decoration: underline;
}

/* 轻提示 */
.ac10-toast {
	position: fixed;
	top: 18%;
	left: 50%;
	z-index: 100000;
	padding: 11px 24px;
	border-radius: 8px;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 8px 22px rgba(15, 18, 25, .25);
	opacity: 0;
	transform: translate(-50%, -16px);
	transition: opacity .28s ease, transform .28s ease;
}

.ac10-toast.is-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

.ac10-toast.is-success {
	background: #2eb872;
}

.ac10-toast.is-error {
	background: #e5484d;
}

.ac10-toast.is-info {
	background: #3b82f6;
}

/* ==========================================================================
   3. 会员中心页面
   ========================================================================== */

#ac10-member-page {
	padding: 70px 0 90px;
}

.ac10-member-card {
	height: 100%;
	padding: 26px;
	background: #fff;
	border: 1px solid var(--ac10-member-line);
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(20, 24, 32, .05);
}

.ac10-member-card-avatar {
	margin-bottom: 14px;
}

.ac10-member-card-avatar img {
	width: 120px;
	height: 120px;
	background: #f5f6f8;
	border-radius: 50%;
	object-fit: cover;
}

.ac10-member-card-name {
	margin: 0 0 4px;
	font-size: 20px;
	word-break: break-all;
}

.ac10-member-card-role {
	display: inline-block;
	margin: 0 0 18px;
	padding: 2px 10px;
	background: var(--ac10-member-accent-soft);
	border-radius: 999px;
	color: var(--ac10-member-accent);
	font-size: 12px;
}

.ac10-member-meta {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ac10-member-meta li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	border-bottom: 1px dashed var(--ac10-member-line);
	font-size: 13px;
}

.ac10-member-meta li:last-child {
	border-bottom: 0;
}

.ac10-member-meta span {
	flex: 0 0 auto;
	color: var(--ac10-member-muted);
}

.ac10-member-meta em {
	font-style: normal;
	color: var(--ac10-member-ink);
	text-align: right;
	word-break: break-all;
}

.ac10-member-card-link {
	display: inline-block;
	margin-top: 16px;
	color: var(--ac10-member-accent);
	font-size: 13px;
	text-decoration: none;
}

.ac10-member-forms h3 {
	margin: 0 0 16px;
	font-size: 17px;
}

.ac10-member-forms hr {
	margin: 26px 0;
	border: 0;
	border-top: 1px solid var(--ac10-member-line);
}

.ac10-member-form-row {
	margin-bottom: 14px;
}

.ac10-member-form-row label {
	display: block;
	margin-bottom: 6px;
	color: var(--ac10-member-ink);
	font-size: 13px;
	font-weight: 500;
}

.ac10-member-form-row input[type="text"],
.ac10-member-form-row input[type="tel"],
.ac10-member-form-row input[type="password"],
.ac10-member-form-row input[type="file"] {
	width: 100%;
	padding: 11px 14px;
	background: #fafbfc;
	border: 1px solid var(--ac10-member-line);
	border-radius: 10px;
	font-size: 14px;
	outline: none;
	transition: all .2s ease;
}

.ac10-member-form-row input:focus {
	background: #fff;
	border-color: var(--ac10-member-accent);
	box-shadow: 0 0 0 3px rgba(255, 106, 62, .12);
}

.ac10-member-hint {
	margin: 6px 0 0;
	color: var(--ac10-member-muted);
	font-size: 12px;
	line-height: 1.6;
}

.ac10-member-guest {
	max-width: 520px;
	margin: 0 auto;
	padding: 40px 30px;
	background: #fff;
	border: 1px solid var(--ac10-member-line);
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 6px 20px rgba(20, 24, 32, .05);
}

.ac10-member-guest-avatar img {
	width: 72px;
	height: 72px;
	margin-bottom: 12px;
	background: #f5f6f8;
	border-radius: 50%;
}

.ac10-member-guest h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

.ac10-member-guest p {
	color: var(--ac10-member-muted);
	font-size: 14px;
	line-height: 1.8;
}

.ac10-member-guest-actions {
	margin: 22px 0 0;
}

.ac10-member-guest-actions .boxed-btn {
	margin: 0 6px 8px;
}

.ac10-btn-plain {
	background: #fff !important;
	border: 1px solid var(--ac10-member-accent) !important;
	color: var(--ac10-member-accent) !important;
}

/* ==========================================================================
   4. 响应式
   ========================================================================== */

@media (max-width: 991px) {
	.ac10-member-name {
		max-width: 8em;
	}

	.ac10-member-card {
		margin-bottom: 24px;
	}

	#ac10-member-page {
		padding: 40px 0 60px;
	}
}

@media (max-width: 575px) {
	.ac10-auth-box {
		border-radius: 14px;
	}

	.ac10-auth-head,
	.ac10-auth-body {
		padding-right: 16px;
		padding-left: 16px;
	}

	.ac10-auth-tabs {
		gap: 18px;
	}

	.ac10-member-toggle {
		padding-right: 8px;
	}

	.ac10-member-name {
		display: none;
	}
}
