* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #172033;
    background:
        radial-gradient(circle at top left, rgba(87, 130, 255, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(20, 184, 166, 0.18), transparent 30%),
        linear-gradient(135deg, #eef4ff 0%, #f8fbff 45%, #eefbf8 100%);
}

.page {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 64px;
}

.hero {
    text-align: center;
    margin-bottom: 28px;
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(73, 93, 138, 0.12);
    color: #3461ff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

h1 {
    margin: 18px 0 12px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
}

.hero p {
    margin: 0 auto;
    max-width: 760px;
    color: #5a6478;
    font-size: 18px;
}

.card,
.tips {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(43, 62, 105, 0.16);
    backdrop-filter: blur(18px);
}

.card {
    padding: 30px;
}

.upload-form {
    display: grid;
    gap: 20px;
}

.file-box {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 24px;
    border: 2px dashed rgba(52, 97, 255, 0.34);
    border-radius: 22px;
    background: rgba(246, 249, 255, 0.78);
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

.file-box:hover {
    border-color: rgba(52, 97, 255, 0.7);
    transform: translateY(-2px);
}

.file-box input {
    width: min(360px, 100%);
}

.file-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #3461ff, #14b8a6);
    color: white;
    font-size: 26px;
    box-shadow: 0 18px 35px rgba(52, 97, 255, 0.24);
}

.file-box strong {
    font-size: 20px;
}

.file-box small {
    color: #667085;
}

.format-row {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    color: #3c465a;
}

button,
.download-btn {
    border: 0;
    border-radius: 16px;
    padding: 15px 26px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #3461ff, #14b8a6);
    box-shadow: 0 18px 38px rgba(52, 97, 255, 0.28);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

button:hover,
.download-btn:hover {
    filter: brightness(1.05);
}

.message {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
}

.message h2 {
    margin-top: 0;
}

.success {
    background: rgba(223, 246, 240, 0.85);
    border: 1px solid rgba(20, 184, 166, 0.22);
}

.error {
    background: rgba(255, 232, 232, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #991b1b;
}

.download-btn {
    display: inline-block;
    margin-top: 8px;
}

.tips {
    margin-top: 26px;
    padding: 26px;
}

.tips h2 {
    margin: 0 0 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.grid div {
    padding: 16px;
    border-radius: 18px;
    background: rgba(246, 249, 255, 0.8);
}

.grid b {
    display: block;
    margin-bottom: 8px;
    color: #3461ff;
}

.grid span {
    color: #566176;
}

pre {
    margin: 18px 0 0;
    padding: 18px;
    overflow-x: auto;
    border-radius: 18px;
    background: #172033;
    color: #d7fff7;
}

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

    .card,
    .tips {
        border-radius: 22px;
        padding: 22px;
    }
}

.result-table-wrap {
    margin-top: 24px;
    overflow-x: auto;
}

.result-table-wrap h2 {
    margin: 0 0 14px;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.85);
}

.result-table th,
.result-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(102, 112, 133, 0.16);
    text-align: left;
    font-size: 14px;
}

.result-table th {
    color: #ffffff;
    background: linear-gradient(135deg, #1f4e78, #3461ff);
    white-space: nowrap;
}

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

.result-table td:nth-child(3),
.result-table td:nth-child(4),
.result-table td:nth-child(5) {
    text-align: center;
    font-weight: 800;
    color: #1f4e78;
}

.site-footer {
    display: flex;
    justify-content: center;
    padding: 0 16px 28px;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-footer a:hover {
    color: #1f4e78;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:focus-visible {
    outline: 2px solid #3461ff;
    outline-offset: 4px;
    border-radius: 4px;
}

.beian-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
