﻿/* 高考复习 · 排版柔化（全局，两套主题都生效） */
:root {
  --radius: 22px;
  --radius-sm: 15px;
}

body {
  background-attachment: fixed;
}

.card {
  border-radius: var(--radius);
  padding: 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 2px 12px;
}
.section-title h2 {
  font-size: 17px;
  letter-spacing: .4px;
  font-weight: 800;
  margin: 0;
  position: relative;
  padding-left: 12px;
}
.section-title h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.section-title .more { color: var(--text-3); font-size: 12px; margin-left: auto; }

.btn { border-radius: 14px; }
.btn-sm { border-radius: 11px; }
.chip { border-radius: 999px; padding: 8px 14px; }
.list-item { border-radius: 16px; transition: transform .15s ease; }
.list-item:active { transform: scale(.99); }
.subject-card { border-radius: 20px; transition: transform .16s ease, box-shadow .16s ease; }
.subject-card:active { transform: scale(.985); }
.quick { border-radius: 20px; }
.progress { border-radius: 999px; overflow: hidden; }
.search, input[type="date"], select { border-radius: 12px; }

.hero {
  border-radius: 26px;
  position: relative;
  overflow: hidden;
}

.hero-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}
.hero-lightstick {
  position: absolute;
  right: 10px;
  bottom: -14px;
  width: 84px;
  height: 150px;
  opacity: .9;
  filter: drop-shadow(0 8px 18px rgba(255, 120, 180, .35));
  pointer-events: none;
}
@media (max-width: 380px) { .hero-lightstick { width: 62px; right: 4px; opacity: .7; } }

.appbar, .topbar, .bottom-nav { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }

/* 应援区 */
.support {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-top: 14px;
}
.support .photo-col { flex: none; width: 96px; }
.photocard {
  position: relative;
  width: 96px;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe6f3, #e3f0ff);
  box-shadow: 0 8px 22px rgba(255, 111, 174, .22), 0 1px 3px rgba(40, 20, 60, .08);
  cursor: pointer;
}
.photocard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photocard .ph-tag {
  position: absolute; left: 6px; bottom: 6px;
  font-size: 10px; color: #fff; padding: 2px 7px; border-radius: 999px;
  background: rgba(20, 10, 30, .45); backdrop-filter: blur(6px);
}
.photocard .ph-empty {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: #9b7f92; font-size: 11px; text-align: center; padding: 6px;
}
.photocard .ph-empty .plus { font-size: 22px; line-height: 1; }
.support .main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.cheer-zh { font-size: 14px; font-weight: 600; line-height: 1.45; }
.cheer-kr { font-size: 12px; color: var(--text-3); margin-top: 3px; letter-spacing: .3px; }
.support .stats { display: flex; gap: 14px; margin-top: 8px; }
.support .stat b { font-size: 18px; }
.support .stat span { display: block; font-size: 11px; color: var(--text-3); }
.stagebar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 8px; }
.stagebar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff8fc0, #b48bff, #7cc6ff); transition: width .4s ease; }

.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .8; animation: spark 2.8s ease-in-out infinite; }
@keyframes spark { 0%, 100% { transform: translateY(0); opacity: .25 } 50% { transform: translateY(-8px); opacity: .9 } }

