:root {
    --bg: #07111f;
    --bg-soft: #0c182a;
    --panel: rgba(10, 18, 31, 0.82);
    --panel-strong: rgba(11, 21, 37, 0.96);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #edf3ff;
    --muted: #94a4c3;
    --accent: #8db6ff;
    --accent-strong: #d7b47c;
    --accent-soft: rgba(141, 182, 255, 0.14);
    --shadow: 0 30px 80px rgba(1, 5, 12, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(141, 182, 255, 0.16), transparent 28%),
        radial-gradient(circle at 82% 16%, rgba(215, 180, 124, 0.13), transparent 20%),
        linear-gradient(180deg, #040a13 0%, var(--bg) 52%, #091321 100%);
}

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

code,
pre {
    font-family: "Cascadia Code", "Consolas", monospace;
}

code {
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    backdrop-filter: blur(16px);
    background: rgba(4, 10, 19, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-avatar-shell {
    display: inline-flex;
    width: 42px;
    height: 42px;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent) 100%);
    box-shadow: 0 0 32px rgba(141, 182, 255, 0.28);
}

.brand-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 42%;
    background: #fff;
}

.brand-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.site-nav {
    display: inline-flex;
    gap: 18px;
    color: var(--muted);
    font-size: 14px;
}

.site-nav a:hover {
    color: var(--text);
}

.hero {
    min-height: calc(100svh - 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    padding: 38px 28px 48px;
}

.hero-copy {
    max-width: 720px;
    padding-left: clamp(4px, 4vw, 40px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero h1,
.section-head h2,
.manage-shell h2 {
    margin: 0;
    font-family: "Source Han Serif SC", "Noto Serif SC", "STSong", serif;
    line-height: 1.04;
}

.hero h1 {
    max-width: 11ch;
    font-size: clamp(38px, 5.2vw, 60px);
}

.hero-text,
.section-copy,
.entry-description,
.search-hint,
.empty-state span {
    color: var(--muted);
    line-height: 1.8;
}

.hero-text {
    max-width: 28em;
    margin: 18px 0 0;
    font-size: 16px;
}

.search-shell {
    margin-top: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-input,
.search-button {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    font-size: 15px;
}

.search-input {
    padding: 0 18px;
    color: var(--text);
    background: rgba(7, 13, 22, 0.92);
    outline: none;
}

.search-input:focus {
    border-color: rgba(141, 182, 255, 0.55);
    box-shadow: 0 0 0 4px rgba(141, 182, 255, 0.08);
}

.search-button {
    padding: 0 18px;
    color: #07111f;
    background: linear-gradient(135deg, var(--accent-strong) 0%, #f0d9a8 100%);
    cursor: pointer;
}

.search-hint {
    margin: 12px 0 0;
    font-size: 12px;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.hero-meta div {
    padding: 16px;
    border-top: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
}

.meta-label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 8px;
}

.hero-meta strong {
    font-size: 22px;
    font-weight: 700;
}

.hero-panel {
    position: relative;
    min-height: 530px;
    border-radius: 34px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, rgba(9, 18, 32, 0.92), rgba(5, 11, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.panel-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.24));
}

.hero-avatar-stage {
    position: absolute;
    top: 24px;
    left: 34px;
    right: 34px;
    display: grid;
    justify-items: center;
    gap: 10px;
    z-index: 1;
}

.hero-avatar-shell {
    width: min(204px, 48%);
    aspect-ratio: 1;
    padding: 7px;
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(215, 180, 124, 0.95), rgba(141, 182, 255, 0.95));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 24px 56px rgba(1, 6, 13, 0.34);
}

.hero-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 42%;
    background: #fff;
}

.hero-avatar-copy {
    text-align: center;
}

.hero-avatar-copy strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.04em;
}

.hero-avatar-copy span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.panel-list {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
    top: 248px;
    display: grid;
    align-content: start;
    gap: 12px;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 182, 255, 0.28) transparent;
}

.panel-list::-webkit-scrollbar {
    width: 8px;
}

.panel-list::-webkit-scrollbar-track {
    background: transparent;
}

.panel-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(141, 182, 255, 0.24);
}

.featured-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(8, 15, 27, 0.78);
    transform: translateY(18px);
    opacity: 0;
    transition: transform 500ms ease, opacity 500ms ease, border-color 180ms ease;
}

.featured-pill.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.featured-pill:hover {
    border-color: rgba(141, 182, 255, 0.28);
}

.featured-pill strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.featured-pill span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.featured-pill em {
    align-self: center;
    font-style: normal;
    color: var(--accent-strong);
    font-size: 12px;
    letter-spacing: 0.12em;
}

.section {
    padding: 94px 28px;
}

.section-head {
    max-width: 880px;
}

.section-head h2,
.manage-shell h2 {
    max-width: 12ch;
    font-size: clamp(30px, 4.8vw, 56px);
}

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);
    cursor: pointer;
    transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: var(--text);
    border-color: rgba(141, 182, 255, 0.4);
    background: var(--accent-soft);
}

.result-meta {
    display: inline-flex;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.directory-list {
    margin-top: 26px;
    border-top: 1px solid var(--line);
}

.directory-entry {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr) auto;
    gap: 24px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.entry-main strong {
    display: block;
    font-size: 22px;
}

.entry-description {
    margin-top: 10px;
    font-size: 14px;
}

.entry-meta {
    display: grid;
    gap: 8px;
}

.entry-url {
    color: var(--accent);
    font-size: 13px;
    word-break: break-all;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.entry-tag {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 12px;
}

.entry-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.03);
    transition: transform 160ms ease, border-color 160ms ease;
}

.entry-action:hover {
    transform: translateY(-1px);
    border-color: rgba(141, 182, 255, 0.45);
}

.empty-state {
    margin-top: 24px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}

.empty-state p {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
}

.manage-section {
    padding-top: 40px;
}

.manage-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    padding: 30px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(11, 20, 35, 0.94), rgba(6, 12, 23, 0.98)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.manage-code {
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    overflow: auto;
}

.manage-code pre {
    margin: 0;
    color: #dce7ff;
    line-height: 1.8;
    white-space: pre-wrap;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 28px;
    color: var(--muted);
    font-size: 13px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .hero,
    .manage-shell {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-panel {
        min-height: 438px;
    }

    .hero-avatar-stage {
        top: 20px;
        left: 28px;
        right: 28px;
    }

    .panel-list {
        top: 222px;
    }

    .directory-entry {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

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

    .site-nav {
        flex-wrap: wrap;
        gap: 10px 14px;
    }

    .hero {
        padding-top: 26px;
    }

    .hero h1 {
        max-width: 9ch;
    }

    .hero-panel {
        min-height: 450px;
    }

    .hero-avatar-shell {
        width: min(164px, 58%);
    }

    .panel-list {
        top: 196px;
    }

    .search-row,
    .hero-meta {
        grid-template-columns: 1fr;
    }

    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}
