:root {
    --paper: #FFF5F6;
    --white: #FFFFFF;
    --soft: #F8DCE2;
    --wine: #3B0F1A;
    --text: #4A1A24;
    --muted: #7A3A48;
    --quiet: #A06070;
    --rose: #E23D5C;
    --pink: #F06B84;
    --gold: #C9A227;
    --ink: #2A1518;
    --border: rgba(226,61,92,0.18);
    --shadow: 0 14px 34px rgba(59,15,26,0.08);
    --radius: 16px;
    --header-space: 140px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--paper); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 16px; line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(201,162,39,.5); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 300; background: var(--white); color: var(--wine); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 120; box-shadow: 0 5px 20px rgba(59,15,26,.05); }
.ruler-bar { height: 20px; background: var(--wine); color: #fff; font-size: 11px; letter-spacing: .08em; }
.ruler-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; }
.ruler-brand { color: #fff; }
.text-control { height: 20px; min-width: 44px; padding: 0; border: 0; background: transparent; color: #fff; 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-lockup { min-height: 44px; display: inline-flex; align-items: center; flex: 0 1 auto; min-width: 0; }
.brand-logo { max-height: 40px; width: auto; max-width: 220px; object-fit: contain; }
.brand-fallback { color: var(--wine); font-weight: 800; font-size: 26px; letter-spacing: .08em; }
.masthead-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.thin-button, .secondary-button { min-height: 44px; border: 1px solid var(--border); background: var(--white); color: var(--wine); border-radius: 9px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; }
.primary-button { min-height: 44px; border: 0; background: linear-gradient(135deg,#F06B84 0%,#E23D5C 55%,#C42B48 100%); color: #fff; border-radius: 9px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 8px 20px rgba(226,61,92,.16); }
.primary-button.compact { padding-inline: 16px; }
.thin-button:hover, .secondary-button:hover { border-color: rgba(226,61,92,.45); }
.primary-button:hover { filter: saturate(1.05) brightness(.98); }
.directory-row { height: 40px; background: var(--white); border-bottom: 1px solid var(--border); }
.directory-links { height: 40px; display: flex; align-items: center; justify-content: center; gap: clamp(16px, 4vw, 44px); }
.directory-links a { height: 40px; display: inline-flex; align-items: center; position: relative; color: var(--wine); font-size: 14px; }
.directory-links a.is-current::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 4px; height: 2px; background: var(--gold); }
.site-main { padding-top: calc(var(--header-space) + 34px); min-height: 70vh; }
.section { padding: 46px 0; }
.section + .section { border-top: 1px solid rgba(226,61,92,.10); }
.kicker { margin: 0 0 8px; color: var(--rose); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1,h2,h3 { color: var(--wine); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; margin-bottom: 18px; }
h2 { font-size: clamp(22px, 3vw, 27px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lede { font-size: 17px; color: var(--muted); max-width: 760px; }
.page-hero { padding: 28px 0 34px; }
.page-hero .hero-grid { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(260px,.92fr); align-items: center; gap: 42px; }
.home-hero { padding-top: 18px; }
.home-hero .hero-copy { max-width: 620px; }
.home-hero .hero-copy h1 { font-size: clamp(30px, 5vw, 44px); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.media-slot { margin: 0; min-height: 220px; background: linear-gradient(145deg, var(--soft), #fff); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; position: relative; }
.media-slot::after { content: "XIUREN"; position: absolute; right: 18px; bottom: 14px; color: rgba(59,15,26,.20); letter-spacing: .18em; font-size: 12px; }
.media-slot img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.media-slot.portrait-slot { aspect-ratio: 3/4; max-height: 360px; justify-self: end; width: min(100%, 320px); }
.media-slot.landscape-slot { aspect-ratio: 16/9; }
.media-slot.tall-slot { aspect-ratio: 4/5; }
.film-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.strip-item { background: var(--white); padding: 20px; border-radius: 12px; border: 1px solid var(--border); min-height: 150px; display: flex; flex-direction: column; }
.strip-item:nth-child(3n+1) { border-top: 3px solid var(--rose); }
.strip-item:nth-child(3n+2) { border-top: 3px solid var(--gold); }
.strip-item:nth-child(3n) { border-top: 3px solid var(--ink); }
.strip-item p { color: var(--muted); font-size: 14px; }
.inline-link { margin-top: auto; color: var(--rose); font-weight: 700; }
.split { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); gap: 34px; align-items: center; }
.split.reverse { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card .media-slot { margin-bottom: 16px; min-height: 170px; }
.number-list { display: grid; gap: 12px; }
.number-item { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.number-item .num { color: var(--gold); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.04em; }
.number-item p { color: var(--muted); margin-bottom: 0; }
.six-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.six-grid article { min-height: 150px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.catalog-list { display: grid; gap: 10px; }
.catalog-row { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 18px; align-items: center; }
.catalog-row strong { color: var(--wine); }
.catalog-row p { margin: 0; color: var(--muted); }
.catalog-row a { color: var(--rose); font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.big-index { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.big-index article { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 18px; min-height: 175px; }
.big-index .big-num { display: block; color: var(--gold); font-size: 40px; font-weight: 800; line-height: 1; margin-bottom: 14px; }
.timeline { position: relative; display: grid; gap: 18px; padding-left: 28px; }
.timeline::before { content:""; position:absolute; left:8px; top:10px; bottom:10px; width:1px; background: var(--border); }
.timeline article { position:relative; background:var(--white); border:1px solid var(--border); border-radius:14px; padding:18px 20px; }
.timeline article::before { content:""; position:absolute; left:-26px; top:24px; width:11px; height:11px; border-radius:50%; background:var(--rose); border:3px solid var(--paper); }
.status { display:inline-block; margin-bottom:8px; color:var(--rose); font-size:12px; font-weight:800; letter-spacing:.08em; }
.article-shell { width: min(860px, calc(100% - 40px)); margin: 0 auto; }
.prose { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px,4vw,42px); box-shadow: var(--shadow); }
.prose h2 { margin-top: 34px; }
.prose h2:first-child { margin-top:0; }
.prose p { color: var(--text); }
.prose .editor-note { background: var(--soft); color: var(--wine); border-left: 3px solid var(--gold); padding: 16px 18px; border-radius: 0 10px 10px 0; }
.long-bars { display:grid; gap:12px; }
.long-bar { display:grid; grid-template-columns:150px minmax(0,1fr); gap:20px; background:var(--white); border:1px solid var(--border); border-radius:12px; padding:18px 20px; }
.long-bar strong { color:var(--wine); }
.long-bar p { margin:0; color:var(--muted); }
.step-list { counter-reset: steps; display:grid; gap:14px; }
.step-list article { counter-increment:steps; background:var(--white); border:1px solid var(--border); border-radius:14px; padding:20px; display:grid; grid-template-columns:58px minmax(0,1fr); gap:16px; }
.step-list article::before { content:"0" counter(steps); color:var(--gold); font-weight:800; font-size:28px; }
.term-list { display:grid; gap:16px; }
.term-list section { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:22px; }
.faq-list { display:grid; gap:12px; }
.faq-item { background:var(--white); border:1px solid var(--border); border-radius:14px; padding:20px; }
.faq-item h2 { font-size:18px; margin-bottom:10px; }
.notice-box { background: var(--soft); border:1px solid var(--border); border-radius:14px; padding:20px; color:var(--wine); }
.app-panel { display:grid; grid-template-columns: minmax(0,.9fr) minmax(260px,1.1fr); gap:34px; align-items:center; }
.app-icon-line { display:flex; gap:14px; align-items:center; margin-bottom:18px; }
.app-icon-slot { width:72px; height:72px; border-radius:16px; background:var(--soft); border:1px solid var(--border); overflow:hidden; display:grid; place-items:center; }
.app-icon-slot img { width:100%; height:100%; object-fit:cover; }
.tag-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.tag { border:1px solid var(--border); background:var(--white); color:var(--muted); padding:6px 10px; border-radius:8px; font-size:13px; }
.site-footer { background:#2A0C14; color:#F8DCE2; margin-top:56px; }
.footer-inner { padding:44px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-brand { max-width:600px; margin-bottom:30px; }
.footer-brand-link { display:inline-flex; align-items:center; gap:12px; color:#fff; margin-bottom:12px; }
.footer-logo { max-height:34px; max-width:180px; width:auto; }
.footer-brand-link strong { display:block; font-size:18px; }
.footer-brand-link small { display:block; color:#F8DCE2; letter-spacing:.16em; }
.footer-brand p { color:#DDAFB8; }
.footer-groups { display:grid; grid-template-columns:repeat(4,1fr); gap:24px; padding:24px 0; border-top:1px solid rgba(248,220,226,.15); border-bottom:1px solid rgba(248,220,226,.15); }
.footer-groups h2 { color:#fff; font-size:14px; letter-spacing:.12em; }
.footer-groups a { display:block; color:#F8DCE2; padding:5px 0; font-size:14px; }
.footer-notice, .copyright { color:#DDAFB8; font-size:13px; margin-top:18px; }
.page-overlay { position:fixed; inset:0; z-index:170; background:rgba(42,12,20,.46); opacity:0; pointer-events:none; transition:opacity .2s ease; }
.page-overlay.is-visible { opacity:1; pointer-events:auto; }
.film-menu { position:fixed; inset:0; z-index:180; display:grid; place-items:center; visibility:hidden; pointer-events:none; padding:20px; }
.film-menu.is-open { visibility:visible; pointer-events:auto; }
.film-frame { width:min(640px,92vw); max-height:min(76vh,760px); overflow:auto; background:var(--paper); border:1px solid var(--border); border-radius:18px; box-shadow:0 24px 70px rgba(42,12,20,.25); transform:translateY(12px) scale(.985); opacity:0; transition:.2s ease; }
.film-menu.is-open .film-frame { transform:none; opacity:1; }
.film-menu-head { position:sticky; top:0; z-index:2; background:rgba(255,245,246,.96); backdrop-filter:blur(10px); display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px; border-bottom:1px solid var(--border); }
.mini-brand { display:flex; align-items:center; gap:12px; min-width:0; }
.mini-brand img { max-height:30px; max-width:140px; }
.mini-brand strong,.mini-brand small { display:block; }
.mini-brand small { color:var(--muted); font-size:10px; letter-spacing:.12em; }
.icon-close { width:44px; height:44px; border:1px solid var(--border); background:var(--white); color:var(--wine); border-radius:10px; font-size:24px; }
.film-groups { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; padding:20px; }
.film-groups section { min-width:0; }
.film-groups h2 { font-size:13px; color:var(--rose); letter-spacing:.12em; margin-bottom:10px; }
.film-groups a { display:block; background:var(--white); border:1px solid var(--border); border-radius:10px; padding:12px; margin-bottom:9px; }
.film-groups strong { display:block; color:var(--wine); font-size:14px; }
.film-groups span { display:block; color:var(--muted); font-size:12px; margin-top:3px; line-height:1.55; }
.search-layer { position:fixed; z-index:185; left:0; right:0; top:100px; visibility:hidden; pointer-events:none; padding:14px 20px; }
.search-layer.is-open { visibility:visible; pointer-events:auto; }
.search-card { width:min(760px,calc(100% - 40px)); margin:0 auto; background:var(--paper); border:1px solid var(--border); border-radius:16px; box-shadow:0 24px 70px rgba(42,12,20,.22); padding:20px; opacity:0; transform:translateY(-8px); transition:.2s ease; }
.search-layer.is-open .search-card { opacity:1; transform:none; }
.search-head { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.search-head small { color:var(--rose); font-weight:800; letter-spacing:.12em; }
.search-head h2 { margin:4px 0 12px; }
.search-appearance { display:flex; align-items:center; gap:10px; background:var(--white); border:1px solid var(--border); border-radius:10px; padding:0 14px; min-height:48px; }
.search-appearance span { color:var(--quiet); font-size:13px; }
.search-appearance input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--text); }
.preset-links { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.preset-links a { min-height:44px; display:inline-flex; align-items:center; padding:0 14px; border:1px solid var(--border); border-radius:9px; background:var(--white); color:var(--wine); }
.search-card > p { margin:0; color:var(--muted); font-size:13px; }
.layer-open { overflow:hidden; }
.mobile-bottom { display:none; }

@media (max-width: 860px) {
    .film-strip { grid-template-columns:repeat(2,1fr); }
    .card-grid { grid-template-columns:1fr; }
    .six-grid { grid-template-columns:repeat(2,1fr); }
    .big-index { grid-template-columns:repeat(2,1fr); }
    .split,.split.reverse,.page-hero .hero-grid,.app-panel { grid-template-columns:1fr; }
    .page-hero .hero-grid .portrait-slot { justify-self:start; width:min(100%,420px); }
    .catalog-row { grid-template-columns:90px minmax(0,1fr); }
    .catalog-row a { grid-column:2; }
}
@media (max-width: 680px) {
    :root { --header-space:100px; }
    .shell,.article-shell { width:calc(100% - 32px); }
    .directory-row { display:none; }
    .site-main { padding-top:calc(var(--header-space) + 22px); }
    .masthead-actions { gap:6px; }
    .thin-button,.primary-button.compact { padding-inline:12px; }
    .brand-logo { max-width:145px; max-height:36px; }
    .brand-fallback { font-size:22px; }
    .section { padding:34px 0; }
    .home-hero { padding-top:8px; }
    .home-hero .hero-grid { display:flex; flex-direction:column; align-items:stretch; gap:24px; }
    .home-hero .hero-copy { order:1; }
    .home-hero .portrait-slot { order:2; width:100%; max-width:none; max-height:360px; aspect-ratio:4/5; }
    .film-strip,.six-grid,.big-index { grid-template-columns:1fr; }
    .catalog-row,.long-bar { grid-template-columns:1fr; gap:8px; }
    .catalog-row a { grid-column:auto; }
    .number-item { grid-template-columns:48px minmax(0,1fr); }
    .number-item .num { font-size:28px; }
    .step-list article { grid-template-columns:46px minmax(0,1fr); }
    .footer-groups { grid-template-columns:repeat(2,1fr); }
    .film-groups { grid-template-columns:1fr; }
    .film-frame { max-height:82vh; }
    .search-layer { top:0; bottom:0; background:var(--paper); padding:0; }
    .search-card { width:100%; height:100%; border:0; border-radius:0; box-shadow:none; padding:24px 16px calc(80px + env(safe-area-inset-bottom)); overflow:auto; }
    .mobile-bottom { position:fixed; left:0; right:0; bottom:0; z-index:130; min-height:50px; 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 -5px 20px rgba(59,15,26,.07); }
    .mobile-bottom a { min-height:50px; display:grid; place-items:center; color:var(--muted); font-size:12px; }
    .mobile-bottom a.is-current { color:var(--rose); font-weight:800; }
    .site-footer { margin-bottom:50px; }
    .page-overlay { z-index:170; }
    .film-menu,.search-layer { z-index:180; }
}
@media (max-width: 420px) {
    .masthead-inner { gap:8px; }
    .masthead-actions { gap:4px; }
    .thin-button,.primary-button.compact { min-width:52px; padding-inline:9px; font-size:13px; }
    .brand-logo { max-width:118px; }
    .footer-groups { grid-template-columns:1fr 1fr; gap:18px 12px; }
}
