/* ============================================
   官网主题 · 靛蓝 + 赤陶色
   ============================================ */
:root {
    --brand-deep: #152238;
    --brand: #1e3354;
    --brand-light: #2a466e;
    --accent: #c45c3e;
    --accent-hover: #a84a32;
    --accent-soft: #faf0ec;
    --surface: #f4f6f9;
    --card: #ffffff;
    --line: #dde2eb;
    --text: #2a3342;
    --muted: #5f6b7c;
    --header-h: 70px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(21, 34, 56, 0.06);
    --shadow-md: 0 6px 24px rgba(21, 34, 56, 0.08);
    --ease: 0.25s ease;
    --container: 1140px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--surface);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    transition: color var(--ease);
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========== 顶栏导航 ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    background: var(--brand-deep);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 16px;
}

.site-logo {
    font-size: 1.05rem;
    font-weight: 700;
    flex-shrink: 0;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-logo a {
    color: #fff;
    text-decoration: none;
}

.site-logo a:hover {
    color: #f0c4b8;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    gap: 4px 6px;
}

.nav-item a {
    display: block;
    padding: 6px 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-radius: 4px;
    line-height: 1.35;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-item.z0bb8fthis a,
.page-home .nav-item.nav-home.z0bb8fthis a {
    color: #fff;
    background: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: var(--ease);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--ease);
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

body.menu-open {
    overflow: hidden;
}

/* ========== 首页主区域 ========== */
.site-main {
    padding-top: var(--header-h);
}

/* Hero */
.hero-band {
    background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-light) 100%);
    color: #fff;
    padding: 48px 0 56px;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.hero-heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
}

.hero-lead {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 14px;
    line-height: 1.65;
}

.hero-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 24px;
    line-height: 1.75;
}

.hero-text strong {
    color: #f5d0c6;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 11px 22px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
    border-color: #fff;
    color: #fff;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    width: 100%;
    max-height: 320px;
    object-fit: cover;
}

.hero-metrics {
    list-style: none;
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.hero-metrics li {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 12px 10px;
    text-align: center;
}

.hero-metrics strong {
    display: block;
    font-size: 1.1rem;
    color: #f5d0c6;
}

.hero-metrics span {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
}

/* Trust strip */
.trust-strip {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.trust-cell {
    padding: 0 8px;
    border-left: 3px solid var(--accent);
}

.trust-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 6px;
    letter-spacing: 0.04em;
}

.trust-cell p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
}

/* 通用区块 */
.section {
    padding: 56px 0;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}

.section-head-left {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    color: var(--brand);
    font-weight: 700;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 0.92rem;
    color: var(--muted);
}

/* Bento 服务 */
.section-services {
    background: var(--card);
}

.service-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px;
    min-width: 0;
    transition: box-shadow var(--ease), border-color var(--ease);
}

.bento-card:hover {
    border-color: #c8d0dc;
    box-shadow: var(--shadow);
}

.bento-num {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 10px;
}

.bento-card h3 {
    font-size: 1rem;
    color: var(--brand);
    margin-bottom: 10px;
    line-height: 1.4;
    word-break: break-word;
}

.bento-card p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}

.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-wide {
    grid-column: span 2;
}

.bento-accent {
    background: var(--accent-soft);
    border-color: #ecd4cb;
}

.check-list {
    list-style: none;
    margin-top: 12px;
}

.check-list li {
    position: relative;
    padding-left: 18px;
    font-size: 0.86rem;
    color: var(--text);
    margin-bottom: 6px;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* 知识区 */
.section-knowledge {
    background: var(--surface);
}

.knowledge-layout .section-head {
    margin-bottom: 28px;
}

.knowledge-panels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.knowledge-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    min-width: 0;
}

.knowledge-panel h3 {
    font-size: 0.98rem;
    color: var(--brand);
    margin-bottom: 10px;
    line-height: 1.4;
}

.knowledge-panel p {
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.7;
}

.knowledge-panel:nth-child(5) {
    grid-column: 1 / -1;
}

/* 流程 */
.section-flow {
    background: var(--card);
}

.flow-track {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    counter-reset: flow;
}

.flow-step {
    position: relative;
    padding: 20px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    min-width: 0;
}

.flow-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--brand);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 12px;
}

.flow-step h3 {
    font-size: 0.95rem;
    color: var(--brand);
    margin-bottom: 8px;
}

