.tf-modal::before,.tf-modal::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(32px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
    transition: background 0.4s
}

.tf-modal::before {
    width: 180px;
    height: 180px;
    left: -60px;
    top: -60px;
    background: radial-gradient(circle at 40% 40%,#a5b4fc 0%,#6366f1 80%,transparent 100%)
}

.tf-modal::after {
    width: 140px;
    height: 140px;
    right: -40px;
    bottom: -40px;
    background: radial-gradient(circle at 60% 60%,#fca5a5 0%,#f87171 80%,transparent 100%)
}

.tf-modal > * {
    position: relative;
    z-index: 1
}

body.dark .tf-modal::before {
    background: radial-gradient(circle at 40% 40%,#6366f1 0%,#23243a 80%,transparent 100%)
}

body.dark .tf-modal::after {
    background: radial-gradient(circle at 60% 60%,#f87171 0%,#181926 80%,transparent 100%)
}

html,body {
    height: 100%;
    margin: 0;
    padding: 0
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter','PingFang SC','Microsoft YaHei',Arial,sans-serif;
    background: linear-gradient(120deg,#e0e7ff 0%,#f8fafc 100%);
    position: relative;
    overflow-x: hidden;
    transition: background 0.4s;
    display: flex;
    flex-direction: column
}

body.dark {
    background: linear-gradient(120deg,#23243a 0%,#181926 100%)
}

.bg-blur {
    position: fixed;
    z-index: 0;
    pointer-events: none
}

.bg-blur1 {
    top: -120px;
    left: -120px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle at 30% 30%,#a5b4fc 0%,#6366f1 80%,transparent 100%);
    filter: blur(80px) opacity(0.55)
}

.bg-blur2 {
    bottom: -100px;
    right: -100px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle at 70% 70%,#fca5a5 0%,#f87171 80%,transparent 100%);
    filter: blur(80px) opacity(0.45)
}

.bg-blur3 {
    top: 60%;
    left: 10%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at 50% 50%,#6ee7b7 0%,#34d399 80%,transparent 100%);
    filter: blur(60px) opacity(0.35)
}

.navbar.navbar-show {
    opacity: 1;
    transform: translateY(0)
}

body.dark .navbar {
    background: linear-gradient(90deg,#23243a 60%,#181926 100%);
    box-shadow: 0 2px 16px 0 rgba(60,80,180,0.12)
}

.navbar .logo {
    height: 44px;
    margin: 8px 0;
    transition: height 0.3s;
    display: block
}

.dark-switch {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center
}
        .link {
            width: 92%;
            max-width: 320px;
            min-width: 0;
            background: rgba(255,255,255,0.98);
            border-radius: 14px;
            box-shadow: 0 2px 16px 0 rgba(80,120,255,0.10);
            display: flex;
            align-items: center;
            padding: 16px 16px;
            transition: box-shadow 0.22s cubic-bezier(.4,2,.6,1), transform 0.18s, opacity 0.7s cubic-bezier(.4,2,.6,1), transform 0.7s cubic-bezier(.4,2,.6,1);
            border: 1.2px solid #f1f5f9;
            text-decoration: none;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(2px);
            opacity: 0;
            transform: translateY(30px);
        }
@media (max-width: 600px) {
    .navbar {
        min-height:44px;
        border-radius: 0 0 10px 10px
    }

    .navbar .logo {
        height: 32px
    }

    .dark-switch {
        right: 10px
    }

    .navbar .logout {
        display: none
    }
}

.switch {
    font-size: 18px;
    position: relative;
    display: inline-block;
    width: 3.2em;
    height: 1.8em
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .4s;
    border-radius: 30px;
    box-shadow: 0 1px 4px rgba(80,120,255,0.08)
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.2em;
    width: 1.2em;
    border-radius: 50%;
    left: 0.3em;
    bottom: 0.3em;
    background: #fff url('data:image/svg+xml;utf8,<svg fill="orange" viewBox="0 0 24 24" width="18" height="18" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="5"/><g stroke="orange" stroke-width="2"><line x1="12" y1="1" x2="12" y2="3"/><line x1="12" y1="21" x2="12" y2="23"/><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"/><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"/><line x1="1" y1="12" x2="3" y2="12"/><line x1="21" y1="12" x2="23" y2="12"/><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"/><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"/></g></svg>') no-repeat center/70%;
    transition: .4s;
    box-shadow: 0 1px 4px rgba(80,120,255,0.10)
}

.switch input:checked + .slider {
    background-color: #23243a
}

.switch input:checked + .slider:before {
    transform: translateX(1.3em);
    background: #23243a url('data:image/svg+xml;utf8,<svg fill="yellow" viewBox="0 0 24 24" width="18" height="18" xmlns="http://www.w3.org/2000/svg"><path d="M21 12.79A9 9 0 1111.21 3a7 7 0 109.79 9.79z"/></svg>') no-repeat center/70%;
    box-shadow: 0 1px 4px rgba(80,120,255,0.10)
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 0 auto;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
    flex: 1 0 auto
}

.container h1 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 18px;
    color: #22223b;
    font-weight: 600;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(180,195,255,0.08);
    transition: color 0.4s
}

body.dark .container h1 {
    color: #f3f4fa;
    text-shadow: 0 2px 12px rgba(60,80,180,0.12)
}

.container .description {
    text-align: center;
    margin-bottom: 40px;
    color: #4b5563;
    font-size: 1.08em;
    line-height: 1.7;
    text-shadow: 0 2px 12px rgba(180,195,255,0.06);
    transition: color 0.4s
}

body.dark .container .description {
    color: #b3b8d1
}

.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
}



.link {
    width: 92%;
    max-width: 320px;
    min-width: 0;
    background: rgba(255,255,255,0.98);
    border-radius: 14px;
    box-shadow: 0 2px 16px 0 rgba(80,120,255,0.10);
    display: flex;
    align-items: center;
    padding: 16px 16px;
    transition: box-shadow 0.22s cubic-bezier(.4,2,.6,1),transform 0.18s,opacity 0.7s cubic-bezier(.4,2,.6,1),transform 0.7s cubic-bezier(.4,2,.6,1);
    border: 1.2px solid #f1f5f9;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
    opacity: 0;
    transform: translateY(30px)
}

.link.link-show {
    opacity: 1;
    transform: translateY(0)
}

.top-icon,.rec-icon {
    top: 8px;
    right: 8px;
    z-index: 2;
    border-radius: 50%;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: static
}

.link:hover {
    box-shadow: 0 6px 24px 0 rgba(80,120,255,0.16);
    border: 1.2px solid #4f8cff;
    transform: translateY(-3px) scale(1.03)
}

.link img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 8px;
    background: #f1f5f9;
    transition: transform 0.18s
}

.link:hover img {
    transform: scale(1.10) rotate(-3deg)
}

.info {
    flex: 1;
    min-width: 0
}

.info h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: #22223b;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s
}

.info p {
    font-size: 0.93em;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s
}

body.dark .link {
    background: rgba(36,38,60,0.98);
    box-shadow: 0 4px 24px 0 rgba(60,80,180,0.10),0 1.5px 0 0 #23243a;
    border: 1.2px solid #23243a
}

body.dark .link:hover {
    background: rgba(36,38,60,1);
    border: 1.2px solid #6366f1;
    box-shadow: 0 8px 32px 0 rgba(80,120,255,0.18),0 2px 0 0 #6366f1
}

body.dark .info h3 {
    color: #f3f4fa
}

body.dark .info p {
    color: #b3b8d1
}

@media (max-width: 900px) {
    .links {
        grid-template-columns:repeat(2,1fr);
        gap: 16px
    }

    .link {
        max-width: 98vw;
        padding: 14px 10px
    }
}

@media (max-width: 600px) {
    .container {
        margin-top:18px
    }

    .container h1 {
        font-size: 1.3em
    }

    .links {
        grid-template-columns: 1fr;
        gap: 10px
    }

    .link {
        min-width: 0;
        padding: 12px 6px
    }

    .link img {
        width: 28px;
        height: 28px;
        margin-right: 8px
    }
}

.footer {
    width: 100%;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-shrink: 0;
    margin-top: 32px
}

.copyright-box {
    display: inline-block;
    margin: 0 auto 24px auto;
    padding: 12px 32px 12px 24px;
    background: linear-gradient(90deg,#e0e7ff 0%,#f8fafc 100%);
    color: #6366f1;
    font-size: 15px;
    border-radius: 18px;
    box-shadow: 0 2px 16px 0 rgba(80,120,255,0.10);
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
    transition: background 0.4s,color 0.4s
}

.copyright-box .icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: -7px;
    font-size: 1.1em;
    margin-bottom: 4px
}

.copyright-box a {
    color: #6366f1;
    text-decoration: none;
    position: relative;
    transition: color 0.2s
}

.copyright-box a:hover {
    color: #ff2d55
}

.copyright-box a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="4" viewBox="0 0 100 4" xmlns="http://www.w3.org/2000/svg"><path d="M0 2 Q 5 0,10 2 T 20 2 T 30 2 T 40 2 T 50 2 T 60 2 T 70 2 T 80 2 T 90 2 T 100 2" stroke="%23ff2d55" fill="transparent" stroke-width="2"/></svg>') repeat-x;
    background-size: 40px 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 1
}

.copyright-box a:hover::after {
    opacity: 1;
    animation: wave-move 1s linear infinite
}

@keyframes wave-move {
    0% {
        background-position-x: 0
    }

    100% {
        background-position-x: 40px
    }
}

body.dark .copyright-box {
    background: linear-gradient(90deg,#23243a 0%,#181926 100%);
    color: #a5b4fc;
    box-shadow: 0 2px 16px 0 rgba(60,80,180,0.10)
}

body.dark .copyright-box a {
    color: #a5b4fc
}

@media (max-width: 600px) {
    .links {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .link-card {
        min-width: 0 !important;
        max-width: 91% !important;
        width: 100% !important;
        margin: 0 !important;
    }
}


@media (max-width: 600px) {
    .copyright-box {
        font-size:12px;
        padding: 8px 12px 8px 12px;
        border-radius: 10px;
        margin-bottom: 12px
    }

    .copyright-box .icon {
        font-size: 1em;
        margin-right: 4px
    }
}

.navbar .logout {
    margin-right: 10px;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
    padding: 6px 16px;
    background: #e0e7ff;
    transition: background 0.2s,color 0.2s
}

.navbar .logout:hover {
    background: #6366f1;
    color: #fff
}

.tf-modal-mask {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(36,38,60,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    backdrop-filter: blur(2px)
}

.tf-modal {
    background: rgba(255,255,255,0.98);
    border-radius: 18px;
    box-shadow: 0 8px 40px 0 rgba(80,120,255,0.18);
    min-width: 320px;
    max-width: 92vw;
    padding: 0;
    animation: tfModalIn 0.25s cubic-bezier(.4,2,.6,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative
}

@keyframes tfModalIn {
    0% {
        transform: scale(0.85) translateY(40px);
        opacity: 0
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1
    }
}

.tf-modal-header {
    padding: 18px 28px 10px 24px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: transparent
}

.tf-modal-title {
    font-size: 1.18em;
    font-weight: 600;
    color: #6366f1;
    flex: 1;
    letter-spacing: 1px
}

.tf-modal-close {
    font-size: 1.5em;
    color: #b3b8d1;
    cursor: pointer;
    transition: color 0.2s;
    margin-left: 10px
}

.tf-modal-close:hover {
    color: #ff2d55
}

.tf-modal-body {
    padding: 18px 28px 10px 24px;
    color: #4b5563;
    font-size: 1.05em;
    line-height: 1.7;
    min-width: 180px
}

.tf-modal-footer {
    padding: 12px 24px 18px 24px;
    display: flex;
    justify-content: center;
    gap: 18px;
    background: transparent
}

.tf-modal-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    background: #6366f1;
    color: #fff;
    transition: background 0.18s,color 0.18s;
    outline: none;
    white-space: nowrap;
    min-width: 0;
    max-width: 100vw
}

.tf-modal-btn:hover {
    background: #4f46e5;
    color: #fff
}

@media (max-width: 600px) {
    .tf-modal {
        min-width:0;
        width: 98vw;
        border-radius: 10px
    }

    .tf-modal-header,.tf-modal-body,.tf-modal-footer {
        padding-left: 10px;
        padding-right: 10px
    }

    .tf-modal-footer {
        gap: 6px
    }

    .tf-modal-btn {
        font-size: 0.92em;
        padding: 7px 8px;
        min-width: 0;
        flex: 1 1 0;
        max-width: 100px;
        box-sizing: border-box
    }
}

body.dark .tf-modal {
    background: rgba(36,38,60,0.98);
    box-shadow: 0 8px 40px 0 rgba(60,80,180,0.18)
}

body.dark .tf-modal-title {
    color: #a5b4fc
}

body.dark .tf-modal-body {
    color: #b3b8d1
}

body.dark .tf-modal-btn {
    background: linear-gradient(90deg,#6366f1 0%,#17D7FA 100%);
    color: #fff
}

body.dark .tf-modal-btn:hover {
    background: linear-gradient(90deg,#23243a 0%,#6366f1 100%)
}

.link .info h3 span[title="置顶"] {
    font-weight: bold;
    margin-left: 6px
}

.link .info h3 span[title="推荐"] {
    font-size: 12px;
    background: #34d399;
    color: #fff;
    border-radius: 4px;
    padding: 0 4px;
    margin-left: 4px
}

.top-icon .icon,.rec-icon .icon {
    width: 20px !important;
    height: 20px !important;
    display: inline-block;
    vertical-align: middle
}

.category-bar {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap
}

.category-btn {
    padding: 7px 18px;
    border-radius: 8px;
    border: none;
    background: #e0e7ff;
    color: #6366f1;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s,color 0.2s
}

.category-btn.active,.category-btn:hover {
    background: #6366f1;
    color: #fff
}

.link-badges {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 2
}

.link-badges .top-icon,.link-badges .rec-icon {
    line-height: 0;
    display: flex;
    align-items: center
}

.link-badges span {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0
}

.link-badges svg {
    display: block
}

.navbar {
    width: 100%;
    box-sizing: border-box;
    background: rgba(248,250,252,0.75);
    box-shadow: 0 2px 16px 0 rgba(80,120,255,0.08);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 0 0 18px 18px;
    min-height: 60px;
    transition: opacity 0.7s cubic-bezier(.4,2,.6,1),transform 0.7s cubic-bezier(.4,2,.6,1),background 0.4s,box-shadow 0.4s,backdrop-filter 0.4s;
    opacity: 0;
    transform: translateY(-30px);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(160,170,255,0.13)
}

.navbar-left {
    display: flex;
    align-items: center
}

.logo {
    height: 44px;
    margin: 8px 0;
    display: block
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px
}

.logout {
    margin-right: 0
}

body.dark .navbar {
    background: rgba(36,38,60,0.80);
    box-shadow: 0 2px 16px 0 rgba(60,80,180,0.18);
    border-bottom: 1px solid rgba(80,90,150,0.18);
    background: linear-gradient(90deg,#23243a 60%,#181926 100%);
    box-shadow: 0 2px 16px 0 rgba(60,80,180,0.12)
}

@media (max-width: 600px) {
    .navbar {
        min-height:44px;
        border-radius: 0 0 10px 10px;
        padding: 0 8px
    }

    .logo {
        height: 32px
    }
}

.link-card {
    background: #fff;
    border-radius: 23px;
    box-shadow: 0 4px 28px #e0e7ff50;
    border: 1.5px solid #f3f5fa;
    min-width: 0;
    max-width: initial;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    outline: none;
    will-change: box-shadow,transform;
    transition: box-shadow .22s cubic-bezier(.4,2,.7,1),
                transform .85s cubic-bezier(.4,2,.7,1),
                opacity .85s cubic-bezier(.54,0,.38,1);
}
body.theme-changing .link-card {
    animation: none !important;
    transition: none !important;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px)}
    to { opacity: 1; transform: none}
}
.link-card:hover,
.link-card:focus-visible,
.link-card:active {
    transition: box-shadow .22s cubic-bezier(.4,2,.7,1),
                background .17s,
                border-color .17s,
                transform .85s cubic-bezier(.4,2,.7,1),
                opacity .85s cubic-bezier(.54,0,.38,1);
}
.link-card:hover,
.link-card:focus-visible {
    box-shadow: 0 12px 36px #b6c8f844;
    border: 1.8px solid #4f8cff;
    background: #f7faff;
    transform: translateY(-3px) scale(1.025);
    color: inherit;
    text-decoration: none;
    outline: none;
    z-index: 2;
}
.link-card:active {
    opacity: .97;
    transform: scale(0.987);
    transition: box-shadow .10s cubic-bezier(.6,1,.8,1),background .11s,border-color .11s,transform .10s cubic-bezier(.86,0,.58,1)
}
.card-header {
    display: flex;
    align-items: center;
    padding: 26px 36px 8px 26px;
}
.card-icon {
    flex: none;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f8fd;
    border-radius: 16px;
    overflow: hidden;
    margin-right: 25px;
    box-shadow: 0 5px 24px #d8defc1c;
    transition: background 0.2s,box-shadow 0.2s;
}
.card-header-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.card-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 1.2em;
    font-weight: 700;
    color: #22284a;
    line-height: 1.19;
}
/* 标题允许两行，多余用省略号 */
.card-title {
    font-weight: 700;
    font-size: 1.12em;
    letter-spacing: .5px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    min-width: 0;
    word-break: break-all;
    line-height: 1.35;
}
.card-badges .badge,
.card-badges .badge-top,
.card-badges .badge-rec {
    font-size: 13px;
    background: none;
    margin-left: 6px;
    padding: 0 4px;
    vertical-align: middle;
    display: inline-block;
    border-radius: 8px;
    font-weight: 600;
}
.badge-top { color: #6366f1; }
.badge-rec { color: #22bfa0; }
.badge-new {
    color: #fff !important;
    background: #11cca6;
    font-size: 12px !important;
    border-radius: 6px;
    letter-spacing: 1px;
    padding: 1px 9px !important;
    margin-left: 8px;
}
.card-desc {
    font-size: 1em;
    color: #6b7ba5;
    margin: 8px 0 0 0;
    line-height: 1.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 100%;
    height: 1.5em; /* 确保全部一样 */
    box-sizing: border-box;
    word-break: break-all;
}

.card-divider {
    width: 90%;
    height: 1.2px;
    margin: 14px auto 7px auto;
    border-radius: 2.5px;
    background: #eff2fa;
}
.card-footer {
    padding: 0 36px 22px 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    min-height: 38px;
}
.goto-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1px 0 7px;
    border-radius: 50%;
    transition: color .14s,transform .17s cubic-bezier(.4,2,.7,1);
    color: #4f8cff;
    background: none;
    font-size: 16px;
    min-width: 22px;
    min-height: 22px;
    box-shadow: none;
    margin-right: -6px;
}
.link-card:hover .goto-arrow,
.link-card:focus-visible .goto-arrow {
    color: #3959b6;
    background: none;
    transform: translateX(2px) scale(1.13);
}
.goto-arrow svg {
    display: block;
    width: 1.1em;
    height: 1.1em;
    stroke-width: 2.6;
    stroke: currentColor;
    fill: none;
    pointer-events: none;
}
/* 黑夜模式 */
body.dark .goto-arrow {
    color: #7baaff;
    background: none;
}
body.dark .link-card:hover .goto-arrow,
body.dark .link-card:focus-visible .goto-arrow {
    color: #aecbff;
    background: none;
}
body.dark .link-card {
    background: #22233c;
    border-color: #232343;
    box-shadow: 0 2px 18px #181c2f80;
    color: #ecf3fd;
}
body.dark .link-card:hover,
body.dark .link-card:focus-visible {
    background: #23243a;
    border-color: #6366f1;
}
body.dark .card-title-row {
    color: #dde7ff;
}
body.dark .card-desc {
    color: #8eaaf4;
}
body.dark .card-icon {
    background: #181932;
}
body.dark .card-divider {
    background: #232850;
}
body.dark .card-meta {
    background: #232850;
    color: #8eaaf4;
}
/* ===== 栅格只3列，且最大宽度更舒展 ===== */
.links {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 24px;
    max-width: 1400px;     /* 卡片群最大宽，可自由调数值 1280~1600 */
    margin: 0 auto;
}
@media (max-width: 1200px) {
    .links { max-width: 98vw; gap: 28px; }
}
@media (max-width: 1000px) {
    .links { grid-template-columns:repeat(2,1fr); gap: 18px; }
}
@media (max-width: 700px) {
    .links { grid-template-columns:1fr 1fr; gap: 10px; padding-left: 4px; padding-right: 4px; }
    .link-card { min-width: 0 !important; max-width: 100% !important; width: 100% !important; margin: 0 !important; }
    .card-header { padding: 18px 12px 8px 12px; }
    .card-footer { padding: 0 12px 16px 12px; }
    .card-divider { width: 97%; }
}
@media (max-width: 600px) {
    .links { grid-template-columns: 1fr !important; gap: 10px; padding-left: 2px; padding-right: 2px; }
    .link-card { min-width: 0 !important; max-width: 100% !important; width: 100% !important; margin: 0 !important; }
    .card-header { padding: 12px 7px 8px 7px; }
    .card-footer { padding: 0 7px 10px 7px; }
    .card-divider { width: 95%; }
}

.link-card.is-init {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
    pointer-events: none;
}
.link-card:focus-visible {
    box-shadow: 0 0 0 2.2px #6366f1,0 8px 32px rgba(100,120,255,0.15);
}
.card-cats {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    min-width: 0;
}

.listcat {
    background: rgba(81, 99, 235, 0.08);
    color: #5163eb;
    font-size: 13px;
    font-weight: 500;
    border-radius: 6px;
    padding: 2px 12px 2px 12px;
    display: inline-block;
    line-height: 1.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
    box-shadow: none;
    border: none;
    letter-spacing: 0.2px;
    transition: 
        background 0.18s, 
        color 0.18s, 
        box-shadow 0.18s;
}

.card-cats:hover .listcat {
    background: rgba(81, 99, 235, 0.18);
    color: #3951c6;
}

body.dark .listcat {
    background: rgba(81, 99, 235, 0.16);
    color: #8eaaff;
}

body.dark .card-cats:hover .listcat {
    background: rgba(81, 99, 235, 0.30);
    color: #a7bfff;
}

html, body {overflow-x: hidden;}
