/* ============================================================
   前台大气二栏模板
   左：主菜单栏  右：内容数据区
   ============================================================ */

:root {
    --ink: #12202e;
    --ink-soft: #1a2d40;
    --ink-line: rgba(255, 255, 255, 0.08);
    --accent: #0d9488;
    --accent-dark: #0f766e;
    --accent-soft: #ccfbf1;
    --accent-glow: rgba(13, 148, 136, 0.18);
    --bg: #eef2f6;
    --bg-mesh: #e8eef4;
    --card: #ffffff;
    --text: #15202b;
    --text-secondary: #475569;
    --text-muted: #7b8a9a;
    --border: #d8e0ea;
    --border-light: #e8eef4;
    --sidebar-width: 272px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(18, 32, 46, 0.04), 0 10px 28px rgba(18, 32, 46, 0.06);
    --shadow-hover: 0 8px 28px rgba(18, 32, 46, 0.1);
    --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(ellipse 80% 50% at 100% -10%, rgba(13, 148, 136, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(15, 45, 70, 0.06), transparent 45%),
        linear-gradient(180deg, var(--bg-mesh) 0%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ========== 二栏壳 ========== */
.app-shell {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

/* ========== 左侧主菜单 ========== */
.site-sidebar {
    width: var(--sidebar-width);
    background:
        radial-gradient(circle at 20% 0%, rgba(13, 148, 136, 0.22), transparent 42%),
        linear-gradient(180deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    border-right: 1px solid var(--ink-line);
    transition: transform var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid var(--ink-line);
}

.sidebar-close {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.sidebar-logo-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-size: 22px;
    background: linear-gradient(145deg, #14b8a6, #0f766e);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
    animation: markPulse 3.5s ease-in-out infinite;
}

@keyframes markPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.sidebar-logo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sidebar-logo-copy strong {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logo-copy small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

.sidebar-search {
    padding: 16px 14px 8px;
}

.sidebar-search .search-box {
    position: relative;
}

.sidebar-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
    pointer-events: none;
}

.sidebar-search input {
    width: 100%;
    padding: 11px 14px 11px 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all var(--transition);
}

.sidebar-search input::placeholder { color: rgba(255, 255, 255, 0.35); }

.sidebar-search input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.sidebar-search .search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    max-height: 280px;
    overflow-y: auto;
    z-index: 30;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13px;
}

.search-item:hover { background: var(--accent-soft); }
.search-item small { margin-left: auto; color: var(--text-muted); font-size: 11px; }
.no-result { padding: 16px; color: var(--text-muted); text-align: center; font-size: 13px; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 6px 12px 18px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.sidebar-nav-label {
    padding: 14px 12px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 3px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}

.sidebar-link-icon {
    width: 22px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-link-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link-count {
    font-size: 11px;
    min-width: 22px;
    text-align: center;
    padding: 2px 7px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.42);
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.28), rgba(20, 184, 166, 0.12));
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.25);
}

.sidebar-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    background: #2dd4bf;
    border-radius: 0 3px 3px 0;
}

.sidebar-link.active .sidebar-link-count {
    background: rgba(45, 212, 191, 0.25);
    color: #fff;
}

.sidebar-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    border-top: 1px solid var(--ink-line);
    background: rgba(0, 0, 0, 0.18);
}

.sidebar-stat {
    padding: 12px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
}

.sidebar-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.sidebar-stat span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.42);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(18, 32, 46, 0.5);
    z-index: 199;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.is-visible { display: block; }

/* ========== 右侧内容区 ========== */
.content-shell {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    box-sizing: border-box;
}

.content-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 68px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(216, 224, 234, 0.9);
}

.sidebar-toggle {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
}

.topbar-title { flex: 1; min-width: 0; }

.topbar-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2px;
}

.topbar-title h1 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.topbar-search-btn {
    display: none;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
}

