/* =========================================================
   视觉样式
   深色 + 珊瑚红渐变 + 玻璃拟态
   ========================================================= */

:root {
  --bg: #08080c;
  --panel: rgba(20, 20, 29, 0.66);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f4f4f8;
  --text-soft: #c9c9d6;
  --muted: #8b8b9c;
  --dim: #5f5f70;
  --accent: #ff4d6d;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 77, 109, 0.13);
  --radius: 18px;
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, 0.95);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
    "SimSun", serif;
  --font-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas,
    monospace;
}

/* ===== 基础 ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(255, 77, 109, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(255, 122, 145, 0.9);
  outline-offset: 3px;
}

/* ===== 背景氛围 ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}

.orb-a {
  width: 520px;
  height: 520px;
  top: -200px;
  right: -80px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.4), transparent 68%);
  animation: drift 20s ease-in-out infinite;
}

.orb-b {
  width: 460px;
  height: 460px;
  top: 28%;
  left: -180px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.24), transparent 68%);
  animation: drift 26s ease-in-out infinite reverse;
}

.orb-c {
  width: 400px;
  height: 400px;
  bottom: -160px;
  right: 18%;
  background: radial-gradient(circle, rgba(120, 96, 255, 0.2), transparent 68%);
  animation: drift 23s ease-in-out infinite;
  animation-delay: -8s;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 15%, transparent 78%);
}
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #0b0b10;
}

.page-bg__img {
  position: absolute;
  inset: -48px;                 /* 放大，避免模糊后露边 */
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(0.85) brightness(0.55);
  transform: scale(1.08);
}

.page-bg::after {               /* 压暗，保证文字可读 */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 8, 12, 0.2),
    rgba(8, 8, 12, 0.88)
  );
}

/* ===== 内页封面墙 ===== */
.cover-wall {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1000px 650px at 82% -10%, rgba(88, 122, 240, 0.28), transparent 62%),
    radial-gradient(800px 560px at 0% 95%, rgba(255, 77, 109, 0.16), transparent 68%),
    linear-gradient(160deg, rgba(24, 30, 64, 0.45), rgba(8, 8, 12, 0.18));
}

.cover-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(800px 500px at 50% 30%, transparent 30%, rgba(8, 8, 12, 0.18) 100%),
    linear-gradient(
      180deg,
      rgba(8, 8, 12, 0.78) 0%,
      rgba(8, 8, 12, 0.18) 18%,
      rgba(8, 8, 12, 0.12) 55%,
      rgba(8, 8, 12, 0.55) 100%
    );
}

