/*
 * Theme Name: jsq
 * Description: 计算器大全 - 12大分类204款在线免费计算器
 * Version: 1.0.0
 */

:root {
    color-scheme: light;
    --jsq-font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
    --jsq-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
    --jsq-bg: #f0f4fa;
    --jsq-surface: #ffffff;
    --jsq-surface-2: #f8fafc;
    --jsq-border: #e2e8f0;
    --jsq-border-strong: #cbd5e1;
    --jsq-text: #0f172a;
    --jsq-muted: #64748b;
    --jsq-accent: #2563eb;
    --jsq-accent-hover: #1d4ed8;
    --jsq-accent-soft: rgba(37, 99, 235, 0.1);
    --jsq-success: #059669;
    --jsq-warning: #d97706;
    --jsq-danger: #dc2626;
    --jsq-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
    --jsq-shadow-lg: 0 4px 24px rgba(15, 23, 42, 0.1);
    --jsq-radius: 12px;
    --jsq-radius-sm: 8px;
    --jsq-head-h: 3.5rem;
    --jsq-max-w: 72rem;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --jsq-bg: #0b1120;
    --jsq-surface: #111827;
    --jsq-surface-2: #1e293b;
    --jsq-border: #334155;
    --jsq-border-strong: #475569;
    --jsq-text: #f1f5f9;
    --jsq-muted: #94a3b8;
    --jsq-accent: #3b82f6;
    --jsq-accent-hover: #60a5fa;
    --jsq-accent-soft: rgba(59, 130, 246, 0.15);
    --jsq-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --jsq-shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

.jsq-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--jsq-bg);
    color: var(--jsq-text);
    font-family: var(--jsq-font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.jsq-body button, .jsq-body input, .jsq-body select, .jsq-body textarea {
    font-family: inherit;
}

.jsq-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.jsq-head {
    position: sticky; top: 0; z-index: 50;
    background: var(--jsq-surface);
    border-bottom: 1px solid var(--jsq-border);
    box-shadow: var(--jsq-shadow);
}

.jsq-head__bar {
    display: flex; align-items: center; gap: 0.75rem;
    max-width: var(--jsq-max-w); margin: 0 auto;
    padding: 0 1rem; height: var(--jsq-head-h);
}

.jsq-head__brand { display: flex; align-items: center; gap: 0.5rem; min-width: 0; flex-shrink: 0; }
.jsq-head__brand-link { display: flex; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; min-width: 0; }
.jsq-logo { display: flex; flex-shrink: 0; }
.jsq-logo__img { display: block; border-radius: 6px; }
.jsq-logo-title { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jsq-logo-title--sm { font-size: 0.95rem; }

.jsq-head__search { width: 12rem; max-width: 28rem; min-width: 0; flex: 1 1 12rem; }
.jsq-head__actions .jsq-head__search { flex: 1 1 auto; max-width: 16rem; }
.jsq-search-form { position: relative; display: flex; align-items: center; width: 100%; }
.jsq-search-form__icon { position: absolute; left: 0.75rem; color: var(--jsq-muted); pointer-events: none; }
.jsq-search-form__input {
    width: 100%; padding: 0.5rem 0.75rem 0.5rem 2.25rem;
    border: 1px solid var(--jsq-border); border-radius: 999px;
    background: var(--jsq-surface-2); color: var(--jsq-text); font-size: 0.875rem;
    outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.jsq-search-form__input:focus { border-color: var(--jsq-accent); box-shadow: 0 0 0 3px var(--jsq-accent-soft); }

.jsq-head__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
}
.jsq-head-icon-btn, .jsq-nav-menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.25rem;
    padding: 0.5rem; border: 1px solid var(--jsq-border); border-radius: var(--jsq-radius-sm);
    background: var(--jsq-surface); color: var(--jsq-text); cursor: pointer;
    font-size: 0.875rem; transition: background 0.15s, border-color 0.15s;
}
.jsq-head-icon-btn:hover, .jsq-nav-menu-toggle:hover { background: var(--jsq-surface-2); border-color: var(--jsq-border-strong); }
.jsq-nav-toggle { display: none; }
.jsq-nav-menu-toggle__label { display: none; }
@media (min-width: 640px) { .jsq-nav-menu-toggle__label { display: inline; } }

.jsq-head__nav {
    display: none; border-top: 1px solid var(--jsq-border);
    background: var(--jsq-surface-2);
}
.jsq-head__nav.is-open { display: block; }
.jsq-head__nav-inner { max-width: var(--jsq-max-w); margin: 0 auto; padding: 0.5rem 1rem; overflow-x: auto; }

.jsq-nav-menu { display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.jsq-nav-menu__link {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.375rem 0.75rem; border-radius: 999px;
    color: var(--jsq-muted); text-decoration: none; font-size: 0.875rem; white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.jsq-nav-menu__link:hover, .jsq-nav-menu__link.is-active { color: var(--jsq-accent); background: var(--jsq-accent-soft); }

/* Drawer */
.jsq-nav-drawer-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.5); z-index: 60;
    opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.jsq-nav-drawer-overlay.is-open { opacity: 1; visibility: visible; }
.jsq-nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(18rem, 85vw);
    background: var(--jsq-surface); z-index: 70; transform: translateX(-100%);
    transition: transform 0.25s ease; display: flex; flex-direction: column;
    border-right: 1px solid var(--jsq-border); box-shadow: var(--jsq-shadow-lg);
}
.jsq-nav-drawer.is-open { transform: translateX(0); }
.jsq-nav-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 1rem; border-bottom: 1px solid var(--jsq-border); }
.jsq-nav-drawer__close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--jsq-text); padding: 0.25rem; }
.jsq-nav-drawer__nav { flex: 1; overflow-y: auto; padding: 0.75rem; }
.jsq-nav-drawer-menu { list-style: none; margin: 0; padding: 0; }
.jsq-nav-drawer-menu__link {
    display: block; padding: 0.625rem 0.75rem; border-radius: var(--jsq-radius-sm);
    color: var(--jsq-text); text-decoration: none; font-size: 0.9375rem;
}
.jsq-nav-drawer-menu__link:hover, .jsq-nav-drawer-menu__link.is-active { background: var(--jsq-accent-soft); color: var(--jsq-accent); }
.jsq-nav-drawer__foot { padding: 1rem; border-top: 1px solid var(--jsq-border); }
.jsq-nav-drawer__foot-note { margin: 0; font-size: 0.8125rem; color: var(--jsq-muted); }

