:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-darker: #1e40af;
    --color-text: #1f2937;
    --color-text-muted: #6b7280;
    --color-bg: #f8fafc;
    --color-white: #ffffff;
    --header-height: 5rem;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-lg: 0.75rem;
    --max-width: 80rem;
}

*,
*::before,
*::after {
    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", sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 6rem;
    }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
}

.brand img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.nav-desktop {
    display: none;
    align-items: center;
    gap: 2rem;
}

/* 主导航占满品牌与操作区之间的剩余空间，链接右对齐 */
.header-inner>.nav-desktop {
    flex: 1;
    padding-right: 3rem;
    justify-content: flex-end;
}

.nav-desktop a {
    font-weight: 600;
    color: #374151;
    transition: color 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
}

.btn-outline {
    background: var(--color-white);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.btn-outline:hover {
    background: #eff6ff;
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary-dark);
}

.btn-white:hover {
    background: #f3f4f6;
}

.btn-ghost-white {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn-ghost-white:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }
}

/* Mobile sidebar */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: min(18rem, 85vw);
    height: 100%;
    background: var(--color-white);
    z-index: 1002;
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.sidebar.is-open {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.sidebar-close {
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: #6b7280;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    padding: 0.875rem 1rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: #eff6ff;
    color: var(--color-primary);
}

.sidebar-nav .btn {
    margin-top: 1rem;
    width: 100%;
}

.sidebar-nav .btn-primary {
    color: var(--color-white);
    font-weight: 700;
}

.sidebar-nav .btn-primary:hover {
    color: var(--color-white);
    background: var(--color-primary-dark);
}

/* Main offset for fixed header */
main {
    padding-top: var(--header-height);
}

/* Hero */
.hero {
    background: linear-gradient(180deg, #eff6ff 0%, var(--color-white) 100%);
    padding: 4rem 0 6rem;
    text-align: center;
}

.hero-logo {
    width: 7.5rem;
    height: 7.5rem;
    margin: 0 auto 1.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    line-height: 1.2;
}

.hero-lead {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* Sections */
.section {
    padding: 3rem 0;
    background: var(--color-white);
}

.section-alt {
    background: var(--color-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.section-title p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 42rem;
    margin: 0 auto;
}

/* Feature cards */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    background: var(--color-white);
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 2rem;
    height: 2rem;
}

.feature-icon--blue {
    background: #dbeafe;
    color: #2563eb;
}

.feature-icon--green {
    background: #dcfce7;
    color: #16a34a;
}

.feature-icon--purple {
    background: #f3e8ff;
    color: #9333ea;
}

.feature-icon--orange {
    background: #ffedd5;
    color: #ea580c;
}

.feature-icon--red {
    background: #fee2e2;
    color: #dc2626;
}

.feature-icon--teal {
    background: #ccfbf1;
    color: #0d9488;
}

.feature-card h3 {
    flex: 1;
    min-width: 0;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.feature-card p {
    width: 100%;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-value {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
}

/* Marquee */
.marquee-wrap {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.marquee-wrap::before,
.marquee-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4rem;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--color-white), transparent);
}

.marquee-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--color-white), transparent);
}

.marquee {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee--fast {
    animation-duration: 30s;
}

.marquee--reverse {
    animation-direction: reverse;
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}

.marquee-item {
    flex-shrink: 0;
    width: 8rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-height: 3.5rem;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: filter 0.2s, opacity 0.2s;
}

.marquee-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* CMS columns */
.cms-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
}

@media (min-width: 768px) {
    .cms-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .cms-columns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.cms-column {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cms-column:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.cms-column-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--cms-accent) 0%, var(--cms-accent-light) 100%);
}

.cms-column-body {
    padding: 1.375rem 1.5rem 1.25rem;
}

.cms-column--blue {
    --cms-accent: #2563eb;
    --cms-accent-light: #60a5fa;
    --cms-accent-bg: #dbeafe;
    --cms-accent-text: #1d4ed8;
}

.cms-column--green {
    --cms-accent: #16a34a;
    --cms-accent-light: #4ade80;
    --cms-accent-bg: #dcfce7;
    --cms-accent-text: #15803d;
}

