* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    text-align: center;
}
.header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}
.header p {
    opacity: 0.9;
}
.content {
    padding: 30px;
}
.type-select {
    margin-bottom: 25px;
}
.type-select label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}
.type-select select {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.3s;
    background: white;
}
.type-select select:focus {
    border-color: #667eea;
}
.edu-options {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}
.edu-option {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.edu-option:hover {
    background: #f0f1f5;
}
.edu-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #667eea;
}
.edu-option:has(input:checked) {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
}
.edu-option span {
    font-size: 16px;
    color: #333;
}
.category {
    margin-bottom: 25px;
}
.category-title {
    font-size: 18px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}
.option-group {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}
.group-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}
.level2-group {
    margin-left: 20px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 10px;
}
.level2-title {
    font-size: 15px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dde4ff;
}
.option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}
.option:hover {
    background: #f0f1f5;
    transform: translateX(5px);
}
.option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}
.option-label {
    flex: 1;
    margin-left: 15px;
    color: #333;
}
.option-score {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}
.submit-btn {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102,126,234,0.4);
}
.contact-info {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: center;
}
.contact-info h3 {
    color: #667eea;
    margin-bottom: 10px;
}
.contact-info p {
    color: #666;
}

/* 联系方式 */
.contact-section {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}
.contact-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}
.form-group {
    margin-bottom: 15px;
}
.form-group:last-child {
    margin-bottom: 0;
}
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}
.form-group input:focus {
    border-color: #667eea;
}

/* 弹窗样式 */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: popupIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}
@keyframes popupIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    z-index: 10;
}
.popup-close:hover {
    color: #333;
}
.popup-title {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
    text-align: center;
    margin-bottom: 15px;
}
.popup-body {
    text-align: center;
    margin-bottom: 20px;
}
.popup-body img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.popup-body p {
    color: #333;
    line-height: 1.6;
    font-size: 15px;
}
.popup-footer {
    text-align: center;
}
.popup-btn {
    display: inline-block;
    padding: 12px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
}

/* 手风琴折叠样式 */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s;
    user-select: none;
}

.accordion-header:hover {
    background-color: rgba(102, 126, 234, 0.1);
}

.accordion-icon {
    font-size: 12px;
    color: #667eea;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 10px;
}

.accordion-content.active {
    max-height: 2000px; /* 足够大的值以容纳内容 */
    padding: 10px;
}

/* 调整已有的 group-title 样式 */
.group-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 弹窗中的计算结果样式 */
.result-popup {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    margin: -30px -30px 15px -30px;
}

.result-popup .result-label {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.result-popup .result-value {
    font-size: 42px;
    font-weight: bold;
}

.result-popup .result-status {
    margin-top: 8px;
    font-size: 14px;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
}

.result-popup .status-ok {
    background: rgba(255,255,255,0.2);
}

.result-popup .status-fail {
    background: rgba(255,0,0,0.3);
}

.level2-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 响应式 */
@media (max-width: 480px) {
    .header {
        padding: 20px;
    }
    .header h1 {
        font-size: 22px;
    }
    .content {
        padding: 20px;
    }
    .result-value {
        font-size: 36px;
    }
}