/* VR资源云 · Spatial Obsidian Cinema Design System */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --bg: #060913;
    --bg-alt: #0a1020;
    --surface: #0f172a;
    --surface-2: #152038;
    --border: rgba(148, 163, 184, 0.16);
    --border-bright: rgba(56, 189, 248, 0.35);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #38bdf8;
    --accent-2: #818cf8;
    --ok: #34d399;
    --warn: #fbbf24;
    --danger: #f87171;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 12px 32px rgba(2, 6, 23, 0.55);
    --container: 1200px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 75% 45% at 50% -10%, rgba(56, 189, 248, 0.14), transparent 65%),
        radial-gradient(ellipse 50% 35% at 90% 15%, rgba(129, 140, 248, 0.10), transparent 60%);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

a:hover {
    color: #7dd3fc;
}

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: rgba(56, 189, 248, 0.12);
    color: #7dd3fc;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.9em;
    word-break: break-word;
}

pre {
    margin: 0;
    padding: 14px 16px;
    background: #050811;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 0.88rem;
    line-height: 1.6;
}

pre code {
    background: transparent;
    padding: 0;
    color: #e2e8f0;
    word-break: normal;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.narrow-container {
    max-width: 860px;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 9, 19, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.brand-logo img {
    height: 36px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.14);
}

.nav-link-accent {
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
    margin-left: 4px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 6px 3px 13px;
    width: 215px;
    transition: border-color 0.2s ease, width 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--accent);
}

.header-search input {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 0.85rem;
    width: 100%;
    min-width: 0;
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-dim);
}

.header-search button {
    background: transparent;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    padding: 5px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 9px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-drawer {
    background: #0a1020;
    border-bottom: 1px solid var(--border);
    padding: 14px 0 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 0.92rem;
}

.mobile-search button {
    background: var(--accent);
    color: #04101d;
    border: 0;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-nav-links a {
    display: block;
    padding: 10px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.mobile-nav-links a.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Announcement Banner (Exact SEO Asset Below Navbar) */
.announce-bar {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.14) 0%, rgba(129, 140, 248, 0.14) 100%);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
}

.announce-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    flex-wrap: wrap;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #030712;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    flex: 1;
    min-width: 140px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #e0f2fe;
}

.announce-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

/* Hero Section */
.hero-section {
    padding: 46px 0 36px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 36px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.26);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 10px var(--ok);
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(1.75rem, 3.1vw, 2.55rem);
    line-height: 1.24;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(95deg, #38bdf8 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    margin: 0 0 24px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: #e2e8f0;
    border-color: var(--border-bright);
}

.btn-secondary:hover {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.14);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.metric-item strong {
    display: block;
    font-size: 1.15rem;
    color: #ffffff;
}

.metric-item span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-card-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: 0 22px 54px rgba(2, 6, 23, 0.75);
    background: var(--surface);
}

.hero-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-overlay-pill {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(6, 9, 19, 0.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 11px;
    font-size: 0.84rem;
}

.hero-overlay-pill span {
    color: var(--accent);
    font-weight: 600;
}

.hero-overlay-pill strong {
    color: #f8fafc;
    font-weight: 600;
}

/* Sections & Heads */
.section {
    padding: 46px 0;
}

.section-compact {
    padding: 12px 0 22px;
}

.section-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-eyebrow {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 6px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.2vw, 1.7rem);
    color: #ffffff;
    line-height: 1.3;
}

.section-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

/* Topic Chips */
.topic-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.topic-label {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin-right: 4px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    font-size: 0.83rem;
    color: #cbd5e1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
}

.topic-chip:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.14);
}

/* Tool Preview Cards */
.tool-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: linear-gradient(180deg, rgba(21, 32, 56, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.tool-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.tool-card h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    color: #ffffff;
}

.tool-card p {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
}

.card-cta {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--accent);
}

/* Resource Cards */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.resource-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.resource-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.resource-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: #050811;
}

