/* 全局重置 & 字体 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f7f0fc 0%, #e9def5 100%);
    padding: 20px;
    position: relative;
}
/* 背景装饰光晕 */
body::before {
    content: '';
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(118, 75, 162, 0.08);
    top: -200px;
    right: -200px;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.06);
    bottom: -100px;
    left: -100px;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    background: #ffffff;
    border-radius: 28px;
    padding: 44px 40px 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 30px 80px rgba(80, 50, 120, 0.18), 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    overflow: hidden; /* 保证顶部装饰条不溢出圆角 */
}

.container:hover {
    transform: translateY(-4px);
    box-shadow: 0 40px 100px rgba(80, 50, 120, 0.22);
}

/* 顶部装饰条 */
.top-bar {
    height: 5px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    margin: -44px -40px 32px -40px;
}

/* ===== Logo 区域 · 新增红色背景 ===== */
.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #b22222;
    min-height: 90px;
    padding: 14px 10px;
    margin: -44px -40px 16px -40px;
    border-radius: 28px 28px 0 0;
    box-shadow: 0 4px 12px rgba(180, 30, 30, 0.15);
}

.logo-area img {
    max-width: 300px;
    max-height: 70px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    /* 如果您的 Logo 不是白色，用滤镜变白；如果本身就是白色，删掉下面两行 */
    filter: brightness(0) invert(1);
}

/* 注：去掉 logo-fallback，所以删除相关样式 */

h1 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #2d1b42;
    letter-spacing: 3px;
    margin-bottom: 28px;
    position: relative;
}

h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    margin: 10px auto 0;
}

/* 标题（您自定义的 .title） */
.title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #4d2e1b;
    letter-spacing: 6px;
    margin-bottom: 8px;
    background: linear-gradient(180deg, #6a3e2a 30%, #b2815e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #4a3a5e;
    letter-spacing: 0.5px;
}

label .required-star {
    color: #e74c6f;
    margin-left: 2px;
}

input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e0f0;
    border-radius: 14px;
    font-size: 16px;
    color: #1e142b;
    background: #fbfaff;
    transition: border-color 0.25s, box-shadow 0.25s;
    outline: none;
    font-weight: 500;
}

input:focus {
    border-color: #764ba2;
    box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.12);
    background: #ffffff;
}

input::placeholder {
    color: #b3a8c2;
    font-weight: 400;
}

/* 按钮 */
button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

button:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.45);
}

button:active {
    transform: scale(0.97);
}

/* 结果区域 – 成功状态 */
.result {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 2px dashed #e8e0f0;
    text-align: center;
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result .congrats {
    font-size: 20px;
    font-weight: 700;
    color: #2d1b42;
    background: linear-gradient(135deg, #f9f2ff, #f0e6ff);
    padding: 12px 20px;
    border-radius: 60px;
    display: inline-block;
    margin-bottom: 14px;
    letter-spacing: 1px;
    box-shadow: inset 0 1px 4px rgba(118,75,162,0.08);
}

.result .major {
    font-size: 22px;
    font-weight: 700;
    color: #4a2c6b;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1.5px solid #dcc9f0;
    display: inline-block;
    min-width: 60%;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(118,75,162,0.06);
}

.result .major small {
    font-weight: 400;
    font-size: 16px;
    color: #8a75a8;
    margin-right: 6px;
}

/* 未查到状态（您已经添加） */
.result-not-found {
    background: #fefaf5;
    border-radius: 20px;
    padding: 28px 20px 24px;
    border: 1.5px solid #fae1d2;
    box-shadow: 0 4px 16px rgba(200, 120, 80, 0.06);
}

.result-not-found .icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.result-not-found .main-msg {
    font-size: 20px;
    font-weight: 700;
    color: #7a4a2e;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.result-not-found .sub-msg {
    font-size: 15px;
    color: #9a7a64;
    margin-bottom: 18px;
    line-height: 1.6;
}
/* 您可以继续添加 .help-list 等，这里不做改动 */

/* 底部 */
.disclaimer {
    font-size: 12px;
    color: #b5a8c0;
    text-align: center;
    letter-spacing: 1px;
    margin-top: 20px;
}

.footer-note {
    margin-top: 24px;
    font-size: 12px;
    color: #c9bdd6;
    text-align: center;
    letter-spacing: 2px;
    border-top: 1px solid #f0ebf5;
    padding-top: 18px;
}

/* 响应式 */
@media (max-width: 520px) {
    .container {
        padding: 32px 20px 28px;
    }

    .top-bar {
        margin: -32px -20px 28px -20px;
    }

    h1 {
        font-size: 22px;
    }

    .title {
        font-size: 24px;
    }

    .logo-area {
        padding: 14px 8px;
    }

        .logo-area img {
            max-width: 150px;
            max-height: 60px;
        }

    .result .major {
        font-size: 18px;
        padding: 12px 16px;
        min-width: auto;
        width: 100%;
    }

    .result .congrats {
        font-size: 17px;
        padding: 10px 16px;
    }

    button {
        font-size: 16px;
        padding: 14px;
    }

    input {
        padding: 12px 16px;
        font-size: 15px;
    }
}