:root {
    color-scheme: light;
    --ink: #17232d;
    --muted: #687681;
    --soft: #f4f7f8;
    --surface: #ffffff;
    --line: #dfe6e9;
    --accent: #0f766e;
    --accent-dark: #115e59;
    --accent-soft: #e4f3f0;
    --warm: #f2b84b;
    --shadow: 0 12px 28px rgba(23, 35, 45, 0.08);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--soft);
}

body {
    min-width: 320px;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #edf7f5 0, #f4f7f8 320px, var(--soft) 100%);
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

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

.site-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 86px;
    border-bottom: 1px solid rgba(15, 118, 110, 0.14);
}

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

.brand-mark,
.category-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: var(--accent);
    font-weight: 800;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    box-shadow: 0 5px 12px rgba(15, 118, 110, 0.22);
}

.brand-name,
.brand-subtitle {
    display: block;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.2;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: 7px;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    transition: color 160ms ease, background-color 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.page-content {
    padding: 52px 0 32px;
}

.hero,
.page-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}

.hero {
    min-height: 236px;
    padding: 30px 0 44px;
}

.hero-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero-copy p:last-child,
.intro-copy {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 16px;
}

.hero-stat,
.count-badge {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: flex-end;
    color: var(--muted);
}

.hero-stat strong,
.count-badge strong {
    color: var(--accent);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.hero-stat span,
.count-badge span {
    margin-top: 5px;
    font-size: 13px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.category-card,
.link-card,
.notice-panel {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.category-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 20px;
    border-radius: var(--radius);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.category-card:hover,
.category-card:focus-visible {
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 16px 32px rgba(15, 118, 110, 0.14);
    transform: translateY(-2px);
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    font-size: 19px;
}

.category-content {
    display: block;
    min-width: 0;
    flex: 1;
}

.category-title,
.category-meta {
    display: block;
}

.category-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.category-meta {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.category-arrow,
.link-arrow {
    color: var(--accent);
    font-size: 21px;
    line-height: 1;
}

.notice-panel {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 680px;
    margin-top: 34px;
    padding: 18px 20px;
    border-radius: var(--radius);
    box-shadow: none;
}

.notice-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 50%;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-weight: 800;
}

.notice-panel h2 {
    margin-bottom: 2px;
    font-size: 15px;
    line-height: 1.4;
}

.notice-panel p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 13px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
}

.back-link::before {
    content: "←";
}

.page-intro {
    margin-bottom: 30px;
}

.page-intro h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 5vw, 46px);
}

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

.link-card {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 14px 16px;
    border-radius: 8px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.link-card:hover,
.link-card:focus-visible {
    border-color: rgba(15, 118, 110, 0.42);
    box-shadow: 0 12px 26px rgba(15, 118, 110, 0.12);
    transform: translateY(-1px);
}

.link-index {
    color: #91a0a7;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
}

.link-title {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.empty-state {
    max-width: 520px;
    padding: 72px 0;
}

.empty-state h1 {
    font-size: 42px;
}

.empty-state p:not(.eyebrow) {
    margin-bottom: 24px;
    color: var(--muted);
}

.primary-button {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 7px;
    color: #ffffff;
    background: var(--accent);
    font-size: 14px;
    font-weight: 800;
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--accent-dark);
}

:is(a, button):focus-visible {
    outline: 3px solid rgba(242, 184, 75, 0.75);
    outline-offset: 3px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0 32px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

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

    .category-nav {
        justify-content: flex-start;
        width: 100%;
    }

    .page-content {
        padding-top: 34px;
    }

    .category-grid,
    .link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .site-shell {
        width: min(100% - 24px, 1120px);
    }

    .hero,
    .page-intro {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .hero {
        min-height: 0;
        padding: 28px 0 34px;
    }

    .hero-stat,
    .count-badge {
        align-items: flex-start;
        flex-direction: row;
        gap: 8px;
    }

    .hero-stat strong,
    .count-badge strong {
        font-size: 34px;
    }

    .hero-stat span,
    .count-badge span {
        align-self: flex-end;
        margin: 0 0 4px;
    }

    .page-intro {
        margin-bottom: 24px;
    }

    .link-card {
        grid-template-columns: 28px minmax(0, 1fr) 20px;
        padding: 13px 12px;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
