.teacher {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.teacher::before {
    content: "🤖";
    font-size: 48px;
    position: absolute;
    animation: pulse 2s infinite;
}

.teacher .circuit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: scan 3s linear infinite;
}

.teacher-name {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.teacher-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.user-info {
    margin-top: 20px;
    width: 100%;
}

.user-info h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.info-input {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.info-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.info-input::placeholder {
    color: #95a5a6;
    font-size: 14px;
}

/* 超紧凑型模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: auto;
    overflow-y: auto;
    padding: 20px;
}

.modal.active {
    display: flex;
}

/* Prevent scrolling when modal is open */
body.modal-open {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    animation: modalSlideIn 0.25s ease-out;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border: 1px solid #e8e8e8;
}

.modal-header {
    padding: 16px 24px 14px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    background-color: #f9f9f9;
}

.modal-header h3 {
    color: #1a1a1a;
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    text-align: center;
    padding: 0 30px;
    letter-spacing: 0.5px;
}

.close {
    position: absolute;
    right: 12px;
    top: 12px;
    transform: none;
    color: #999;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close:hover {
    background-color: #f5f5f5;
    color: #666;
}

.modal-body {
    padding: 20px 24px;
}

.input-group {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    position: relative;
}

.input-group:last-child {
    margin-bottom: 0;
}

.input-label {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    margin-right: 16px;
    white-space: nowrap;
    width: 80px;
    text-align: right;
    color: #333;
}

.modal-body .info-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    height: 40px;
    box-sizing: border-box;
    min-width: 0;
    background-color: #fff;
}

.modal-body .info-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
    outline: none;
}

.info-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.15);
    outline: none;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    min-height: 14px;
    line-height: 1.4;
    position: absolute;
    left: 96px;
    bottom: -18px;
    background: #fff;
    padding: 0 4px;
}

.modal-footer {
    padding: 16px 24px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    background-color: #f9f9f9;
    border-top: 1px solid #f0f0f0;
}

.modal-btn {
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 90px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #d9d9d9;
}

.cancel-btn:hover {
    background-color: #f0f0f0;
    border-color: #c0c0c0;
    color: #222;
}

