* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #070b14;
    --card: rgba(17, 24, 39, .65);
    --border: rgba(255,255,255,.08);
    --text: #f5f7fb;
    --sub: #8b95a7;
    --accent: #7c5cff;
    --accent2: #27d7ff;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
    overflow-x: hidden;
}


/* =========================
   背景
========================= */

.bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
    background:
        radial-gradient(
            circle at 50% -20%,
            rgba(124,92,255,.22),
            transparent 40%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(39,215,255,.10),
            transparent 35%
        );
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .4;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #603cff;
    top: -250px;
    left: 10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #008cff;
    right: -200px;
    bottom: 0;
}

.grid {
    position: absolute;
    inset: 0;
    opacity: .08;

    background-image:
        linear-gradient(
            rgba(255,255,255,.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.12) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 80%
        );
}


/* =========================
   鼠标光
========================= */

.mouse-light {
    position: fixed;
    width: 280px;
    height: 280px;

    transform: translate(-50%, -50%);

    pointer-events: none;
    z-index: -1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(124,92,255,.13),
            transparent 70%
        );
}


/* =========================
   页面
========================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================
   Header
========================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 34px 0 25px;
}

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

.logo {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            #7657ff,
            #24c8ff
        );

    box-shadow:
        0 10px 35px rgba(94,72,255,.35);
}

.logo span {
    font-size: 23px;
    font-weight: 900;
    color: white;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 700;
}

.brand-text p {
    margin-top: 3px;
    color: var(--sub);
    font-size: 12px;
}

.header-time {
    text-align: right;
    color: var(--sub);
    font-size: 12px;
}

.header-time strong {
    display: block;
    color: white;
    font-size: 18px;
    margin-top: 3px;
    letter-spacing: 1px;
}


/* =========================
   搜索
========================= */

.search-area {
    margin-top: 45px;
    text-align: center;
}

.search-box {
    max-width: 760px;
    height: 62px;
    margin: auto;

    display: flex;
    align-items: center;

    padding: 6px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(15, 21, 34, .72);

    backdrop-filter: blur(20px);

    box-shadow:
        0 25px 70px rgba(0,0,0,.25);

    transition: .3s;
}

.search-box:focus-within {
    border-color: rgba(124,92,255,.65);

    box-shadow:
        0 0 0 4px rgba(124,92,255,.08),
        0 25px 70px rgba(0,0,0,.3);
}

.search-icon {
    width: 50px;
    display: flex;
    justify-content: center;
}

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

    fill: none;
    stroke: #7f8aa0;
    stroke-width: 2;
}

.search-box input {
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    color: white;
    background: transparent;

    font-size: 15px;
}

.search-box input::placeholder {
    color: #657086;
}

.search-box button {
    height: 50px;
    padding: 0 24px;

    border: 0;
    border-radius: 13px;

    color: white;

    cursor: pointer;

    font-weight: 600;

    background:
        linear-gradient(
            135deg,
            #7657ff,
            #3d9cff
        );

    transition: .25s;
}

.search-box button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(99,91,255,.35);
}

.hot-search {
    margin-top: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #68748b;
    font-size: 12px;
}

.hot-search button {
    border: 0;
    background: transparent;

    color: #8e99ad;

    cursor: pointer;
}

.hot-search button:hover {
    color: white;
}


/* =========================
   分类
========================= */

.category-nav {
    display: flex;
    justify-content: center;
    gap: 8px;

    margin: 50px 0 35px;

    flex-wrap: wrap;
}

.category {
    padding: 10px 17px;

    border: 1px solid transparent;
    border-radius: 12px;

    color: #8791a5;
    background: rgba(255,255,255,.025);

    cursor: pointer;

    transition: .25s;
}

.category span {
    margin-right: 5px;
}

.category:hover {
    color: white;
    background: rgba(255,255,255,.06);
}

.category.active {
    color: white;

    border-color: rgba(124,92,255,.3);

    background:
        linear-gradient(
            135deg,
            rgba(124,92,255,.25),
            rgba(39,215,255,.08)
        );

    box-shadow:
        inset 0 0 20px rgba(124,92,255,.06);
}


/* =========================
   标题
========================= */

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 38px 0 16px;
}

.section-title > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-line {
    width: 4px;
    height: 18px;

    border-radius: 4px;

    background:
        linear-gradient(
            to bottom,
            #7958ff,
            #25cfff
        );
}

.section-title h2 {
    font-size: 17px;
    font-weight: 650;
}

.count {
    color: #626e82;
    font-size: 12px;
}


/* =========================
   网站卡片
========================= */

.site-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 14px;
}

