:root {
    --bg: #f4f7fb;
    --bg-accent: #e8eefc;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #18202e;
    --text-muted: #5d6778;
    --border: #dde5f0;
    --shadow: 0 18px 36px rgba(22, 38, 66, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --accent: #2f6df3;
    --accent-strong: #1f4cc9;
    --ok: #119a63;
    --warn: #d8891a;
    --bad: #de4f43;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "HarmonyOS Sans SC", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, #fef4d4 0%, transparent 35%),
        radial-gradient(circle at 90% 15%, #e8f1ff 0%, transparent 35%),
        linear-gradient(160deg, var(--bg) 0%, #f7f9ff 100%);
    min-height: 100vh;
}

.page-wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 28px auto 40px;
}

.hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 28px 30px;
    margin-bottom: 22px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.75rem, 3.3vw, 2.45rem);
    line-height: 1.2;
}

.hero p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 14px;
    font-size: 0.86rem;
    color: #1a4fc9;
    background: #e8f0ff;
    border: 1px solid #d5e4ff;
}

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

.entry-btn {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(25, 43, 71, 0.07);
    width: 100%;
    padding: 26px 20px 22px;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    text-align: left;
}

.entry-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 30px rgba(25, 43, 71, 0.12);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.entry-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    margin-bottom: 16px;
}

.entry-title {
    font-size: 1.24rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.entry-desc {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-top: 20px;
}

.panel h2,
.panel h3 {
    margin: 0 0 14px;
    font-size: 1.22rem;
}

.panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #3158b4;
    font-weight: 600;
    margin-bottom: 14px;
}

.back-link:hover {
    color: #1e3d91;
}

.form-card form {
    display: grid;
    gap: 16px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.94rem;
}

.form-group input[type="text"] {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input[type="text"]:focus {
    border-color: color-mix(in srgb, var(--accent) 58%, white);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
    background: #fff;
}

.btn-submit {
    border: none;
    border-radius: 12px;
    padding: 13px 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    box-shadow: 0 12px 20px color-mix(in srgb, var(--accent) 25%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 24px color-mix(in srgb, var(--accent) 32%, transparent);
}

.response {
    margin-top: 18px;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
}

.response.success {
    background: #edfaf4;
    border-color: #bcecd8;
}

.response.warning {
    background: #fff8eb;
    border-color: #f6deb4;
}

.response.error {
    background: #fff1f0;
    border-color: #f3c4c0;
}

.response h3 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.response p {
    margin: 7px 0;
    color: #263042;
}

.response ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.response li {
    margin: 6px 0;
    color: #3b4455;
}

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

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #e8edf6;
    border-radius: 12px;
    background: #fbfdff;
    padding: 10px 12px;
}

.status-code {
    color: var(--accent);
    font-weight: 700;
    min-width: 42px;
}

.status-text {
    color: var(--text-muted);
}

.footer {
    margin-top: 24px;
    color: #7b8597;
    text-align: center;
    font-size: 0.9rem;
}

.page-wrap,
.hero,
.entry-btn,
.panel {
    animation: rise 0.55s ease both;
}

.home-page {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 28px 0 36px;
}

.home-page .home-wrap {
    width: min(1120px, calc(100% - 40px));
}

.home-page .hero {
    max-width: 940px;
    margin: 0 auto 24px;
    padding: 34px clamp(24px, 4vw, 46px);
    text-align: center;
}

.home-page .badge {
    margin-left: auto;
    margin-right: auto;
}

.home-page .hero p {
    max-width: 680px;
    margin: 0 auto;
}

.home-page .grid-3 {
    max-width: 960px;
    margin: 0 auto;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.home-page .entry-btn {
    min-height: 212px;
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.home-page .entry-title {
    margin-bottom: 10px;
}

.home-page .panel {
    max-width: 960px;
    margin: 22px auto 0;
    text-align: center;
}

.home-page .panel p {
    max-width: 760px;
    margin: 0 auto;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .status-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .home-page .grid-3 {
        max-width: 760px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .home-page .home-wrap {
        width: min(1120px, calc(100% - 24px));
    }

    .home-page .hero {
        padding: 24px 18px;
    }

    .home-page .grid-3 {
        max-width: 430px;
        grid-template-columns: 1fr;
    }
}