.continue-btn {
    background-color: #4a90e2;
    color: white;
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.continue-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.chat-panel {
    flex: 4;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f8f9fa;
    min-width: 0; /* 防止内容溢出 */
    position: relative;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.right-panel {
    flex: 1.6;
    /*background:
        linear-gradient(
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.1)
        ),
        url("pic/playground.jpg");*/
    background: url("pic/playground.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    backdrop-filter: blur(5px);
    border-radius: 0 16px 16px 0;
    padding: 0; /* 移除内边距让数字人完全填满 */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.6s ease-out 0.1s both;
    position: relative;
    overflow: hidden;
}

/* 操场人物样式 */
.playground-characters {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.character {
    position: absolute;
    bottom: 5%;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.character img {
    width: auto;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.3));
}

.character1 {
    left: 5%;
    animation: float1 4s ease-in-out infinite;
}

.character2 {
    right: 5%;
    animation: float2 3.5s ease-in-out infinite 1s;
}

/* 添加操场氛围文字 */
.playground-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.playground-title {
    color: #2c3e50;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playground-subtitle {
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.school-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #2c3e50;
    text-align: left;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.info-section {
    margin-bottom: 25px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    animation: slideInRight 0.6s ease-out;
}

.info-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.info-section:nth-child(1) {
    animation-delay: 0.1s;
}

.info-section:nth-child(2) {
    animation-delay: 0.2s;
}

.info-section:nth-child(3) {
    animation-delay: 0.3s;
}

.info-section h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info p {
    color: #495057;
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-majors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.major-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.major-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.service-hours p {
    color: #495057;
    font-size: 14px;
    margin-bottom: 6px;
    line-height: 1.4;
}

.chat-header {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 12px;
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
}

.chat-header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.chat-messages {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 12px;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
    position: relative; /* 为清除按钮的绝对定位提供参考 */
}

.message {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.message.user {
    justify-content: flex-end;
}

.message.assistant {
    justify-content: flex-start;
}

.message.assistant::before {
    content: "";
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("pic/1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    border: 2px solid #667eea;
}

.message.user::after {
    content: "";
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("pic/2.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
    border: 2px solid #34495e;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 10px;
    border-radius: 18px;
    word-wrap: break-word;
    animation: fadeIn 0.5s ease-in;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.question-container {
    background: #f8f9fa;
    /*border: 2px solid #e9ecef;*/
    border-radius: 12px;
    /* padding: 16px 20px; */
    margin: 8px 0;
    max-width: 200%;
}

.question-title {
    font-weight: 600;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 测评结果样式 */
.result-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 15px;
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.result-title {
    color: #2c3e50;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-content {
    background: white;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.5;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 14px;
}

.result-content h3 {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin: 12px 0 8px 0;
    padding-bottom: 4px;
    border-bottom: 1px solid #e9ecef;
}

.result-content h4 {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 6px 0;
}

.result-content .mbti-type {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    font-size: 14px;
    margin: 6px 0;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.result-content .compatibility-rate {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 600;
    font-size: 12px;
    margin-left: 8px;
    box-shadow: 0 1px 4px rgba(40, 167, 69, 0.3);
}

.result-content .strength {
    color: #28a745;
    font-weight: 600;
}

.result-content .weakness {
    color: #fd7e14;
    font-weight: 600;
}

/* 优势劣势一行显示容器 */
.strength-weakness-container {
    display: flex;
    gap: 20px;
    margin: 8px 0;
}

.strength-weakness-container > div {
    flex: 1;
}

/* 推荐理由与性格匹配间距调整 */
.recommendation-reason {
    margin-bottom: 4px; /* 原来20px的20% = 4px */
}

/* 专业区域间距调整 */
.major-section + .major-section {
    margin-top: 3px; /* 原来10px的30% = 3px */
}

/* 清除记录按钮样式 - 常驻聊天消息区域右下角固定位置 */
.clear-chat-button {
    position: fixed;
    bottom: 86%;
    right: 20px;
    background: #a03751;
    color: white;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.7;
    pointer-events: auto;
    transform: scale(1); /* 添加默认的transform值 */
}

.clear-chat-button:hover {
    background: #bb5454;
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(117, 117, 117, 0.3);
}

.clear-chat-button:active {
    /* 移除transform属性，保持按钮位置不变 */
}

.clear-chat-button:disabled {
    background: #bdbdbd;
    cursor: not-allowed;
    opacity: 0.4;
    transform: none;
}

.clear-chat-button:disabled:hover {
    background: #bdbdbd;
    opacity: 0.4;
    transform: none;
    box-shadow: none;
}

.result-content ul {
    margin: 6px 0;
    padding-left: 0;
}

.result-content li {
    list-style: none;
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.4;
    font-size: 15px;
}

.result-content li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 4px;
    color: #28a745;
    font-weight: bold;
    font-size: 12px;
}

.result-content .major-section {
    background: #f8f9fa;
    border-left: 3px solid #667eea;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 0 6px 6px 0;
}

.result-content .major-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.result-disclaimer {
    text-align: center;
    color: #95a5a6;
    font-size: 11px;
    margin-top: 10px;
    padding: 6px;
    border-top: 1px solid #e9ecef;
    font-style: italic;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f3f4;
}

.question-options::-webkit-scrollbar {
    width: 6px;
}

.question-options::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 3px;
}

.question-options::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.question-options::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1px;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.option-item:hover {
    border-color: #fdfdfd;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.option-item.selected {
    border-color: #fdfdfd;
    background: linear-gradient(352deg, #91d0d9 0% 50%, #116fbd82 100%);
    color: white;
}

.option-radio {
    margin-right: 16px;
    margin-top: 4px;
    transform: scale(1.3);
    flex-shrink: 0;
}

.option-label {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    text-align: justify;
    max-width: 100%;
    overflow-wrap: break-word;
}

.submit-answer {
    margin-top: 12px;
    padding: 8px 20px;
    background: linear-gradient(135deg, #91d0d9 0%, #116fbdb5 100%);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.submit-answer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.submit-answer:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message.user .message-bubble {
    background: #7e9095;
    color: white;
    margin-left: 10px;
}

.message.assistant .message-bubble {
    background: #f8f9fa;
    color: #2c3e50;
    margin-right: 10px;
    border: 1px solid #e9ecef;
}

.message.assistant .message-bubble .result-container {
    margin: 0;
    width: 100%;
    margin-left: -0px;
    margin-right: -0px;
}

/* AI答复的消息气泡宽度设置为80%以上 */
.message.assistant .message-bubble:has(.result-container) {
    max-width: 85%;
    width: 85%;
}

.message.assistant .message-bubble .question-container {
    margin: 0;
    width: 100%;
    margin-left: -0px;
    margin-right: -0px;
}

.chat-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.chat-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    background: #ffffff;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.chat-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-button {
    padding: 16px 24px;
    background: linear-gradient(135deg, #91d0d9 0%, #116fbdb5 100%);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 10px;
}

.loading-dots {
    animation: pulse 1.5s infinite;
}

/* 进度条样式 */
.progress-container {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e8ed;
}

.progress-title {
    text-align: center;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.progress-title .progress-icon {
    font-size: 20px;
    animation: spin 1s linear infinite;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%
    );
    animation: shimmer-progress 2s infinite;
}

.progress-text {
    text-align: center;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.progress-stages {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 12px;
}

.progress-stage {
    color: #95a5a6;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-stage.active {
    color: #667eea;
    font-weight: 600;
}

.progress-stage.completed {
    color: #28a745;
    font-weight: 600;
}

/* ========================================
新增交互效果样式
======================================== */

/* 加载按钮样式 */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading-shine 1.5s infinite;
}

/* 字段错误样式 */
.field-error {
    border: 2px solid #ff4757 !important;
    background-color: rgba(255, 71, 87, 0.1) !important;
    animation: field-error-pulse 0.5s ease-in-out;
}

/* 错误信息显示动画 */
.error-show {
    animation: error-slide-in 0.3s ease-out;
}

/* 表单震动效果 */
.shake-error {
    animation: shake 0.6s ease-in-out;
}

/* 成功提示样式 */
.message.success {
    background: linear-gradient(135deg, #2ed573, #1e90ff);
    color: white;
    animation: success-glow 0.5s ease-in-out;
}

/* 改进的输入框样式 */
input[type="text"],
input[type="tel"] {
    transition: all 0.3s ease;
    border: 2px solid #e1e8ed;
}

input[type="text"]:focus,
input[type="tel"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

/* 按钮悬停效果增强 */
button:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* 消息气泡改进动画 */
.message {
    animation: message-slide-in 0.4s ease-out;
}
