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

:root {
    --navy-950: #071120;
    --navy-900: #0b192c;
    --navy-800: #132946;
    --navy-700: #1e3a5f;
    --blue-600: #0066cc;
    --blue-500: #0077e6;
    --cyan-400: #38bdf8;
    --teal-600: #0d9488;
    --teal-50: #f0fdfa;
    --indigo-600: #4f46e5;
    --indigo-50: #eef2ff;
    --blue-50: #eff6ff;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --surface: #f7f9fc;
    --white: #ffffff;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 14px 36px rgba(11, 25, 44, 0.14);
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    color: var(--slate-800);
    background-color: var(--surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg {
    max-width: 100%;
    height: auto;
}

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

a:hover {
    color: var(--navy-800);
}

.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(--slate-200);
}

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

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

.brand-logo {
    display: block;
    height: 46px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    color: var(--slate-700);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 13px;
    border-radius: 8px;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--blue-600);
    background: var(--blue-50);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    padding: 3px 6px 3px 14px;
    max-width: 220px;
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.86rem;
    color: var(--slate-800);
    width: 145px;
    min-width: 0;
}

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

.header-search button:hover {
    background: var(--navy-800);
}

.nav-toggle {
    display: none;
    background: var(--slate-100);
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: var(--slate-800);
}

/* Announcement Banner (Directly under nav on Homepage) */
.announce-bar {
    background: linear-gradient(90deg, #0b192c 0%, #12345e 55%, #0d4a7a 100%);
    color: #e2f1ff;
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    font-size: 0.9rem;
}

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

.announce-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.announce-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #7dd3fc;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.announce-text {
    font-weight: 500;
    color: #f0f9ff;
    word-break: break-word;
}

.announce-meta {
    font-size: 0.82rem;
    color: #93c5fd;
    white-space: nowrap;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at 80% 20%, rgba(0, 119, 230, 0.28), transparent 48%),
                radial-gradient(circle at 15% 85%, rgba(13, 148, 136, 0.18), transparent 42%),
                linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
    color: #fff;
    padding: 64px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 44px;
    align-items: center;
}

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

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(1.85rem, 3.6vw, 2.75rem);
    line-height: 1.24;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero h1 span {
    color: var(--cyan-400);
}

.hero-desc {
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: 1.03rem;
    line-height: 1.75;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

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

.btn-primary {
    background: var(--blue-500);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 119, 230, 0.32);
}

.btn-primary:hover {
    background: #0062bf;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.btn-outline-dark {
    background: #fff;
    border-color: var(--slate-300);
    color: var(--slate-800);
}

.btn-outline-dark:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
    background: var(--blue-50);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item strong {
    display: block;
    font-size: 1.38rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.metric-item span {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Hero Architecture Panel */
.hero-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-lg);
}

.hero-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #94a3b8;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.hero-panel-dots {
    display: flex;
    gap: 6px;
}

.hero-panel-dots i {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
}

.hero-panel-dots i:first-child { background: #38bdf8; }
.hero-panel-dots i:nth-child(2) { background: #2dd4bf; }

.arch-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arch-layer {
    background: rgba(30, 58, 95, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
}

.arch-layer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    gap: 8px;
}

.arch-layer-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #e0f2fe;
}

.arch-layer-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: #5eead4;
    background: rgba(13, 148, 136, 0.22);
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.arch-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.arch-chips span {
    font-size: 0.74rem;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.2);
    padding: 2px 8px;
    border-radius: 5px;
}

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

.section-alt {
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

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

.section-head h2 {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    color: var(--slate-900);
    font-weight: 800;
    letter-spacing: -0.015em;
}

.section-head p {
    margin: 0;
    color: var(--slate-600);
    font-size: 0.96rem;
}

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

/* Track Grid */
.track-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.track-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    color: var(--slate-800);
}

.track-card:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.track-icon {
    width: 46px;
    height: 46px;
    border-radius: 11px;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.track-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    line-height: 1.35;
}

.track-card p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--slate-600);
    line-height: 1.55;
    flex: 1;
}

.track-card-foot {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--blue-600);
}

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

