/* ==========================================================================
 * 问渠 WenQu — 账号页 登录 / 注册 / 个人中心 桌面深化（v7）
 * 叠加在 style.min.css / pay-extra.css 之后，仅作用于 account.html
 * --------------------------------------------------------------------------
 * · 未登录：登录 / 注册双卡并排（桌面），各自独立表单
 * · 已登录：顶部用户横幅 + 会员卡 / 学习档案双列 + 会员明细 4 卡 + 个人设置
 * · 短信验证码行、年级 chips、头像上传
 * · 字体分层：WenQuSerif 标题 · WenQuSans 正文 · WenQuDisplay 数字
 * 设计约束：无 icon、无 CSS 自绘图形、无「框内单字」标识、素材真实。
 * ========================================================================== */

/* —— 1. 未登录：账号面板双卡并排 —— */
.auth-panel { max-width: none; padding: 46px 46px 44px; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h2 { font-size: 1.65rem; margin: 0 0 4px; }
.auth-panel-sub { text-align: center; margin-bottom: 0; }

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: stretch;
}
.auth-card {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 32px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.auth-card .field { margin-bottom: 18px; }
.auth-card .field:last-of-type { margin-bottom: 22px; }
.auth-card-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: .02em;
  color: var(--ink);
  margin: 0 0 6px;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
  line-height: 1.35;
}
.auth-card-sub { font-size: .9rem; color: var(--muted); margin: 0 0 22px; letter-spacing: .01em; }
.auth-card .login-meta { margin-top: auto; padding-top: 16px; font-size: .86rem; }

/* —— 2. 表单字段 —— */
.sms-row { display: flex; gap: 12px; }
.sms-row input { flex: 1; min-width: 0; }
.sms-btn {
  white-space: nowrap;
  padding: 15px 20px;
  font-size: .9rem;
  letter-spacing: .02em;
}
.sms-btn[aria-disabled="true"] { opacity: .62; cursor: not-allowed; transform: none; }
.auth-card .btn-lg { padding: 16px 40px; }

/* —— 3. 年级 chips（account.html 未引入 study-extra.css，此处补齐） —— */
.wq-kp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wq-chip {
  font-family: var(--sans);
  font-size: .94rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  min-height: 44px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.wq-chip:hover { border-color: var(--gold); transform: translateY(-1px); }
.wq-chip.selected {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 116, 144, .32);
}

/* —— 4. 已登录：用户横幅（真实素材 + 深色渐变） —— */
.acct-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 22px;
  min-height: 128px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-lg);
}
.acct-banner picture,
.acct-banner picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.acct-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(32, 36, 47, .72), rgba(32, 36, 47, .28) 55%, rgba(32, 36, 47, .14));
}
.acct-banner-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  padding: 24px 28px;
}
.acct-banner-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* —— 5. 已登录：用户身份行 —— */
.account-user { display: flex; align-items: center; gap: 16px; min-width: 0; }
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .9);
  box-shadow: 0 6px 18px rgba(32, 36, 47, .25);
  flex: 0 0 auto;
}
.account-user-info { min-width: 0; }
.account-nickname {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: .02em;
  color: #fff;
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-phone {
  font-size: .9rem;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .82);
}
.logout-link {
  font-size: .88rem;
  color: rgba(255, 255, 255, .85);
  border-bottom: 1px dashed rgba(255, 255, 255, .5);
  padding-bottom: 2px;
  cursor: pointer;
}
.logout-link:hover { color: #f0c3b8; border-color: #f0c3b8; }

/* —— 6. 已登录：会员卡 + 学习档案 双列 —— */
.acct-cols {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}
.member-card {
  min-height: 280px;
  border-radius: 20px;
}
.member-inner { display: flex; flex-direction: column; }
.member-actions { margin-top: auto; }

/* 学习档案摘要 */
.acct-aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 26px 24px;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.acct-aside-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
}
.acct-aside-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0;
}
.acct-aside-link {
  font-family: var(--sans);
  font-size: .84rem;
  color: var(--gold-deep);
  cursor: pointer;
}
.acct-aside-link:hover { color: var(--gold); }
.acct-profile-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
}
.acct-pl-label { font-size: .9rem; color: var(--muted); }
.acct-pl-value {
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%;
}
.acct-aside-actions { margin-top: auto; padding-top: 16px; }

