:root{--bg:#f5f3f0;--panel:#fff;--surface:#fff;--ink:#2c2c2c;--text:#2c2c2c;--muted:#75695e;--line:#e8e4de;--border:#d6cfc7;--accent:#8b2f2f;--blue:#8b2f2f;--blue-bright:#9a4740;--blue-dark:#6b1f1f;--blue-soft:#f5ede6;--orange:#ead2b7;--teal:#8b2f2f;--teal-dark:#6b1f1f;--coral:#8b2f2f;--coral-dark:#6b1f1f;--radius:12px;--shadow:0 2px 12px #2c2c2c0a}
body{background:var(--bg);font-family:'PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink)}
.unified-header{position:sticky;top:0;z-index:45;background:#f5f3f0f5;border-bottom:1px solid var(--border);padding:16px max(20px,calc((100vw - 1200px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px;backdrop-filter:blur(10px)}
.unified-brand{font:700 23px 'Songti SC',SimSun,serif;color:#8b2f2f;text-decoration:none;white-space:nowrap}.unified-brand small{display:block;font:12px 'Microsoft YaHei',sans-serif;color:#75695e;margin-top:6px;letter-spacing:2px}
.unified-header nav{display:flex;gap:8px}.unified-header nav a{padding:12px 18px;border-radius:8px;color:#675b50;text-decoration:none;font-size:15px;white-space:nowrap}.unified-header nav a[aria-current]{background:#8b2f2f;color:#fff}
.unified-preview{text-align:center;padding:8px 12px;font-size:12px;color:#75695e;background:#eee8df}
.app-header,.site-header{position:static}.unified-books .app-header{background:transparent;max-width:1280px;margin:auto}.unified-books .brand-text{display:none}.unified-books .app-header .filter-open-btn{margin-left:auto}
.unified-h5 .site-header{max-width:1200px;margin:auto;background:transparent;border:0}.unified-h5 .site-header .brand{display:none}
h1,h2,h3{font-family:'Songti SC',SimSun,serif}.unified-apply .app{max-width:940px}.unified-apply .hero{background:#efe5dc;color:#6b1f1f;box-shadow:none;padding:28px}.unified-apply .hero-badge{display:none}.unified-apply .panel{border:1px solid var(--line);box-shadow:var(--shadow)}
.unified-apply .mode-btn{background:#fffaf6;border:1px solid #d6cfc7;color:#6b1f1f}.unified-apply .mode-icon{background:#f5ede6;color:#8b2f2f}.unified-h5 .intro{background:#efe5dc}.unified-h5 .intro-inner{padding-top:30px;padding-bottom:30px}
input,select,textarea{accent-color:#8b2f2f}a:focus-visible,button:focus-visible{outline:3px solid #b98147;outline-offset:3px}.request-link{display:block;border:1px solid #d6cfc7;border-radius:8px;text-align:center;color:#8b2f2f;text-decoration:none;padding:10px;margin-top:8px;font-size:13px}
.resource-entries{margin:0 0 30px}.resource-entry-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.resource-entry-heading h2{margin:0;font-size:21px;color:#6b1f1f}.resource-entry-heading>span{font-size:12px;color:#75695e}.resource-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.resource-entry{display:block;position:relative;min-width:0;padding:24px;border-radius:14px;text-decoration:none;border:1px solid #8b2f2f;transition:box-shadow .15s,transform .15s}.entry-apply{background:#8b2f2f;color:#fff}.entry-materials{background:#efe1ce;color:#652a29;border-color:#d4bba0}.entry-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:10px;background:#ffffff24;margin-bottom:14px}.entry-icon svg{width:25px;height:25px}.entry-materials .entry-icon{background:#fff9}.resource-entry strong{display:block;font-size:23px;line-height:1.4}.resource-entry p{font-size:14px;line-height:1.8;margin:9px 0 18px;color:inherit}.entry-apply p{color:#f4dfdc}.entry-action{display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:600;border-top:1px solid #ffffff40;padding-top:13px}.entry-materials .entry-action{border-color:#d4bba0}.entry-action span{font-size:23px}.resource-entry:hover{transform:translateY(-2px);box-shadow:0 8px 20px #50222218}
@media(max-width:600px){.resource-entries{margin-bottom:24px}.resource-entry-heading{display:block;margin-bottom:12px}.resource-entry-heading h2{font-size:19px}.resource-entry-heading>span{display:block;margin-top:5px}.resource-entry-grid{gap:10px}.resource-entry{padding:16px 12px;display:flex;flex-direction:column}.entry-icon{width:34px;height:34px;margin-bottom:12px}.entry-icon svg{width:22px;height:22px}.resource-entry strong{font-size:16px}.resource-entry p{font-size:12px;line-height:1.7;margin:9px 0 14px}.entry-action{font-size:13px;margin-top:auto}.resource-entry:hover{transform:none}}
@media(max-width:600px){.unified-header{padding:12px 14px;display:block}.unified-brand{font-size:20px;display:flex;align-items:center;justify-content:space-between}.unified-brand small{font-size:10px;letter-spacing:0;margin:0}.unified-header nav{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.unified-header nav a{text-align:center;padding:11px 4px;font-size:14px}.unified-apply .hero{padding:20px}.unified-preview{font-size:11px}.unified-h5 .selection-bar{max-width:100%;box-sizing:border-box}}
/* 紧凑资源入口：图标与标题同排，整卡点击。 */
.unified-books .app-header{display:none}
.unified-h5 .intro-inner{padding-top:20px;padding-bottom:20px}
.unified-h5 .intro h1{font-size:26px;margin:6px 0 12px}
.unified-h5 .stats{gap:18px;margin:0;flex-wrap:wrap}
.unified-h5 .stat{display:flex;align-items:baseline;gap:5px}
.unified-h5 .stat-value{font-size:15px;font-weight:600}
.unified-h5 .stat-label{font-size:12px}
.unified-h5 .catalog-jump{display:none}
.unified-h5 .catalog-inner{padding-top:20px}
.result-view[data-state="error"] .result-icon{display:none}
.result-view[data-state="error"] h3{color:#8b2f2f}
.unified-apply button,.unified-h5 .btn,.unified-h5 .filters button{min-height:44px}
.unified-h5 .btn-icon{min-width:44px}
.unified-h5 input,.unified-h5 select,.unified-apply input,.unified-apply select{min-height:44px}
.resource-entries{margin-bottom:20px}
.resource-entry{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:7px 10px;padding:16px 18px;border-radius:12px}
.entry-icon{grid-column:1;grid-row:1;width:32px;height:32px;margin:0}
.entry-icon svg{width:21px;height:21px}
.resource-entry strong{grid-column:2;grid-row:1;font-size:19px}
.resource-entry p{grid-column:2;grid-row:2;margin:0;font-size:13px;line-height:1.5}
.resource-entry .entry-action{display:none}
@media(max-width:600px){.resource-entry-heading{margin-bottom:10px}.resource-entry-heading>span{display:none}.resource-entry{padding:13px 10px;grid-template-columns:23px minmax(0,1fr);gap:7px 6px}.entry-icon{width:23px;height:25px;border-radius:6px}.entry-icon svg{width:17px;height:17px}.resource-entry strong{font-size:14px;line-height:1.5}.resource-entry p{grid-column:1 / -1;font-size:12px}.resource-entries{margin-bottom:20px}}
/* 品牌抬头与老店说明 */
.unified-brand{font-size:30px;line-height:1.2}
.unified-brand small{font-size:13px;letter-spacing:1px;margin-top:8px}
@media(max-width:600px){.unified-brand{display:block;font-size:26px}.unified-brand small{font-size:12px;letter-spacing:1px;margin-top:6px}}
/* 店名和副标题作为整体居中排列。 */
.unified-brand{display:inline-flex;flex-direction:column;align-items:center;text-align:center;flex-shrink:0}
.unified-brand small{align-self:center;text-align:center;white-space:nowrap}

/* 生产统一风格：让两个 H5 主体也贴近电子书首页。 */
.unified-apply,
.unified-h5{background:#f5f3f0;color:#2c2c2c}
.unified-apply .hero,
.unified-h5 .intro{background:linear-gradient(180deg,#f3e8dd 0%,#efe1d3 100%);border-bottom:1px solid #d6cfc7}
.unified-apply .hero{border:1px solid #d6cfc7;border-radius:12px;margin-top:16px}
.unified-apply .hero h1,
.unified-h5 .intro h1{color:#6b1f1f}
.unified-apply .hero p,
.unified-h5 .eyebrow,
.unified-h5 .stat-label{color:#75695e}
.unified-apply .landing-head h2,
.unified-apply .mode-head-info h2,
.unified-apply .panel-head h2,
.unified-h5 .catalog-title h2,
.unified-h5 .modal-title h2{color:#6b1f1f}
.unified-apply .panel,
.unified-h5 .package-panel,
.unified-h5 .material-card,
.unified-h5 .modal-card{border:1px solid #d6cfc7;box-shadow:0 2px 14px #2c2c2c0c;background:#fff}
.unified-apply .generic-panel,
.unified-apply .contact-panel,
.unified-apply .book-panel,
.unified-apply .summary-panel{border-top:0}
.unified-apply .mode-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.unified-apply .mode-btn{border-color:#d6cfc7;border-radius:12px;background:#fffaf6;color:#6b1f1f;box-shadow:0 2px 12px #2c2c2c0a}
.unified-apply .mode-btn:hover{border-color:#8b2f2f;background:#fff6ef}
.unified-apply .mode-icon,
.unified-apply .step-badge,
.unified-h5 .brand-mark,
.unified-h5 .btn-primary{background:#8b2f2f;color:#fff}
.unified-h5 .btn-primary:hover{background:#6b1f1f}
.unified-h5 .btn-coral{background:#b98147;color:#fff}
.unified-h5 .btn-coral:hover{background:#93662f}
.unified-h5 .filter-tab.active,
.unified-h5 .category-btn.active,
.unified-h5 .tag.active{background:#8b2f2f;color:#fff;border-color:#8b2f2f}
.unified-h5 .package-panel{border-left:4px solid #8b2f2f}
.unified-h5 .eyebrow{font-weight:600}
.unified-h5 .catalog{background:#f5f3f0}
.unified-h5 .selection-bar{border:1px solid #d6cfc7;box-shadow:0 2px 12px #2c2c2c0a}
@media(max-width:700px){.unified-apply .mode-actions{grid-template-columns:1fr}.unified-apply .hero{margin-top:12px}.unified-h5 .intro-inner{display:block}}
/* Keep submission feedback visible above the sticky mobile navigation. */
.unified-apply .toast{z-index:100;top:auto;bottom:calc(20px + env(safe-area-inset-bottom));}
#requestReceipt{padding:16px;margin:16px 0;border:1px solid #b77d63;border-radius:12px;background:#fff8ee;color:#623b2d;line-height:1.7;overflow-wrap:anywhere;}
#requestReceipt[hidden]{display:none;}
