:root {
  --bg: #fffaf7;
  --surface: #ffffff;
  --text: #222222;
  --muted: #6a6a6a;
  --line: #eeeeee;
  --accent: #ff385c;
  --accent-dark: #d91f48;
  --blue: #2563eb;
  --green: #059669;
  --shadow: rgba(0,0,0,0.02) 0 0 0 1px, rgba(0,0,0,0.04) 0 2px 6px, rgba(0,0,0,0.10) 0 4px 8px;
  --hover: rgba(0,0,0,0.08) 0 4px 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: radial-gradient(circle at top left, #fff1f4, transparent 34rem), var(--bg); }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px clamp(18px, 5vw, 64px); background: rgba(255,255,255,.86); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(0,0,0,.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent); box-shadow: var(--shadow); }
.top-nav { display: flex; gap: 16px; color: var(--muted); font-size: 14px; font-weight: 700; }
.top-nav a { color: var(--text); }
.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 38px 0 72px; }
.home-hero, .topic-hero { background: rgba(255,255,255,.88); border-radius: 32px; padding: clamp(28px, 5vw, 54px); box-shadow: var(--shadow); }
.home-hero h1, .topic-hero h1 { margin: 8px 0 14px; font-size: clamp(34px, 7vw, 72px); line-height: .96; letter-spacing: -.055em; }
.home-hero p, .goal { max-width: 760px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.eyebrow, .panel-label, .card-kicker { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-pills span, .role-strip span, .role-strip b { padding: 10px 14px; border-radius: 999px; background: #f7f7f7; font-size: 14px; font-weight: 800; }
.filters { margin: 22px 0 24px; }
.filter-panel { display: grid; gap: 8px; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.88); box-shadow: var(--shadow); }
.filter-label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.status-filter-button { border: 1px solid rgba(0,0,0,.08); border-radius: 999px; padding: 9px 14px; background: #fff; color: var(--text); font-weight: 900; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.status-filter-button:hover { transform: translateY(-1px); border-color: rgba(0,0,0,.18); }
.status-filter-button.active { background: #222; color: #fff; border-color: #222; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 24px; }
.topic-card { display: grid; gap: 18px; min-height: 260px; padding: 22px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--hover); }
.topic-card.hidden { display: none; }
.topic-card.is-learned { background: linear-gradient(180deg, rgba(220,252,231,.78), rgba(255,255,255,.94)); }
.card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-read-badge { padding: 7px 10px; border-radius: 999px; color: var(--muted); background: #f7f7f7; font-size: 12px; font-weight: 900; }
.topic-card.is-learned .card-read-badge { color: #047857; background: #dcfce7; }
.topic-number { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #222; color: #fff; font-weight: 800; }
.topic-card h2 { margin: 8px 0; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; }
.topic-card p { color: var(--muted); margin: 0 0 10px; }
.topic-card small { color: var(--muted); line-height: 1.55; }
.topic-shell { width: min(1220px, calc(100% - 32px)); }
.topic-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.subtitle { color: var(--muted); font-size: 18px; margin: 0 0 14px; }
.learn-toggle { border: 0; padding: 14px 18px; border-radius: 999px; color: #fff; background: #222; font-weight: 800; cursor: pointer; white-space: nowrap; }
.learn-toggle.is-learned { background: var(--green); }
.role-strip { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 20px 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.dialogue-stack { display: grid; gap: 14px; }
.dialogue-line { background: rgba(255,255,255,.92); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.dialogue-line.speaker-a { border-left: 6px solid var(--blue); }
.dialogue-line.speaker-b { border-left: 6px solid var(--green); }
.line-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .10em; }
.fil-text { font-size: 21px; line-height: 1.55; margin: 12px 0 8px; font-weight: 700; letter-spacing: -.015em; }
.zh-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.line-vocab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.line-vocab b { color: var(--accent-dark); margin-right: 2px; }
.line-vocab span { display: inline-flex; gap: 2px; padding: 4px 8px; border-radius: 999px; background: #fff0f3; color: var(--text); }
.line-vocab strong { color: #b6123a; }
.line-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.line-actions button { border: 0; border-radius: 999px; padding: 9px 13px; font-weight: 800; cursor: pointer; background: #f2f2f2; color: var(--text); transition: transform .15s ease, background .15s ease; }
.line-actions button:hover:not(:disabled) { transform: translateY(-1px); background: #e9e9e9; }
.line-actions button:disabled { opacity: .45; cursor: not-allowed; }
.line-actions .line-play { background: #222; color: #fff; }
.line-actions .line-record { background: var(--accent); color: #fff; }
.line-actions .line-record.is-recording { background: #b91c1c; animation: pulse 1s infinite; }
.line-actions .line-listen:not(:disabled) { background: #dcfce7; color: #047857; }
.pronunciation-result { min-height: 22px; margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.pronunciation-result strong { color: var(--text); }
.pronunciation-result .score { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 28px; margin-right: 8px; border-radius: 999px; color: #fff; background: var(--green); font-weight: 900; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(.96); } }
.learning-word { border-bottom: 2px solid rgba(255,56,92,.42); color: #b6123a; cursor: pointer; padding: 0 2px; border-radius: 6px; }
.learning-word:hover { background: #fff0f3; }
.study-panel { position: sticky; top: 86px; display: grid; gap: 16px; }
.panel-card { background: var(--surface); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); }
.panel-card h2 { margin: 6px 0 14px; font-size: 22px; letter-spacing: -.035em; }
.word-list, .pattern-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.word-list li, .pattern-list li { display: grid; gap: 5px; padding: 12px; border-radius: 16px; background: #fafafa; }
.word-list strong { font-size: 17px; }
.word-list span, .pattern-list span { color: var(--accent-dark); font-weight: 800; }
.word-list em { color: var(--muted); font-style: normal; font-size: 13px; line-height: 1.45; }
.pattern-list code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: normal; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 28px; }
.pager a { padding: 12px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; text-align: center; }
.pager a:first-child { text-align: left; }
.pager a:last-child { text-align: right; }
.word-tip { position: fixed; z-index: 50; max-width: min(340px, calc(100vw - 28px)); background: #222; color: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.22); font-size: 14px; line-height: 1.55; }
.word-tip strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.word-tip span { color: #ffd9e1; font-weight: 800; }
.word-tip p { margin: 4px 0 0; color: rgba(255,255,255,.78); }
@media (max-width: 900px) { .topic-hero { flex-direction: column; } .content-grid { grid-template-columns: 1fr; } .study-panel { position: static; } .pager { grid-template-columns: 1fr; } .pager a, .pager a:first-child, .pager a:last-child { text-align: center; } }
@media (max-width: 560px) { .site-header { align-items: flex-start; flex-direction: column; } .home-hero h1, .topic-hero h1 { font-size: 42px; } .fil-text { font-size: 19px; } }
.footer-beian{text-align:center;padding:24px 0 16px;font-size:14px;color:#999}
.footer-beian a{color:#999;text-decoration:none}
.footer-beian a:hover{color:#666;text-decoration:underline}
