body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 32%),
        linear-gradient(180deg, #eef2ff 0%, #f8fafc 100%);
    color: #1f2937;
}

.container {
    max-width: 980px;
    margin: 32px auto;
    padding: 32px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: -0.03em;
    color: #111827;
}

p {
    color: #4b5563;
    margin: 0;
}

.subtitle {
    margin-top: 12px;
    color: #475569;
    line-height: 1.7;
}

section {
    margin-top: 24px;
    padding: 26px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 1.2rem;
    color: #0f172a;
}

label {
    display: block;
    margin-bottom: 16px;
    font-size: 0.96rem;
    color: #334155;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
}

input[type="number"],
input[type="text"],
input[type="tel"] {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 1rem;
    color: #0f172a;
    background: #f8fafc;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="number"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

/* 下拉菜单样式优化 */
select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 16px 20px;
    margin-top: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    line-height: 1.8;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    min-height: 56px;
}

select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
    background-color: #ffffff;
}

select:hover {
    border-color: #94a3b8;
    background-color: #ffffff;
}

select option {
    padding: 12px 16px;
    font-size: 1.1rem;
    line-height: 1.8;
    min-height: 48px;
}

button {
    margin-top: 20px;
    width: 100%;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
    letter-spacing: 0.02em;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(37, 99, 235, 0.2);
}

.result-card {
    margin-top: 28px;
    padding: 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.result-card strong {
    color: #1e3a8a;
}

.subscores {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.notice,
.error-card,
.advice,
.api-info {
    border-radius: 18px;
    padding: 18px 22px;
}

.notice {
    margin-top: 18px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.error-card {
    margin-top: 22px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.error-card ul,
.advice ul {
    margin: 0;
    padding-left: 18px;
}

.advice {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.api-info {
    margin-top: 28px;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

.api-info pre {
    margin-top: 12px;
    padding: 16px;
    background: #0f172a;
    color: #f8fafc;
    overflow-x: auto;
    border-radius: 14px;
}

.field-note {
    margin: 6px 0 14px;
    font-size: 0.95rem;
    color: #0f172a;
}

.field-note strong {
    font-weight: 700;
}

.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    border-radius: 14px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
    margin-top: 16px;
}

.secondary-button:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.choice-card {
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.04);
}

.choice-card h2 {
    margin-top: 0;
}

.choice-card p {
    color: #475569;
    line-height: 1.7;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.system-choice {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.match-item {
    padding: 14px 16px;
    margin-bottom: 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
}

.match-item p {
    margin: 4px 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.page-header .brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
}

.page-header .logo {
    max-height: 64px;
    max-width: 180px;
    object-fit: contain;
}

.form-field input {
    min-height: 52px;
}

@media (max-width: 760px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header .logo {
        max-width: 140px;
    }
}

.field-note {
    margin: 4px 0 12px;
    font-size: 0.92rem;
    color: #111827;
}

.field-note strong {
    font-weight: 700;
}

.consultation-card {
    margin-top: 24px;
    padding: 20px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.1);
}

.consultation-card h3 {
    margin-top: 0;
    color: #0c4a6e;
}

.consultation-card p {
    margin: 8px 0 16px;
    color: #0369a1;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #0f172a;
}

.disclaimer {
    margin-top: 32px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 12px;
    text-align: center;
}

.disclaimer p {
    margin: 0;
    font-weight: 600;
    color: #92400e;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

#contact-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 500;
    color: #374151;
}

#contact-form input {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
}

.confirm-button {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 16px;
}

.confirm-button:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-2px);
}

.close-btn {
    background: #6b7280;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 16px;
}

.close-btn:hover {
    background: #4b5563;
}

/* 页脚样式 */
.site-footer {
    margin-top: 40px;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.icp-info {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.icp-info a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.icp-info a:hover {
    color: #2563eb;
    text-decoration: underline;
}
