/* ===== 设计系统：简约 · 蓝色基调 · 浅色 ===== */
:root {
  /* 背景层级（浅色） */
  --bg-void: #ffffff;
  --bg-primary: #f8fafc;
  --bg-subtle: #f1f5f9;

  /* 玻璃表面（浅色玻璃） */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-hover: rgba(0, 0, 0, 0.04);

  /* 文字层级 */
  --text-primary: #3c4c61;
  --text-secondary: #3c4c61;
  --text-muted: #64748b;
  --text-ghost: #94a3b8;

  /* 主色：蓝色 */
  --accent: #347df6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.2);

  /* 边框 */
  --border-color: #e1e5e8;
  --border: 0.16vw solid var(--border-color);
  --border-thin: 0.08vw solid var(--border-color);
  --border-glass: 0.16vw solid var(--glass-border);

  /* 底色： 灰色 */
  --bg-gray: #f1f5f9;
  --bg-gray-border: #e1e5e8;

  /* 字体 */
  --font-body: "SourceHanSansCN-Regular", "Source Han Sans CN", sans-serif;
  --font-heading: var(--font-body);
  --font-mono: var(--font-body);
  --font-medium: "SourceHanSansCN-Medium", "Source Han Sans CN", sans-serif;
  --font-bold: "SourceHanSansCN-Bold", "Source Han Sans CN", sans-serif;

  /* 间距 */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* 流体间距（响应式） */
  --space-inline: clamp(1rem, 4vw, 2rem);
  --space-block: clamp(1.5rem, 4vw, 3rem);

  /* 容器宽度（PC 默认 480/640，小屏在 max-width: 1023px 中覆盖） */
  --container-max: 480px;
  --container-wide-max: 640px;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* vw 尺寸（便于统一调整） */
  --fs-xs: 0.79vw;
  --fs-sm: 0.89vw;
  --fs-base: 0.99vw;
  --fs-md: 1.03vw;
  --radius-btn: 0.7vw;
  --radius-card: 1.41vw;
  --size-btn: 2.62vw;
  --border-width-thin: 0.08vw;
  --space-vw-141: 1.41vw;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  max-width: 100vw;
}

