:root {
    --bg: #FFFFFF;
    --deep-bg: #F5F7FA;
    --panel: #FFFFFF;
    --sub-bg: #EEF1F6;
    --title: #0A1628;
    --text: #1E2A3A;
    --muted: #4A5568;
    --soft: #718096;
    --blue: #0033A0;
    --bright: #0052CC;
    --deep-blue: #002066;
    --border: rgba(0,51,160,0.14);
    --shadow: 0 12px 36px rgba(0,33,102,0.08);
    --radius: 14px;
    --shell: 1220px;
}
* { 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; font-size: 16px; line-height: 1.75; overflow-x: hidden; }
body.overlay-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.shell { width: min(calc(100% - 32px), var(--shell)); margin-inline: auto; }
.site-top { position: fixed; inset: 0 0 auto; z-index: 50; }
.imprint-line { height: 20px; background: var(--deep-blue); color: #fff; }
.imprint-inner { height: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; letter-spacing: .08em; }
.imprint-brand, .text-button { color: #fff; }
.text-button { border: 0; background: transparent; padding: 0 4px; min-height: 20px; }
.counter-bar { height: 62px; background: #fff; border-bottom: 1px solid var(--border); }
.counter-inner { height: 62px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.brand-link { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo, .drawer-logo, .footer-logo { width: auto; max-width: 180px; object-fit: contain; object-position: left center; }
.brand-logo { max-height: 36px; }
.brand-fallback { color: var(--deep-blue); font-weight: 900; font-size: 27px; letter-spacing: -.04em; }
.drawer-button { min-height: 44px; min-width: 92px; border: 1px solid var(--border); background: #fff; color: var(--deep-blue); border-radius: 10px; padding: 0 16px; font-weight: 700; }
.app-link { justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 15px; border-radius: 10px; background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); color: #fff; font-weight: 700; }
.tab-strip { height: 42px; background: var(--deep-bg); border-bottom: 1px solid var(--border); }
.tab-inner { height: 42px; display: flex; align-items: center; gap: 8px; overflow: hidden; }
.tab-link { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; color: var(--muted); font-size: 14px; font-weight: 700; }
.tab-link:hover, .tab-link:focus-visible { color: var(--blue); background: #fff; }
.tab-link.is-current { color: #fff; background: var(--blue); }
.site-main { padding-top: 124px; min-height: 60vh; }
.page-mask { position: fixed; inset: 0; z-index: 70; background: rgba(10,22,40,.36); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.page-mask.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.site-drawer { position: fixed; z-index: 80; inset: 0 auto 0 0; width: 350px; max-width: 84vw; background: #fff; box-shadow: 24px 0 48px rgba(10,22,40,.16); transform: translateX(-104%); visibility: hidden; pointer-events: none; transition: transform .24s ease, visibility .24s ease; overflow-y: auto; }
.site-drawer.is-open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.drawer-head { position: sticky; top: 0; z-index: 2; height: 76px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.drawer-brand { display: flex; align-items: center; gap: 10px; }
.drawer-logo { max-height: 30px; max-width: 120px; }
.drawer-brand span { display: grid; line-height: 1.2; }
.drawer-brand b { color: var(--title); }
.drawer-brand small { color: var(--soft); font-size: 11px; letter-spacing: .12em; }
.icon-button { width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--deep-blue); font-size: 24px; line-height: 1; }
.drawer-grid { display: grid; gap: 12px; padding: 16px; }
.drawer-group { background: var(--deep-bg); border: 1px solid var(--border); border-radius: 14px; padding: 14px; }
.drawer-group h2 { margin: 0 0 8px; color: var(--deep-blue); font-size: 14px; letter-spacing: .1em; }
.drawer-group a { display: grid; gap: 2px; padding: 10px 8px; border-top: 1px solid rgba(0,51,160,.09); }
.drawer-group a:first-of-type { border-top: 0; }
.drawer-group b { color: var(--title); font-size: 14px; }
.drawer-group span { color: var(--soft); font-size: 12px; line-height: 1.55; }
.search-panel { position: fixed; z-index: 81; top: 82px; left: 0; right: 0; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-12px); transition: .2s ease; }
.search-panel.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.search-card { background: #fff; border: 1px solid var(--border); border-radius: 0 0 16px 16px; box-shadow: var(--shadow); padding: 22px; }
.search-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.search-head h2 { margin: 2px 0 14px; font-size: 22px; line-height: 1.3; color: var(--title); }
.eyebrow { display: inline-block; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.search-look { min-height: 50px; border: 1px solid var(--border); border-radius: 10px; background: var(--deep-bg); display: flex; align-items: center; gap: 10px; padding: 0 14px; color: var(--muted); }
.search-look span:first-child { color: var(--blue); font-size: 25px; }
.search-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.search-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; color: var(--blue); background: #fff; font-weight: 700; }
.hero-section, .page-hero { padding: 34px 0 24px; }
.hero-media, .media-frame { min-height: 160px; max-height: 300px; border-radius: 16px; background: var(--sub-bg); border: 1px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-image { width: 100%; max-height: 300px; object-fit: contain; object-position: center; }
.hero-placeholder { width: 100%; min-height: 260px; display: grid; place-items: center; color: var(--deep-blue); font-size: clamp(28px, 6vw, 70px); font-weight: 900; letter-spacing: -.05em; }
.hero-copy { max-width: 870px; margin-top: 24px; }
.kicker { color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .12em; }
h1, h2, h3 { color: var(--title); line-height: 1.25; }
h1 { margin: 8px 0 14px; font-size: clamp(28px, 4vw, 32px); letter-spacing: -.02em; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.9; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 10px; font-weight: 800; }
.btn-primary { background: linear-gradient(135deg,#0052CC 0%,#0033A0 50%,#002066 100%); color: #fff; }
.btn-secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.section { padding: 34px 0; }
.section.is-soft { background: var(--deep-bg); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 3px 0 0; }
.section-head p { max-width: 660px; color: var(--muted); margin: 0; }
.grid-2, .grid-3, .grid-4, .grid-6 { display: grid; gap: 16px; }
.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)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; min-width: 0; }
.card h3 { margin: 8px 0; }
.card p { color: var(--muted); margin-bottom: 12px; }
.card-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--blue); font-weight: 800; }
.color-mark { width: 38px; height: 8px; border-radius: 4px; background: var(--bright); }
.color-mark.deep { background: var(--deep-blue); }
.content-image { width: 100%; height: 210px; object-fit: contain; object-position: center; background: var(--sub-bg); border-radius: 12px; border: 1px solid var(--border); padding: 8px; }
.content-image.tall { height: min(420px, 70vh); }
.number-list, .rack-list, .note-list { display: grid; gap: 12px; }
.number-item, .rack-item, .note-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 16px; align-items: center; min-height: 92px; padding: 16px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.number { color: var(--blue); font-size: 36px; font-weight: 900; line-height: 1; letter-spacing: -.05em; }
.number-item p, .rack-item p, .note-item p { color: var(--muted); margin: 4px 0 0; }
.number-item a, .rack-item a, .note-item a { color: var(--blue); font-weight: 800; }
.timeline { position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 14px; bottom: 14px; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 16px 16px 16px 50px; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.timeline-item::before { content: ""; position: absolute; left: 11px; top: 23px; width: 14px; height: 14px; border: 3px solid #fff; background: var(--blue); border-radius: 50%; box-shadow: 0 0 0 1px var(--border); }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 7px; color: #fff; background: var(--blue); font-size: 12px; font-weight: 800; }
.editor-view { border-left: 4px solid var(--blue); padding: 4px 0 4px 18px; }
.editor-view strong { display: block; color: var(--blue); margin-bottom: 6px; }
.page-hero .hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 26px; align-items: center; }
.page-hero .media-frame { max-height: none; min-height: 220px; }
.page-hero .content-image { height: 240px; }
.prose { max-width: 900px; }
.prose-section { padding: 22px 0; border-top: 1px solid var(--border); }
.prose-section:first-child { border-top: 0; }
.prose-section h2 { margin: 0 0 12px; font-size: 22px; }
.prose-section p { color: var(--text); line-height: 1.95; }
.info-box { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--deep-bg); color: var(--muted); }
.tag-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tag-card { min-height: 130px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.tag-card h3 { margin: 0 0 6px; }
.tag-card p { color: var(--muted); }
.faq-list { display: grid; gap: 14px; }
.faq-item { padding: 20px; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
.faq-item h2 { margin: 0 0 10px; font-size: 19px; }
.faq-item p { margin: 0; color: var(--muted); line-height: 1.9; }
.app-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 26px; align-items: start; }
.app-icon { width: 64px; height: 64px; object-fit: contain; border-radius: 14px; border: 1px solid var(--border); background: #fff; padding: 5px; }
.site-footer { background: #0A1628; color: #A0AEC0; padding: 42px 0 24px; }
.footer-top { display: grid; grid-template-columns: 250px 1fr; gap: 36px; }
.footer-brand { display: flex; align-items: flex-start; gap: 12px; }
.footer-logo { max-height: 34px; max-width: 130px; filter: brightness(0) invert(1); }
.footer-brand div { display: grid; }
.footer-brand strong { color: #fff; font-size: 22px; }
.footer-brand span { font-size: 12px; letter-spacing: .15em; }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.footer-columns nav { display: grid; align-content: start; gap: 7px; }
.footer-columns h2 { color: #fff; font-size: 14px; margin: 0 0 5px; }
.footer-columns a { color: #A0AEC0; font-size: 14px; }
.footer-columns a:hover, .footer-columns a:focus-visible { color: #fff; }
.footer-note { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; font-size: 13px; }
.footer-note p { margin: 0 0 6px; }
.mobile-bottom { display: none; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(0,82,204,.34); outline-offset: 2px; }
@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-6, .tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-hero .hero-grid, .app-layout, .footer-top { grid-template-columns: 1fr; }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
    body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .tab-strip { display: none; }
    .site-main { padding-top: 82px; }
    .counter-inner { grid-template-columns: 1fr auto 1fr; gap: 6px; }
    .brand-logo { max-width: 112px; max-height: 32px; }
    .brand-fallback { font-size: 23px; }
    .drawer-button { min-width: 80px; padding-inline: 10px; }
    .app-link { padding-inline: 10px; font-size: 13px; }
    .search-panel { top: 82px; padding: 0 8px; }
    .search-card { width: 100%; background: var(--deep-bg); border-radius: 0 0 14px 14px; }
    .hero-section, .page-hero { padding-top: 24px; }
    .hero-placeholder { min-height: 190px; }
    .hero-media { min-height: 150px; }
    .grid-2, .grid-3, .grid-4, .grid-6, .tag-grid { grid-template-columns: 1fr; }
    .number-item, .rack-item, .note-item { grid-template-columns: 58px 1fr; }
    .number-item > a, .rack-item > a, .note-item > a { grid-column: 2; }
    .content-image { height: 200px; }
    .section { padding: 28px 0; }
    .section-head { display: block; }
    .section-head p { margin-top: 8px; }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-footer { padding-bottom: 26px; }
    .mobile-bottom { position: fixed; z-index: 60; 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: #fff; border-top: 1px solid var(--border); }
    .mobile-bottom a { display: flex; align-items: center; justify-content: center; min-height: 50px; color: var(--muted); font-size: 13px; font-weight: 800; }
    .mobile-bottom a.is-current { color: #fff; background: var(--blue); }
    .page-mask { z-index: 70; }
    .site-drawer { z-index: 80; }
}
@media (max-width: 380px) {
    .shell { width: min(calc(100% - 32px), var(--shell)); }
    .drawer-button { min-width: 72px; font-size: 13px; }
    .app-link { font-size: 12px; }
    .footer-columns { grid-template-columns: 1fr 1fr; }
}

/* 内页的独立阅读形态 */
.pattern-desk .prose-section { display:grid; grid-template-columns:180px 1fr; gap:24px; align-items:start; }
.pattern-desk .prose-section h2 { color:var(--blue); font-size:26px; margin-top:2px; }
.pattern-cast { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:1100px; }
.pattern-cast .prose-section { border:1px solid var(--border); border-radius:12px; padding:20px; background:#fff; }
.pattern-cast .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-hall { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:1100px; }
.pattern-hall .prose-section { border:1px solid var(--border); border-radius:12px; padding:20px; background:#fff; }
.pattern-hall .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-snippet .prose-section { display:grid; grid-template-columns:170px 1fr; gap:20px; padding:18px 20px; margin-bottom:12px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.pattern-snippet .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-serial { border-left:2px solid var(--border); padding-left:22px; }
.pattern-serial .prose-section { position:relative; }
.pattern-serial .prose-section::before { content:""; position:absolute; left:-30px; top:28px; width:14px; height:14px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px #fff; }
.pattern-atelier .prose-section { padding:18px 20px; margin-bottom:12px; border:1px solid var(--border); border-left:5px solid var(--blue); border-radius:10px; background:#fff; }
.pattern-atelier .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-topic { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:1100px; }
.pattern-topic .prose-section { border:1px solid var(--border); border-radius:12px; padding:20px; background:#fff; }
.pattern-topic .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-rack .prose-section { display:grid; grid-template-columns:180px 1fr; gap:20px; padding:18px 20px; margin-bottom:10px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.pattern-rack .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-rank .prose-section h2 { color:var(--blue); font-size:28px; letter-spacing:-.02em; }
.pattern-rank .prose-section { padding:22px 0; }
.pattern-timetable { border-left:2px solid var(--border); padding-left:24px; }
.pattern-timetable .prose-section { position:relative; padding:18px 20px; margin:0 0 14px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.pattern-timetable .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-timetable .prose-section::before { content:""; position:absolute; left:-33px; top:25px; width:14px; height:14px; border-radius:50%; background:var(--blue); box-shadow:0 0 0 4px var(--deep-bg); }
.pattern-memo .prose-section { counter-increment:memo; position:relative; padding-left:72px; }
.pattern-memo { counter-reset:memo; }
.pattern-memo .prose-section::before { content:counter(memo, decimal-leading-zero); position:absolute; left:0; top:21px; color:var(--blue); font-size:30px; font-weight:900; }
.pattern-view .prose-section { border-left:4px solid var(--blue); padding-left:22px; margin:16px 0; }
.pattern-walk { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:1100px; }
.pattern-walk .prose-section { border:1px solid var(--border); border-radius:12px; padding:20px; background:#fff; }
.pattern-walk .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-app .prose-section { padding:20px; margin-bottom:12px; border:1px solid var(--border); border-radius:12px; background:#fff; }
.pattern-app .prose-section:first-child { border-top:1px solid var(--border); }
.pattern-legal .prose-section h2 { padding-left:14px; border-left:4px solid var(--blue); }
.pattern-support .prose-section { padding:18px 0; }
.pattern-brand .prose-section { padding:24px 0; }
.page-hero .content-image.tall { height:min(420px,70vh); }
@media (max-width:760px) {
  .pattern-desk .prose-section,.pattern-snippet .prose-section,.pattern-rack .prose-section { grid-template-columns:1fr; gap:6px; }
  .pattern-cast,.pattern-hall,.pattern-topic,.pattern-walk { grid-template-columns:1fr; }
  .pattern-memo .prose-section { padding-left:56px; }
}
.image-placeholder { background: linear-gradient(180deg, #EEF1F6 0%, #F5F7FA 100%); }
