:root {
  --theme-color-primary: #656DE6;
  --theme-color-primary-rgb: 101, 109, 230;
  --theme-color-primary-dark: #3943df;
  --theme-color-primary-light: #9197ed;
  --theme-color-primary-light-bg: #f2f3fd;
  --theme-color-primary-soft: rgba(101, 109, 230, 0.1);
  --theme-color-primary-glow: rgba(101, 109, 230, 0.24);
  --theme-color-focus-ring: rgba(101, 109, 230, 0.16);
}


/* Navigation site (/site) */
.navsite-wrap {
    width: 100%;
    min-width: 0;
}

.navsite-wrap .ub-breadcrumb {
    width: 100%;
}

.navsite-catbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: .875rem 1rem;
    margin-bottom: 1rem;
    background: var(--color-content-bg);
    border: 1px solid var(--color-body-line);
    border-radius: var(--size-radius);
}

.navsite-cat {
    display: inline-block;
    padding: .375rem .9375rem;
    border-radius: 999px;
    font-size: .875rem;
    line-height: 1.3rem;
    color: var(--color-text);
    transition: var(--transition);
}

.navsite-cat:hover {
    color: var(--color-primary);
    background: var(--color-body-block-bg);
}

.navsite-cat.active {
    color: #fff;
    background: var(--color-primary);
    box-shadow: 0 4px 12px var(--color-primary-glow);
}

.navsite-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 1rem;
}

.navsite-count {
    font-size: .875rem;
    color: var(--color-tertiary);
}

.navsite-count b {
    color: var(--color-primary);
    font-size: 1rem;
}

.navsite-current {
    margin-left: .25rem;
}

.navsite-search {
    position: relative;
    width: 16rem;
    max-width: 46vw;
}

.navsite-search .iconfont {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: .875rem;
    color: var(--color-tertiary);
    pointer-events: none;
}

.navsite-search input {
    width: 100%;
    height: 2.25rem;
    padding: 0 .875rem 0 2.25rem;
    font-size: .875rem;
    color: var(--color-text);
    background: var(--color-content-bg);
    border: 1px solid var(--color-body-line);
    border-radius: 999px;
    outline: none;
    transition: var(--transition);
}

.navsite-search input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-soft);
}

.navsite-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.navsite-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: .625rem 0 .25rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-body-line);
}

.navsite-grid > .navsite-heading:first-child {
    margin-top: 0;
}

.navsite-heading-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-heading);
}

.navsite-heading-count {
    display: inline-block;
    margin-left: .5rem;
    padding: 0 .4375rem;
    border-radius: 999px;
    background: var(--color-primary-light-bg);
    color: var(--color-primary);
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.25rem;
    vertical-align: middle;
}

.navsite-heading-more {
    font-size: .8125rem;
    color: var(--color-tertiary);
    transition: var(--transition);
}

.navsite-heading-more:hover {
    color: var(--color-primary);
}

.navsite-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem 1rem;
    background: var(--color-content-bg);
    border: 1px solid var(--color-body-line);
    border-radius: var(--size-radius);
    color: var(--color-text);
    transition: var(--transition);
    overflow: hidden;
}

.navsite-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
    box-shadow: 0 10px 24px rgba(var(--theme-color-primary-rgb, 101, 109, 230), .16);
}

.navsite-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: .875rem;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
}

.navsite-logo img {
    width: auto;
    height: auto;
    max-width: 2.25rem;
    max-height: 2.25rem;
    object-fit: contain;
}

.navsite-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 1.375rem;
    font-weight: 600;
}

.navsite-title {
    margin: .75rem 0 .25rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-heading);
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navsite-desc {
    margin: 0;
    width: 100%;
    min-height: 2.4375rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: var(--color-tertiary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.navsite-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: .75rem;
    padding-top: .625rem;
    border-top: 1px dashed var(--color-body-line);
    font-size: .75rem;
    color: var(--color-tertiary);
}

.navsite-meta .iconfont {
    font-size: .75rem;
}

.navsite-go {
    color: var(--color-primary);
    font-weight: 500;
}

.navsite-card:hover .navsite-go {
    opacity: .8;
}

.navsite-noresult {
    display: none;
    padding: 3rem 1rem;
    text-align: center;
    font-size: .9375rem;
    color: var(--color-tertiary);
}

.navsite-noresult .iconfont {
    margin-right: .25rem;
}

@media (max-width: 991px) {
    .navsite-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .navsite-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .navsite-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .navsite-search {
        width: 100%;
        max-width: none;
    }
}

/* 首页（分类预览 + 引导） */
.navsite-hero-search {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.navsite-hero-search form {
    display: flex;
    width: 100%;
    max-width: 560px;
}

.navsite-hero-search input {
    flex: 1;
    height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 23px 0 0 23px;
    outline: none;
    font-size: 14px;
    color: var(--color-text);
}

.navsite-hero-search button {
    height: 46px;
    padding: 0 26px;
    border: 0;
    border-radius: 0 23px 23px 0;
    background: #1f2430;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.navsite-section {
    margin-top: 1.5rem;
}

.navsite-section .navsite-heading {
    margin-top: 0;
}

.navsite-section .navsite-grid {
    margin-top: .75rem;
}

/* ===== 站点卡片底部工具（书签收藏 + 分享） ===== */
.navsite-cell {
    position: relative;
    min-width: 0;
}

.navsite-cell > .navsite-card {
    height: 100%;
}

.navsite-cell .navsite-meta {
    padding-right: 3.5rem;
}

.navsite-tools {
    position: absolute;
    right: .75rem;
    bottom: .5rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

.navsite-fav,
.navsite-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    color: #b6bfcc;
    cursor: pointer;
    line-height: 1;
    transition: color .18s, transform .18s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.navsite-fav svg,
.navsite-share svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.navsite-fav:hover,
.navsite-share:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

.navsite-fav:focus-visible,
.navsite-share:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: .25rem;
}

.navsite-fav.is-done {
    color: var(--color-primary);
}

.navsite-fav.is-done svg {
    fill: currentColor;
}

.navsite-fav.is-loading {
    opacity: .5;
    cursor: wait;
}

/* 轻提示 */
.navsite-tip {
    position: fixed;
    left: 50%;
    bottom: 3rem;
    z-index: 9999;
    transform: translate(-50%, 1rem);
    padding: .625rem 1.25rem;
    border-radius: 999px;
    background: rgba(31, 39, 51, .88);
    color: #fff;
    font-size: .8125rem;
    line-height: 1.4;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}

.navsite-tip.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ===== 我的网址（首页区块，站点主色） ===== */
.myurls-block {
    margin-top: 1.5rem;
    padding: 0 1.5rem;
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: .75rem;
}

.myurls-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 -1.5rem;
    padding: .875rem 1.5rem;
    background: linear-gradient(90deg, rgba(var(--theme-color-primary-rgb, 47, 107, 255), .08), rgba(var(--theme-color-primary-rgb, 47, 107, 255), .02));
    border-bottom: 1px solid #f3f5f8;
    border-radius: .75rem .75rem 0 0;
}

.myurls-block-title {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 0;
}

.myurls-block-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: .375rem;
    background: rgba(var(--theme-color-primary-rgb, 47, 107, 255), .12);
    color: var(--color-primary);
}