.resource-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.format-badge, .spec-badge, .cat-tag {
    position: absolute;
    top: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.format-badge {
    left: 10px;
    background: rgba(14, 165, 233, 0.88);
    color: #030712;
}

.spec-badge {
    right: 10px;
    background: rgba(6, 9, 19, 0.82);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cat-tag {
    left: 10px;
    background: rgba(6, 9, 19, 0.84);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.resource-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.resource-body h3 {
    margin: 0 0 8px;
    font-size: 1.04rem;
    line-height: 1.4;
}

.resource-body h3 a {
    color: #ffffff;
}

.resource-body h3 a:hover {
    color: var(--accent);
}

.resource-summary {
    margin: 0 0 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
}

.resource-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    color: #cbd5e1;
    padding: 8px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    flex-wrap: wrap;
}

.resource-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.device-tag {
    font-size: 0.76rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-link {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Category Hub */
.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.category-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
}

.category-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
}

.cat-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.category-card h3 {
    margin: 0 0 8px;
    font-size: 1.02rem;
    color: #ffffff;
}

.category-card p {
    margin: 0 0 14px;
    font-size: 0.84rem;
    color: var(--text-muted);
    flex: 1;
}

/* Article Grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-card:hover {
    border-color: var(--border-bright);
}

.article-cover {
    position: relative;
    display: block;
}

.article-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.meta-cat {
    color: var(--accent);
    font-weight: 600;
}

.article-body h3 {
    margin: 0 0 8px;
    font-size: 1.03rem;
    line-height: 1.42;
}

.article-body h3 a {
    color: #ffffff;
}

.article-body h3 a:hover {
    color: var(--accent);
}

.article-body p {
    margin: 0;
    font-size: 0.87rem;
    color: var(--text-muted);
}

/* Tables */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    font-size: 0.9rem;
}

.spec-table th, .spec-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.spec-table thead th {
    background: rgba(56, 189, 248, 0.08);
    color: #e0f2fe;
    font-weight: 600;
    white-space: nowrap;
}

.spec-table tbody th {
    width: 170px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.6);
    white-space: nowrap;
}

.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td {
    border-bottom: 0;
}

.tag-ok {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(52, 211, 153, 0.16);
    color: #6ee7b7;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #ffffff;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 12px 0 0;
    font-size: 0.93rem;
    color: var(--text-muted);
}

/* Page Banner & Breadcrumb */
.page-banner {
    padding: 32px 0 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(6, 9, 19, 0.2) 100%);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.83rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.breadcrumb a {
    color: var(--text-muted);
}

.page-banner h1 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    color: #ffffff;
    line-height: 1.3;
}

.page-banner > .container > p {
    margin: 0 0 16px;
    color: var(--text-muted);
    max-width: 820px;
}

/* Filter Panel */
.filter-panel {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.84rem;
    color: var(--text-muted);
    font-weight: 600;
}

.filter-pill {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.83rem;
    color: #cbd5e1;
    background: var(--surface-2);
    border: 1px solid transparent;
}

.filter-pill.active, .filter-pill:hover {
    color: #04101d;
    background: var(--accent);
    font-weight: 600;
}

/* Content + Sidebar Layout */
.content-sidebar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.main-col, .side-col {
    min-width: 0;
}

.side-col {
    display: grid;
    gap: 18px;
}

.side-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
}

.side-widget h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #ffffff;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.side-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.side-links a {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.45;
}

.side-links a strong {
    display: block;
    color: #f1f5f9;
    font-weight: 600;
}

.side-links a span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 2px;
}

.side-links a:hover, .side-links a.active-link {
    color: var(--accent);
}

/* Article Row List */
.article-list {
    display: grid;
    gap: 16px;
}

.article-row {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    padding: 14px;
    align-items: center;
}

.article-row-thumb {
    border-radius: 10px;
    overflow: hidden;
}

.article-row-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.article-row-body h2, .article-row-body h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.4;
}

.article-row-body h2 a, .article-row-body h3 a {
    color: #ffffff;
}

.article-row-body h2 a:hover, .article-row-body h3 a:hover {
    color: var(--accent);
}

.article-row-body p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Resource Detail Hero */
.detail-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 28px;
    align-items: center;
}

.detail-hero-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-bright);
}

.detail-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.detail-lead {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.spec-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.spec-chip {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
}

.spec-chip span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-dim);
}

.spec-chip strong {
    font-size: 0.93rem;
    color: #ffffff;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Panel & Prose */
.panel-box, .article-main-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
}

.article-header-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-summary-lead {
    font-size: 1rem;
    color: #cbd5e1;
    margin: 0;
}

.article-hero-img {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
}

