@charset "utf-8";

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
    color: #333;
    overflow-x: hidden;
}

body {
    background: #001a3d;
}

.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/school_bg.jpg') center center no-repeat;
    background-size: cover;
    z-index: 0;
}

.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
}

.page-logo {
    position: absolute;
    top: 22px;
    left: 26px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.page-logo img {
    height: 56px;
    display: block;
}

.page-logo .logo-text {
    font-size: 20px;
    letter-spacing: 2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.page-footer {
    position: fixed;
    bottom: 14px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    z-index: 100;
    line-height: 22px;
}

.page-footer .ua-line {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    letter-spacing: 0.4px;
    margin-top: 2px;
}

/* --- 登录面板（对齐 login-style3 玻璃卡片） --- */
.login-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    z-index: 10;
    padding: 30px 36px 24px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.32);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    color: #fff;
}

.login-header {
    font-size: 22px;
    letter-spacing: 3px;
    padding: 8px 0 22px;
    text-align: center;
}

.login-form .form-row {
    position: relative;
    margin-bottom: 18px;
    background: #fff;
    border-radius: 3px;
}

.login-form .form-row input {
    width: 100%;
    height: 40px;
    line-height: 40px;
    padding: 0 14px 0 40px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    border-radius: 3px;
}

.login-form .form-row .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    fill: #b6c2d2;
}

.login-btn {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 3px;
    background: #409EFF;
    color: #fff;
    font-size: 15px;
    letter-spacing: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.login-btn:hover { background: #66b1ff; }
.login-btn:disabled { background: #a6c9ea; cursor: not-allowed; }

.form-msg {
    min-height: 18px;
    line-height: 18px;
    font-size: 12px;
    color: #ff8a8a;
    margin: -6px 0 10px;
    text-align: left;
}

.form-hint {
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 14px;
    line-height: 20px;
}

/* --- 问卷页 --- */
.survey-shell {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 80px auto 40px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 6px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
    padding: 34px 46px 30px;
}

.survey-title {
    font-size: 22px;
    font-weight: bold;
    color: #1c3d6e;
    text-align: center;
    margin-bottom: 4px;
}

.survey-sub {
    text-align: center;
    color: #7a8ba3;
    font-size: 13px;
    margin-bottom: 22px;
}

.user-chip {
    background: #eef4ff;
    border: 1px solid #cfe0ff;
    color: #1c3d6e;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-chip .logout {
    color: #409EFF;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.field {
    margin-bottom: 22px;
}

.field-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.field-label .req {
    color: #f56c6c;
    margin-right: 4px;
}

.field select,
.field input[type=text],
.field textarea {
    width: 100%;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.field select,
.field input[type=text] { height: 40px; }

.field textarea {
    padding: 10px 12px;
    line-height: 20px;
    resize: vertical;
    min-height: 88px;
}

.field-label .opt {
    color: #909399;
    font-weight: 400;
    font-size: 12px;
    margin-left: 6px;
}

.field select:focus,
.field input[type=text]:focus,
.field textarea:focus {
    border-color: #409EFF;
}

.radio-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.radio-row label {
    flex: 1 1 auto;
    min-width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: all 0.2s;
    background: #fff;
}

.radio-row label:hover {
    border-color: #409EFF;
    color: #409EFF;
}

.radio-row input[type=radio] {
    accent-color: #409EFF;
}

.radio-row label.checked {
    background: #ecf5ff;
    border-color: #409EFF;
    color: #409EFF;
    font-weight: 600;
}

.submit-row {
    margin-top: 26px;
    text-align: center;
}

.submit-btn {
    min-width: 160px;
    height: 42px;
    border-radius: 4px;
    border: 0;
    background: #409EFF;
    color: #fff;
    font-size: 15px;
    letter-spacing: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover { background: #66b1ff; }
.submit-btn:disabled { background: #a6c9ea; cursor: not-allowed; }

/* --- Modal --- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-mask.show { display: flex; }

.modal-box {
    width: 340px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.3);
    animation: modalIn 0.18s ease-out;
    overflow: hidden;
}

@keyframes modalIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-head {
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #1c3d6e;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-head .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.modal-head.ok .dot { background: #67c23a; }
.modal-head.warn .dot { background: #e6a23c; }
.modal-head.err .dot { background: #f56c6c; }

.modal-body {
    padding: 20px 22px 4px;
    color: #333;
    font-size: 14px;
    line-height: 22px;
    min-height: 40px;
}

.modal-body .sub {
    color: #7a8ba3;
    font-size: 12px;
    margin-top: 8px;
    line-height: 18px;
}

.modal-foot {
    padding: 12px 18px 16px;
    text-align: right;
}

.modal-foot button {
    min-width: 76px;
    height: 32px;
    padding: 0 14px;
    border-radius: 3px;
    border: 0;
    background: #409EFF;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.modal-foot button:hover { background: #66b1ff; }

/* --- 感谢页 --- */
.thanks-shell {
    text-align: center;
    padding: 56px 46px 44px;
}

.thanks-icon {
    margin-bottom: 22px;
}

.thanks-title {
    font-size: 26px;
    font-weight: bold;
    color: #1c3d6e;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.thanks-sub {
    color: #7a8ba3;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 8px;
}

.thanks-btn {
    display: inline-block;
    line-height: 42px;
    padding: 0 32px;
    text-decoration: none;
    min-width: 220px;
}