/* Main */
.jsq-main { flex: 1; padding: 1.5rem 0 3rem; }
.jsq-container { max-width: var(--jsq-max-w); margin: 0 auto; padding: 0 1rem; }
.jsq-container--narrow { max-width: 40rem; }

/* Hero */
.jsq-hero { text-align: center; padding: 2rem 0 2.5rem; }
.jsq-hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.jsq-badge {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.25rem 0.75rem; border-radius: 999px;
    background: var(--jsq-accent-soft); color: var(--jsq-accent);
    font-size: 0.8125rem; font-weight: 500;
}
.jsq-hero__title { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.jsq-hero__subtitle { margin: 0 0 1.5rem; color: var(--jsq-muted); font-size: 1.05rem; }

.jsq-hero-search { position: relative; display: flex; max-width: 36rem; margin: 0 auto; gap: 0.5rem; }
.jsq-hero-search--inline { max-width: none; margin-bottom: 1.5rem; }
.jsq-hero-search__icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--jsq-muted); pointer-events: none; }
.jsq-hero-search__input {
    flex: 1; padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 2px solid var(--jsq-border); border-radius: var(--jsq-radius);
    background: var(--jsq-surface); color: var(--jsq-text); font-size: 1rem; outline: none;
}
.jsq-hero-search__input:focus { border-color: var(--jsq-accent); box-shadow: 0 0 0 3px var(--jsq-accent-soft); }
.jsq-hero-search__btn {
    padding: 0.75rem 1.25rem; border: none; border-radius: var(--jsq-radius);
    background: var(--jsq-accent); color: #fff; font-weight: 600; cursor: pointer;
    transition: background 0.15s;
}
.jsq-hero-search__btn:hover { background: var(--jsq-accent-hover); }

/* Sections */
.jsq-section { margin-bottom: 2.5rem; }
.jsq-section__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.jsq-section__title { margin: 0; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; gap: 0.375rem; }
.jsq-section__more { color: var(--jsq-accent); text-decoration: none; font-size: 0.875rem; font-weight: 500; display: inline-flex; align-items: center; gap: 0.125rem; }
.jsq-section__more:hover { text-decoration: underline; }

