/* 电脑培训网 (www.rgxh.com.cn) - Modern Skills Academy Stylesheet
 * Palette derived from preserved logo.png: Cobalt Blue (#1261A0) + Brand Orange (#E8700A)
 * Zero external CDN dependencies, strict 375px mobile safety
 */
:root {
    --brand-blue: #1261A0;
    --brand-blue-dark: #0D4B7D;
    --brand-sky: #2896D3;
    --brand-orange: #E8700A;
    --brand-orange-hover: #CF6004;
    --bg: #F6F8FB;
    --surface: #FFFFFF;
    --surface-soft: #F0F5FA;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    --text: #1E293B;
    --text-muted: #475569;
    --text-light: #64748B;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 8px 24px rgba(18, 97, 160, 0.08);
    --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Cascadia Code", "JetBrains Mono", Consolas, Monaco, monospace;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

a:hover {
    color: var(--brand-orange);
}

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

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

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

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

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

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}

.nav-link {
    padding: 7px 11px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: 8px;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--brand-blue);
    background: var(--surface-soft);
}

.nav-link.active {
    color: var(--brand-blue);
    background: #E8F2FC;
    font-weight: 600;
}

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

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 4px 3px 12px;
    width: 185px;
    transition: border-color 0.2s, width 0.2s;
}

.header-search:focus-within {
    border-color: var(--brand-blue);
    background: #fff;
}

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

.header-search button {
    border: none;
    background: var(--brand-blue);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.header-search button:hover {
    background: var(--brand-orange);
}

.mobile-menu-btn {
    display: none;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-drawer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 14px 0 18px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mobile-drawer[hidden] {
    display: none;
}

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

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 14px;
}

.mobile-search button {
    padding: 9px 16px;
    background: var(--brand-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

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

.mobile-nav-link {
    text-align: center;
    padding: 9px 6px;
    background: var(--bg);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.mobile-nav-link.active {
    background: #E8F2FC;
    color: var(--brand-blue);
    font-weight: 600;
}

/* Announcement Bar (Required directly below header nav on homepage) */
.announce-bar {
    background: linear-gradient(90deg, #EAF4FC 0%, #FFF5EC 100%);
    border-bottom: 1px solid #DCE8F4;
}

.announce-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    font-size: 13.5px;
    flex-wrap: wrap;
}

.announce-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 999px;
    flex-shrink: 0;
}

.announce-text {
    margin: 0;
    color: var(--text);
    font-weight: 600;
    flex: 1;
    min-width: 180px;
}

.announce-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-blue);
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--brand-blue);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--brand-blue);
    border-color: #BCD5EC;
}

.btn-outline:hover {
    background: var(--surface-soft);
    border-color: var(--brand-blue);
    color: var(--brand-blue-dark);
}

/* Hero Section */
.hero-section {
    background: radial-gradient(circle at 12% 20%, #E7F3FC 0%, transparent 45%),
                radial-gradient(circle at 88% 15%, #FFF2E5 0%, transparent 40%),
                #FFFFFF;
    border-bottom: 1px solid var(--border);
    padding: 40px 0 44px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 32px;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    padding: 4px 12px;
    background: #EBF4FD;
    color: var(--brand-blue);
    border: 1px solid #C8E1F7;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 14px;
}

.hero-title {
    margin: 0 0 14px;
    font-size: 36px;
    line-height: 1.26;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--brand-blue);
}

.hero-desc {
    margin: 0 0 22px;
    font-size: 15.5px;
    color: var(--text-muted);
    max-width: 580px;
}

.hero-search {
    display: flex;
    gap: 8px;
    background: #fff;
    padding: 6px;
    border: 1.5px solid #CBD5E1;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    max-width: 560px;
}

.hero-search:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(18, 97, 160, 0.12);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-size: 14.5px;
    padding: 8px 10px;
    color: var(--text);
}

