/* ==========================================================================
   拾屿导航 · 前台
   ========================================================================== */

:root {
    --accent: #6f6be8;
    --accent-ink: #4f4bc4;
    --accent-soft: rgba(111, 107, 232, .12);
    --ink: #202437;
    --ink-soft: #3e435a;
    --muted: #7d829a;
    --muted-light: #9aa0b4;
    --line: rgba(255, 255, 255, .82);
    --card: rgba(255, 255, 255, .72);
    --card-solid: rgba(255, 255, 255, .9);
    --shadow-lg: 0 32px 80px rgba(72, 82, 138, .16);
    --shadow-md: 0 14px 38px rgba(74, 84, 138, .09);
    --shadow-sm: 0 6px 18px rgba(74, 84, 138, .07);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 13px;
    --font: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

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

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

body {
    margin: 0;
    min-height: 100vh;
    background: #edf3f1;
    color: var(--ink);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

button,
input {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

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

[hidden] {
    display: none !important;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

/* ----- 背景 ------------------------------------------------------------- */

.site-body {
    position: relative;
    overflow: hidden;
    background-color: #edf3f1;
}

.site-body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(900px 640px at 8% 4%, rgba(169, 231, 224, .60), transparent 62%),
        radial-gradient(880px 700px at 92% 2%, rgba(207, 194, 247, .55), transparent 63%),
        radial-gradient(1000px 760px at 55% 108%, rgba(250, 224, 193, .44), transparent 62%),
        linear-gradient(132deg, #e9f4f0 0%, #eef3f9 44%, #eee9f8 100%);
}

.site-body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .36) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .36) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 72%);
    opacity: .55;
}

.site-body.has-page-bg::before {
    background-image:
        linear-gradient(rgba(237, 243, 241, calc(.22 + var(--bg-dim))), rgba(237, 243, 241, calc(.32 + var(--bg-dim)))),
        var(--page-bg-image);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.site-body.has-page-bg::after {
    opacity: .28;
}

.ambient {
    position: fixed;
    z-index: -2;
    border-radius: 999px;
    filter: blur(10px);
    pointer-events: none;
    opacity: .7;
}

.ambient--one {
    width: 380px;
    height: 380px;
    top: -150px;
    right: 6%;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .9), rgba(190, 180, 247, .24) 55%, transparent 72%);
}

.ambient--two {
    width: 420px;
    height: 420px;
    bottom: -210px;
    left: 10%;
    background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .72), rgba(160, 224, 213, .2) 52%, transparent 72%);
}

/* ----- 外框 ------------------------------------------------------------- */

.app-frame {
    position: relative;
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    width: min(1540px, calc(100vw - 56px));
    height: calc(100dvh - 56px);
    min-height: 580px;
    margin: 28px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, .34);
    box-shadow:
        0 40px 100px rgba(63, 77, 134, .16),
        0 2px 0 rgba(255, 255, 255, .9) inset;
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
}

/* ----- 侧栏 ------------------------------------------------------------- */

.sidebar {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 26px 17px 17px;
    border-right: 1px solid rgba(255, 255, 255, .7);
    background: linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .36));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 24px;
}

.brand-logo {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, #2c314e 0%, #4f5790 58%, #7f85c9 100%);
    box-shadow:
        0 10px 24px rgba(48, 55, 100, .24),
        0 1px 0 rgba(255, 255, 255, .28) inset;
}

.brand-logo--default svg {
    width: 30px;
    height: 30px;
}

.brand-logo.has-image {
    background: rgba(255, 255, 255, .65);
    border: 1px solid rgba(255, 255, 255, .8);
}

.brand-logo.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand__copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand__name {
    display: block;
    overflow: hidden;
    font-family: var(--font);
    font-size: 17px;
    font-weight: 720;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand__name:hover {
    color: var(--accent-ink);
}

.brand__tag {
    font-size: 8.5px;
    font-weight: 650;
    letter-spacing: .18em;
    color: var(--muted-light);
    white-space: nowrap;
}

.sidebar__close {
    display: none;
    margin-left: auto;
}

.sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 126, 155, .18) transparent;
}