/* Cards */
.jsq-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.75rem; }
.jsq-card-grid--featured { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.jsq-card-grid--category { grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.jsq-card {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1rem 1.125rem; border-radius: var(--jsq-radius);
    background: var(--jsq-surface); border: 1px solid var(--jsq-border);
    text-decoration: none; color: inherit; box-shadow: var(--jsq-shadow);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.jsq-card:hover { border-color: var(--jsq-accent); box-shadow: var(--jsq-shadow-lg); transform: translateY(-2px); }
.jsq-card__title { font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
.jsq-card__desc { font-size: 0.8125rem; color: var(--jsq-muted); line-height: 1.45; }

/* Page head */
.jsq-page-head { margin-bottom: 1.5rem; }
.jsq-page-head__title { margin: 0 0 0.375rem; font-size: 1.75rem; font-weight: 800; }
.jsq-page-head__desc { margin: 0; color: var(--jsq-muted); font-size: 0.9375rem; }
.jsq-breadcrumb { font-size: 0.8125rem; color: var(--jsq-muted); margin-bottom: 0.75rem; }
.jsq-breadcrumb a { color: var(--jsq-accent); text-decoration: none; }
.jsq-breadcrumb a:hover { text-decoration: underline; }
.jsq-breadcrumb__sep { margin: 0 0.375rem; opacity: 0.6; user-select: none; }
.jsq-breadcrumb--tool { margin-bottom: 1rem; }
.jsq-breadcrumb--tool + [data-jsq-tool] .jsq-tool-head { margin-top: 0; }

/* Tool page */
.jsq-tool-head { margin-bottom: 1.25rem; }
.jsq-tool-head__title { margin: 0 0 0.375rem; font-size: 1.5rem; font-weight: 800; }
.jsq-tool-head__desc { margin: 0; color: var(--jsq-muted); font-size: 0.9375rem; }

.jsq-tool-panel {
    background: var(--jsq-surface); border: 1px solid var(--jsq-border);
    border-radius: var(--jsq-radius); padding: 1.25rem; box-shadow: var(--jsq-shadow);
}
.jsq-tool-loading { color: var(--jsq-muted); text-align: center; padding: 2rem; }

.jsq-tool-section-title { margin: 0 0 0.75rem; font-size: 1rem; font-weight: 600; }
.jsq-tool-divider { border: none; border-top: 1px solid var(--jsq-border); margin: 1.25rem 0; }

.jsq-tool-row { display: grid; gap: 0.75rem; margin-bottom: 0.75rem; }
.jsq-tool-row--2 { grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 480px) { .jsq-tool-row--2 { grid-template-columns: 1fr; } }

.jsq-tool-field { display: flex; flex-direction: column; gap: 0.25rem; }
.jsq-tool-field label { font-size: 0.8125rem; font-weight: 500; color: var(--jsq-muted); }
.jsq-tool-input, .jsq-tool-select {
    padding: 0.625rem 0.75rem; border: 1px solid var(--jsq-border); border-radius: var(--jsq-radius-sm);
    background: var(--jsq-surface-2); color: var(--jsq-text); font-size: 0.9375rem; outline: none;
    transition: border-color 0.15s;
}
.jsq-tool-input:focus, .jsq-tool-select:focus { border-color: var(--jsq-accent); box-shadow: 0 0 0 3px var(--jsq-accent-soft); }
.jsq-tool-input--mono { font-family: var(--jsq-mono); }

.jsq-tool-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.jsq-tool-btn-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
    padding-top: 0.25rem;
}

.jsq-tool-form > button.jsq-tool-btn {
    margin-top: 0.75rem;
    align-self: flex-start;
}

.jsq-tool-form .jsq-tool-btn-group + button.jsq-tool-btn {
    margin-top: 0.25rem;
}
.jsq-btn, .jsq-tool-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem;
    padding: 0.625rem 1rem; border: 1px solid var(--jsq-border); border-radius: var(--jsq-radius-sm);
    background: var(--jsq-surface-2); color: var(--jsq-text); font-size: 0.875rem; font-weight: 500;
    cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.jsq-btn:hover, .jsq-tool-btn:hover { background: var(--jsq-border); }
.jsq-btn--primary, .jsq-tool-btn--primary { background: var(--jsq-accent); color: #fff; border-color: var(--jsq-accent); }
.jsq-btn--primary:hover, .jsq-tool-btn--primary:hover { background: var(--jsq-accent-hover); border-color: var(--jsq-accent-hover); }

.jsq-tool-result {
    margin-top: 1rem; padding: 1rem; border-radius: var(--jsq-radius-sm);
    background: var(--jsq-accent-soft); border: 1px solid var(--jsq-border);
}
.jsq-tool-result__main { font-size: 1.5rem; font-weight: 700; color: var(--jsq-accent); margin-bottom: 0.5rem; }
.jsq-tool-result__row { display: flex; justify-content: space-between; padding: 0.375rem 0; font-size: 0.875rem; border-bottom: 1px dashed var(--jsq-border); }
.jsq-tool-result__row:last-child { border-bottom: none; }
.jsq-tool-result__label { color: var(--jsq-muted); }
.jsq-tool-result__value { font-weight: 600; font-family: var(--jsq-mono); }
.jsq-tool-result__note { margin-top: 0.75rem; font-size: 0.8125rem; color: var(--jsq-muted); }

.jsq-tool-hint { font-size: 0.8125rem; color: var(--jsq-muted); margin: 0.5rem 0 0; }

/* Tool knowledge article (SEO) */
.jsq-tool-article {
    margin-top: 2rem;
    padding: 1.5rem 1.25rem;
    border: 1px solid var(--jsq-border);
    border-radius: var(--jsq-radius);
    background: var(--jsq-surface);
}
.jsq-tool-article__title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
}
.jsq-tool-article__body {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--jsq-text);
}
.jsq-tool-article__heading {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--jsq-text);
}
.jsq-tool-article__heading:first-child { margin-top: 0; }
.jsq-tool-article__body p {
    margin: 0 0 0.875rem;
    color: var(--jsq-muted);
}
.jsq-tool-article__body p:last-child { margin-bottom: 0; }
.jsq-tool-article__text { color: var(--jsq-muted); }

/* Related tools (internal links / SEO) */
.jsq-related { margin-top: 2rem; }
.jsq-related + .jsq-related { margin-top: 1.75rem; }
.jsq-related__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; margin-bottom: 0.875rem; flex-wrap: wrap;
}
.jsq-related__title {
    margin: 0; font-size: 1.125rem; font-weight: 700;
    display: flex; align-items: center; gap: 0.375rem;
}
.jsq-related__more {
    color: var(--jsq-accent); text-decoration: none; font-size: 0.875rem;
    font-weight: 500; display: inline-flex; align-items: center; gap: 0.125rem;
}
.jsq-related__more:hover { text-decoration: underline; }
.jsq-card-grid--related { grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); }

