:root {
    --paper: #FFF5F6;
    --surface: #FFFFFF;
    --soft: #F8DCE2;
    --title: #3B0F1A;
    --text: #4A1A24;
    --muted: #7A3A48;
    --quiet: #A06070;
    --rose: #E23D5C;
    --pink: #F06B84;
    --gold: #C9A227;
    --ink: #2A1518;
    --footer: #2A0C14;
    --border: rgba(226,61,92,.18);
    --shadow: 0 14px 34px rgba(59,15,26,.08);
    --max: 1120px;
    --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 0; overflow-x: hidden; color: var(--text); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.78; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(201,162,39,.55); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 500; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; box-shadow: 0 3px 18px rgba(59,15,26,.05); }
.ruler-bar { height: 20px; color: #fff; background: #5A1728; font-size: 11px; letter-spacing: .06em; }
.ruler-inner, .masthead-inner, .category-inner, .footer-inner, .page-shell { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.ruler-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; }
.ruler-brand { color: #fff; }
.ruler-search { height: 20px; padding: 0 4px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 11px; }
.masthead { height: 80px; background: var(--paper); border-bottom: 1px solid var(--border); }
.masthead-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand-link { min-width: 88px; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { width: auto; max-width: 220px; max-height: 40px; object-fit: contain; }
.brand-word { color: var(--title); font-weight: 800; font-size: 26px; letter-spacing: .06em; }
.masthead-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.menu-button, .app-button, .button-primary, .button-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 17px; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.menu-button, .button-secondary { background: var(--surface); color: var(--title); }
.app-button, .button-primary { color: #fff; border-color: transparent; background: linear-gradient(135deg,#F06B84 0%,#E23D5C 55%,#C42B48 100%); box-shadow: 0 7px 16px rgba(226,61,92,.16); }
.menu-button:hover, .app-button:hover, .button-primary:hover, .button-secondary:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(59,15,26,.10); }
.category-nav { height: 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.category-inner { height: 40px; display: flex; justify-content: center; align-items: stretch; gap: 8px; }
.category-inner a { position: relative; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; color: var(--muted); font-size: 14px; }
.category-inner a:hover { color: var(--title); }
.category-inner a.active { color: var(--title); font-weight: 700; }
.category-inner a.active::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 4px; height: 2px; background: var(--gold); }
.site-main { min-height: 65vh; padding-top: 166px; }
.page-shell { padding-bottom: 72px; }
.page-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); gap: 42px; align-items: center; padding: 46px 0 36px; }
.page-hero.compact { padding-bottom: 18px; }
.page-hero.no-media { grid-template-columns: minmax(0,780px); }
.eyebrow { display: inline-block; margin-bottom: 7px; color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3 { color: var(--title); line-height: 1.25; margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(28px,3vw,32px); letter-spacing: -.025em; }
h2 { margin-bottom: 14px; font-size: clamp(21px,2.4vw,26px); }
h3 { margin-bottom: 9px; font-size: 18px; }
p { margin: 0 0 1em; }
.lead { max-width: 720px; color: var(--muted); font-size: 17px; line-height: 1.86; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--title); font-weight: 700; border-bottom: 1px solid rgba(201,162,39,.65); }
.text-link::after { content: "→"; color: var(--rose); }
.media-frame { overflow: hidden; border-radius: var(--radius); background: var(--soft); border: 1px solid var(--border); box-shadow: var(--shadow); }
.content-image { width: 100%; max-height: 360px; object-fit: cover; }
.content-image.portrait-media { aspect-ratio: 3 / 4; max-height: 360px; object-fit: cover; }
.content-image.wide-media { aspect-ratio: 16 / 9; object-fit: cover; }
.media-placeholder { width: 100%; min-height: 260px; max-height: 360px; aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--border); background: linear-gradient(135deg, #FDEBED 0%, #F8DCE2 58%, #FFF8F8 100%); position: relative; overflow: hidden; }
.media-placeholder::before, .media-placeholder::after { content: ""; position: absolute; border: 1px solid rgba(226,61,92,.15); border-radius: 50%; }
.media-placeholder::before { width: 160px; height: 160px; right: -40px; top: -45px; }
.media-placeholder::after { width: 100px; height: 100px; left: 12%; bottom: -35px; }
.media-placeholder.portrait-media { aspect-ratio: 3 / 4; min-height: 340px; }
.section-block { padding: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head p { max-width: 640px; margin: 0; color: var(--muted); }
.paper-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.grid-6 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.info-card, .feature-card, .series-card, .portfolio-item, .clause, .faq-item { padding: 22px; }
.info-card p, .feature-card p, .series-card p, .portfolio-item p, .clause p, .faq-item p { color: var(--muted); }
.info-card .text-link, .feature-card .text-link, .series-card .text-link, .portfolio-item .text-link { margin-top: 4px; }
.film-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.film-strip article { padding: 20px; min-height: 190px; border-right: 1px solid var(--border); position: relative; }
.film-strip article:last-child { border-right: 0; }
.film-strip article::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 3px; background: var(--rose); }
.film-strip article:nth-child(2)::before { background: var(--gold); }
.film-strip article:nth-child(3)::before { background: var(--ink); }
.film-strip article:nth-child(4)::before { background: var(--pink); }
.number-list { display: grid; gap: 10px; }
.number-row { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); }
.number-row:last-child { border-bottom: 1px solid var(--border); }
.number { color: var(--gold); font-size: 27px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.number-row h3 { margin-bottom: 4px; }
.number-row p { margin: 0; color: var(--muted); }
.editor-list { counter-reset: editorial; display: grid; gap: 12px; }
.editor-item { display: grid; grid-template-columns: 80px minmax(0,1fr); padding: 20px 0; border-top: 1px solid var(--border); }
.editor-item::before { counter-increment: editorial; content: "0" counter(editorial); color: var(--gold); font-size: 40px; font-weight: 900; line-height: 1; }
.timeline { position: relative; margin-left: 8px; padding-left: 28px; border-left: 1px solid rgba(201,162,39,.6); }
.timeline article { position: relative; padding: 0 0 26px; }
.timeline article::before { content: ""; position: absolute; width: 11px; height: 11px; left: -34px; top: 6px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.status { display: inline-block; padding: 2px 8px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 6px; color: var(--rose); font-size: 12px; font-weight: 700; background: var(--surface); }
.longform { max-width: 820px; }
.longform article { padding: 28px 0; border-top: 1px solid var(--border); }
.longform article:first-child { border-top: 0; }
.longform p { color: var(--muted); }
.editor-note { margin: 18px 0; padding: 16px 18px; border-left: 3px solid var(--gold); background: #fffdf8; color: var(--muted); }
.toc-bars { display: grid; gap: 12px; }
.toc-bar { display: grid; grid-template-columns: 60px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.toc-bar strong { color: var(--title); }
.toc-bar p { margin: 0; color: var(--muted); }
.toc-bar a { min-height: 44px; display: inline-flex; align-items: center; color: var(--rose); font-weight: 700; }
.index-label { color: var(--gold); font-weight: 800; }
.callout { margin: 18px 0; padding: 18px 20px; background: var(--soft); border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.app-showcase { display: grid; grid-template-columns: 104px minmax(0,1fr) minmax(240px,.65fr); align-items: center; gap: 24px; padding: 24px; }
.app-icon-wrap { width: 88px; height: 88px; border-radius: 18px; overflow: hidden; background: var(--soft); border: 1px solid var(--border); }
.app-icon-wrap .content-image, .app-icon-wrap .media-placeholder { width: 88px; height: 88px; min-height: 0; aspect-ratio: 1; object-fit: cover; border-radius: 0; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--quiet); font-size: 13px; }
.breadcrumbs a:hover { color: var(--rose); }
.meta-line { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--quiet); font-size: 13px; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: 12px; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--border); }
.check-list li::before { content: "—"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.two-column-copy { columns: 2 320px; column-gap: 36px; }
.two-column-copy p { break-inside: avoid; color: var(--muted); }
.faq-list { display: grid; gap: 14px; }
.faq-item h2 { font-size: 18px; }
.faq-item p { margin-bottom: 0; }
.site-footer { position: relative; z-index: 1; background: var(--footer); color: #F8DCE2; }
.footer-inner { padding: 45px 0 34px; }
.footer-brand-block { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.footer-brand { display: inline-flex; min-height: 44px; align-items: center; }
.footer-brand .brand-logo { max-width: 180px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand .brand-word { color: #fff; font-size: 24px; }
.footer-brand-block strong { display: block; color: #fff; font-size: 19px; }
.footer-brand-block span { display: block; color: #EFBFCC; font-size: 11px; letter-spacing: .18em; }
.footer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 26px; padding: 26px 0; border-top: 1px solid rgba(248,220,226,.13); border-bottom: 1px solid rgba(248,220,226,.13); }
.footer-grid nav { display: grid; align-content: start; gap: 7px; }
.footer-grid h2 { margin: 0 0 6px; color: #fff; font-size: 14px; }
.footer-grid a { color: #E9B7C4; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-note, .footer-copy { color: #D5A4B1; font-size: 12px; }
.footer-note { margin-top: 22px; max-width: 760px; }
.footer-copy { margin-bottom: 0; }
.page-overlay { position: fixed; inset: 0; z-index: 180; background: rgba(42,12,20,.46); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.film-menu, .search-layer { position: fixed; z-index: 200; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .18s ease, visibility .18s ease, transform .18s ease; }
.film-menu { width: min(640px, calc(100% - 32px)); max-height: min(76vh,720px); overflow-y: auto; left: 50%; top: 50%; transform: translate(-50%,-47%); padding: 22px; background: var(--paper); border: 1px solid rgba(255,255,255,.45); border-radius: 16px; box-shadow: 0 28px 80px rgba(42,12,20,.28); }
.film-menu.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translate(-50%,-50%); }
.film-menu-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.film-menu-brand { min-width: 0; display: flex; align-items: center; gap: 10px; color: var(--title); font-weight: 800; }
.film-menu-brand .brand-logo { max-width: 130px; max-height: 30px; }
.film-menu-brand .brand-word { font-size: 20px; }
.icon-close { min-width: 52px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--title); cursor: pointer; }
.film-menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; padding-top: 18px; }
.film-menu-grid nav { min-width: 0; }
.film-menu-grid h2 { color: var(--gold); font-size: 12px; letter-spacing: .15em; }
.film-menu-grid a { display: block; padding: 9px 0; border-top: 1px solid var(--border); }
.film-menu-grid strong { display: block; color: var(--title); font-size: 14px; }
.film-menu-grid span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.search-layer { top: 108px; left: 50%; width: min(720px, calc(100% - 32px)); transform: translateX(-50%) translateY(-8px); }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: translateX(-50%) translateY(0); }
.search-card { padding: 22px; border: 1px solid var(--border); border-radius: 14px; background: var(--paper); box-shadow: 0 24px 60px rgba(42,12,20,.22); }
.search-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.search-head h2 { margin-bottom: 14px; font-size: 22px; }
.search-appearance { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid rgba(226,61,92,.28); border-radius: 9px; background: var(--surface); color: var(--quiet); }
.search-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.search-presets a { min-height: 44px; display: inline-flex; align-items: center; padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--title); }
body.layer-open { overflow: hidden; }
.mobile-bottom-nav { display: none; }
.soft-band { background: linear-gradient(180deg, rgba(248,220,226,.56), rgba(255,245,246,.16)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dark-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; }
.dark-card h2, .dark-card h3 { color: #fff; }
.dark-card p { color: #F3CDD5; }
.gold-rule { width: 56px; height: 2px; background: var(--gold); margin: 0 0 18px; }
.quote-panel { padding: 24px; background: var(--surface); border-left: 4px solid var(--rose); box-shadow: var(--shadow); }
.quote-panel p { color: var(--muted); }
.index-hero { padding-top: 36px; }
.index-hero .hero-copy p { max-width: 620px; }
.cover-layout { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 28px; align-items: start; }
.portfolio-directory { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.portfolio-item { background: var(--surface); border: 0; border-radius: 0; }
.rights-index { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 30px; }
.rights-index aside { position: sticky; top: 180px; align-self: start; }
.rights-index aside a { display: block; min-height: 44px; padding: 10px 0; border-top: 1px solid var(--border); color: var(--muted); }
.rights-index aside a:hover { color: var(--rose); }
@media (max-width: 820px) {
    .category-nav { display: none; }
    .site-main { padding-top: 118px; }
    .page-hero, .cover-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
    .page-hero .media-frame { order: 2; }
    .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .film-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .film-strip article:nth-child(2) { border-right: 0; }
    .film-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
    .app-showcase { grid-template-columns: 92px minmax(0,1fr); }
    .app-showcase .app-art { grid-column: 1 / -1; }
    .rights-index { grid-template-columns: 1fr; }
    .rights-index aside { position: static; display: flex; flex-wrap: wrap; gap: 6px 12px; }
    .rights-index aside a { border: 0; min-height: 38px; padding: 5px 0; }
}
@media (max-width: 620px) {
    body { font-size: 16px; line-height: 1.75; }
    .ruler-inner, .masthead-inner, .footer-inner, .page-shell { width: min(100% - 32px,var(--max)); }
    .masthead-inner { gap: 10px; }
    .brand-logo { max-width: 138px; max-height: 34px; }
    .brand-word { font-size: 22px; }
    .masthead-actions { gap: 6px; }
    .menu-button, .app-button { min-width: 58px; padding: 8px 10px; }
    .app-button { white-space: nowrap; }
    .page-shell { padding-bottom: 88px; }
    .page-hero { padding-top: 28px; }
    h1 { font-size: 29px; }
    .grid-2, .grid-3, .grid-4, .grid-6, .portfolio-directory { grid-template-columns: 1fr; }
    .film-strip { grid-template-columns: 1fr; }
    .film-strip article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border); }
    .film-strip article:last-child { border-bottom: 0; }
    .section-block { padding: 28px 0; }
    .section-head { display: block; }
    .toc-bar { grid-template-columns: 42px minmax(0,1fr); gap: 12px; }
    .toc-bar a { grid-column: 2; min-height: 38px; }
    .editor-item { grid-template-columns: 58px minmax(0,1fr); }
    .editor-item::before { font-size: 30px; }
    .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
    .mobile-bottom-nav { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5,1fr); background: rgba(255,255,255,.97); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(59,15,26,.08); }
    .mobile-bottom-nav a { min-width: 0; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--muted); font-size: 11px; }
    .mobile-bottom-nav a span { font-size: 16px; line-height: 1; }
    .mobile-bottom-nav a.active { color: var(--rose); font-weight: 800; }
    .film-menu { width: 92%; max-height: 78vh; padding: 18px; }
    .film-menu-grid { grid-template-columns: 1fr; gap: 16px; }
    .film-menu-grid nav { padding-bottom: 3px; }
    .search-layer { inset: 20px 0 0; width: 100%; height: calc(100% - 20px); transform: none; background: var(--paper); }
    .search-layer.is-open { transform: none; }
    .search-card { min-height: 100%; padding: 24px 16px 90px; border: 0; border-radius: 0; box-shadow: none; }
    .search-head { margin-top: 8px; }
    .search-presets { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
    .app-showcase { grid-template-columns: 74px minmax(0,1fr); padding: 18px; gap: 16px; }
    .app-icon-wrap, .app-icon-wrap .content-image, .app-icon-wrap .media-placeholder { width: 70px; height: 70px; }
    .two-column-copy { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
