:root {
    --bg: #fff8ef;
    --surface: #ffffff;
    --ink: #25201a;
    --muted: #766a5c;
    --brand: #ff8a00;
    --brand-dark: #a65100;
    --line: #f0dfc8;
    --soft: #fff0dc;
    --shadow: 0 18px 50px rgba(79, 52, 18, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #fff1d6 0, transparent 34rem), var(--bg);
    line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 248, 239, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.topbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand, .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    color: var(--brand-dark);
    white-space: nowrap;
}
.brand img, .footer-logo img { width: 42px; height: 42px; }
.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.nav a {
    padding: 8px 10px;
    border-radius: 999px;
    color: #5e4d3e;
    font-size: 14px;
}
.nav a:hover { background: var(--soft); color: var(--brand-dark); }
.search-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(80, 48, 9, .06);
}
.search-bar label { display: block; font-weight: 800; margin-bottom: 8px; }
.search-row { display: flex; gap: 10px; }
.search-row input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fffdf8;
}
.search-row button, .btn {
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.search-row button, .btn.primary { background: var(--brand); color: #221100; }
.btn.ghost { background: #fff4e4; color: var(--brand-dark); border: 1px solid var(--line); }
.search-notice { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.breadcrumb {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
    margin: 18px 0;
}
.section-card {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 46px);
    box-shadow: var(--shadow);
    margin: 18px 0 28px;
}
.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 34px;
    align-items: center;
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--brand-dark);
    font-weight: 900;
    letter-spacing: .08em;
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 64px); letter-spacing: -.04em; }
h2 { font-size: clamp(24px, 4vw, 38px); }
h3 { font-size: 20px; }
.lead { font-size: clamp(17px, 2vw, 21px); color: #5e5146; margin: 0 0 20px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0; }
.hero-stats {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.hero-stats li {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}
.hero-stats strong { display: block; font-size: 24px; color: var(--brand-dark); }
.hero-stats span { color: var(--muted); font-size: 14px; }
.hero-media { margin: 0; }
.hero-media img { border-radius: 24px; box-shadow: 0 20px 50px rgba(79,52,18,.18); }
.hero-media figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.section-title { max-width: 820px; margin-bottom: 24px; }
.section-title p:not(.eyebrow) { color: var(--muted); margin-top: 0; }
.feature-grid, .scenario-grid, .review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.scenario-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .scenario-grid article, .review-grid article, .log-list article, .timeline article {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 20px;
}
.feature-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--soft);
    color: var(--brand-dark);
    font-weight: 900;
    margin-bottom: 14px;
}
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.video-card {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.video-card:hover, .video-card:focus-within { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(79,52,18,.16); }
.video-shell {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}
.video-shell video, .video-shell img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.play-btn {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%) scale(.88);
    opacity: 0;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.92);
    color: var(--brand-dark);
    font-size: 26px;
    z-index: 2;
    transition: opacity .2s ease, transform .2s ease;
}
.video-card:hover .play-btn, .video-card:focus-within .play-btn { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-body { padding: 18px; }
.tag {
    display: inline-flex;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand-dark);
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 10px;
}
.metrics { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.timeline strong { color: var(--brand-dark); font-size: 26px; }
.log-list { display: grid; gap: 14px; }
.log-list span { color: var(--brand-dark); font-weight: 800; }
.faq-list { display: grid; gap: 12px; }
details {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px 18px;
}
summary { cursor: pointer; font-weight: 900; }
details p { margin-bottom: 0; color: var(--muted); }
.review-grid { grid-template-columns: repeat(3, 1fr); }
.review-grid p { margin-top: 0; color: #5e5146; }
.contact-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.json-output { background: #21170d; color: #fff8ef; }
.json-output p { color: #ffe1b4; }
.domain-line { background: var(--soft); border: 1px solid var(--line); display: inline-block; padding: 8px 12px; border-radius: 999px; color: var(--brand-dark); }
.site-footer {
    margin-top: 40px;
    background: #20160e;
    color: #fff8ef;
    padding: 44px 0 24px;
}
.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}
.footer-grid h2 { font-size: 18px; color: #ffd59b; }
.footer-grid p { color: #f3dcc0; }
.footer-grid a { display: block; color: #fff2dc; margin: 6px 0; }
.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.16);
    color: #e8c8a0;
    font-size: 14px;
}
@media (max-width: 980px) {
    .topbar { align-items: flex-start; flex-direction: column; }
    .nav { justify-content: flex-start; }
    .hero, .footer-grid { grid-template-columns: 1fr; }
    .feature-grid, .video-grid, .timeline, .review-grid, .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    main, .topbar, .search-bar, .footer-grid, .copyright { width: min(100% - 22px, 1180px); }
    .section-card { border-radius: 20px; padding: 20px; }
    .search-row { flex-direction: column; }
    .feature-grid, .video-grid, .timeline, .review-grid, .scenario-grid, .hero-stats { grid-template-columns: 1fr; }
    .contact-band { align-items: flex-start; flex-direction: column; }
    h1 { font-size: 34px; }
}