/* Basic calculator */
.jsq-calc {
    max-width: 20rem; margin: 0 auto;
}
.jsq-calc__display {
    width: 100%; padding: 1rem; text-align: right; font-size: 1.75rem;
    font-family: var(--jsq-mono); border: 1px solid var(--jsq-border);
    border-radius: var(--jsq-radius-sm); background: var(--jsq-surface-2);
    margin-bottom: 0.75rem; min-height: 3.5rem; word-break: break-all;
}
.jsq-calc__keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.jsq-calc__key {
    padding: 0.875rem; border: 1px solid var(--jsq-border); border-radius: var(--jsq-radius-sm);
    background: var(--jsq-surface-2); font-size: 1.125rem; cursor: pointer;
    transition: background 0.1s;
}
.jsq-calc__key:hover { background: var(--jsq-border); }
.jsq-calc__key--op { background: var(--jsq-accent-soft); color: var(--jsq-accent); font-weight: 600; }
.jsq-calc__key--eq { background: var(--jsq-accent); color: #fff; font-weight: 700; grid-column: span 2; }
.jsq-calc__key--wide { grid-column: span 2; }

/* Converter table */
.jsq-convert-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; margin-top: 0.75rem; }
.jsq-convert-table th, .jsq-convert-table td { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--jsq-border); }
.jsq-convert-table th { color: var(--jsq-muted); font-weight: 500; }

/* Table detail */
.jsq-table-wrap { overflow-x: auto; margin-top: 1rem; }
.jsq-table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.jsq-table th, .jsq-table td { padding: 0.5rem 0.75rem; border: 1px solid var(--jsq-border); text-align: right; }
.jsq-table th { background: var(--jsq-surface-2); font-weight: 600; }
.jsq-table td:first-child, .jsq-table th:first-child { text-align: left; }

