/* 统一前台导航 + 账户菜单 + 登录弹窗（样式对齐首页） */
wscm-site-navigation { display: contents; }
wscm-site-navigation:not(:defined) { display: block; min-height: 72px; background: transparent; }

/* ── 顶部导航条 ── */
.wscm-nav-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(5,6,10,.9), rgba(5,6,10,0));
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease;
}
.wscm-nav-header.scrolled {
  background: rgba(5,6,10,.82);
  border-bottom: 0;
  backdrop-filter: blur(18px) saturate(1.1);
}
.wscm-nav-wrap {
  max-width: 1400px; margin: 0 auto; min-height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 40px;
}
@media (max-width: 768px) { .wscm-nav-wrap { padding: 12px 20px; } }

.wscm-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #f4fff8; font-size: 20px; font-weight: 800; }
.wscm-nav-brand img { width: 36px; height: 36px; object-fit: contain; }
.wscm-nav-brand span { font-weight: 800; }

.wscm-nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.wscm-nav-links a { color: #92a198; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .18s ease; }
.wscm-nav-links a:hover { color: #35e982; }
.wscm-nav-links a[aria-current="page"] { color: #35e982; }
@media (max-width: 900px) { .wscm-nav-links { display: none; } }

/* 登录/账户入口 */
.wscm-nav-login {
  border: 1px solid rgba(53,233,130,.5); background: transparent; color: #35e982;
  font-weight: 800; font-size: 14px; padding: 9px 20px; border-radius: 8px; cursor: pointer; transition: .18s;
}
.wscm-nav-login:hover { background: rgba(53,233,130,.12); }
.wscm-nav-chip {
  display: flex; align-items: center; gap: 8px; border: 0; background: rgba(255,255,255,.05);
  border-radius: 999px; padding: 5px 14px 5px 6px; color: #eaf6ef; font-weight: 800; font-size: 14px; cursor: pointer; transition: .18s;
}
.wscm-nav-chip:hover { background: rgba(255,255,255,.1); }
.wscm-nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: #14251b; }
.wscm-nav-avatar-fallback { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #14251b; color: #35e982; font-weight: 900; font-size: 14px; }

/* 移动端汉堡 */
.wscm-nav-toggle {
  display: none; grid: place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: #f4fff8; border-radius: 8px; cursor: pointer;
}
.wscm-nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .wscm-nav-toggle { display: grid; } }

/* 移动菜单 */
.wscm-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100svh - 72px);
  overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,.08);
  background: #060a08;
  padding: 6px 20px 16px;
  box-shadow: 0 18px 36px rgba(0,0,0,.42);
}
.wscm-nav-mobile.open { display: flex; }
.wscm-nav-mobile a { display: flex; align-items: center; min-height: 48px; color: #92a198; text-decoration: none; font-size: 15px; font-weight: 700; padding: 0 6px; }
.wscm-nav-mobile a:hover, .wscm-nav-mobile a[aria-current="page"] { color: #35e982; }

/* ── 账户侧边抽屉（右侧滑出，对齐首页 account-menu）── */
.wscm-acct-host { position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 2000; }
.wscm-acct-menu { position: absolute; top: 0; right: 0; bottom: 0; width: 100%; overflow-y: auto; border-left: 1px solid rgba(255,255,255,.11); background: #0b0f0d; box-shadow: -18px 0 48px rgba(0,0,0,.42); padding: 18px 0 24px; color: #eaf6ef; }
.wscm-acct-menu[hidden] { display: none; }
.wscm-acct-close { position: absolute; top: 10px; right: 10px; z-index: 5; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.4); color: #fff; font-size: 18px; cursor: pointer; }

.wscm-acct-summary { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(53,233,130,.035); text-align: center; }
.wscm-acct-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; display: block; border: 1px solid rgba(53,233,130,.4); }
.wscm-acct-avatar-fallback { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; background: #14251b; color: #35e982; font-size: 26px; font-weight: 900; }
.wscm-acct-kicker { color: #8a9a90; font-size: 11px; font-weight: 700; }
.wscm-acct-nick { display: block; color: #eaf6ef; font-size: 19px; font-weight: 900; margin-top: 4px; }
.wscm-acct-account { display: block; margin-top: 3px; color: #8a9a90; font-size: 12px; overflow-wrap: anywhere; }

.wscm-acct-membership { margin: 14px 14px 0; padding: 16px; border-radius: 12px; background: linear-gradient(135deg,#ffe9a6,#f5c94f); border: 1px solid #e0b63c; }
.wscm-acct-membership.is-vip { background: linear-gradient(135deg,#ffdf8e,#f0bd3f); border-color: #d9a82e; }
.wscm-acct-vip-expiry { color: #4a3206; font-size: 14px; font-weight: 900; }
.wscm-acct-notvip { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wscm-acct-notvip-text { color: #5c4a00; font-size: 14px; font-weight: 800; }
.wscm-acct-become-vip { flex: 0 0 auto; padding: 9px 18px; border: 1px solid #d9a82e; border-radius: 9px; color: #f5c94f; background: #0e1712; cursor: pointer; font-size: 13px; font-weight: 900; }

.wscm-acct-credits-row { display: flex; align-items: center; gap: 8px; margin: 10px 14px; padding: 12px 14px; border-radius: 10px; background: #0e1712; border: 1px solid #1e2c23; flex-wrap: wrap; }
.wscm-acct-credits-label { color: #8a9a90; font-size: 12px; }
.wscm-acct-credits-val { flex: 1; color: #49c47f; font-size: 16px; font-weight: 900; }

.wscm-acct-title { padding: 12px 18px 4px; color: #6d7a71; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.wscm-acct-item { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; gap: 16px; border: 0; border-bottom: 1px solid rgba(255,255,255,.06); background: transparent; padding: 10px 16px; color: #cfe0d6; cursor: pointer; text-align: left; }
.wscm-acct-item:hover, .wscm-acct-item:focus-visible { outline: none; background: rgba(53,233,130,.08); color: #f4fff8; }
.wscm-acct-item .wscm-acct-item-label { color: #f4fff8; font-size: 13px; font-weight: 900; }
.wscm-acct-arrow { width: 16px; height: 16px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; }
.wscm-acct-logout { border-bottom: 0; }
.wscm-acct-logout .wscm-acct-item-label { color: #ff8a8a; }
.wscm-acct-logout:hover, .wscm-acct-logout:focus-visible { background: rgba(142,28,28,.24); }
.wscm-acct-logout:hover .wscm-acct-item-label, .wscm-acct-logout:focus-visible .wscm-acct-item-label { color: #ffb3b3; }

/* 遮罩 */
.wscm-scrim { position: fixed; inset: 0; z-index: 1990; background: rgba(0,0,0,.55); }

/* ── 登录弹窗 ── */
.wscm-auth-overlay { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.7); padding: 20px; }
.wscm-auth-modal { position: relative; width: 100%; max-width: 520px; background: #0b1110; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 24px; color: #eaf6ef; }
.wscm-auth-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 14px; }
.wscm-auth-head h3 { font-size: 20px; font-weight: 900; }
.wscm-auth-close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: transparent; color: #f4fff8; cursor: pointer; font-size: 16px; }
.wscm-auth-tabs { display: flex; gap: 8px; margin: 16px 0; }
.wscm-auth-tab { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #9aab; font-size: 13px; font-weight: 800; cursor: pointer; }
.wscm-auth-tab.active { background: #35e982; border-color: #35e982; color: #04160d; }
.wscm-field { margin-bottom: 14px; }
.wscm-field label { display: block; font-size: 13px; font-weight: 800; color: #cfe0d6; margin-bottom: 6px; }
.wscm-field input { width: 100%; background: #0e1712; border: 1px solid rgba(255,255,255,.15); border-radius: 8px; color: #f4fff8; padding: 12px 14px; font-size: 14px; outline: none; }
.wscm-field input:focus { border-color: #35e982; }
.wscm-reg-field { display: none; }
.wscm-auth-modal.show-reg .wscm-reg-field { display: block; }
.wscm-auth-submit { width: 100%; background: #35e982; color: #04160d; font-weight: 900; font-size: 15px; padding: 13px; border: 0; border-radius: 8px; cursor: pointer; margin-top: 4px; }
.wscm-auth-msg { min-height: 18px; font-size: 13px; color: #f47a7a; margin: 10px 0 0; line-height: 1.5; }
.wscm-auth-msg.ok { color: #35e982; }

/* 动画：抽屉滑出、弹窗淡入 */
@keyframes wscmDrawerIn { from { transform: translateX(30px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.wscm-acct-menu:not([hidden]) { animation: wscmDrawerIn .24s ease; }
@keyframes wscmFadeIn { from { opacity: 0; } to { opacity: 1; } }
.wscm-auth-overlay { animation: wscmFadeIn .18s ease; }
