/* ==========================================================================
   Aether 卡网展示站 — 前台样式
   ========================================================================== */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-dark: color-mix(in srgb, var(--primary) 82%, #0b1a3a);
    --primary-soft: #eef4ff;
    --primary-soft: color-mix(in srgb, var(--primary) 9%, white);
    --primary-line: #dbe7ff;
    --primary-line: color-mix(in srgb, var(--primary) 20%, white);
    --bg: #f4f7fc;
    --surface: #ffffff;
    --ink: #1b2638;
    --ink-soft: #465166;
    --muted: #8b95a7;
    --line: #e9eef6;
    --shadow-sm: 0 2px 8px rgba(35, 55, 90, 0.04);
    --shadow-md: 0 10px 30px rgba(35, 55, 90, 0.08);
    --shadow-lg: 0 24px 70px rgba(20, 38, 70, 0.18);
    --radius: 14px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    background: var(--bg);
    background-image:
        radial-gradient(900px 440px at 50% -220px, color-mix(in srgb, var(--primary) 9%, transparent), transparent 72%),
        linear-gradient(180deg, #f7faff 0, #f4f7fc 420px, #f4f7fc 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

[hidden] {
    display: none !important;
}

.is-hidden {
    display: none !important;
}

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

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    display: inline-block;
    vertical-align: -0.22em;
    flex: none;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(226, 234, 246, 0.9);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    backdrop-filter: saturate(180%) blur(18px);
}

.header-inner {
    width: 100%;
    max-width: 856px;
    height: 68px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--primary);
    min-width: 0;
    border-radius: 10px;
}

.brand:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 26%, white);
    outline-offset: 4px;
}

.brand-mark {
    width: 30px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: none;
}

.brand-mark .icon {
    width: 29px;
    height: 29px;
    stroke-width: 2;
}

.brand-text {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid #e4eaf3;
    background: rgba(255, 255, 255, 0.9);
    color: #566178;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 6px rgba(31, 50, 80, 0.04);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-toggle .icon {
    width: 22px;
    height: 22px;
}

.menu-toggle:hover {
    border-color: var(--primary-line);
    color: var(--primary);
}

.menu-toggle:active {
    transform: scale(0.96);
}

/* 下拉菜单 */
.site-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: max(16px, calc((100vw - 856px) / 2 + 18px));
    z-index: 90;
    width: min(330px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 100px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    padding: 18px;
    animation: menuIn 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.site-menu-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.site-menu-head strong {
    display: block;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.site-menu-head span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.icon-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 9px;
    color: #7a8496;
    display: grid;
    place-items: center;
    flex: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover {
    background: #f6f8fc;
    color: var(--ink);
}

.icon-button .icon {
    width: 18px;
    height: 18px;
}

.menu-description {
    margin: 14px 0;
    color: #6d7788;
    font-size: 13px;
    line-height: 1.75;
}

.menu-nav {
    display: grid;
    gap: 3px;
    margin: 4px -7px 0;
}

.menu-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 9px;
    border-radius: 9px;
    color: #3c475b;
    font-size: 13.5px;
    transition: background 0.15s ease, color 0.15s ease;
}

.menu-nav a:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.menu-nav a > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.menu-nav .icon {
    width: 17px;
    height: 17px;
    color: #8b95a7;
}

.menu-nav a:hover .icon {
    color: var(--primary);
}

.menu-count {
    min-width: 23px;
    height: 21px;
    padding: 0 7px;
    border-radius: 999px;
    background: #f0f3f8;
    color: #8b95a7;
    font-size: 11px;
    font-weight: 650;
    display: grid;
    place-items: center;
}

.menu-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.menu-service,
.menu-admin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: #59657a;
    font-size: 12.5px;
    font-weight: 600;
}

.menu-service {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    flex: 1;
}

.menu-service:hover {
    background: var(--primary-dark);
}

.menu-admin:hover {
    border-color: var(--primary-line);
    color: var(--primary);
}