/* Footer */
.jsq-foot { border-top: 1px solid var(--jsq-border); background: var(--jsq-surface); padding: 2rem 0; margin-top: auto; }
.jsq-foot__inner { max-width: var(--jsq-max-w); margin: 0 auto; padding: 0 1rem; text-align: center; }
.jsq-foot__links { margin-bottom: 1rem; }
.jsq-foot__links-label { font-size: 0.8125rem; color: var(--jsq-muted); margin-right: 0.5rem; }
.jsq-foot__links-list { display: inline-flex; flex-wrap: wrap; gap: 0.5rem 1rem; list-style: none; margin: 0; padding: 0; justify-content: center; }
.jsq-foot__link { color: var(--jsq-muted); text-decoration: none; font-size: 0.8125rem; }
.jsq-foot__link:hover { color: var(--jsq-accent); }
.jsq-foot__copy { margin: 0 0 0.375rem; font-size: 0.8125rem; color: var(--jsq-muted); }
.jsq-foot__note { margin: 0; font-size: 0.75rem; color: var(--jsq-muted); }

/* Error */
.jsq-error { text-align: center; padding: 3rem 1rem; }
.jsq-error__code { font-size: 4rem; font-weight: 800; color: var(--jsq-accent); margin: 0; line-height: 1; }
.jsq-error__title { margin: 0.5rem 0; font-size: 1.5rem; }
.jsq-error__desc { color: var(--jsq-muted); margin-bottom: 1.5rem; }
.jsq-empty { color: var(--jsq-muted); text-align: center; padding: 2rem; }

/* Pager */
.jsq-pager {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--jsq-border);
}

.jsq-pager__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.jsq-pager__inner > a {
    text-decoration: none;
    color: inherit;
}

.jsq-pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2.5rem;
    min-width: 6.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--jsq-text);
    background: var(--jsq-surface);
    border: 1px solid var(--jsq-border);
    border-radius: var(--jsq-radius-sm);
    box-shadow: var(--jsq-shadow);
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.jsq-pager__inner > a:hover .jsq-pager__btn {
    color: var(--jsq-accent);
    border-color: var(--jsq-accent);
    background: var(--jsq-accent-soft);
    box-shadow: var(--jsq-shadow-lg);
    transform: translateY(-1px);
}

.jsq-pager__inner > a:focus-visible .jsq-pager__btn {
    outline: 2px solid var(--jsq-accent);
    outline-offset: 2px;
}

.jsq-pager__inner > a[href="javascript:;"] {
    pointer-events: none;
    cursor: default;
}

.jsq-pager__inner > a[href="javascript:;"] .jsq-pager__btn {
    color: var(--jsq-muted);
    background: var(--jsq-surface-2);
    border-color: var(--jsq-border);
    box-shadow: none;
    opacity: 0.55;
    transform: none;
}

.jsq-pager__btn .ri {
    font-size: 1.125rem;
    line-height: 1;
}

.jsq-pager__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    min-width: 4.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--jsq-mono);
    color: var(--jsq-muted);
    background: var(--jsq-surface-2);
    border: 1px solid var(--jsq-border);
    border-radius: 999px;
}

.jsq-pager__status-num {
    color: var(--jsq-accent);
    font-size: 1rem;
}

.jsq-pager__status-sep {
    opacity: 0.5;
    padding: 0 0.125rem;
}

.jsq-pager__status-total {
    color: var(--jsq-text);
}

@media (max-width: 480px) {
    .jsq-pager__inner {
        gap: 0.625rem;
    }

    .jsq-pager__btn {
        min-width: 5.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    .jsq-pager__btn .ri {
        font-size: 1rem;
    }
}

/* Toast */
.jsq-toast {
    position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    padding: 0.75rem 1.25rem; background: var(--jsq-text); color: var(--jsq-surface);
    border-radius: var(--jsq-radius-sm); font-size: 0.875rem; z-index: 100;
    box-shadow: var(--jsq-shadow-lg);
}
.jsq-toast:not([hidden]) { display: block; }

/* Article */
.jsq-article__body { line-height: 1.75; }
.jsq-article__body h2 { margin-top: 1.5rem; }
.jsq-article__body p { margin: 0.75rem 0; }

@media (max-width: 640px) {
    .jsq-nav-toggle { display: inline-flex; }
    .jsq-head__actions .jsq-head__search { display: none; }
    .jsq-hero { padding: 1.25rem 0 1.75rem; }
}