.cms-column--purple {
    --cms-accent: #9333ea;
    --cms-accent-light: #c084fc;
    --cms-accent-bg: #f3e8ff;
    --cms-accent-text: #7e22ce;
}

.cms-column--orange {
    --cms-accent: #ea580c;
    --cms-accent-light: #fb923c;
    --cms-accent-bg: #ffedd5;
    --cms-accent-text: #c2410c;
}

.cms-column--red {
    --cms-accent: #dc2626;
    --cms-accent-light: #f87171;
    --cms-accent-bg: #fee2e2;
    --cms-accent-text: #b91c1c;
}

.cms-column--teal {
    --cms-accent: #0d9488;
    --cms-accent-light: #2dd4bf;
    --cms-accent-bg: #ccfbf1;
    --cms-accent-text: #0f766e;
}

.cms-column-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.125rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.cms-column-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    min-width: 0;
    flex: 1;
}

.cms-column-titles {
    min-width: 0;
    flex: 1;
}

.cms-column-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.35;
}

.cms-column-desc {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cms-column-more {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    padding: 0.375rem 0.625rem 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--cms-accent-text);
    background: var(--cms-accent-bg);
    border-radius: 9999px;
    transition: background 0.2s, color 0.2s, gap 0.2s;
}

.cms-column-more:hover {
    color: var(--color-white);
    background: var(--cms-accent);
    gap: 0.25rem;
}

.cms-column-more-icon {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.cms-column-more:hover .cms-column-more-icon {
    transform: translateX(2px);
}

.cms-article-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cms-article-item {
    margin: 0;
}

.cms-article-item+.cms-article-item {
    margin-top: 0.125rem;
}

.cms-article-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text);
    line-height: 1.45;
    transition: background 0.2s, color 0.2s;
}

.cms-article-link:hover {
    background: #f8fafc;
    color: var(--cms-accent);
}

.cms-article-link:hover .cms-article-rank {
    background: var(--cms-accent-bg);
    color: var(--cms-accent-text);
}

.cms-article-rank {
    flex-shrink: 0;
    width: 1.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: var(--color-text-muted);
    background: #f3f4f6;
    border-radius: 0.375rem;
    padding: 0.125rem 0;
    line-height: 1.5;
    transition: background 0.2s, color 0.2s;
}

.cms-article-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.cms-article-link:hover {
    color: var(--cms-accent);
    opacity: 0.85;
}

.cms-empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* Category article cards */
.article-card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .article-card-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .article-card-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

.article-card {
    background: var(--color-white);
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: rgba(37, 99, 235, 0.1);
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.article-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-card__media img {
    transform: scale(1.08);
}

.article-card__category-badge {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.article-card__body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.article-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-text);
    transition: color 0.25s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card:hover .article-card__title {
    color: var(--color-primary);
}

.article-card__summary {
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.article-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f3f4f6;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.article-card__meta-icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.article-card__stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.article-card__stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.article-card__stat-icon {
    width: 0.9375rem;
    height: 0.9375rem;
}



@media (max-width: 639px) {
    .article-card-list {
        gap: 1.5rem;
    }

    .article-card__body {
        padding: 1.25rem;
    }

    .article-card__title {
        font-size: 1rem;
    }
}

.cms-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
}

.cms-pagination__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    width: 100%;
}

.cms-pagination__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.cms-pagination__btn,
.cms-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    font-size: 0.875rem;
    line-height: 1;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: var(--color-text);
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.cms-pagination__btn {
    color: var(--color-primary);
    border-color: transparent;
    background: transparent;
}

.cms-pagination__btn:hover:not(.cms-pagination__btn--disabled) {
    color: var(--color-primary-dark);
    background: #f9fafb;
    border-color: #e5e7eb;
}

.cms-pagination__page:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.cms-pagination__page--active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: default;
}

.cms-pagination__btn--disabled {
    color: #d1d5db;
    cursor: not-allowed;
}

.cms-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 2.25rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    user-select: none;
}

