* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #333;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

header {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 2.8rem;
}

.subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

.tree-container {
    width: 30%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    height: 680px;
    min-width: 200px;
    overflow-y: auto;
}

.chart-container {
    width: 70%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.tree {
    list-style-type: none;
    padding-left: 0;
}

.tree-node {
    margin-bottom: 8px;
    position: relative;
}

.node-content {
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.node-content:hover {
    background: #e3f2fd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.node-content.typeTop {
    background: #e3f2fd;
    border-left: 4px solid #2980b9;
    font-size: 20px;
    font-weight: 500;
}

.node-content.typeOne {
    background: #e8f5e9;
    border-left: 4px solid #27ae60;
    margin-left: 20px;
    font-size: 18px;
}

.node-content.typeTwo {
    background: #fff3e0;
    border-left: 4px solid #f39c12;
    margin-left: 20px;
    font-size: 16px;
}

.node-content.typeTwo.active {
    background: #ffecb3;
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
}

.node-expand {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e0e0e0;
    margin-right: 15px;
    transition: all 0.3s;
    flex-shrink: 0;
    cursor: pointer;
}

.node-expand::before {
    content: '+';
    font-weight: bold;
    color: #555;
}

.node-expand.expanded::before {
    content: '−';
}

.node-content.school .node-expand {
    background-color: #d1ecf1;
}

.node-content.typeOne .node-expand {
    background-color: #d4efdf;
}

.node-content.class .node-expand {
    background-color: #fce5cd;
}

.node-children {
    padding-left: 30px;
    border-left: 2px solid #ddd;
    margin-left: 5px;
    display: none;
    animation: fadeIn 0.4s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chart-header {
    text-align: center;
    margin-bottom: 10px;
}

.chart-header h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.chart-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.chart-controls {
    margin-top: 5px;
    display: flex;
    justify-content: left;
}

.chart-wrapper {
    flex: 1;
    position: relative;
    height: 280px;
    margin: 5px 0;
}

.tabs {
    display: flex;
    margin: 5px 0;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 8px 5px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.tab-btn:hover {
    background: #e9ecef;
}

.tab-btn.active {
    background: #386ea7;
    color: white;
    border-color: #0b1117;
}

.chart-groups {
    position: relative;
    height: calc(100% - 100px);
}

.chart-group {
    display: none;
    height: 100%;
}

.chart-group.active {
    display: block;
}

.table-container {
    margin-top: 30px;
    overflow-y: auto;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.data-table th {
    background: #3498db;
    color: white;
    padding: 5px;
    text-align: center;
    font-weight: 400;
    position: sticky;
    top: 0;
}

.data-table td {
    padding: 5px 5px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.data-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.data-table tr:hover {
    background-color: #e3f2fd;
}

.no-data {
    text-align: center;
    padding: 10px;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.btn {
    background: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 150px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(to right, #386ea7, #9ba2cc);
    color: white;
}

/* 测量方法样式 */
.method-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.method-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.method-image {
    width: 400px;

    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 14px;
}

.method-image.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: loading 1.5s infinite;
  }
  
  @keyframes loading {
    0% { background-position: 100% 50% }
    100% { background-position: 0 50% }
  }
  
.method-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.6;
}

/* 百分位图片样式 */
.single-image-container {
    text-align: center;
    padding: 20px;
}

.analyst-image {
    max-width: 400px;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

.image-description {
    text-align:left;
    margin-top: 15px;
    color: #555;
    font-size: 0.95rem;
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 10px;
    padding: 10px;
    font-size: 1rem;
}

        /* 新增通知系统样式 */
        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            max-width: 350px;
        }
        
        .notification {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            padding: 15px 20px;
            margin-bottom: 15px;
            display: flex;
            align-items: flex-start;
            transform: translateX(110%);
            transition: transform 0.4s ease;
            border-left: 4px solid;
        }
        
        .notification.show {
            transform: translateX(0);
        }
        
        .notification.error {
            border-left-color: #e74c3c;
        }
        
        .notification.warning {
            border-left-color: #f39c12;
        }
        
        .notification.info {
            border-left-color: #3498db;
        }
        
        .notification.success {
            border-left-color: #2ecc71;
        }
        
        .notification-icon {
            margin-right: 12px;
            font-size: 20px;
        }
        
        .notification-content {
            flex: 1;
        }
        
        .notification-title {
            font-weight: 600;
            margin-bottom: 5px;
            font-size: 16px;
        }
        
        .notification-message {
            font-size: 14px;
            line-height: 1.5;
            color: #555;
        }
        
        .notification-close {
            background: none;
            border: none;
            cursor: pointer;
            color: #777;
            font-size: 18px;
            margin-left: 10px;
            padding: 0;
        }
        
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }
        
        .loading-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }

@media (max-width: 1000px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .tree-container, .chart-container {
        width: 100%;
        height: auto;
    }
    
    .method-images {
        flex-direction: column;
        align-items: center;
    }
}