.course-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.course-banner {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: #fff;
    padding: 20px 22px 18px;
    position: relative;
}

.course-banner-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.78rem;
}

.course-cat-label {
    color: #7dd3fc;
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-teal { background: #ccfbf1; color: #0f766e; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-indigo { background: #e0e7ff; color: #4338ca; }

.course-banner h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.4;
    font-weight: 700;
}

.course-banner h3 a {
    color: #fff;
}

.course-banner h3 a:hover {
    color: var(--cyan-400);
}

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

.course-summary {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: var(--slate-600);
    line-height: 1.6;
    flex: 1;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.tag-chip {
    display: inline-block;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.76rem;
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 500;
}

.course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
    font-size: 0.84rem;
    color: var(--slate-500);
}

.course-foot a {
    font-weight: 700;
    color: var(--blue-600);
}

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

.article-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.article-card:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-md);
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--slate-500);
}

.article-cat-pill {
    background: var(--blue-50);
    color: var(--blue-600);
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
}

.article-card h3 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.45;
    font-weight: 700;
}

.article-card h3 a {
    color: var(--slate-900);
}

.article-card h3 a:hover {
    color: var(--blue-600);
}

.article-card p {
    margin: 0;
    font-size: 0.91rem;
    color: var(--slate-600);
    line-height: 1.65;
}

/* Quick Tool Promo Box on Home */
.tool-spotlight {
    background: linear-gradient(135deg, #0b192c 0%, #153459 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 36px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.tool-spotlight h2 {
    margin: 0 0 12px;
    font-size: 1.65rem;
    color: #fff;
}

.tool-spotlight p {
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 0.96rem;
}

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

.tool-mini-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 14px 16px;
}

.tool-mini-item strong {
    display: block;
    color: #7dd3fc;
    font-size: 0.92rem;
    margin-bottom: 4px;
}

.tool-mini-item span {
    font-size: 0.8rem;
    color: #cbd5e1;
}

/* Subpage Banner */
.page-hero {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%);
    color: #fff;
    padding: 40px 0 44px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #94a3b8;
    margin-bottom: 14px;
}

.breadcrumb a {
    color: #bae6fd;
}

.page-hero h1 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.3;
    font-weight: 800;
}

.page-hero p {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.98rem;
    max-width: 780px;
}

/* Filter Tabs */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid var(--slate-200);
    color: var(--slate-700);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.filter-tab:hover,
.filter-tab.is-active {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
}

/* Detail Layouts */
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 32px;
    align-items: start;
}

.content-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.sidebar-box h3 {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--slate-900);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}

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

.toc-list a {
    font-size: 0.88rem;
    color: var(--slate-700);
    display: block;
    padding: 4px 8px;
    border-radius: 6px;
}

.toc-list a:hover {
    background: var(--blue-50);
    color: var(--blue-600);
}

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

.side-links li {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-100);
}

.side-links li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.side-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate-800);
    display: block;
    line-height: 1.45;
}

.side-links a:hover {
    color: var(--blue-600);
}

.side-links small {
    color: var(--slate-500);
    font-size: 0.78rem;
}

/* Prose typography for articles */
.prose h2 {
    margin: 30px 0 14px;
    font-size: 1.38rem;
    font-weight: 800;
    color: var(--slate-900);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--slate-100);
}

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

.prose h3 {
    margin: 22px 0 10px;
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--navy-800);
}

.prose p {
    margin: 0 0 16px;
    color: var(--slate-700);
    font-size: 0.98rem;
    line-height: 1.85;
}

.prose ul, .prose ol {
    margin: 0 0 18px;
    padding-left: 22px;
    color: var(--slate-700);
}

.prose li {
    margin-bottom: 8px;
    line-height: 1.75;
}

.prose pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 18px 0;
}

