:root {
  --paper: #f6f0e4;
  --paper-light: #fffdf8;
  --ink: #25211e;
  --muted: #746d64;
  --line: #d8cfc0;
  --coral: #ef6a4d;
  --coral-soft: #f8d5c8;
  --blue: #3f6fa8;
  --blue-soft: #dbe8f3;
  --green: #537c62;
  --green-soft: #dce8d9;
  --yellow: #f1c75b;
  --shadow: 6px 7px 0 rgba(56, 46, 36, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(63,111,168,.3); outline-offset: 2px; }
.paper-noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E"); }

.site-header { height: 76px; padding: 0 clamp(20px,5vw,78px); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(75,64,53,.16); background: rgba(246,240,228,.94); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.brand-seal { width: 37px; height: 37px; display: grid; place-items: center; position: relative; background: var(--coral); color: #fff8e9; font-family: SimSun, serif; font-size: 22px; transform: rotate(-3deg); }
.brand-seal::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.65); }
.brand > span:last-child { display: flex; flex-direction: column; align-items: flex-start; }
.brand strong { font-family: SimSun, serif; font-size: 18px; letter-spacing: 3px; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: 4px; }
.site-header nav { display: flex; align-items: center; gap: 30px; }
.site-header nav button { padding: 28px 0 25px; position: relative; border: 0; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; }
.site-header nav button::after { content: ""; height: 3px; position: absolute; right: 50%; bottom: 0; left: 50%; background: var(--coral); transition: .25s; }
.site-header nav button:hover, .site-header nav button.active { color: var(--ink); }
.site-header nav button.active::after { right: 0; left: 0; }
.header-write, .primary-action { border: 0; background: var(--ink); color: white; cursor: pointer; }
.header-write { padding: 11px 16px; font-size: 12px; }
.header-write span, .primary-action span { margin-left: 12px; color: var(--yellow); }

.view { display: none; }
.view.active { display: block; animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.hero { min-height: calc(100vh - 76px); padding: 84px clamp(24px,7vw,108px); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; overflow: hidden; position: relative; }
.hero::before { content: ""; width: 480px; height: 480px; position: absolute; left: -230px; bottom: -260px; border: 1px solid #c9bdab; border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.16), 0 0 0 110px rgba(255,255,255,.11); }
.eyebrow { margin: 0 0 22px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.eyebrow span { margin-right: 9px; padding: 5px 8px; background: var(--yellow); color: var(--ink); font-weight: 800; letter-spacing: 1px; }
.hero h1, .page-hero h1 { margin: 0; font-family: SimSun, STSong, serif; font-weight: 700; line-height: 1.08; letter-spacing: -4px; }
.hero h1 { font-size: clamp(45px,4.6vw,68px); }
.hero h1 em, .page-hero h1 em { color: var(--coral); font-style: normal; }
.hero-intro { max-width: 640px; margin: 29px 0; color: var(--muted); font-family: SimSun, serif; font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.primary-action { padding: 15px 20px; font-weight: 700; font-size: 13px; box-shadow: 4px 4px 0 var(--yellow); }
.primary-action:hover { transform: translate(-1px,-1px); box-shadow: 6px 6px 0 var(--yellow); }
.text-action { padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--blue); font-size: 12px; cursor: pointer; }
.hero-promise { margin-top: 58px; display: flex; gap: 26px; color: var(--muted); font-size: 11px; }
.hero-promise span { display: flex; align-items: center; gap: 7px; }
.hero-promise b { color: var(--coral); font-family: Georgia, serif; }
.hero-art { min-height: 580px; position: relative; }
.sun { width: 385px; height: 385px; position: absolute; top: 36px; left: 48%; border-radius: 50%; background: var(--yellow); transform: translateX(-50%); }
.sun::before, .sun::after { content: ""; position: absolute; border: 1px solid rgba(37,33,30,.3); border-radius: 50%; }
.sun::before { inset: -25px; border-style: dashed; }
.sun::after { inset: 34px; }
.window-card { width: min(430px,82%); min-height: 310px; padding: 39px; position: absolute; top: 120px; left: 50%; border: 1px solid var(--ink); background: var(--paper-light); box-shadow: 11px 13px 0 var(--blue); transform: translateX(-50%) rotate(-2deg); }
.card-label, .challenge-time { color: var(--coral); font: 700 9px Georgia, serif; letter-spacing: 2px; }
.window-card blockquote { margin: 40px 0 32px; font-family: SimSun, serif; font-size: clamp(20px,2.1vw,29px); font-weight: 700; line-height: 1.7; }
.ink-line { width: 70px; height: 3px; margin-bottom: 13px; background: var(--coral); }
.window-card small { color: var(--muted); line-height: 1.6; }
.pencil { width: 265px; height: 26px; padding: 5px 30px; position: absolute; right: -35px; bottom: 76px; background: var(--coral); color: rgba(255,255,255,.75); font-size: 8px; letter-spacing: 15px; transform: rotate(-42deg); box-shadow: inset 0 0 0 4px rgba(255,255,255,.2); }
.pencil::after { content: ""; position: absolute; right: -35px; top: 0; border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 36px solid #dcc19c; }
.floating-note { padding: 15px 18px; position: absolute; bottom: 30px; left: 4%; border: 1px solid var(--ink); background: var(--green-soft); font-size: 10px; line-height: 1.7; transform: rotate(4deg); }

.route-section, .shelf-section { padding: 100px clamp(24px,7vw,108px); }
.route-section { background: var(--paper-light); }
.section-heading { max-width: 1280px; margin: 0 auto 36px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading.compact { margin-bottom: 25px; }
.section-heading span { color: var(--coral); font: 700 9px Georgia, serif; letter-spacing: 2px; }
.section-heading h2 { margin: 8px 0 0; font-family: SimSun, serif; font-size: clamp(30px,4vw,48px); }
.section-heading p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.route-grid { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--ink); }
.route-card { min-height: 350px; padding: 30px; display: flex; flex-direction: column; position: relative; border: 0; border-right: 1px solid var(--ink); background: transparent; text-align: left; cursor: pointer; overflow: hidden; }
.route-card:last-child { border-right: 0; }
.route-card::before { content: ""; width: 190px; height: 190px; position: absolute; right: -68px; top: -76px; border-radius: 50%; opacity: .9; transition: .35s; }
.route-card.coral::before { background: var(--coral-soft); }
.route-card.blue::before { background: var(--blue-soft); }
.route-card.green::before { background: var(--green-soft); }
.route-card:hover::before { transform: scale(1.25); }
.route-number { position: relative; font: 700 10px Georgia, serif; }
.route-card i { width: 75px; height: 75px; margin: 40px 0 25px; display: grid; place-items: center; position: relative; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper-light); font: normal 32px SimSun, serif; }
.route-card h3 { margin: 0; font-family: SimSun, serif; font-size: 24px; }
.route-card p { max-width: 285px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.route-card > b { margin-top: auto; font-size: 11px; }
.shelf-section { background: var(--paper); }
.essay-shelf { max-width: 1280px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.essay-card { min-height: 330px; padding: 25px; display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); background: var(--paper-light); box-shadow: 4px 5px 0 rgba(55,45,35,.09); cursor: pointer; transition: .25s; overflow: hidden; }
.essay-card:hover { transform: translateY(-5px); box-shadow: 6px 9px 0 rgba(55,45,35,.12); }
.essay-card::after { content: attr(data-mark); position: absolute; right: -4px; bottom: -27px; color: rgba(37,33,30,.045); font: 800 150px SimSun, serif; }
.essay-card-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.stage-tag { padding: 5px 7px; background: var(--blue-soft); color: var(--blue); font-size: 9px; font-weight: 700; }
.difficulty { color: var(--coral); font-size: 10px; letter-spacing: 2px; }
.essay-card h3 { margin: 37px 0 13px; position: relative; z-index: 1; font-family: SimSun, serif; font-size: 26px; }
.essay-card p { margin: 0; position: relative; z-index: 1; color: var(--muted); font-family: SimSun, serif; font-size: 13px; line-height: 1.8; }
.card-tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.card-tags span { padding: 4px 7px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.essay-card > b { margin-top: 16px; position: relative; z-index: 1; color: var(--coral); font-size: 10px; }
.method-banner { padding: 70px clamp(24px,7vw,108px); display: grid; grid-template-columns: 120px 1fr 1.4fr; align-items: center; gap: 40px; background: var(--ink); color: white; }
.method-mark { width: 90px; height: 90px; display: grid; place-items: center; border: 1px solid var(--yellow); border-radius: 50%; color: var(--yellow); font: 700 19px/1.4 SimSun, serif; text-align: center; }
.method-banner > div:nth-child(2) span { color: var(--yellow); font-size: 9px; letter-spacing: 2px; }
.method-banner h2 { max-width: 450px; margin: 9px 0 0; font-family: SimSun, serif; font-size: 28px; line-height: 1.45; }
.method-banner ol { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: #514a44; }
.method-banner li { padding: 17px; display: flex; flex-direction: column; background: var(--ink); }
.method-banner li b { color: var(--coral); font-family: SimSun, serif; }
.method-banner li span { margin-top: 4px; color: #aaa19a; font-size: 9px; }

.inner-view { min-height: calc(100vh - 76px); padding-bottom: 100px; }
.page-hero { min-height: 410px; padding: 75px clamp(24px,8vw,128px); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.page-hero::after { content: ""; width: 400px; height: 400px; position: absolute; right: 8vw; border: 1px solid currentColor; border-radius: 50%; opacity: .18; box-shadow: 0 0 0 45px rgba(255,255,255,.15), 0 0 0 90px rgba(255,255,255,.1); }
.library-hero { background: var(--blue-soft); }
.material-hero { background: var(--green-soft); }
.page-hero h1 { max-width: 760px; font-size: clamp(44px,6vw,76px); }
.page-hero > p:last-child { max-width: 610px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.filter-bar { margin: 0 clamp(24px,7vw,108px); padding: 26px 0; display: flex; align-items: end; gap: 38px; border-bottom: 1px solid var(--line); }
.filter-bar > div { display: flex; flex-direction: column; gap: 9px; }
.filter-bar > div > span { color: var(--muted); font-size: 9px; }
.filter-group { display: flex; gap: 5px; }
.filter-group button, .category-tabs button { padding: 7px 11px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.filter-group button.active, .category-tabs button.active { border-color: var(--ink); background: var(--ink); color: white; }
.search-box { min-width: 245px; margin-left: auto; padding: 9px 12px; display: flex; gap: 8px; border-bottom: 1px solid var(--ink); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.result-note { margin: 24px clamp(24px,7vw,108px) 0; color: var(--muted); font-size: 10px; }
.library-grid { margin: 22px clamp(24px,7vw,108px); display: grid; grid-template-columns: repeat(3,1fr); gap: 17px; }
.library-grid .essay-card:nth-child(4n+2) .stage-tag { background: var(--green-soft); color: var(--green); }
.library-grid .essay-card:nth-child(4n+3) .stage-tag { background: var(--coral-soft); color: #9d432f; }
.material-toolbar { margin: 0 clamp(24px,7vw,108px); padding: 26px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.category-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.shuffle-button { padding: 10px 14px; border: 1px solid var(--ink); background: var(--paper-light); font-size: 10px; cursor: pointer; box-shadow: 3px 3px 0 var(--yellow); white-space: nowrap; }
.material-grid { margin: 25px clamp(24px,7vw,108px); columns: 3; column-gap: 18px; }
.material-card { margin: 0 0 18px; padding: 24px; display: inline-block; width: 100%; position: relative; border: 1px solid var(--line); background: var(--paper-light); break-inside: avoid; }
.material-card.featured { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(239,106,77,.12), var(--shadow); }
.material-card-head { display: flex; align-items: center; justify-content: space-between; }
.material-type { color: var(--coral); font: 700 9px Georgia, serif; letter-spacing: 1px; }
.material-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); font-family: SimSun, serif; }
.material-card h3 { margin: 20px 0 9px; font-family: SimSun, serif; font-size: 22px; }
.material-card .teaser { color: var(--muted); font-family: SimSun, serif; font-size: 13px; line-height: 1.8; }
.material-details { margin: 17px 0 0; padding: 15px; border-left: 3px solid var(--yellow); background: #f7f1e6; }
.material-details p { margin: 0; font-size: 11px; line-height: 1.8; }
.material-questions { margin: 16px 0 0; padding: 0; list-style: none; }
.material-questions li { padding: 7px 0 7px 15px; position: relative; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.material-questions li::before { content: "?"; position: absolute; left: 0; color: var(--coral); font-family: Georgia, serif; font-weight: 700; }
.material-card .card-tags { margin-top: 18px; }
.loading-card, .empty-state { padding: 60px; grid-column: 1/-1; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

.writer-view.active { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 390px 1fr; background: #dfd9ce; }
.writer-sidebar { padding: 45px 35px; border-right: 1px solid #beb5a8; background: var(--paper); overflow-y: auto; }
.back-home { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.writer-title { margin: 43px 0 31px; }
.writer-title span { color: var(--coral); font: 700 9px Georgia, serif; letter-spacing: 2px; }
.writer-title h1 { margin: 8px 0 0; font-family: SimSun, serif; font-size: 34px; line-height: 1.35; }
.topic-select-label { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 9px; }
.topic-select-label select { width: 100%; padding: 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper-light); font-size: 11px; }
.topic-brief { margin: 18px 0; padding: 17px; background: var(--blue-soft); }
.topic-brief span { color: var(--blue); font-size: 9px; font-weight: 700; }
.topic-brief h3 { margin: 6px 0; font-family: SimSun, serif; font-size: 20px; }
.topic-brief p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.topic-brief ul { margin: 10px 0 0; padding-left: 17px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.outline-box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.outline-box > button { width: 100%; padding: 14px 0; display: flex; justify-content: space-between; border: 0; background: transparent; font-size: 11px; font-weight: 700; cursor: pointer; }
#outline-prompts { padding-bottom: 13px; }
#outline-prompts p { margin: 0 0 9px; padding-left: 20px; position: relative; color: var(--muted); font-size: 10px; line-height: 1.6; }
#outline-prompts p::before { content: attr(data-index); width: 14px; height: 14px; display: grid; place-items: center; position: absolute; left: 0; top: 1px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 7px; }
.save-state { margin-top: 21px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.save-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.writing-paper { min-width: 0; min-height: calc(100vh - 76px); margin: 32px; padding: 36px 55px 22px; display: flex; flex-direction: column; background-color: var(--paper-light); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, rgba(88,113,145,.13) 38px); box-shadow: 0 10px 35px rgba(45,37,30,.15); }
.paper-toolbar { padding-bottom: 18px; display: flex; align-items: end; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.paper-toolbar label { flex: 1; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 9px; }
.paper-toolbar input { width: min(550px,90%); padding: 3px 0; border: 0; outline: 0; background: transparent; font-family: SimSun, serif; font-size: 25px; font-weight: 700; }
.paper-toolbar > div { display: flex; align-items: center; gap: 9px; }
.paper-toolbar span { margin-right: 8px; color: var(--muted); font-size: 10px; }
.paper-toolbar button { padding: 6px 8px; border: 1px solid var(--line); background: transparent; font-size: 9px; cursor: pointer; }
#draft-body { width: 100%; min-height: 580px; flex: 1; padding: 20px 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font-family: SimSun, serif; font-size: 18px; line-height: 38px; }
.writing-footer { padding-top: 15px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); }
.writing-footer p { margin: 0; color: var(--muted); font-size: 9px; }
.writing-footer button { padding: 10px 13px; border: 0; background: var(--green); color: white; font-size: 10px; cursor: pointer; }

.site-footer { padding: 28px clamp(24px,7vw,108px); display: flex; align-items: center; justify-content: space-between; background: #1e1b19; color: white; }
.site-footer div { display: flex; align-items: center; gap: 12px; }
.site-footer strong { font-family: SimSun, serif; letter-spacing: 2px; }
.site-footer span, .site-footer p { color: #9c938b; font-size: 9px; }
body:has(.writer-view.active) .site-footer { display: none; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(30,27,25,.78); backdrop-filter: blur(4px); }
.reader-dialog { width: min(1180px,94vw); height: min(90vh,850px); background: var(--paper-light); }
.reader-shell { height: 100%; display: grid; grid-template-columns: 290px 1fr; position: relative; }
.reader-close { width: 36px; height: 36px; position: absolute; top: 18px; right: 20px; z-index: 3; border: 1px solid var(--line); border-radius: 50%; background: var(--paper-light); font-size: 24px; line-height: 1; cursor: pointer; }
.reader-aside { padding: 50px 28px 30px; display: flex; flex-direction: column; background: var(--blue-soft); }
.reader-index { color: var(--blue); font: 700 9px Georgia, serif; letter-spacing: 2px; }
#reader-meta h2 { margin: 35px 0 9px; font-family: SimSun, serif; font-size: 30px; line-height: 1.35; }
#reader-meta p { color: var(--muted); font-family: SimSun, serif; font-size: 12px; line-height: 1.7; }
#reader-meta .card-tags { margin-top: 18px; }
.reading-mission { margin-top: auto; padding: 17px; border: 1px solid var(--blue); background: rgba(255,255,255,.35); }
.reading-mission span { color: var(--blue); font-size: 9px; font-weight: 700; }
.reading-mission p { margin: 8px 0 0; font-size: 11px; line-height: 1.7; }
.reader-progress { height: 3px; margin-top: 25px; background: rgba(63,111,168,.18); }
.reader-progress i { width: 0; height: 100%; display: block; background: var(--blue); }
.reader-article { padding: 60px clamp(30px,6vw,85px); overflow-y: auto; scroll-behavior: smooth; }
.article-kicker { color: var(--coral); font: 700 9px Georgia, serif; letter-spacing: 2px; }
.article-lead { margin: 9px 0 40px; color: var(--muted); font-family: SimSun, serif; font-size: 15px; line-height: 1.8; }
.essay-paragraph { margin: 0 0 24px; position: relative; font-family: SimSun, serif; font-size: 17px; line-height: 2; text-align: justify; }
.essay-paragraph.has-note { padding-left: 17px; border-left: 3px solid var(--yellow); }
.paragraph-note { margin: -14px 0 24px; padding: 10px 13px; background: #f4ead1; color: #7f6431; font-size: 9px; line-height: 1.6; }
.study-block { margin: 45px 0 0; padding-top: 30px; border-top: 1px solid var(--line); }
.study-block > span { color: var(--coral); font: 700 9px Georgia, serif; letter-spacing: 2px; }
.study-block h3 { margin: 8px 0 18px; font-family: SimSun, serif; font-size: 25px; }
.highlight-quote { margin: 0; padding: 25px; border-left: 4px solid var(--coral); background: var(--coral-soft); font-family: SimSun, serif; font-size: 18px; line-height: 1.8; }
.study-explanation { color: var(--muted); font-size: 11px; line-height: 1.8; }
.technique-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.technique-steps div { padding: 14px; background: #f1ece2; }
.technique-steps b { color: var(--coral); font: 700 10px Georgia, serif; }
.technique-steps p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.comparison > div { padding: 17px; border: 1px solid var(--line); }
.comparison > div.after { border-color: var(--green); background: var(--green-soft); }
.comparison span { color: var(--muted); font-size: 8px; }
.comparison p { margin: 8px 0 0; font-family: SimSun, serif; font-size: 14px; line-height: 1.7; }
.mini-practice { padding: 24px; background: var(--ink); color: white; }
.mini-practice p { font-family: SimSun, serif; font-size: 17px; line-height: 1.7; }
.mini-practice small { color: #b8afa7; line-height: 1.6; }
.mini-practice button { margin-top: 18px; padding: 10px 13px; border: 1px solid var(--yellow); background: transparent; color: var(--yellow); font-size: 10px; cursor: pointer; }
.transfer-list { display: flex; flex-wrap: wrap; gap: 7px; }
.transfer-list span { padding: 7px 10px; border: 1px solid var(--line); font-size: 10px; }
.challenge-dialog, .checklist-dialog { width: min(540px,92vw); padding: 50px; position: relative; background: var(--paper-light); box-shadow: 10px 10px 0 var(--yellow); }
.challenge-icon { width: 70px; height: 70px; margin: 30px 0 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); font: 30px SimSun, serif; }
.challenge-dialog h2, .checklist-dialog h2 { margin: 0; font-family: SimSun, serif; font-size: 32px; line-height: 1.4; }
.challenge-dialog > p { color: var(--muted); font-family: SimSun, serif; font-size: 16px; line-height: 1.8; }
.challenge-tip { padding: 13px; border-left: 3px solid var(--coral); background: var(--coral-soft); color: #6c5148; font-size: 10px; line-height: 1.6; }
.challenge-actions { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; }
.challenge-actions > button:first-child { border: 0; background: transparent; color: var(--blue); font-size: 10px; cursor: pointer; }
#checklist-items { margin-top: 25px; }
.check-item { padding: 13px 0; display: flex; align-items: flex-start; gap: 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.check-item input { margin-top: 2px; accent-color: var(--green); }
.check-item span { font-size: 11px; line-height: 1.6; }
.checklist-result { padding: 13px; background: var(--green-soft); color: var(--green); font-size: 10px; line-height: 1.6; }
.toast { max-width: 330px; padding: 12px 16px; position: fixed; right: 25px; bottom: 25px; z-index: 100; background: var(--ink); color: white; font-size: 10px; opacity: 0; transform: translateY(15px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .site-header nav { gap: 15px; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 530px; }
  .route-grid, .essay-shelf, .library-grid { grid-template-columns: repeat(2,1fr); }
  .route-card:nth-child(2) { border-right: 0; }
  .route-card:last-child { grid-column: 1/-1; border-top: 1px solid var(--ink); }
  .method-banner { grid-template-columns: 90px 1fr; }
  .method-banner ol { grid-column: 1/-1; }
  .filter-bar { align-items: flex-start; flex-wrap: wrap; }
  .search-box { margin-left: 0; }
  .material-grid { columns: 2; }
  .writer-view.active { grid-template-columns: 310px 1fr; }
  .writing-paper { margin: 20px; padding: 30px; }
}

@media (max-width: 680px) {
  body { padding-bottom: 58px; }
  .site-header { height: 64px; padding: 0 15px; backdrop-filter: none; }
  .brand strong { font-size: 15px; }
  .brand small, .header-write { display: none; }
  .site-header nav { height: 58px; padding: 0 8px; display: flex; justify-content: space-around; gap: 0; position: fixed; right: 0; bottom: 0; left: 0; z-index: 45; border-top: 1px solid var(--line); background: rgba(255,253,248,.97); box-shadow: 0 -5px 20px rgba(45,37,30,.08); }
  .site-header nav button { flex: 1; padding: 20px 5px 17px; font-size: 11px; }
  .site-header nav button::after { height: 2px; top: 0; bottom: auto; }
  .hero { min-height: auto; padding: 60px 20px; gap: 25px; }
  .hero h1 { font-size: 41px; letter-spacing: -3px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-promise { gap: 10px; flex-wrap: wrap; margin-top: 40px; }
  .hero-art { min-height: 420px; }
  .sun { width: 290px; height: 290px; }
  .window-card { width: 86%; min-height: 260px; top: 90px; padding: 28px; }
  .floating-note { left: 0; }
  .pencil { display: none; }
  .route-section, .shelf-section { padding: 70px 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .route-grid, .essay-shelf, .library-grid { grid-template-columns: 1fr; }
  .route-card { min-height: 290px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .route-card:nth-child(2) { border-bottom: 1px solid var(--ink); }
  .route-card:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .method-banner { padding: 55px 20px; grid-template-columns: 1fr; }
  .method-banner ol { grid-column: auto; grid-template-columns: 1fr; }
  .page-hero { min-height: 360px; padding: 55px 20px; }
  .page-hero h1 { font-size: 44px; }
  .page-hero::after { right: -220px; }
  .filter-bar, .material-toolbar { margin: 0 18px; align-items: stretch; flex-direction: column; }
  .filter-group { flex-wrap: wrap; }
  .search-box { min-width: 0; width: 100%; }
  .library-grid, .result-note, .material-grid { margin-right: 18px; margin-left: 18px; }
  .material-grid { columns: 1; }
  .writer-view.active { display: block; }
  .writer-sidebar { padding: 35px 20px; border-right: 0; }
  .writing-paper { min-height: 720px; margin: 0; padding: 25px 20px; box-shadow: none; }
  .paper-toolbar { align-items: flex-start; flex-direction: column; gap: 13px; }
  .paper-toolbar input { width: 100%; }
  #draft-body { min-height: 500px; font-size: 16px; }
  .writing-footer { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .reader-dialog { width: 100vw; height: 100vh; max-height: none; }
  .reader-shell { display: block; overflow-y: auto; }
  .reader-aside { min-height: 300px; }
  .reading-mission { margin-top: 25px; }
  .reader-article { padding: 38px 22px; overflow: visible; }
  .technique-steps, .comparison { grid-template-columns: 1fr; }
  .challenge-dialog, .checklist-dialog { padding: 42px 25px 30px; }
}

@media print {
  .site-header, .site-footer, .writer-sidebar, .paper-toolbar button, .writing-footer { display: none !important; }
  .writer-view.active { display: block; }
  .writing-paper { margin: 0; box-shadow: none; }
}