.content-main {
    flex: 1;
    padding: 28px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.content-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    animation: panelIn 0.45s ease both;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section { margin-bottom: 36px; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-head p {
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-muted);
}

.content-footer {
    padding: 18px 28px;
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
}

.content-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
}

.content-footer .footer-icp {
    color: var(--text-muted);
}

.content-footer .footer-icp:hover { color: var(--accent); }

/* ========== 欢迎横幅 ========== */
.welcome-banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #12202e 0%, #1a3a4a 48%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 18px 48px rgba(18, 32, 46, 0.18);
}

.welcome-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 30%, rgba(45, 212, 191, 0.28), transparent 42%),
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.12), transparent 38%),
        linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.04) 50%, transparent 60%);
    animation: bannerShift 10s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes bannerShift {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

.welcome-body {
    position: relative;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 28px;
    align-items: end;
    padding: 36px 40px;
}

.welcome-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.welcome-copy h2 {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.welcome-copy p {
    max-width: 540px;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.9;
}

.welcome-stats {
    display: flex;
    gap: 12px;
}

.welcome-stat {
    min-width: 96px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    text-align: center;
}

.welcome-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
}

.welcome-stat span {
    font-size: 12px;
    opacity: 0.8;
}

/* ========== 分类块 / 工具卡片 ========== */
.home-category-block {
    margin-bottom: 28px;
    padding: 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(216, 224, 234, 0.9);
    box-shadow: var(--shadow);
}

.home-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.home-category-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-cat-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--accent-soft);
    font-size: 24px;
}

.home-category-title h2,
.home-category-title h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.home-category-title p {
    font-size: 13px;
    color: var(--text-muted);
}

.home-more-link {
    flex-shrink: 0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-dark);
    background: var(--accent-soft);
    transition: all var(--transition);
}

.home-more-link:hover {
    background: var(--accent);
    color: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 14px;
}

.tools-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(18, 32, 46, 0.03);
    color: var(--text);
    transition: all var(--transition);
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-hover);
}

.tool-card-block {
    flex-direction: column;
    align-items: flex-start;
    min-height: 148px;
    padding: 18px;
}

.tool-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fafc, #eef5f3);
    border: 1px solid var(--border-light);
    font-size: 22px;
    flex-shrink: 0;
}

.tool-info { flex: 1; min-width: 0; width: 100%; }