.cms-pagination-info {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Article detail page */
.page-breadcrumb--article {
    position: relative;
    overflow: hidden;
    padding-bottom: 2.5rem;
}

.page-breadcrumb--article::before {
    content: "";
    position: absolute;
    top: -6rem;
    right: -4rem;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-breadcrumb--article::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(48rem, 90%);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.breadcrumb__item--truncate {
    max-width: min(20rem, 45vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.article-hero {
    position: relative;
    margin-top: 2rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.article-hero__title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 1.25rem 0 0;
    color: var(--color-text);
}

.article-hero__summary {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--color-text-muted);
    margin: 1.25rem auto 0;
}

.article-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.article-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.article-meta-chip__icon {
    width: 1.125rem;
    height: 1.125rem;
    flex-shrink: 0;
    color: var(--color-primary);
}

.section-article {
    padding-top: 0;
    padding-bottom: 4rem;
}

.article-sheet {
    margin-top: 1rem;
}


.article-content {
    max-width: none;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.85;
    color: #374151;
}

.article-content> :first-child {
    margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--color-text);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.article-content h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eff6ff;
}

.article-content h3 {
    font-size: 1.25rem;
}

.article-content p,
.article-content li {
    color: #4b5563;
}

.article-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--color-primary-dark);
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-primary);
    background: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    color: var(--color-text-muted);
    font-style: italic;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5em auto;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9375rem;
}

.article-content th,
.article-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-content th {
    background: #f9fafb;
    font-weight: 600;
    color: var(--color-text);
}

/* Article prev/next navigation */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.article-nav__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: var(--color-white);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.article-nav__item:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.article-nav__item--next {
    text-align: right;
}

.article-nav__item--empty {
    visibility: hidden;
    pointer-events: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

.article-nav__arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--color-primary);
    transition: background-color 0.2s, color 0.2s;
}

.article-nav__arrow svg {
    width: 1.25rem;
    height: 1.25rem;
}

.article-nav__item:hover .article-nav__arrow {
    background: var(--color-primary);
    color: var(--color-white);
}

.article-nav__text {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
}

.article-nav__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

.article-nav__title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed #e5e7eb;
}

.article-footer__back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .article-nav {
        grid-template-columns: 1fr;
    }

    .article-nav__item--next {
        flex-direction: row;
        text-align: left;
    }
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #9ca3af;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.875rem;
}

.site-footer a {
    color: #9ca3af;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--color-white);
}

.site-footer p {
    margin: 0.5rem 0;
}

.site-footer__friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.75rem;
}

.site-footer__friend-links-label {
    color: #d1d5db;
}

.site-footer__friend-links-nav {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.site-footer__friend-links-nav a:not(:last-child)::after {
    content: "|";
    margin-left: 0.5rem;
    color: #6b7280;
}

/* Sub pages */
.page-breadcrumb {
    background: linear-gradient(180deg, #eff6ff 0%, var(--color-white) 100%);
    padding: 1.5rem 0 0;
}

.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
    color: var(--color-text-muted);
}

.breadcrumb__item+.breadcrumb__item::before {
    content: "/";
    margin-right: 0.5rem;
    color: #d1d5db;
}

.breadcrumb__item a {
    color: var(--color-text-muted);
    transition: color 0.2s;
}

.breadcrumb__item a:hover {
    color: var(--color-text);
}

.breadcrumb__item--current {
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Category header */
.category-header {
    margin-top: 1.5rem;
    text-align: center;
}

.category-header__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}

.category-header__desc {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.category-header__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.category-header__stat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.category-header__stat svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

.page-hero {
    background: linear-gradient(180deg, #eff6ff 0%, var(--color-white) 100%);
    padding: 3rem 0 4rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.page-hero p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    max-width: 40rem;
    margin: 0 auto;
}

.category-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.category-stat {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.category-stat-value {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--color-primary);
}

.category-stat-label {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
}

.empty-state__icon {
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1.5rem;
    color: #cbd5e1;
}

.empty-state__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

.empty-state__description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0;
}

.content-card {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.content-card h2,
.content-card h3 {
    margin-top: 0;
}

.content-card h2 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
}

.content-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.content-card p,
.content-card li {
    color: var(--color-text-muted);
}

.content-card ul {
    padding-left: 1.25rem;
}

.content-card code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

pre {
    background: #1f2937;
    color: #e5e7eb;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.platform-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .platform-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.platform-card {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.platform-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.platform-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.platform-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
}

.platform-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.platform-grid--manual {
    grid-template-columns: 1fr;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .platform-grid--manual {
        grid-template-columns: repeat(3, 1fr);
    }
}

.platform-card--link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.platform-card--link:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.platform-card__icon {
    width: 5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.platform-card__icon img {
    width: 3.75rem;
    height: 3.75rem;
    object-fit: contain;
}

.platform-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-primary);
}

.manual-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: var(--color-white);
    padding: 4rem 0;
    text-align: center;
}