.site-card {
    position: relative;

    min-height: 92px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 17px;

    color: white;
    text-decoration: none;

    border: 1px solid var(--border);

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.055),
            rgba(255,255,255,.018)
        );

    backdrop-filter: blur(15px);

    overflow: hidden;

    transition:
        transform .3s,
        border-color .3s,
        background .3s,
        box-shadow .3s;
}

.site-card::before {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(124,92,255,.2),
            transparent 70%
        );

    opacity: 0;

    transition: .35s;
}

.site-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(124,92,255,.35);

    background:
        linear-gradient(
            135deg,
            rgba(124,92,255,.09),
            rgba(255,255,255,.025)
        );

    box-shadow:
        0 18px 45px rgba(0,0,0,.2);
}

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

.site-icon {
    width: 49px;
    height: 49px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 18px;
    font-weight: 800;

    color: white;

    background:
        linear-gradient(
            135deg,
            #7155ff,
            #35b9ff
        );

    box-shadow:
        0 8px 20px rgba(0,0,0,.18);
}

.site-icon.movie {
    background: linear-gradient(135deg,#ff5c75,#ff9466);
}

.site-icon.search {
    background: linear-gradient(135deg,#2e9cff,#32d9c0);
}

.site-icon.cinema {
    background: linear-gradient(135deg,#bd55ff,#7358ff);
}

.site-icon.info {
    background: linear-gradient(135deg,#3e7bff,#43c8ff);
}

.site-icon.resource {
    background: linear-gradient(135deg,#ff7b39,#ffbd55);
}

.site-icon.anime {
    background: linear-gradient(135deg,#ff4e9a,#875bff);
}

.site-icon.anime2 {
    background: linear-gradient(135deg,#ff675c,#ffb13d);
}

.site-icon.anime3 {
    background: linear-gradient(135deg,#35b6ff,#596cff);
}

.site-icon.anime4 {
    background: linear-gradient(135deg,#ff5e85,#ff78c8);
}

.site-icon.tool {
    background: linear-gradient(135deg,#6375ff,#33b7ff);
}

.site-icon.image {
    background: linear-gradient(135deg,#36c98f,#35a9ff);
}

.site-icon.text {
    background: linear-gradient(135deg,#ff8b4b,#ffca4d);
}

.site-icon.code {
    background: linear-gradient(135deg,#8c5cff,#d154ff);
    font-size: 12px;
}

.site-icon.cloud {
    background: linear-gradient(135deg,#35a5ff,#566cff);
}

.site-icon.cloud2 {
    background: linear-gradient(135deg,#ff5f7e,#a75cff);
}

.site-icon.cloud3 {
    background: linear-gradient(135deg,#35c5a0,#3e8fff);
}

.site-icon.cloud4 {
    background: linear-gradient(135deg,#ff9255,#ffcb54);
}

.site-info {
    min-width: 0;
}

.site-info h3 {
    font-size: 15px;
    font-weight: 650;
}

.site-info p {
    margin-top: 6px;

    color: #737f93;

    font-size: 12px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.arrow {
    margin-left: auto;

    color: #586378;

    font-size: 17px;

    transition: .25s;
}

.site-card:hover .arrow {
    color: #a99aff;
    transform: translate(2px,-2px);
}


/* =========================
   搜索过滤
========================= */

.site-card.hide {
    display: none;
}

.section-title.hide {
    display: none;
}

.empty {
    display: none;

    text-align: center;

    padding: 90px 0;
}

.empty.show {
    display: block;
}

.empty-icon {
    font-size: 45px;
    color: #5e687b;
}

.empty h3 {
    margin-top: 15px;
    font-size: 17px;
}

.empty p {
    margin-top: 7px;
    color: #697489;
    font-size: 13px;
}


/* =========================
   Footer
========================= */

footer {
    display: flex;
    justify-content: space-between;

    margin-top: 70px;
    padding: 25px 0 35px;

    border-top: 1px solid rgba(255,255,255,.06);

    color: #4f5a6d;
    font-size: 11px;
}


/* =========================
   动画
========================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-card {
    animation: fadeUp .45s ease both;
}


/* =========================
   手机
========================= */

@media (max-width: 850px) {

    .site-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .container {
        width: min(
            100% - 24px,
            1180px
        );
    }

    .header {
        padding-top: 20px;
    }

    .header-time {
        display: none;
    }

    .search-area {
        margin-top: 30px;
    }

    .search-box {
        height: 56px;
        border-radius: 15px;
    }

    .search-box button {
        height: 44px;
        padding: 0 17px;
    }

    .search-icon {
        width: 40px;
    }

    .category-nav {
        margin: 30px 0 25px;
    }

    .category {
        padding: 9px 13px;
        font-size: 12px;
    }

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

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

    footer {
        flex-direction: column;
        gap: 8px;
    }

}