.prose code {
    font-family: var(--font-mono);
    background: var(--slate-100);
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

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

.prose blockquote {
    margin: 18px 0;
    padding: 14px 18px;
    background: var(--blue-50);
    border-left: 4px solid var(--blue-600);
    border-radius: 0 8px 8px 0;
    color: var(--slate-700);
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 18px 0;
}

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

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

table.data-table th {
    background: var(--slate-100);
    color: var(--slate-900);
    font-weight: 700;
}

table.data-table tbody tr:hover {
    background: #f8fafc;
}

/* Course Syllabus */
.syllabus-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.syllabus-item {
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 18px 20px;
    background: #fbfdff;
}

.syllabus-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.syllabus-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--blue-600);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.syllabus-item h4 {
    margin: 0;
    font-size: 1.02rem;
    color: var(--slate-900);
}

.syllabus-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--slate-600);
}

/* Tools Page */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.tool-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
}

.tool-card h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--slate-900);
}

.tool-card .tool-sub {
    margin: 0 0 20px;
    font-size: 0.88rem;
    color: var(--slate-600);
}

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

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calc-results-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.band-search-input {
    padding: 9px 14px;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    width: 100%;
    max-width: 280px;
    font-size: 0.88rem;
}

.form-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-700);
    margin-bottom: 5px;
}

.form-field input,
.form-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--slate-300);
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--slate-900);
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    background: var(--navy-900);
    color: #fff;
    padding: 18px;
    border-radius: 10px;
}

.calc-stat span {
    display: block;
    font-size: 0.76rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.calc-stat strong {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: #38bdf8;
    word-break: break-word;
}

/* Roadmap */
.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.roadmap-stage {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    box-shadow: var(--shadow-sm);
}

.stage-badge {
    display: inline-block;
    background: var(--navy-900);
    color: #38bdf8;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.roadmap-stage h3 {
    margin: 0 0 6px;
    font-size: 1.2rem;
    color: var(--slate-900);
}

.roadmap-stage .stage-target {
    font-size: 0.84rem;
    color: var(--slate-500);
}

.stage-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.stage-box {
    background: var(--surface);
    border: 1px solid var(--slate-200);
    border-radius: 10px;
    padding: 16px;
}

.stage-box h4 {
    margin: 0 0 8px;
    font-size: 0.92rem;
    color: var(--navy-800);
}

.stage-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 0.88rem;
    color: var(--slate-700);
}

/* Wiki Grid */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.wiki-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

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

.wiki-head h3 {
    margin: 0;
    font-size: 1.06rem;
    color: var(--slate-900);
}

.wiki-short {
    margin: 0 0 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--navy-800);
}

.wiki-detail {
    margin: 0;
    font-size: 0.88rem;
    color: var(--slate-600);
    line-height: 1.65;
}

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

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-700);
    font-size: 0.9rem;
    font-weight: 600;
}

.pagination .is-current {
    background: var(--blue-600);
    border-color: var(--blue-600);
    color: #fff;
}

/* Footer */
.site-footer {
    background: var(--navy-950);
    color: #94a3b8;
    padding: 52px 0 28px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.7;
    margin: 0 0 14px;
    color: #94a3b8;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 0.95rem;
}

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

.footer-col a {
    color: #94a3b8;
    font-size: 0.87rem;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    font-size: 0.83rem;
}

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

.footer-bottom a:hover {
    color: var(--cyan-400);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .track-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hero-grid,
    .tool-spotlight,
    .detail-grid,
    .tools-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .header-search {
        display: none;
    }
    .site-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0 6px;
        border-top: 1px solid var(--slate-200);
    }
    .site-nav.is-open {
        display: flex;
    }
    .site-nav a {
        padding: 10px 12px;
    }
    .brand-logo {
        height: 40px;
    }
    .hero {
        padding: 40px 0 46px;
    }
    .hero-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .track-grid,
    .course-grid,
    .article-grid,
    .wiki-grid,
    .stage-cols,
    .tool-mini-list,
    .form-grid,
    .form-grid-3,
    .calc-results,
    .calc-results-4,
    .roadmap-stage,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .content-card {
        padding: 20px;
    }
    .tool-spotlight {
        padding: 24px 20px;
    }
    .section {
        padding: 44px 0;
    }
    .announce-meta {
        display: none;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 14px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .brand-logo {
        height: 36px;
    }
}