.manual-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin: 0 0 1rem;
}

.manual-hero p {
    margin: 0;
    font-size: clamp(1.0625rem, 2.5vw, 1.375rem);
    opacity: 0.92;
    max-width: 40rem;
    margin-inline: auto;
}

.manual-help {
    background: linear-gradient(180deg, #eff6ff 0%, var(--color-white) 100%);
}

.manual-help__inner {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
}

.manual-help__inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.manual-help__inner p {
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.7;
}

.page-breadcrumb--manual {
    padding-bottom: 2rem;
}

.manual-detail-hero {
    margin-top: 1.5rem;
    text-align: center;
}

.manual-detail-hero__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin: 0 0 0.75rem;
}

.manual-detail-hero__desc {
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
    font-size: 1.0625rem;
}

.manual-detail-hero__back {
    display: inline-flex;
}

.section-manual {
    padding-top: 0;
}

.manual-content {
    max-width: 72rem;
    margin: 0 auto;
}

.manual-doc__layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .manual-doc__layout {
        flex-direction: row;
        align-items: flex-start;
    }
}

.manual-doc__toc {
    display: none;
}

@media (min-width: 1024px) {
    .manual-doc__toc {
        display: block;
        width: 16rem;
        flex-shrink: 0;
    }
}

.manual-doc__toc-inner {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.manual-doc__toc-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.manual-doc__toc-nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    transition: color 0.2s, background 0.2s;
}

.manual-doc__toc-nav a:hover {
    color: var(--color-primary);
    background: #eff6ff;
}

.manual-doc__main {
    flex: 1;
    min-width: 0;
    padding-top: 0;
}

.manual-doc__body {
    background: var(--color-white);
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 1024px) {
    .manual-doc__body {
        padding: 3rem;
    }
}

.manual-content h2 {
    font-size: 1.625rem;
    font-weight: 800;
    margin: 0 0 1.25rem;
    color: var(--color-text);
}

.manual-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-text);
}

.manual-content p,
.manual-content li {
    color: var(--color-text-muted);
    line-height: 1.75;
}

.manual-content section {
    margin-bottom: 3rem;
}

.manual-content section section {
    margin-bottom: 2rem;
}

.manual-content ul,
.manual-content ol {
    padding-left: 1.5rem;
}

.manual-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 0.75rem 0;
}

.manual-content span[class*="bg-blue-50"],
.manual-content .manual-tag {
    display: inline-block;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 0.125rem 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid #bfdbfe;
    font-size: 0.9375rem;
}

.manual-content .bg-blue-50 {
    background: #eff6ff;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-primary);
    margin: 1rem 0;
}

.manual-content .bg-blue-50 p.font-medium {
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.manual-content .pl-4.border-l-2 {
    padding-left: 1rem;
    border-left: 2px solid #bbf7d0;
}

.manual-content .flex.justify-center {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.manual-content .flex.justify-center a button,
.manual-content .flex.justify-center button {
    padding: 0.875rem 2rem;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: background 0.2s, transform 0.2s;
}

.manual-content .flex.justify-center a:hover button {
    background: var(--color-primary-dark);
    transform: scale(1.02);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 24rem;
    width: 100%;
    text-align: center;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-overlay.is-open .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 0.25rem;
}

.modal h3 {
    margin: 0 0 0.5rem;
}

.modal p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    margin: 0 0 1rem;
}

.modal-qr {
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #f9fafb;
}

.modal-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}