.hero-search button {
    border: none;
    background: var(--brand-orange);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.hero-search button:hover {
    background: var(--brand-orange-hover);
}

.hero-hot-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-light);
}

.hero-hot-tags a {
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 12.5px;
}

.hero-hot-tags a:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    background: #fff;
}

/* Hero Matrix Card */
.hero-matrix {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.matrix-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.matrix-header strong {
    font-size: 15.5px;
    color: #0F172A;
}

.matrix-header span {
    font-size: 12px;
    color: var(--brand-orange);
    font-weight: 600;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.matrix-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
}

.matrix-item:hover {
    background: #fff;
    border-color: var(--brand-blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.matrix-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.matrix-info {
    min-width: 0;
    flex: 1;
}

.matrix-info strong {
    display: block;
    font-size: 13.5px;
    line-height: 1.3;
    color: #0F172A;
}

.matrix-info small {
    display: block;
    font-size: 11.5px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.matrix-count {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--brand-blue);
    background: #E8F2FC;
    padding: 2px 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.matrix-footer {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.matrix-footer .btn {
    flex: 1;
}

/* Quick Tools Strip */
.tools-strip {
    padding: 18px 0;
    background: #F0F5FA;
    border-bottom: 1px solid var(--border);
}

.strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.tool-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.tool-pill:hover {
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tool-pill strong {
    display: block;
    font-size: 14px;
    color: #0F172A;
    line-height: 1.3;
}

.tool-pill small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.tool-icon-blue { background: #E6F2FC; color: #1261A0; }
.tool-icon-orange { background: #FFF0E3; color: #D95F02; }
.tool-icon-teal { background: #E6F8F5; color: #0F766E; }
.tool-icon-purple { background: #EEF2FF; color: #4338CA; }

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

.section-alt {
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.3;
}

.section-sub {
    margin: 5px 0 0;
    font-size: 14px;
    color: var(--text-light);
}

.section-more {
    font-size: 14px;
    font-weight: 600;
    color: var(--brand-blue);
    white-space: nowrap;
}

/* Featured Layout */
.featured-layout {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 22px;
}

.lead-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.lead-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #E8F0F8;
}

.lead-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lead-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.lead-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.pill-level {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    background: #FFF3E6;
    color: #C25902;
    font-weight: 600;
    font-size: 12px;
}

.lead-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.38;
}

.lead-body h3 a {
    color: #0F172A;
}

.lead-body h3 a:hover {
    color: var(--brand-blue);
}

.lead-body p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 14.5px;
    flex: 1;
}

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.side-feature-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    align-items: center;
}

.side-feature-card:hover {
    border-color: var(--brand-blue);
}

.side-feature-thumb {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #E8F0F8;
}

.side-feature-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-feature-meta {
    display: flex;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 4px;
}

.side-feature-body h3 {
    margin: 0 0 5px;
    font-size: 15.5px;
    line-height: 1.4;
}

.side-feature-body h3 a {
    color: #0F172A;
}

.side-feature-body p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Category Quick Jump & Tracks */
.cat-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jump-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.jump-pill:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.track-block {
    margin-top: 34px;
}

.track-block:first-of-type {
    margin-top: 8px;
}

.track-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.track-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.track-accent {
    width: 5px;
    height: 22px;
    border-radius: 4px;
}

.track-title-wrap h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    color: #0F172A;
}

.track-desc {
    font-size: 13.5px;
    color: var(--text-light);
}

.track-more {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
}

/* Article Cards */
.cards-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cards-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.post-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: #B4D2EC;
    box-shadow: var(--shadow-md);
}

.post-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EAF2FA;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 6px;
}

.post-level {
    position: absolute;
    right: 12px;
    top: 12px;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
}

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

.post-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.42;
    font-weight: 700;
}

.post-title a {
    color: #0F172A;
}

.post-title a:hover {
    color: var(--brand-blue);
}

.post-summary {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
}

.post-meta a {
    color: var(--brand-blue);
    font-weight: 500;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
}

.tag-chip {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg);
    color: var(--text-muted);
}

.tag-chip:hover {
    background: #E8F2FC;
    color: var(--brand-blue);
}

/* Learning Paths Preview */
.paths-preview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.path-mini {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.path-mini:hover {
    border-color: var(--brand-blue);
}

.path-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-orange);
    margin-bottom: 8px;
}