.cover-wall .cover {
  position: absolute;
  z-index: 1;
  top: var(--y, 8%);
  left: var(--x, 4%);
  width: var(--w, 150px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 30px 70px -30px #000;
  opacity: var(--o, 0.6);
  filter: saturate(0.9) brightness(0.82);
  animation: coverFloat var(--d, 22s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes coverFloat {
  0%,
  100% {
    transform: rotate(var(--r, 0deg)) translateY(0);
  }
  50% {
    transform: rotate(calc(var(--r, 0deg) + 2deg)) translateY(-14px);
  }
}

@media (max-width: 720px) {
  .cover-wall .cover {
    width: calc(var(--w, 150px) * 0.7);
    left: min(var(--x, 4%), 68%);
  }
}

/* ===== 导航 ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.nav-container {
  max-width: 1120px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff4d6d, #ff8a3d);
  box-shadow:
    0 8px 20px -8px rgba(255, 77, 109, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1;
}

.logo-mark-sm {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  font-size: 14px;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.logo-text em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  position: relative;
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: translateX(-50%);
}

/* ===== 布局 ===== */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 88px;
}

/* ===== 通用组件 ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 119, 140, 0.28);
  border-radius: 999px;
  background: rgba(255, 77, 109, 0.08);
  color: #ffb9c6;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.grad-text {
  background: linear-gradient(105deg, #ff4d6d 0%, #ff7a5c 48%, #ffb25c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s,
    border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: #fff;
  border-color:#fff;
  border-radius:13px;
  box-shadow:none;
  color: #08080c;
}

.btn-primary:hover {
  background: #d4d4d4;
  border-color: #d4d4d4;
  box-shadow: none;
  color: #08080c;
  transform: translateY(-3px);
}

.btn-primary:active {
  transform:none;
}

.btn-primary .arrow {
  transition: none;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: #ddd;
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.arrow {
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

/* 主按钮的箭头保持不动 */
.btn.btn-primary:hover .arrow {
  transform: none;
}

.section-kicker {
  display: block;
  margin-bottom: 12px;
  color: #ff8fa3;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.level-chip {
  flex: none;
  padding: 6px 9px;
  border: 1px solid rgba(255, 77, 109, 0.32);
  border-radius: 7px;
  background: rgba(255, 77, 109, 0.14);
  color: #ffc0ca;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* =========================================================
   首页
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 60px;
  padding: 32px 0 80px;
}

.hero h1 {
  margin-top: 20px;
  color: #fff;
  font-size: clamp(46px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-sub {
  max-width: 520px;
  margin: 24px 0 32px;
  color: #a6a6b8;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-stats {
  display: flex;
  margin-top: 44px;
}

.stat {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  display: block;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* 首页展示卡 */
.hero-showcase {
  position: relative;
  min-width: 0;
}

.showcase-card {
  position: relative;
  z-index: 2;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.075),
    rgba(255, 255, 255, 0.018) 45%,
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    0 40px 80px -40px #000,
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  transform: rotate(-1.6deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-card:hover {
  transform: rotate(0deg) translateY(-4px);
}

.showcase-glow {
  position: absolute;
  inset: 14% 2% -10%;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.35), transparent 66%);
  filter: blur(60px);
  pointer-events: none;
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.disc {
  position: relative;
  width: 50px;
  height: 50px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #2a2a36 0 2px,
    #16161f 2px 4px
  );
  box-shadow: inset 0 0 18px #000;
  animation: spin 16s linear infinite;
}

.disc::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0b0b11;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.disc span {
  position: relative;
  z-index: 1;
  color: var(--accent-2);
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1;
  animation: spin 16s linear infinite reverse;
}

.showcase-meta {
  flex: 1;
  min-width: 0;
}

.showcase-song {
  overflow: hidden;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.showcase-artist {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.showcase-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.showcase-lines p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #dedee8;
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.5;
}

.line-no {
  width: 18px;
  flex: none;
  color: #6b6b7d;
  font-family: var(--font-mono);
  font-size: 10px;
}

.showcase-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f8fa2;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #5ee6a8;
  box-shadow: 0 0 0 3px rgba(94, 230, 168, 0.18);
  animation: pulse 1.8s ease-in-out infinite;
}

.float-tag {
  position: absolute;
  z-index: 3;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.85);
  box-shadow: 0 12px 24px -12px #000;
  color: #ffe3e8;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: floaty 7s ease-in-out infinite;
}

.float-tag-a {
  top: -18px;
  left: -22px;
}

.float-tag-b {
  top: 32%;
  right: -24px;
  animation-delay: -2.4s;
}

.float-tag-c {
  bottom: -30px;
  left: -14px;
  animation-delay: -4.2s;
}

/* 功能区 */
.section {
  position: relative;
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2,
.level-strip-head h2 {
  color: #fff;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.045),
    rgba(255, 255, 255, 0.012)
  );
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 109, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  border-color: rgba(255, 77, 109, 0.35);
  background: linear-gradient(
    165deg,
    rgba(255, 77, 109, 0.08),
    rgba(255, 255, 255, 0.015)
  );
  transform: translateY(-4px);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 23px;
}

.card-title {
  margin-bottom: 10px;
  color: #fff;
  font-size: 17.5px;
  letter-spacing: -0.01em;
}

.card-desc {
  color: #9a9aac;
  font-size: 13.8px;
  line-height: 1.8;
}

.card-index {
  position: absolute;
  top: 26px;
  right: 24px;
  color: rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

/* 等级说明 */
.level-strip {
  position: relative;
  overflow: hidden;
  margin-bottom: 72px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
}

.level-strip::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.14), transparent 68%);
  pointer-events: none;
}

.level-strip-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.level-strip-head > p {
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

.level-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.level-list li {
  display: flex;
  gap: 12px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.level-num {
  padding-top: 1px;
  color: #ff8fa3;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.level-list h4 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
}

.level-list p {
  color: #8f8fa2;
  font-size: 12.2px;
  line-height: 1.7;
}

/* 底部行动区 */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border: 1px solid rgba(255, 77, 109, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(255, 77, 109, 0.16), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
}

.cta-band p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
}
/* ===== 个人仪表盘 ===== */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dash-date {
  color: #ff9aac;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.dash-hero h1 {
  margin: 8px 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.dash-sub {
  color: var(--muted);
  font-size: 14px;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.dash-card {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(16, 16, 24, 0.58);
  box-shadow: 0 24px 60px -30px #000;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }

.dash-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-card__head h2 {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.dash-link {
  color: #ff9aac;
  font-size: 12px;
  white-space: nowrap;
}

.dash-link:hover { color: #fff; }

.dash-empty {
  margin: 8px 0;
  color: #7d7d90;
  font-size: 13px;
  line-height: 1.7;
}

/* 课表 */
.course-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.course-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--course-color, #ff4d6d);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.course-time {
  color: #ffb3c0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.course-name {
  color: #f0f0f7;
  font-size: 13.5px;
  font-weight: 600;
}

.course-room {
  color: #8a8a9c;
  font-size: 12px;
}

/* 待办 */
.memo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.memo-item {
  color: #dcdce8;
  font-size: 13.5px;
  line-height: 1.6;
}

.memo-item::before {
  content: "○";
  margin-right: 8px;
  color: #ff8fa3;
}

.memo-item.is-done {
  color: #6f6f80;
  text-decoration: line-through;
}

.memo-item.is-done::before {
  content: "✓";
}

/* 日志 */
.journal-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.journal-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: #e4e4ee;
  font-size: 13.5px;
}

.journal-item time {
  flex: none;
  color: #8a8a9c;
  font-family: var(--font-mono);
  font-size: 11px;
}

.journal-item span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 学习进度 */
.study-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 330px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.study-list::-webkit-scrollbar {
  width: 6px;
}

.study-list::-webkit-scrollbar-track {
  background: transparent;
}

.study-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 720px) {
  .study-list {
    max-height: 280px;
  }
}

.study-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: #dcdce8;
  font-size: 13px;
}

.study-meta span:last-child {
  color: #ff9aac;
  font-family: var(--font-mono);
  font-size: 11px;
}

.study-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.study-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4d6d, #ff8a3d);
}

.study-home-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #8a8a9c;
  font-size: 11.5px;
  line-height: 1.5;
}

.study-home-category {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #c9c9d6;
}

.study-home-link {
  color: #ff9aac;
  white-space: nowrap;
}

.study-home-link:hover {
  color: #fff;
}

/* 工具箱 */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 77, 109, 0.08);
}

