/* Theme: rail */
:root {
    --accent: #4854b8;
    --accent-2: #6e8b32;
    --soft: #f1f2fb;
    --ink: #202238;
    --muted: #64706d;
    --line: #dfe5e3;
    --paper: #ffffff;
    --page: #f7f9f8;
    --radius: 8px;
    --shadow: 0 18px 44px rgba(22, 37, 33, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, Helvetica, sans-serif; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
.site-header { position: sticky; top: 0; z-index: 30; width: 100%; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner, .hero-inner, .section-inner, .footer-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: 0; }
.brand img { border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-link { color: #4d5956; font-size: 15px; }
.nav-link:hover, .nav-link.active { color: var(--accent); }
.menu-button { display: none; width: 42px; height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 24px; border-radius: 6px; background: var(--accent); color: white; font-weight: 700; border: 1px solid var(--accent); }
.button:hover { filter: brightness(.94); }
.button-small { min-height: 38px; padding: 0 18px; font-size: 14px; }
.hero { overflow: hidden; background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-inner { min-height: 630px; padding: 52px 0 44px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr); align-items: center; gap: 76px; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.hero h1 { max-width: 620px; margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.12; letter-spacing: 0; }
.hero-copy > p { max-width: 640px; margin: 24px 0 0; color: #4e5a57; font-size: 18px; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 750; }
.text-link span { font-size: 20px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); color: #5b6764; font-size: 14px; list-style: none; }
.hero-points li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--accent-2); vertical-align: 2px; }
.hero-media { position: relative; min-height: 500px; display: flex; align-items: center; justify-content: center; }
.hero-shot { width: auto; max-width: 400px; max-height: 470px; object-fit: contain; border: 1px solid #d6dddb; border-radius: var(--radius); box-shadow: var(--shadow); background: white; }
.indexed-media { padding-left: 52px; }
.media-index { position: absolute; left: 0; top: 76px; color: var(--accent); font-weight: 800; writing-mode: vertical-rl; }
.shot-tabs { position: absolute; right: 0; bottom: 48px; display: grid; background: white; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20,30,28,.08); }
.shot-tabs span { padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 13px; }
.shot-tabs span:last-child { border-bottom: 0; }
.metadata-media { align-items: center; gap: 18px; }
.media-meta { align-self: center; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.media-meta div { min-width: 112px; padding: 18px; border-bottom: 1px solid var(--line); }
.media-meta dt { color: var(--muted); font-size: 12px; }
.media-meta dd { margin: 2px 0 0; font-weight: 800; }
.contact-media { justify-content: flex-start; padding-left: 28px; }
.contact-main { transform: none; }
.contact-small { position: absolute; right: 8px; bottom: 18px; max-width: 210px; max-height: 280px; border-color: var(--accent); }
.contact-number { position: absolute; right: 18px; top: 26px; color: var(--accent); font-size: 64px; font-weight: 800; line-height: 1; opacity: .16; }
.status-media { padding-top: 0; }
.status-bar { position: absolute; top: 18px; left: 12px; z-index: 2; padding: 8px 13px; background: white; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; box-shadow: 0 8px 24px rgba(20,30,28,.08); }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--accent-2); }
.status-keys { position: absolute; right: 0; bottom: 34px; display: flex; gap: 6px; }
.status-keys span { padding: 7px 11px; background: var(--soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, white); border-radius: 5px; font-size: 12px; color: var(--accent); }
.section { padding: 84px 0; }
.section:nth-of-type(even) { background: var(--paper); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: 32px; line-height: 1.2; }
.section-note { max-width: 620px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-card { min-height: 238px; padding: 28px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-mark { color: var(--accent-2); font-size: 12px; font-weight: 800; }
.feature-card h3 { margin: 44px 0 10px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.gallery-grid { display: grid; grid-template-columns: 1.15fr .85fr 1.15fr; gap: 24px; align-items: start; }
.gallery-grid figure { margin: 0; padding: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.gallery-grid img { width: 100%; max-width: 400px; max-height: 440px; margin: 0 auto; object-fit: contain; }
.gallery-grid figcaption { padding-top: 14px; color: var(--muted); font-size: 14px; }
.route-layout { display: grid; grid-template-columns: .7fr 1.3fr .72fr; gap: 36px; align-items: start; }
.route-list { border-top: 1px solid var(--line); }
.route-item { display: grid; grid-template-columns: 72px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.route-item > span { color: var(--accent); font-weight: 800; }
.route-item h3, .route-item p { margin: 0; }
.route-item p { margin-top: 5px; color: var(--muted); }
.route-aside { padding: 24px; background: var(--soft); border-left: 3px solid var(--accent); }
.route-aside p { color: var(--muted); }
.route-aside a { color: var(--accent); font-weight: 800; }
.faq-preview-layout { display: grid; grid-template-columns: .7fr 1.8fr; gap: 58px; }
.faq-preview-list { border-top: 1px solid var(--line); }
.faq-preview-list a { display: flex; justify-content: space-between; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.faq-preview-list b { color: var(--accent); }
.download-section { padding: 54px 0; background: var(--accent); color: white; }
.download-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.download-inner h2, .download-note { margin: 0; }
.download-inner .eyebrow { color: white; opacity: .78; }
.download-note { margin-top: 8px; opacity: .83; }
.button-light { background: white; border-color: white; color: var(--accent); flex: 0 0 auto; }
.inner-hero { padding: 76px 0 66px; background: var(--paper); border-bottom: 1px solid var(--line); }
.narrow { width: min(840px, calc(100% - 40px)); margin: 0 auto; }
.inner-hero h1 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.18; }
.inner-hero p { max-width: 730px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }
.article-section, .faq-section { padding: 72px 0 96px; }
.article-layout, .faq-layout { width: min(1080px, calc(100% - 40px)); margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 62px; align-items: start; }
.article-index, .faq-side { position: sticky; top: 102px; display: grid; gap: 10px; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); }
.article-index a { color: var(--muted); font-size: 14px; }
.prose > section { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.prose h2 { margin: 5px 0 18px; font-size: 29px; }
.prose p { margin: 0 0 16px; color: #46514e; font-size: 16px; }
.prose a { color: var(--accent); font-weight: 800; }
.step-number { color: var(--accent-2); font-size: 12px; font-weight: 800; }
.faq-side p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.faq-item button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 4px; color: var(--ink); background: transparent; border: 0; text-align: left; cursor: pointer; font-weight: 750; }
.faq-item button b { color: var(--accent); font-size: 22px; }
.faq-answer { display: none; padding: 0 36px 22px 4px; color: var(--muted); }
.faq-answer p { margin: 0; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open button b { transform: rotate(45deg); }
.related-section { padding: 56px 0; background: white; border-top: 1px solid var(--line); }
.related-inner { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
.related-inner h2, .related-inner p { margin: 0; }
.related-inner p { margin-top: 8px; color: var(--muted); }
.site-footer { padding: 48px 0 32px; background: #18211f; color: white; }
.footer-inner { text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 7px; }
.footer-inner nav { display: flex; justify-content: center; gap: 24px; margin: 24px 0; color: #d6ddda; font-size: 14px; }
.disclaimer { max-width: 760px; margin: 0 auto; color: #aeb9b5; font-size: 13px; text-align: center; }
.copyright { margin: 12px 0 0; color: #88938f; font-size: 12px; text-align: center; }

[data-theme="editorial"] .hero-inner { grid-template-columns: .92fr 1.08fr; }
[data-theme="editorial"] .feature-grid { grid-template-columns: repeat(2, 1fr); }
[data-theme="editorial"] .feature-card { min-height: 190px; }
[data-theme="editorial"] .feature-card h3 { margin-top: 24px; }
[data-theme="rail"] .hero-inner { grid-template-columns: .9fr 1.1fr; }
[data-theme="rail"] .feature-grid { border-left: 4px solid var(--accent); }
[data-theme="rail"] .gallery-grid { grid-template-columns: .82fr 1.18fr .82fr; }
[data-theme="narrative"] .route-section { background: white; }
[data-theme="narrative"] .feature-grid { grid-template-columns: repeat(2, 1fr); }
[data-theme="narrative"] .feature-card { min-height: 190px; }
[data-theme="narrative"] .feature-card h3 { margin-top: 24px; }

@media (max-width: 900px) {
    .site-nav { position: absolute; top: 72px; left: 20px; right: 20px; display: none; padding: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow); }
    .site-nav.open { display: grid; }
    .menu-button { display: block; }
    .hero-inner, [data-theme] .hero-inner { min-height: auto; grid-template-columns: 1fr; gap: 24px; padding: 38px 0 30px; }
    .hero-copy { order: 1; }
    .hero-media { order: 2; min-height: 270px; }
    .hero h1 { font-size: 42px; }
    .hero-copy > p { font-size: 16px; }
    .hero-shot { max-height: 300px; }
    .indexed-media { padding-left: 30px; }
    .media-index { top: 35px; }
    .shot-tabs { bottom: 16px; }
    .contact-small { max-width: 145px; max-height: 190px; }
    .section { padding: 62px 0; }
    .feature-grid, [data-theme] .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .route-layout { grid-template-columns: 1fr 1.6fr; }
    .route-aside { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .header-inner, .hero-inner, .section-inner, .footer-inner { width: min(100% - 28px, 1180px); }
    .header-inner { min-height: 64px; }
    .site-nav { top: 64px; left: 14px; right: 14px; }
    .hero-inner { gap: 16px; padding-top: 28px; }
    .hero h1 { font-size: 32px; }
    .hero-copy > p { margin-top: 16px; }
    .hero-actions { margin-top: 20px; gap: 16px; }
    .hero-points { margin-top: 18px; padding-top: 14px; }
    .hero-media { min-height: 225px; }
    .hero-shot { max-height: 235px; }
    .metadata-media { gap: 8px; }
    .media-meta div { min-width: 82px; padding: 10px; }
    .contact-media { padding-left: 0; }
    .contact-small { right: 0; max-width: 118px; max-height: 154px; }
    .status-bar { top: 3px; left: 0; }
    .status-keys { bottom: 4px; }
    .section { padding: 52px 0; }
    .section-heading { display: block; margin-bottom: 24px; }
    .section-heading h2 { font-size: 28px; }
    .section-note { margin-top: 10px; }
    .feature-grid, [data-theme] .feature-grid { grid-template-columns: 1fr; }
    .feature-card { min-height: auto; padding: 22px; }
    .feature-card h3 { margin: 18px 0 6px; }
    .gallery-grid, [data-theme="rail"] .gallery-grid { grid-template-columns: 1fr; }
    .gallery-grid img { max-height: 380px; }
    .route-layout, .faq-preview-layout { grid-template-columns: 1fr; gap: 22px; }
    .faq-preview-layout .section-heading { margin-bottom: 0; }
    .download-inner, .related-inner { align-items: flex-start; flex-direction: column; }
    .inner-hero { padding: 54px 0 46px; }
    .article-layout, .faq-layout { width: min(100% - 28px, 1080px); grid-template-columns: 1fr; gap: 28px; }
    .article-index, .faq-side { position: static; }
    .footer-inner nav { flex-wrap: wrap; }
}
