/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

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

/* 头部样式 */
header {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

header h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
}

.nav-menu li {
    margin: 5px;
}

.nav-menu a {
    display: block;
    padding: 10px 20px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: #3498db;
    color: white;
}

/* 主内容区域样式 */
main {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 25px;
}

/* 项目通用样式 */
.project-container {
    margin-bottom: 20px;
}

.project-container h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.project-container h3 {
    color: #3498db;
    margin-top: 25px;
    font-size: 1.3em;
}

.project-container h4 {
    color: #FF0000;
    margin-top: 25px;
    font-size: 1.3em;
}

/* 表单样式 */
.form-group {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

input[type="text"], 
input[type="number"], 
select {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, 
input[type="number"]:focus, 
select:focus {
    border-color: #3498db;
    outline: none;
}

.radio-group, .checkbox-group {
    margin-top: 8px;
}

.radio-option, .checkbox-option {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

input[type="radio"], 
input[type="checkbox"] {
    margin-right: 10px;
}

.btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 25px auto 0;
    transition: background 0.3s;
}

.btn:hover {
    background: #2980b9;
}

/* 结果样式 */
.result {
    margin-top: 25px;
    padding: 15px 20px;
    border-radius: 6px;
    display: none;
}

.success {
    background: #e6ffed;
    color: #1a7f37;
    border-left: 4px solid #2ea44f;
}

.warning {
    background: #fff8e6;
    color: #8a6d3b;
    border-left: 4px solid #ffd700;
}

.danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.hidden {
    display: none;
}

.input-row {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.input-row label {
    min-width: 120px;
    margin-bottom: 0;
}

.rd-method {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

/* 项目2特定样式 */
.card {
    background: rgba(30, 39, 46, 0.7);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.1);
    border: 1px solid rgba(0, 168, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 168, 255, 0.2);
}

.result-card {
    background: rgba(30, 39, 46, 0.8);
    border-radius: 10px;
    padding: 25px;
    margin-top: 30px;
    box-shadow: 0 0 20px rgba(0, 210, 211, 0.2);
    border: 1px solid rgba(0, 210, 211, 0.2);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.result-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.result-label {
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.result-value {
    font-size: 18px;
    font-weight: 500;
}

.type-display {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
}

.type-display.large {
    border-color: var(--large-color);
    background: rgba(255, 107, 107, 0.1);
}

.type-label {
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.type-label.large {
    color: var(--large-color);
}

.type-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 168, 255, 0.5);
}

.type-value.large {
    color: var(--large-color);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.standard-card {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    border-left: 3px solid var(--accent-color);
}

.standard-title {
    color: var(--accent-color);
    margin-top: 0;
    font-size: 18px;
}

.standard-item {
    margin-bottom: 10px;
}

.standard-label {
    font-weight: 500;
    color: #e0e0e0;
}

.standard-value {
    color: #b0b0b0;
}

.button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.error-container {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.error-title {
    color: var(--error-color);
    font-weight: bold;
    margin-bottom: 10px;
}

.error-list {
    margin: 0;
    padding-left: 20px;
}

/* 项目3和项目4特定样式 */
.result-container {
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

.total {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 10px;
    text-align: center;
}

.actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.btn-back {
    padding: 10px 15px;
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-back:hover {
    background-color: #5a6268;
}

.btn-print {
    padding: 10px 15px;
    background-color: #17a2b8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-print:hover {
    background-color: #138496;
}

/* 项目5特定样式 */
.direct-pass-info {
    background-color: #fffaf0;
    border-left: 4px solid #ffa500;
    padding: 15px;
    margin-bottom: 20px;
}

.direct-pass-conditions {
    margin-left: 20px;
}

.material-requirements {
    margin-top: 20px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 5px;
}

.section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.ip-type {
    font-weight: bold;
    color: #2c3e50;
}

.sub-label {
    font-weight: normal;
    color: #666;
    margin-left: 20px;
}

.criteria {
    margin: 15px 0;
    padding: 10px;
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
}

.condition-item {
    margin-bottom: 8px;
}

.passed {
    color: green;
    font-weight: bold;
    font-size: 18px;
}

.failed {
    color: red;
    font-weight: bold;
    font-size: 18px;
}

.score-details {
    margin-top: 20px;
}

.score-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.score-value {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
}

.calculation {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-left: 20px;
    margin-top: 5px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
    margin-top: 20px;
}

.back-btn:hover {
    background-color: #27ae60;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .input-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .input-row label {
        min-width: auto;
        margin-bottom: 5px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .input-grid {
        grid-template-columns: 1fr;
    }
}