/* ============================================================
   飞扬网站 · 登录 / 注册 / 个人中心 / 积分组件
   设计规范完全对齐 css/styles.css：
   深色底 #0D1117、卡片 #161B22、主色 #4F8EF7、边框 #30363D
   ============================================================ */

/* ---------- 登录 / 注册（独立页，极简） ---------- */
.fy-auth-simple {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.fy-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border, #30363D);
}
.fy-auth-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(79, 142, 247, 0.28);
  flex: 0 0 auto;
}
.fy-auth-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.fy-auth-brand-text b {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-primary, #E6EDF3);
}
.fy-auth-brand-text i {
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--text-secondary, #8B949E);
  margin-top: 3px;
}
.fy-auth-page-title {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}
.fy-auth-page-sub {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--text-secondary, #8B949E);
}
.fy-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-secondary, #8B949E);
  cursor: pointer;
}
.fy-agree input {
  margin-top: 3px;
  accent-color: var(--primary, #4F8EF7);
  flex: 0 0 auto;
}
.fy-agree a { color: var(--primary, #4F8EF7); }
.fy-agree a:hover { text-decoration: underline; }

/* ---------- 积分展示位（页脚 / AI 侧边栏 / 输入栏 / 小弹窗） ---------- */
.fy-footer-points {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 14px 0;
  border-top: 1px solid var(--border, #30363D);
  font-size: 13px;
  color: var(--text-secondary, #8B949E);
}
.fy-fp-label { font-weight: 500; color: var(--text-primary, #E6EDF3); }
.fy-fp-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary, #4F8EF7);
  font-variant-numeric: tabular-nums;
}
.fy-fp-sub { font-size: 12.5px; }
.fy-fp-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(79, 142, 247, 0.4);
  background: rgba(79, 142, 247, 0.1);
  color: var(--primary, #4F8EF7);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast, 200ms ease);
}
.fy-fp-btn:hover { background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623)); color: #fff; border-color: transparent; }
.fy-fp-btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.fy-fp-link { margin-left: auto; color: var(--primary, #4F8EF7); font-size: 12.5px; }
.fy-fp-link:hover { text-decoration: underline; }

.fy-sidebar-points {
  margin: 10px 12px 14px;
  padding: 13px 14px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid rgba(79, 142, 247, 0.2);
  background: rgba(79, 142, 247, 0.08);
}
.fy-sp-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-secondary, #8B949E); }
.fy-sp-head a { color: var(--primary, #4F8EF7); }
.fy-sp-value {
  margin: 6px 0 2px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary, #4F8EF7);
  font-variant-numeric: tabular-nums;
}
.fy-sp-sub { font-size: 11.5px; color: var(--text-secondary, #8B949E); line-height: 1.6; }
.fy-sp-btn {
  width: 100%;
  margin-top: 9px;
  padding: 7px 10px;
  border-radius: var(--radius-sm, 8px);
  border: 0;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.fy-sp-btn[disabled] { opacity: 0.6; cursor: not-allowed; }

.fy-wallet-pop {
  position: fixed;
  z-index: 2147483000;
  padding: 14px 15px 15px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border, #30363D);
  background: var(--bg-card, #161B22);
  box-shadow: var(--shadow-lg, 0 8px 40px rgba(0, 0, 0, 0.5));
  color: var(--text-primary, #E6EDF3);
  font-family: inherit;
  animation: fyPopIn 0.16s ease;
}
@keyframes fyPopIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.fy-wp-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-secondary, #8B949E); margin-bottom: 6px; }
.fy-wp-close { width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary, #8B949E); font-size: 16px; cursor: pointer; }
.fy-wp-close:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.fy-wp-points { display: flex; align-items: baseline; gap: 6px; }
.fy-wp-points strong { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--primary, #4F8EF7); font-variant-numeric: tabular-nums; }
.fy-wp-points span { font-size: 12px; color: var(--text-secondary, #8B949E); }
.fy-wp-sub { font-size: 11.5px; color: var(--text-secondary, #8B949E); margin: 2px 0 8px; line-height: 1.6; }
.fy-wp-status { font-size: 12px; color: var(--secondary, #F5A623); margin-bottom: 8px; }
.fy-wp-main-btn { width: 100%; justify-content: center; padding: 8px 12px; font-size: 13px; }
.fy-wp-link { display: block; text-align: center; margin-top: 9px; font-size: 12px; color: var(--primary, #4F8EF7); }
.fy-wp-link:hover { text-decoration: underline; }

.msg-usage-points { color: var(--secondary, #F5A623); }
.usage-points-cost strong { color: var(--secondary, #F5A623); }
.perf-seg.perf-points strong { color: var(--secondary, #F5A623); }
.tool-btn-points.is-empty { color: #F87171; }

/* ---------- AI 积分宣传（首页 / AI 页） ---------- */
.ai-credit-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 18px auto 0;
  padding: 9px 16px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(79, 142, 247, 0.26);
  background: rgba(79, 142, 247, 0.08);
  color: var(--text-secondary, #8B949E);
  font-size: 12.5px;
  line-height: 1.6;
}
.ai-credit-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary, #4F8EF7);
  box-shadow: 0 0 8px rgba(79, 142, 247, 0.8);
  flex: 0 0 auto;
}
.ai-credit-note strong { color: var(--primary, #4F8EF7); font-weight: 600; }
.ai-credit-note a { color: var(--primary, #4F8EF7); }
.ai-credit-note a:hover { text-decoration: underline; }

.ai-promo-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 32px;
  align-items: center;
  padding: 40px 42px;
  border-radius: var(--radius-lg, 24px);
  border: 1px solid var(--border, #30363D);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(79, 142, 247, 0.18), transparent 55%),
    linear-gradient(135deg, #161B22, #0F141B);
  overflow: hidden;
}
.ai-promo-card::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  right: -110px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.12);
  filter: blur(70px);
  pointer-events: none;
}
.ai-promo-copy { position: relative; z-index: 1; }
.ai-promo-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  margin: 14px 0 12px;
  font-weight: 700;
}
.ai-promo-copy p {
  color: var(--text-secondary, #8B949E);
  font-size: 14.5px;
  line-height: 1.9;
  margin: 0 0 22px;
  max-width: 620px;
}
.ai-promo-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ai-promo-figure {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid rgba(79, 142, 247, 0.24);
  background: rgba(13, 17, 23, 0.55);
}
.ai-promo-figure .num {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.05;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.ai-promo-figure .unit { font-size: 14px; color: var(--text-primary, #E6EDF3); font-weight: 600; }
.ai-promo-figure .sub { font-size: 12px; color: var(--text-secondary, #8B949E); line-height: 1.7; }

@media (max-width: 820px) {
  .ai-promo-card { grid-template-columns: 1fr; padding: 28px 22px; }
  .ai-promo-figure { justify-self: stretch; }
}

/* 顶部导航已登录用户（头像 + 昵称） */
.nav-links a.fy-nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(79, 142, 247, 0.22);
  background: rgba(79, 142, 247, 0.07);
  color: var(--text-primary, #E6EDF3);
  font-size: 13px;
  max-width: 190px;
}
.nav-links a.fy-nav-user::after { display: none; }
.nav-links a.fy-nav-user:hover { border-color: var(--primary, #4F8EF7); background: rgba(79, 142, 247, 0.14); color: #fff; }
.fy-nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  flex: 0 0 auto;
}
.fy-nav-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .nav-links a.fy-nav-user { max-width: none; }
}

/* ---------- 全站入口胶囊（导航 / AI 顶栏 / 悬浮） ---------- */
.fy-auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid rgba(79, 142, 247, 0.32);
  background: rgba(79, 142, 247, 0.1);
  color: var(--text-primary, #E6EDF3);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  transition: all var(--transition-fast, 200ms ease);
  -webkit-tap-highlight-color: transparent;
}
.fy-auth-chip:hover {
  background: rgba(79, 142, 247, 0.2);
  border-color: var(--primary, #4F8EF7);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 142, 247, 0.22);
}
.fy-auth-chip:active { transform: translateY(0); }
.fy-auth-chip .fy-chip-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary, #4F8EF7);
  box-shadow: 0 0 8px rgba(79, 142, 247, 0.8);
  flex: 0 0 auto;
}
.fy-auth-chip.is-guest .fy-chip-dot { background: var(--secondary, #F5A623); box-shadow: 0 0 8px rgba(245, 166, 35, 0.7); }
.fy-auth-chip.is-empty .fy-chip-dot { background: #F87171; box-shadow: 0 0 8px rgba(248, 113, 113, 0.7); }
.fy-auth-chip .fy-chip-points { color: #A8C6FF; font-variant-numeric: tabular-nums; }
.fy-chip-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  flex: 0 0 auto;
}
.fy-auth-chip .fy-chip-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; }

.fy-auth-float { position: fixed; right: 18px; bottom: 18px; z-index: 900; }

/* ---------- 登录 / 注册页 ---------- */
.fy-auth-section {
  position: relative;
  padding: calc(var(--navbar-height, 70px) + 64px) 0 88px;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.fy-auth-section > .container { width: 100%; }
.fy-auth-section::before,
.fy-auth-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.fy-auth-section::before {
  width: 520px; height: 520px;
  left: -160px; top: -80px;
  background: rgba(79, 142, 247, 0.16);
}
.fy-auth-section::after {
  width: 460px; height: 460px;
  right: -140px; bottom: -120px;
  background: rgba(245, 166, 35, 0.08);
}
.fy-auth-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 72px;
  align-items: center;
}
.fy-auth-visual .fy-auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.fy-auth-visual .fy-auth-logo img {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(79, 142, 247, 0.3);
}
.fy-auth-visual .fy-auth-logo span {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-primary, #E6EDF3);
}
.fy-auth-visual h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.fy-auth-visual .fy-auth-slogan {
  color: var(--text-secondary, #8B949E);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 22px;
  max-width: 480px;
}
.fy-auth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.fy-auth-chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid var(--border, #30363D);
  background: rgba(22, 27, 34, 0.66);
  color: var(--text-secondary, #8B949E);
  font-size: 12.5px;
}
.fy-auth-chip-tag svg { width: 14px; height: 14px; color: var(--primary, #4F8EF7); }
.fy-auth-visual .btn { padding: 10px 24px; font-size: 14px; }
.fy-auth-intro .tag { margin-bottom: 22px; }
.fy-auth-intro h1 {
  font-size: clamp(32px, 4.4vw, 46px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.fy-auth-intro p {
  color: var(--text-secondary, #8B949E);
  font-size: 15px;
  line-height: 1.9;
  max-width: 520px;
  margin: 0 0 28px;
}
.fy-auth-benefits { display: grid; gap: 14px; max-width: 520px; }
.fy-auth-benefit {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md, 16px);
  background: rgba(22, 27, 34, 0.6);
  border: 1px solid var(--border, #30363D);
}
.fy-auth-benefit .icon {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(79, 142, 247, 0.14);
  color: var(--primary, #4F8EF7);
}
.fy-auth-benefit .icon svg { width: 19px; height: 19px; }
.fy-auth-benefit b { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary, #E6EDF3); margin-bottom: 3px; }
.fy-auth-benefit span { font-size: 12.5px; color: var(--text-secondary, #8B949E); line-height: 1.6; }

.fy-auth-panel {
  position: relative;
  background: var(--bg-card, #161B22);
  border: 1px solid var(--border, #30363D);
  border-radius: var(--radius-lg, 24px);
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-lg, 0 8px 40px rgba(0,0,0,0.5));
  overflow: hidden;
}
.fy-auth-panel::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
}
.fy-auth-panel-head { margin-bottom: 20px; }
.fy-auth-panel-head h2 {
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text-primary, #E6EDF3);
}
.fy-auth-panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary, #8B949E);
  line-height: 1.65;
}

/* 标签页 */
.fy-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-full, 999px);
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid var(--border, #30363D);
  margin-bottom: 22px;
}
.fy-auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-secondary, #8B949E);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: var(--radius-full, 999px);
  cursor: pointer;
  transition: all var(--transition-fast, 200ms ease);
  font-family: inherit;
}
.fy-auth-tab:hover { color: var(--text-primary, #E6EDF3); }
.fy-auth-tab.is-active {
  color: #fff;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  box-shadow: 0 6px 18px rgba(79, 142, 247, 0.28);
}

/* 表单 */
.fy-field { margin-bottom: 15px; }
.fy-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary, #8B949E);
  margin-bottom: 7px;
}
.fy-field label em {
  font-style: normal;
  font-size: 11.5px;
  color: #6E7681;
}
.fy-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border, #30363D);
  background: var(--bg-dark, #0D1117);
  color: var(--text-primary, #E6EDF3);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast, 200ms ease), box-shadow var(--transition-fast, 200ms ease);
}
.fy-input::placeholder { color: #6E7681; }
.fy-input:focus {
  border-color: var(--primary, #4F8EF7);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.16);
}
.fy-input-wrap { position: relative; }
.fy-input-wrap .fy-input { padding-right: 46px; }
.fy-eye {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #6E7681;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.fy-eye:hover { color: var(--primary, #4F8EF7); background: rgba(79, 142, 247, 0.1); }
.fy-eye svg { width: 17px; height: 17px; }

.fy-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fy-auth-error {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 12.5px;
  color: #F87171;
}

.fy-btn-block {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 600;
}
.fy-btn-block[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

.fy-auth-note {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(79, 142, 247, 0.08);
  border: 1px solid rgba(79, 142, 247, 0.18);
  font-size: 12px;
  line-height: 1.7;
  color: #A9B7C6;
}
.fy-auth-note b { color: var(--primary, #4F8EF7); }
.fy-auth-footline {
  margin-top: 16px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-secondary, #8B949E);
}
.fy-auth-footline a { color: var(--primary, #4F8EF7); }
.fy-auth-footline a:hover { text-decoration: underline; }

.fy-auth-guest-hint {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  border: 1px dashed var(--border, #30363D);
  font-size: 12px;
  color: var(--text-secondary, #8B949E);
}
.fy-auth-guest-hint strong { color: var(--secondary, #F5A623); font-size: 14px; }

/* ---------- 个人中心 ---------- */
.fy-account-section {
  position: relative;
  padding: calc(var(--navbar-height, 70px) + 52px) 0 90px;
  min-height: 68vh;
  overflow: hidden;
}
.fy-account-section::before {
  content: '';
  position: absolute;
  width: 560px; height: 560px;
  right: -180px; top: -140px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.12);
  filter: blur(100px);
  pointer-events: none;
}
.fy-account-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fy-account-head h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 0 0 6px;
  font-weight: 700;
}
.fy-account-head p { margin: 0; color: var(--text-secondary, #8B949E); font-size: 14px; }
.fy-account-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.fy-account-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.fy-account-col { display: grid; gap: 24px; }

.fy-card {
  background: var(--bg-card, #161B22);
  border: 1px solid var(--border, #30363D);
  border-radius: var(--radius-md, 16px);
  padding: 24px;
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.3));
}
.fy-card h3 {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #E6EDF3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fy-card h3 svg { width: 18px; height: 18px; color: var(--primary, #4F8EF7); }

.fy-profile-row { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.fy-avatar {
  width: 58px; height: 58px;
  border-radius: var(--radius-md, 16px);
  display: grid;
  place-items: center;
  font-size: 23px;
  font-weight: 700;
  color: #fff;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  box-shadow: 0 8px 22px rgba(79, 142, 247, 0.28);
  flex: 0 0 auto;
}
.fy-profile-name { font-size: 18px; font-weight: 600; }
.fy-profile-meta { font-size: 12.5px; color: var(--text-secondary, #8B949E); margin-top: 4px; }

.fy-kv { display: grid; grid-template-columns: 82px 1fr; gap: 10px 12px; font-size: 13px; margin: 0; }
.fy-kv dt { color: var(--text-secondary, #8B949E); }
.fy-kv dd { margin: 0; color: var(--text-primary, #E6EDF3); word-break: break-all; }

.fy-wallet-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.fy-wallet-points {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.fy-wallet-unit { font-size: 13px; color: var(--text-secondary, #8B949E); }
.fy-wallet-tokens { font-size: 12.5px; color: var(--text-secondary, #8B949E); margin-bottom: 8px; }
.fy-wallet-split { font-size: 12.5px; color: var(--text-secondary, #8B949E); margin-bottom: 14px; }
.fy-wallet-split strong { color: var(--secondary, #F5A623); font-weight: 600; }
.fy-wallet-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.fy-wallet-cat {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(139, 148, 158, 0.18);
  background: rgba(139, 148, 158, 0.05);
}
.fy-wallet-cat span { display: block; font-size: 11.5px; color: var(--text-secondary, #8B949E); white-space: nowrap; }
.fy-wallet-cat strong { display: block; margin-top: 3px; font-size: 16px; color: var(--text-primary, #E6EDF3); font-variant-numeric: tabular-nums; }
.fy-wallet-cat:nth-child(1) strong { color: #10B981; }
.fy-wallet-cat:nth-child(2) strong { color: #4F8EF7; }
.fy-wallet-cat:nth-child(3) strong { color: #F5A623; }
@media (max-width: 520px) { .fy-wallet-cat strong { font-size: 14px; } }
.fy-wallet-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(48, 54, 61, 0.9);
  overflow: hidden;
  margin-bottom: 18px;
}
.fy-wallet-bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-primary, linear-gradient(135deg, #4F8EF7, #F5A623));
  transition: width 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.fy-wallet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.fy-wallet-meta div {
  padding: 10px 12px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(13, 17, 23, 0.72);
  border: 1px solid var(--border, #30363D);
  font-size: 11.5px;
  color: var(--text-secondary, #8B949E);
}
.fy-wallet-meta strong { display: block; margin-top: 3px; font-size: 14px; color: var(--text-primary, #E6EDF3); font-weight: 600; }

.fy-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: var(--radius-full, 999px);
  font-size: 11px;
  font-weight: 500;
  background: rgba(52, 211, 153, 0.12);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.26);
}
.fy-badge.is-warn { background: rgba(245, 166, 35, 0.12); color: var(--secondary, #F5A623); border-color: rgba(245, 166, 35, 0.3); }
.fy-badge.is-muted { background: rgba(139, 148, 158, 0.12); color: var(--text-secondary, #8B949E); border-color: var(--border, #30363D); }

.fy-ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
.fy-ledger th, .fy-ledger td { padding: 10px 8px; border-bottom: 1px solid var(--border, #30363D); text-align: left; vertical-align: top; }
.fy-ledger th { color: var(--text-secondary, #8B949E); font-weight: 500; font-size: 12px; white-space: nowrap; }
.fy-ledger td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fy-ledger td.fy-ledger-note {
  min-width: 120px;
  color: var(--text-secondary, #8B949E);
  line-height: 1.6;
  word-break: break-word;
}
.fy-ledger .fy-ledger-sub { display: block; margin-top: 2px; font-size: 11px; color: var(--text-secondary, #8B949E); white-space: nowrap; }
[data-fy-ledger] { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .fy-ledger { font-size: 12px; min-width: 340px; }
  .fy-ledger th, .fy-ledger td { padding: 9px 6px; }
  .fy-ledger td.fy-ledger-note { min-width: 0; }
}
.fy-ledger .pos { color: #34D399; }
.fy-ledger .neg { color: #F87171; }
.fy-ledger tr:last-child td { border-bottom: 0; }
.fy-ledger-empty { text-align: center; color: var(--text-secondary, #8B949E); padding: 30px 0; font-size: 13px; }
.fy-ledger-more { margin-top: 14px; }

/* 流水里的「来源」标签：工作模式 / 聊天模式 / 联网搜索 / 网页抓取 */
.fy-ledger-src {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  border: 1px solid rgba(139, 148, 158, 0.28);
  color: var(--text-secondary, #8B949E);
  background: rgba(139, 148, 158, 0.1);
}
.fy-ledger-src.is-work {
  color: #4F8EF7;
  border-color: rgba(79, 142, 247, 0.35);
  background: rgba(79, 142, 247, 0.12);
}
.fy-ledger-src.is-chat {
  color: #34D399;
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.12);
}
.fy-ledger-src.is-search {
  color: #F5A623;
  border-color: rgba(245, 166, 35, 0.34);
  background: rgba(245, 166, 35, 0.12);
}
.fy-ledger-src.is-fetch {
  color: #A78BFA;
  border-color: rgba(167, 139, 250, 0.34);
  background: rgba(167, 139, 250, 0.12);
}
.fy-ledger-type { font-size: 12.5px; color: var(--text-primary, #E6EDF3); }

/* 流水里的「服务商」标签：这条积分由魔搭免费额度还是 DeepSeek 官方付费额度消耗 */
.fy-ledger-provider {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
  border: 1px solid rgba(79, 142, 247, 0.32);
  color: #9CC0FF;
  background: rgba(79, 142, 247, 0.12);
}
.fy-ledger-provider.is-modelscope {
  color: #7DD3A0;
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.12);
}

/* 钱包卡片里的「当前 AI 服务商」一行 */
.fy-wallet-provider {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 12px;
  padding: 8px 11px;
  border-radius: 10px;
  border: 1px solid rgba(79, 142, 247, 0.2);
  background: rgba(79, 142, 247, 0.07);
  font-size: 12px;
  color: var(--text-secondary, #8B949E);
}
.fy-provider-label { color: var(--text-secondary, #8B949E); }
.fy-provider-name {
  font-weight: 600;
  color: #9CC0FF;
}
.fy-provider-name.is-modelscope { color: #7DD3A0; }
.fy-provider-quota {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #7DD3A0;
  font-size: 11px;
}
.fy-provider-backup { color: var(--text-secondary, #8B949E); font-size: 11.5px; }
.fy-provider-empty { color: var(--text-secondary, #8B949E); }

/* 个人中心：近 30 天消耗来源 */
.fy-wallet-sources { margin: 0 0 16px; }
.fy-src-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-secondary, #8B949E);
}
.fy-src-head strong {
  font-size: 13px;
  color: var(--text-primary, #E6EDF3);
  font-variant-numeric: tabular-nums;
}
.fy-src-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fy-src-item {
  position: relative;
  padding: 9px 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(139, 148, 158, 0.18);
  background: rgba(139, 148, 158, 0.05);
  overflow: hidden;
}
.fy-src-item .fy-src-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary, #8B949E);
}
.fy-src-item .fy-src-name em { font-style: normal; font-size: 10.5px; opacity: 0.75; }
.fy-src-item strong {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #E6EDF3);
  font-variant-numeric: tabular-nums;
}
.fy-src-item i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.55;
}
.fy-src-item.is-work { color: #4F8EF7; }
.fy-src-item.is-chat { color: #34D399; }
.fy-src-item.is-search { color: #F5A623; }
.fy-src-item.is-fetch { color: #A78BFA; }
.fy-src-item.is-work strong, .fy-src-item.is-chat strong,
.fy-src-item.is-search strong, .fy-src-item.is-fetch strong { color: var(--text-primary, #E6EDF3); }
.fy-src-item.is-work i { background: #4F8EF7; }
.fy-src-item.is-chat i { background: #34D399; }
.fy-src-item.is-search i { background: #F5A623; }
.fy-src-item.is-fetch i { background: #A78BFA; }

/* 手机：来源统计两列不减到 1 列（4 项刚好 2×2），流水表格横向滚动 */
@media (max-width: 520px) {
  .fy-src-grid { gap: 7px; }
  .fy-src-item { padding: 8px 9px 10px; }
  .fy-src-item strong { font-size: 14px; }
  .fy-ledger-src { margin-right: 4px; padding: 1px 6px; font-size: 10.5px; }
}

.fy-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.fy-inline-actions .btn { padding: 8px 18px; font-size: 13px; }

.fy-account-gate { max-width: 460px; margin: 8vh auto 0; text-align: center; }
.fy-account-gate .fy-avatar { margin: 0 auto 18px; width: 72px; height: 72px; font-size: 28px; }
.fy-account-gate h2 { font-size: 24px; margin: 0 0 10px; }
.fy-account-gate p { color: var(--text-secondary, #8B949E); font-size: 14px; line-height: 1.8; margin: 0 0 22px; }

/* 个人中心表单子块 */
.fy-subform { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--border, #30363D); }
.fy-subform[hidden] { display: none; }
.fy-subform .fy-field:last-of-type { margin-bottom: 12px; }

/* ---------- 弹窗（仅用于积分耗尽提示） ---------- */
.fy-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.66);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fyFadeIn 0.2s ease forwards;
}
@keyframes fyFadeIn { to { opacity: 1; } }

.fy-auth-dialog {
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 26px 24px 22px;
  border-radius: var(--radius-lg, 24px);
  border: 1px solid var(--border, #30363D);
  background: var(--bg-card, #161B22);
  box-shadow: var(--shadow-lg, 0 8px 40px rgba(0,0,0,0.5));
  color: var(--text-primary, #E6EDF3);
  transform: translateY(10px);
  animation: fyDialogIn 0.22s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}
@keyframes fyDialogIn { to { transform: translateY(0); } }

.fy-auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.fy-auth-title { font-size: 20px; font-weight: 700; margin: 0 0 6px; }
.fy-auth-sub { margin: 0; font-size: 13px; color: var(--text-secondary, #8B949E); line-height: 1.7; }
.fy-auth-close {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #8B949E);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.fy-auth-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.fy-quota-actions { display: grid; gap: 10px; margin-top: 16px; }
.fy-quota-actions .btn { justify-content: center; width: 100%; }

/* ---------- 轻提示 ---------- */
.fy-toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%) translateY(12px);
  z-index: 2147483001;
  max-width: min(90vw, 420px);
  padding: 11px 18px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  color: var(--text-primary, #E6EDF3);
  background: var(--bg-card, #161B22);
  border: 1px solid var(--border, #30363D);
  box-shadow: var(--shadow-md, 0 4px 20px rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.fy-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fy-toast.is-error { border-color: rgba(248, 113, 113, 0.45); color: #FCA5A5; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .fy-auth-layout { grid-template-columns: 1fr; gap: 36px; }
  .fy-auth-visual { text-align: center; }
  .fy-auth-visual .fy-auth-logo { justify-content: center; }
  .fy-auth-visual .fy-auth-slogan { margin-left: auto; margin-right: auto; }
  .fy-auth-chips { justify-content: center; }
  .fy-auth-panel { max-width: 520px; margin: 0 auto; width: 100%; }
  .fy-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .fy-auth-section { padding-top: calc(var(--navbar-height, 70px) + 36px); }
  .fy-auth-panel { padding: 24px 18px 20px; }
  .fy-form-row { grid-template-columns: 1fr; }
  .fy-account-section { padding-top: calc(var(--navbar-height, 70px) + 28px); }
  .fy-card { padding: 18px 16px; }
  .fy-account-head { align-items: flex-start; }
  .fy-wallet-points { font-size: 34px; }
  .fy-auth-float { right: 12px; bottom: 12px; }
  .fy-auth-float .fy-auth-chip { padding: 9px 12px; font-size: 12px; }
}

/* ---------- 积分说明条：手机上别撑成一大块 ---------- */
.ai-credit-note { max-width: 100%; text-align: left; }
@media (max-width: 640px) {
  .ai-credit-note {
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    line-height: 1.65;
  }
  .ai-credit-note .ai-credit-text { flex: 1 1 100%; min-width: 0; }
  .ai-credit-note .ai-credit-link { margin-left: auto; white-space: nowrap; }
}

/* ---------- 页脚账号入口：并进最后一列，不新增列，桌面始终保持 3 列 ---------- */
.footer-links-column a[hidden] { display: none; }

/* 手机：链接区两列、左对齐，中文不再一字一行 */
@media (max-width: 768px) {
  .footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    gap: 26px 14px;
    text-align: left;
  }
  .footer-links-column {
    align-items: flex-start;
  }
}

/* ============================================================
   云能账号接入：登录页三方登录区 / 扫码登录 / 绑定页
   ============================================================ */
.fy-oauth-zone { margin-top: 2px; }

.fy-oauth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  font-size: 12px;
  color: var(--text-secondary, #8B949E);
}
.fy-oauth-divider::before,
.fy-oauth-divider::after {
  content: '''';
  flex: 1 1 auto;
  height: 1px;
  background: var(--border, #30363D);
}

.fy-oauth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md, 14px);
  border: 1px solid rgba(79, 142, 247, 0.38);
  background: rgba(79, 142, 247, 0.08);
  color: var(--text-primary, #E6EDF3);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast, 200ms ease);
}
.fy-oauth-btn:hover {
  background: rgba(79, 142, 247, 0.16);
  border-color: rgba(79, 142, 247, 0.65);
  transform: translateY(-1px);
}
.fy-oauth-logo {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #4F8EF7, #2F6FE0);
  box-shadow: 0 6px 16px rgba(79, 142, 247, 0.35);
}
/* 「云」字兜底：logo 加载失败时仍是一个可辨识的图标块 */
.fy-oauth-logo > i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.fy-oauth-logo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 240ms ease;
}
.fy-oauth-side-logo {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  overflow: hidden;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(79, 142, 247, 0.16);
  color: var(--primary, #4F8EF7);
}
.fy-oauth-side-logo > svg { width: 12px; height: 12px; }
.fy-oauth-side-logo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 240ms ease;
}
.fy-oauth-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.fy-oauth-text b { font-size: 14px; font-weight: 600; }
.fy-oauth-text i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-secondary, #8B949E);
  margin-top: 2px;
}
.fy-oauth-arrow { width: 16px; height: 16px; margin-left: auto; opacity: 0.55; flex: 0 0 auto; }

.fy-oauth-qr-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-full, 999px);
  border: 1px dashed var(--border, #30363D);
  background: transparent;
  color: var(--text-secondary, #8B949E);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast, 200ms ease);
}
.fy-oauth-qr-toggle svg { width: 16px; height: 16px; }
.fy-oauth-qr-toggle:hover,
.fy-oauth-qr-toggle.is-open {
  color: var(--primary, #4F8EF7);
  border-color: rgba(79, 142, 247, 0.55);
  background: rgba(79, 142, 247, 0.07);
}

.fy-oauth-qr { margin-top: 14px; }
.fy-oauth-qr[hidden] { display: none; }

/* ---------- 二维码面板 ---------- */
.fy-qr-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px 14px;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border, #30363D);
  background: var(--bg-card, #161B22);
}
.fy-qr-box {
  width: 176px;
  height: 176px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fy-qr-box svg { width: 100% !important; height: 100% !important; display: block; }
.fy-qr-placeholder {
  font-size: 12px;
  color: #6E7681;
  text-align: center;
  line-height: 1.7;
  padding: 0 8px;
}
.fy-qr-status {
  font-size: 12.5px;
  color: var(--text-secondary, #8B949E);
  text-align: center;
  min-height: 18px;
  line-height: 1.6;
}
.fy-qr-status.is-wait { color: #F5A623; }
.fy-qr-status.is-ok { color: #3FB950; }
.fy-qr-status.is-error { color: #F85149; }
.fy-qr-hint { font-size: 11.5px; color: #6E7681; text-align: center; }
.fy-qr-refresh {
  margin-top: 2px;
  padding: 6px 16px;
  border-radius: var(--radius-full, 999px);
  border: 1px solid var(--border, #30363D);
  background: transparent;
  color: var(--text-secondary, #8B949E);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast, 200ms ease);
}
.fy-qr-refresh:hover { color: var(--primary, #4F8EF7); border-color: rgba(79, 142, 247, 0.5); }
.fy-qr-fallback { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px; }
.fy-qr-fallback p { margin: 0; font-size: 12px; color: #6E7681; text-align: center; line-height: 1.7; }

/* 表单校验失败时轻微抖动，提示用户看勾选框 */
@keyframes fy-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.fy-agree.is-shake { animation: fy-shake 480ms ease; }

/* ---------- 回调页状态 ---------- */
.fy-oauth-result {
  max-width: 460px;
  margin: 96px auto;
  padding: 40px 32px;
  border-radius: var(--radius-lg, 20px);
  border: 1px solid var(--border, #30363D);
  background: var(--bg-card, #161B22);
  text-align: center;
}
.fy-oauth-result .fy-auth-page-title { font-size: 22px; }
.fy-oauth-result .fy-auth-page-sub { margin-bottom: 8px; }
.fy-oauth-spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid rgba(79, 142, 247, 0.22);
  border-top-color: var(--primary, #4F8EF7);
  animation: fy-spin 800ms linear infinite;
}
@keyframes fy-spin { to { transform: rotate(360deg); } }
.fy-oauth-result.is-error .fy-oauth-spinner { display: none; }
.fy-oauth-result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.fy-oauth-result-actions[hidden] { display: none; }

/* ---------- 绑定页 ---------- */
.fy-bind-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--radius-md, 14px);
  border: 1px solid rgba(79, 142, 247, 0.25);
  background: rgba(79, 142, 247, 0.08);
  font-size: 13px;
}
.fy-bind-identity[hidden] { display: none; }
.fy-bind-identity-label { color: var(--text-secondary, #8B949E); flex: 0 0 auto; }
.fy-bind-identity strong { color: var(--text-primary, #E6EDF3); font-weight: 600; word-break: break-all; }

.fy-bind-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: var(--radius-full, 999px);
  background: rgba(110, 118, 129, 0.12);
}
.fy-bind-tabs[hidden] { display: none; }
.fy-bind-tabs button {
  flex: 1 1 0;
  padding: 9px 10px;
  border: none;
  border-radius: var(--radius-full, 999px);
  background: transparent;
  color: var(--text-secondary, #8B949E);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-fast, 200ms ease);
}
.fy-bind-tabs button.is-active {
  background: var(--bg-card, #161B22);
  color: var(--text-primary, #E6EDF3);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .fy-qr-box { width: 160px; height: 160px; }
  .fy-oauth-result { margin: 48px auto; padding: 32px 20px; }
}

/* ============================================================
   个人中心：头像修改 / 账号绑定
   ============================================================ */
.fy-avatar-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.fy-avatar-img {
  object-fit: cover;
  background: #0D1117;
  display: block;
}
.fy-avatar-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.fy-avatar-edit,
.fy-avatar-remove {
  padding: 2px 8px;
  border: none;
  border-radius: var(--radius-full, 999px);
  background: transparent;
  color: var(--text-secondary, #8B949E);
  font-size: 11.5px;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--transition-fast, 200ms ease);
  white-space: nowrap;
}
.fy-avatar-edit:hover { color: var(--primary, #4F8EF7); }
.fy-avatar-remove:hover { color: #F85149; }
.fy-avatar-edit:disabled,
.fy-avatar-remove:disabled { opacity: 0.55; cursor: not-allowed; }

.fy-nav-avatar-img { object-fit: cover; display: block; }

.fy-bind-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md, 14px);
  border: 1px solid var(--border, #30363D);
  background: rgba(110, 118, 129, 0.06);
}
.fy-bind-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #6E7681;
  box-shadow: 0 0 0 4px rgba(110, 118, 129, 0.15);
}
.fy-bind-dot.is-on {
  background: #3FB950;
  box-shadow: 0 0 0 4px rgba(63, 185, 80, 0.16);
}
.fy-bind-info { min-width: 0; }
.fy-bind-name { font-size: 14px; font-weight: 600; color: var(--text-primary, #E6EDF3); }
.fy-bind-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-secondary, #8B949E);
  line-height: 1.6;
  word-break: break-all;
}

/* ---------- 登录页：二维码默认展开（窄屏在表单下方 / 宽屏在右侧一栏） ---------- */

.fy-qr-agree {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: #6E7681;
  text-align: center;
}
.fy-qr-agree a { color: var(--primary, #4F8EF7); }
.fy-qr-agree a:hover { text-decoration: underline; }

.fy-oauth-side {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 14px;
  border-radius: var(--radius-md, 16px);
  border: 1px solid var(--border, #30363D);
  background: rgba(13, 17, 23, 0.45);
}
.fy-oauth-side-tip {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: #6E7681;
  text-align: center;
}
.fy-oauth-side-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #E6EDF3);
}
.fy-oauth-side-head svg { width: 15px; height: 15px; opacity: 0.7; flex: 0 0 auto; }
.fy-oauth-side .fy-oauth-qr { margin-top: 0; }

/* 宽屏：登录面板变成「表单 + 二维码」两列，二维码在右侧与表单并排 */
@media (min-width: 1200px) {
  .fy-auth-layout.has-side-qr {
    grid-template-columns: minmax(0, 1fr) 700px;
    gap: 56px;
  }
  .fy-auth-panel.has-side-qr {
    /* 显式定宽：只靠父级列宽时，一旦 layout 的规则没命中，
       面板会被压回 430px，两列就把表单挤成一条（这个坑踩过一次）。 */
    width: 700px;
    max-width: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 236px;
    grid-template-areas:
      "title side"
      "sub   side"
      "form  side"
      "oauth side";
    column-gap: 26px;
    align-content: start;
  }
  .fy-auth-panel.has-side-qr > .fy-auth-page-title { grid-area: title; }
  .fy-auth-panel.has-side-qr > .fy-auth-page-sub { grid-area: sub; }
  .fy-auth-panel.has-side-qr > [data-fy-auth-form] { grid-area: form; min-width: 0; }
  .fy-auth-panel.has-side-qr > .fy-oauth-zone { grid-area: oauth; }
  .fy-auth-panel.has-side-qr > .fy-oauth-side { grid-area: side; margin-top: 0; }
}

/* ---------- 账号绑定：两种绑定入口 / 内嵌二维码 ---------- */
.fy-bind-methods {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.fy-bind-methods .btn {
  flex: 1 1 140px;
  text-align: center;
  justify-content: center;
}
.fy-bind-qr { margin-top: 14px; }
.fy-bind-qr[hidden] { display: none; }
