:root {
    color-scheme: dark;
    --bg0: #070a14;
    --bg1: #0b1230;
    --surface: rgba(255, 255, 255, 0.06);
    --surface-2: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.12);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --accent: #a78bfa;
    --accent-2: #fb7185;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    --radius: 18px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 700px at 15% 10%, rgba(167, 139, 250, 0.22), transparent 55%),
        radial-gradient(900px 600px at 85% 30%, rgba(251, 113, 133, 0.16), transparent 50%),
        radial-gradient(1000px 700px at 40% 95%, rgba(99, 102, 241, 0.18), transparent 55%),
        linear-gradient(180deg, var(--bg0), var(--bg1));
    background-attachment: fixed;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
    transform: translateY(-140%);
    transition: transform 160ms ease;
    z-index: 10;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid rgba(167, 139, 250, 0.55);
    outline-offset: 2px;
}

.page {
    position: relative;
    min-height: 100%;
    padding: 44px 20px 64px;
    overflow-x: hidden;
}

.page::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.35) 0, transparent 2px),
        radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.22) 0, transparent 2px),
        radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.18) 0, transparent 2px),
        radial-gradient(1px 1px at 85% 70%, rgba(255, 255, 255, 0.22) 0, transparent 2px);
    opacity: 0.65;
    mix-blend-mode: screen;
}

.container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.brand__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.12);
}

.brand__name {
    font-weight: 650;
    letter-spacing: 0.02em;
}

.topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.topbar__link:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.topbar__link:focus-visible {
    outline: 3px solid rgba(167, 139, 250, 0.4);
    outline-offset: 2px;
}

.hero {
    margin: 18px 0 28px;
    padding: 18px 0 6px;
}

.hero h1 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3.4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 0;
    max-width: 56ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.notice {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 0;
    padding: 16px 16px 15px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.notice::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
    opacity: 0.9;
}

.notice__content {
    padding-left: 10px;
    min-width: 0;
}

.notice__title {
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
}

.notice__text {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    font-size: 13px;
}

.notice__close {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0;
    line-height: 1;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.notice__close::before {
    content: "×";
    font-size: 18px;
    line-height: 1;
}

.notice__close:hover {
    transform: translateY(-1px);
    border-color: rgba(167, 139, 250, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.notice__close:active {
    transform: translateY(0);
}

.notice__close:focus-visible {
    outline: 3px solid rgba(167, 139, 250, 0.45);
    outline-offset: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.card {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 16px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.04));
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    backdrop-filter: blur(10px);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.card--disabled {
    opacity: 0.72;
    border-style: dashed;
}

.card--disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border);
}

.card--disabled .card__cta {
    color: rgba(255, 255, 255, 0.62);
}

.card--disabled .card__cta::after {
    content: "…";
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(167, 139, 250, 0.36);
    box-shadow: var(--shadow);
}

.card:focus-visible {
    outline: 3px solid rgba(167, 139, 250, 0.45);
    outline-offset: 2px;
}

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

.card__symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(167, 139, 250, 0.12);
    border: 1px solid rgba(167, 139, 250, 0.22);
    font-size: 22px;
    line-height: 1;
}

.card__title {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0.01em;
}

.card__date {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.card__desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.7;
}

.card__cta {
    margin-top: auto;
    font-size: 13px;
    color: rgba(167, 139, 250, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card__cta::after {
    content: "→";
    opacity: 0.9;
}

.footer {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 960px) {
    .card {
        grid-column: span 6;
    }
}

@media (max-width: 600px) {
    .page {
        padding-top: 28px;
    }

    .notice {
        padding: 14px 14px 13px;
        gap: 12px;
    }

    .notice__close {
        width: 32px;
        height: 32px;
        border-radius: 12px;
    }

    .grid {
        gap: 12px;
    }

    .card {
        grid-column: span 12;
        padding: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    .card,
    .topbar__link {
        transition: none;
    }

    .card:hover {
        transform: none;
        box-shadow: none;
    }

    .skip-link {
        transition: none;
    }
}