.myurls-block-icon svg {
    fill: currentColor;
}

.myurls-block-title h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1f2733;
}

.myurls-block-lock {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .125rem .5rem;
    border-radius: 999px;
    background: #f0f2f5;
    color: #98a2b3;
    font-size: .75rem;
}

.myurls-block-lock .iconfont {
    font-size: .75rem;
}

.myurls-block-actions {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-shrink: 0;
}

.myurls-link {
    color: #8b95a5;
    font-size: .8125rem;
    transition: color .18s;
}

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

.myurls-add-btn {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .4375rem 1rem;
    border-radius: .3125rem;
    background: var(--color-primary);
    color: #fff !important;
    font-size: .8125rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .18s;
}

.myurls-add-btn:hover {
    background: var(--color-primary-dark, #2456d6);
    color: #fff;
}

.myurls-add-btn .iconfont {
    font-size: .75rem;
}

.myurls-outline-btn {
    display: inline-flex;
    align-items: center;
    padding: .4375rem 1rem;
    border-radius: .3125rem;
    border: 1px solid var(--color-primary);
    background: #fff;
    color: var(--color-primary);
    font-size: .8125rem;
    line-height: 1.4;
    white-space: nowrap;
    transition: background .18s;
}

.myurls-outline-btn:hover {
    background: rgba(var(--theme-color-primary-rgb, 47, 107, 255), .06);
}

.myurls-block-body {
    padding: .875rem 0;
}

/* 收藏列表：横排紧凑卡片，铺满整行 */
.myurls-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .625rem;
}

.myurls-item {
    display: flex;
    align-items: center;
    gap: .625rem;
    min-width: 0;
    padding: .625rem .75rem;
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: .375rem;
    transition: border-color .18s, background .18s, box-shadow .18s;
}

.myurls-item:hover {
    background: #fff;
    border-color: rgba(var(--theme-color-primary-rgb, 47, 107, 255), .4);
    box-shadow: 0 4px 12px rgba(var(--theme-color-primary-rgb, 47, 107, 255), .08);
}

.myurls-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: .3125rem;
    background: #fff;
    border: 1px solid #eef0f4;
    overflow: hidden;
}

.myurls-item-icon img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
}

.myurls-item-icon .navsite-initial {
    width: 100%;
    height: 100%;
    font-size: .8125rem;
    border-radius: 0;
}

.myurls-item-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.35;
}

.myurls-item-text strong {
    font-size: .8125rem;
    font-weight: 600;
    color: #1f2733;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.myurls-item-text em {
    font-style: normal;
    font-size: .6875rem;
    color: #b0b8c4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.myurls-block-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid #f3f5f8;
    font-size: .75rem;
    color: #b0b8c4;
}

.myurls-block-foot b {
    color: #6b7686;
    font-weight: 600;
}

.myurls-block-foot a {
    display: inline-flex;
    align-items: center;
    gap: .125rem;
    color: #8b95a5;
    transition: color .18s;
}

.myurls-block-foot a:hover {
    color: var(--color-primary);
}

.myurls-block-foot .iconfont {
    font-size: .6875rem;
}

/* 访客引导 / 空状态 */
.myurls-guest,
.myurls-empty {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-wrap: wrap;
    padding: .875rem 1rem;
    background: rgba(var(--theme-color-primary-rgb, 47, 107, 255), .04);
    border: 1px dashed rgba(var(--theme-color-primary-rgb, 47, 107, 255), .35);
    border-radius: .375rem;
}

.myurls-guest-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    font-size: .8125rem;
}

.myurls-guest-icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.myurls-guest-text {
    flex: 1 1 16rem;
    min-width: 0;
}

.myurls-guest-text h3 {
    margin: 0;
    font-size: .8125rem;
    font-weight: 600;
    color: #1f2733;
}

.myurls-guest-text p {
    margin: .125rem 0 0;
    font-size: .75rem;
    line-height: 1.5;
    color: #b0b8c4;
}

.myurls-guest-actions {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-shrink: 0;
}

@media screen and (max-width: 60rem) {
    .myurls-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 40rem) {
    .myurls-block {
        padding: 0 1rem;
    }

    .myurls-block-head {
        margin: 0 -1rem;
        padding: .875rem 1rem;
    }

    .myurls-list {
        grid-template-columns: 1fr;
    }

    .myurls-guest,
    .myurls-empty {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .myurls-guest-actions {
        justify-content: center;
    }
}

.navsite-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 1.5rem 0 2rem;
    padding: 22px 26px;
    border-radius: var(--size-radius);
    background: linear-gradient(120deg, #eef4ff, #f7f2ff);
    border: 1px solid #e4ecff;
}

.navsite-cta-title {
    font-weight: 600;
    color: var(--color-heading);
}

.navsite-cta-sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--color-tertiary);
}

.navsite-cta-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 10px;
    background: var(--color-primary);
    color: #fff;
    font-size: 14px;
}

.navsite-cta-btn:hover {
    opacity: .9;
    color: #fff;
}


/* ============================================================
 * 首页（方案 A） · 全部选择器限定在 .home-a 作用域
 * 不影响导航页 /site 的样式
 * ============================================================ */
/*!
 * 小泽导航 · 首页（方案 A）
 * 视觉参数取自「首页方案A原型-v1.4」；全部选择器限定在 .home-a 作用域内，
 * 不修改 theme/default/css/style.css（该文件同时服务导航页 /site）。
 */