.flow-step p {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.6;
}

/* FAQ */
.section-faq {
    background: var(--surface);
}

.faq-stack {
    max-width: 800px;
    margin: 0 auto;
}

.faq-row {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-row summary {
    padding: 16px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand);
    cursor: pointer;
    list-style: none;
}

.faq-row summary::-webkit-details-marker {
    display: none;
}

.faq-row[open] summary {
    border-bottom: 1px solid var(--line);
    background: var(--accent-soft);
}

.faq-row p {
    padding: 16px 20px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.65;
}

/* 首页文章 */
.section-news {
    background: var(--card);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.news-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
    transition: box-shadow var(--ease);
}

.news-card:hover {
    box-shadow: var(--shadow);
}

.news-thumb {
    display: block;
    height: 120px;
    overflow: hidden;
    background: #e8ecf1;
}

.news-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-title {
    padding: 12px 14px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.news-title a {
    color: var(--brand);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-title a:hover {
    color: var(--accent);
}

.news-card p,
.news-card .article-intro {
    display: none;
}

/* 页脚 */
.site-footer {
    background: var(--brand-deep);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand h3 {
    font-size: 1.1rem;
    color: #f5d0c6;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    opacity: 0.85;
}

.footer-nav-col h4 {
    font-size: 0.9rem;
    margin-bottom: 12px;
    color: #fff;
}

.footer-nav-col ul {
    list-style: none;
}

.footer-nav-col li {
    margin-bottom: 8px;
}

.footer-nav-col a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.88rem;
}

.footer-nav-col a:hover {
    color: #fff;
}

.site-footer-compact {
    padding: 24px 0;
}

.footer-mini {
    text-align: center;
    font-size: 0.88rem;
    opacity: 0.8;
}

.footer-links {
    background: #111c2e;
    padding: 20px 0;
}

.links-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
    list-style: none;
}

.links-list a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.84rem;
}

.links-list a:hover {
    color: #f5d0c6;
}

.footer-stats {
    background: #0d1524;
    padding: 16px 0;
    text-align: center;
}

.footer-stats p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 4px 0;
}

.footer-stats a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-stats a:hover {
    color: #f5d0c6;
}

/* ========== 内页 ========== */
.page-inner .site-main,
.page-main {
    padding-top: var(--header-h);
    min-height: 60vh;
}

.page-banner {
    background: var(--brand);
    color: #fff;
    padding: 28px 0;
    border-bottom: 3px solid var(--accent);
}

.page-banner-title {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 8px;
    word-break: break-word;
}

.breadcrumb {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #f5d0c6;
}

.main-wrapper {
    padding: 32px 0 48px;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: start;
}

.main-content {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-width: 0;
    overflow: hidden;
}

/* 列表 */
.article-list {
    list-style: none;
}

.article-list-item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.article-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-list-item:first-child {
    padding-top: 0;
}

.article-list-thumb {
    flex: 0 0 200px;
    width: 200px;
    max-width: 40%;
    height: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.article-list-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.article-list-body {
    flex: 1;
    min-width: 0;
}

.article-list-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-list-title a {
    color: var(--brand);
    text-decoration: none;
    word-break: break-word;
}

.article-list-title a:hover {
    color: var(--accent);
}

.article-list-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.article-list-meta a {
    color: var(--accent);
    text-decoration: none;
}

.article-list-intro {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
    word-break: break-word;
}

/* 分页 */
.pagebar {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.pagebar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.pagebar-side {
    flex: 1;
    min-width: 80px;
}

.pagebar-side.pagebar-left {
    display: flex;
    justify-content: flex-start;
}

.pagebar-side.pagebar-right {
    display: flex;
    justify-content: flex-end;
}

.pagebar-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.pagebar-inner .pagelist {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    gap: 6px;
    margin: 0;
    padding: 0;
}

.z0bb8fpages .pagelist li a,
.z0bb8fpages .pagelist li span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.84rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: var(--ease);
}

.z0bb8fpages .pagelist li a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.z0bb8fpages .pagelist li.thisclass a,
.z0bb8fpages .pagelist li.thisclass span {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* 侧栏 */
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    min-width: 0;
}

.sidebar-block {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 18px;
    overflow: hidden;
}

.sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand);
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.sidebar-list {
    list-style: none;
    max-height: 680px;
    overflow-y: auto;
}