/* ===== 布局 ===== */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 桌面端：.app-body 左 sidebar、右 .app-right（含 .app-layout + #footer-mount） */
.app-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-right {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-layout {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.app-content {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 侧边栏：PC 端显示 */
.app-sidebar {
  display: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1vw;
}

.sidebar-nav a {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-md);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-radius: var(--radius-btn);
  text-align: center;
}

.sidebar-nav a:hover {
  background: var(--glass-hover);
  color: var(--text-primary);
}

.sidebar-nav a.active {
  background: #dce9ff;
  color: var(--accent);
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container-wide {
  max-width: var(--container-wide-max);
}

/* ===== 玻璃卡片 ===== */
.glass {
  background: #ffffff;
  border: var(--border);
  border-radius: var(--radius-card)
}

.glass-elevated {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ===== 排版 ===== */
.page-title {
  font-family: var(--font-bold);
  font-size: 1.6vw;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000000;
  margin-bottom: 1.25vw;
}

.page-desc {
  color: #455974;
  font-size: var(--fs-base);
  margin-bottom: 1vw;
  text-align: center;
}

.container-wide .page-desc {
  margin-bottom: var(--space-vw-141);
}

.label {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5vw;
  display: block;
  font-family: var(--font-medium);
  font-size: var(--fs-base);
  color: #3c4c61;
}

/* ===== 表单 ===== */
.input-wrap {
  margin-bottom: 1vw;
}

.input-wrap2 {
  margin-bottom: 0.5vw;
}

.input-with-btn {
  display: flex;
  align-items: stretch;
  height: var(--size-btn);
  border: var(--border);
  border-radius: var(--radius-btn);
  background: transparent;
  overflow: hidden;
}

.input-with-btn .input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  background: #f1f5f9;
  box-shadow: none;
}

.input-with-btn .input:focus {
  box-shadow: none;
}

.input-with-btn .btn-code {
  flex-shrink: 0;
  white-space: nowrap;
  min-width: 6vw;
  font-size: var(--fs-sm);
  font-family: var(--font-medium);
  color: #48576a;
  min-height: 0;
  padding: 0 1vw;
  font-weight: 700;
  border: none;
  border-left: 1px solid var(--glass-border);
  border-radius: 0;
}

.btn-password-toggle {
  flex-shrink: 0;
  width: 2.35vw;
  padding: 0 1vw;
  border: none;
  border-left: 1px solid var(--glass-border);
  border-radius: 0 !important;
  background: #f1f5f9;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.btn-password-toggle .password-toggle-icon {
  display: block;
  width: 1.2vw;
  height: 1.2vw;
  margin: 0 auto;
  pointer-events: none;
}

.input {
  width: 100%;
  height: var(--size-btn);
  padding: 0 1vw;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
  border-radius: var(--radius-btn);
  background: #f1f5f9;
  border: var(--border);
}

.input::placeholder {
  color: #899cb5;
}


.display-value {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
}

.input:focus-visible {
  outline: none;
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  width: 100%;
  background: var(--accent);
  color: white;
  font-size: 1.1vw;
  font-family: var(--font-medium);
  margin-top: 1vw !important;
  height: var(--size-btn);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-ghost {
  background: #f1f5f9;
  color: var(--text-secondary);
  border-radius: 0;
}

.btn-link {
  background: none;
  color: var(--accent);
  padding: 0;
  min-height: auto;
}

.btn-link:hover {
  text-decoration: none;
  color: var(--accent-hover);
}

/* ===== 标签切换（登录方式） ===== */
.tabs {
  width: 100%;
  height: calc(3.09vw - 0.16vw);
  margin-bottom: 1.37vw;
  padding: 0;
  background: #f1f5f9;
  border: var(--border-thin);
  border-radius: var(--radius-btn);
  display: flex;
  
}

.tab {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: var(--border-width-thin) solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  font-family: var(--font-medium);
  font-size: 1.1vw;
  color: var(--text-secondary);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  position: relative;
  z-index: 1;
  background: #ffffff;
  color: var(--accent);
  border: var(--border-width-thin) solid var(--accent);
}

/* ===== 链接区（找回密码等） ===== */
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.form-footer .btn-link {
  font-size: var(--fs-sm);
  text-decoration: none;
}

.form-footer .btn-link:hover {
  text-decoration: none;
}

/* ===== 登录：隐私协议勾选 ===== */
.agreement-wrap {
  margin-top: 1vw;
}

.agreement-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5vw;
  cursor: pointer;
  font-size: var(--fs-sm);
  color: #455974;
}

.agreement-checkbox {
  flex-shrink: 0;
  width: 1.095vw;
  height: 1.05vw;
  margin-top: 0.1rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.agreement-text a {
  color: var(--accent);
  text-decoration: none;
}

.agreement-text a:hover {
  color: var(--accent-hover);
}

/* ===== 导航栏 ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0.82vw 0;
  background: #ffffff;
  border-bottom: 2px solid var(--border-color);
}

.nav .nav-link-main {
  display: none;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 10.43vw;
  min-height: 0;
  align-self: stretch;
  padding: 0.78vw;
  background: #ffffff;
  border-right: 2px solid var(--border-color);
}

.app-right {
  min-width: 0;
  flex: 1;
  overflow: auto;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-bold);
  font-weight: 700;
  font-size: var(--fs-md);
  color: #000;
  text-decoration: none;
}

.nav-brand-logo-wrap {
  width: 10.43vw;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-brand-logo {
  height: 2.03vw;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-brand-text {
  display: inline;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-right: 2.01vw;
}

.nav-links a {
  font-size: var(--fs-md);
  font-family: var(--font-body);
  color: #455974;
  text-decoration: none;
  transition: color 0.2s;
  padding: var(--space-2) var(--space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

/* ===== 内容区（占满剩余宽高，bind-phone-panel 盖在其上） ===== */
.main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: var(--space-block) var(--space-inline);
}

.card {
  padding: 1vw;
  margin-bottom: var(--space-vw-141);
}

.card-title {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

/* ===== 资料行 ===== */
.profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--glass-border);
  gap: var(--space-4);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-row .label {
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: var(--fs-base);
  font-family: var(--font-medium);
  color: #000000;
  min-width: 5vw;
}

.profile-row-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  
}

.profile-hint {
  font-size: var(--fs-xs);
  color: #455974;
  margin-top: var(--space-1);
}

.profile-value {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  color: #000000;
  text-align: right;
}

/* ===== 首页：用户头像 + 昵称 ===== */
.user-header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: 1.88vw;
}

.user-avatar {
  width: 3.28vw;
  height: 3.28vw;
  border-radius: var(--radius-full);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.user-nickname {
  font-family: var(--font-medium);
  font-size: 1.47vw;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #000;
  margin: 0;
}

/* ===== 首页：设置行（密保手机/修改密码 + 修改按钮） ===== */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  cursor: pointer;
}

.setting-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.setting-info .label {
  margin-bottom: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  text-transform: none;
  color: var(--text-primary);
}

.setting-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.setting-info-row .label {
  flex-shrink: 0;
  font-size: var(--fs-base);
  font-family: var(--font-medium);
  color: #000000;
}

.setting-info-row .setting-value {
  flex-shrink: 0;
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: #000000;
}

.setting-hint {
  font-size: var(--fs-xs);
  color: #455974;
  margin-top: var(--space-1);
}

.setting-value {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.btn-text {
  width: 3.96vw;
  height: 2.27vw;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius-btn);
}

.btn-modify .btn-icon-mobile {
  display: none;
}

.btn-modify .btn-text-label {
  display: inline;
}

/* ===== 换绑手机号码：三步面板（盖在 main 上，占满剩余宽高） ===== */
.bind-phone-panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.bind-phone-panel:not(.hidden) {
  overflow: auto;
  padding: var(--space-block) var(--space-inline);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  background: var(--bg-primary);
}

.bind-phone-card {
  width: 100%;
  height: 27.89vw;
  max-width: 37.58vw;
  margin: 0 auto;
  padding: 1.88vw 8.63vw;
  border-radius: var(--radius-card);
}

#change-password-panel .bind-phone-card {
  height: 34.55vw;
}