.tool-icon { font-size: 22px; }
.tool-name { color: #fff; font-size: 13.5px; font-weight: 600; }
.tool-desc { color: #858598; font-size: 11.5px; }

@media (max-width: 900px) {
  .dashboard > * { grid-column: span 12; }
  .dash-hero { align-items: flex-start; }
}
/* =========================================================
   歌词工具页
   ========================================================= */
.lyrics-container {
  max-width: 820px;
  margin: 0 auto;
}

.page-head {
  margin-bottom: 36px;
  text-align: center;
}

.page-head h1 {
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-head p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 22px;
}

.search-panel {
  padding: 24px;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.015)
  );
  box-shadow: var(--shadow);
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 0;
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: 15px;
  opacity: 0.75;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 54px;
  padding: 0 16px 0 45px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  outline: none;
  background: rgba(5, 5, 9, 0.6);
  color: #fff;
  font-size: 14.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.search-input::placeholder {
  color: #5c5c6d;
}

.search-input:focus {
  border-color: rgba(255, 77, 109, 0.65);
  background: rgba(5, 5, 9, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.search-btn {
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff4d6d, #ff7a45);
  box-shadow: 0 14px 30px -14px rgba(255, 77, 109, 0.8);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s, opacity 0.2s;
}

.search-btn:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.search-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* 等级 */
.level-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed rgba(255, 255, 255, 0.09);
}

.level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.level-label {
  color: #b9b9c8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-hint {
  color: #ff9aac;
  font-size: 12px;
}

.level-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.level-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: #9292a4;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.level-btn .lv-num {
  opacity: 0.65;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.level-btn .lv-name {
  color: #cfcfdc;
  font-size: 13.5px;
  font-weight: 700;
}

.level-btn:hover {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.06);
}

.level-btn:hover .lv-name {
  color: #fff;
}

.level-btn-active,
.level-btn-active:hover {
  border-color: rgba(255, 77, 109, 0.65);
  background: linear-gradient(
    135deg,
    rgba(255, 77, 109, 0.24),
    rgba(255, 138, 61, 0.12)
  );
  box-shadow:
    0 8px 24px -14px rgba(255, 77, 109, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.level-btn-active .lv-name {
  color: #fff;
}

.level-btn-active .lv-num {
  color: #ffb3c0;
  opacity: 1;
}

.search-tip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  color: #5f5f70;
  font-size: 11.5px;
}

kbd {
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  color: #a9a9ba;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

/* 搜索结果 */
.results {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 26px;
}

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 8px;
  color: #8a8a9c;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.results-tip {
  color: #5f5f70;
}

.result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  cursor: pointer;
  animation: fadeUp 0.45s both;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.result-item:hover,
.result-item:focus-visible {
  border-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 77, 109, 0.07);
  transform: translateX(3px);
}

.result-no {
  width: 22px;
  flex: none;
  color: #ff8fa3;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.8;
}

.result-main {
  flex: 1;
  min-width: 0;
}

.result-title {
  overflow: hidden;
  color: #ececf4;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.result-item:hover .result-title {
  color: #fff;
}

.result-artist {
  margin-top: 3px;
  color: #8d8da0;
  font-size: 12.5px;
}

.result-trans {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: #6d6d80;
  font-size: 11.5px;
}

.result-arrow {
  flex: none;
  color: #4f4f61;
  font-size: 16px;
  transition: color 0.2s, transform 0.2s;
}

.result-item:hover .result-arrow {
  color: var(--accent);
  transform: translateX(2px);
}

/* 加载 */
.loading {
  padding: 64px 20px 56px;
  text-align: center;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  border: 3px solid rgba(255, 255, 255, 0.07);
  border-top-color: #ff4d6d;
  border-right-color: rgba(255, 77, 109, 0.4);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.loading-text {
  color: #eee;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.loading-hint {
  margin-top: 12px;
  color: #6c6c7e;
  font-size: 12px;
  line-height: 1.6;
}

.loading-bar {
  width: 240px;
  max-width: 80%;
  height: 3px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.loading-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff4d6d, #ff8a3d);
  animation: progress 1.25s ease-in-out infinite;
}

.loading.is-quick {
  padding: 48px 20px 40px;
}

.loading.is-quick .loading-bar,
.loading.is-quick .loading-hint {
  display: none;
}

/* 歌词结果 */
.lyrics {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: 30px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(255, 77, 109, 0.08), transparent 65%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: var(--shadow);
}

.lyrics::before {
  content: "";
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 109, 0.6), transparent);
}