.path-mini h3 {
    margin: 0 0 8px;
    font-size: 16.5px;
    color: #0F172A;
}

.path-mini p {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-muted);
    flex: 1;
}

.path-mini a {
    font-size: 13.5px;
    font-weight: 600;
}

/* FAQ & Popular Ranking */
.faq-pop-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
}

.faq-item[open] {
    background: #fff;
    border-color: #B4D2EC;
}

.faq-item summary {
    font-weight: 700;
    font-size: 15px;
    color: #0F172A;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.faq-item summary::after {
    content: "+";
    font-size: 18px;
    color: var(--brand-blue);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: "−";
}

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

/* Sidebar & Ranking */
.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.sidebar-muted {
    margin: 0 0 14px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rank-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rank-num {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #E2E8F0;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.rank-num.top {
    background: var(--brand-orange);
    color: #fff;
}

.rank-body a {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

.rank-body a:hover {
    color: var(--brand-blue);
}

.rank-body small {
    font-size: 12px;
    color: var(--text-light);
}

/* Page Banner & Breadcrumb */
.page-banner {
    background: linear-gradient(135deg, #F0F7FD 0%, #FFFFFF 60%, #FFF7EF 100%);
    border-bottom: 1px solid var(--border);
    padding: 28px 0 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

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

.banner-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.page-banner h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: #0F172A;
}

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

.banner-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent, var(--brand-blue));
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
}

.banner-stat strong {
    display: block;
    font-size: 26px;
    line-height: 1.1;
    color: #0F172A;
}

.banner-stat span {
    font-size: 12px;
    color: var(--text-light);
}

/* Category & Sidebar Layout */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

.cat-list, .tool-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
}

.cat-list li a:hover, .cat-list li a.active {
    background: var(--surface-soft);
    color: var(--brand-blue);
    font-weight: 600;
}

.cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cat-list li a small {
    margin-left: auto;
    color: var(--text-light);
    font-size: 12px;
}

.tool-side-list li a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13.5px;
    color: var(--text);
}

.tool-side-list li a:hover {
    background: var(--surface-soft);
    color: var(--brand-blue);
}

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

.pagination a {
    padding: 7px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 13.5px;
}

.pagination a.active, .pagination a:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

/* Article Detail */
.article-hero {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 26px 0 30px;
}

.article-head-box {
    max-width: 860px;
}

.article-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.post-badge-inline {
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
}

.article-title {
    margin: 0 0 12px;
    font-size: 30px;
    line-height: 1.32;
    font-weight: 800;
    color: #0F172A;
}

.article-lead {
    margin: 0 0 16px;
    font-size: 15.5px;
    color: var(--text-muted);
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 30px;
    align-items: start;
}

.article-main {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
}

.article-cover {
    margin: 0 0 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

/* Prose typography */
.prose {
    font-size: 15.5px;
    line-height: 1.85;
    color: #243041;
}

.prose h2 {
    margin: 28px 0 12px;
    font-size: 21px;
    font-weight: 800;
    color: #0F172A;
    padding-bottom: 8px;
    border-bottom: 2px solid #EAF2FA;
    scroll-margin-top: 86px;
}

.prose h3 {
    margin: 20px 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--brand-blue-dark);
}

.prose p {
    margin: 0 0 14px;
}

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

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

.prose blockquote, .prose .tip-box {
    margin: 18px 0;
    padding: 14px 18px;
    background: #F1F7FD;
    border-left: 4px solid var(--brand-blue);
    border-radius: 0 10px 10px 0;
    color: #1E3A5F;
    font-size: 14.5px;
}