/* 首页找回密码第三步（找回成功）内容少，卡片高度缩小 */
.bind-phone-card--step-success {
  height: 18vw;
  min-height: 280px;
}

#change-password-panel .bind-phone-card--step-success {
  height: 18vw;
  min-height: 280px;
}

.bind-phone-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 1.56vw;
  gap: 0;
}

.stepper-line {
  flex: 1;
  min-width: 8px;
  height: 3px;
  background: var(--glass-border);
  transition: background 0.2s;
}

/* 已完成步骤之间的线段为主色 */
.bind-phone-stepper[data-step="2"] .stepper-line-1,
.bind-phone-stepper[data-step="3"] .stepper-line-1,
.bind-phone-stepper[data-step="3"] .stepper-line-2 {
  background: var(--accent);
}

/* 找回密码页：步进条线段颜色 */
.forgot-stepper[data-step="2"] .stepper-line-1,
.forgot-stepper[data-step="3"] .stepper-line-1,
.forgot-stepper[data-step="3"] .stepper-line-2 {
  background: var(--accent);
}

.stepper-step {
  flex-shrink: 0;
  width: var(--size-btn);
  height: var(--size-btn);
  border-radius: 50%;
  background: var(--bg-subtle);
  border: var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.125vw;
  font-weight: 700;
  color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.stepper-step.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.stepper-num {
  display: block;
}

.bind-step-title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.63vw;
}

.bind-step-desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: 1.57vw;
}

.bind-step-success {
  color: var(--accent);
  font-weight: 500;
}

.bind-step-actions {
  display: flex;
  flex-direction: row;
  gap: 2.57vw;
  justify-content: stretch;
}

.bind-step-actions .btn {
  height: 2.58vw;
  flex: 1;
}

.bind-step-actions .btn-primary {
  width: auto;
}

/* ===== 登录/注册居中 ===== */
.auth-layout {
  /* min-height: 100vh; */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-block) var(--space-inline);
}

/* 高雅蓝大背景（登录/找回密码页）：整页含页脚均为蓝色 */
body.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 50% at 15% 25%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 75%, rgba(0, 0, 0, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, #2a9dda 0%, #2472b1 45%, #205391 100%);
}

/* 登录页整体容器：登录区 + 页脚，整体居中对齐 */
.auth-page-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 0;
}

/* 登录页：container 内登录框与页脚用 margin-bottom 间隔 */
.auth-page-wrap .container > .auth-card {
  margin-bottom: 2vw;
}

body.auth-page .auth-layout {
  flex: 1;
  min-height: 0;
}

.auth-layout--blue {
  position: relative;
  min-height: 0;
  flex: 1;
  background: transparent;
}

.auth-layout--blue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 75% 15%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.auth-card {
  width: 24.88vw;
  height: 34.7vw;
  padding: 2.265vw;
}

/* 找回密码第三步（修改成功）内容少，卡片高度缩小 */
.auth-card--step-success {
  height: 24vw;
  min-height: 320px;
}

