body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 10px;
}

.top-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.charts-wrapper {
    display: flex;
    gap: 15px;
}

.chart-section {
    flex: 1;
    padding: 8px;
}

.bottom-container {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.insights-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 5px 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    border-left: 4px solid #3498db;
    margin: 20px 0;
}

.selector-description {
    color: #2c3e50;
    line-height: 1.6;
    font-size: 1.1em;
    text-align: left;
    font-weight: 500;
    letter-spacing: 0.3px;
    margin-bottom: 20px;      /* 添加底部间距 */
    padding: 0;               /* 移除内边距 */
    background: none;         /* 移除背景 */
    border-radius: 0;         /* 移除圆角 */
    box-shadow: none;         /* 移除阴影 */
    border-left: none;        /* 移除边框 */
}

/* 添加强调文本样式 */
.selector-description strong {
    color: #3498db;           /* 关键词使用主题色 */
    font-weight: 600;
}

.visualization-hints {
    margin-top: 20px;
    font-size: 15px;
    color: #2c3e50;
    border-top: 1px solid #e0e0e0;  /* 添加上边框分隔线 */
    padding-top: 20px;              /* 添加上边距 */
}

.visualization-hints ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    
}

.visualization-hints li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}
.visualization-hints li:hover {
    transform: translateX(5px); /* 悬停时轻微右移 */
}
.visualization-hints li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #2196F3;
}

.visualization-hints strong {
    color: #333;
}

.viz-select {
    width: 400px;
    padding: 12px;
    font-size: 1.1em;          /* 改为1.2em，与selector-description一致 */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin: 10px 0;
    display: block;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;            /* 添加相同的文字颜色 */
    font-weight: 500;          /* 添加相同的字重 */
    letter-spacing: 0.3px;     /* 添加相同的字间距 */
}

.viz-select:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.viz-select option {
    padding: 8px;
}

/* 添加工具提示样式 */
.viz-select option[title] {
    cursor: help;
}

.visualization-container {
    margin-top: 10px;
}

.viz-panel {
    display: none;
    padding: 20px;
}

.viz-panel.active {
    display: block;
}

#map, #time-series {
    width: 100%;
    height: 350px;
    margin-top: 8px;
}

/* 分隔线 */
.chart-section:first-child {
    border-right: 1px solid #eee;
}


h3 {
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #333;
}

#world-map, #line-chart, #region-chart, 
#nationality-target, #top-attackers, #attack-target-type {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

#world-map:hover, #line-chart:hover, #region-chart:hover, 
#nationality-target:hover, #top-attackers:hover, #attack-target-type:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#map, #time-series, #region-bars, 
#bubble-chart, #pie-top-attackers, #pie-attack-target {
    width: 100%;
    height: 400px;
}

@media (max-width: 1400px) {
    .container {
        flex-direction: column;
    }

    .left-column, .right-column {
        width: 100%;
        min-width: auto;
    }
}

select, input[type="range"] {
    width: 200px;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#pie-top-attackers {
    position: relative;
}

#pie-top-attackers path {
    transition: opacity 0.3s, transform 0.3s;
}

#pie-top-attackers text {
    font-family: Arial, sans-serif;
}

#attacker-slider {
    width: 100%;
    margin: 10px 0;
}

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

.slider-label {
    font-size: 18px;
    color: #666;
}


#attacker-slider {
    flex: 1;
    margin: 0;
}

.sort-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.sort-controls select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bar-killed {
    transition: opacity 0.3s;
}

.line-wounded {
    transition: opacity 0.3s;
}

.dot-wounded {
    transition: all 0.3s;
}

.project-header {
    text-align: center;
    padding: 15px 20px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #2c3e50, #3498db);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.project-header h1 {
    font-size: 2em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.processbook-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-size: 1em;
}

.processbook-link:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.arrow-icon {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.project-intro {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 20px;
    margin-bottom: 15px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.project-intro p {
    font-size: 1em;
    line-height: 1.4;
    margin: 0;
    text-align: justify;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.chart-section p {
    font-size: 0.9em;
    line-height: 1.4;
    margin: 8px 0;
}

.chart-section select {
    padding: 4px 8px;
    margin: 5px 0;
}
