/* 麻豆 MADOU FILMS */
:root {
    --bg: #000000;
    --bg-deep: #050505;
    --surface: #0b0b0b;
    --surface-2: #121212;
    --hover: #1a1a1a;
    --text: #f7f7f7;
    --body: #dddddd;
    --muted: #a5a5a5;
    --dim: #727272;
    --line: rgba(255,255,255,.12);
    --line-strong: rgba(255,255,255,.4);
    --shadow: 0 18px 46px rgba(0,0,0,.48);
    --glow: 0 12px 34px rgba(255,255,255,.08);
    --max: 1320px;
    --header-h: 154px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--body); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; line-height: 1.75; overflow-x: hidden; }
body.panel-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; background: #fff; color: #000; padding: 10px 14px; }
.skip-link:focus { top: 10px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 80; background: #000; box-shadow: 0 1px 0 var(--line); }
.utility-bar { border-bottom: 1px solid var(--line); background: #000; }
.utility-inner { min-height: 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.utility-center, .utility-actions { display: flex; align-items: center; gap: 18px; }
.utility-actions { justify-content: flex-end; }
.utility-inner a:hover, .text-button:hover { color: #fff; }
.text-button { border: 0; background: transparent; padding: 4px 0; cursor: pointer; }
.brand-bar { background: #000; border-bottom: 1px solid var(--line); }
.brand-inner { min-height: 74px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand-side { display: flex; align-items: center; gap: 18px; min-width: 0; font-size: 13px; }
.brand-side-right { justify-content: flex-end; }
.menu-trigger, .more-trigger { min-height: 44px; border: 1px solid var(--line-strong); background: transparent; padding: 0 18px; cursor: pointer; }
.menu-trigger:hover, .more-trigger:hover { background: #fff; color: #000; }
.current-channel { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { min-width: 190px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.brand-logo img { max-height: 54px; width: auto; }
.brand-cn { font-size: 28px; font-weight: 900; letter-spacing: .2em; margin-left: .2em; color: #fff; }
.brand-en { margin-top: 8px; font-size: 9px; letter-spacing: .35em; color: var(--muted); }
.app-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 18px; background: #fff; color: #000; font-weight: 700; }
.channel-bar { background: #050505; border-bottom: 1px solid var(--line); }
.channel-inner { display: flex; align-items: center; min-width: 0; }
.channel-scroll { display: flex; align-items: center; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.channel-scroll::-webkit-scrollbar { display: none; }
.channel-scroll a { position: relative; flex: 0 0 auto; min-height: 46px; display: inline-flex; align-items: center; padding: 0 17px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.channel-scroll a:hover, .channel-scroll a.is-active { color: #fff; }
.channel-scroll a.is-active::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: 0; height: 2px; background: #fff; }
.more-wrap { position: relative; flex: 0 0 auto; margin-left: 12px; }
.more-trigger { min-height: 36px; padding: 0 14px; font-size: 12px; }
.more-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 190px; background: #0b0b0b; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px; }
.more-menu a { display: block; padding: 10px 12px; color: var(--muted); }
.more-menu a:hover { background: var(--hover); color: #fff; }
.site-main { min-height: 60vh; }
.hero { border-bottom: 1px solid var(--line); background: #000; }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 52px; align-items: center; padding-block: 52px; }
.hero-visual { aspect-ratio: 16 / 10; background: radial-gradient(circle at 70% 20%, #333 0, #111 23%, #050505 57%, #000 100%); border: 1px solid var(--line); position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-visual::before { content: "M"; position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(180px, 25vw, 420px); font-weight: 900; color: rgba(255,255,255,.06); line-height: .8; letter-spacing: -.12em; transform: translateX(-.05em); }
.hero-visual::after { content: "MADOU FILMS / ORIGINAL IMAGE"; position: absolute; left: 28px; bottom: 24px; color: rgba(255,255,255,.55); font-size: 11px; letter-spacing: .26em; }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); position: relative; z-index: 1; background: #050505; }
.eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
h1, h2, h3 { margin-top: 0; color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(42px, 5vw, 76px); letter-spacing: -.04em; margin-bottom: 24px; }
h2 { font-size: clamp(28px, 3vw, 46px); letter-spacing: -.025em; }
h3 { font-size: 20px; }
p { margin-top: 0; }
.lead { font-size: 18px; color: var(--body); max-width: 780px; }
.hero-copy .lead { max-width: 560px; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--line-strong); font-weight: 700; white-space: nowrap; }
.btn-primary { background: #fff; color: #000; border-color: #fff; }
.btn-secondary { background: transparent; color: #fff; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--glow); }
.hero-notes { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hero-notes a { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px; background: #080808; }
.hero-notes strong { color: #fff; }
.hero-notes span { color: var(--muted); font-size: 13px; }
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-tight { padding: 58px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-head p { max-width: 680px; color: var(--muted); margin-bottom: 0; }
.text-link { color: #fff; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; white-space: nowrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 26px; min-width: 0; }
.card:hover { border-color: var(--line-strong); background: var(--surface-2); }
.card .meta { color: var(--dim); font-size: 12px; letter-spacing: .12em; margin-bottom: 14px; text-transform: uppercase; }
.card p { color: var(--muted); }
.card a { color: #fff; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; }
.number-card { min-height: 260px; display: flex; flex-direction: column; }
.number-card .number { font-size: 12px; color: var(--dim); letter-spacing: .2em; }
.number-card h3 { margin-top: auto; padding-top: 44px; }
.feature-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.feature-main { min-height: 460px; padding: 36px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.06)); border: 1px solid var(--line); }
.feature-main .status { color: var(--muted); }
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.index-row { display: grid; grid-template-columns: 90px 170px 1fr auto; gap: 22px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-row .index-no { color: var(--dim); letter-spacing: .12em; }
.index-row p { color: var(--muted); margin: 0; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.timeline { border-left: 1px solid var(--line); margin-left: 10px; }
.timeline article { position: relative; padding: 0 0 36px 38px; }
.timeline article::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.timeline p { color: var(--muted); }
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 52px; align-items: start; }
.poster { aspect-ratio: 4 / 5; border: 1px solid var(--line); background: linear-gradient(135deg, #1f1f1f, #050505 65%); position: sticky; top: 190px; overflow: hidden; }
.poster::after { content: "MADOU APP"; position: absolute; left: 24px; bottom: 20px; font-size: 11px; letter-spacing: .24em; color: var(--muted); }
.poster img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); background: #050505; }
.page-hero { padding: 94px 0 58px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 90% 10%, #171717 0, #050505 35%, #000 75%); }
.page-hero h1 { max-width: 900px; }
.page-hero .lead { color: var(--muted); }
.page-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.page-nav a { border: 1px solid var(--line); padding: 8px 12px; color: var(--muted); }
.page-nav a:hover { color: #fff; border-color: var(--line-strong); }
.prose { max-width: 900px; }
.prose h2 { margin-top: 54px; font-size: 32px; }
.prose h3 { margin-top: 30px; }
.prose p { color: var(--body); }
.notice { border-left: 3px solid #fff; padding: 18px 22px; background: var(--surface); color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 0; }
summary { list-style: none; cursor: pointer; color: #fff; padding: 22px 38px 22px 0; position: relative; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 19px; color: var(--muted); font-size: 22px; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding: 0 34px 22px 0; margin: 0; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { border: 1px solid var(--line); padding: 10px 14px; }
.related a:hover { background: #fff; color: #000; }
.site-footer { background: #000; padding: 72px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.footer-grid h2 { font-size: 14px; margin-bottom: 18px; }
.footer-grid > div > a { display: block; color: var(--muted); margin: 8px 0; font-size: 13px; }
.footer-grid > div > a:hover { color: #fff; }
.footer-brand p { color: var(--muted); max-width: 360px; }
.footer-logo { display: inline-flex; flex-direction: column; margin-bottom: 18px; }
.footer-logo img { max-height: 58px; width: auto; }
.footer-logo strong { font-size: 28px; color: #fff; letter-spacing: .2em; }
.footer-logo span { font-size: 9px; color: var(--muted); letter-spacing: .3em; margin-top: 6px; }
.footer-notice { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 26px; display: flex; justify-content: space-between; gap: 28px; color: var(--dim); font-size: 12px; }
.footer-notice p:first-child { max-width: 850px; }
.side-panel, .search-panel { position: fixed; z-index: 110; visibility: hidden; pointer-events: none; transition: transform .25s ease, opacity .25s ease, visibility .25s; }
.side-panel { inset: 0 auto 0 0; width: min(520px, 90vw); background: #050505; border-right: 1px solid var(--line); transform: translateX(-102%); display: flex; flex-direction: column; }
.side-panel.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); }
.panel-head { min-height: 76px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-head button, .search-head button { min-height: 44px; border: 1px solid var(--line); background: transparent; padding: 0 16px; cursor: pointer; }
.panel-brand img { max-height: 44px; width: auto; }
.panel-brand strong { font-size: 24px; letter-spacing: .2em; }
.panel-body { overflow-y: auto; padding: 24px; }
.panel-body section { margin-bottom: 32px; }
.panel-body h2 { font-size: 13px; color: var(--muted); letter-spacing: .14em; margin-bottom: 10px; }
.panel-body a { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.panel-body a strong { color: #fff; }
.panel-body a span { color: var(--muted); font-size: 13px; }
.search-panel { inset: 0; background: rgba(0,0,0,.98); opacity: 0; overflow-y: auto; }
.search-panel.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-head { min-height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.search-content { padding-top: 70px; padding-bottom: 90px; }
.search-content label { display: block; font-size: clamp(28px, 4vw, 56px); color: #fff; margin-bottom: 24px; font-weight: 800; }
.search-content input { width: 100%; height: 64px; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: #fff; font-size: 22px; border-radius: 0; }
.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 42px; }
.search-grid a { border: 1px solid var(--line); padding: 20px; min-height: 130px; }
.search-grid strong { display: block; color: #fff; margin-bottom: 10px; }
.search-grid span { color: var(--muted); font-size: 13px; }
.search-empty { color: var(--muted); margin-top: 30px; }
.site-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, visibility .2s; }
.site-overlay.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.mobile-nav { display: none; }
@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-copy { order: -1; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .feature-grid, .split { grid-template-columns: 1fr; }
    .poster { position: relative; top: auto; max-width: 560px; }
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .search-grid { grid-template-columns: repeat(2, 1fr); }
    .index-row { grid-template-columns: 70px 140px 1fr; }
    .index-row > :last-child { grid-column: 3; }
}
@media (max-width: 720px) {
    :root { --header-h: 130px; }
    .shell { width: min(calc(100% - 28px), var(--max)); }
    .desktop-only, .utility-center, .current-channel { display: none !important; }
    .utility-inner { grid-template-columns: 1fr auto; min-height: 32px; }
    .utility-actions { grid-column: 2; }
    .brand-inner { min-height: 62px; grid-template-columns: 1fr auto 1fr; gap: 8px; }
    .brand-logo { min-width: 120px; }
    .brand-cn { font-size: 22px; }
    .brand-en { font-size: 7px; }
    .menu-trigger { width: 48px; padding: 0; font-size: 0; position: relative; }
    .menu-trigger::after { content: "☰"; font-size: 20px; }
    .app-link { padding: 0 12px; font-size: 12px; }
    .channel-inner { width: 100%; padding-left: 14px; }
    .more-wrap { display: none; }
    .channel-scroll a { padding: 0 13px; }
    .hero-grid { padding-block: 38px 50px; gap: 32px; }
    .hero-visual { aspect-ratio: 4 / 3; }
    .hero-visual::after { left: 16px; bottom: 14px; font-size: 8px; }
    h1 { font-size: 42px; }
    .lead { font-size: 16px; }
    .hero-notes a { grid-template-columns: 1fr; gap: 5px; }
    .section { padding: 62px 0; }
    .section-head { display: block; }
    .section-head .text-link { display: inline-block; margin-top: 12px; }
    .grid-2, .grid-3, .grid-4, .feature-list { grid-template-columns: 1fr; }
    .card { padding: 22px; }
    .feature-main { min-height: 390px; padding: 24px; }
    .index-row { grid-template-columns: 54px 1fr; gap: 14px; }
    .index-row > *:nth-child(3), .index-row > *:nth-child(4) { grid-column: 2; }
    .page-hero { padding: 70px 0 42px; }
    .page-hero h1 { font-size: 42px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
    .footer-notice { display: block; }
    .site-footer { padding-bottom: 150px; }
    .mobile-nav { display: grid; position: fixed; z-index: 75; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(5, 1fr); min-height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(0,0,0,.97); border-top: 1px solid var(--line); }
    .mobile-nav a { display: flex; align-items: center; justify-content: center; min-height: 58px; color: var(--dim); font-size: 12px; }
    .mobile-nav a.is-active { color: #fff; background: #111; }
    body.panel-open .mobile-nav { visibility: hidden; pointer-events: none; }
    .search-grid { grid-template-columns: 1fr; }
    .search-content { padding-top: 42px; }
    .panel-body a { grid-template-columns: 96px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
