:root {
    --bg: #f3f6fa;
    --bg-accent: #e9eef6;
    --surface: #ffffff;
    --surface-soft: #f7f9fc;
    --text: #172033;
    --text-muted: #627085;
    --border: #dfe6f0;
    --shadow: 0 14px 32px rgba(22, 38, 66, 0.08);
    --shadow-soft: 0 8px 18px rgba(22, 38, 66, 0.06);
    --radius-lg: 16px;
    --radius-md: 10px;
    --accent: #2f6df3;
    --accent-strong: #1f4cc9;
    --ok: #119a63;
    --warn: #d8891a;
    --bad: #de4f43;
    --focus: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

* {
    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: linear-gradient(180deg, #eef3f8 0%, #f8fafd 48%, var(--bg) 100%);
    min-height: 100vh;
}

.page-wrap {
    width: min(920px, calc(100% - 32px));
    margin: 24px auto 38px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 26px 30px;
    margin-bottom: 18px;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--accent), var(--accent-strong));
}

.hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.72rem, 3vw, 2.35rem);
    line-height: 1.2;
    letter-spacing: 0;
}

.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: var(--accent-strong);
    background: color-mix(in srgb, var(--accent) 10%, white);
    border: 1px solid color-mix(in srgb, var(--accent) 22%, white);
}

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

.entry-btn {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    padding: 26px 20px 22px;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    text-align: left;
}

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

.entry-btn:focus-visible,
.back-link:focus-visible,
.btn-submit:focus-visible,
.captcha-img-button:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.entry-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    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.14rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.entry-desc {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

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

.panel h2,
.panel h3 {
    margin: 0 0 14px;
    font-size: 1.16rem;
    line-height: 1.35;
}

.panel > h2,
.panel > h3 {
    text-align: center;
}

.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: var(--accent-strong);
    font-weight: 600;
    margin-bottom: 14px;
    width: fit-content;
    border-radius: 8px;
    padding: 6px 2px;
}

.back-link:hover {
    color: var(--accent);
}

.form-card {
    margin-left: auto;
    margin-right: auto;
}

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

.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;
    color: #263248;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: var(--radius-md);
    padding: 13px 14px;
    min-height: 48px;
    font-family: inherit;
    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 textarea {
    min-height: 170px;
    line-height: 1.65;
    resize: vertical;
}

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

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: center;
}

.captcha-img-button {
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    padding: 0;
    overflow: hidden;
    cursor: pointer;
}

.captcha-img-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.btn-submit {
    border: none;
    border-radius: var(--radius-md);
    padding: 13px 18px;
    min-height: 48px;
    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.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

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

.btn-submit:active {
    transform: translateY(0);
}

.response {
    margin-top: 18px;
    border-radius: var(--radius-md);
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left-width: 5px;
}

.response.success {
    background: #edfaf4;
    border-color: #bcecd8;
    border-left-color: var(--ok);
}

.response.warning {
    background: #fff8eb;
    border-color: #f6deb4;
    border-left-color: var(--warn);
}

.response.error {
    background: #fff1f0;
    border-color: #f3c4c0;
    border-left-color: var(--bad);
}

.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;
}

.response .result-summary {
    margin: 0 0 12px;
    color: var(--text-muted);
}

.result-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.result-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    background: #fff;
}

.result-table th,
.result-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    word-break: break-all;
}

.result-table th {
    white-space: nowrap;
    color: #475569;
    background: var(--surface-soft);
}

.result-table tbody tr:last-child td {
    border-bottom: none;
}

.result-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 0.78rem;
}

.result-status.success {
    color: #166534;
    background: #dcfce7;
}

.result-status.pending {
    color: #92400e;
    background: #fef3c7;
}

.result-status.failed {
    color: #991b1b;
    background: #fee2e2;
}

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

.status-item {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border: 1px solid #e8edf6;
    border-radius: var(--radius-md);
    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: 30px 0 36px;
}

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

.home-page .hero {
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 30px clamp(24px, 4vw, 42px);
    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: 1100px;
    margin: 0 auto;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
}

.home-page .entry-btn {
    min-height: 164px;
    padding: 20px 16px;
    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: 1100px;
    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: 1100px) {
    .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));
    }

    .page-wrap {
        width: min(920px, calc(100% - 24px));
        margin-top: 18px;
    }

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

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

    .panel,
    .hero {
        padding: 20px 18px;
    }

    .captcha-row {
        grid-template-columns: minmax(0, 1fr) 118px;
        gap: 10px;
    }
}
