/* 正式会员层沿第三版源容器；原生dialog负责遮罩、焦点与移动端滚动边界。 */
[data-hg3-profile-page] [hidden], [data-hg3-pay-page] [hidden], .hg3-member-dialog [hidden] { display: none !important; }
dialog.hg3-member-dialog { border: 0; margin: auto; padding: 0; width: min(100% - 32px, 600px); max-width: calc(100vw - 32px); height: auto; max-height: calc(100dvh - 32px); background: transparent; overflow: visible; color: #f4f4f4; }
dialog.hg3-member-dialog:not([open]) { display: none; }
dialog.hg3-member-dialog[open] { display: block; position: fixed; inset: 0; }
dialog.hg3-member-dialog::backdrop { background: rgba(0,0,0,.72); }
.hg3-member-dialog .app-dialog-card { width: 100%; max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; position: relative; text-align: left; }
.hg3-member-dialog .app-dialog-close { align-self: flex-end; color: #ccc; font-size: 30px; line-height: 36px; min-width: 44px; min-height: 44px; }
.hg3-member-dialog .user-center-avatar, [data-hg3-profile-page] .user-center-avatar { display: grid; place-items: center; color: #fff; font-size: 32px; }
.hg3-member-dialog .user-center-avatar { width: 54px; height: 54px; font-size: 24px; }
.hg3-password-toggle { background: none; border: 0; color: #aaa; min-width: 44px; min-height: 44px; }
.hg3-member-muted { color: #888; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.hg3-member-actions, .hg3-profile-nav, .hg3-private-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hg3-member-actions button, .hg3-profile-nav a, .hg3-private-pagination a { box-sizing: border-box; border: 1px solid #333; border-radius: 8px; padding: 10px 14px; min-height: 44px; color: #ddd; background: #191919; font: inherit; text-decoration: none; cursor: pointer; }
.hg3-member-actions button:disabled { opacity: .5; cursor: default; }
.hg3-profile-edit-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hg3-member-actions .hg3-profile-bind { -webkit-appearance: none; appearance: none; min-height: 44px; border: 1px solid #ff5000; border-radius: 8px; padding: 10px 14px; background: #191919; color: #ff5000; font: inherit; line-height: 1.5; }
.hg3-profile-nav a[aria-current], .hg3-member-actions button[aria-pressed=true] { color: #ff7b40; border-color: #ff5000; }
/* 个人概览沿源横向身份/钱包卡；编辑、绑定和账号切换收纳在左侧卡内。 */
[data-hg3-profile-page] .hg3-profile-identity-card { display: grid; grid-template-columns: minmax(0,1fr) 240px; align-items: center; gap: 28px; padding-top: 24px; padding-bottom: 24px; }
.hg3-profile-account { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hg3-profile-card-actions { align-items: flex-start; gap: 12px 16px; }
.hg3-profile-card-actions button { font-size: 13px; }
.hg3-profile-session-actions { gap: 8px; }
.hg3-profile-session-actions button { background: transparent; color: #aaa; }
/* 右侧沿源VIP/金币卡的底色、圆角和文本层级；权益文字只由可信钱包更新。 */
.hg3-profile-identity-card .hg3-profile-membership-card { display: grid; grid-template-columns: minmax(4em,max-content) minmax(0,1fr); align-items: center; flex: initial; gap: 6px 12px; width: 100%; height: auto; min-height: 0; padding: 14px; color: #aaa; }
/* 故障状态可折行，四字权益标签仍保留完整一行。 */
.hg3-profile-membership-card > span:first-child { min-width: 4em; white-space: nowrap; }
.hg3-profile-membership-card > [data-hg3-vip] { grid-column: 2; min-width: 0; white-space: normal; overflow-wrap: anywhere; }.hg3-profile-membership-card > [data-hg3-vip]:first-child { grid-column: 1 / -1; }
.hg3-profile-membership-card > .hg3-profile-membership-expire, .hg3-profile-membership-card > .hg3-profile-vip-button, .hg3-profile-membership-card > .hg3-profile-coin-link, .hg3-profile-membership-card > .hg3-profile-utility-links { grid-column: 1 / -1; }
.hg3-profile-membership-card strong { font-size: 16px; line-height: 24px; }
.hg3-profile-membership-expire { color: #aaa; line-height: 18px; overflow-wrap: anywhere; }
.hg3-profile-vip-button { -webkit-appearance: none; appearance: none; box-sizing: border-box; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 12px; background: linear-gradient(110deg,#fac69b,#ffe2bf); color: #694923; font: inherit; font-weight: 600; line-height: 1.5; cursor: pointer; }
/* 嵌套钱包入口不能继承源独立金币卡的固定高度，整行只按实际内容和44px点击区排版。 */
.hg3-profile-membership-card .hg3-profile-coin-link { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; flex: initial; gap: 4px 10px; height: auto; min-height: 44px; padding: 8px 0 0; border-top: 1px solid #ffffff20; border-radius: 0; background: transparent; }
.hg3-profile-coin-link strong { font-size: 22px; line-height: 30px; }
.hg3-profile-coin-link .account-action { grid-column: auto; white-space: nowrap; }
.hg3-profile-utility-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.hg3-profile-utility-links a { display: inline-flex; align-items: center; min-height: 44px; color: #ff7b40; font-size: 13px; text-decoration: none; }
.user-center-mobile-menu .hg3-profile-mobile-label { color: inherit; font-size: 14px; }
.hg3-profile-card-actions button:focus-visible, .hg3-profile-vip-button:focus-visible, .hg3-profile-utility-links a:focus-visible { outline: 2px solid #ff7b40; outline-offset: 3px; }
.hg3-profile-panel { display: flex; flex-direction: column; gap: 24px; }
[data-hg3-profile-page].collect-page, [data-hg3-profile-page].setting-page { display: flex; flex-direction: column; gap: 24px; width: min(964px, calc(100% - 64px)); margin: 0 auto; padding: 36px 0; color: #f4f4f4; }
[data-hg3-profile-page] .setting-item { width: 100%; min-height: 60px; color: inherit; background: none; border: 0; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; }
[data-hg3-profile-page] .setting-item-value { margin-left: auto; }
.hg3-profile-card { min-width: 0; }
.hg3-profile-card > button { color: #aaa; background: #191919; border: 1px solid #333; border-radius: 6px; min-height: 44px; padding: 8px 12px; cursor: pointer; }
.hg3-order-list { display: grid; gap: 12px; margin: 20px 0; }
.hg3-order-row { border: 1px solid #292929; border-radius: 16px; padding: 16px; background: #191919; overflow-wrap: anywhere; }
.hg3-order-row h3 { margin: 0 0 10px; }.hg3-order-row p, .hg3-order-row time { margin: 6px 0; color: #999; font-size: 14px; }
.hg3-pay-panel { display: flex; flex-direction: column; gap: 18px; width: 100%; min-width: 0; }
.hg3-pay-panel .deposit-section-heading { margin: 0; gap: 12px; }.hg3-pay-panel .deposit-section-heading h2 { margin: 0; font-size: 22px; line-height: 1.4; }.hg3-pay-panel h3 { margin: 0; font-size: 16px; line-height: 1.5; }
/* 源deposit页签使用aria-selected；正式按钮与真实链接沿各自语义映射同一橙色激活态。 */
.hg3-pay-panel button { -webkit-appearance: none; appearance: none; font: inherit; cursor: pointer; }
.hg3-pay-panel .deposit-tabs { display: flex; flex-wrap: wrap; min-width: 0; gap: 4px; padding: 4px; border-radius: 24px; background: #202020; }
.hg3-pay-panel .deposit-tabs a, .hg3-pay-panel .deposit-tabs button { box-sizing: border-box; flex: 1; display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: 22px; background: transparent; color: #888; font-size: 14px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.hg3-pay-panel .deposit-tabs a[aria-current], .hg3-pay-panel .deposit-tabs button[aria-pressed=true] { background: #ff5000; color: #fff; }
/* 商品卡沿源deposit深色底、圆角与橙色选中边框，避免依赖浏览器默认button外观。 */
.hg3-pay-panel .deposit-packages-panel { box-sizing: border-box; width: 100%; padding: 20px 16px; border-radius: 20px; background: #191919; }
.hg3-pay-panel .deposit-packages { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; width: 100%; }
.hg3-pay-panel .deposit-package { box-sizing: border-box; display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: center; position: relative; min-width: 0; min-height: 128px; padding: 24px 12px 16px; border: 1px solid #333; border-radius: 20px; background: #202020; color: #f5f5f5; text-align: center; line-height: 1.5; overflow-wrap: anywhere; }
.hg3-pay-panel .deposit-package--active { border-color: #ff5000; box-shadow: inset 0 0 0 1px #ff5000; }
.hg3-pay-panel .deposit-package-check { display: none; position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: #ff5000; color: #fff; font-size: 14px; line-height: 22px; text-align: center; }.hg3-pay-panel .deposit-package--active .deposit-package-check { display: block; }
.hg3-pay-panel .deposit-package s, .hg3-pay-panel .deposit-package small { font-size: 12px; color: #888; }.hg3-pay-panel .deposit-package strong { font-size: 20px; }
.hg3-pay-panel .deposit-price { color: inherit; font-size: 26px; line-height: 32px; }
.hg3-product-badge { color: #ff7b40; font-size: 12px; }
/* 独立充值沿deposit-submit橙色；会员购买沿源vip-dialog-cta的暖金渐变。 */
.hg3-pay-panel .hg3-pay-submit { box-sizing: border-box; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 14px 18px; border: 0; border-radius: 18px; background: #ff5000; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.5; }
.hg3-pay-panel[data-hg3-pay-root="vip"] .hg3-pay-submit { background: linear-gradient(110deg,#fac69b,#ffe2bf); color: #9e271d; }
.hg3-pay-panel button:disabled { opacity: .5; cursor: not-allowed; }
.hg3-pay-panel :focus-visible { outline: 2px solid #ff7b40; outline-offset: 3px; }
.hg3-pay-mount { width: 100%; }
.hg3-pay-channels { display: flex; flex-wrap: wrap; gap: 10px; }.hg3-pay-channel { border: 1px solid #414141; border-radius: 8px; background: #191919; color: #ddd; padding: 10px 18px; min-height: 44px; font: inherit; cursor: pointer; }.hg3-pay-channel.is-active { color: #ff7b40; border-color: #ff5000; }
.hg3-pay-order { overflow-wrap: anywhere; font-size: 13px; }
.hg3-member-toast { position: fixed; z-index: 2147483646; bottom: max(90px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); max-width: calc(100vw - 48px); padding: 12px 20px; border: 1px solid #414141; border-radius: 10px; background: #222; color: #fff; overflow-wrap: anywhere; }
@media (max-width: 767px) { [data-hg3-profile-page].collect-page, [data-hg3-profile-page].setting-page { width: calc(100% - 32px); padding: 20px 0 90px; }.hg3-member-dialog .app-dialog-card { padding: 22px 18px; border-radius: 28px; }.hg3-pay-panel .deposit-packages-panel { padding: 16px 12px; }.hg3-pay-panel .deposit-packages { gap: 12px; }.hg3-pay-panel .deposit-package { padding: 24px 8px 14px; }.hg3-pay-panel .deposit-section-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }.hg3-pay-panel .deposit-tabs { width: auto; }.hg3-profile-nav { gap: 8px; }.hg3-profile-nav a { padding: 8px 12px; } }
@media (max-width: 767px) {
    [data-hg3-profile-page] .hg3-profile-identity-card { grid-template-columns: minmax(0,1fr); gap: 18px; padding: 18px; border: 1px solid #292929; border-radius: 20px; background: #191919; }
    .hg3-profile-card-actions { gap: 12px; }.hg3-profile-card-actions button { padding: 10px 12px; }
    .hg3-profile-identity-card .hg3-profile-membership-card { padding: 16px; border-radius: 16px; }
    .hg3-profile-nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
    .hg3-profile-nav a { flex: 0 0 auto; white-space: nowrap; }
}
