:root {
  --paper: #f5f3ed;
  --paper-deep: #ebe7de;
  --surface: #fffefa;
  --ink: #17231f;
  --ink-soft: #35423d;
  --muted: #727a74;
  --line: #d9d7cf;
  --red: #9b3028;
  --red-dark: #7d241e;
  --gold: #b08b4f;
  --green: #315d4b;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", Georgia, serif;
  --sans: "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 60px rgba(25, 33, 29, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: rgba(155, 48, 40, .16); }

.demo-strip { min-height: 32px; padding: 6px 4vw; background: var(--ink); color: #e9e7df; display: flex; justify-content: center; align-items: center; gap: 18px; font-size: 11px; letter-spacing: .04em; }
.text-button { border: 0; background: none; color: inherit; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.site-header { height: 88px; padding: 0 4vw; display: flex; align-items: center; justify-content: space-between; gap: 26px; background: rgba(245,243,237,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.brand { border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 12px; text-align: left; flex-shrink: 0; }
.brand-seal { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--red); color: white; font-family: var(--serif); font-size: 24px; border-radius: 2px; flex-shrink: 0; }
.brand-copy { display: flex; flex-direction: column; gap: 4px; }
.brand-copy strong { font-family: var(--serif); font-size: 15px; letter-spacing: .06em; }
.brand-copy span { font-size: 8px; letter-spacing: .13em; color: var(--muted); }
.main-nav { display: flex; height: 100%; gap: 26px; }
.main-nav button { position: relative; border: 0; background: none; padding: 0 2px; font-size: 13px; color: var(--muted); }
.main-nav button:hover, .main-nav button.active { color: var(--ink); }
.main-nav button.active::after { content: ""; position: absolute; bottom: 0; height: 2px; background: var(--red); left: 0; right: 0; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.ai-header-button, .inquiry-button { height: 38px; border: 1px solid var(--line); background: transparent; padding: 0 13px; font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.ai-header-button { border-color: rgba(155,48,40,.3); color: var(--red); }
.ai-spark { font-size: 16px; }
.inquiry-button { background: var(--ink); color: white; border-color: var(--ink); }
.inquiry-count { min-width: 18px; height: 18px; border-radius: 20px; background: var(--red); display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.mobile-menu { display: none; background: none; border: 0; font-size: 22px; }

#app { min-height: 70vh; }
.page { animation: pageIn .45s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.container { width: min(1240px, 92vw); margin: 0 auto; }
.section { padding: 88px 0; }
.section-compact { padding: 52px 0; }
.section-dark { background: var(--ink); color: #f6f2e9; }
.section-white { background: var(--surface); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-size: 10px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.section-dark .eyebrow { color: #d4b57e; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
.display-title { font-size: clamp(44px, 5.7vw, 78px); line-height: 1.13; letter-spacing: -.035em; margin: 22px 0 24px; }
.display-title em { color: var(--red); font-style: normal; }
.section-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.2; letter-spacing: -.025em; margin: 14px 0 18px; }
.section-intro { color: var(--muted); line-height: 1.9; max-width: 610px; font-size: 14px; }
.section-dark .section-intro { color: #b9c1bb; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.section-head .section-title { margin-bottom: 0; }

.primary-button, .secondary-button, .light-button { min-height: 46px; padding: 0 22px; border: 1px solid var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 20px; font-size: 13px; transition: .2s ease; }
.primary-button { background: var(--ink); color: white; }
.primary-button:hover { background: var(--red); border-color: var(--red); }
.secondary-button { background: transparent; color: var(--ink); }
.secondary-button:hover { background: var(--ink); color: white; }
.light-button { background: #f6f2e9; color: var(--ink); border-color: #f6f2e9; }
.light-button:hover { background: white; }
.arrow { font-size: 18px; line-height: 1; }
.button-row { display: flex; gap: 12px; flex-wrap: wrap; }
.link-arrow { border: 0; border-bottom: 1px solid var(--ink); background: none; padding: 0 0 6px; font-size: 12px; display: inline-flex; gap: 22px; align-items: center; }
.section-dark .link-arrow { color: #f6f2e9; border-color: #f6f2e9; }

.hero { min-height: 690px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6vw; padding: 58px 0 68px; }
.hero-copy { padding-bottom: 12px; }
.hero-subtitle { color: var(--muted); max-width: 510px; line-height: 2; font-size: 15px; margin: 4px 0 32px; }
.hero-visual { position: relative; padding: 20px 20px 40px 0; }
.hero-image-frame { height: 510px; background: #ded8c9; overflow: hidden; position: relative; }
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.08) contrast(1.03); }
.hero-image-frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(23,35,31,.12); pointer-events: none; }
.hero-caption { position: absolute; left: -42px; bottom: 0; width: 255px; background: var(--surface); padding: 22px 24px; box-shadow: var(--shadow); }
.hero-caption small { color: var(--red); letter-spacing: .12em; font-size: 9px; }
.hero-caption strong { font-family: var(--serif); font-size: 20px; display: block; margin: 9px 0 7px; }
.hero-caption p { color: var(--muted); font-size: 11px; margin: 0; line-height: 1.7; }
.hero-vertical { position: absolute; right: -4px; top: 45px; writing-mode: vertical-rl; font-family: var(--serif); letter-spacing: .22em; font-size: 12px; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category-card { border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; padding: 34px; text-align: left; min-height: 210px; transition: .25s ease; position: relative; }
.category-card:hover { background: var(--surface); transform: translateY(-3px); box-shadow: var(--shadow); z-index: 2; }
.category-number { color: var(--red); font-family: Georgia, serif; font-size: 12px; }
.category-card h3 { font-size: 26px; margin: 30px 0 12px; }
.category-card p { color: var(--muted); font-size: 12px; line-height: 1.8; max-width: 280px; }
.category-card .arrow { position: absolute; right: 28px; top: 30px; }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 22px; }
.work-card { background: transparent; min-width: 0; }
.work-card-media { width: 100%; border: 0; padding: 0; background: #e7e2d8; aspect-ratio: 1.24; overflow: hidden; position: relative; text-align: left; }
.work-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.work-card:hover .work-card-media img { transform: scale(1.035); }
.work-badge { position: absolute; left: 14px; top: 14px; background: rgba(255,254,250,.92); padding: 6px 9px; font-size: 9px; letter-spacing: .1em; color: var(--ink); }
.work-card-body { padding: 17px 2px 0; }
.work-meta { color: var(--red); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 8px; }
.work-card h3 { font-size: 22px; margin: 0 0 7px; line-height: 1.35; }
.work-card h3 button { border: 0; background: none; padding: 0; text-align: left; font: inherit; }
.work-card h3 button:hover { color: var(--red); }
.work-byline { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.rights-line { color: var(--green); font-size: 10px; margin-top: 10px; }

.book-cover { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: 11% 12%; text-align: left; position: relative; overflow: hidden; }
.book-cover::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(255,255,255,.2) 4px); }
.book-cover.river { background: #263e3a; color: #f4ead7; }
.book-cover.city { background: #b14a38; color: #fff6e8; }
.book-cover.mountain { background: #d8c9aa; color: #233b36; }
.book-cover .cover-category { font-size: 9px; letter-spacing: .22em; z-index: 1; }
.book-cover strong { font-family: var(--serif); font-size: clamp(23px, 2.4vw, 34px); line-height: 1.4; letter-spacing: .08em; max-width: 75%; z-index: 1; }
.book-cover small { font-size: 10px; letter-spacing: .14em; z-index: 1; }
.book-cover .cover-mark { position: absolute; width: 170px; height: 170px; border: 1px solid currentColor; border-radius: 50%; opacity: .3; right: -55px; top: 28%; }
.book-cover .cover-mark::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid currentColor; border-radius: 50%; left: 29px; top: 29px; }

.institution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.institution-card { border: 1px solid rgba(255,255,255,.17); background: transparent; color: inherit; padding: 30px; text-align: left; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; transition: .25s ease; }
.institution-card:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.4); }
.institution-monogram { font-family: var(--serif); font-size: 32px; color: #d4b57e; }
.institution-card h3 { font-size: 23px; margin: 28px 0 10px; }
.institution-card p { color: #b9c1bb; font-size: 12px; line-height: 1.8; }
.institution-card small { color: #d4b57e; letter-spacing: .12em; font-size: 9px; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: steps; }
.process-step { padding: 0 28px; border-left: 1px solid var(--line); min-height: 200px; }
.process-step:first-child { padding-left: 0; border: 0; }
.process-number { font-family: Georgia, serif; color: var(--red); font-size: 13px; }
.process-step h3 { font-size: 22px; margin: 38px 0 14px; }
.process-step p { color: var(--muted); font-size: 12px; line-height: 1.85; }

.page-hero { padding: 70px 0 45px; border-bottom: 1px solid var(--line); }
.page-hero .section-title { max-width: 780px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 11px; margin-bottom: 32px; flex-wrap: wrap; }
.breadcrumbs button { border: 0; background: none; padding: 0; color: var(--muted); }
.breadcrumbs button:hover { color: var(--red); }

.discover-toolbar { padding: 28px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.search-box { display: flex; width: min(540px, 100%); border-bottom: 1px solid var(--ink); }
.search-box input { flex: 1; border: 0; background: transparent; padding: 13px 0; outline: none; font-size: 14px; min-width: 0; }
.search-box button { border: 0; background: none; padding: 0 6px 0 18px; font-size: 19px; }
.filter-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 30px; }
.filter-label { font-size: 11px; color: var(--muted); margin-right: 8px; }
.filter-chip { border: 1px solid var(--line); background: transparent; padding: 8px 14px; font-size: 11px; }
.filter-chip:hover, .filter-chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.result-count { color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.empty-state { text-align: center; padding: 80px 20px; border: 1px solid var(--line); }
.empty-state h3 { font-size: 28px; }
.empty-state p { color: var(--muted); font-size: 13px; }

.detail-hero { padding: 48px 0 72px; }
.detail-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 6vw; align-items: start; }
.detail-media { background: #e4dfd4; min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.detail-media img { width: 100%; height: 100%; max-height: 680px; object-fit: cover; }
.detail-media.contain img { object-fit: contain; padding: 28px; }
.detail-media .book-cover { aspect-ratio: .82; max-width: 420px; min-height: 540px; box-shadow: 18px 22px 45px rgba(23,35,31,.18); margin: 50px; }
.detail-copy { padding-top: 20px; }
.detail-copy h1 { font-size: clamp(38px, 4.3vw, 58px); line-height: 1.2; margin: 18px 0 10px; }
.detail-description { font-size: 14px; line-height: 2; color: var(--ink-soft); margin: 22px 0 28px; }
.meta-table { border-top: 1px solid var(--line); margin: 26px 0; }
.meta-row { display: grid; grid-template-columns: 100px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.meta-row span:first-child { color: var(--muted); }
.meta-row button { border: 0; background: none; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.source-note { font-size: 10px; color: var(--muted); line-height: 1.7; margin-top: 18px; }
.rights-section { padding: 64px 0; background: var(--surface); }
.rights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.right-card { padding: 26px; border: 1px solid var(--line); background: transparent; }
.right-status { color: var(--green); font-size: 10px; display: flex; align-items: center; gap: 7px; }
.right-status::before { content: ""; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.right-card h3 { font-size: 24px; margin: 22px 0 12px; }
.right-card p { color: var(--muted); font-size: 12px; line-height: 1.8; min-height: 66px; }
.right-card button { width: 100%; margin-top: 12px; }
.right-card.added { border-color: var(--green); background: rgba(49,93,75,.04); }
.detail-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.profile-teaser { border: 1px solid var(--line); padding: 30px; background: transparent; text-align: left; }
.profile-teaser:hover { background: var(--surface); }
.profile-teaser h3 { font-size: 25px; margin: 18px 0 10px; }
.profile-teaser p { color: var(--muted); font-size: 12px; line-height: 1.8; }

.profile-hero { padding: 72px 0; color: #f5f0e6; background: var(--ink); }
.profile-hero.institution-museum { background: #273c3a; }
.profile-hero.institution-publisher { background: #60362f; }
.profile-hero.institution-agency { background: #37372f; }
.profile-hero-grid { display: grid; grid-template-columns: 1fr .75fr; gap: 7vw; align-items: center; }
.profile-hero h1 { font-size: clamp(42px, 5.3vw, 68px); margin: 18px 0; }
.profile-hero p { color: #d0d4ce; line-height: 2; max-width: 620px; font-size: 14px; }
.profile-hero .eyebrow { color: #d4b57e; }
.profile-monogram { width: 250px; height: 250px; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 110px; margin-left: auto; position: relative; }
.profile-monogram::after { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(255,255,255,.12); }
.profile-facts { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.profile-fact { font-size: 11px; color: #d4b57e; letter-spacing: .08em; }

.inquiry-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 55px; padding: 55px 0 80px; }
.selected-list { border-top: 1px solid var(--line); }
.selected-item { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.selected-item h3 { font-size: 19px; margin: 0 0 7px; }
.selected-item p { color: var(--muted); font-size: 11px; margin: 0; }
.remove-button { border: 0; background: none; color: var(--red); font-size: 11px; align-self: start; }
.inquiry-form { background: var(--surface); padding: 34px; border: 1px solid var(--line); }
.inquiry-form h2 { font-size: 28px; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 11px; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 12px 13px; outline: none; border-radius: 0; color: var(--ink); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--red); }
.form-field textarea { min-height: 100px; resize: vertical; }
.form-note { color: var(--muted); font-size: 10px; line-height: 1.7; }
.success-panel { text-align: center; padding: 90px 20px; max-width: 740px; margin: 0 auto; }
.success-icon { width: 64px; height: 64px; border: 1px solid var(--green); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 50%; margin: 0 auto 26px; }
.success-panel h1 { font-size: 42px; }
.success-panel p { color: var(--muted); line-height: 1.9; }
.success-panel .button-row { justify-content: center; margin-top: 30px; }

.brief-page { background: #e9e7e0; padding: 50px 0 80px; }
.brief-toolbar { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; }
.brief-paper { background: white; max-width: 920px; margin: 0 auto; padding: 62px 70px; box-shadow: 0 15px 45px rgba(23,35,31,.08); }
.brief-head { border-bottom: 2px solid var(--ink); padding-bottom: 24px; margin-bottom: 34px; display: flex; justify-content: space-between; gap: 20px; }
.brief-head h1 { font-size: 30px; margin: 8px 0 0; }
.brief-ref { font-size: 10px; color: var(--muted); text-align: right; line-height: 1.8; }
.brief-section { margin: 28px 0; }
.brief-section h2 { font-size: 18px; margin-bottom: 12px; font-family: var(--sans); font-weight: 600; }
.brief-section p, .brief-section li { font-size: 13px; line-height: 1.9; color: var(--ink-soft); }
.brief-section ul { padding-left: 20px; }
.brief-divider { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.brief-disclaimer { background: var(--paper); padding: 16px; font-size: 10px; color: var(--muted); line-height: 1.7; }

.drawer-backdrop { position: fixed; inset: 0; background: rgba(12,20,17,.45); opacity: 0; pointer-events: none; transition: .25s; z-index: 60; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.ai-drawer { position: fixed; right: 0; top: 0; bottom: 0; width: min(470px, 100vw); background: var(--paper); z-index: 70; transform: translateX(100%); transition: .3s ease; padding: 30px; display: flex; flex-direction: column; }
.ai-drawer.open { transform: translateX(0); }
.drawer-header { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.drawer-header h2 { font-size: 29px; margin: 12px 0 0; }
.icon-button { border: 1px solid var(--line); background: transparent; width: 36px; height: 36px; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ai-disclaimer { font-size: 10px; color: var(--muted); line-height: 1.7; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.ai-messages { flex: 1; overflow-y: auto; padding: 10px 0; }
.ai-message { padding: 14px 16px; margin: 10px 0; font-size: 12px; line-height: 1.8; max-width: 90%; }
.ai-message.assistant { background: var(--surface); border: 1px solid var(--line); }
.ai-message.user { background: var(--ink); color: white; margin-left: auto; }
.ai-results { display: grid; gap: 8px; margin-top: 10px; }
.ai-result { background: var(--surface); border: 1px solid var(--line); padding: 13px; text-align: left; }
.ai-result strong { font-family: var(--serif); display: block; margin-bottom: 4px; }
.ai-result span { font-size: 10px; color: var(--muted); }
.ai-prompts { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.ai-prompts button { border: 1px solid var(--line); background: transparent; padding: 7px 9px; font-size: 10px; }
.ai-input { display: flex; border: 1px solid var(--ink); background: var(--surface); }
.ai-input input { flex: 1; border: 0; background: transparent; outline: none; padding: 13px; min-width: 0; }
.ai-input button { width: 45px; border: 0; background: var(--red); color: white; font-size: 20px; }

.info-modal { width: min(680px, 92vw); max-height: 82vh; padding: 44px; border: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.info-modal::backdrop { background: rgba(12,20,17,.55); }
.modal-close { position: absolute; right: 16px; top: 16px; }
.info-modal h2 { font-size: 32px; margin-bottom: 22px; }
.info-modal p, .info-modal li { font-size: 12px; line-height: 1.9; color: var(--ink-soft); }
.info-modal a { color: var(--red); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 13px 20px; z-index: 100; opacity: 0; pointer-events: none; transition: .25s; font-size: 12px; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy span { display: none; }
  .ai-header-button span:last-child { display: none; }
  .hero { gap: 4vw; }
  .hero-image-frame { height: 450px; }
}

@media (max-width: 820px) {
  .demo-strip { justify-content: space-between; font-size: 9px; padding-left: 18px; padding-right: 18px; }
  .site-header { height: 72px; padding: 0 18px; }
  .brand-copy strong { font-size: 12px; max-width: 205px; }
  .brand-seal { width: 36px; height: 36px; font-size: 20px; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; height: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 20px; flex-direction: column; gap: 20px; }
  .main-nav.open { display: flex; }
  .main-nav button { text-align: left; padding: 5px 0; }
  .main-nav button.active::after { display: none; }
  .mobile-menu { display: block; }
  .inquiry-button { padding: 0 10px; }
  .inquiry-button > span:first-child { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 42px; gap: 25px; }
  .hero-image-frame { height: 380px; }
  .hero-caption { left: 12px; }
  .hero-vertical { display: none; }
  .section { padding: 62px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .category-grid, .work-grid, .institution-grid, .rights-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 35px 0; }
  .process-step:nth-child(3) { border-left: 0; padding-left: 0; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-media { min-height: 380px; }
  .profile-hero-grid { grid-template-columns: 1fr; }
  .profile-monogram { display: none; }
  .inquiry-layout { grid-template-columns: 1fr; gap: 35px; }
  .brief-paper { padding: 40px 32px; }
  .footer-main { flex-direction: column; }
}

@media (max-width: 540px) {
  .brand-copy strong { max-width: 170px; font-size: 11px; }
  .ai-header-button { display: none; }
  .display-title { font-size: 43px; }
  .hero-image-frame { height: 310px; }
  .hero-caption { width: 225px; padding: 17px; }
  .category-grid, .work-grid, .institution-grid, .rights-grid, .detail-bottom { grid-template-columns: 1fr; }
  .category-card { min-height: 170px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding: 25px 0 0; min-height: 160px; }
  .process-step:first-child { border-top: 0; }
  .process-step h3 { margin-top: 20px; }
  .discover-toolbar { align-items: stretch; flex-direction: column; }
  .detail-media .book-cover { min-height: 430px; margin: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .inquiry-form { padding: 24px; }
  .brief-toolbar { align-items: start; flex-direction: column; }
  .brief-head { flex-direction: column; }
  .brief-ref { text-align: left; }
  .brief-paper { padding: 32px 22px; }
  .ai-drawer { padding: 22px; }
  .info-modal { padding: 36px 24px; }
  .footer-links { flex-wrap: wrap; }
}

.site-footer { background: #111c18; color: #e9e7df; padding: 45px 4vw 22px; }
.footer-main { display: flex; justify-content: space-between; gap: 35px; padding-bottom: 35px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { font-family: var(--serif); font-size: 14px; }
.footer-brand p { color: #8f9b94; font-size: 11px; margin: 8px 0 0; }
.footer-links { display: flex; gap: 25px; align-items: center; }
.footer-links button { background: none; border: 0; color: #b6bdb8; padding: 0; font-size: 11px; }
.footer-links button:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; color: #738078; font-size: 9px; letter-spacing: .08em; }

@media print {
  body * { visibility: hidden; }
  .brief-paper, .brief-paper * { visibility: visible; }
  .brief-paper { position: absolute; left: 0; top: 0; width: 100%; box-shadow: none; padding: 30px; }
}

/* 三端互链入口 */
.footer-links a { background: none; border: 0; color: #b6bdb8; padding: 0; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: white; }
.demo-strip a.text-button { cursor: pointer; }
@media (max-width: 720px) {
  .demo-strip .demo-entry { display: none; }
}

/* ── 每日精选信息流（手机优先）──
   机构每天刷的是「今天多了什么值得谈的」，不是点赞数。 */
.feed-shell { width: min(660px, 92vw); margin: 0 auto; }
.feed-top { padding: 30px 0 6px; }
.feed-date h1 { font-family: var(--serif); font-size: 27px; letter-spacing: .03em; margin: 8px 0 6px; }
.feed-date p { margin: 0; font-size: 12px; color: var(--muted); }
.follow-strip { display: flex; gap: 14px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.follow-strip::-webkit-scrollbar { display: none; }
.follow-chip { border: 0; background: none; padding: 0; width: 64px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.follow-monogram { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-deep); border: 1px solid var(--line); font-family: var(--serif); font-size: 20px; color: var(--ink-soft); transition: .2s; }
.follow-chip.on .follow-monogram { border-color: var(--red); color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(155,48,40,.09); }
.follow-name { font-size: 10px; color: var(--muted); line-height: 1.3; text-align: center; }
.feed-list { display: flex; flex-direction: column; gap: 24px; padding: 22px 0 100px; }
.feed-card { background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.feed-media { position: relative; display: block; width: 100%; border: 0; padding: 0; background: #e7e2d8; aspect-ratio: 1; overflow: hidden; text-align: left; }
.feed-media img { width: 100%; height: 100%; object-fit: cover; }
.feed-media .book-cover { width: 100%; height: 100%; }
.feed-flag, .feed-heat { position: absolute; z-index: 2; font-size: 10px; letter-spacing: .06em; padding: 6px 10px; }
.feed-flag { top: 14px; left: 14px; background: var(--red); color: #fff; }
.feed-heat { bottom: 14px; right: 14px; background: rgba(23,35,31,.8); color: #f2efe7; }
.feed-body { padding: 18px 18px 20px; }
.feed-time { font-size: 10px; letter-spacing: .08em; color: var(--muted); }
.feed-body h3 { font-family: var(--serif); font-size: 23px; line-height: 1.4; margin: 8px 0 6px; letter-spacing: .02em; }
.feed-body h3 button { border: 0; background: none; padding: 0; font: inherit; text-align: left; }
.feed-sub { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.feed-hashtags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.feed-hashtags span { font-size: 11px; color: var(--green); }
.feed-actions { display: flex; gap: 10px; }
.feed-add { flex: 1; border: 1px solid var(--ink); background: var(--ink); color: #f4f1e9; padding: 12px; font-size: 12px; letter-spacing: .04em; }
.feed-add.done { background: none; border-color: var(--green); color: var(--green); }
.feed-follow { border: 1px solid var(--line); background: none; color: var(--muted); padding: 12px 16px; font-size: 12px; }
.feed-follow.on { border-color: var(--red); color: var(--red); }
.feed-feature { background: var(--ink); color: #efece3; padding: 28px 24px; }
.feed-feature .eyebrow { color: var(--gold); }
.feed-feature h3 { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 10px 0 12px; }
.feed-feature p { margin: 0 0 18px; font-size: 11px; color: rgba(239,236,227,.65); }
.feed-feature-link { border: 1px solid rgba(239,236,227,.35); background: none; color: #efece3; padding: 10px 16px; font-size: 12px; }
.mobile-tabbar { display: none; }
.tab-count { display: inline-block; min-width: 15px; height: 15px; line-height: 15px; margin-left: 4px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 9px; vertical-align: 1px; }
@media (max-width: 820px) {
  body { padding-bottom: 58px; }
  .mobile-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: rgba(245,243,237,.97); border-top: 1px solid var(--line); backdrop-filter: blur(14px); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-tabbar button { border: 0; background: none; padding: 13px 0; font-size: 12px; color: var(--muted); position: relative; letter-spacing: .04em; }
  .mobile-tabbar button.active { color: var(--ink); }
  .mobile-tabbar button.active::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 18px; height: 2px; background: var(--red); }
  .feed-shell { width: 100%; }
  .feed-top { padding: 20px 5vw 0; }
  .feed-date h1 { font-size: 23px; }
  .feed-list { gap: 14px; padding: 16px 0 40px; }
  .feed-card { border-left: 0; border-right: 0; }
  .feed-body { padding: 15px 5vw 18px; }
  .feed-body h3 { font-size: 21px; }
  .feed-feature { padding: 24px 5vw; }
}
@media print { .mobile-tabbar { display: none !important; } }
/* 桌面：两列，一屏能看两张；专题卡跨列 */
@media (min-width: 821px) {
  .feed-shell { width: min(940px, 92vw); }
  .feed-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
  .feed-feature { grid-column: 1 / -1; }
}
/* 手机端提示条上移，避免被底部标签栏压住 */
@media (max-width: 820px) { .toast { bottom: calc(70px + env(safe-area-inset-bottom)); max-width: 86vw; text-align: center; } }

/* ═══════════════════════════════════════════════════════════
   现代化改版（2026-10-29）
   原则：小红书的是「形态」——双列瀑布流、圆角、浮起、底部图标导航、
   一屏能看到 4-6 件作品；严谨的是「内容」——衬线标题、权属字段、
   来源标注、墨绿朱红金与编号，一律不动。
   刻意仍不做点赞/评论：版权行业的社交货币是「谁在谈」。
   ═══════════════════════════════════════════════════════════ */

/* 1. 全局语言：直角档案 → 圆角卡片，阴影变软，按压有回弹 */
.primary-button, .secondary-button, .light-button { border-radius: 999px; gap: 12px; min-height: 44px; }
.ai-header-button, .inquiry-button { border-radius: 999px; }
.filter-chip { border-radius: 999px; padding: 8px 16px; }
.right-card, .profile-teaser, .empty-state { border-radius: 18px; }
.inquiry-form { border-radius: 20px; box-shadow: 0 10px 40px rgba(23,35,31,.05); }
.form-field input, .form-field textarea, .form-field select { border-radius: 10px; }
.info-modal { border-radius: 22px; }
.toast { border-radius: 999px; }
.ai-message { border-radius: 16px; }
.ai-result, .ai-prompts button { border-radius: 12px; }
.ai-input { border-radius: 999px; overflow: hidden; }
.icon-button { border-radius: 50%; }
.hero-image-frame { border-radius: 22px; }
.hero-caption { border-radius: 16px; }
.work-card-media { border-radius: 16px; box-shadow: 0 6px 24px rgba(23,35,31,.06); }
.work-card { transition: transform .3s ease; }
.work-card:hover { transform: translateY(-4px); }
.institution-card { border-radius: 18px; }
.category-grid { border: 0; gap: 18px; }
.category-card { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.category-card:hover { border-color: transparent; }
button { transition: transform .18s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease; }
button:active { transform: scale(.965); }
.search-box { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 0 8px 0 20px; }
.search-box input { padding: 13px 0; }
.search-box button { font-size: 17px; }

/* 2. 手机底部标签栏：线性图标 + 文字，激活项用朱红 */
@media (max-width: 820px) {
  body { padding-bottom: 66px; }
  .mobile-tabbar { background: rgba(255,254,250,.92); border-top-color: rgba(217,215,207,.7); }
  .mobile-tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 9px 0 8px; font-size: 10px; letter-spacing: .02em; }
  .mobile-tabbar button svg { width: 22px; height: 22px; }
  .mobile-tabbar button.active { color: var(--red); }
  .mobile-tabbar button.active::before { display: none; }
  .mobile-tabbar button.active svg { stroke-width: 1.9; }
  .tab-count { position: absolute; top: 5px; left: calc(50% + 8px); margin-left: 0; }
}

/* 3. 今日：双列瀑布流（手机）/ 三列（桌面），图高不一才有"刷"的感觉 */
.feed-shell { width: min(1180px, 92vw); }
.feed-top { padding: 22px 0 0; }
.feed-date { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.feed-date .eyebrow { width: 100%; }
.feed-date h1 { font-size: 24px; margin: 6px 0 0; }
.feed-date p { margin: 0; font-size: 11px; }
.follow-strip { gap: 6px; padding: 16px 0 4px; }
.follow-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; flex-shrink: 0; }
.follow-avatar { border: 0; background: none; padding: 0; }
.follow-monogram { width: 50px; height: 50px; font-size: 19px; background: var(--surface); }
.follow-toggle { border: 0; background: none; padding: 0; font-size: 10px; color: var(--muted); }
.follow-chip.on .follow-toggle { color: var(--red); }
.feed-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 16px; scrollbar-width: none; position: sticky; top: 88px; background: var(--paper); z-index: 20; }
.feed-tabs::-webkit-scrollbar { display: none; }
.feed-tab { border: 1px solid transparent; background: var(--paper-deep); color: var(--ink-soft); border-radius: 999px; padding: 7px 16px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
.feed-tab.on { background: var(--ink); color: #f4f1e9; }
.feed-list { display: block; columns: 3; column-gap: 20px; padding: 4px 0 90px; }
.feed-card { break-inside: avoid; margin: 0 0 20px; border: 0; border-radius: 18px; background: var(--surface); box-shadow: 0 4px 20px rgba(23,35,31,.05); overflow: hidden; animation: cardIn .45s ease both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.feed-media { aspect-ratio: var(--r, 1); border-radius: 0; }
.feed-media img { transition: transform .6s ease; }
.feed-card:hover .feed-media img { transform: scale(1.04); }
.feed-flag { top: 10px; left: 10px; font-size: 9px; padding: 4px 8px; border-radius: 999px; }
.feed-heat { bottom: 10px; right: 10px; font-size: 9px; padding: 4px 8px; border-radius: 999px; background: rgba(23,35,31,.62); backdrop-filter: blur(6px); }
.feed-body { padding: 12px 13px 13px; }
.feed-body h3 { font-size: 16px; line-height: 1.45; margin: 0 0 7px; letter-spacing: .01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.feed-hashtags { gap: 8px; margin-bottom: 10px; }
.feed-hashtags span { font-size: 10px; }
.feed-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(217,215,207,.6); padding-top: 9px; }
.feed-org { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.feed-org i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--paper-deep); display: grid; place-items: center; font-size: 9px; color: var(--ink-soft); flex-shrink: 0; }
.feed-time { font-size: 9px; color: var(--muted); white-space: nowrap; }
.feed-empty { text-align: center; padding: 60px 20px 100px; color: var(--muted); }
.feed-empty h3 { font-size: 20px; color: var(--ink); }
.feed-empty p { font-size: 12px; }

/* 专题卡：通栏横幅，左边文字右边图，是"中心在运营"的位置 */
.feed-feature { display: flex; align-items: center; gap: 24px; border-radius: 20px; padding: 26px 28px; margin-bottom: 22px; overflow: hidden; }
.feed-feature-text { flex: 1; min-width: 0; }
.feed-feature h3 { font-size: 19px; margin: 8px 0 10px; }
.feed-feature img { width: 108px; height: 108px; object-fit: cover; border-radius: 14px; flex-shrink: 0; }
.feed-feature-link { border-radius: 999px; }

/* 4. 手机详情页：底部固定洽谈条，刷到就能下手 */
.detail-cta { display: none; }
@media (max-width: 820px) {
  .feed-shell { width: 100%; }
  .feed-top { padding: 16px 5vw 0; }
  .feed-date h1 { font-size: 20px; }
  .feed-tabs { top: 72px; padding: 12px 5vw; }
  .feed-list { columns: 2; column-gap: 8px; padding: 0 8px 60px; }
  .feed-card { margin-bottom: 8px; border-radius: 14px; }
  .feed-body { padding: 10px 10px 11px; }
  .feed-body h3 { font-size: 14px; }
  .feed-feature { margin: 0 8px 12px; padding: 18px; gap: 14px; border-radius: 16px; }
  .feed-feature h3 { font-size: 15px; }
  .feed-feature p { font-size: 10px; }
  .feed-feature img { width: 74px; height: 74px; border-radius: 10px; }
  .feed-feature .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .feed-feature .eyebrow::before { width: 12px; }
  .feed-feature-link { padding: 8px 14px; font-size: 11px; }
  .detail-cta { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 44; background: rgba(255,254,250,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 10px 5vw; }
  .detail-cta-info { flex: 1; min-width: 0; }
  .detail-cta-info strong { display: block; font-family: var(--serif); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .detail-cta-info span { font-size: 9px; color: var(--muted); }
  .detail-cta-btn { border: 0; background: var(--red); color: #fff; border-radius: 999px; padding: 11px 18px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }
}
@media print { .detail-cta { display: none !important; } }

/* 首屏必须让给作品：顶部运营区整体压薄，专题横幅收成一行 */
@media (max-width: 820px) {
  .feed-top { padding: 12px 5vw 0; }
  .feed-date { gap: 10px; }
  .feed-date .eyebrow { display: none; }
  .feed-date h1 { font-size: 17px; margin: 0; }
  .feed-date p { font-size: 10px; }
  .follow-strip { padding: 12px 0 0; gap: 2px; }
  .follow-chip { width: 54px; gap: 4px; }
  .follow-monogram { width: 40px; height: 40px; font-size: 16px; }
  .follow-toggle { font-size: 9px; }
  .feed-tabs { padding: 12px 5vw 10px; }
  .feed-tab { padding: 6px 13px; font-size: 11px; }
  .feed-feature { padding: 10px 12px; gap: 12px; margin-bottom: 10px; align-items: center; }
  .feed-feature .eyebrow, .feed-feature p { display: none; }
  .feed-feature h3 { font-size: 12px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .feed-feature img { width: 42px; height: 42px; border-radius: 8px; order: -1; }
  .feed-feature-link { padding: 6px 10px; font-size: 10px; white-space: nowrap; flex-shrink: 0; }
  .feed-feature-text { display: contents; }
  .feed-feature h3 { flex: 1; min-width: 0; }
}
@media (min-width: 821px) {
  .feed-feature { padding: 20px 26px; }
  .feed-feature img { width: 84px; height: 84px; }
  .feed-feature h3 { font-size: 17px; }
  .feed-top { padding-top: 18px; }
  .follow-strip { padding-top: 12px; }
}
/* 小卡封面：去掉与角标重叠的分类行，给"今日上新"让位 */
.feed-media .book-cover .cover-category { display: none; }
.feed-media .book-cover { padding: 9% 10%; }
.feed-media .book-cover strong { font-size: clamp(19px, 1.9vw, 28px); }
/* 页面入场动画不能带 transform：transform 会让 .page 成为 fixed 定位的
   包含块，详情页底部固定洽谈条会跟着跑到文档底部而不是贴在屏幕上。 */
.page { animation: pageFade .35s ease both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
/* "今日上新"角标挪右上：书籍封面标题从左上起排，左上会被压住 */
.feed-flag { left: auto; right: 10px; }

/* 新增品类的封面色板：绘本要暖、动漫要跳、学术要素、摄影要灰、非遗要赭。
   颜色可以年轻，但衬线字、留白和权属字段保持一致，才不会变成少儿网站。 */
.book-cover.moon { background: #2b3a5c; color: #f3e6c8; }
.book-cover.forest { background: #7fa383; color: #20301f; }
.book-cover.mecha { background: #4b3d6b; color: #f0e6f6; }
.book-cover.paper { background: #e6e1d5; color: #33392f; }
.book-cover.photo { background: #3a3d3c; color: #eceae4; }
.book-cover.stitch { background: #a4523c; color: #fbeedc; }
@media (max-width: 820px) {
  .feed-media .book-cover strong { font-size: 20px; letter-spacing: .04em; }
  .feed-media .book-cover small { font-size: 8px; letter-spacing: .08em; }
}

/* ═══ 三方入口主页（2026-11-03）═══
   首屏只回答一个问题：「我是哪一方」。
   三张卡等宽等高、同一句式（我是谁 / 我做什么 / 三个动作），
   不放图片、不放数据——图片和数据都在各自的内页里。 */
.welcome-hero { padding: 64px 0 90px; text-align: center; }
.welcome-hero .display-title { margin: 18px 0 14px; }
.welcome-hero .display-title em { font-style: normal; color: var(--red); }
.welcome-lead { margin: 0 auto; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; text-align: left; }
.role-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  padding: 28px 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  text-decoration: none; color: inherit; font: inherit; cursor: pointer; width: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.role-card:hover { transform: translateY(-5px); border-color: rgba(155,48,40,.35); box-shadow: 0 18px 44px rgba(23,35,31,.09); }
.role-num { font-family: var(--serif); font-size: 12px; letter-spacing: .18em; color: var(--muted); }
.role-side { position: absolute; top: 26px; right: 24px; font-size: 11px; letter-spacing: .14em; color: var(--red);
  border: 1px solid rgba(155,48,40,.28); border-radius: 999px; padding: 4px 11px; }
.role-card h2 { font-family: var(--serif); font-size: 30px; letter-spacing: .04em; margin: 20px 0 10px; }
.role-desc { margin: 0 0 14px; font-size: 12px; line-height: 1.8; color: var(--muted); min-height: 2.6em; }
.role-act { margin: 0 0 18px; font-size: 14px; line-height: 1.7; color: var(--ink); }
.role-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 24px; }
.role-tags span { font-size: 10px; color: var(--ink-soft); background: var(--paper-deep); border-radius: 999px; padding: 5px 10px; }
.role-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; width: 100%;
  border-top: 1px solid var(--line); padding-top: 15px; font-size: 12px; letter-spacing: .04em; }
.role-card:hover .role-cta { color: var(--red); }
.welcome-loop { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px;
  margin-top: 40px; font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.welcome-loop i { font-style: normal; color: var(--line); }
.welcome-more { margin-top: 26px; }
.text-link { border: 0; background: none; padding: 6px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.text-link:hover { color: var(--red); }

@media (max-width: 820px) {
  .welcome-hero { padding: 26px 0 56px; }
  .welcome-hero .display-title { font-size: 30px; line-height: 1.4; margin: 12px 0 10px; }
  .welcome-lead { font-size: 12px; }
  .role-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .role-card { padding: 18px 20px 16px; border-radius: 16px; }
  .role-num { font-size: 10px; }
  .role-side { top: 16px; right: 18px; font-size: 10px; padding: 3px 9px; }
  .role-card h2 { font-size: 23px; margin: 12px 0 6px; }
  .role-desc { font-size: 11px; min-height: 0; margin-bottom: 8px; }
  .role-act { font-size: 12px; margin-bottom: 12px; }
  .role-tags { margin-bottom: 14px; gap: 6px; }
  .role-tags span { font-size: 9px; padding: 4px 8px; }
  .role-cta { padding-top: 11px; font-size: 11px; }
  .welcome-loop { gap: 9px; margin-top: 26px; font-size: 10px; }
  .welcome-more { margin-top: 18px; }
}

/* 手机首屏必须三卡全见：收起动作标签（桌面保留），压缩行距与留白。
   实测 390×844 下第三张卡底边需落在底部标签栏之上。 */
@media (max-width: 820px) {
  .welcome-hero { padding: 16px 0 40px; }
  .welcome-hero .eyebrow { font-size: 9px; letter-spacing: .1em; }
  .welcome-hero .display-title { font-size: 26px; margin: 10px 0 8px; }
  .welcome-lead { font-size: 11px; }
  .role-grid { gap: 10px; margin-top: 20px; }
  .role-card { padding: 14px 18px 12px; }
  .role-card h2 { font-size: 21px; margin: 8px 0 4px; }
  .role-desc { font-size: 10px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .role-act { font-size: 12px; margin-bottom: 10px; }
  .role-tags { display: none; }
  .role-cta { padding-top: 9px; }
  .role-side { top: 12px; right: 16px; }
  .welcome-loop { margin-top: 20px; }
}

/* ═══ 首页回归作品列表（2026-11-11）═══
   Owner 反馈：第一次来的人看到"选角色"会懵。首页=版权发现（作品+搜索+分类），
   三方入口降为页头一条快捷链接 + 导航"三方入口" + 页脚，不挡内容。
   三方卡页保留在 #/roles，平台介绍保留在 #/about。 */
.role-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 22px;
  padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.role-quick > span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.role-quick a, .role-quick button { border: 0; background: none; padding: 0; font-size: 12px;
  color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid transparent; }
.role-quick a:hover, .role-quick button:hover { color: var(--red); border-bottom-color: rgba(155,48,40,.4); }
@media (max-width: 820px) {
  .role-quick { gap: 12px; margin-top: 16px; padding-top: 12px; }
  .role-quick a, .role-quick button { font-size: 11px; }
}

/* 手机首页要在一屏内看到作品：页头、搜索、分类全部压薄。
   AI 按钮与搜索框同行，分类横滑不换行。 */
@media (max-width: 820px) {
  .page-hero { padding: 20px 0 14px; }
  .page-hero .section-title { font-size: 24px; }
  .page-hero .section-intro { font-size: 11px; line-height: 1.7; margin-bottom: 0; }
  .discover-toolbar { flex-direction: row; align-items: center; gap: 8px; padding: 16px 0 12px; }
  .discover-toolbar .search-box { flex: 1; min-width: 0; }
  .discover-toolbar .search-box input { padding: 11px 0; font-size: 12px; }
  .discover-toolbar .secondary-button { padding: 0 13px; min-height: 42px; font-size: 11px; white-space: nowrap; flex-shrink: 0; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 16px; scrollbar-width: none; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter-row .filter-label { flex-shrink: 0; font-size: 10px; }
  .filter-row .filter-chip { flex-shrink: 0; padding: 6px 13px; font-size: 11px; }
  .result-count { font-size: 10px; margin-bottom: 12px; }
}