.sidebar__label {
    padding: 9px 12px 7px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #a0a5b7;
}

.sidebar__rule {
    height: 1px;
    margin: 13px 12px;
    background: linear-gradient(90deg, rgba(143, 148, 173, .16), transparent);
}

.cat-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cat-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #686e86;
    transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.cat-link:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .58);
}

.cat-link.is-active {
    color: var(--ink);
    background: rgba(255, 255, 255, .9);
    border-color: rgba(255, 255, 255, .95);
    box-shadow: 0 7px 20px rgba(76, 85, 138, .08), 0 1px 0 rgba(255, 255, 255, .9) inset;
}

.cat-link__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    color: #737990;
    background: rgba(255, 255, 255, .58);
    transition: background .22s ease, color .22s ease;
}

.cat-link__icon .icon {
    width: 15px;
    height: 15px;
}

.cat-link.is-active .cat-link__icon {
    color: #fff;
    background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #c6b8ff));
    box-shadow: 0 5px 12px color-mix(in srgb, var(--accent) 30%, transparent);
}

.cat-link__name {
    flex: 1;
    overflow: hidden;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cat-link.is-active .cat-link__name {
    font-weight: 650;
}

.cat-link__count {
    min-width: 22px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: center;
    color: #9aa0b2;
    background: rgba(239, 241, 247, .8);
}

.cat-link.is-active .cat-link__count {
    color: var(--accent-ink);
    background: color-mix(in srgb, var(--accent) 10%, #fff);
}

.sidebar__foot {
    flex: 0 0 auto;
    padding-top: 12px;
}

.side-note {
    position: relative;
    overflow: hidden;
    padding: 14px 14px 13px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 17px;
    background:
        radial-gradient(100px 80px at 100% 0%, rgba(255, 255, 255, .9), transparent 65%),
        linear-gradient(140deg, rgba(204, 239, 232, .55), rgba(226, 218, 250, .55));
    box-shadow: 0 10px 26px rgba(82, 91, 144, .07);
}

.side-note__spark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    margin-bottom: 9px;
    border-radius: 9px;
    color: var(--accent-ink);
    background: rgba(255, 255, 255, .7);
}

.side-note__spark .icon {
    width: 14px;
    height: 14px;
}

.side-note p {
    font-size: 11.5px;
    line-height: 1.68;
    color: #636a80;
}

.side-note__meta {
    display: flex;
    gap: 12px;
    margin-top: 11px;
    font-size: 9.5px;
    color: #8d93a7;
}

.side-note__meta strong {
    color: var(--ink-soft);
    font-size: 11px;
}

.sidebar__admin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #8d93a7;
    font-size: 11px;
    transition: background .2s ease, color .2s ease;
}

.sidebar__admin .icon {
    width: 13px;
    height: 13px;
}

.sidebar__admin .icon:last-child {
    margin-left: auto;
    opacity: .55;
}

.sidebar__admin:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .58);
}

/* ----- 主区域 ----------------------------------------------------------- */

.main {
    position: relative;
    min-width: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 126, 155, .20) transparent;
}

.main::-webkit-scrollbar,
.sidebar__scroll::-webkit-scrollbar {
    width: 5px;
}

.main::-webkit-scrollbar-thumb,
.sidebar__scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(120, 126, 155, .18);
}

.main-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 28px 30px 34px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.topbar__title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.eyebrow {
    margin-bottom: 3px;
    font-size: 9.5px;
    font-weight: 650;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9298ac;
}

.topbar h1 {
    font-size: 27px;
    font-weight: 720;
    line-height: 1.16;
    letter-spacing: -.045em;
    color: var(--ink);
}

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

