:root {
    color-scheme: light;
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12);
    --shadow-sm: 0 12px 30px rgba(15, 23, 42, 0.08);
    --border-color: rgba(37, 99, 235, 0.16);
    --muted-text: rgba(15, 23, 42, 0.7);
    --warning-color: #d97706;
    --warning-soft: #fef3c7;
    --offline-color: #dc2626;
    --offline-soft: #fee2e2;
    --normal-color: #059669;
    --normal-soft: #d1fae5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-color);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.15), transparent 24%),
        linear-gradient(145deg, var(--background-color), #f8fbff 56%, #eef4ff);
    min-height: 100vh;
}

a,
button,
input,
textarea {
    font: inherit;
}

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

.hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 32px;
    background: linear-gradient(145deg, var(--card-color), rgba(255, 255, 255, 0.82));
    box-shadow: var(--shadow-lg);
    padding: 32px;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-soft), transparent);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__content {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.04;
}

.hero p {
    max-width: 720px;
    margin: 16px 0 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted-text);
}

.hero__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 240px;
}

.hero__button,
.hero__link,
.link-card__button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero__button {
    width: 100%;
    background: var(--accent-color);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.hero__link {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.hero__button:hover,
.hero__link:hover,
.link-card__button:hover {
    transform: translateY(-1px);
}

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

.stat-card,
.notice-panel,
.link-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.88);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card {
    padding: 24px;
}

.stat-card__label {
    display: block;
    color: var(--muted-text);
    margin-bottom: 10px;
}

.stat-card strong {
    font-size: 36px;
    line-height: 1;
}

.notice-panel {
    margin-top: 24px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), var(--accent-soft));
}

.notice-panel p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

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

.link-card {
    padding: 24px;
}

.link-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.link-card h2 {
    margin: 0;
    font-size: 22px;
}

.link-card__head p {
    margin: 10px 0 0;
    color: var(--muted-text);
    word-break: break-all;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.is-normal {
    color: var(--normal-color);
    background: var(--normal-soft);
}

.is-warning {
    color: var(--warning-color);
    background: var(--warning-soft);
}

.is-offline {
    color: var(--offline-color);
    background: var(--offline-soft);
}

.link-card__note {
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.04);
    line-height: 1.7;
    color: var(--muted-text);
}

.link-card__actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.link-card__button {
    flex: 1;
}

.link-card__button.primary {
    background: var(--accent-color);
    color: #fff;
}

.link-card__button.secondary {
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-color);
}

.site-footer {
    padding: 28px 0 8px;
    text-align: center;
    color: var(--muted-text);
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(16px);
    min-width: 240px;
    max-width: calc(100% - 32px);
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 920px) {
    .hero__content,
    .link-grid,
    .stats {
        grid-template-columns: 1fr;
    }

    .hero__content {
        display: grid;
    }

    .link-grid {
        display: grid;
    }

    .stats {
        display: grid;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100% - 20px, 100%);
        padding-top: 20px;
    }

    .hero,
    .stat-card,
    .notice-panel,
    .link-card {
        border-radius: 20px;
    }

    .hero {
        padding: 24px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .link-card__head,
    .link-card__actions {
        flex-direction: column;
    }
}