.tool-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.tool-info p {
    font-size: 12px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-card-block .tool-info p {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tool-views {
    margin-top: auto;
    padding-top: 10px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ========== 分类 / 工具页 ========== */
.breadcrumb {
    padding: 0 0 14px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb a { color: var(--accent-dark); font-weight: 600; }

.page-header,
.tool-page-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.page-icon,
.tool-page-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--accent-soft);
    font-size: 28px;
}

.page-header h1,
.tool-page-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.page-header p,
.tool-page-header p {
    color: var(--text-muted);
    font-size: 14px;
}

.tool-content {
    background: var(--card);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ========== 工具表单 ========== */
.tool-panel { max-width: 860px; }
.tool-field { margin-bottom: 16px; }
.tool-field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.tool-field input[type="text"],
.tool-field input[type="number"],
.tool-field input[type="url"],
.tool-field input[type="email"],
.tool-field input[type="password"],
.tool-field input[type="date"],
.tool-field input[type="color"],
.tool-field select,
.tool-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: #fbfcfd;
    color: var(--text);
    transition: all var(--transition);
}

.tool-field input:focus,
.tool-field select:focus,
.tool-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.tool-field textarea {
    resize: vertical;
    font-family: 'Cascadia Code', Consolas, monospace;
}

.tool-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: #fff;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg);
    color: var(--text);
}

.tool-error {
    color: #b91c1c;
    padding: 10px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    margin-top: 10px;
}

.tool-hint { font-size: 13px; color: var(--text-muted); margin-top: 10px; }

.stats-bar {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: var(--accent-soft);
    border-radius: 12px;
    font-size: 13px;
    margin-top: 12px;
}

.tool-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.diff-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 12px; }
.diff-table th, .diff-table td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.diff-table th { background: var(--bg); }
.diff-table tr.diff { background: #fef2f2; }
.diff-table tr.same { background: #f0fdf4; }

.markdown-preview {
    min-height: 200px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
}

.markdown-preview h1 { font-size: 24px; margin: 12px 0; }
.markdown-preview h2 { font-size: 20px; margin: 10px 0; }
.markdown-preview h3 { font-size: 16px; margin: 8px 0; }
.markdown-preview code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }
.markdown-preview ul { padding-left: 20px; }

.qr-result { text-align: center; margin-top: 16px; }
.qr-result img { border: 1px solid var(--border); border-radius: 10px; }
.color-preview { width: 100%; height: 60px; border-radius: 10px; margin: 12px 0; border: 1px solid var(--border); }

.tool-tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tool-tabs .tab {
    padding: 8px 14px;
    border: 1px solid var(--border);
    background: var(--bg);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.tool-tabs .tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 14px;
    font-size: 14px;
}

.calculator { max-width: 320px; }
.calculator input {
    width: 100%;
    padding: 16px;
    font-size: 24px;
    text-align: right;
    border: 1px solid var(--border);
    border-radius: 12px 12px 0 0;
}
.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}
.calc-buttons button {
    padding: 16px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    background: var(--card);
}
.calc-buttons button:hover { background: var(--bg); }
.calc-buttons .btn-fn { background: #f1f5f9; }
.calc-buttons .btn-op { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.calc-buttons .btn-eq { background: var(--accent); color: #fff; }

.form-row-cron {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.regex-result h4 { margin-bottom: 8px; }
.regex-result code {
    background: var(--accent-soft);
    padding: 2px 6px;
    border-radius: 4px;
}

.empty-msg {
    color: var(--text-muted);
    padding: 48px 20px;
    text-align: center;
    background: rgba(255,255,255,0.65);
    border: 1px dashed var(--border);
    border-radius: 16px;
}

.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 {
    font-family: var(--font-display);
    font-size: 64px;
    color: var(--accent);
}
.error-page p { color: var(--text-muted); margin: 16px 0 24px; }

/* 广告位 */
.ad-slot { margin: 16px 0; }
.ad-slot-global_header,
.ad-slot-global_footer { margin: 0; }
.ad-slot-global_header {
    background: rgba(255,255,255,0.55);
    border-bottom: 1px solid var(--border-light);
}
.ad-slot-global_footer {
    background: rgba(255,255,255,0.55);
    border-top: 1px solid var(--border-light);
}
.ad-item { text-align: center; padding: 12px 20px; }
.ad-item + .ad-item { border-top: 1px dashed var(--border); }
.ad-image img { max-width: 100%; height: auto; border-radius: 10px; }
.ad-text a,
.ad-text span {
    display: inline-block;
    padding: 10px 18px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}
.ad-code { overflow-x: auto; }

/* AI */
.ai-count-badge {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.ai-search-bar { margin-bottom: 22px; }
.ai-search-bar input {
    width: 100%;
    max-width: 420px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.ai-search-bar input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.ai-group-title {
    font-family: var(--font-display);
    font-size: 18px;
    margin: 26px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-soft);
}
.ai-group-title small {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.ai-tools-grid .tool-card { position: relative; }
.ai-ext-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

.ai-nav-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
}
.ai-nav-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ai-nav-icon { font-size: 48px; }
.ai-nav-card-header h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.ai-nav-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.ai-nav-desc { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; }
.ai-nav-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; word-break: break-all; }

/* ========== 新闻资讯 ========== */
.news-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 28px 32px;
    border-radius: 22px;
    background: linear-gradient(135deg, #12202e 0%, #1a3a4a 55%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 18px 48px rgba(18, 32, 46, 0.16);
}

.news-hero-copy h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    margin: 10px 0;
}

.news-hero-copy p {
    max-width: 520px;
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.7;
}

.news-hero-meta {
    margin-top: 14px;
    font-size: 13px;
    opacity: 0.75;
}

.news-search {
    display: flex;
    gap: 8px;
    min-width: min(360px, 100%);
}

.news-search input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.news-featured-grid,
.news-home-grid,
.news-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.news-featured-card,
.news-home-card,
.news-related-card {
    display: block;
    border-radius: 18px;
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.news-featured-card:hover,
.news-home-card:hover,
.news-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(13, 148, 136, 0.35);
    box-shadow: var(--shadow-hover);
}

.news-featured-cover {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e8eef4;
}

.news-featured-cover-empty {
    display: grid;
    place-items: center;
    font-size: 40px;
    background: linear-gradient(135deg, #eef5f3, #e8eef4);
}

.news-featured-body,
.news-home-card,
.news-related-card {
    padding: 18px;
}

.news-featured-body h3,
.news-home-card h3,
.news-related-card h3,
.news-list-body h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.4;
}

.news-featured-body p,
.news-home-card p,
.news-related-card p,
.news-list-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

.news-home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.news-list-cover {
    display: block;
    height: 120px;
    border-radius: 14px;
    overflow: hidden;
    background: #e8eef4;
}

.news-list-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-cover-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 36px;
    background: linear-gradient(135deg, #eef5f3, #e8eef4);
}

.news-list-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.news-tag {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.news-tag-top {
    background: #fff7ed;
    color: #c2410c;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.news-read-more {
    margin-left: auto;
    color: var(--accent-dark);
    font-weight: 700;
}

.news-clear-search {
    margin-left: 8px;
    color: var(--accent-dark);
    font-weight: 600;
}

.news-pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.news-page-link {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.news-page-link.active,
.news-page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.news-detail {
    padding: 28px;
    border-radius: 22px;
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 28px;
}

.news-detail-header h1 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 12px 0 14px;
    line-height: 1.35;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.news-detail-cover {
    margin-bottom: 22px;
    border-radius: 16px;
    overflow: hidden;
}

.news-detail-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.news-detail-summary {
    padding: 14px 16px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 14px;
    line-height: 1.7;
}

.news-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    word-break: break-word;
}

.news-detail-content > *:first-child { margin-top: 0; }
.news-detail-content > *:last-child { margin-bottom: 0; }
.news-detail-content p { margin: 0 0 1em; }
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin: 1.4em 0 0.6em;
    line-height: 1.35;
    color: var(--text);
    font-weight: 700;
}
.news-detail-content h2 { font-size: 1.35em; }
.news-detail-content h3 { font-size: 1.18em; }
.news-detail-content h4 { font-size: 1.05em; }
.news-detail-content ul,
.news-detail-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}
.news-detail-content li { margin: 0.25em 0; }
.news-detail-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.news-detail-content a:hover { color: var(--accent-dark); }
.news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 10px;
}
.news-detail-content blockquote {
    margin: 1em 0;
    padding: 10px 16px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-secondary);
}
.news-detail-content pre,
.news-detail-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}
.news-detail-content pre {
    margin: 1em 0;
    padding: 14px 16px;
    overflow-x: auto;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-light);
}
.news-detail-content code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg);
}
.news-detail-content pre code {
    padding: 0;
    background: transparent;
}
.news-detail-content table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    font-size: 14px;
}
.news-detail-content th,
.news-detail-content td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.news-detail-content th {
    background: var(--bg);
    font-weight: 600;
}
.news-detail-content hr {
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid var(--border-light);
}