/* —— 7. 会员信息明细 4 卡 —— */
.acct-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.acct-meta-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.acct-meta-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(14, 116, 144, .3);
}
.acct-meta-label {
  display: block;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.acct-meta-item b {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* —— 8. 个人设置 —— */
.account-settings {
  margin: 0;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  height: 100%;
}
.account-settings-title {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--ink);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.account-avatar-hint { font-size: .8rem; color: var(--muted); margin-left: 10px; }

/* —— 9. 会员服务列表 —— */
.acct-service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
  color: var(--ink-soft);
}
.acct-service-row:last-child { border-bottom: 0; }
.acct-service-row a {
  font-family: var(--sans);
  font-size: .88rem;
  font-weight: 700;
  color: var(--gold-deep);
  white-space: nowrap;
}
.acct-service-row a:hover { color: var(--gold); }

/* —— 10. 小号按钮（横幅用） —— */
.btn-sm { padding: 9px 18px; font-size: .88rem; }

/* —— 11. 响应式 —— */
@media (max-width: 900px) {
  .auth-grid { grid-template-columns: 1fr; gap: 20px; max-width: 520px; margin: 0 auto; }
  .auth-panel { padding: 30px 24px; }
  .acct-cols { grid-template-columns: 1fr; }
  .acct-meta-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .auth-panel { padding: clamp(18px, 4.5vw, 24px) clamp(16px, 4vw, 18px); max-width: 100%; border-radius: clamp(16px, 4vw, 20px); }
  .auth-card { padding: clamp(18px, 4.5vw, 24px) clamp(16px, 4vw, 18px) clamp(20px, 5vw, 26px); border-radius: clamp(14px, 3.5vw, 18px); max-width: 100%; }
  .auth-card-title { font-size: clamp(1.06rem, 3.6vw, 1.18rem); }
  .acct-banner { min-height: clamp(92px, 24vw, 104px); border-radius: clamp(14px, 3.5vw, 20px); max-width: 100%; }
  .acct-banner-inner { padding: clamp(14px, 3.5vw, 18px) clamp(14px, 4vw, 18px); gap: clamp(10px, 2.5vw, 12px); }
  .acct-banner-actions { gap: clamp(8px, 2vw, 10px); }
  .account-avatar { width: clamp(44px, 11vw, 52px); height: clamp(44px, 11vw, 52px); }
  .account-nickname { font-size: clamp(1.02rem, 3.6vw, 1.15rem); }
  .acct-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2.5vw, 10px); }
  .acct-meta-item { padding: clamp(12px, 3vw, 14px) clamp(12px, 3.5vw, 14px) clamp(10px, 2.5vw, 12px); border-radius: clamp(12px, 3vw, 16px); }
  .acct-meta-item b { font-size: clamp(1.02rem, 3.4vw, 1.2rem); }
  .acct-order-card { padding: clamp(18px, 4.5vw, 26px) clamp(16px, 4vw, 28px) clamp(18px, 4.5vw, 24px); border-radius: clamp(16px, 4vw, 20px); max-width: 100%; }
  .account-settings { padding: clamp(18px, 4.5vw, 22px) clamp(16px, 4vw, 18px); border-radius: clamp(14px, 3.5vw, 20px); max-width: 100%; }
  .sms-row { gap: clamp(8px, 2vw, 12px); }
  .sms-btn { padding: clamp(12px, 3vw, 15px) clamp(12px, 3.5vw, 16px); min-height: 44px; max-height: 52px; font-size: clamp(0.82rem, 2.8vw, 0.9rem); }
  .account-avatar-hint { display: block; margin: 8px 0 0; font-size: clamp(0.74rem, 2.4vw, 0.8rem); }
  .acct-ability-row { grid-template-columns: 36px 1fr 36px; gap: clamp(8px, 2vw, 10px); }
}
@media (max-width: 360px) {
  .auth-panel { padding: 16px 14px; }
  .auth-card { padding: 16px 14px 18px; }
  .acct-banner-inner { padding: 14px 14px; }
  .account-settings { padding: 16px 14px; }
}

/* —— 2026-08-17 账号页 hero 更饱满（个人中心专属层次） —— */
@media (min-width: 1024px) {
  body.account-page .wq-page-hero { min-height: 240px; }
  body.account-page .wq-page-hero-text { padding: 30px 34px; }
  body.account-page .wq-page-hero-text h2 { font-size: 2.2rem; }
  body.account-page .wq-page-hero-text p { font-size: 1rem; }
}

/* —— 2026-08-17 学习档案摘要：各科能力分 mini 条 —— */
.acct-ability { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 8px; }
.acct-ability-row { display: grid; grid-template-columns: 44px 1fr 40px; align-items: center; gap: 10px; }
.acct-ability-name { font-size: .86rem; color: var(--ink-soft); }
.acct-ability-track { height: 6px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.acct-ability-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-2), var(--gold)); border-radius: 999px; }
.acct-ability-score { font-family: var(--display); font-size: .84rem; font-weight: 700; color: var(--gold-deep); text-align: right; font-variant-numeric: tabular-nums; }

/* —— 2026-08-17 最近订单明细卡 —— */
.acct-order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 28px 24px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.acct-order-table { display: flex; flex-direction: column; }
.acct-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .94rem;
}
.acct-order-row:last-child { border-bottom: 0; }
.acct-order-label { color: var(--muted); }
.acct-order-value {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* —— 2026-08-17 会员卡：有效期行 + 档位字级 —— */
.member-expiry {
  color: rgba(255, 255, 255, .72);
  font-family: var(--display);
  font-size: .92rem;
  letter-spacing: .04em;
  margin: 10px 0 0;
}
@media (min-width: 1024px) {
  .member-tier { font-size: clamp(2.2rem, 4vw, 3rem); }
}

/* —— 2026-08-17 会员卡档位字级修正：覆盖 .pay-panel h2 的 1.5rem —— */
.member-card .member-tier {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  text-align: left;
  letter-spacing: .02em;
}

/* —— 2026-08-17 会员卡内部节奏微调 —— */
.member-card .member-status { margin-bottom: 6px; }
.member-card .member-expiry { margin-top: 4px; }

/* —— 2026-08-17 账号 hero 中段宽度微调（避免 1024–1280 下头图过高） —— */
@media (min-width: 1024px) and (max-width: 1279px) {
  body.account-page .wq-page-hero { min-height: 200px; }
  body.account-page .wq-page-hero-text h2 { font-size: 1.9rem; }
}
