/* ===========================================
   Transmission 中文官网 - 共享样式表
   配色基于 logo（酒红 + 深灰 + 银灰）
   扁平现代专业风格
   =========================================== */

/* ---------- CSS Variables ---------- */
:root {
    --color-primary: #C8102E;
    --color-primary-dark: #8B0A1F;
    --color-primary-light: #E63946;
    --color-primary-50: #FEF2F2;

    --color-accent: #1F2937;
    --color-accent-light: #374151;

    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;

    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-info: #3B82F6;

    --bg-page: #FFFFFF;
    --bg-surface: #F9FAFB;
    --bg-elevated: #FFFFFF;

    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #6B7280;
    --text-inverse: #FFFFFF;

    --border-color: #E5E7EB;
    --border-color-strong: #D1D5DB;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);

    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;

    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --container-max: 1200px;
    --container-padding: 24px;

    --nav-height: 64px;

    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

main {
    flex: 1;
    margin-top: var(--nav-height);
}

section {
    padding: 80px 0;
}

section.compact {
    padding: 56px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.text-small { font-size: 14px; }
.text-xs { font-size: 13px; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

/* ---------- Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.brand:hover {
    color: var(--color-primary);
}

.brand-logo {
    width: 32px;
    height: 32px;
}

.nav-list {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-list a {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.nav-list a:hover {
    color: var(--text-primary);
    background: var(--color-gray-100);
}

.nav-list a.active {
    color: var(--color-primary);
    background: var(--color-primary-50);
}

.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    align-items: center;
    justify-content: center;
}

.nav-toggle:hover {
    background: var(--color-gray-100);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    user-select: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: var(--text-inverse);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--text-inverse);
}

.btn-secondary:hover {
    background: var(--color-accent-light);
    color: var(--text-inverse);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color-strong);
}

.btn-outline:hover {
    background: var(--color-gray-50);
    border-color: var(--text-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--color-gray-100);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Cards ---------- */
.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-color-strong);
    box-shadow: var(--shadow-md);
}

.card-feature {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    height: 100%;
    transition: all var(--transition);
}

.card-feature:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--color-primary-50);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.card-feature h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.card-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ---------- Grid ---------- */
.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-3.tablet-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .grid-3.tablet-2 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
    padding: 96px 0 80px;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    border: 1px solid rgba(200, 16, 46, 0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero h1 .accent {
    color: var(--color-primary);
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    max-width: 560px;
}

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

.hero-meta {
    display: flex;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.hero-meta-item {
    display: flex;
    flex-direction: column;
}

.hero-meta-item .num {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-meta-item .label {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--color-gray-100);
    border: 1px solid var(--border-color);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-visual-caption {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(31, 41, 55, 0.85);
    color: #fff;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: var(--radius);
    backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
    .hero { padding: 64px 0 56px; }
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 38px; }
    .hero-sub { font-size: 16px; }
}

/* ---------- Platforms ---------- */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.platform-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.platform-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.platform-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
}

.platform-icon svg { width: 32px; height: 32px; }

.platform-card h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.platform-card .ver {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.platform-card .btn {
    width: 100%;
}

@media (max-width: 900px) {
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Download Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition);
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-box {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: scale(0.96);
    transition: transform var(--transition);
}

.modal.show .modal-box { transform: scale(1); }

.modal-header {
    padding: 24px 28px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 18px;
    font-weight: 700;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--color-gray-100);
    color: var(--text-primary);
}

.modal-body {
    padding: 28px;
}

.modal-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.modal-tabs::-webkit-scrollbar { display: none; }

.modal-tab {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--transition);
}

.modal-tab:hover { color: var(--text-primary); }

.modal-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.modal-pane { display: none; }
.modal-pane.active { display: block; }

.download-card {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 20px;
    background: var(--color-gray-50);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.download-qr {
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.download-qr svg, .download-qr img {
    width: 100%;
    height: 100%;
    display: block;
}

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

.download-info h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.download-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.download-info .meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    word-break: break-all;
    font-family: var(--font-mono);
}

.qr-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.qr-tag-quark {
    background: #E6F4FE;
    color: #1E88E5;
}

.qr-tag-baidu {
    background: #FFF1E6;
    color: #E65100;
}

.qr-tag-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.qr-tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.qr-tag-pill svg { width: 14px; height: 14px; }

@media (max-width: 600px) {
    .download-card { flex-direction: column; text-align: center; }
    .download-qr { flex: 0 0 auto; }
}

/* ---------- Scenario Section ---------- */
.scenario {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.scenario-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--transition);
}

.scenario-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.scenario-item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.scenario-item-header .num {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.scenario-item-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.scenario-item p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ---------- Tables ---------- */
.tbl-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
}

th, td {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--color-gray-50);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--color-gray-50); }

td .pill {
    display: inline-block;
    padding: 2px 10px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    text-align: left;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background var(--transition);
}

.faq-q:hover { background: var(--color-gray-50); }

.faq-q-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--text-tertiary);
}

.faq-item.open .faq-q-icon { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq-a-inner {
    padding: 4px 24px 22px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-gray-900);
    color: var(--color-gray-300);
    padding: 56px 0 32px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--color-gray-400);
    font-size: 14px;
    transition: color var(--transition);
}

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

.footer-brand {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand svg, .footer-brand img {
    width: 32px;
    height: 32px;
}

.footer-about {
    font-size: 14px;
    color: var(--color-gray-400);
    line-height: 1.6;
    margin-bottom: 16px;
}

.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid var(--color-gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--color-gray-500);
    flex-wrap: wrap;
    gap: 12px;
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a { color: var(--color-gray-400); }
.footer-legal a:hover { color: #fff; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Notice / Highlight ---------- */
.notice {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: #FFFBEB;
    border: 1px solid #FCD34D;
    border-radius: var(--radius);
    color: #92400E;
    font-size: 14px;
    margin: 24px 0;
}

.notice-info {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1E40AF;
}

.notice-success {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.notice-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* ---------- Tag / Badge ---------- */
.tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--color-gray-100);
    color: var(--text-secondary);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-mono);
    margin-right: 6px;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
    background: var(--color-accent);
    color: #fff;
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--color-gray-400);
}

@media (max-width: 700px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Code block ---------- */
code, pre {
    font-family: var(--font-mono);
    font-size: 13px;
}

code {
    background: var(--color-gray-100);
    color: var(--color-primary-dark);
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: #1F2937;
    color: #E5E7EB;
    padding: 18px 22px;
    border-radius: var(--radius);
    overflow-x: auto;
    line-height: 1.5;
}

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

/* ---------- Responsive Nav ---------- */
@media (max-width: 800px) {
    .nav-list {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px;
        display: none;
        box-shadow: var(--shadow-md);
    }

    .nav-list.open { display: flex; }

    .nav-list a {
        height: 44px;
        padding: 0 12px;
        justify-content: flex-start;
    }

    .nav-toggle { display: inline-flex; }
}

/* ---------- Misc ---------- */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.text-center { text-align: center; }

@media (max-width: 600px) {
    section { padding: 56px 0; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 28px; }
    h1 { font-size: 32px; }
    h2 { font-size: 24px; }
    h3 { font-size: 20px; }
}