.prose .warn-box {
    margin: 18px 0;
    padding: 14px 18px;
    background: #FFF7ED;
    border-left: 4px solid var(--brand-orange);
    border-radius: 0 10px 10px 0;
    color: #7C2D12;
    font-size: 14.5px;
}

.prose code, kbd {
    font-family: var(--font-mono);
    font-size: 0.88em;
    background: #F1F5F9;
    border: 1px solid #CBD5E1;
    border-radius: 5px;
    padding: 1px 6px;
    color: #0F172A;
}

.prose pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.6;
}

.prose pre code {
    background: none;
    border: none;
    color: inherit;
    padding: 0;
}

.prose table, .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0;
}

.prose th, .prose td, .data-table th, .data-table td {
    border: 1px solid var(--border);
    padding: 10px 12px;
    text-align: left;
}

.prose th, .data-table th {
    background: #F1F5F9;
    font-weight: 700;
    color: #0F172A;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sticky-toc {
    position: sticky;
    top: 84px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-list a {
    display: block;
    font-size: 13.5px;
    color: var(--text-muted);
    padding: 5px 8px;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
}

.toc-list a:hover {
    color: var(--brand-blue);
    background: var(--surface-soft);
    border-left-color: var(--brand-blue);
}

.article-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-light);
}

.article-notice {
    margin-top: 20px;
    padding: 14px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.adjacent-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.adj-item span {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.adj-item a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.adj-item a:hover {
    color: var(--brand-blue);
}

.adj-item em {
    font-size: 13px;
    color: var(--text-light);
    font-style: normal;
}

.adj-next {
    text-align: right;
}

.related-wrap {
    margin-top: 40px;
}

/* Roadmaps Page */
.paths-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.roadmap-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.roadmap-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.roadmap-badge {
    display: inline-block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}

.roadmap-head h2 {
    margin: 0 0 6px;
    font-size: 21px;
    color: #0F172A;
}

.roadmap-head p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
}

.roadmap-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.r-step {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.r-num {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--brand-blue);
    margin-bottom: 6px;
}

.r-step h3 {
    margin: 0 0 6px;
    font-size: 15.5px;
    color: #0F172A;
}

.r-step p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted);
    flex: 1;
}

.r-step a {
    font-size: 13px;
    font-weight: 600;
}

/* Tools Pages */
.tool-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tool-subnav a {
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
}

.tool-subnav a.active, .tool-subnav a:hover {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.hub-tool-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.hub-tool-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.hub-badge {
    font-size: 12px;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 999px;
}

.hub-tool-card h2 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #0F172A;
}

.hub-tool-card p {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--text-muted);
    flex: 1;
}

.tool-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.tool-guide {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
}

.tool-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
}

.tool-input:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(18, 97, 160, 0.12);
}

.shortcut-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
}

.filter-btn.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #fff;
}

.app-pill {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.app-ps { background: #1261A0; }
.app-cad { background: #0F766E; }
.app-blender { background: #D97706; }
.app-windows { background: #4F46E5; }

.dpi-grid, .prompt-grid, .spec-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: start;
}

.preset-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    border: 1px solid #C8DDF0;
    background: #F4F9FE;
    color: var(--brand-blue-dark);
    padding: 6px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    cursor: pointer;
}

.preset-btn:hover {
    background: var(--brand-blue);
    color: #fff;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 14px;
}

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

.form-row-3 label span, .form-row-2 label span, .field-stack span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.field-stack {
    display: block;
    margin-bottom: 14px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: var(--text-muted);
    cursor: pointer;
}

.dpi-result, .spec-result {
    background: #F4F9FE;
    border: 1px solid #C9E1F6;
    border-radius: 12px;
    padding: 20px;
}

.dpi-result h3, .spec-result h3 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #0F172A;
}

.result-big {
    background: #fff;
    border: 1px solid #D5E6F6;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    margin-bottom: 14px;
}

.result-big strong {
    display: block;
    font-size: 26px;
    color: var(--brand-blue);
    font-family: var(--font-mono);
}

.result-big span {
    font-size: 12.5px;
    color: var(--text-light);
}

.result-metrics, .spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
}

.result-metrics li, .spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 7px;
    border-bottom: 1px dashed #D3E3F3;
}