.news-detail-footer {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.news-related { margin-top: 8px; }

@media (max-width: 992px) {
    .news-featured-grid,
    .news-home-grid,
    .news-related-grid { grid-template-columns: 1fr; }
    .news-list-item { grid-template-columns: 1fr; }
    .news-list-cover { height: 160px; }
    .news-detail-header h1 { font-size: 24px; }
    .news-hero { padding: 24px; }
}

/* 兼容旧类名 */
.site-header, .mobile-menu-btn, .site-footer, .hero, .hero-large { display: none !important; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== 响应式 ========== */
@media (max-width: 1200px) {
    .tools-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .site-sidebar { transform: translateX(-100%); }
    .site-sidebar.is-open { transform: translateX(0); }
    .content-shell {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
    }
    .sidebar-toggle { display: grid; }
    .welcome-body { grid-template-columns: 1fr; }
    .tools-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .content-main { padding: 18px 14px; }
    .content-topbar { padding: 0 14px; height: 60px; }
    .welcome-body { padding: 28px 22px; }
    .welcome-copy h2 { font-size: 26px; }
    .welcome-stats { flex-wrap: wrap; }
    .tools-grid-4,
    .tools-grid { grid-template-columns: 1fr; }
    .tool-columns { grid-template-columns: 1fr; }
    .form-row-cron { grid-template-columns: repeat(3, 1fr); }
    .home-category-head { flex-direction: column; align-items: flex-start; }
    .home-category-block { padding: 16px; }
}

/* ========== 新闻模块 ========== */
.news-hero {
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 28px;
    padding: 28px 30px;
    border-radius: 22px;
    background: linear-gradient(135deg, #12202e 0%, #1a3a4a 50%, #0f766e 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.news-hero-copy h2 {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 800;
    margin: 10px 0;
}

.news-hero-copy p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.7;
    max-width: 520px;
}

.news-hero-meta {
    margin-top: 12px;
    font-size: 13px;
    opacity: 0.8;
}

.news-search {
    display: flex;
    gap: 8px;
    min-width: 280px;
}

.news-search input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.news-featured-grid,
.news-home-grid,
.news-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.news-featured-card,
.news-home-card,
.news-related-card {
    display: block;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.news-featured-card:hover,
.news-home-card:hover,
.news-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(13, 148, 136, 0.35);
}

.news-featured-cover {
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
}

.news-featured-cover-empty {
    display: grid;
    place-items: center;
    font-size: 36px;
    background: linear-gradient(135deg, #ccfbf1, #e0f2fe);
}

.news-featured-body,
.news-home-card,
.news-related-card {
    padding: 16px;
}

.news-featured-body h3,
.news-home-card h3,
.news-related-card h3,
.news-list-body h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 8px 0;
    line-height: 1.45;
}

.news-featured-body p,
.news-home-card p,
.news-related-card p,
.news-list-body p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-list-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background: var(--card);
    border: 1px solid var(--border);
}

.news-list-cover {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg);
    min-height: 110px;
}