/* 应援小卡墙 */
.cardwall {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cardwall::-webkit-scrollbar { display: none; }
.pcard {
  position: relative;
  flex: none;
  width: 104px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: #f3e9f1;
  box-shadow: 0 8px 20px rgba(60, 20, 80, .12);
  border: 2px solid #fff;
  transition: transform .16s ease;
}
.pcard img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard:not(.locked):active { transform: scale(.96); }
.pcard.locked img { filter: blur(6px) grayscale(.5) brightness(.92); transform: scale(1.08); }
.pcard.locked::after { content: ''; position: absolute; inset: 0; background: rgba(45, 25, 60, .16); }
.pcard .pc-tag {
  position: absolute; left: 0; right: 0; bottom: 0;
  font-size: 10px; text-align: center; padding: 4px 0;
  color: #fff; background: rgba(25, 12, 35, .45);
  backdrop-filter: blur(6px);
}
.pcard.locked .pc-tag { background: rgba(25, 12, 35, .62); }
.pcard.chosen { outline: 2px solid var(--primary); outline-offset: 2px; }

/* 登录 / 注册 */
.auth-mode .topbar, .auth-mode .tabbar { display: none; }
.auth-screen { max-width: 420px; margin: 6vh auto 0; padding: 0 10px; text-align: center; }
.auth-logo {
  display: inline-block; font-size: 30px; font-weight: 900; letter-spacing: 4px;
  background: linear-gradient(135deg, #ff7fb9, #b78bff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-title { font-size: 22px; font-weight: 800; margin-top: 12px; }
.auth-sub { font-size: 13px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.auth-tabs { display: flex; gap: 6px; margin: 22px 0 14px; background: var(--card); border: 1px solid var(--line); padding: 4px; border-radius: 14px; }
.auth-tab { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--text-2); cursor: pointer; }
.auth-tab.active { background: linear-gradient(135deg, #ff7fb9, #b78bff); color: #fff; }
.auth-form { text-align: left; }
.auth-input {
  width: 100%; box-sizing: border-box; padding: 13px 14px; margin-top: 10px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--card); font-size: 16px; color: var(--text);
}
.auth-btn { margin-top: 16px; padding: 13px; }
.auth-link { display: block; margin: 14px auto 0; background: none; border: none; color: var(--primary); font-size: 13px; cursor: pointer; }
.auth-err { color: var(--red); font-size: 13px; min-height: 18px; margin-top: 10px; }
.auth-label { font-size: 12px; color: var(--text-3); margin-top: 14px; }
.auth-emoji { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.auth-hint { font-size: 11px; color: var(--text-3); margin: 18px auto 0; line-height: 1.7; max-width: 420px; }
.auth-migrate { max-width: 420px; margin: 0 auto 16px; text-align: left; }
.auth-mig-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.auth-mig-row:last-child { border-bottom: none; }

/* 学习者选择页（旧版，保留样式） */
.profiles-page { padding-bottom: 24px; }
.profiles-hero { display: flex; justify-content: center; margin: 6px 0 14px; }
.pf-logo {
  font-weight: 900; font-size: 20px; letter-spacing: 2px; color: #fff;
  background: linear-gradient(135deg, #ff8fc0, #b78bff);
  padding: 8px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(255, 111, 174, .3);
}
.profiles-title { text-align: center; font-size: 26px; font-weight: 900; letter-spacing: 1px; }
.profiles-sub { text-align: center; font-size: 13px; color: var(--text-3); margin: 6px 0 18px; }
.profiles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.profile-card {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; padding: 22px 12px 18px; text-align: center; cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 111, 174, .12);
  transition: transform .16s ease, box-shadow .16s ease;
}
.profile-card:active { transform: scale(.97); }
.profile-card.active { outline: 2px solid var(--primary); outline-offset: 2px; }
.pf-emoji { font-size: 46px; line-height: 1.1; }
.pf-name { font-weight: 800; font-size: 17px; margin-top: 8px; }
.pf-go { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.pf-del {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(229, 69, 122, .12); color: var(--red); font-size: 15px; line-height: 1;
  cursor: pointer;
}
.add-profile { margin-top: 18px; }

@media (max-width: 380px) {
  .pf-emoji { font-size: 38px; }
  .profiles-title { font-size: 22px; }
}

.me-banner {
  width: 100%;
  display: block;
  border-radius: 22px;
  margin-bottom: 16px;
  box-shadow: 0 14px 34px rgba(255, 111, 174, .25);
}
@media (max-width: 380px) { .pcard { width: 88px; } }

@media (max-width: 380px) {
  .support .photo-col { width: 84px; }
  .photocard { width: 84px; }
}


/* 费曼自检选项：一段话里混着行内公式，按钮不能走 inline-flex（会把公式拉散换行） */
.sc-opt {
  display: block;
  width: 100%;
  text-align: left;
  white-space: normal;
  line-height: 1.75;
  font-weight: 500;
}
.sc-opt .fx { vertical-align: baseline; }
