


* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background: #f7f7f5;
    color: #111;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-tap-highlight-color: transparent;
}

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

button,
input {
    font: inherit;
}




.site-header {

    position: sticky;
    top: 0;
    z-index: 100;

    height: 68px;

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

    padding: 0 28px;

    background:
        rgba(255,255,255,.9);

    border-bottom:
        1px solid #e8e8e5;

    backdrop-filter:
        blur(16px);
}

.brand {

    display: flex;
    align-items: center;

    gap: 10px;
}

.brand-mark {

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #111;
    color: #fff;

    font-size: 12px;
    font-weight: 800;
}

.brand-text strong {

    display: block;

    font-size: 14px;
    font-weight: 800;
}

.brand-text span {

    display: block;

    margin-top: 2px;

    color: #999;

    font-size: 9px;
}

.header-right {

    display: flex;
    align-items: center;

    gap: 6px;

    color: #888;

    font-size: 12px;
}

.header-link {

    padding: 8px 11px;

    border-radius: 8px;

    transition: .2s;
}

.header-link:hover {

    background: #f0f0ed;

    color: #111;
}

.header-primary {

    padding: 9px 13px;

    border-radius: 9px;

    background: #111;
    color: #fff;

    font-size: 11px;
    font-weight: 700;
}




.layout {

    width:
        min(
            1400px,
            calc(100% - 32px)
        );

    margin: 0 auto;

    padding:
        28px 0 80px;

    display: flex;

    align-items: flex-start;

    gap: 26px;
}

.sidebar {

    flex: 0 0 230px;

    width: 230px;

    position: sticky;

    top: 88px;
}

.content {

    flex: 1;

    min-width: 0;
}

.hotbar {

    flex: 0 0 280px;

    width: 280px;

    position: sticky;

    top: 88px;

    display: flex;

    flex-direction: column;

    gap: 16px;
}

.side-card {

    padding:
        16px 16px 14px;

    background: #fff;

    border:
        1px solid #e8e8e5;

    border-radius: 14px;
}

.side-card-head {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 8px;

    margin-bottom: 12px;

    font-size: 13px;

    font-weight: 800;
}

.hot-list {

    margin: 0;

    padding: 0;

    list-style: none;
}

.hot-item {

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        7px 0;

    border-top:
        1px solid #f0f0ed;
}

.hot-item:first-child {

    border-top: 0;
}

.hot-rank {

    flex: 0 0 20px;

    width: 20px;

    height: 20px;

    display: grid;

    place-items: center;

    border-radius: 6px;

    background: #f0f0ed;

    color: #999;

    font-size: 11px;

    font-weight: 800;
}

.hot-rank.top {

    background: #111;

    color: #fff;
}

.hot-name {

    flex: 1;

    min-width: 0;

    overflow: hidden;

    color: #444;

    font-size: 13px;

    white-space: nowrap;

    text-overflow: ellipsis;

    transition: .15s;
}

.hot-name:hover {

    color: #111;
}

.hot-meta {

    flex: 0 0 auto;

    color: #bbb;

    font-size: 10px;
}

.article-mini-list {

    margin: 0;

    padding: 0;

    list-style: none;
}

.article-mini-list li {

    padding:
        7px 0;

    border-top:
        1px solid #f0f0ed;
}

.article-mini-list li:first-child {

    border-top: 0;
}

.article-mini-list a {

    display: block;

    overflow: hidden;

    color: #444;

    font-size: 13px;

    white-space: nowrap;

    text-overflow: ellipsis;

    transition: .15s;
}

.article-mini-list a:hover {

    color: #111;
}

.hot-tabs {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 10px;
}

.hot-tab {

    flex: 0 0 auto;

    padding:
        7px 11px;

    border: 0;

    border-radius: 8px;

    background: #f0f0ed;

    color: #777;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;

    transition: .15s;
}

.hot-tab:hover {

    color: #111;
}

.hot-tab.active {

    background: #111;

    color: #fff;
}

.rank-tab {

    flex: 0 0 auto;

    padding:
        6px 10px;

    border: 0;

    border-radius: 8px;

    background: #f0f0ed;

    color: #777;

    font-size: 11px;

    font-weight: 600;

    cursor: pointer;

    transition: .15s;
}