.news-list-cover img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    display: block;
}

.news-cover-placeholder {
    display: grid;
    place-items: center;
    height: 110px;
    font-size: 32px;
    background: linear-gradient(135deg, #f1f5f9, #ccfbf1);
}

.news-list-tags { display: flex; gap: 8px; flex-wrap: wrap; }

.news-tag {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: var(--bg);
    color: var(--text-muted);
}

.news-tag-top {
    background: #fff7ed;
    color: #c2410c;
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.news-read-more {
    margin-left: auto;
    color: var(--accent-dark);
    font-weight: 700;
}

.news-clear-search {
    margin-left: 8px;
    color: var(--accent-dark);
    font-weight: 600;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.news-page-link {
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.news-page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.news-detail {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
}

.news-detail-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    margin: 12px 0 14px;
    line-height: 1.35;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.news-detail-cover {
    margin-bottom: 20px;
    border-radius: 14px;
    overflow: hidden;
}

.news-detail-cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.news-detail-summary {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 14px;
    line-height: 1.7;
}

.news-detail-content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
    word-break: break-word;
}

.news-detail-content > *:first-child { margin-top: 0; }
.news-detail-content > *:last-child { margin-bottom: 0; }
.news-detail-content p { margin: 0 0 1em; }
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin: 1.4em 0 0.6em;
    line-height: 1.35;
    color: var(--text);
    font-weight: 700;
}
.news-detail-content h2 { font-size: 1.35em; }
.news-detail-content h3 { font-size: 1.18em; }
.news-detail-content h4 { font-size: 1.05em; }
.news-detail-content ul,
.news-detail-content ol {
    margin: 0 0 1em;
    padding-left: 1.4em;
}
.news-detail-content li { margin: 0.25em 0; }
.news-detail-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.news-detail-content a:hover { color: var(--accent-dark); }
.news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1em 0;
    border-radius: 10px;
}
.news-detail-content blockquote {
    margin: 1em 0;
    padding: 10px 16px;
    border-left: 4px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-secondary);
}
.news-detail-content pre,
.news-detail-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}
.news-detail-content pre {
    margin: 1em 0;
    padding: 14px 16px;
    overflow-x: auto;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border-light);
}
.news-detail-content code {
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--bg);
}
.news-detail-content pre code {
    padding: 0;
    background: transparent;
}
.news-detail-content table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    font-size: 14px;
}
.news-detail-content th,
.news-detail-content td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}
.news-detail-content th {
    background: var(--bg);
    font-weight: 600;
}
.news-detail-content hr {
    margin: 1.5em 0;
    border: 0;
    border-top: 1px solid var(--border-light);
}

