/* 全局样式重置与基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 通用容器样式 */
.container {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.container:hover {
    box-shadow: 0 12px 40px rgba(31, 38, 135, 0.2);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #2c6ed5 0%, #4080ff 100%);
    padding: 30px 25px;
    text-align: center;
    color: white;
}

.header h1 {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.header p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.5;
}

/* 表单区域样式 */
.form-area {
    padding: 35px 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #4080ff;
    box-shadow: 0 0 0 3px rgba(64, 128, 255, 0.15);
}

/* 按钮样式 */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #4080ff;
    color: white;
}

.btn-primary:hover {
    background: #2c6ed5;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 底部链接样式 */
.footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.footer p {
    font-size: 14px;
    color: #666;
}

.footer a {
    color: #4080ff;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* 验证码输入区域样式 */
.verify-code {
    display: flex;
    gap: 10px;
}

.verify-code .form-control {
    flex: 1;
}

.btn-verify {
    width: 120px;
    padding: 14px;
    font-size: 14px;
    background: #f5f7fa;
    color: #333;
}

.btn-verify:hover {
    background: #eaecef;
}

.btn-verify.disabled {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* 提示信息样式 */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    display: none;
}

.alert-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
        margin: 10px;
    }

    .header {
        padding: 25px 20px;
    }

    .form-area {
        padding: 25px 20px;
    }

    .verify-code .btn-verify {
        width: 100px;
        font-size: 13px;
    }
}

.table-scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* 关键：优化移动端滚动体验 */
    margin: 0 auto;
}

/* 表格基础样式补充 */
.table-base {
    width: 100%;
    min-width: 650px; /* 统一最小宽度，确保滚动触发 */
    border-collapse: collapse;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
}
.pagination button {
    background: #f5f7fa;
    border: 1px solid #eaecef;
    padding: 6px 14px;
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pagination button:disabled {
    background: #f9fafc;
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}
.pagination button:hover:not(:disabled) {
    background: #e8f0fe;
    border-color: #4080ff;
    color: #4080ff;
}
.pagination #pageInfo {
    color: #666;
    font-size: 14px;
}