.rank-tab:hover {

    color: #111;
}

.rank-tab.active {

    background: #111;

    color: #fff;
}

.hot-foot {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    margin-top: 10px;
}

.hot-refresh {

    border: 0;

    background: none;

    color: #aaa;

    font-size: 11px;

    cursor: pointer;

    transition: .15s;
}

.hot-refresh:hover {

    color: #111;
}

.trend-loading,
.trend-empty {

    padding:
        10px 0;

    color: #bbb;

    font-size: 12px;

    list-style: none;
}




.sidebar-head {

    margin-bottom: 14px;
}

.sidebar-title {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;

    color: #aaa;
}




.search-box {

    margin-bottom: 22px;
}

.search-form {

    display: flex;

    gap: 8px;
}

.search-input {

    min-width: 0;
    flex: 1;

    height: 48px;

    padding:
        0 16px;

    border:
        1px solid #dededb;

    border-radius: 12px;

    outline: none;

    background: #fff;

    color: #111;

    font-size: 13px;

    transition: .2s;
}

.search-input:focus {

    border-color: #111;

    box-shadow:
        0 0 0 3px
        rgba(0,0,0,.05);
}

.search-button {

    height: 48px;

    padding:
        0 20px;

    border: 0;

    border-radius: 12px;

    background: #111;

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.clear-search {

    display: inline-flex;

    margin-top: 10px;

    color: #999;

    font-size: 11px;
}




.categories {

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.category {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        10px 13px;

    border-radius: 10px;

    color: #555;

    font-size: 13px;

    font-weight: 500;

    transition: .15s;
}

.category:hover {

    background: #ececea;

    color: #111;
}

.category.active {

    background: #111;

    color: #fff;

    font-weight: 700;
}




.message {

    margin:
        0 auto 20px;

    max-width: 680px;

    padding:
        11px 14px;

    border-radius: 9px;

    background: #edf8ef;

    color: #26733b;

    text-align: center;

    font-size: 12px;
}

.message.error {

    background: #fff0ee;

    color: #b42318;
}




.result-info {

    display: flex;

    align-items: center;
    justify-content: space-between;

    margin-bottom: 12px;

    color: #999;

    font-size: 11px;
}

.result-info strong {

    color: #555;
}




.site-grid {

    display: grid;

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

    gap: 12px;
}

.pagination {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    margin:
        24px 0 0;
}

.page-btn {

    padding:
        9px 18px;

    border:
        1px solid #e1e1de;

    border-radius: 9px;

    background: #fff;

    color: #333;

    font-size: 13px;

    font-weight: 600;

    transition: .15s;
}

.page-btn:hover {

    border-color: #111;

    color: #111;
}

.page-info {

    color: #999;

    font-size: 12px;
}




.site-card {

    position: relative;

    display: flex;

    flex-direction: column;

    min-width: 0;

    padding: 20px;

    background: #fff;

    border:
        1px solid #e4e4e1;

    border-radius: 16px;

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

.site-card:hover {

    transform:
        translateY(-3px);

    border-color: #c8c8c5;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.05);
}

.site-card.recommended {

    border-color: #e8c17a;

    background: #fffdf6;
}

.site-card.pinned {

    border-color: #f0b8b8;

    background: #fff7f7;
}

.site-badges {

    position: absolute;

    top: -10px;

    right: 16px;

    z-index: 3;

    display: flex;

    gap: 6px;
}

.site-badge {

    padding:
        4px 10px;

    border-radius: 999px;

    color: #fff;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.12);
}

.site-badge.badge-top {

    background: #e5484d;
}

.site-badge.badge-rec {

    background: #d8951b;
}

.site-top {

    display: flex;

    align-items: flex-start;

    gap: 12px;
}

.site-icon {

    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 11px;

    background: #f0f0ed;

    font-size: 16px;

    font-weight: 800;
}

.site-icon img {

    width: 27px;
    height: 27px;

    object-fit: contain;
}

.site-main {

    min-width: 0;
    flex: 1;
}

.site-name {

    display: block;

    overflow: hidden;

    color: #111;

    font-size: 15px;
    font-weight: 700;

    white-space: nowrap;

    text-overflow: ellipsis;
}

.site-url {

    margin-top: 5px;

    overflow: hidden;

    color: #aaa;

    font-size: 10px;

    white-space: nowrap;

    text-overflow: ellipsis;
}




.favorite-form {

    flex: 0 0 auto;
}

.favorite-button {

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    padding: 0;

    border: 0;

    border-radius: 9px;

    background: #f5f5f2;

    cursor: pointer;

    font-size: 18px;

    line-height: 1;

    transition:
        transform .15s,
        background .15s;
}

.favorite-button:hover {

    transform: scale(1.08);

    background: #fff5d9;
}

.favorite-button.active {

    background: #fff6df;
}




.site-description {

    min-height: 38px;

    margin:
        17px 0 14px;

    color: #888;

    font-size: 11px;

    line-height: 1.7;

    display:
        -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}




.site-bottom {

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-top: auto;
}

.site-meta {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 6px;
}

.site-category {

    padding:
        5px 8px;

    border-radius: 7px;

    background: #f2f2ef;

    color: #888;

    font-size: 9px;
}

.site-status {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    font-size: 9px;
}

.status-dot {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #aaa;
}

.site-status.online {

    color: #38834a;
}

.site-status.online .status-dot {

    background: #45a95c;

    animation:
        pulse 2s infinite;
}

.site-status.offline {

    color: #c04d4d;
}

.site-status.offline .status-dot {

    background: #d95353;
}

.site-status.timeout {

    color: #a57c27;
}

.site-status.timeout .status-dot {

    background: #d8a63b;
}

.site-status.unknown {

    color: #999;
}




.site-recommender {

    display: inline-flex;

    align-items: center;

    gap: 2px;

    color: #aaa;

    font-size: 9px;
}

.site-recommender strong {

    color: #777;

    font-weight: 600;
}




.site-access {

    color: #999;

    font-size: 10px;

    transition: .2s;
}

.site-card:hover .site-access {

    color: #111;
}




.empty {

    padding:
        75px 20px;

    text-align: center;

    background: #fff;

    border:
        1px solid #e4e4e1;

    border-radius: 16px;

    color: #999;
}

.empty-icon {

    margin-bottom: 12px;

    font-size: 30px;
}

.empty h2 {

    margin:
        0 0 8px;

    color: #333;

    font-size: 18px;
}

.empty p {

    margin: 0;

    font-size: 12px;
}




.article-section {
    margin-top: 45px;
}

.section-head h2 {
    margin: 0 0 16px;

    font-size: 18px;

    letter-spacing: -.3px;
}

.article-grid {
    display: grid;

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

    gap: 12px;
}

.article-card {
    display: flex;

    flex-direction: column;

    padding: 20px;

    background: #fff;

    border:
        1px solid #e4e4e1;

    border-radius: 16px;

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

.article-card:hover {
    transform:
        translateY(-3px);

    border-color: #c8c8c5;

    box-shadow:
        0 12px 30px
        rgba(0,0,0,.05);
}

.article-cover img {
    width: 100%;
    height: 140px;

    object-fit: cover;

    border-radius: 10px;

    margin-bottom: 14px;
}

.article-info h3 {
    margin: 0;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;
}

.article-info p {
    margin:
        9px 0 12px;

    color: #888;

    font-size: 11px;

    line-height: 1.7;

    display:
        -webkit-box;

    -webkit-line-clamp: 2;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

.article-info span {
    color: #aaa;

    font-size: 10px;
}

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

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }
}

.site-footer {

    padding:
        25px 20px 35px;

    border-top:
        1px solid #e8e8e5;

    color: #aaa;

    text-align: center;

    font-size: 10px;
}

.site-footer strong {

    color: #777;
}

.footer-links {

    margin-bottom: 10px;

    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 6px 18px;
}

.footer-links a {

    color: #999;

    font-size: 12px;

    text-decoration: none;
}

.footer-links a:hover {

    color: #666;

    text-decoration: underline;
}

.footer-meta a {

    text-decoration: none;
}

.footer-meta a:hover {

    text-decoration: underline;
}

.home-ads {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 18px;
}

.home-ad-item {

    flex: 1 1 300px;

    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border-radius: 10px;

    background: #f7f7f5;

    border: 1px solid #e8e8e5;

    text-decoration: none;

    color: #999;

    font-size: 13px;
}

.home-ad-item img {

    width: 100%;

    height: 100%;

    max-height: 120px;

    object-fit: cover;

    display: block;
}

.home-ad-item.home-ad-text {

    padding: 20px 16px;

    color: #555;

    font-weight: 500;
}

.home-ad-item:hover {

    border-color: #d5d5d0;
}




@media (max-width: 1100px) {

    .layout {

        flex-direction: column;

        gap: 18px;
    }

    .sidebar {

        flex: none;

        width: 100%;

        position: static;
    }

    .search-box {

        margin-bottom: 16px;
    }

    .categories {

        flex-direction: row;

        flex-wrap: nowrap;

        overflow-x: auto;

        gap: 7px;

        padding-bottom: 4px;

        scrollbar-width: none;
    }

    .categories::-webkit-scrollbar {

        display: none;
    }

    .category {

        flex: 0 0 auto;

        padding:
            8px 12px;

        border-radius: 999px;

        background: #fff;

        border:
            1px solid #e1e1de;
    }

    .category:hover {

        background: #fff;

        border-color: #aaa;
    }

    .category.active {

        background: #111;

        border-color: #111;

        color: #fff;

        font-weight: 500;
    }

    .hotbar {

        flex: none;

        width: 100%;

        position: static;

        flex-direction: row;

        flex-wrap: wrap;
    }

    .hotbar .side-card {

        flex: 1 1 240px;
    }
}

@media (max-width: 900px) {

    .site-grid {

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

@media (max-width: 600px) {

    .site-header {

        height: 60px;

        padding:
            0 15px;
    }

    .brand-mark {

        width: 34px;
        height: 34px;
    }

    .header-right {

        gap: 3px;
    }

    .header-link {

        padding:
            7px 8px;
    }

    .layout {

        width:
            calc(100% - 24px);

        padding:
            20px 0 55px;
    }

    .search-form {

        gap: 6px;
    }

    .search-button {

        padding:
            0 15px;
    }

    .site-grid {

        grid-template-columns: 1fr;

        gap: 9px;
    }

    .site-card {

        padding: 17px;
    }

    .result-info {

        margin-bottom: 10px;
    }

    .site-recommender {

        width: 100%;
    }
}


@keyframes pulse {

    0%,
    100% {

        opacity: 1;

        transform: scale(1);
    }

    50% {

        opacity: .45;

        transform: scale(.8);
    }
}


.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-modal[hidden] {
    display: none;
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 15, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-dialog {
    position: relative;
    width: min(400px, 100%);
    padding: 30px 28px 26px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.auth-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 9px;
    background: rgba(0, 0, 0, .05);
    color: #666;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.auth-close:hover {
    background: rgba(0, 0, 0, .1);
    color: #111;
}

.auth-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, .05);
}

.auth-tab {
    flex: 1;
    padding: 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #777;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab.is-active {
    background: #fff;
    color: #111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.auth-field {
    display: block;
    margin-bottom: 14px;
}

.auth-field span {
    display: block;
    margin-bottom: 6px;
    color: #444;
    font-size: 12px;
    font-weight: 600;
}

.auth-field input {
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 11px;
    background: rgba(255, 255, 255, .7);
    color: #111;
    font: inherit;
    font-size: 13px;
    outline: none;
}

.auth-field input:focus {
    border-color: #111;
    background: #fff;
}

.auth-submit {
    width: 100%;
    height: 46px;
    border: 0;
    border-radius: 11px;
    background: #111;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.auth-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.auth-msg {
    min-height: 18px;
    margin: 0 0 12px;
    color: #b42318;
    font-size: 12px;
}

.auth-msg.ok {
    color: #16803c;
}

.auth-oauth {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.auth-oauth-divider {
    margin-bottom: 12px;
    color: #999;
    font-size: 11px;
    text-align: center;
}

.auth-oauth-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.auth-oauth-btn {
    flex: 1 1 auto;
    min-width: 72px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    background: #fff;
    color: #555;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}

.auth-oauth-btn:hover {
    border-color: #111;
    color: #111;
}

