:root {
    color-scheme: dark;
    --text: #f7f8ff;
    --muted: rgba(247, 248, 255, .66);
    --line: rgba(255, 255, 255, .18);
    --glass: rgba(255, 255, 255, .14);
    --glass-strong: rgba(255, 255, 255, .2);
    --accent: #7cc7ff;
    --accent-2: #ffd76f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background: #101827 var(--page-bg) center / cover fixed no-repeat;
}

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

button,
input {
    font: inherit;
}

.page-backdrop {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, .16) 0%, rgba(15, 23, 42, .5) 52%, rgba(8, 13, 25, .78) 100%),
        rgba(20, 30, 55, .16);
}

.home-shell {
    position: relative;
    z-index: 1;
    width: min(1440px, calc(100% - 40px));
    margin: 0 auto;
    padding: 58px 0 86px;
}

.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 260px;
}

.admin-entry {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 4;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(18px);
}

.admin-entry svg,
.music-toggle svg,
.search-bar button svg,
.locked-panel svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.clock {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(58px, 8vw, 104px);
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 16px 36px rgba(0, 0, 0, .28);
}

.date-line {
    margin-top: -6px;
    color: var(--muted);
    font-size: 15px;
    letter-spacing: 0;
}

.search-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 72px;
    align-items: center;
    width: min(720px, 100%);
    height: 58px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 28px;
    background: rgba(255, 255, 255, .2);
    box-shadow: 0 18px 54px rgba(0, 0, 0, .16);
    backdrop-filter: blur(22px);
}

.search-badge {
    display: grid;
    min-width: 86px;
    height: 100%;
    place-items: center;
    border-right: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-weight: 700;
}

.search-bar input {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, .68);
}

.search-bar button {
    display: grid;
    height: 100%;
    place-items: center;
    border: 0;
    color: var(--accent);
    background: rgba(255, 255, 255, .08);
    cursor: pointer;
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
}

.quick-nav a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 0 16px;
    background: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
}

.front-notice {
    width: min(560px, 100%);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(16px);
}

.front-notice.danger {
    border-color: rgba(255, 120, 120, .5);
    color: #ffd5d5;
}

.front-notice.success {
    border-color: rgba(125, 230, 170, .5);
    color: #d8ffe6;
}

.nav-sections {
    display: grid;
    gap: 22px;
}

.nav-section {
    scroll-margin-top: 24px;
}

.section-title {
    display: grid;
    grid-template-columns: 9px auto 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-title::after {
    content: "";
    height: 1px;
    background: rgba(255, 255, 255, .16);
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(124, 199, 255, .8);
}

.section-icon {
    color: var(--accent-2);
    font-size: 15px;
    font-weight: 700;
}

.section-title h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0;
}

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

.site-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    min-height: 72px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 16px 28px rgba(0, 0, 0, .12);
    backdrop-filter: blur(18px);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.site-card:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 199, 255, .42);
    background: rgba(255, 255, 255, .22);
}

.site-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #6aa8ff, #8bdfc7);
}

.site-icon.image {
    background: rgba(255, 255, 255, .12);
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.site-text strong,
.site-text em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-text strong {
    font-size: 15px;
}

.site-text em {
    margin-top: 4px;
    color: rgba(255, 255, 255, .62);
    font-size: 12px;
    font-style: normal;
}

.locked-panel {
    display: grid;
    grid-template-columns: 36px minmax(0, 300px) 88px;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 14px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(16px);
}

.locked-panel input {
    min-width: 0;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    outline: 0;
    background: rgba(255, 255, 255, .1);
}

.locked-panel button {
    height: 40px;
    border: 0;
    border-radius: 8px;
    color: #062235;
    font-weight: 700;
    background: var(--accent);
    cursor: pointer;
}

.empty-state {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 28px;
    color: rgba(255, 255, 255, .72);
    text-align: center;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(16px);
}

.empty-state.small {
    padding: 20px;
}

.site-footer {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 20px 28px;
    color: rgba(255, 255, 255, .64);
    font-size: 13px;
}

.site-footer a:hover {
    color: #fff;
}

.music-toggle {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 4;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    backdrop-filter: blur(18px);
    cursor: pointer;
}

.music-toggle.playing {
    color: #092137;
    background: var(--accent);
}

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

@media (max-width: 860px) {
    .home-shell {
        width: min(100% - 28px, 720px);
        padding-top: 42px;
    }

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

    .clock {
        font-size: 62px;
    }
}

@media (max-width: 560px) {
    .search-bar {
        grid-template-columns: 64px minmax(0, 1fr) 52px;
        height: 52px;
    }

    .quick-nav {
        gap: 8px;
    }

    .quick-nav a {
        min-height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

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

    .locked-panel {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .locked-panel button {
        grid-column: 1 / -1;
    }
}