.sidebar-item {
    border-bottom: 1px solid var(--line);
}

.sidebar-item:last-child {
    border-bottom: none;
}

.sidebar-item-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    text-decoration: none;
    color: var(--text);
    font-size: 0.82rem;
    min-width: 0;
}

.sidebar-item-link:hover {
    color: var(--accent);
}

.sidebar-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface);
}

.sidebar-thumb img {
    width: 64px;
    height: 48px;
    object-fit: cover;
}

.sidebar-item-text {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 内容页 */
.article-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.article-title {
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    color: var(--brand);
    line-height: 1.4;
    margin-bottom: 12px;
    word-break: break-word;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.84rem;
    color: var(--muted);
}

.article-meta a {
    color: var(--accent);
    text-decoration: none;
}

.article-litpic {
    margin-bottom: 20px;
    text-align: center;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-litpic img {
    margin: 0 auto;
    max-height: 400px;
    object-fit: contain;
}

.article-body {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
    word-break: break-word;
    overflow-wrap: break-word;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.article-body p {
    margin-bottom: 12px;
}

.z0bb8fdiyfield {
    margin-bottom: 20px;
    padding: 14px 16px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.9rem;
    overflow: hidden;
}

.article-image-item {
    margin-bottom: 14px;
    text-align: center;
}

.article-image-item img {
    margin: 0 auto;
    border-radius: var(--radius);
}

.article-image-item span {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--muted);
}

.z0bb8fmeta-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.z0bb8ftagitem a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.8rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--accent);
    text-decoration: none;
}

.z0bb8ftagitem a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.clear {
    width: 100%;
    clear: both;
}

.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    margin-bottom: 20px;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
}

.article-nav-prev,
.article-nav-next {
    flex: 1;
    min-width: 0;
    max-width: 48%;
}

.article-nav-next {
    text-align: right;
}

.article-nav a {
    color: var(--text);
    text-decoration: none;
    word-break: break-word;
}

.article-nav a:hover {
    color: var(--accent);
}

.related-title {
    font-size: 1.05rem;
    color: var(--brand);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}

.related-list {
    list-style: none;
}

.related-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.related-item:last-child {
    border-bottom: none;
}

.related-thumb {
    flex: 0 0 100px;
}

.related-thumb img {
    width: 100px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius);
}

.related-info {
    flex: 1;
    min-width: 0;
}

.related-info > a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.92rem;
    word-break: break-word;
}

.related-info > a:hover {
    color: var(--accent);
}

.related-info p {
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ========== 响应式 ========== */
@media (max-width: 1100px) {
    .nav-item a {
        font-size: 0.72rem;
        padding: 5px 8px;
        max-width: 150px;
    }

    .service-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }

    .news-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--header-h);
        right: -100%;
        width: min(300px, 85vw);
        height: calc(100vh - var(--header-h));
        background: var(--brand-deep);
        transition: right var(--ease);
        overflow-y: auto;
        z-index: 999;
        padding: 12px 0;
    }

    .site-nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-item a {
        max-width: none;
        white-space: normal;
        padding: 12px 20px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 0.85rem;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-visual {
        order: -1;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .trust-cell {
        border-left: none;
        border-top: 3px solid var(--accent);
        padding-top: 12px;
    }

    .service-bento {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-wide {
        grid-column: span 1;
    }

    .knowledge-panels {
        grid-template-columns: 1fr;
    }

    .knowledge-panel:nth-child(5) {
        grid-column: auto;
    }

    .flow-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .hero-band {
        padding: 32px 0 40px;
    }

    .hero-metrics {
        flex-direction: column;
    }

    .flow-track {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-thumb,
    .news-thumb img {
        height: 100px;
    }

    .main-content {
        padding: 18px;
    }

    .article-list-item {
        flex-direction: column;
    }

    .article-list-thumb {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .article-list-thumb img {
        height: 180px;
    }

    .article-nav {
        flex-direction: column;
    }

    .article-nav-prev,
    .article-nav-next {
        max-width: 100%;
        text-align: left;
    }

    .related-item {
        flex-direction: column;
    }

    .related-thumb {
        flex: none;
    }

    .related-thumb img {
        width: 100%;
        height: auto;
        max-height: 180px;
    }

    .pagebar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .pagebar-side.pagebar-left,
    .pagebar-side.pagebar-right,
    .pagebar-center {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .site-logo {
        max-width: 140px;
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}