.article-hero-img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.toc-box {
    background: rgba(6, 9, 19, 0.55);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.toc-title {
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.toc-box ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.toc-l3 {
    margin-left: 14px;
}

.toc-box a {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.prose h2 {
    margin: 26px 0 12px;
    font-size: 1.3rem;
    color: #ffffff;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: 20px 0 8px;
    font-size: 1.08rem;
    color: #e0f2fe;
}

.prose p {
    margin: 0 0 14px;
    color: #cbd5e1;
    line-height: 1.8;
}

.prose ul, .prose ol {
    margin: 0 0 16px;
    padding-left: 22px;
    color: #cbd5e1;
}

.prose li {
    margin-bottom: 7px;
}

.prose blockquote {
    margin: 16px 0;
    padding: 14px 18px;
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: #e0f2fe;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.88rem;
    color: var(--text-muted);
}

.article-cta-banner {
    margin-top: 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(99, 102, 241, 0.14));
    border: 1px solid var(--border-bright);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.article-cta-banner strong {
    display: block;
    color: #ffffff;
    margin-bottom: 4px;
}

.article-cta-banner p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Interactive Tools Page */
.tools-stack {
    display: grid;
    gap: 28px;
}

.tool-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
}

.tool-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tool-num {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #030712;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-panel-head h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #ffffff;
}

.tool-panel-head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tool-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
    align-items: start;
}

.tool-form {
    display: grid;
    gap: 14px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: #070c1a;
    color: #f8fafc;
    font-size: 0.92rem;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.output-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.kpi-card {
    background: #080d1d;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}

.kpi-card span {
    display: block;
    font-size: 0.76rem;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.kpi-card strong {
    font-size: 1.08rem;
    color: var(--accent);
}

.verdict-box {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid transparent;
}

.verdict-ok {
    background: rgba(52, 211, 153, 0.1);
    border-color: rgba(52, 211, 153, 0.35);
}

.verdict-warn {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.38);
}

.verdict-box strong {
    display: block;
    color: #ffffff;
    margin-bottom: 6px;
}

.verdict-box p {
    margin: 0;
    font-size: 0.88rem;
    color: #cbd5e1;
}

.code-result-block {
    margin-bottom: 14px;
}

.code-result-block:last-child {
    margin-bottom: 0;
}

.code-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.copy-btn {
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 0.78rem;
    cursor: pointer;
}

.copy-btn:hover {
    background: var(--accent);
    color: #04101d;
}

.tool-hint {
    margin: 12px 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Search Page */
.search-page-form {
    display: flex;
    gap: 10px;
    max-width: 680px;
    margin-bottom: 16px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-bright);
    background: var(--surface);
    color: #ffffff;
    font-size: 0.96rem;
}

.search-block {
    margin-bottom: 36px;
}

.search-block h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    color: #ffffff;
}

/* Pagination & Empty State */
.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.page-btn {
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 0.88rem;
}

.page-btn.active, .page-btn:hover {
    background: var(--accent);
    color: #030712;
    border-color: var(--accent);
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 46px 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-state h3, .empty-state h1 {
    margin: 0 0 10px;
    color: #ffffff;
}

.empty-state p {
    margin: 0 0 18px;
    color: var(--text-muted);
}

.not-found-code {
    display: inline-block;
    font-size: 3.4rem;
    font-weight: 800;
    background: linear-gradient(95deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 12px;
}

/* Footer */
.site-footer {
    background: #040710;
    border-top: 1px solid var(--border);
    padding: 44px 0 26px;
    margin-top: 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.footer-logo img {
    height: 30px;
    width: auto;
    margin-bottom: 12px;
}

.footer-desc {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 0.94rem;
    color: #ffffff;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.86rem;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-bottom p {
    margin: 0;
}

.footer-beian a {
    color: var(--text-muted);
}

.footer-beian a:hover {
    color: var(--accent);
}

/* Responsive Breakpoints (Tested down to 375px with zero horizontal scroll) */
@media (max-width: 1080px) {
    .main-nav {
        display: none;
    }
    .header-search {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .content-sidebar-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .detail-hero-grid,
    .tool-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
    .tool-preview-grid,
    .resource-grid,
    .article-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 14px;
    }
    .hero-section {
        padding: 28px 0 22px;
    }
    .section {
        padding: 32px 0;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tool-preview-grid,
    .resource-grid,
    .article-grid,
    .category-grid,
    .footer-grid,
    .form-row-2,
    .output-kpi-grid,
    .spec-chips {
        grid-template-columns: minmax(0, 1fr);
    }
    .article-row {
        grid-template-columns: minmax(0, 1fr);
    }
    .search-page-form {
        flex-direction: column;
    }
    .panel-box, .article-main-box, .tool-panel {
        padding: 16px;
    }
    .hero-overlay-pill {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .announce-action {
        display: none;
    }
}
