:root {
    --bg: #FFFFFF;
    --deep-bg: #F7F7F7;
    --card: #FFFFFF;
    --subtle: #F3F3F3;
    --title: #1A1A1A;
    --text: #333333;
    --muted: #555555;
    --faint: #888888;
    --red: #E63946;
    --bright-red: #FF4D5A;
    --dark-red: #C1121F;
    --light-red: #FFE8EA;
    --border: rgba(230,57,70,0.16);
    --shadow: 0 12px 32px rgba(0,0,0,0.07);
    --max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif; line-height: 1.72; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--title); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip-link:focus { top: 10px; }
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; background: rgba(255,255,255,.96); box-shadow: 0 1px 0 rgba(0,0,0,.05); backdrop-filter: blur(10px); }
.info-strip { height: 32px; background: var(--deep-bg); }
.info-strip-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.info-left, .info-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-minor { font-size: 12px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.round-menu { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; color: var(--red); cursor: pointer; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 1px var(--border); }
.text-action { min-height: 28px; border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 2px 8px; font-size: 12px; border-radius: 999px; }
.text-action:hover, .text-action:focus-visible { color: var(--red); background: var(--light-red); outline: none; }
.brand-row { height: 72px; display: grid; place-items: center; background: #fff; }
.brand-center { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; }
.brand-logo { max-height: 48px; max-width: 240px; width: auto; }
.brand-text { font-weight: 900; font-size: 28px; letter-spacing: .06em; color: var(--red); }
.brand-en { font-size: 11px; letter-spacing: .16em; color: var(--faint); }
.channel-strip { height: 48px; background: #fff; border-top: 1px solid #f1f1f1; }
.channel-strip-inner { height: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; }
.channel-pill { min-height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; font-size: 14px; }
.channel-pill:hover, .channel-pill:focus-visible { border-color: var(--red); color: var(--red); outline: none; }
.channel-pill.is-current { color: #fff; background: var(--red); border-color: var(--red); }
.mobile-top { display: none; }
.site-content { padding-top: 152px; }
.layer-open { overflow: hidden; }

.hero, .page-hero { padding: 72px 0 48px; }
.hero-kicker, .eyebrow { color: var(--red); font-weight: 800; letter-spacing: .08em; font-size: 14px; }
h1, h2, h3 { color: var(--title); line-height: 1.25; margin-top: 0; }
h1 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -.03em; margin-bottom: 22px; }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 900px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 44px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border: 1px solid var(--red); }
.button.primary { color: #fff; background: linear-gradient(135deg,#FF4D5A 0%,#E63946 52%,#C1121F 100%); }
.button.secondary { color: var(--red); background: #fff; }
.button:hover, .button:focus-visible { transform: translateY(-1px); box-shadow: var(--shadow); outline: 3px solid rgba(230,57,70,.12); outline-offset: 2px; }
.section { padding: 64px 0; }
.section.alt { background: var(--deep-bg); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 720px; color: var(--muted); margin: 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.card-pad { padding: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.media-placeholder { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: linear-gradient(135deg,#F3F3F3,#FFFFFF); border: 1px dashed rgba(230,57,70,.22); display: grid; place-items: center; color: #b4b4b4; letter-spacing: .16em; font-size: 12px; }
.cover-image, .wide-image { width: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.cover-media { margin-top: 38px; }
.red-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); flex: 0 0 auto; margin-top: 9px; }
.topic-tags { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic-tag { padding: 20px 18px; border-bottom: 1px solid var(--border); display: flex; gap: 12px; }
.topic-tag strong { display: block; color: var(--title); margin-bottom: 5px; }
.topic-tag p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.topic-tag a { color: var(--red); font-size: 13px; font-weight: 700; }
.numbered-list { display: grid; gap: 0; border-top: 1px solid var(--border); }
.numbered-item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--border); }
.numbered-item .num { font-size: 54px; font-weight: 900; color: var(--red); line-height: 1; }
.numbered-item p { color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-areas: "a b" "a c"; gap: 22px; }
.mosaic > article:nth-child(1) { grid-area: a; min-height: 520px; }
.mosaic > article:nth-child(2) { grid-area: b; }
.mosaic > article:nth-child(3) { grid-area: c; }
.mosaic-card { padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.mosaic-card .media-placeholder, .mosaic-card img { border-radius: 14px; }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.feature-card { padding: 24px; }
.feature-card p { color: var(--muted); }
.theme-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.theme-grid article { padding: 24px; min-height: 170px; }
.theme-grid article:nth-child(1), .theme-grid article:nth-child(4) { grid-column: span 7; }
.theme-grid article:nth-child(2), .theme-grid article:nth-child(3) { grid-column: span 5; }
.theme-grid article:nth-child(5), .theme-grid article:nth-child(6) { grid-column: span 6; }
.shelf-list { display: grid; gap: 12px; }
.shelf-row { display: grid; grid-template-columns: 170px 1fr auto; gap: 22px; align-items: center; padding: 22px 0; border-bottom: 1px solid #eaeaea; }
.shelf-row .label { color: var(--red); font-weight: 800; }
.shelf-row p { color: var(--muted); margin: 0; }
.text-link { color: var(--red); font-weight: 700; }
.rank-list { display: grid; gap: 0; }
.rank-row { display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--border); }
.rank-number { font-size: 64px; line-height: 1; font-weight: 900; color: var(--red); }
.timeline { position: relative; margin-left: 10px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 0 0 30px; }
.timeline-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px var(--light-red); }
.status { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--light-red); color: var(--dark-red); font-size: 12px; font-weight: 800; }
.app-feature { display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center; }
.app-icon { width: 88px; height: 88px; border-radius: 20px; object-fit: contain; box-shadow: var(--shadow); background: #fff; }
.article-prose { max-width: 880px; }
.article-prose p { font-size: 17px; line-height: 1.9; color: var(--text); }
.article-prose h2 { margin-top: 44px; }
.index-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.index-card { padding: 24px; }
.index-card p { color: var(--muted); }
.mini-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mini-meta span { padding: 5px 10px; background: var(--subtle); border-radius: 999px; color: var(--faint); font-size: 12px; }
.notice { padding: 20px 22px; border-radius: 14px; background: var(--light-red); color: var(--dark-red); border: 1px solid var(--border); }
.rule-list { display: grid; gap: 18px; }
.rule-item { padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--border); }
.faq-list { display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--border); border-radius: 16px; padding: 24px; background: #fff; }
.faq-item h2 { font-size: 20px; margin-bottom: 10px; }
.callout-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.callout-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--red); border: 1px solid var(--border); font-weight: 700; }

.site-footer { background: #1A1A1A; color: #D0D0D0; padding: 54px 0 calc(30px + env(safe-area-inset-bottom)); margin-top: 0; }
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; color: #fff; font-weight: 800; }
.footer-logo { max-height: 34px; width: auto; }
.footer-brand-name { font-size: 22px; color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.footer-grid h2 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-grid a { display: block; color: #bcbcbc; padding: 4px 0; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: #fff; outline: none; text-decoration: underline; }
.footer-note { border-top: 1px solid #343434; margin-top: 34px; padding-top: 24px; color: #aaa; font-size: 14px; }
.copyright { color: #777; font-size: 13px; margin-bottom: 0; }

.site-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.38); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s ease, visibility .22s ease; }
.site-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.directory-drawer { position: fixed; left: 50%; bottom: 0; width: min(100%, 680px); max-height: 76vh; transform: translate(-50%, 105%); z-index: 110; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -18px 50px rgba(0,0,0,.14); visibility: hidden; pointer-events: none; transition: transform .28s ease, visibility .28s ease; }
.directory-drawer.is-open { transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.drawer-head { height: 72px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #eee; }
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-brand img { max-height: 32px; max-width: 120px; }
.drawer-brand div { display: grid; }
.drawer-brand span { font-size: 10px; color: var(--faint); letter-spacing: .12em; }
.close-button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--red); font-size: 26px; cursor: pointer; }
.close-button:hover, .close-button:focus-visible { background: var(--light-red); outline: none; }
.drawer-scroll { overflow-y: auto; max-height: calc(76vh - 72px); padding: 16px 22px 28px; }
.drawer-group { padding: 10px 0 18px; }
.drawer-group h2 { font-size: 13px; color: var(--faint); letter-spacing: .08em; margin-bottom: 8px; }
.drawer-group a { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f2f2f2; }
.drawer-group a strong { color: var(--title); }
.drawer-group a span { color: var(--muted); font-size: 13px; }
.drawer-group a:hover strong, .drawer-group a:focus-visible strong { color: var(--red); }
.search-layer { position: fixed; top: 112px; left: 0; right: 0; z-index: 111; visibility: hidden; pointer-events: none; opacity: 0; transition: opacity .2s ease, visibility .2s ease; }
.search-layer.is-open { visibility: visible; pointer-events: auto; opacity: 1; }
.search-card { width: min(calc(100% - 32px), 760px); margin: 0 auto; background: #fff; border-radius: 18px; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.search-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.search-appearance { min-height: 54px; border-radius: 999px; background: var(--subtle); display: flex; align-items: center; gap: 10px; padding: 0 20px; color: var(--faint); margin: 18px 0; }
.search-presets { display: flex; flex-wrap: wrap; gap: 10px; }
.search-presets a { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--border); color: var(--red); display: inline-flex; align-items: center; }
.search-card p { color: var(--faint); font-size: 13px; margin: 14px 0 0; }
.mobile-bottom-nav { display: none; }

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .topic-tags { grid-template-columns: repeat(2,1fr); }
    .mosaic { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c"; }
    .mosaic > article:nth-child(1) { min-height: 0; }
    .theme-grid article { grid-column: span 6 !important; }
    .app-feature { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
    .desktop-header { display: none; }
    .mobile-top { height: 64px; display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; padding: 0 12px; background: #fff; border-bottom: 1px solid #eee; }
    .mobile-top .round-menu { width: 44px; height: 44px; font-size: 18px; }
    .mobile-brand { justify-self: center; min-width: 0; max-width: 190px; font-weight: 900; color: var(--red); font-size: 22px; overflow: hidden; white-space: nowrap; }
    .mobile-brand img { max-height: 38px; max-width: 178px; width: auto; margin: 0 auto; }
    .mobile-app-link { justify-self: end; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--red); font-weight: 800; }
    .site-content { padding-top: 64px; padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .hero, .page-hero { padding: 48px 0 36px; }
    .section { padding: 48px 0; }
    .section-head { align-items: start; flex-direction: column; gap: 10px; }
    .grid-2, .grid-3, .grid-4, .split-feature, .index-list { grid-template-columns: 1fr; }
    .topic-tags { grid-template-columns: 1fr; }
    .numbered-item { grid-template-columns: 74px 1fr; gap: 14px; }
    .numbered-item .num { font-size: 42px; }
    .theme-grid { display: grid; grid-template-columns: 1fr; }
    .theme-grid article { grid-column: auto !important; }
    .shelf-row { grid-template-columns: 1fr; gap: 6px; }
    .rank-row { grid-template-columns: 76px 1fr; gap: 12px; }
    .rank-number { font-size: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
    .site-footer { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
    .directory-drawer { width: 100%; border-radius: 20px 20px 0 0; }
    .drawer-group a { grid-template-columns: 92px 1fr; }
    .search-layer { top: 0; bottom: 0; background: var(--deep-bg); padding: 16px; }
    .search-card { width: 100%; height: 100%; margin: 0; border-radius: 18px; box-shadow: none; overflow-y: auto; }
    .mobile-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; height: calc(50px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.98); border-top: 1px solid #e8e8e8; display: grid; grid-template-columns: repeat(5,1fr); }
    .mobile-bottom-nav a { min-height: 50px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--faint); }
    .mobile-bottom-nav a.is-current { color: var(--red); font-weight: 800; }
}

@media (max-width: 420px) {
    .shell { width: min(calc(100% - 32px), var(--max)); }
    h1 { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .drawer-head { padding: 0 16px; }
    .drawer-scroll { padding-left: 16px; padding-right: 16px; }
}
