:root {
    --bg: #FFFFFF;
    --surface: #F8FAFC;
    --fg: #0F172A;
    --secondary: #64748B;
    --accent: #2563EB;
    --accent-soft: #EFF6FF;
    --link: #1D4ED8;
    --border: #E2E8F0;
    --cta: #2563EB;
    --cta-text: #FFFFFF;
    --radius: 8px;
    --radius-lg: 12px;
    --header-h: 56px;
    --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.7; color: var(--fg); background: var(--bg); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 16px; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); margin: 0 0 24px; }
h3 { font-size: 1.0625rem; margin: 0 0 8px; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: auto; z-index: 999; padding: 8px 16px; background: var(--fg); color: var(--bg); text-decoration: none; }
.skip:focus { left: 16px; top: 16px; }

.wrap { width: min(960px, calc(100% - 32px)); margin: 0 auto; }

/* ═══ Header ═══ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-bar { display: flex; align-items: center; height: var(--header-h); gap: 16px; position: relative; }
.brand { font-weight: 700; font-size: 1.125rem; color: var(--fg); text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--accent); text-decoration: none; }
.nav-panel { display: flex; flex: 1; }
.nav-links { display: flex; list-style: none; gap: 4px 18px; flex-wrap: wrap; }
.nav-links a { color: var(--secondary); font-size: .875rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; transition: color 180ms; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--fg); text-decoration: none; }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn-cta { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: var(--cta); color: var(--cta-text); border-radius: var(--radius); font-size: .875rem; font-weight: 600; text-decoration: none; transition: opacity 180ms, box-shadow 180ms; white-space: nowrap; cursor: pointer; }
.btn-cta:hover { opacity: .9; text-decoration: none; color: var(--cta-text); }
.btn-lg { padding: 12px 28px; font-size: 1rem; border-radius: 10px; box-shadow: 0 2px 12px rgba(37,99,235,0.25); }
.btn-lg:hover { box-shadow: 0 4px 20px rgba(37,99,235,0.35); opacity: 1; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--fg); border-radius: var(--radius); }
.nav-toggle:hover { background: var(--surface); }

/* Breadcrumbs */
.breadcrumbs { padding: 12px 0; font-size: .8125rem; color: var(--secondary); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; gap: 4px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 4px; color: var(--border); }
.breadcrumbs a { color: var(--secondary); }
.breadcrumbs a:hover { color: var(--fg); }

/* ═══ Hero ═══ */
.hero { padding: 72px 0 56px; background: linear-gradient(160deg, var(--accent-soft) 0%, var(--bg) 55%, #F0F9FF 100%); position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-copy { max-width: 520px; }
.hero h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -.02em; }
.kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--accent); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); flex-shrink: 0; }
.hero-lead { color: var(--secondary); max-width: 42rem; font-size: 1.0625rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { margin-top: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 20px; font-size: .8125rem; color: var(--secondary); }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Hero GPS visual */
.hero-visual { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.hero-visual::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed #BFDBFE; }
.hero-visual::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: var(--accent-soft); border: 1.5px solid #93C5FD; }
.hero-dot { position: absolute; width: 16px; height: 16px; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--accent); border-radius: 50%; z-index: 1; animation: hero-pulse 2.5s ease-out infinite; }
@keyframes hero-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,99,235,0.3); } 70% { box-shadow: 0 0 0 20px rgba(37,99,235,0); } 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } }

/* ═══ Bands ═══ */
.band { padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.band-surface { background: var(--surface); }

/* Card grid */
.card-grid, .case-grid, .news-grid { display: grid; gap: 16px; }

/* Panels */
.panel { padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow 200ms var(--ease); }
.band-surface .panel { background: var(--bg); }
.card-grid .panel:hover, .news-grid .panel:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.panel p:last-child { margin-bottom: 0; }

/* Feature icons */
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }

/* About */
.about-grid { display: grid; gap: 32px; align-items: start; }
.about-facts { margin: 0; display: grid; gap: 0; }
.about-facts div { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items: center; }
.about-facts div:first-child { border-top: 1px solid var(--border); }
.about-facts dt { color: var(--accent); font-weight: 600; font-size: .8125rem; letter-spacing: .02em; }
.about-facts dd { margin: 0; }

/* Reviews */
.stars { display: flex; gap: 2px; color: #F59E0B; margin-bottom: 12px; }
.review-card blockquote { margin: 0 0 16px; color: var(--secondary); font-style: normal; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Cases */
.case-card { padding: 24px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow 200ms var(--ease); }
.case-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.case-card h3 { margin-bottom: 8px; }
.case-card p:last-child { margin-bottom: 0; color: var(--secondary); }
.section-cta { margin: 24px 0 0; }

/* FAQ */
.faq-wrap { max-width: 720px; }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; padding: 12px 0; transition: color 180ms; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::marker { color: var(--accent); }
.faq-list details[open] summary { color: var(--accent); }
.faq-list details p { color: var(--secondary); padding-bottom: 12px; }
.faq-list details p a { color: var(--link); }

/* News */
.news-card h3 { margin-bottom: 4px; }
.news-card h3 a { color: var(--fg); text-decoration: none; }
.news-card h3 a:hover { color: var(--link); text-decoration: none; }

/* ═══ Article / Category / Tag pages ═══ */
.layout { display: grid; gap: 40px; padding: 32px 0 64px; }
.content { min-width: 0; }
.sidebar { display: grid; gap: 24px; align-content: start; }

.card { padding: 24px 0; border-bottom: 1px solid var(--border); }
.card:first-child { padding-top: 0; }
.card h2 { font-size: 1.125rem; line-height: 1.4; margin-bottom: 4px; }
.card h2 a { color: var(--fg); text-decoration: none; }
.card h2 a:hover { color: var(--link); }
.card .excerpt { color: var(--secondary); font-size: .9375rem; margin-top: 4px; }

.meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .8125rem; color: var(--secondary); }
.meta a { color: var(--secondary); }
.meta a:hover { color: var(--link); text-decoration: underline; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 500; padding: 2px 10px; border: 1px solid var(--border); border-radius: 99px; color: var(--secondary); text-decoration: none; transition: border-color 180ms, color 180ms; }
.tag:hover { color: var(--link); border-color: var(--link); text-decoration: none; }

.prose { line-height: 1.8; }
.prose h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.5em; }
.prose blockquote { margin: 16px 0; padding: 12px 20px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--secondary); border-radius: 0 var(--radius) var(--radius) 0; }
.prose img { border-radius: var(--radius); margin: 16px 0; }
.prose pre { background: var(--surface); padding: 16px; border-radius: var(--radius); overflow-x: auto; font-size: .875rem; margin: 16px 0; }
.prose code { font-size: .875em; background: var(--surface); padding: 2px 5px; border-radius: 3px; }
.prose pre code { background: none; padding: 0; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }

.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .875rem; }
.btn-ghost { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .8125rem; color: var(--secondary); transition: border-color 180ms, color 180ms; background: none; cursor: pointer; }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }

.post-nav { display: grid; gap: 12px; margin-top: 32px; }
.post-nav-link { display: grid; gap: 2px; min-width: 0; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); color: var(--fg); text-decoration: none; transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.post-nav-link span { color: var(--accent); font-size: .8125rem; font-weight: 600; }
.post-nav-link strong { overflow-wrap: anywhere; font-size: .9375rem; }
a.post-nav-link:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(37,99,235,0.08); text-decoration: none; }
.post-nav-link.is-empty, .post-nav-link.is-empty span { color: var(--secondary); }

.related-section { margin-top: 40px; }
.related-section h2 { font-size: 1.125rem; margin-bottom: 12px; }
.related-list { list-style: none; display: grid; gap: 8px; }
.related-list li { padding: 14px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); transition: box-shadow 200ms var(--ease); }
.related-list li:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.related-list a { color: var(--fg); font-weight: 600; text-decoration: none; }
.related-list a:hover { color: var(--link); }
.related-list .meta { margin-top: 2px; }

