:root {
    --primary: #2c6fbb;
    --primary-dark: #1a508c;
    --secondary: #4a90e2;
    --accent: #ff6b35;
    --light: #f0f8ff;
    --dark: #333;
    --success: #4CAF50;
    --warning: #ff9800;
    --danger: #f44336;
    --gray: #e0e0e0;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f2ff 100%);
    color: #333;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    color: white;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    color: white;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.card-header i {
    margin-right: 10px;
    font-size: 1.4rem;
}

.card-body {
    padding: 20px;
}

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

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-col {
    flex: 1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-dark);
}

select, input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #d1e3f6;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #f9fcff;
}

select:focus, input[type="number"]:focus {
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
    background-color: white;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

th {
    background-color: #e6f0ff;
    color: var(--primary-dark);
    font-weight: 600;
    text-align: center;
    padding: 12px 10px;
    border-bottom: 2px solid #d1e3f6;
}

td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eef5fd;
}

tr:last-child td {
    border-bottom: none;
}

tr:nth-child(even) {
    background-color: #f9fcff;
}

.input-cell input {
    width: 100%;
    padding: 10px;
    border: 2px solid #d1e3f6;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    background-color: #f9fcff;
}

.buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn i {
    margin-right: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.result {
    padding: 20px;
    border-radius: var(--radius);
    margin-top: 20px;
    display: none;
    background: white;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef5fd;
}

.result-title {
    font-size: 1.4rem;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.result-title i {
    margin-right: 10px;
    color: var(--success);
}

.result-item {
    margin: 10px 0;
    padding: 12px;
    background: #f9fcff;
    border-radius: 6px;
    font-size: 1.1rem;
}

.result-qualification {
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
}

.qualified {
    background-color: #e9f7ef;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.unqualified {
    background-color: #fdecea;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.note {
    background: #e6f0ff;
    padding: 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-top: 20px;
    border-left: 4px solid var(--secondary);
}

.note h4 {
    margin-bottom: 10px;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
}

.note h4 i {
    margin-right: 8px;
}

.note ul {
    padding-left: 20px;
    margin: 10px 0;
}

.note li {
    margin-bottom: 8px;
}

.footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

.error {
    color: var(--danger);
    margin-top: 5px;
    font-size: 14px;
    display: none;
    font-weight: 500;
}

.value-display {
    font-weight: 600;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .buttons {
        flex-direction: column;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    .card-header {
        font-size: 1.1rem;
    }
}