.menu-service .icon,
.menu-admin .icon {
    width: 16px;
    height: 16px;
}

/* --------------------------------------------------------------------------
   Page / search / tabs
   -------------------------------------------------------------------------- */

.page {
    width: 100%;
    max-width: 856px;
    margin: 0 auto;
    padding: 28px 18px 26px;
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
    height: 62px;
    padding: 0 14px 0 20px;
    background: #fff;
    border: 1px solid rgba(231, 238, 248, 0.95);
    border-radius: 999px;
    box-shadow: 0 6px 22px rgba(48, 73, 115, 0.07), 0 1px 2px rgba(48, 73, 115, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar:focus-within {
    border-color: color-mix(in srgb, var(--primary) 35%, white);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.12), 0 0 0 4px color-mix(in srgb, var(--primary) 8%, transparent);
}

.search-icon {
    display: grid;
    place-items: center;
    color: #78849a;
    flex: none;
}

.search-icon .icon {
    width: 22px;
    height: 22px;
    stroke-width: 2.1;
}

.search-bar input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
    letter-spacing: 0.1px;
}

.search-bar input::placeholder {
    color: #9aa4b5;
    opacity: 1;
}

.search-bar input::-webkit-search-cancel-button,
.search-bar input::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

.search-clear {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9aa4b5;
    display: grid;
    place-items: center;
    flex: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.search-clear:hover {
    background: #f2f5fa;
    color: #566178;
}

.search-clear .icon {
    width: 19px;
    height: 19px;
    stroke-width: 2;
}

.tab-bar {
    display: flex;
    align-items: stretch;
    gap: 2px;
    min-height: 64px;
    margin-top: 22px;
    padding: 0 7px;
    background: #fff;
    border: 1px solid rgba(231, 238, 248, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 18px rgba(48, 73, 115, 0.055);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.tab-bar::-webkit-scrollbar {
    display: none;
}

.tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    height: 63px;
    padding: 0 17px;
    border: 0;
    background: transparent;
    color: #737d90;
    font-size: 13.5px;
    font-weight: 550;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.tab .icon {
    width: 18px;
    height: 18px;
    stroke-width: 1.7;
}

.tab::after {
    content: "";
    position: absolute;
    left: 17px;
    right: 17px;
    bottom: 5px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.tab:hover {
    color: var(--ink-soft);
}

.tab.is-active {
    color: var(--primary);
    font-weight: 700;
}

.tab.is-active .icon {
    stroke-width: 2;
}

.tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   Sections / cards
   -------------------------------------------------------------------------- */

.results {
    margin-top: 22px;
}

.card-section {
    margin-bottom: 22px;
}

.card-section:last-of-type {
    margin-bottom: 0;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    padding: 15px 21px;
    margin-bottom: 13px;
    border-radius: 12px;
    background: #eaf1fd;
    background: linear-gradient(
        100deg,
        color-mix(in srgb, var(--primary) 9%, white) 0%,
        color-mix(in srgb, var(--primary) 4%, white) 58%,
        #f3f7fd 100%
    );
    border: 1px solid color-mix(in srgb, var(--primary) 10%, #e5edf9);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.section-head h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -0.25px;
    color: #222d40;
    line-height: 1.35;
    word-break: break-word;
}

.section-count {
    min-width: 27px;
    height: 26px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 7px;
    background: #68788f;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    flex: none;
}

.section-head p {
    margin: 0;
    color: #7c879a;
    font-size: 11.5px;
    text-align: right;
    max-width: 46%;
    line-height: 1.5;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.bookmark-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 178px;
    padding: 19px 18px 15px;
    background: #fff;
    border: 1px solid rgba(234, 239, 247, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: inherit;
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.22s ease, border-color 0.22s ease;
}

.bookmark-card[href] {
    cursor: pointer;
}

.bookmark-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 28%, white);
    outline-offset: 3px;
    border-color: var(--primary);
}

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

.card-icon {
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    flex: none;
    font-size: 19px;
    line-height: 1;
    border-radius: 10px;
    background: #f1f5fc;
    border: 1px solid rgba(228, 235, 246, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.tone-0 .card-icon { background: #edf4ff; }
.tone-1 .card-icon { background: #f1efff; }
.tone-2 .card-icon { background: #fff0f3; }
.tone-3 .card-icon { background: #eafaf3; }
.tone-4 .card-icon { background: #fff6e8; }
.tone-5 .card-icon { background: #eef8ff; }

.card-head h3 {
    margin: 0;
    min-width: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.15px;
    color: #202b3e;
    overflow-wrap: anywhere;
}

.card-description {
    margin: 13px 0 15px;
    color: #626d80;
    font-size: 13px;
    line-height: 1.82;
    letter-spacing: 0.05px;
    overflow-wrap: anywhere;
}

.card-description.is-empty {
    color: #a3adbc;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f2f5fa;
    color: #9aa4b4;
    font-size: 11.5px;
    letter-spacing: 0.1px;
}

.card-url {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-url .icon {
    width: 13px;
    height: 13px;
    flex: none;
    opacity: 0.75;
}

.card-arrow {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #a4aebd;
    flex: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.card-arrow .icon {
    width: 14px;
    height: 14px;
}

@media (hover: hover) and (pointer: fine) {
    .bookmark-card[href]:hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--primary) 18%, #e9eef6);
        box-shadow: 0 14px 34px rgba(36, 58, 96, 0.11);
    }

    .bookmark-card[href]:hover .card-arrow {
        background: var(--primary-soft);
        color: var(--primary);
        transform: translateX(2px);
    }
}

/* --------------------------------------------------------------------------
   Empty / footer / FAB
   -------------------------------------------------------------------------- */

.empty-state {
    padding: 52px 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed #dfe7f2;
    border-radius: 18px;
}

.empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--primary);
    background: var(--primary-soft);
}

.empty-icon .icon {
    width: 27px;
    height: 27px;
}

.empty-state h2 {
    margin: 0 0 7px;
    font-size: 17px;
    letter-spacing: -0.2px;
}

.empty-state p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-action {
    display: inline-flex;
    margin-top: 18px;
    padding: 9px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--primary);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 16px;
    padding: 38px 8px 8px;
    color: #98a2b3;
    font-size: 11.5px;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #98a2b3;
    border-bottom: 1px solid transparent;
}

.site-footer a:hover {
    color: var(--primary);
    border-bottom-color: currentColor;
}

.service-fab {
    position: fixed;
    right: 24px;
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
    z-index: 70;
    width: 60px;
    height: 60px;
    border: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--primary);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 82%, white), var(--primary-dark));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 34%, transparent), 0 3px 8px rgba(20, 40, 80, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-fab .icon {
    width: 27px;
    height: 27px;
    stroke-width: 1.7;
}

.service-fab:hover {
    transform: translateY(-2px) scale(1.03);
}

.service-fab:active {
    transform: scale(0.96);
}

.service-fab:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 30%, white);
    outline-offset: 4px;
}

.fab-ping {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
    animation: fabPing 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) infinite;
    pointer-events: none;
}

@keyframes fabPing {
    0% { transform: scale(0.92); opacity: 0.7; }
    70%, 100% { transform: scale(1.32); opacity: 0; }
}

/* --------------------------------------------------------------------------
   Service dialog
   -------------------------------------------------------------------------- */

.service-dialog {
    width: min(382px, calc(100vw - 30px));
    max-width: none;
    max-height: calc(100vh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 26px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 34px 100px rgba(10, 23, 46, 0.34);
    overflow: auto;
}

.service-dialog[open] {
    animation: dialogIn 0.26s cubic-bezier(0.16, 0.84, 0.28, 1);
}

@keyframes dialogIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-dialog::backdrop {
    background: rgba(13, 27, 51, 0.46);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 19px 0;
}

.dialog-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.8px;
}

.dialog-kicker .icon {
    width: 14px;
    height: 14px;
}

.service-body {
    padding: 8px 30px 28px;
    text-align: center;
}

.service-avatar {
    width: 76px;
    height: 76px;
    margin: 4px auto 18px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    color: #fff;
    background: var(--primary);
    background: linear-gradient(145deg, color-mix(in srgb, var(--primary) 80%, white), var(--primary-dark));
    box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 28%, transparent);
}

.service-avatar .icon {
    width: 36px;
    height: 36px;
}

.service-qr {
    width: 188px;
    margin: 3px auto 18px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.service-qr img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 11px;
}

.service-body h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 750;
    letter-spacing: -0.4px;
}

.service-description {
    margin: 0 0 22px;
    color: #6c7789;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.service-action {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    box-shadow: 0 9px 24px color-mix(in srgb, var(--primary) 24%, transparent);
    transition: background 0.2s ease, transform 0.2s ease;
}

.service-action:hover {
    background: var(--primary-dark);
}

.service-action:active {
    transform: scale(0.99);
}

.service-action .icon {
    width: 18px;
    height: 18px;
}

.service-dismiss {
    margin-top: 15px;
    padding: 5px 8px;
    border: 0;
    background: transparent;
    color: #a0a9b8;
    font-size: 11.5px;
}

.service-dismiss:hover {
    color: #6d7788;
}

body.dialog-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .header-inner {
        height: 64px;
        padding: 0 16px;
    }

    .brand-text {
        font-size: 23px;
    }

    .brand-mark,
    .brand-mark .icon {
        width: 27px;
        height: 27px;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .page {
        padding: 23px 16px 22px;
    }

    .search-bar {
        height: 56px;
        padding: 0 11px 0 17px;
    }

    .search-bar input {
        font-size: 15px;
    }

    .search-icon .icon {
        width: 20px;
        height: 20px;
    }

    .search-clear {
        width: 34px;
        height: 34px;
    }

    .tab-bar {
        min-height: 60px;
        margin-top: 19px;
        padding: 0 5px;
        border-radius: 13px;
    }

    .tab {
        height: 59px;
        padding: 0 14px;
        gap: 6px;
        font-size: 13px;
    }

    .tab::after {
        left: 14px;
        right: 14px;
        bottom: 4px;
    }

    .tab .icon {
        width: 16px;
        height: 16px;
    }

    .results {
        margin-top: 19px;
    }

    .card-section {
        margin-bottom: 19px;
    }

    .section-head {
        min-height: 59px;
        padding: 13px 16px;
        margin-bottom: 11px;
        border-radius: 11px;
    }

    .section-head h2 {
        font-size: 17.5px;
    }

    .section-count {
        min-width: 25px;
        height: 24px;
        padding: 0 7px;
        font-size: 11.5px;
    }

    .section-head p {
        font-size: 10.5px;
    }

    .cards-grid {
        gap: 11px;
    }

    .bookmark-card {
        min-height: 166px;
        padding: 15px 14px 12px;
        border-radius: 12px;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 17px;
        border-radius: 9px;
    }

    .card-head {
        gap: 8px;
    }

    .card-head h3 {
        font-size: 14px;
    }

    .card-description {
        margin: 11px 0 12px;
        font-size: 12.5px;
        line-height: 1.75;
    }

    .card-foot {
        padding-top: 10px;
        font-size: 10.5px;
    }

    .card-arrow {
        width: 20px;
        height: 20px;
    }

    .site-footer {
        padding-top: 30px;
    }

    .service-fab {
        right: 18px;
        bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        width: 56px;
        height: 56px;
    }

    .service-fab .icon {
        width: 25px;
        height: 25px;
    }

    .service-body {
        padding: 6px 25px 25px;
    }
}

@media (max-width: 355px) {
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bookmark-card {
        min-height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
