/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* 主要内容区域 */
main {
    padding: 40px 0;
}

/* 英雄区域 */
.hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero h2 {
    font-size: 1.8rem;
    color: #555;
    font-weight: 400;
}

/* 查询表单 */
.query-form {
    margin-bottom: 40px;
}

.form-container {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.query-table {
    width: 100%;
    border-collapse: collapse;
}

.query-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.query-table td:first-child {
    width: 120px;
    font-weight: 600;
    color: #555;
}

.query-table select {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.query-table select:focus {
    outline: none;
    border-color: #667eea;
}

.query-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

.query-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* 公告须知 */
.notice {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.notice h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.notice p {
    color: #666;
    line-height: 1.8;
}

/* 银行分类 */
.bank-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.category h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.category ul {
    list-style: none;
}

.category li {
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
    color: #555;
    transition: color 0.3s ease;
}

.category li:hover {
    color: #667eea;
}

/* FAQ区域 */
.faq {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.faq h3 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.faq ul {
    list-style: none;
}

.faq li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.faq a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq a:hover {
    color: #667eea;
}

/* 友情链接 */
.links {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.links h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.links p {
    color: #666;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    margin: 5px 0;
    color: #bdc3c7;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #667eea;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .query-table td:first-child {
        width: 100px;
    }
    
    .bank-categories {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

@media (max-width: 480px) {
    .form-container,
    .notice,
    .category,
    .faq,
    .links {
        padding: 20px;
    }
    
    .query-table td {
        padding: 10px;
    }
    
    .query-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container,
.notice,
.category,
.faq,
.links {
    animation: fadeIn 0.6s ease-out;
}

/* 加载状态 */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 