.home-a {
    --ink: #0b1020;
    --ink2: #151d3b;
    --ink3: #1d2650;
    --brand: #6d5efc;
    --brand2: #a78bfa;
    --cyan: #35d0e8;
    --paper: #f5f7fc;
    --card: #fff;
    --text: #1a2134;
    --muted: #6c748c;
    --line: #e5e8f2;
    --r: 18px;
    --shadow: 0 8px 30px rgba(24, 32, 70, .07);
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 72px;
}

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

.home-a a { color: inherit; text-decoration: none; }
.home-a h1, .home-a h2, .home-a h3, .home-a p { margin: 0; padding: 0; }
.home-a form { margin: 0; padding: 0; }
.home-a button { font-family: inherit; }
.home-a .wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero + 信任条：同一块深色「舞台」 ----------
   渐隐带为「两层交叉溶解」：
     ::before = 斜向深色层（125deg），铺满舞台、底部用遮罩逐列淡出
     ::after  = 实色纸色层，覆盖底部 --fade-h，从透明逐列淡入
   两层 alpha 互补 → 斜向渐变左右两侧的深浅差被「化开」，不会出现左边缘断层。 */
.home-a .home-stage { --fade-h: 170px; position: relative; background: var(--paper); }

.home-a .home-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(125deg, #0b1020 0%, #151d3b 62%, #1b2348 100%);
}

.home-a .home-stage::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--fade-h);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to bottom, #1b2348 0%, #26356a 20%, #4f74b4 46%, #aec4e8 74%, #f5f7fc 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 80%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 80%, #000 100%);
}

.home-a .home-hero { position: relative; z-index: 2; overflow: hidden; background: transparent; color: #fff; }

.home-a .home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .11) 1px, transparent 1px);
    background-size: 23px 23px;
    -webkit-mask-image: linear-gradient(100deg, transparent 8%, #000 75%);
    mask-image: linear-gradient(100deg, transparent 8%, #000 75%);
    opacity: .55;
    pointer-events: none;
}

.home-a .home-hero .wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 56px;
    padding-top: 66px;
    padding-bottom: 40px;
    align-items: center;
}

.home-a .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #c9c2ff;
    border: 1px solid rgba(167, 139, 250, .4);
    background: rgba(109, 94, 252, .14);
    padding: 5px 13px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.home-a .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.home-a .hero-title { font-size: 46px; line-height: 1.25; font-weight: 800; letter-spacing: -.5px; color: #fff; }

.home-a .hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #a78bfa, #35d0e8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-a .hero-sub { margin-top: 16px; font-size: 16px; color: #b9c0dc; max-width: 520px; }

.home-a .hero-search {
    margin-top: 30px;
    display: flex;
    background: #fff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .28);
    max-width: 560px;
}

.home-a .hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 15px;
    padding: 11px 14px;
    color: var(--text);
    background: transparent;
    font-family: inherit;
    line-height: 20px;
}

.home-a .hero-search button {
    border: 0;
    background: linear-gradient(135deg, var(--brand), #4e40dd);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    padding: 0 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: filter .18s;
    white-space: nowrap;
}

.home-a .hero-search button:hover { filter: brightness(1.1); }
.home-a .hero-search button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.home-a .chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 9px; max-width: 580px; }

.home-a .chip {
    font-size: 13.5px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .06);
    color: #d6daf0;
    cursor: pointer;
    line-height: 20px;
    transition: background .18s, transform .18s, color .18s, border-color .18s;
}