.auth-card-logo {
  text-align: center;
  margin-bottom: 1.5vw;
}

.auth-card-logo img {
  display: block;
  margin: 0 auto;
  width: 10.47vw;
  height: 3.36vw;
  object-fit: contain;
}

/* ===== 页脚版权 ===== */
#footer-mount {
  font-size: 0.63vw;
  
}

.app-right #footer-mount {
  margin-bottom: 3.82vw;
}

.page-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  font-size: clamp(0.6875rem, 1.5vw, 0.75rem);
  line-height: 1.5;
  text-align: center;
  overflow: visible;
}

/* PC 端：隐藏手机端用的 footer 触发按钮，版权区静态展示 */
.footer-toggle,
.footer-toggle-in-panel {
  display: none;
}

.footer-copyright-panel {
  position: static;
  bottom: auto;
  left: auto;
  right: auto;
  max-height: none;
  opacity: 1;
  padding: 0;
  overflow: visible;
  background: transparent;
  color: inherit;
  box-shadow: none;
  border-radius: 0;
  display: block;
  transition: none;
}

.footer-copyright-panel .footer-copyright {
  padding: 0;
}

/* ===== Toast 弹窗（顶部居中、自动消失） ===== */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 90%;
  padding: var(--space-4) var(--space-inline);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  pointer-events: none;
}

.toast-container .toast {
  pointer-events: auto;
  min-width: min(10vw, 80vw);
  box-sizing: border-box;
}

.toast {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: var(--text-secondary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  cursor: pointer;
}

.toast.toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--info {
  background: var(--text-secondary);
}

.toast--success {
  background: #059669;
}

.toast--error {
  background: #dc2626;
}

.footer-copyright-panel .footer-copyright {
  position: static;
  width: 100%;
  margin: 0;
  padding: 0;
}

.footer-copyright {
  margin: 0;
  padding: 0;
}

.footer-copyright p {
  margin: 0 0 0.81vw;
  font-size: 0.63vw;
  word-break: break-word;
  white-space: normal;
}

.footer-copyright p:last-child {
  margin-bottom: 0;
}

.footer-copyright a {
  color: inherit;
  text-decoration: none;
}

.footer-copyright a:hover {
  opacity: 0.9;
}

/* 登录/找回密码页：整页蓝色，页脚用浅色字且不被压缩 */
body.auth-page .page-footer {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.9);
}

/* 首页/个人资料等：浅色背景用深色字，且不收缩以保证侧边栏/主内容区在页脚上方结束 */
.app .page-footer {
  flex-shrink: 0;
  color: var(--text-muted);
}

.app .footer-copyright a {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

/* ===== PC 端响应式（640 / 768 / 1024 / 1280） ===== */
:root {
  --container-max: 480px;
  --container-wide-max: 640px;
}

.container {
  max-width: var(--container-max);
}

.container-wide {
  max-width: var(--container-wide-max);
}

/* 首页、个人资料等 app 页：PC 端不限制 .container-wide 最大宽度 */
.app .container-wide {
  max-width: none;
}

/* PC 端：左侧 .app-sidebar，右侧 .app-right（.app-layout + #footer-mount） */
.app {
  height: 100vh;
  overflow: hidden;
}

.app-body {
  flex-direction: row;
  flex: 1;
  min-height: 0;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 10.43vw;
  min-height: 0;
  align-self: stretch;
  padding: 0.78vw;
  background: #ffffff;
  border-right: 2px solid var(--border-color);
}

.app-right {
  min-width: 0;
  flex: 1;
  overflow: auto;
}

.app .nav .nav-link-main {
  display: none;
}

.app-content {
  min-width: 0;
}

.main {
  padding: var(--space-12) var(--space-inline);
}

.auth-card .page-desc {
  color: #455974;
}

.auth-card .tabs {
  margin-bottom: 1vw;
}

.auth-card .tab {
  padding: 0 var(--space-3);
  font-size: 1vw;
}

.user-nickname {
  font-size: 1.5rem;
}

@media (min-width: 1280px) {
  :root {
    --container-max: 520px;
    --container-wide-max: 720px;
    --space-inline: 2.5rem;
  }

  /* .app .container-wide 已在 lg 取消最大宽度，xl 无需再设 */

  .main {
    padding: var(--space-16) var(--space-inline);
  }

  .page-footer {
    font-size: 0.8125rem;
  }
}

/* ===== 无障碍：减少动效 ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