.lyric-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.lyric-kicker {
  display: block;
  color: #ff8fa3;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.lyric-title {
  margin: 8px 0 6px;
  color: #fff;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.lyric-artist {
  color: #8d8da0;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.lyric-body {
  margin-top: 24px;
}

.lyric-line {
  padding: 2px 12px;
  border-left: 2px solid transparent;
  border-radius: 4px;
  color: #e3e3ee;
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 2.05;
  animation: fadeUp 0.5s both;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.lyric-line:hover {
  border-left-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.regenerate-btn,
.copy-btn {
  flex: 1;
  min-width: 180px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, filter 0.2s, transform 0.2s;
}

.regenerate-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #dcdce8;
}

.regenerate-btn:hover:not(:disabled) {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.09);
}

.regenerate-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.copy-btn {
  background: linear-gradient(135deg, #ff4d6d, #ff7a45);
  box-shadow: 0 12px 26px -14px rgba(255, 77, 109, 0.8);
  color: #fff;
}

.copy-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* 空状态 */
.empty {
  padding: 72px 20px 56px;
  text-align: center;
  color: #6f6f80;
}

.empty-icon {
  margin-bottom: 16px;
  font-size: 44px;
  opacity: 0.9;
  filter: grayscale(0.3);
  animation: floaty 6s ease-in-out infinite;
}

.empty-title {
  margin-bottom: 8px;
  color: #d5d5e0;
  font-size: 15.5px;
  font-weight: 600;
}

.empty-text {
  margin-bottom: 18px;
  color: #77778a;
  font-size: 13px;
}

.empty-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #b0b0c0;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.chip:hover {
  border-color: rgba(255, 77, 109, 0.5);
  background: rgba(255, 77, 109, 0.08);
  color: #fff;
  transform: translateY(-1px);
}

/* 提示 */
.toast {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 999;
  max-width: calc(100vw - 40px);
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.96);
  box-shadow: 0 20px 40px -18px #000;
  color: #f2f2f8;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 0.25s, transform 0.25s;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.toast::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: #5ee6a8;
  vertical-align: middle;
}