.home-a .chip:hover { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.home-a .chip.on { background: #fff; color: #3a2fa8; border-color: #fff; font-weight: 600; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.home-a .chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.home-a .chip-hint { font-size: 12px; color: #8e96bb; margin-top: 13px; }

/* ---------- Hero 右侧：可切换组件面板 ---------- */
.home-a .cover-panel {
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    padding: 16px 18px 18px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
}

.home-a .wgt-tabs { display: flex; gap: 4px; padding: 4px; background: rgba(8, 12, 32, .45); border-radius: 12px; }

.home-a .wgt-tab {
    flex: 1;
    border: 0;
    background: transparent;
    color: #9aa3c8;
    font-size: 11.5px;
    padding: 8px 2px;
    border-radius: 9px;
    cursor: pointer;
    transition: background .18s, color .18s;
    white-space: nowrap;
    line-height: 15px;
}

.home-a .wgt-tab:hover { color: #dfe3f5; background: rgba(255, 255, 255, .08); }

.home-a .wgt-tab.on {
    background: linear-gradient(135deg, var(--brand), #4e40dd);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(109, 94, 252, .42);
}

.home-a .wgt-tab:focus-visible,
.home-a .btn-mini:focus-visible,
.home-a .wx-city button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.home-a .wgt-body {
    margin-top: 14px;
    min-height: 288px;
    display: flex;
    flex-direction: column;
    transition: opacity .2s ease, transform .2s ease;
}

.home-a .wgt-body.fading { opacity: 0; transform: translateY(5px); }
.home-a .wgt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.home-a .wgt-head b { color: #fff; font-size: 13.5px; font-weight: 650; }
.home-a .wgt-head span { font-size: 11.5px; color: #9aa3c8; }

/* 天气 */
.home-a .wx-city { display: flex; gap: 5px; margin: 13px 0 0; }

.home-a .wx-city button {
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .05);
    color: #c3c9e4;
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .16s;
}

.home-a .wx-city button:hover { background: rgba(255, 255, 255, .13); }
.home-a .wx-city button.on { background: rgba(255, 255, 255, .94); color: #2f2a7a; border-color: transparent; font-weight: 600; }
.home-a .wx-main { display: flex; align-items: center; gap: 13px; margin-top: 16px; }
.home-a .wx-temp { font-size: 44px; font-weight: 750; letter-spacing: -2px; line-height: 1; color: #fff; }
.home-a .wx-temp sup { font-size: 16px; font-weight: 600; vertical-align: super; margin-left: 2px; color: #aab2d2; letter-spacing: 0; }
.home-a .wx-ico { font-size: 34px; line-height: 1; }
.home-a .wx-desc { font-size: 13.5px; color: #d5daef; margin-top: 9px; }
.home-a .wx-meta { display: flex; gap: 18px; margin-top: 16px; font-size: 11.5px; color: #98a0c6; }
.home-a .wx-meta b { display: block; color: #e6e9f7; font-size: 14px; font-weight: 650; margin-top: 3px; }

.home-a .wx-skel {
    height: 118px;
    border-radius: 12px;
    margin-top: 14px;
    background: linear-gradient(100deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .12), rgba(255, 255, 255, .05));
    background-size: 200% 100%;
    animation: ha-wxs 1.3s linear infinite;
}

@keyframes ha-wxs {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.home-a .wx-err {
    font-size: 12px;
    color: #f5c2ce;
    line-height: 1.75;
    padding: 14px;
    margin-top: 14px;
    border: 1px dashed rgba(245, 194, 206, .42);
    border-radius: 12px;
    background: rgba(245, 194, 206, .06);
}

/* 时间 */
.home-a .clk-time { font-size: 42px; font-weight: 750; letter-spacing: -1px; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.12; }
.home-a .clk-time small { font-size: 16px; color: #9aa3c8; font-weight: 600; margin-left: 4px; letter-spacing: 0; }
.home-a .clk-date { margin-top: 8px; font-size: 13.5px; color: #d5daef; }
.home-a .clk-bar { margin-top: 20px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.home-a .clk-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--brand2), var(--cyan)); transition: width .5s; }
.home-a .clk-meta { margin-top: 11px; font-size: 11.5px; color: #98a0c6; display: flex; justify-content: space-between; gap: 8px; }

/* 随机工具 */
.home-a .rnd-card {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px;
    padding: 15px;
    margin-top: 14px;
}

.home-a .rnd-card .tico { flex: none; }
.home-a .rnd-name { font-size: 16px; font-weight: 700; color: #fff; }
.home-a .rnd-sum { font-size: 12px; color: #a9b1d2; margin-top: 5px; line-height: 1.55; }
.home-a .rnd-act { margin-top: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.home-a .btn-mini {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .07);
    color: #dfe3f5;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 9px;
    cursor: pointer;
    line-height: 14px;
    transition: background .16s, transform .16s;
}

.home-a .btn-mini:hover { background: rgba(255, 255, 255, .17); transform: translateY(-1px); }

/* 今日一句 */
.home-a .quote-box { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 4px 2px; }
.home-a .quote-mark { font-size: 30px; color: rgba(167, 139, 250, .5); line-height: 1; }
.home-a .quote-txt { font-size: 15.5px; line-height: 1.78; color: #e9ecf8; margin-top: 10px; }
.home-a .quote-from { margin-top: 13px; font-size: 12px; color: #98a0c6; }

/* 分类覆盖图（默认组件） */
.home-a .cover-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.home-a .cover-row { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 10px; }
.home-a .cover-name { font-size: 11px; color: #aab1d0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-a .cover-dots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }

.home-a .cover-dots span {
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: linear-gradient(135deg, var(--brand2), var(--brand));
    opacity: .8;
    transition: opacity .18s, transform .18s, box-shadow .18s;
    cursor: pointer;
}

.home-a .cover-dots span:hover { opacity: 1; transform: scale(1.5); box-shadow: 0 0 9px rgba(109, 94, 252, .95); }
.home-a .cover-dots span.hot { background: linear-gradient(135deg, #7ce7f5, #35d0e8); }

.home-a .cover-foot {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: 11.5px;
    color: #8e96bb;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.home-a .cover-foot em { font-style: normal; color: #c9c2ff; }

/* ---------- 信任条：白卡落在深色舞台上，卡片底边 = 渐隐带起点 ---------- */
.home-a .home-trust { background: transparent; position: relative; z-index: 3; padding-bottom: var(--fade-h); }

.home-a .home-trust .wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(3, 7, 22, .55);
    padding: 18px 26px;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: var(--muted);
}

.home-a .trust-item { display: flex; align-items: center; gap: 8px; }
.home-a .trust-item svg { flex: none; }
.home-a .trust-item b { color: var(--text); font-weight: 600; }
.home-a .trust-note { margin-left: auto; font-size: 12px; color: #9aa1b5; background: #f5f6fb; padding: 4px 10px; border-radius: 6px; }

/* ---------- 通用区块 ---------- */
.home-a .sec { padding-top: 72px; }
.home-a .sec-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 24px; }
.home-a .sec-kicker { font-size: 12px; color: var(--brand); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.home-a .sec-title { font-size: 26px; font-weight: 750; letter-spacing: -.3px; color: var(--text); }
.home-a .sec-sub { font-size: 13.5px; color: var(--muted); margin-left: auto; padding-bottom: 4px; white-space: nowrap; }

/* 图标 */
.home-a .tico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.5px;
    overflow: hidden;
    box-shadow: inset 0 -8px 18px rgba(0, 0, 0, .12);
}

.home-a .tico.sm { width: 38px; height: 38px; border-radius: 11px; font-size: 14px; }

/* 有真实 logo 时：白底 + 内缩，去掉色块内阴影 */
.home-a .tico.has-logo { background: #fff !important; border: 1px solid var(--line); box-shadow: none; padding: 7px; }
.home-a .tico.sm.has-logo { padding: 5px; }
.home-a .tico img { width: 100%; height: 100%; object-fit: contain; display: block; }

.home-a .tier { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.home-a .tier.cat { color: #3b5ba8; background: #eef2fd; border-color: #d5e0f8; }
.home-a .tier.rec { color: #0c7a55; background: #e8f8f0; border-color: #c5ebda; }

/* 精选大卡 */
.home-a .pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.home-a .pick-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    gap: 20px;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.home-a .pick-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(var(--brand), var(--cyan));
}

.home-a .pick-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(24, 32, 70, .13); }
.home-a .pick-card .tico { width: 72px; height: 72px; border-radius: 18px; font-size: 25px; }
.home-a .pick-card .tico.has-logo { padding: 12px; }
.home-a .pick-body { flex: 1; min-width: 0; }
.home-a .pick-top { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.home-a .pick-name { font-size: 19px; font-weight: 700; }
.home-a .pick-quote { margin-top: 11px; font-size: 14px; color: #4d556e; line-height: 1.65; border-left: 2px solid #dcd6ff; padding-left: 11px; }
.home-a .pick-tags { display: flex; gap: 7px; margin-top: 13px; flex-wrap: wrap; }
.home-a .pick-go { margin-top: 15px; font-size: 13px; color: var(--brand); font-weight: 600; }
.home-a .pick-go span { transition: transform .2s; display: inline-block; }
.home-a .pick-card:hover .pick-go span { transform: translateX(4px); }

/* 按任务挑 */
.home-a .task-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }
.home-a .scene-list { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }

.home-a .scene-btn {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 14px;
    color: #545c75;
    cursor: pointer;
    transition: background .16s, color .16s;
}

.home-a .scene-btn:hover { background: #f5f6fc; }
.home-a .scene-btn.on { background: linear-gradient(135deg, #efecff, #e9f6ff); color: #3a2fa8; font-weight: 650; }
.home-a .scene-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.home-a .scene-ico { width: 26px; height: 26px; border-radius: 8px; background: #f0f1f8; display: grid; place-items: center; font-size: 14px; flex: none; }
.home-a .scene-btn.on .scene-ico { background: #fff; }
.home-a .scene-list .mini-note { font-size: 11.5px; color: #9aa1b5; padding: 12px 13px 4px; line-height: 1.55; border-top: 1px solid var(--line); margin-top: 6px; }

.home-a .task-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.home-a .task-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 4px 14px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
}

.home-a .task-panel-head b { font-size: 15px; }
.home-a .task-panel-head span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.home-a .task-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 10px;
    border-radius: 12px;
    transition: background .16s;
    cursor: pointer;
    border-bottom: 1px solid #f1f2f8;
}

.home-a .task-row:last-child { border-bottom: 0; }
.home-a .task-row:hover { background: #f8f9fe; }
.home-a .task-main { flex: 1; min-width: 0; }
.home-a .task-name { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 9px; }
.home-a .task-quote { font-size: 13px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-a .task-tags { display: flex; gap: 6px; flex: none; }
.home-a .task-arrow { color: #c3c8da; font-size: 18px; flex: none; }

/* 编号榜单 */
.home-a .rank { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }

.home-a .rank-row {
    display: grid;
    grid-template-columns: 56px 40px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 13px 20px;
    border-bottom: 1px solid #f1f2f8;
    transition: background .16s;
    cursor: pointer;
}

.home-a .rank-row:last-child { border-bottom: 0; }
.home-a .rank-row:hover { background: #f8f9fe; }
.home-a .rank-no { font-size: 19px; font-weight: 800; color: #cdd2e4; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.home-a .rank-row:nth-child(-n+3) .rank-no { color: var(--brand); }
.home-a .rank-name { font-size: 15px; font-weight: 650; }
.home-a .rank-quote { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-a .rank-side { display: flex; align-items: center; gap: 8px; }

/* 我的网址 */
.home-a .mine {
    margin-top: 52px;
    background: linear-gradient(105deg, #e9ecfd, #e3f4fb);
    border: 1px solid #d7def3;
    border-radius: 18px;
    padding: 16px 20px 14px;
}

.home-a .mine-head {
    display: flex;
    align-items: center;
    gap: 13px;
}

.home-a .mine-ico {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    color: var(--brand);
    box-shadow: 0 4px 14px rgba(24, 32, 70, .1);
    flex: none;
}

.home-a .mine-title {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-a .mine-title h3 { font-size: 16.5px; font-weight: 700; color: var(--text); }

.home-a .mine-num { font-size: 12.5px; color: #5c6480; }

.home-a .mine-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #5c6480;
    background: rgba(255, 255, 255, .78);
    border: 1px solid #dbe2f5;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 16px;
}

.home-a .mine-badge::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9aa4c4;
}

.home-a .mine-act { display: flex; align-items: center; gap: 12px; flex: none; }

.home-a .mine-manage {
    font-size: 13px;
    color: #5c6480;
    transition: color .16s;
}

.home-a .mine-manage:hover { color: var(--brand); }

.home-a .mine .btn-main {
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 19px;
}

.home-a .mine-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.home-a .mcard {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: #fff;
    border: 1px solid #dbe2f5;
    border-radius: 12px;
    padding: 9px 11px;
    color: var(--text);
    text-decoration: none;
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.home-a .mcard:hover {
    border-color: #b9c4ea;
    box-shadow: 0 6px 18px rgba(24, 32, 70, .1);
    transform: translateY(-1px);
}

.home-a .mcard:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.home-a .mico {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    overflow: hidden;
}

.home-a .mico.has-logo { background: #fff; border: 1px solid #e6eaf6; padding: 4px; }
.home-a .mico.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.home-a .mmeta { flex: 1; min-width: 0; display: block; }

.home-a .mname {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 18px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-a .mhost {
    display: block;
    font-size: 11.5px;
    line-height: 16px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-a .mgo {
    flex: none;
    font-size: 13px;
    color: #aab2cd;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity .18s, transform .18s, color .18s;
}

.home-a .mcard:hover .mgo { opacity: 1; transform: translateX(0); color: var(--brand); }

.home-a .mine-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid #dbe4f7;
    font-size: 12.5px;
    color: #5c6480;
}

.home-a .mine-foot a { color: var(--brand); font-weight: 500; }
.home-a .mine-foot a:hover { text-decoration: underline; }

.home-a .mine-empty {
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #5c6480;
}

.home-a .btn-main {
    background: var(--brand);
    color: #fff;
    border: 0;
    padding: 11px 24px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    line-height: 19px;
    transition: background .18s;
}

.home-a .btn-main:hover { background: #5b4de8; }
.home-a .btn-main:focus-visible { outline: 2px solid var(--brand2); outline-offset: 2px; }

/* 底部导流 */
.home-a .home-cta {
    margin-top: 64px;
    background: linear-gradient(120deg, #111a35, #1d2650);
    border-radius: 24px;
    padding: 44px 48px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.home-a .home-cta::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109, 94, 252, .35), transparent 70%);
    pointer-events: none;
}

.home-a .home-cta h3 { font-size: 25px; font-weight: 750; color: #fff; }
.home-a .home-cta p { font-size: 14px; color: #b4bcda; margin-top: 8px; }
.home-a .home-cta .btn-main { margin-left: auto; background: #fff; color: #332a9e; position: relative; z-index: 2; padding: 13px 26px; }
.home-a .home-cta .btn-main:hover { background: #efecff; }

/* toast */
.home-a-toast {
    position: fixed;
    left: 50%;
    bottom: 36px;
    transform: translate(-50%, 20px);
    background: #1b2134;
    color: #fff;
    font-size: 13.5px;
    padding: 12px 22px;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s, transform .25s;
    z-index: 99999;
    max-width: 88vw;
    text-align: center;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.home-a-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
    .home-a .home-hero .wrap { grid-template-columns: 1fr; gap: 34px; padding-top: 44px; padding-bottom: 34px; }
    .home-a .cover-panel { max-width: 340px; }
    .home-a .hero-title { font-size: 36px; }
    .home-a .task-layout { grid-template-columns: minmax(0, 1fr); }
    .home-a .task-panel-head { flex-wrap: wrap; gap: 4px 10px; }
    .home-a .scene-list { display: flex; flex-wrap: wrap; gap: 6px; }
    .home-a .scene-btn { width: auto; }
    .home-a .scene-list .mini-note { display: none; }
    .home-a .pick-grid { grid-template-columns: 1fr; }
    .home-a .sec-sub { display: none; }
    .home-a .home-stage { --fade-h: 130px; }
    .home-a .wgt-tabs { flex-wrap: wrap; }
    .home-a .wgt-tab { flex: 1 0 28%; }
}

@media (max-width: 600px) {
    .home-a .wrap { padding: 0 16px; }
    .home-a .hero-title { font-size: 29px; }
    .home-a .home-cta { padding: 30px 26px; flex-direction: column; align-items: flex-start; }
    .home-a .home-cta .btn-main { margin-left: 0; }
    .home-a .mine { padding: 14px 16px 12px; }
    .home-a .mine-head { gap: 10px; }
    .home-a .mine-title { flex-wrap: nowrap; }
    .home-a .mine-title h3 { font-size: 15.5px; }
    .home-a .mine-badge, .home-a .mine-manage { display: none; }
    .home-a .mine-act { gap: 10px; margin-left: auto; }
    .home-a .mine-grid { grid-template-columns: 1fr; }
    .home-a .mine-foot { flex-wrap: wrap; }
    .home-a .rank-row { grid-template-columns: 40px 36px 1fr; gap: 10px; padding: 12px 14px; }
    .home-a .rank-side { display: none; }
    .home-a .task-tags { display: none; }
    .home-a .wgt-body { min-height: 0; }
    .home-a .home-trust .wrap { padding: 16px 18px; gap: 14px; }
    .home-a .trust-note { margin-left: 0; }
    .home-a .sec { padding-top: 52px; }
    .home-a .sec-title { font-size: 22px; }
    .home-a .pick-card { padding: 18px; gap: 14px; }
    .home-a .pick-card .tico { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
    .home-a .pick-name { font-size: 17px; }
}

/* 尊重系统「减弱动效」偏好 */
@media (prefers-reduced-motion: reduce) {
    .home-a .wgt-body,
    .home-a .clk-bar i { transition: none; }
    .home-a .wx-skel { animation: none; }
    .home-a .chip:hover,
    .home-a .pick-card:hover,
    .home-a .mcard:hover,
    .home-a .btn-mini:hover,
    .home-a .cover-dots span:hover { transform: none; }
    .home-a-toast { transition: opacity .2s; }
}

/* ==========================================================================
   站点导航页（/site）—— .nav-a 作用域，不影响首页与其它页面
   ========================================================================== */
.nav-a {
    --ink: #0b1020;
    --ink2: #151d3b;
    --brand: #656DE6;
    --brand2: #6d5efc;
    --violet: #a78bfa;
    --cyan: #35d0e8;
    --paper: #f5f7fc;
    --text: #1a2134;
    --muted: #6c748c;
    --line: #e5e8f2;
    --r: 16px;
    --shadow: 0 6px 22px rgba(24, 32, 70, .06);
    background: var(--paper);
    color: var(--text);
    line-height: 1.6;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 60vh;
}
.nav-a * { box-sizing: border-box; }
.nav-a a { color: inherit; text-decoration: none; }
.nav-a button { font-family: inherit; }
.nav-a .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- 深色舞台：与首页同源的双层交叉溶解 ---------- */
.nav-a .nav-stage { --fade-h: 130px; position: relative; background: var(--paper); }
.nav-a .nav-stage::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(125deg, #0b1020 0%, #151d3b 62%, #1b2348 100%);
}
.nav-a .nav-stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: var(--fade-h);
    z-index: 1; pointer-events: none;
    background: linear-gradient(to bottom, #1b2348 0%, #26356a 20%, #4f74b4 46%, #aec4e8 74%, #f5f7fc 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 80%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 80%, #000 100%);
}
.nav-a .nav-hero { position: relative; z-index: 2; color: #fff; padding: 40px 0 calc(var(--fade-h) - 40px); }
.nav-a .hero-row {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 40px; margin-bottom: 24px; flex-wrap: wrap;
}
.nav-a .hero-l { max-width: 620px; min-width: 0; }
.nav-a .hero-stats { flex: none; display: flex; gap: 28px; padding-bottom: 4px; }
.nav-a .hstat b {
    display: block; font-size: 23px; font-weight: 800; line-height: 1.15; letter-spacing: -.5px;
    background: linear-gradient(120deg, #fff, #c9d2f0);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-a .hstat span { display: block; font-size: 11.5px; color: #8e96bb; margin-top: 2px; white-space: nowrap; }
.nav-a .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #c9c2ff;
    border: 1px solid rgba(167, 139, 250, .4); background: rgba(109, 94, 252, .14);
    padding: 4px 12px; border-radius: 999px; margin-bottom: 16px;
}
.nav-a .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.nav-a .hero-title { font-size: 36px; line-height: 1.28; font-weight: 800; letter-spacing: -.4px; margin: 0; color: #fff; }
.nav-a .hero-title em {
    font-style: normal;
    background: linear-gradient(90deg, #a78bfa, #35d0e8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-a .hero-sub { margin-top: 12px; font-size: 14.5px; color: #aeb6d2; }
.nav-a .hero-r { width: 100%; max-width: 640px; min-width: 0; }

/* 唯一搜索框 */
.nav-a .big-search {
    display: flex; align-items: center; background: #fff; border-radius: 13px;
    padding: 5px 5px 5px 14px; box-shadow: 0 14px 38px rgba(0, 0, 0, .3); transition: box-shadow .2s;
}
.nav-a .big-search:focus-within { box-shadow: 0 16px 44px rgba(0, 0, 0, .36), 0 0 0 3px rgba(109, 94, 252, .5); }
.nav-a .big-search > svg { width: 18px; height: 18px; color: #8b93b5; flex: none; margin-right: 9px; }
.nav-a .big-search input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 15px; padding: 10px 0; color: var(--text);
}
.nav-a .big-search input::placeholder { color: #a6adc4; }
.nav-a .big-search kbd {
    font-family: inherit; font-size: 11px; color: #9aa2bd; border: 1px solid #dfe2ee;
    border-bottom-width: 2px; border-radius: 5px; padding: 2px 7px; margin-right: 8px; background: #fafbff;
}
.nav-a .big-search .clr {
    display: none; width: 26px; height: 26px; border: 0; border-radius: 50%;
    background: #eef0f7; color: #7d85a3; cursor: pointer; font-size: 14px; line-height: 1;
    margin-right: 6px; flex: none;
}
.nav-a .big-search.has .clr { display: block; }
.nav-a .hot { margin-top: 13px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-a .hot-label { font-size: 12px; color: #7f88ac; flex: none; }
.nav-a .hot button {
    font-size: 12.5px; padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
    color: #ccd2e8; cursor: pointer; transition: .16s;
}
.nav-a .hot button:hover { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---------- 吸顶工具条 ---------- */
.nav-a .toolbar {
    position: sticky; top: 0; z-index: 900;
    background: rgba(245, 247, 252, .9);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(229, 232, 242, .9);
}
.nav-a .toolbar .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.nav-a .cats {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px;
    overflow-x: auto; scrollbar-width: none; padding: 12px 0; -webkit-overflow-scrolling: touch;
}
.nav-a .cats::-webkit-scrollbar { display: none; }
.nav-a .cat {
    flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #5a6178;
    padding: 6px 13px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: .16s; white-space: nowrap;
}
.nav-a .cat:hover { background: #fff; color: var(--brand); border-color: #e3e6f3; }
.nav-a .cat.on { background: var(--brand); color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(101, 109, 230, .28); }
.nav-a .cat b { font-size: 11px; font-weight: 500; opacity: .62; font-variant-numeric: tabular-nums; }
.nav-a .cat.on b { opacity: .8; }
.nav-a .tb-right { flex: none; display: flex; align-items: center; gap: 8px; }
.nav-a .sortbtn {
    height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid #e5e8f2;
    background: #fff; font-size: 13px; color: #5a6178; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; transition: .16s;
}
.nav-a .sortbtn:hover { border-color: #cdd2e4; color: var(--brand); }
.nav-a .sortbtn svg { width: 12px; height: 12px; }
.nav-a .sortbtn em { font-style: normal; font-weight: 600; color: var(--text); }
.nav-a .viewsw {
    display: flex; background: #fff; border: 1px solid #e5e8f2;
    border-radius: 8px; padding: 2px; height: 32px;
}
.nav-a .viewsw button {
    width: 28px; height: 26px; border: 0; background: transparent; border-radius: 6px;
    cursor: pointer; color: #9aa1b8; display: inline-flex; align-items: center; justify-content: center;
}
.nav-a .viewsw button.on { background: var(--brand); color: #fff; }
.nav-a .viewsw svg { width: 14px; height: 14px; }

/* ---------- 主区 ---------- */
.nav-a main { padding: 26px 0 64px; }

/* 我的网址 */
.nav-a .mine {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    padding: 16px 18px; display: flex; align-items: center; gap: 16px;
    box-shadow: var(--shadow); margin-bottom: 26px; position: relative; overflow: hidden;
}
.nav-a .mine::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: linear-gradient(var(--brand2), var(--cyan));
}
.nav-a .mine-ico {
    width: 38px; height: 38px; border-radius: 12px; flex: none; display: flex;
    align-items: center; justify-content: center; color: #fff; font-size: 16px;
    background: linear-gradient(140deg, #6d5efc, #a78bfa);
}
.nav-a .mine-body { flex: 1; min-width: 0; }
.nav-a .mine-body h3 { margin: 0; font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.nav-a .mine-body h3 span {
    font-size: 11px; font-weight: 500; color: var(--brand);
    background: #f2f3fd; border-radius: 999px; padding: 2px 8px;
}
.nav-a .mine-body p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.nav-a .mine-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.nav-a .mchip {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px 0 5px;
    border-radius: 999px; background: #f7f8fd; border: 1px solid #e9ecf6;
    font-size: 13px; color: var(--text); transition: .16s;
}
.nav-a .mchip:hover { border-color: var(--brand); color: var(--brand); background: #f4f4ff; }
.nav-a .mchip .tico { width: 22px; height: 22px; border-radius: 7px; font-size: 11px; }
.nav-a .mchip .tico img { width: 15px; height: 15px; }
.nav-a .mchip.add { border-style: dashed; color: #8a91ab; padding: 0 13px; }
.nav-a .mine-act { flex: none; display: flex; align-items: center; gap: 10px; }
.nav-a .mine-act .btn {
    display: inline-flex; align-items: center; height: 32px; padding: 0 15px; border-radius: 8px;
    font-size: 13px; font-weight: 600; transition: .16s; white-space: nowrap;
}
.nav-a .mine-act .btn.ghost { background: #f2f3fd; color: var(--brand); }
.nav-a .mine-act .btn.ghost:hover { background: #e7e9fc; }
.nav-a .mine-act .btn.main { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(101, 109, 230, .26); }
.nav-a .mine-act .btn.main:hover { filter: brightness(1.06); }
.nav-a .mine.logged-out .mine-ico { background: linear-gradient(140deg, #b9c0d8, #8e96b0); }

/* 分组 */
.nav-a .grp { margin-bottom: 34px; }
.nav-a .grp.hide { display: none; }
.nav-a .grp-head {
    display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
    padding-bottom: 11px; border-bottom: 1px solid #e8ebf5;
}
.nav-a .grp-head .bar { width: 3px; height: 17px; border-radius: 2px; flex: none; }
.nav-a .grp-head h2 {
    margin: 0; font-size: 17.5px; font-weight: 700; letter-spacing: -.2px;
    display: flex; align-items: center; gap: 9px;
}
.nav-a .grp-head h2 span {
    font-size: 11.5px; font-weight: 500; color: var(--brand); background: #f2f3fd;
    border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums;
}
.nav-a .grp-sub {
    font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-a .grp-more {
    font-size: 12.5px; color: var(--muted); flex: none;
    display: inline-flex; align-items: center; gap: 4px; transition: .16s;
}
.nav-a .grp-more:hover { color: var(--brand); }
.nav-a .grp-more svg { width: 12px; height: 12px; }
.nav-a .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nav-a .grid.list { grid-template-columns: 1fr; gap: 8px; }

/* 卡片：横向紧凑（logo 左 / 文字右） */
.nav-a .card {
    display: flex; align-items: flex-start; gap: 12px; background: #fff;
    border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    position: relative; transition: .18s; min-width: 0;
}
.nav-a .card:hover { transform: translateY(-2px); border-color: #cdd2f5; box-shadow: 0 10px 26px rgba(24, 32, 70, .10); }
.nav-a .card::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px;
    border-radius: 2px; background: linear-gradient(90deg, var(--brand2), var(--cyan));
    opacity: 0; transition: .2s;
}
.nav-a .card:hover::after { opacity: .85; }
.nav-a .tico {
    width: 38px; height: 38px; border-radius: 11px; flex: none; display: flex;
    align-items: center; justify-content: center; background: #f7f8fd;
    border: 1px solid #eceef7; overflow: hidden; color: #fff; font-size: 15px; font-weight: 700;
}
.nav-a .tico img { width: 24px; height: 24px; object-fit: contain; display: block; }
.nav-a .cbody { flex: 1; min-width: 0; }
.nav-a .ctop { display: flex; align-items: center; gap: 8px; }
.nav-a .cname {
    font-size: 14.5px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-a .card:hover .cname { color: var(--brand); }
.nav-a .ctag { font-size: 11px; color: var(--muted); flex: none; display: inline-flex; align-items: center; gap: 4px; }
.nav-a .ctag i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.nav-a .cdesc {
    margin: 5px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; min-height: 2.6em;
}
.nav-a mark { background: #fff2b8; color: inherit; border-radius: 3px; padding: 0 1px; }

/* 卡片底部操作行 */
.nav-a .cfoot {
    display: flex; align-items: center; gap: 10px; margin-top: 9px;
    padding-top: 8px; border-top: 1px solid #f0f2f8;
}
.nav-a .cfoot .fav {
    position: relative; width: 22px; height: 22px; border-radius: 7px; background: #f4f5fa;
    color: #9aa1b8; display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; flex: none; transition: .16s;
}
.nav-a .cfoot .fav::after { content: ""; position: absolute; inset: -9px; }
.nav-a .cfoot .fav svg { width: 12px; height: 12px; }
.nav-a .cfoot .fav:hover { background: #e7e9fc; color: var(--brand); }
.nav-a .cfoot .fav:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-a .cfoot .fav.is-done { background: var(--brand); color: #fff; }
.nav-a .cfoot .fav.is-done svg { fill: currentColor; }
.nav-a .cfoot .fav:hover { transform: none; }
.nav-a .cfoot .fav:focus-visible { border-radius: 7px; }
.nav-a .cfoot .fav svg { stroke-width: 2; }
.nav-a .cfoot .fav.is-loading { opacity: .5; cursor: wait; }
.nav-a .cfoot .chost {
    font-size: 11px; color: #aeb4c6; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; flex: 1; min-width: 0;
}
.nav-a .cfoot .arw {
    width: 22px; height: 22px; border-radius: 7px; background: #f2f3fd; color: var(--brand);
    display: inline-flex; align-items: center; justify-content: center; flex: none; transition: .16s;
}
.nav-a .cfoot .arw svg { width: 12px; height: 12px; }
.nav-a .card:hover .cfoot .arw { background: var(--brand); color: #fff; }

/* 列表视图 */
.nav-a .grid.list .card { align-items: center; padding: 10px 14px; }
.nav-a .grid.list .tico { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
.nav-a .grid.list .tico img { width: 20px; height: 20px; }
.nav-a .grid.list .cname { font-size: 14px; }
.nav-a .grid.list .ctop { display: inline-flex; }
.nav-a .grid.list .cbody { display: flex; align-items: center; gap: 12px; }
.nav-a .grid.list .cdesc { margin: 0; font-size: 12px; -webkit-line-clamp: 1; min-height: 0; flex: 1; min-width: 0; }
.nav-a .grid.list .cfoot { margin: 0 0 0 auto; padding: 0; border: 0; flex: none; gap: 8px; }
.nav-a .grid.list .cfoot .fav { width: 24px; height: 24px; }
.nav-a .grid.list .cfoot .chost { display: none; }
.nav-a .grid.list .cfoot .arw { width: 24px; height: 24px; background: transparent; color: #b9bfd2; }
.nav-a .grid.list .card:hover .cfoot .arw { color: var(--brand); }

/* 空态与计数 */
.nav-a .empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px; display: none; }
.nav-a .empty.show { display: block; }
.nav-a .empty .ic {
    width: 52px; height: 52px; border-radius: 16px; background: #eceef8; color: #a9b0c8;
    display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.nav-a .empty .ic svg { width: 24px; height: 24px; }
.nav-a .count-note { text-align: center; color: #9aa1b8; font-size: 12.5px; padding: 4px 0 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
    .nav-a .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-a .nav-hero .wrap { gap: 28px; }
}
@media (max-width: 900px) {
    .nav-a .hero-title { font-size: 30px; }
    .nav-a .hero-l { flex: 1 1 100%; max-width: none; }
    .nav-a .hero-stats { width: 100%; justify-content: flex-start; gap: 22px; padding-bottom: 0; }
    .nav-a .hero-r { max-width: none; }
    .nav-a .mine { flex-direction: column; align-items: flex-start; gap: 12px; }
    .nav-a .mine-act { width: 100%; }
    .nav-a .mine-act .btn { flex: 1; justify-content: center; }
}
@media (max-width: 767px) {
    .nav-a .wrap { padding: 0 16px; }
    .nav-a .grid { grid-template-columns: 1fr; }
    .nav-a .toolbar .wrap { height: auto; flex-wrap: wrap; padding: 0; }
    .nav-a .cats { order: 1; width: 100%; flex-basis: 100%; }
    .nav-a .tb-right { order: 2; width: 100%; padding: 0 0 10px; justify-content: flex-end; }
    .nav-a .cfoot .fav { width: 26px; height: 26px; }
    .nav-a .cfoot .fav::after { inset: -12px; }
    .nav-a .grp-sub { display: none; }
    .nav-a .hero-title { font-size: 26px; line-height: 1.32; }
    .nav-a .hero-sub { font-size: 13.5px; }
    .nav-a .hero-stats { gap: 18px; }
    .nav-a .hstat b { font-size: 20px; }
    .nav-a .hstat span { font-size: 11px; }
    .nav-a .big-search kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .nav-a *, .nav-a *::before, .nav-a *::after {
        transition: none !important;
        animation: none !important;
    }
}