.news-detail-footer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-light); }

.news-home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

/* ========== 整站 H5 移动端 ========== */
.h5-tabbar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 300;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    padding: 6px 8px env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -6px 24px rgba(18, 32, 46, 0.06);
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
}

.h5-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border-radius: 12px;
    -webkit-tap-highlight-color: transparent;
    transition: color var(--transition), background var(--transition);
}

.h5-tab-icon { font-size: 18px; line-height: 1; }
.h5-tab.active { color: var(--accent-dark); background: var(--accent-soft); }
.h5-tab:active { transform: scale(0.96); }

.h5-backtop {
    display: none;
    position: fixed;
    right: 16px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    z-index: 280;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.h5-backtop.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 992px) {
    .h5-tabbar { display: grid; }
    .h5-backtop { display: grid; place-items: center; }
    .sidebar-close { display: grid; place-items: center; }
    .topbar-search-btn { display: grid; }
    .topbar-chip { display: none; }

    .content-shell {
        padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    .content-topbar {
        padding-top: env(safe-area-inset-top, 0px);
        height: calc(60px + env(safe-area-inset-top, 0px));
    }

    .site-sidebar {
        width: min(86vw, 320px);
        max-width: 320px;
        box-shadow: 12px 0 40px rgba(0, 0, 0, 0.25);
    }

    .tool-card,
    .home-category-block,
    .news-list-item,
    .btn {
        -webkit-tap-highlight-color: transparent;
    }

    .btn {
        min-height: 44px;
        padding: 12px 18px;
    }

    .tool-field input,
    .tool-field select,
    .tool-field textarea {
        font-size: 16px; /* 防止 iOS 自动放大 */
    }

    .news-hero {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .news-search {
        min-width: 0;
        width: 100%;
    }

    .news-featured-grid,
    .news-home-grid,
    .news-related-grid {
        grid-template-columns: 1fr;
    }

    .news-list-item {
        grid-template-columns: 1fr;
    }

    .news-list-cover img,
    .news-cover-placeholder {
        height: 160px;
    }

    .news-detail {
        padding: 18px;
        border-radius: 16px;
    }

    .news-detail-header h1 {
        font-size: 22px;
    }

    .welcome-banner {
        border-radius: 18px;
    }

    .content-footer {
        padding-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .section-head h2 { font-size: 18px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .page-icon { font-size: 36px; }
    .tool-page-header { flex-direction: column; align-items: flex-start; }
    .tool-content { padding: 18px; border-radius: 16px; }
    .form-row-cron { grid-template-columns: repeat(2, 1fr); }
    .calc-buttons button { padding: 18px 8px; font-size: 20px; }
}

@supports (padding: max(0px)) {
    .h5-tabbar {
        padding-bottom: max(env(safe-area-inset-bottom), 6px);
    }
}
