/* 蓝色商务风格样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px 0;
    border: 1px solid #e3f2fd;
}

.card-header {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    margin: -30px -30px 30px -30px;
    text-align: center;
    position: relative;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    border-radius: 15px 15px 0 0;
}

.card-header h1, .card-header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-weight: 300;
}

.card-header .icon {
    font-size: 24px;
    margin-right: 10px;
    vertical-align: middle;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.captcha-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.captcha-img:hover {
    transform: scale(1.05);
}

/* 按钮样式 */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0, #1976d2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 118, 210, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #f57c00, #ff9800);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #0288d1, #03a9f4);
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: 500;
}

.table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e3f2fd;
}

.table tr:hover {
    background: #f5f5f5;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination a, .pagination span {
    padding: 10px 15px;
    border: 2px solid #e3f2fd;
    border-radius: 8px;
    text-decoration: none;
    color: #1976d2;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1976d2;
    color: white;
}

.pagination .current {
    background: #1976d2;
    color: white;
    border-color: #1976d2;
}

/* 消息提示 */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid;
}

.alert-success {
    background: #e8f5e8;
    border-color: #4caf50;
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    border-color: #f44336;
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    border-color: #2196f3;
    color: #1565c0;
}

/* 结果显示 */
.result-card {
    background: linear-gradient(135deg, #e8f5e8, #f1f8e9);
    border: 2px solid #4caf50;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 500;
    color: #1976d2;
    min-width: 120px;
}

.result-value {
    font-weight: 600;
    color: #333;
}

.score-highlight {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ff9800;
}

/* 底部链接 */
.footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .card {
        padding: 20px;
        margin: 10px 0;
    }
    
    .card-header {
        padding: 15px 20px;
        margin: -20px -20px 20px -20px;
    }
    
    .captcha-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .table {
        font-size: 14px;
    }
    
    .table th, .table td {
        padding: 8px 5px;
    }
}

/* 图标样式 */
.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}