.search {
    position: relative;
    display: flex;
    align-items: center;
    width: 340px;
    height: 44px;
    padding: 0 11px 0 14px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 8px 22px rgba(75, 85, 140, .06), 0 1px 0 rgba(255, 255, 255, .9) inset;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.search:focus-within {
    border-color: color-mix(in srgb, var(--accent) 38%, #fff);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent), 0 10px 26px rgba(75, 85, 140, .08);
}

.search__icon {
    display: grid;
    place-items: center;
    margin-right: 8px;
    color: #9ba1b4;
}

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

.search__input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13px;
    color: var(--ink);
}

.search__input::placeholder {
    color: #a3a8ba;
}

.search__input::-webkit-search-cancel-button {
    display: none;
}

.search__clear {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    border-radius: 7px;
    color: #9aa0b4;
}

.search__clear:hover {
    color: var(--ink);
    background: rgba(120, 126, 155, .09);
}

.search__clear .icon {
    width: 13px;
    height: 13px;
}

.search__kbd {
    display: grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    border: 1px solid rgba(134, 140, 166, .2);
    border-radius: 6px;
    font-family: var(--font);
    font-size: 10px;
    color: #a0a5b8;
    background: rgba(255, 255, 255, .5);
}

.quick-admin,
.mobile-menu {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 13px;
    color: #737a92;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 8px 20px rgba(75, 85, 140, .06);
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.quick-admin:hover,
.mobile-menu:hover {
    color: var(--accent-ink);
    background: rgba(255, 255, 255, .92);
    transform: translateY(-1px);
}

.quick-admin .icon,
.mobile-menu .icon {
    width: 18px;
    height: 18px;
}

.mobile-menu {
    display: none;
}

/* ----- Hero ------------------------------------------------------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 218px;
    overflow: hidden;
    padding: 31px 34px;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 26px;
    background:
        radial-gradient(520px 260px at 88% 12%, rgba(213, 201, 255, .45), transparent 70%),
        radial-gradient(420px 260px at 12% 108%, rgba(179, 235, 224, .45), transparent 70%),
        linear-gradient(120deg, rgba(255, 255, 255, .87), rgba(249, 248, 255, .68) 52%, rgba(241, 250, 248, .62));
    box-shadow: var(--shadow-md), 0 1px 0 rgba(255, 255, 255, .9) inset;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .34) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .4), transparent 72%);
    opacity: .5;
}

.hero__copy {
    position: relative;
    z-index: 2;
    width: 66%;
    max-width: 690px;
}

.hero__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 13px;
    padding: 5px 9px 5px 8px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #7b8199;
    background: rgba(255, 255, 255, .54);
}

.hero__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 13%, transparent);
}

.hero h2 {
    max-width: 650px;
    font-size: clamp(25px, 2.35vw, 35px);
    font-weight: 720;
    line-height: 1.22;
    letter-spacing: -.055em;
    color: #1f2436;
}

.hero__copy > p {
    max-width: 560px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.68;
    color: #6e748a;
}

.mobile-break {
    display: none;
}

.hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 17px;
    font-size: 10.5px;
    color: #8f95a8;
}

.hero__meta strong {
    margin-right: 2px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero__meta-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(120, 126, 155, .3);
}

.hero__art {
    position: absolute;
    top: 50%;
    right: 28px;
    width: 300px;
    height: 210px;
    transform: translateY(-50%);
    pointer-events: none;
}

.hero__ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
}

.hero__ring--one {
    width: 250px;
    height: 250px;
    top: -22px;
    right: -30px;
    background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .7), rgba(203, 194, 247, .12) 58%, transparent 72%);
}

.hero__ring--two {
    width: 140px;
    height: 140px;
    bottom: -52px;
    left: 6px;
    background: radial-gradient(circle at 42% 35%, rgba(255, 255, 255, .64), rgba(158, 226, 213, .2) 58%, transparent 75%);
}

.hero-preview {
    position: absolute;
    top: 28px;
    right: 38px;
    width: 218px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 19px;
    background: rgba(255, 255, 255, .68);
    box-shadow: 0 22px 48px rgba(78, 87, 146, .14), 0 1px 0 rgba(255, 255, 255, .9) inset;
    transform: rotate(-4deg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-preview__top {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.hero-preview__icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #b9d9ff));
    box-shadow: 0 6px 15px color-mix(in srgb, var(--accent) 25%, transparent);
}

.hero-preview__icon .icon {
    width: 17px;
    height: 17px;
}

.hero-preview__tag {
    font-size: 10px;
    font-weight: 650;
    color: #6f758b;
}

.hero-preview__line {
    width: 58%;
    height: 6px;
    margin-top: 7px;
    border-radius: 99px;
    background: rgba(117, 123, 151, .14);
}

.hero-preview__line--long {
    width: 84%;
    height: 8px;
    margin-top: 0;
    background: rgba(117, 123, 151, .18);
}

.hero-preview__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-top: 15px;
}

.hero-preview__grid span {
    height: 23px;
    border-radius: 7px;
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .75);
}

.hero-preview__grid span:nth-child(2) {
    background: color-mix(in srgb, var(--accent) 12%, #fff);
}

.hero-preview__grid span:nth-child(6) {
    background: rgba(184, 232, 221, .55);
}

.hero-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 11px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 26px rgba(78, 87, 146, .1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: floaty 6s ease-in-out infinite;
}

.hero-float .icon {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.hero-float span {
    font-size: 9.5px;
    font-weight: 650;
    color: #70768c;
}

.hero-float--one {
    top: 12px;
    left: 17px;
    transform: rotate(3deg);
}

.hero-float--two {
    right: 8px;
    bottom: 7px;
    gap: 2px;
    flex-direction: column;
    align-items: flex-start;
    padding: 9px 13px;
    transform: rotate(2deg);
    animation-delay: -3s;
}

.hero-float--two strong {
    font-size: 17px;
    line-height: 1;
    color: var(--ink);
}

.hero-float--two span {
    font-size: 8.5px;
    color: #9399aa;
}

@keyframes floaty {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
}

/* ----- 列表 ------------------------------------------------------------- */

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 27px 3px 14px;
}

.section-head h2 {
    font-size: 18px;
    font-weight: 720;
    letter-spacing: -.035em;
}

.section-head p {
    margin-top: 3px;
    font-size: 10.5px;
    color: #8d93a6;
}

.section-head__aside {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 999px;
    font-size: 9.5px;
    color: #8c92a5;
    background: rgba(255, 255, 255, .45);
}

.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #65b99e;
    box-shadow: 0 0 0 3px rgba(101, 185, 158, .14);
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.site-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 174px;
    padding: 18px 18px 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 19px;
    background: rgba(255, 255, 255, .69);
    box-shadow: 0 10px 30px rgba(77, 87, 142, .065), 0 1px 0 rgba(255, 255, 255, .9) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: cardIn .55s cubic-bezier(.22, .8, .32, 1) both;
    animation-delay: var(--delay, 0ms);
    transition: transform .25s cubic-bezier(.22, .8, .32, 1), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

.site-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(320px 160px at 100% 0%, rgba(205, 197, 250, .20), transparent 68%);
    opacity: 0;
    transition: opacity .25s ease;
}