.spec-list li {
    flex-direction: column;
    gap: 2px;
}

.spec-list li span {
    font-size: 12px;
    color: var(--text-light);
}

.spec-tip {
    margin: 14px 0 0;
    padding: 10px 12px;
    background: #FFF7ED;
    border-radius: 8px;
    font-size: 13px;
    color: #9A3412;
}

.output-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prompt-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.65;
    background: #F8FAFC;
    color: #0F172A;
    resize: vertical;
}

.copy-hint {
    margin: 8px 0 0;
    font-size: 12.5px;
    color: var(--text-light);
}

/* Search, Static & 404 */
.search-page-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin-top: 14px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font-size: 15px;
}

.search-count {
    margin: 0 0 18px;
    font-size: 14.5px;
    color: var(--text-muted);
}

.empty-box, .static-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
}

.notfound-box {
    max-width: 600px;
    margin: 24px auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px 28px;
}

.notfound-code {
    font-size: 64px;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 10px;
}

.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

/* Footer */
.site-footer {
    background: #0F1D2D;
    color: #CBD5E1;
    padding-top: 44px;
    margin-top: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 0.9fr;
    gap: 28px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo-link {
    display: inline-block;
    background: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 14px;
}

.footer-desc {
    margin: 0 0 10px;
    font-size: 13.5px;
    color: #94A3B8;
    line-height: 1.7;
}

.footer-slogan {
    margin: 0;
    font-size: 13px;
    color: #FDBA74;
    font-weight: 600;
}

.footer-col h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #FFFFFF;
}

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

.footer-col a {
    font-size: 13.5px;
    color: #94A3B8;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    padding: 16px 0;
    font-size: 13px;
    color: #94A3B8;
}

.footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.footer-bottom a {
    color: #CBD5E1;
}

.footer-bottom a:hover {
    color: #FFFFFF;
}

/* Responsive Breakpoints (Guaranteed clean at 375px) */
@media (max-width: 1080px) {
    .main-nav, .header-search {
        display: none;
    }
    .mobile-menu-btn {
        display: inline-flex;
    }
    .hero-grid, .featured-layout, .faq-pop-grid, .content-with-sidebar, .article-layout, .dpi-grid, .prompt-grid, .spec-grid {
        grid-template-columns: 1fr;
    }
    .strip-grid, .paths-preview-grid, .roadmap-steps, .cards-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .sticky-toc {
        position: static;
    }
}

@media (max-width: 680px) {
    .container {
        padding: 0 15px;
    }
    .hero-section {
        padding: 26px 0 30px;
    }
    .hero-title {
        font-size: 25px;
    }
    .matrix-grid, .strip-grid, .cards-grid-3, .cards-grid-2, .cards-grid-4, .paths-preview-grid, .roadmap-steps, .tools-hub-grid, .footer-grid, .form-row-3, .form-row-2, .adjacent-nav {
        grid-template-columns: 1fr;
    }
    .side-feature-card {
        grid-template-columns: 112px 1fr;
        gap: 10px;
    }
    .article-main {
        padding: 18px 16px;
    }
    .article-title {
        font-size: 22px;
    }
    .page-banner h1 {
        font-size: 22px;
    }
    .section {
        padding: 32px 0;
    }
    .adj-next {
        text-align: left;
    }
    .matrix-footer {
        flex-direction: column;
    }
    .hero-search {
        flex-direction: column;
    }
    .hero-search button {
        width: 100%;
    }
    .tool-panel, .tool-guide, .static-card {
        padding: 18px 16px;
    }
}