.sidebar .panel { padding: 20px; background: var(--surface); border: none; }
.sidebar .panel h3 { font-size: 1rem; margin-bottom: 8px; }
.sidebar .panel p { font-size: .875rem; color: var(--secondary); margin-bottom: 12px; }
.sidebar .panel ul { list-style: none; font-size: .875rem; }
.sidebar .panel li + li { margin-top: 6px; }
.sidebar .panel a { color: var(--fg); text-decoration: none; }
.sidebar .panel a:hover { color: var(--link); }
.sidebar .panel .btn-cta { width: 100%; justify-content: center; }

.page-title { margin-bottom: 24px; }
.page-title h1 { font-size: 1.5rem; }
.page-title p { color: var(--secondary); margin-top: 4px; }

.pagination { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 32px 0 0; }
.page-item .page-link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; color: var(--fg); text-decoration: none; transition: background 180ms; }
.page-item .page-link:hover { background: var(--surface); text-decoration: none; }
.page-item.active .page-link { background: var(--accent); color: var(--cta-text); border-color: var(--accent); }

.error-page { text-align: center; padding: 80px 0; }
.error-code { font-size: clamp(3rem, 10vw, 6rem); font-weight: 900; letter-spacing: -.04em; color: var(--border); line-height: 1; }
.error-page h1 { margin: 16px 0 8px; }
.error-page p { color: var(--secondary); margin-bottom: 24px; }

/* ═══ Footer ═══ */
.site-footer { border-top: 1px solid var(--border); padding: 48px 0 24px; background: var(--surface); }
.footer-grid { display: grid; gap: 32px; margin-bottom: 24px; }
.site-footer h2 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; color: var(--fg); }
.site-footer p { font-size: .875rem; color: var(--secondary); }
.site-footer ul { list-style: none; }
.site-footer li + li { margin-top: 6px; }
.site-footer a { color: var(--secondary); text-decoration: none; font-size: .875rem; }
.site-footer a:hover { color: var(--fg); text-decoration: none; }
.site-footer .btn-cta { margin-top: 4px; }
.legal { border-top: 1px solid var(--border); padding-top: 16px; font-size: .8125rem; color: var(--secondary); }

/* ═══ Responsive ═══ */
@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .nav-panel { display: none; position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; z-index: 99; }
    .nav-panel.is-open { display: block; }
    .nav-links { flex-direction: column; gap: 0; }
    .hero { padding: 48px 0 40px; }
    .hero-visual { display: none; }
    .hero-copy { text-align: center; max-width: none; }
    .hero-copy .kicker { justify-content: center; }
    .hero-badges { justify-content: center; }
    .hero-actions { display: flex; justify-content: center; }
    .btn-cta.btn-lg { width: 100%; justify-content: center; }
    .section-cta .btn-cta { width: 100%; display: flex; justify-content: center; }
    .about-grid .btn-cta { width: 100%; justify-content: center; }
    .band { padding: 48px 0; }
}

@media (min-width: 768px) {
    .wrap { width: min(960px, calc(100% - 48px)); }
    .hero-grid { grid-template-columns: 1fr auto; }
    .about-grid { grid-template-columns: 1fr 1fr; }
    .card-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
    .case-grid { grid-template-columns: repeat(3, 1fr); }
    .layout { grid-template-columns: minmax(0, 1fr) 260px; }
    .post-nav { grid-template-columns: 1fr 1fr; }
    .post-nav-link.is-next { text-align: right; }
    .related-list { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1024px) {
    #features .card-grid, #services .card-grid { grid-template-columns: repeat(4, 1fr); }
    .reviews { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0s !important; transition-duration: 0s !important; }
    html { scroll-behavior: auto; }
    .hero-dot { animation: none; box-shadow: 0 0 0 6px rgba(37,99,235,0.12); }
    .status-dot { box-shadow: none; }
}
