/* 学习栏目：窄栏阅读。听读大应用的样式不进这些页。 */
:root {
  --learn-bg: #f5f5f7;
  --learn-text: #1d1d1f;
  --learn-secondary: #6e6e73;
  --learn-tertiary: #86868b;
  --learn-accent: #7b61ff;
  --learn-accent-deep: #5f46e8;
  --learn-line: rgba(0, 0, 0, 0.08);
  --learn-card: #ffffff;
  --learn-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

::selection {
  background: rgba(123, 97, 255, 0.22);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--learn-text);
  font-family: var(--learn-font);
  font-size: 17px;
  line-height: 1.5;
  background:
    radial-gradient(ellipse 70% 42% at 50% -12%, rgba(123, 97, 255, 0.16), transparent 58%),
    var(--learn-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.learn-skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--learn-text);
  text-decoration: none;
}

.learn-skip:focus { top: 12px; }

.learn-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(20px);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.learn-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 28px;
  padding-top: max(12px, env(safe-area-inset-top));
}

.learn-brand {
  color: var(--learn-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.learn-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
}

.learn-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--learn-text);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.learn-nav a:hover { background: rgba(0, 0, 0, 0.04); }

.learn-nav a[aria-current="page"] {
  background: rgba(123, 97, 255, 0.12);
  color: var(--learn-accent-deep);
  font-weight: 600;
}

.learn-wrap {
  width: min(720px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 56px;
}

.learn-page-head h1,
.learn-article h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4vw, 2.55rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.learn-kicker {
  margin: 0;
  color: var(--learn-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
}

.learn-kicker a {
  color: var(--learn-accent-deep);
  text-decoration: none;
}

.learn-kicker a:hover { text-decoration: underline; }

.learn-lead,
.learn-dek {
  margin: 0;
  max-width: 38em;
  color: var(--learn-secondary);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.learn-empty {
  margin: 28px 0 0;
  max-width: 36em;
  color: var(--learn-secondary);
  font-size: 1.05rem;
  line-height: 1.65;
}

.learn-empty a {
  color: var(--learn-accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.learn-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
}

.learn-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 18px;
  row-gap: 6px;
  margin: 0 -18px;
  padding: 22px 18px;
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}

.learn-list a + a {
  box-shadow: inset 0 1px 0 var(--learn-line);
}

.learn-list a:hover {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 30px rgba(55, 40, 120, 0.06);
}

.learn-list-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.learn-list-summary {
  color: var(--learn-secondary);
  font-size: 0.98rem;
  line-height: 1.45;
}

.learn-chevron {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--learn-tertiary);
  border-right: 1.5px solid var(--learn-tertiary);
  transform: rotate(45deg);
}

.learn-draft-banner {
  margin: 0 0 28px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(123, 97, 255, 0.1);
  color: #3c3489;
  font-size: 0.95rem;
  line-height: 1.45;
}

.learn-prose {
  margin-top: 32px;
  font-size: 1.0625rem;
  letter-spacing: -0.011em;
  line-height: 1.75;
}

.learn-prose p { margin: 0 0 1.15em; }

.learn-article h2 {
  margin: 3.25rem 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.learn-phrases,
.learn-dialogue {
  margin: 12px 0 0;
  padding: 0;
}

.learn-phrases { list-style: none; }

.learn-phrases li {
  padding: 18px 0;
  border-bottom: 1px solid var(--learn-line);
}

.learn-dialogue {
  list-style: none;
  counter-reset: learn-line;
  margin-top: 16px;
  padding: 8px 22px 8px 20px;
  border-left: 3px solid var(--learn-accent);
  border-radius: 0 20px 20px 0;
  background: var(--learn-card);
  box-shadow: 0 12px 40px rgba(55, 40, 120, 0.05);
}

.learn-dialogue li {
  position: relative;
  padding: 16px 0 16px 2px;
  border-bottom: 1px solid var(--learn-line);
}

.learn-dialogue li:last-child,
.learn-phrases li:last-child { border-bottom: none; }

.learn-phrases .en,
.learn-dialogue .en {
  margin: 0;
  font-size: 1.07rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.learn-phrases .zh,
.learn-dialogue .zh {
  margin: 5px 0 0;
  color: var(--learn-secondary);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.5;
}

.learn-next {
  margin-top: 3rem;
  padding: 28px 28px 24px;
  border-radius: 22px;
  background: var(--learn-card);
  box-shadow: 0 16px 40px rgba(55, 40, 120, 0.06);
}

.learn-next p {
  margin: 0;
  color: var(--learn-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.learn-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
}

.learn-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 980px;
  background: var(--learn-accent);
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.learn-cta:hover { background: var(--learn-accent-deep); }

.learn-folder {
  color: var(--learn-accent-deep);
  font-weight: 600;
  text-decoration: none;
}

.learn-folder:hover { text-decoration: underline; }

.learn-related ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.learn-related a {
  display: flex;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid var(--learn-line);
  color: var(--learn-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.learn-related a:hover { color: var(--learn-accent-deep); }

.learn-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  width: min(720px, calc(100% - 48px));
  margin: 8px auto 0;
  padding: 28px 0 72px;
  color: var(--learn-tertiary);
  font-size: 0.9rem;
}

.learn-footer a {
  color: var(--learn-text);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.learn-footer a:hover { color: var(--learn-accent-deep); }

a:focus-visible {
  outline: 2px solid var(--learn-accent);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .learn-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .learn-nav { justify-content: flex-start; }

  .learn-wrap,
  .learn-footer {
    width: min(720px, calc(100% - 40px));
  }

  .learn-wrap { padding-top: 36px; }

  .learn-next { padding: 22px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .learn-list a:hover { box-shadow: none; }
}
