:root{
    --bg:#FFF6F4;
    --deep-bg:#F6E4E2;
    --surface:#FFFFFF;
    --soft:#FBECEA;
    --ink:#1C1212;
    --text:#3E2424;
    --muted:#6E4848;
    --faint:#9A7070;
    --red:#B4232C;
    --bright-red:#E23B44;
    --deep-red:#7A1520;
    --gold:#C4A06A;
    --border:rgba(180,35,44,.16);
    --shadow:0 12px 28px rgba(28,18,18,.08);
    --glow:0 6px 16px rgba(180,35,44,.18);
    --radius:12px;
    --max:960px;
    --top:116px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;min-width:320px;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif;font-size:15px;line-height:1.7;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button,input{font:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
:focus-visible{outline:2px solid var(--bright-red);outline-offset:2px}
.site-header{position:fixed;inset:0 0 auto;z-index:1000;background:var(--bg)}
.top-brow{height:18px;background:var(--deep-red);color:#fff;font-size:12px;line-height:18px}
.top-brow__inner,.brand-bar__inner,.stamp-nav__inner,.footer-inner,.content-wrap{width:min(calc(100% - 32px),var(--max));margin:0 auto}
.top-brow__inner{height:18px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.top-search-button{height:18px;padding:0 4px;border:0;background:transparent;color:#fff;font-size:12px;line-height:18px}
.brand-bar{height:54px;background:var(--bg);border-bottom:1px solid var(--border)}
.brand-bar__inner{height:54px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.brand-home{display:inline-flex;align-items:center;min-height:44px;min-width:92px}
.brand-logo,.footer-logo,.fold-logo{height:24px;width:auto;object-fit:contain;object-position:center}
.brand-fallback{font-weight:800;color:var(--deep-red);font-size:16px;letter-spacing:.05em}
.brand-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.app-link,.fold-button{min-height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;transition:filter 180ms,box-shadow 180ms,transform 180ms}
.app-link{padding:0 16px;background:linear-gradient(135deg,#E23B44 0%,#B4232C 55%,#7A1520 100%);color:#fff;box-shadow:var(--glow)}
.fold-button{gap:8px;padding:0 14px;border:1px solid var(--border);background:#fff;color:var(--deep-red)}
.fold-button i{width:15px;height:10px;display:block;border-top:2px solid currentColor;border-bottom:2px solid currentColor;position:relative}
.fold-button i:after{content:"";position:absolute;left:0;right:0;top:3px;border-top:2px solid currentColor}
.app-link:hover,.primary-button:hover,.stamp-link.is-active:hover,.mobile-bottom a.is-active:hover{filter:brightness(1.05);box-shadow:0 0 0 3px rgba(226,59,68,.28),0 10px 24px rgba(122,21,32,.28)}
.app-link:active,.primary-button:active,.stamp-link.is-active:active,.mobile-bottom a.is-active:active{filter:brightness(1.08);box-shadow:0 0 0 4px rgba(196,160,106,.42),0 0 22px rgba(226,59,68,.50)}
.fold-button:hover,.secondary-button:hover{box-shadow:0 0 0 3px rgba(226,59,68,.14)}
.stamp-nav{height:44px;background:var(--soft);border-bottom:1px solid var(--border)}
.stamp-nav__inner{height:44px;display:flex;align-items:center;gap:14px}
.stamp-mark{width:22px;height:22px;border:1px solid var(--red);color:var(--deep-red);display:grid;place-items:center;font-size:12px;line-height:1;border-radius:3px;background:#fff}
.stamp-link{min-height:32px;padding:3px 9px;border:1px solid transparent;border-radius:8px;color:var(--deep-red);font-size:13px;display:inline-flex;align-items:center;gap:5px;transition:filter 180ms,box-shadow 180ms,background 180ms}
.stamp-link.is-active{background:var(--deep-red);color:#fff;border-color:var(--gold);box-shadow:var(--glow)}
.site-main{padding-top:calc(var(--top) + 28px);padding-bottom:64px;min-height:70vh}
.content-wrap{position:relative}
.breadcrumbs{display:flex;align-items:center;gap:7px;color:var(--faint);font-size:13px;margin-bottom:18px;flex-wrap:wrap}
.breadcrumbs a{color:var(--deep-red)}
.page-kicker{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--deep-red);background:var(--soft);border:1px solid var(--border);border-radius:999px;padding:5px 10px;margin-bottom:12px}
h1,h2,h3{color:var(--ink);margin:0 0 12px;font-weight:800;letter-spacing:-.015em}
h1{font-size:24px;line-height:1.3}
h2{font-size:20px;line-height:1.45}
h3{font-size:16px;line-height:1.5}
p{margin:0 0 14px}
.lead{font-size:16px;color:var(--muted);max-width:760px}
.primary-button,.secondary-button,.text-link{min-height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;font-size:14px;line-height:1;transition:filter 180ms,box-shadow 180ms,transform 180ms}
.primary-button{padding:0 18px;background:linear-gradient(135deg,#E23B44 0%,#B4232C 55%,#7A1520 100%);color:#fff;box-shadow:var(--glow)}
.secondary-button{padding:0 18px;background:#fff;color:var(--deep-red);border:1px solid var(--border)}
.text-link{min-height:44px;color:var(--deep-red);font-weight:700;padding:0 2px}
.button-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.soft-panel{background:var(--soft);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.section-block{margin-top:30px}
.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:14px}
.section-heading p{max-width:560px;color:var(--muted);margin:0}
.media-slot{margin:0;background:var(--bg);border:1px solid var(--border);border-radius:12px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.media-slot img{width:100%;height:100%;object-fit:contain;object-position:center}
.media-empty{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(145deg,var(--bg),var(--deep-bg));color:rgba(122,21,32,.32);font-size:13px;letter-spacing:.18em;font-weight:800}
.media-square{width:240px;height:176px;max-width:100%}
.media-168{width:100%;height:168px}
.media-160{width:100%;height:160px}
.media-app{width:240px;height:320px;max-width:100%}
.media-banner{width:100%;height:200px}
.home-intro{max-width:760px;padding:8px 0 4px}
.home-intro .index-seal{width:44px;height:44px;border:1px solid var(--gold);background:var(--deep-red);color:#fff;border-radius:8px;display:grid;place-items:center;font-weight:900;margin-bottom:16px;box-shadow:var(--glow)}
.home-intro h1{max-width:680px;font-size:28px}
.home-intro .hero-line{font-size:19px;color:var(--deep-red);font-weight:800;margin:4px 0 12px}
.cut-feature{display:grid;grid-template-columns:240px 1fr;gap:24px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:16px;padding:20px;box-shadow:var(--shadow)}
.cut-feature .cut-copy{border-left:3px solid var(--red);padding-left:18px}
.two-red{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}
.news-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;position:relative;overflow:hidden}
.news-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--red)}
.news-card .meta{font-size:13px;color:var(--faint);margin-bottom:8px}
.page-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.page-sheet{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px;box-shadow:0 8px 22px rgba(28,18,18,.05)}
.page-sheet .sheet-mark{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid var(--red);color:var(--deep-red);border-radius:6px;font-size:13px;font-weight:800;margin-bottom:10px}
.status-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.status-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;background:var(--soft);border-bottom:1px solid var(--border)}
.status-tag{display:inline-flex;align-items:center;min-height:28px;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:800;background:var(--deep-red);color:#fff}
.status-card .status-body{padding:18px}
.annotate{display:grid;grid-template-columns:170px 1fr;gap:20px;align-items:start}
.annotate .note-side{background:var(--deep-red);color:#fff;border-radius:12px;padding:18px;font-size:13px}
.annotate .note-side strong{display:block;font-size:16px;margin-bottom:8px}
.topic-list{display:grid;grid-template-columns:1fr;gap:10px}
.topic-item{display:grid;grid-template-columns:150px 1fr auto;gap:16px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}
.topic-item .topic-tag{font-weight:800;color:var(--deep-red)}
.scene-strip{display:grid;grid-template-columns:1fr 220px;gap:20px;align-items:center;background:var(--soft);border-radius:14px;border:1px solid var(--border);padding:20px}
.app-wrap{display:grid;grid-template-columns:240px 1fr;gap:24px;align-items:start}
.app-art{display:grid;gap:10px;justify-items:center}
.app-icon{width:48px;height:48px;background:#fff;border:1px solid var(--border);border-radius:12px;display:grid;place-items:center;overflow:hidden}
.app-icon img{width:48px;height:48px;object-fit:contain}
.app-icon .media-empty{font-size:9px;letter-spacing:.08em}
.policy-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.policy-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px}
.faq-preview{display:grid;gap:10px}
.faq-preview details,.faq-list details{background:#fff;border:1px solid var(--border);border-radius:12px;padding:0 16px}
.faq-preview summary,.faq-list summary{cursor:pointer;min-height:48px;display:flex;align-items:center;font-weight:800;color:var(--ink)}
.faq-preview details p,.faq-list details p{padding:0 0 15px;color:var(--muted)}
.brand-story{background:var(--ink);color:var(--soft);border-radius:16px;padding:24px}
.brand-story h2,.brand-story h3{color:#fff}
.brand-story p{color:#ead8d6}

/* inner page patterns */
.page-head{margin-bottom:24px}
.page-head .head-rule{height:2px;background:linear-gradient(90deg,var(--red),transparent);margin-top:18px}
.dual-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.dual-layout .wide{grid-column:1/-1}
.cut-layout{display:grid;grid-template-columns:240px 1fr;gap:22px;align-items:start}
.cut-layout .cut-stack{display:grid;gap:14px}
.cut-note{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;position:relative}
.cut-note:after{content:"";position:absolute;right:-1px;top:16px;width:5px;height:36px;background:var(--gold);border-radius:3px 0 0 3px}
.sheet-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sheet-layout .sheet-large{grid-column:1/-1;background:var(--deep-red);color:#fff}
.sheet-layout .sheet-large h2,.sheet-layout .sheet-large h3{color:#fff}
.progress-list{display:grid;gap:12px}
.progress-item{display:grid;grid-template-columns:120px 1fr;gap:16px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}
.progress-state{display:flex;align-items:flex-start;justify-content:center}
.progress-state span{min-height:34px;min-width:88px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:var(--deep-red);color:#fff;font-size:12px;font-weight:800;box-shadow:var(--glow)}
.longread{max-width:760px;margin:0 auto}
.longread section{padding:22px 0;border-bottom:1px solid var(--border)}
.editor-view{background:var(--soft);border:1px solid var(--border);border-radius:12px;padding:18px;margin:18px 0}
.editor-view strong{color:var(--deep-red)}
.directory-list{display:grid;gap:12px}
.directory-row{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;display:grid;grid-template-columns:140px 1fr auto;gap:18px;align-items:start}
.directory-row .directory-name{font-weight:900;color:var(--deep-red);font-size:16px}
.scene-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.scene-note{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px}
.letter-layout{display:grid;grid-template-columns:1fr 260px;gap:22px;align-items:start}
.letter-paper{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px;box-shadow:var(--shadow)}
.letter-paper section+section{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.letter-side{position:sticky;top:138px;background:var(--soft);border:1px solid var(--border);border-radius:12px;padding:18px}
.terms{display:grid;gap:18px}
.term-section{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px}
.term-section h2{display:flex;align-items:center;gap:8px}
.term-section h2:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(180,35,44,.10)}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.help-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px}
.contact-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.contact-path{background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px}
.about-banner{margin-bottom:22px}
.about-manifesto{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:start}
.about-mark{background:var(--deep-red);color:#fff;border-radius:12px;padding:20px;font-weight:900;text-align:center}
.about-mark span{display:block;color:#f2cfcf;font-size:12px;font-weight:600;margin-top:6px;letter-spacing:.08em}
.install-steps{display:grid;gap:12px;counter-reset:step}
.install-step{counter-increment:step;display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:start;background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px}
.install-step:before{content:counter(step);width:36px;height:36px;border-radius:9px;background:var(--deep-red);color:#fff;display:grid;place-items:center;font-weight:900}
.mt-14{margin-top:14px}
.about-cover{margin:0 0 18px}
.notice{background:var(--soft);border-left:4px solid var(--red);padding:14px 16px;border-radius:0 10px 10px 0;color:var(--muted)}

.site-footer{background:var(--ink);color:var(--soft);border-top:1px solid var(--red);font-size:13px}
.footer-inner{padding:28px 0 22px}
.footer-logo-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.footer-logo-row strong{color:#fff;font-size:16px}
.footer-logo-row span{color:#d9b7b3;letter-spacing:.08em}
.footer-brand p{max-width:700px;color:#d9c6c4}
.footer-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:22px;padding-top:20px;border-top:1px solid rgba(255,255,255,.10)}
.footer-groups h2{font-size:13px;color:#fff;margin-bottom:10px}
.footer-groups a{display:inline-flex;min-height:34px;align-items:center;color:#e6d4d2;margin-right:14px}
.footer-groups a:hover{color:#fff}
.footer-bottom{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid rgba(255,255,255,.10);color:#cdb7b5}
.footer-bottom a{color:#f4d4d1}

.screen-mask{position:fixed;inset:0;background:rgba(28,18,18,.42);z-index:1080;opacity:0;pointer-events:none;transition:opacity 180ms}
body.fold-open .screen-mask,body.search-open .screen-mask{opacity:1;pointer-events:auto}
body.fold-open,body.search-open{overflow:hidden}
.site-fold{position:fixed;right:16px;top:26px;width:min(420px,calc(100% - 32px));max-height:68vh;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 24px 60px rgba(28,18,18,.24);z-index:1100;visibility:hidden;pointer-events:none;opacity:0;transform:translateY(-10px) scale(.98);transition:opacity 180ms,transform 180ms,visibility 180ms;overflow:hidden}
body.fold-open .site-fold{visibility:visible;pointer-events:auto;opacity:1;transform:none}
.fold-head{height:64px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 16px;border-bottom:1px solid var(--border);background:var(--bg)}
.fold-brand{display:flex;align-items:center;gap:10px}
.fold-brand div{display:flex;flex-direction:column;line-height:1.25}
.fold-brand strong{color:var(--ink)}
.fold-brand span{font-size:11px;color:var(--faint);letter-spacing:.08em}
.fold-close{min-width:58px;min-height:40px;border-radius:9px;border:1px solid var(--border);background:#fff;color:var(--deep-red)}
.fold-scroll{max-height:calc(68vh - 64px);overflow-y:auto;padding:12px 16px 18px}
.fold-group+ .fold-group{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}
.fold-group h2{font-size:13px;color:var(--faint);margin:0 0 7px}
.fold-group a{display:grid;grid-template-columns:105px 1fr;gap:10px;align-items:center;min-height:46px;padding:8px 6px;border-radius:9px}
.fold-group a:hover{background:var(--soft)}
.fold-group b{font-size:14px;color:var(--ink)}
.fold-group span{font-size:12px;color:var(--muted);line-height:1.45}
.site-search{position:fixed;z-index:1085;top:78px;left:50%;width:min(720px,calc(100% - 32px));transform:translate(-50%,-8px);visibility:hidden;pointer-events:none;opacity:0;transition:opacity 180ms,transform 180ms,visibility 180ms}
body.search-open .site-search{visibility:visible;pointer-events:auto;opacity:1;transform:translate(-50%,0)}
.search-card{background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 22px 55px rgba(28,18,18,.22);padding:18px}
.search-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.search-head strong{font-size:18px;color:var(--ink)}
.search-head button{min-height:40px;border:1px solid var(--border);border-radius:9px;background:#fff;color:var(--deep-red);padding:0 13px}
.search-card label{display:block;font-size:13px;color:var(--muted);margin-bottom:6px}
.search-card input{width:100%;height:44px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--ink);padding:0 13px}
.search-presets{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.search-presets a{min-height:40px;display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--deep-red);padding:0 14px}
.search-note{font-size:12px;color:var(--faint);margin:12px 0 0}
.mobile-bottom{display:none}

@media (max-width:760px){
    :root{--top:72px}
    .top-brow__inner,.brand-bar__inner,.footer-inner,.content-wrap{width:calc(100% - 32px)}
    .stamp-nav{display:none}
    .brand-bar__inner{gap:8px}
    .brand-actions{gap:6px}
    .app-link{padding:0 11px}
    .fold-button{padding:0 10px}
    .fold-button span{display:none}
    .brand-home{min-width:76px}
    .site-main{padding-top:calc(var(--top) + 24px);padding-bottom:88px}
    .home-intro h1{font-size:25px}
    .cut-feature,.two-red,.page-pair,.policy-grid,.dual-layout,.cut-layout,.sheet-layout,.annotate,.scene-strip,.app-wrap,.scene-notes,.letter-layout,.help-grid,.contact-paths,.about-manifesto{grid-template-columns:1fr}
    .cut-feature .media-square,.media-app{margin:0 auto}
    .topic-item,.directory-row{grid-template-columns:1fr}
    .topic-item .text-link,.directory-row .text-link{justify-content:flex-start}
    .progress-item{grid-template-columns:1fr}
    .progress-state{justify-content:flex-start}
    .letter-side{position:static}
    .footer-groups{grid-template-columns:1fr;gap:10px}
    .footer-groups section+section{padding-top:10px;border-top:1px solid rgba(255,255,255,.08)}
    .site-fold{right:5%;width:90%;top:18px;max-height:78vh}
    .fold-scroll{max-height:calc(78vh - 64px)}
    .fold-group a{grid-template-columns:100px 1fr}
    .site-search{inset:0;width:100%;height:100%;transform:none;background:var(--deep-red);padding:calc(18px + env(safe-area-inset-top)) 16px 16px;display:flex;align-items:flex-start}
    body.search-open .site-search{transform:none}
    .search-card{width:100%;background:transparent;border:0;box-shadow:none;color:#fff;padding:0}
    .search-head strong{color:#fff}
    .search-head button{background:transparent;border-color:rgba(255,255,255,.3);color:#fff}
    .search-card p,.search-card label,.search-note{color:#f8dddd}
    .search-card input{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.30);color:#fff}
    .search-card input::placeholder{color:#f4cccc}
    .search-presets a{background:#fff;color:var(--deep-red);border-color:#fff}
    .mobile-bottom{position:fixed;z-index:1040;left:0;right:0;bottom:0;height:calc(48px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:#fff;border-top:1px solid var(--border);display:grid;grid-template-columns:repeat(4,1fr)}
    .mobile-bottom a{display:flex;align-items:center;justify-content:center;min-width:0;font-size:13px;color:var(--muted);transition:filter 180ms,box-shadow 180ms}
    .mobile-bottom a.is-active{background:var(--deep-red);color:#fff;box-shadow:var(--glow)}
    body.fold-open .mobile-bottom,body.search-open .mobile-bottom{z-index:1000}
}

@media (max-width:420px){
    .brand-fallback{font-size:15px}
    .app-link{padding:0 9px;font-size:13px}
    .fold-button{min-width:44px}
    .panel,.soft-panel{padding:17px}
    .cut-feature{padding:16px}
    .section-heading{align-items:flex-start;flex-direction:column;gap:4px}
    .fold-group a{grid-template-columns:1fr;gap:2px;padding:9px 6px}
    .fold-group span{padding-left:2px}
}

.secondary-button:active,.fold-button:active,.fold-close:active,.search-head button:active{filter:brightness(1.08);box-shadow:0 0 0 4px rgba(196,160,106,.42),0 0 22px rgba(226,59,68,.34)}
.text-link:hover{color:var(--bright-red);text-decoration:underline;text-underline-offset:3px}
