/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'SimHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    min-height: 100vh;
}

/* 红色头部区域 */
.header {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    background-image: url('img/background.png');
    background-size: 1440px 415px;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    min-height: 415px;
}


.header-content {
    width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* 左侧Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 450px;
    height: 117px;
    object-fit: contain;
}

/* 右侧信息查询 */
.search-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.search-icon {
    display: flex;
    align-items: center;
}

.info-img {
    width: 167px;
    height: 55px;
    object-fit: contain;
}

.search-text {
    text-align: right;
}

.search-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.search-english {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 主内容区域 */
.main-content {
    width: 100%;
    padding: 60px 0;
    margin-top: -150px;
    position: relative;
    z-index: 10;
}

.content-wrapper {
    width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

/* 页面标题 */
.page-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 60px;
    letter-spacing: 1px;
}

/* 查询表单 */
.query-form {
    background: white;
    padding: 40px 50px;
    border-radius: 8px;
    margin-bottom: 40px;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
}

.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.form-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    min-width: 120px;
    text-align: right;
}

.form-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    max-width: 400px;
}

.form-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

/* 验证码容器 */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.captcha-input {
    flex: 1;
    max-width: 150px;
}

.captcha-image {
    width: 120px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.captcha-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    letter-spacing: 3px;
    position: relative;
    z-index: 2;
}

.captcha-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #999;
    transform: rotate(-15deg);
    z-index: 1;
}

.refresh-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #666;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.refresh-btn:hover {
    background: #333;
}

/* 查询按钮 */
.form-actions {
    text-align: center;
    margin-top: 40px;
}

.query-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    border: none;
    padding: 18px 80px;
    font-size: 1.3rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    letter-spacing: 1px;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.query-btn:active {
    transform: translateY(0);
}

/* 查询说明 */
.query-instructions {
    text-align: center;
    margin-bottom: 50px;
}

.instruction-text {
    font-size: 1rem;
    color: #666;
    margin-bottom: 8px;
}

.instruction-english {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

/* 注意事项 */
.notes-section {
    background: white;
    padding: 0;
    width: 100%;
}

.notes-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.notes-list {
    list-style: none;
    counter-reset: item;
}

.notes-list li {
    counter-increment: item;
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.notes-list li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
    color: #333;
    font-size: 1rem;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .header-content {
        width: 100%;
        padding: 0 20px;
    }
    
    .content-wrapper {
        width: 90%;
        max-width: 800px;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .header {
        background-size: 100% auto;
        min-height: 300px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .logo-img {
        width: 300px;
        height: 78px;
    }
    
    .info-img {
        width: 100px;
        height: 33px;
    }
    
    .search-title {
        font-size: 1.5rem;
    }
    
    
    .content-wrapper {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .form-label {
        min-width: auto;
        text-align: left;
    }
    
    .captcha-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .query-form {
        padding: 30px 20px;
    }
    
    .query-btn {
        padding: 15px 60px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        background-size: 100% auto;
        min-height: 250px;
    }
    
    .logo-img {
        width: 250px;
        height: 65px;
    }
    
    .info-img {
        width: 80px;
        height: 26px;
    }
    
    .search-title {
        font-size: 1.3rem;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .query-btn {
        padding: 12px 40px;
        font-size: 1rem;
    }
    
}

/* 表单验证样式 */
.form-input.error {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1);
}

.error-message {
    color: #dc2626;
    font-size: 0.9rem;
    margin-top: 5px;
    display: block;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading .query-btn {
    background: #999;
    cursor: not-allowed;
}

/* 成功/错误消息 */
.message {
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    font-weight: 500;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 模态框样式 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #dc2626;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 模态框中的查询结果样式 */
.modal-content .query-result {
    margin: 0;
    padding: 20px;
    box-shadow: none;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.modal-content .query-result h3 {
    margin-top: 0;
}

.modal-content .error-result {
    text-align: center;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.modal-content .error-result h3 {
    color: #dc2626;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: bold;
}

.modal-content .error-result > p {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 500px;
}

.error-tips {
    background: #f8f9fa;
    border-left: 4px solid #dc2626;
    padding: 20px;
    border-radius: 8px;
    text-align: left;
    max-width: 500px;
    margin-top: 20px;
}

.error-tips .tip-text {
    color: #dc2626;
    font-weight: bold;
    margin-bottom: 12px;
    font-size: 1rem;
}

.error-tips .tip-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-tips .tip-list li {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.error-tips .tip-list li:before {
    content: "•";
    color: #dc2626;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.error-tips .tip-list li:last-child {
    margin-bottom: 0;
}

/* 响应式设计 - 模态框 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-content .query-result {
        padding: 30px 20px;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}