.site-card:hover {
    z-index: 2;
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 24%, #fff);
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 22px 46px rgba(71, 81, 139, .13), 0 1px 0 rgba(255, 255, 255, .95) inset;
}

.site-card:hover::after {
    opacity: 1;
}

.site-card.is-featured {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(247, 246, 255, .7));
}

.site-card[hidden] {
    display: none !important;
}

.site-card__top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.site-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    font-size: 18px;
    font-weight: 720;
    letter-spacing: -.04em;
    text-shadow: 0 1px 2px rgba(40, 45, 72, .12);
    box-shadow:
        0 8px 18px rgba(75, 84, 135, .13),
        0 1px 0 rgba(255, 255, 255, .42) inset;
}

.site-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(150deg, rgba(255, 255, 255, .3), transparent 55%);
    pointer-events: none;
}

.site-icon__letter {
    position: relative;
    z-index: 1;
}

.site-icon img {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.tone-1 { background: linear-gradient(145deg, #a9d9f4, #7b8bec); }
.tone-2 { background: linear-gradient(145deg, #bde8d1, #65bda4); }
.tone-3 { background: linear-gradient(145deg, #ffddbd, #f19a75); }
.tone-4 { background: linear-gradient(145deg, #ddccff, #9779e6); }
.tone-5 { background: linear-gradient(145deg, #bce8f4, #61b6d5); }
.tone-6 { background: linear-gradient(145deg, #f7e7a8, #e5bd4e); }
.tone-7 { background: linear-gradient(145deg, #ffcbd3, #ea8096); }
.tone-8 { background: linear-gradient(145deg, #cdd4e5, #7a86a8); }

.site-card__heading {
    min-width: 0;
    flex: 1;
}

.site-card__heading h3 {
    overflow: hidden;
    font-size: 15px;
    font-weight: 690;
    line-height: 1.28;
    letter-spacing: -.025em;
    color: #262b3e;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-card__heading span {
    display: block;
    overflow: hidden;
    margin-top: 2px;
    font-size: 10px;
    color: #a0a5b6;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-card__go {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 9px;
    color: #9aa0b2;
    background: rgba(255, 255, 255, .52);
    opacity: .62;
    transition: color .22s ease, background .22s ease, opacity .22s ease, transform .22s ease;
}

.site-card__go .icon {
    width: 14px;
    height: 14px;
}

.site-card:hover .site-card__go {
    color: #fff;
    background: var(--accent);
    opacity: 1;
    transform: rotate(4deg);
}

.site-card__desc {
    position: relative;
    z-index: 1;
    display: -webkit-box;
    overflow: hidden;
    margin: 13px 0 14px;
    color: #747a8f;
    font-size: 12px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.site-card__foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    min-width: 0;
}

.mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 46%;
    padding: 3px 7px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .76);
    border-radius: 6px;
    color: #858ba0;
    font-size: 9px;
    background: rgba(255, 255, 255, .45);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-chip .icon {
    width: 10px;
    height: 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    white-space: nowrap;
}

.badge .icon {
    width: 9px;
    height: 9px;
}

.badge--featured {
    color: var(--accent-ink);
    background: color-mix(in srgb, var(--accent) 12%, #fff);
}

.badge--new {
    color: #338b72;
    background: rgba(109, 199, 173, .16);
}

.site-card__clicks {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
    color: #9ea4b5;
    font-size: 9px;
    font-variant-numeric: tabular-nums;
}

.site-card__clicks .icon {
    width: 10px;
    height: 10px;
}

/* ----- 空状态 / 页脚 ---------------------------------------------------- */

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 290px;
    padding: 46px 24px;
    border: 1px dashed rgba(153, 159, 184, .28);
    border-radius: 22px;
    background: rgba(255, 255, 255, .38);
    text-align: center;
}

.empty-state[hidden] {
    display: none;
}

.empty-state__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 18px;
    color: var(--accent);
    background: rgba(255, 255, 255, .65);
    box-shadow: var(--shadow-sm);
}

.empty-state__icon .icon {
    width: 23px;
    height: 23px;
}

.empty-state h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.empty-state p {
    max-width: 400px;
    margin: 6px 0 17px;
    font-size: 12px;
    color: #8d93a6;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 620;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.btn .icon {
    width: 14px;
    height: 14px;
}

.btn--ghost {
    border: 1px solid rgba(255, 255, 255, .9);
    color: #646a81;
    background: rgba(255, 255, 255, .7);
    box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
    background: #fff;
    transform: translateY(-1px);
}

.btn--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #9ecae8));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}

.page-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 15px 4px 2px;
    border-top: 1px solid rgba(255, 255, 255, .58);
    color: #9aa0b2;
    font-size: 9.5px;
}

.page-foot__meta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.page-foot__meta .icon {
    width: 10px;
    height: 10px;
    color: #d98fa2;
}

/* ----- 抽屉 / 跳转链接 -------------------------------------------------- */

.drawer-overlay {
    display: none;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 9px 14px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-160%);
    transition: transform .2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 72%, #fff);
    outline-offset: 2px;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----- 404 -------------------------------------------------------------- */

.error-body {
    display: grid;
    place-items: center;
    overflow: auto;
    padding: 24px;
}

.error-card {
    width: min(460px, 100%);
    padding: 42px 36px;
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 26px;
    background: rgba(255, 255, 255, .72);
    box-shadow: var(--shadow-lg);
    text-align: center;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.error-card__code {
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .2em;
}

.error-card h1 {
    font-size: 26px;
    font-weight: 720;
    letter-spacing: -.04em;
}

.error-card p {
    margin: 9px 0 20px;
    color: #848a9f;
    font-size: 12.5px;
}

/* ----- 响应式 ----------------------------------------------------------- */

@media (max-width: 1280px) {
    .app-frame {
        width: calc(100vw - 40px);
        height: calc(100dvh - 40px);
        margin: 20px auto;
        grid-template-columns: 262px minmax(0, 1fr);
    }

    .main-inner {
        padding: 25px 26px 30px;
    }

    .hero__art {
        right: 18px;
        transform: translateY(-50%) scale(.94);
    }

    .search {
        width: 310px;
    }
}

@media (max-width: 1120px) {
    .sites-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero__copy {
        width: 70%;
    }

    .hero__art {
        opacity: .72;
        right: 6px;
        transform: translateY(-50%) scale(.86);
    }
}

@media (max-width: 940px) {
    body.site-body {
        overflow: auto;
    }

    .app-frame {
        display: block;
        height: auto;
        min-height: calc(100dvh - 32px);
        margin: 16px auto;
        width: calc(100vw - 32px);
        border-radius: 26px;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .sidebar {
        position: fixed;
        top: 16px;
        bottom: 16px;
        left: 16px;
        z-index: 60;
        width: min(310px, calc(100vw - 48px));
        border: 1px solid rgba(255, 255, 255, .85);
        border-radius: 24px;
        box-shadow: var(--shadow-lg);
        transform: translateX(calc(-100% - 40px));
        transition: transform .32s cubic-bezier(.22, .8, .32, 1);
    }

    .sidebar__close {
        display: grid;
    }

    .drawer-overlay {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: block;
        background: rgba(41, 46, 68, .24);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        transition: opacity .3s ease, visibility .3s ease;
    }

    body.drawer-open {
        overflow: hidden;
    }

    body.drawer-open .sidebar {
        transform: translateX(0);
    }

    body.drawer-open .drawer-overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main {
        overflow: visible;
    }

    .main-inner {
        padding: 22px 22px 30px;
    }

    .mobile-menu {
        display: grid;
    }

    .hero__art {
        opacity: .58;
        right: 4px;
        transform: translateY(-50%) scale(.78);
    }

    .hero__copy {
        width: 74%;
    }
}

@media (max-width: 760px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .topbar__tools {
        width: 100%;
    }

    .search {
        width: 100%;
    }

    .quick-admin {
        display: none;
    }

    .hero {
        min-height: 200px;
        padding: 26px;
    }

    .hero__copy {
        width: 100%;
    }

    .hero__art {
        display: none;
    }

    .hero h2 {
        font-size: 27px;
    }

    .hero__meta {
        margin-top: 15px;
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }

    .site-card {
        min-height: 164px;
    }
}

@media (max-width: 560px) {
    .app-frame {
        width: 100%;
        min-height: 100dvh;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: rgba(255, 255, 255, .26);
    }

    .main-inner {
        padding: 18px 15px 26px;
    }

    .topbar h1 {
        font-size: 24px;
    }

    .hero {
        padding: 23px 21px;
        border-radius: 21px;
    }

    .hero h2 {
        font-size: 25px;
        letter-spacing: -.05em;
    }

    .mobile-break {
        display: initial;
    }

    .hero__copy > p {
        font-size: 11.5px;
    }

    .hero__pill {
        letter-spacing: .08em;
    }

    .section-head {
        margin-top: 22px;
    }

    .section-head__aside {
        display: none;
    }

    .site-card {
        padding: 16px;
        border-radius: 17px;
    }

    .page-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .empty-state {
        min-height: 250px;
    }

    .search__kbd {
        display: none;
    }

    .sidebar {
        top: 10px;
        bottom: 10px;
        left: 10px;
        width: min(320px, calc(100vw - 36px));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