.toast[data-type="warn"]::before {
  background: #ffb45c;
}

.toast[data-type="error"]::before {
  background: #ff4d6d;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== 写作台 ===== */
.me-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.me-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.me-stat strong {
  display: block;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.me-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.me-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 16px;
  align-items: start;
}

.me-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 16, 24, 0.6);
  box-shadow: 0 24px 60px -34px #000;
  color-scheme: dark;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.me-card h2 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* 可收起的课程管理 */
.me-collapse__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  list-style: none;
  outline: none;
}

.me-collapse__summary::-webkit-details-marker {
  display: none;
}

.me-collapse__summary::marker {
  content: "";
}

.me-collapse__summary:focus-visible {
  border-radius: 6px;
  outline: 2px solid rgba(255, 77, 109, 0.65);
  outline-offset: 4px;
}

.me-collapse__title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.me-collapse__state {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s;
}

.me-collapse__state::before {
  content: "+";
}

.me-collapse[open] .me-collapse__state::before {
  content: "−";
}

.me-collapse__summary:hover .me-collapse__state {
  border-color: var(--line-strong);
  color: #fff;
}

.me-collapse:not([open]) .me-collapse__summary {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.me-hint {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.me-hint a {
  color: #ff9aac;
}

.me-hint a:hover {
  color: #fff;
}

.invite-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.invite-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.invite-main code {
  color: #ff9aac;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.invite-main span {
  color: var(--muted);
  font-size: 11.5px;
}

.friend-count {
  color: var(--muted);
  font-size: 12px;
}

.friend-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.friend-main {
  min-width: 0;
}

.friend-name-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-name-line strong {
  color: #fff;
  font-size: 14px;
}

.friend-meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.friend-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-password-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.friend-password-form input {
  width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.friend-password-form input:focus {
  border-color: rgba(255, 77, 109, 0.6);
}

.friend-password-form input::placeholder {
  color: var(--dim);
}

.friend-note {
  margin-top: 18px;
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .friend-row {
    flex-direction: column;
    gap: 12px;
  }

  .friend-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .friend-password-form {
    flex: 1;
    min-width: 0;
  }

  .friend-password-form input {
    flex: 1;
    width: auto;
    min-width: 0;
  }
}

.me-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row-bottom {
  align-items: end;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.form-field > span {
  color: #b9b9c8;
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  background: rgba(5, 5, 9, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field textarea {
  min-height: 120px;
  line-height: 1.7;
  resize: vertical;
}

.form-field select {
  cursor: pointer;
}

.form-field input[type="color"] {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #5c5c6d;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: rgba(255, 77, 109, 0.65);
  background: rgba(5, 5, 9, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.form-actions {
  display: flex;
  align-items: flex-end;
}

.me-form .btn {
  width: 100%;
}

.me-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.me-list-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 16, 24, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.me-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.me-list-head h2 {
  color: #fff;
  font-size: 15px;
}

.me-list-head a {
  color: #ff9aac;
  font-size: 12px;
  white-space: nowrap;
}

.me-list-head a:hover {
  color: #fff;
}

.me-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

.me-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.me-item:last-child {
  border-bottom: 0;
}

.me-item__main {
  min-width: 0;
}

.me-item__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.me-item__meta time {
  color: #8a8a9c;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.me-item strong {
  display: -webkit-box;
  overflow: hidden;
  color: #ececf4;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.me-item__actions {
  display: flex;
  flex: none;
  align-items: flex-start;
  gap: 6px;
}

.me-edit,
.me-delete {
  flex: none;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: #8a8a9c;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.me-edit {
  color: #ff9aac;
  text-decoration: none;
}

.me-edit:hover {
  border-color: rgba(255, 77, 109, 0.5);
  color: #fff;
}

.me-delete:hover {
  border-color: rgba(255, 77, 109, 0.5);
  color: #ff9aac;
}

.me-edit-meta {
  color: var(--muted);
  font-size: 12.5px;
}

.me-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.me-edit-actions .btn {
  width: auto;
}

.me-course-card {
  margin-top: 16px;
}

.course-form {
  max-width: 820px;
}

.course-form .btn {
  width: auto;
}

.course-form .form-actions {
  justify-content: flex-start;
}

.course-manage-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.course-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.course-row:last-child {
  border-bottom: 0;
}

.course-dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--course-color, #ff4d6d);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.course-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.course-info strong {
  overflow: hidden;
  color: #fff;
  font-size: 13.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.course-info span {
  overflow: hidden;
  color: #8a8a9c;
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* 学习进度管理 */
.study-manage-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.study-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.study-row:last-child {
  border-bottom: 0;
}

.study-row__main {
  flex: 1;
  min-width: 0;
}

.study-row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.study-row__head strong {
  overflow: hidden;
  color: #fff;
  font-size: 13.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.study-row__head span {
  color: #ff9aac;
  font-family: var(--font-mono);
  font-size: 11px;
}

.study-row__meta {
  margin-top: 7px;
  color: #8a8a9c;
  font-size: 11.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* 待办管理 */
.memo-manage-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.memo-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.memo-row:last-child {
  border-bottom: 0;
}

.memo-toggle-form {
  flex: none;
  padding-top: 1px;
}

.memo-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: #ff9aac;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.memo-toggle:hover {
  border-color: rgba(255, 77, 109, 0.55);
  background: rgba(255, 77, 109, 0.08);
}

.memo-row.is-done .memo-toggle {
  border-color: rgba(94, 230, 168, 0.5);
  background: rgba(94, 230, 168, 0.1);
  color: #8ef0c0;
}

.memo-row__main {
  flex: 1;
  min-width: 0;
}

.memo-row__main strong {
  display: block;
  color: #ececf4;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.memo-row.is-done .memo-row__main strong {
  color: #6f6f80;
  text-decoration: line-through;
}

.memo-row__meta {
  margin-top: 5px;
  color: #8a8a9c;
  font-size: 11.5px;
  line-height: 1.5;
}

.memo-priority {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
}

.memo-priority.p1 {
  background: rgba(255, 77, 109, 0.14);
  color: #ff9aac;
}

.memo-priority.p2 {
  background: rgba(255, 138, 61, 0.12);
  color: #ffb27a;
}

.memo-priority.p3 {
  background: rgba(255, 255, 255, 0.05);
  color: #9a9aac;
}

@media (max-width: 900px) {
  .me-grid,
  .me-lists {
    grid-template-columns: 1fr;
  }

  .me-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .me-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .me-stat {
    padding: 13px 14px;
  }

  .me-stat strong {
    font-size: 20px;
  }

  .me-card,
  .me-list-card {
    padding: 20px;
  }
}

/* ===== 课表与日志 ===== */
.page-shell {
  max-width: 1120px;
  margin: 0 auto;
}

.page-shell-narrow {
  max-width: 860px;
}

.tool-grid-page {
  max-width: 760px;
}

.page-head-left {
  max-width: 760px;
  margin: 0 0 32px;
  text-align: left;
}

.page-head-left h1 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(32px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.page-head-left p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.page-back {
  display: inline-flex;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s;
}

.page-back:hover {
  color: #fff;
}

/* 课表 */
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.day-column {
  min-width: 0;
  min-height: 140px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 16, 24, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.day-title {
  margin-bottom: 12px;
  color: #ff9aac;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.course-block {
  margin-bottom: 8px;
  padding: 9px 10px;
  border-left: 3px solid var(--course-color, #ff4d6d);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.course-block:last-child {
  margin-bottom: 0;
}

.course-block time {
  color: #9a9aac;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.course-block h3 {
  margin: 4px 0;
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
}

.course-block p {
  color: #858598;
  font-size: 11px;
  line-height: 1.5;
}

.day-empty {
  color: #5f5f70;
  font-size: 11.5px;
}

/* 日志 */
.journal-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.journal-entry {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 16, 24, 0.58);
  box-shadow: 0 24px 60px -34px #000;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.journal-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.journal-entry__head time {
  color: #9a9aac;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.visibility-badge {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.visibility-badge.public {
  border-color: rgba(94, 230, 168, 0.35);
  background: rgba(94, 230, 168, 0.08);
  color: #8ef0c0;
}

.visibility-badge.friends {
  border-color: rgba(255, 77, 109, 0.35);
  background: rgba(255, 77, 109, 0.08);
  color: #ff9aac;
}

.visibility-badge.private {
  background: rgba(255, 255, 255, 0.04);
  color: #8a8a9c;
}

.journal-entry h2 {
  margin: 10px 0 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.journal-mood {
  color: #ff9aac;
  font-size: 12px;
}

.journal-content {
  margin-top: 14px;
  color: #dcdce8;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.journal-entry__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.journal-edited {
  margin-top: 6px;
  color: #7d7d90;
  font-size: 11px;
}

.journal-addenda {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 16, 24, 0.58);
  box-shadow: 0 24px 60px -34px #000;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.journal-addenda__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.journal-addenda__head h2 {
  color: #fff;
  font-size: 18px;
}

.journal-addenda__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.addendum {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.addendum__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #8a8a9c;
  font-family: var(--font-mono);
  font-size: 11px;
}

.addendum__content {
  margin-top: 8px;
  color: #dcdce8;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.addendum-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.me-list-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.archive-edited {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8a8a9c;
  font-size: 10px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 12px;
}

.pagination a {
  color: #ff9aac;
}

.pagination a:hover {
  color: #fff;
}

.pagination__current {
  color: #8a8a9c;
  font-family: var(--font-mono);
}

.pagination__disabled {
  color: #4f4f5f;
}

.journal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.tag {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #9a9aac;
  font-size: 11px;
}

/* 手记 */
.note-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.note-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.note-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.note-meta time {
  color: #7f7f92;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.note-item p {
  display: -webkit-box;
  overflow: hidden;
  color: #d5d5e2;
  font-size: 13.5px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.note-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.note-card {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 16, 24, 0.58);
  box-shadow: 0 24px 60px -34px #000;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.note-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.note-card__head time {
  color: #9a9aac;
  font-family: var(--font-mono);
  font-size: 11px;
}

.note-content {
  color: #e0e0ea;
  font-family: var(--font-serif);
  font-size: 15.5px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .week-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .week-grid {
    grid-template-columns: 1fr;
  }

  .day-column {
    min-height: 0;
  }

  .journal-entry {
    padding: 22px 20px;
  }

  .journal-entry h2 {
    font-size: 20px;
  }

  .note-card {
    padding: 20px;
  }

  .note-content {
    font-size: 15px;
  }

  .journal-content {
    font-size: 15px;
  }
}

/* ===== 详情与评论 ===== */
.journal-entry h2 a,
.journal-title-link {
  color: inherit;
  text-decoration: none;
}

.journal-entry h2 a:hover,
.journal-title-link:hover {
  color: #ff9aac;
}

.entry-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.comment-link {
  display: inline-flex;
  color: #ff9aac;
  font-size: 12.5px;
  text-decoration: none;
}

.comment-link:hover {
  color: #fff;
}

.note-card__foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-entry {
  margin-top: 14px;
}

.detail-title {
  margin: 14px 0 8px;
  color: #fff;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.comments {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(16, 16, 24, 0.58);
  box-shadow: 0 24px 60px -34px #000;
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.comments__head h2 {
  color: #fff;
  font-size: 16px;
}

.comments__head span {
  color: #ff9aac;
  font-family: var(--font-mono);
  font-size: 12px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.comment {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.comment:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.comment.is-hidden {
  opacity: 0.55;
}

.comment__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.comment__head strong {
  color: #fff;
  font-size: 13.5px;
}

.comment__head time {
  color: #7f7f92;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.comment p {
  margin-top: 8px;
  color: #dcdce8;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.comments__empty,
.comments__login {
  color: #7f7f92;
  font-size: 13px;
  line-height: 1.7;
}

.comments__login a {
  color: #ff9aac;
}

.comment-form {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.comment-form .form-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.comment-form .btn {
  width: auto;
}

.comment-form textarea {
  min-height: 100px;
}

@media (max-width: 720px) {
  .comments {
    padding: 20px;
  }

  .comment__actions {
    width: 100%;
    margin-left: 0;
  }

  .comment-form .form-actions {
    justify-content: flex-start;
  }
}

/* ===== 登录与登录状态 ===== */
.nav-user {
  max-width: 120px;
  margin-left: 8px;
  padding-left: 12px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  color: #d8d8e4;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-logout {
  display: inline-flex;
  margin-left: 2px;
}

.nav-logout button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.nav-logout button:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.flash-stack {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 16px auto 0;
  padding: 0 24px;
}

.form-alert {
  margin-bottom: 8px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #dcdce8;
  font-size: 13px;
  line-height: 1.6;
}

.form-alert.error {
  border-color: rgba(255, 77, 109, 0.4);
  background: rgba(255, 77, 109, 0.09);
  color: #ffc0ca;
}

.form-alert.info {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.auth-page {
  display: grid;
  place-items: center;
  max-width: 820px;
  margin: 24px auto 48px;
}

.auth-card {
  width: min(440px, 100%);
  padding: 34px 32px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(15, 15, 22, 0.74);
  box-shadow: 0 30px 70px -36px #000;
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.auth-card h1 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-sub {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.auth-field > span {
  color: #b9b9c8;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  outline: none;
  background: rgba(5, 5, 9, 0.6);
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-field input:focus {
  border-color: rgba(255, 77, 109, 0.65);
  background: rgba(5, 5, 9, 0.85);
  box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.auth-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 2px;
}

.auth-help {
  margin-top: 20px;
  color: #6c6c7e;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.auth-help a {
  color: #ff9aac;
}

.auth-help a:hover {
  color: #fff;
}

.auth-code {
  margin-top: 16px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
  border: 1px dashed rgba(255, 77, 109, 0.35);
  border-radius: 9px;
  background: rgba(255, 77, 109, 0.06);
  color: #ffb3c0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.auth-back {
  display: block;
  margin-top: 10px;
  color: #8a8a9c;
  font-size: 12px;
  text-align: center;
}

.auth-back:hover {
  color: #fff;
}

@media (max-width: 720px) {
  .nav-container {
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
  }

  .nav-user {
    display: none;
  }

  .nav-logo {
    flex: none;
  }

  .nav-links {
    width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-logout {
    flex: none;
  }

  .nav-links a.nav-desk {
    display: none;
  }

  .flash-stack {
    padding: 0 18px;
  }

  .auth-card {
    padding: 28px 22px;
  }
}

/* ===== 页脚 ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 44px 24px 28px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d8d8e4;
  font-size: 13.5px;
  font-weight: 600;
}

.footer-note {
  color: #727284;
  font-size: 12.5px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: #8a8a9c;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  max-width: 1120px;
  margin: 26px auto 0;
  color: #4f4f5f;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-align: center;
}

/* ===== 动画 ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(94, 230, 168, 0.18);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(94, 230, 168, 0.04);
  }
}

@keyframes dotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 77, 109, 0.12);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(255, 77, 109, 0.03);
  }
}

@keyframes progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(300%);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(30px, 40px, 0) scale(1.08);
  }
}

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 12px;
  }

  .hero-copy {
    max-width: 640px;
  }

  .hero-showcase {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .float-tag-a {
    left: -8px;
  }

  .float-tag-b {
    right: -8px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .level-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .main {
    padding: 36px 18px 64px;
  }

  .nav-container {
    height: 62px;
    padding: 0 18px;
  }

  .logo-text em {
    display: none;
  }

  .hero {
    gap: 44px;
    padding-bottom: 56px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .hero-stats {
    margin-top: 36px;
  }

  .stat {
    padding: 0 18px;
  }

  .stat strong {
    font-size: 22px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .level-strip {
    margin-bottom: 52px;
    padding: 26px;
  }

  .level-strip-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .level-list {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .page-head {
    margin-bottom: 28px;
  }

  .page-head p {
    font-size: 13.5px;
  }

  .search-panel {
    padding: 18px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-input,
  .search-btn {
    height: 50px;
  }

  .search-btn {
    width: 100%;
  }

  .level-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .level-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-tip {
    display: none;
  }

  .lyrics {
    padding: 24px 20px;
  }

  .lyric-body {
    margin-top: 20px;
  }

  .lyric-line {
    padding: 2px 8px;
    font-size: 15.5px;
    line-height: 1.95;
  }

  .action-buttons {
    flex-direction: column;
  }

  .regenerate-btn,
  .copy-btn {
    width: 100%;
    min-width: 0;
  }

  .showcase-card {
    padding: 20px;
    transform: none;
  }

  .footer {
    padding: 36px 18px 24px;
  }
}

@media (max-width: 480px) {
  .nav-links a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .hero-actions .btn {
    flex: 1;
    padding: 13px 16px;
  }

  .hero-stats {
    justify-content: space-between;
  }

  .stat {
    padding: 0 12px;
  }

  .stat:first-child {
    padding-left: 0;
  }

  .stat strong {
    font-size: 20px;
  }

  .stat span {
    font-size: 11px;
  }

  .float-tag {
    display: none;
  }

  .showcase-lines p {
    font-size: 13.5px;
  }

  .badge {
    font-size: 9.5px;
    letter-spacing: 0.12em;
  }

  .level-strip {
    padding: 22px 18px;
  }

  .cta-band {
    padding: 24px 20px;
  }

  .lyric-title {
    font-size: 22px;
  }

  .toast {
    top: 76px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .showcase-card {
    transform: none;
  }
}
