/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(90deg, #2c3e50, #4a6491);
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* 主容器 */
.app-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 900px) {
    .app-container {
        grid-template-columns: 1fr;
    }
}

/* 输入区域样式 */
.input-section, .result-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.input-section h2, .result-section h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: 'Noto Sans SC', sans-serif;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* 按钮样式 */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Noto Sans SC', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(to right, #3498db, #2c80b9);
    color: white;
    flex: 2;
}

.btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #1c5a7a);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    flex: 1;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* 结果区域样式 */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.status-indicator {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.status-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 结果卡片 */
.result-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.result-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    background-color: #f8f9fa;
}

.result-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.result-item {
    display: flex;
    flex-direction: column;
}

.label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

/* 判定结果样式 */
.judgment-container {
    text-align: center;
    padding: 20px;
}

.judgment-result {
    display: inline-block;
    padding: 30px 40px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    min-width: 300px;
}

.judgment-text {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.judgment-details {
    font-size: 1.1rem;
    color: #6c757d;
}

/* AQL表格样式 */
.table-container {
    overflow-x: auto;
    margin-bottom: 15px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-weight: 600;
}

td {
    padding: 10px 15px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e9ecef;
}

.table-note {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 脚部样式 */
footer {
    text-align: center;
    padding: 25px;
    color: #6c757d;
    font-size: 0.9rem;
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
}

.footer-note {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #95a5a6;
}

/* 响应式调整 */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .button-group {
        flex-direction: column;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .judgment-result {
        min-width: auto;
        width: 100%;
        padding: 20px;
    }
    
    .judgment-text {
        font-size: 1.5rem;
    }
}