/* full-toc.css - 完整目录页面专属样式（包含视图切换和地图容器） */
/* 所有类名添加 toc- 前缀以避免冲突 */

/* =================== 页面头部居中样式 =================== */
.toc-page-header {
    text-align: center;
    padding: 60px 20px 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin-left: 320px;
}
.toc-page-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(255, 126, 95, 0.3);
    text-align: center;
}
.toc-page-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0.9;
    text-align: center;
}

/* =================== 粒子效果样式 =================== */
.toc-particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
.toc-container {
    position: relative;
    z-index: 2;
}
.toc-nav {
    z-index: 100;
}
.toc-section {
    padding: 0 20px 60px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* =================== 目录导航 - 固定定位 =================== */
.toc-nav {
    position: fixed;
    top: 210px;
    left: 20px;
    width: 280px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 100;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    animation: toc-fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* 地图版时目录导航保持可见，但内容已切换为信息面板，无需隐藏整个导航 */

.toc-section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #feb47b;
    position: relative;
    padding-bottom: 10px;
}
.toc-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}
.toc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.toc-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: white;
}
.toc-item:hover {
    background: rgba(255, 126, 95, 0.15);
    border-left-color: #ff7e5f;
    transform: translateX(5px);
}
.toc-item.active {
    background: rgba(255, 126, 95, 0.2);
    border-left-color: #ff7e5f;
}
.toc-number {
    font-size: 1rem;
    color: #feb47b;
    margin-right: 15px;
    min-width: 40px;
    font-weight: bold;
}
.toc-name {
    font-size: 1.1rem;
    font-weight: bold;
    flex: 1;
}
.toc-content {
    margin-left: 320px;
    padding-right: 20px;
    transition: margin-left 0.3s ease;
}
.toc-chapter-section {
    margin-bottom: 80px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: toc-fadeInUp 0.8s ease forwards;
}

.toc-chapter-section:nth-child(1) { animation-delay: 0.4s; }
.toc-chapter-section:nth-child(2) { animation-delay: 0.5s; }
.toc-chapter-section:nth-child(3) { animation-delay: 0.6s; }
.toc-chapter-section:nth-child(4) { animation-delay: 0.7s; }
.toc-chapter-section:nth-child(5) { animation-delay: 0.8s; }
.toc-chapter-section:nth-child(6) { animation-delay: 0.9s; }

.toc-chapter-header {
    margin-bottom: 40px;
    text-align: center;
}
.toc-chapter-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-align: center;
}
.toc-chapter-subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
    text-align: center;
}
.toc-chapter-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 40px;
    font-style: italic;
    padding: 20px;
    background: rgba(255, 126, 95, 0.1);
    border-radius: 8px;
    border-left: 4px solid #ff7e5f;
    text-align: center;
}
.toc-stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}
.toc-station-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    text-decoration: none;
    color: white;
    display: block;
}
.toc-station-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.toc-station-number {
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-family: monospace;
}
.toc-station-name {
    font-size: 1.1rem;
    font-weight: bold;
}
/* 站点详细信息提示框 */
.toc-station-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 40, 0.95);
    border-radius: 8px;
    padding: 15px;
    width: 240px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.toc-station-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(20, 20, 40, 0.95) transparent transparent transparent;
}
.toc-station-item:hover .toc-station-tooltip {
    opacity: 1;
    visibility: visible;
}
.toc-tooltip-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #f2e8c9;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.toc-tooltip-image {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toc-tooltip-image img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.toc-station-item:hover .toc-tooltip-image img {
    transform: scale(1.05);
}
.toc-tooltip-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}
.toc-tooltip-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.toc-tooltip-label {
    color: rgba(255, 255, 255, 0.7);
}
.toc-tooltip-value {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toc-tooltip-description {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}
/* 保护等级徽章 */
.toc-station-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 8px;
    right: 8px;
}
.toc-station-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.toc-station-badge:hover::after {
    opacity: 1;
    visibility: visible;
}
.toc-badge-no-protection { background: #8b8b8b; }
.toc-badge-city-level { background: #f2e8c9; }
.toc-badge-province-level { background: #d4af37; }
.toc-badge-national-level { background: #c62828; }
.toc-badge-special { background: #ff0000; }
.toc-badge-first-level { background: #e53935; }
.toc-badge-second-level { background: #f57c00; }
.toc-badge-third-level { background: #fbc02d; }
.toc-badge-fourth-level { background: #7cb342; }
.toc-badge-fifth-level { background: #388e3c; }
.toc-badge-meeting-level { background: #039be5; }
.toc-badge-signal-level { background: #5e35b1; }
/* 线路描述 */
.toc-line-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 126, 95, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ff7e5f;
    text-align: justify;
}
/* 统计信息 */
.toc-stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.toc-stat-item {
    text-align: center;
    padding: 20px;
    flex: 1;
    min-width: 150px;
}
.toc-stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.toc-stat-label {
    font-size: 1rem;
    opacity: 0.8;
}
/* 统一的车站等级说明图例 */
.toc-unified-legend-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 40px 0;
    padding: 25px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
}
.toc-unified-legend-title {
    width: 100%;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f2e8c9;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.toc-unified-legend-title i {
    font-size: 1.5rem;
    color: #ff7e5f;
}
.toc-unified-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    flex: 1;
    min-width: 180px;
    max-width: 200px;
    position: relative;
    cursor: help;
    transition: all 0.3s ease;
}
.toc-unified-legend-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.toc-unified-legend-badge {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.toc-unified-legend-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}
/* 车站等级标准悬停提示框 */
.toc-level-standard-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 40, 0.98);
    border-radius: 8px;
    padding: 20px;
    width: 320px;
    max-width: 90vw;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.toc-unified-legend-item:hover .toc-level-standard-tooltip {
    opacity: 1;
    visibility: visible;
}
.toc-level-standard-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: rgba(20, 20, 40, 0.98) transparent transparent transparent;
}
.toc-level-standard-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
    color: #feb47b;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.toc-level-standard-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}
/* 火车车厢基础样式 */
.toc-train-carriage-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 330px;
}
.toc-train-carriage {
    width: 900px;
    height: 390px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}
.toc-train-carriage:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}
/* =================== 滨绥铁路25B型车 =================== */
.toc-binsui-train {
    background: linear-gradient(135deg,
        rgba(0, 70, 28, 1) 0%,
        rgba(0, 85, 34, 0.9) 25%,
        rgba(0, 100, 40, 0.8) 50%,
        rgba(0, 85, 34, 0.9) 75%,
        rgba(0, 70, 28, 1) 100%
    );
    position: relative;
}
/* 25B车窗容器 */
.toc-binsui-train .toc-windows-container {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 180px;
    z-index: 5;
}
/* 25B车窗样式 */
.toc-binsui-train .toc-train-window {
    width: 190px;
    height: 180px;
    background: rgba(0, 10, 20, 0.8);
    border-radius: 20px;
    border: 3px solid rgba(210, 215, 220, 0.6);
    box-shadow: 
        inset 0 0 18px rgba(0, 0, 0, 0.9),
        0 5px 18px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    position: relative;
    box-sizing: border-box;
}
.toc-binsui-train .toc-train-window::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 35px;
    bottom: 14px;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.02) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 16px;
    pointer-events: none;
}
/* 滨绥铁路车窗棂 */
.toc-binsui-train .toc-train-window::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
        rgba(180, 180, 180, 0.9) 0%,
        rgba(200, 200, 200, 1) 50%,
        rgba(180, 180, 180, 0.9) 100%
    );
    box-shadow: 
        0 0 5px rgba(0, 0, 0, 0.5),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
}
/* 滨绥铁路：黄色顶部腰带 */
.toc-binsui-train::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 14px;
    background: linear-gradient(to right,
        rgba(255, 240, 120, 0.9) 0%,
        rgba(255, 240, 120, 1) 20%,
        rgba(255, 255, 150, 1) 50%,
        rgba(255, 240, 120, 1) 80%,
        rgba(255, 240, 120, 0.9) 100%
    );
    border-top: 1px solid rgba(255, 255, 200, 0.5);
    border-bottom: 1px solid rgba(255, 255, 200, 0.5);
    z-index: 2;
    top: 45px;
    left: 0;
    box-shadow: 
        0 2px 10px rgba(255, 240, 120, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}
/* 滨绥铁路黄色底部腰带 - 距离车窗下沿20px */
.toc-binsui-train::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right,
        rgba(255, 240, 120, 0.9) 0%,
        rgba(255, 240, 120, 1) 20%,
        rgba(255, 255, 150, 1) 50%,
        rgba(255, 240, 120, 1) 80%,
        rgba(255, 240, 120, 0.9) 100%
    );
    border-top: 1px solid rgba(255, 255, 200, 0.5);
    border-bottom: 1px solid rgba(255, 255, 200, 0.5);
    z-index: 2;
    top: 265px; /* 65px + 180px + 20px = 265px */
    left: 0;
    box-shadow: 
        0 2px 10px rgba(255, 240, 120, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
}
/* 滨洲铁路25G型车 */
.toc-binzhou-train {
    background: linear-gradient(to bottom,
        rgba(240, 240, 240, 0.95) 0%,
        rgba(230, 230, 230, 0.9) 30px,
        rgba(220, 220, 220, 0.85) 50px,
        rgba(210, 210, 210, 0.8) 270px,
        rgba(200, 200, 200, 0.75) 100%
    );
    position: relative;
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.5);
}
.toc-binzhou-train .toc-windows-container {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 185px;
    z-index: 5;
}
.toc-binzhou-train .toc-train-window {
    width: 195px;
    height: 185px;
    background: rgba(0, 12, 25, 0.82);
    border-radius: 20px;
    border: 3px solid rgba(215, 220, 225, 0.6);
    box-shadow: 
        inset 0 0 19px rgba(0, 0, 0, 0.9),
        0 5px 18px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.19) inset;
    position: relative;
    box-sizing: border-box;
}
.toc-binzhou-train .toc-train-window::after {
    content: '';
    position: absolute;
    top: 14px;
    left: 14px;
    right: 38px;
    bottom: 14px;
    background: linear-gradient(
        125deg,
        rgba(255, 255, 255, 0.13) 0%,
        rgba(255, 255, 255, 0.03) 45%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 16px;
    pointer-events: none;
}
.toc-binzhou-train::before {
    content: '';
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    height: 206px;
    background: linear-gradient(135deg,
        rgba(215, 0, 0, 0.85) 0%,
        rgba(235, 20, 20, 0.8) 25%,
        rgba(255, 40, 40, 0.75) 50%,
        rgba(235, 20, 20, 0.8) 75%,
        rgba(215, 0, 0, 0.85) 100%
    );
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.toc-binzhou-train .toc-yellow-belt {
    position: absolute;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right,
        rgba(255, 240, 120, 0.95) 0%,
        rgba(255, 240, 120, 1) 20%,
        rgba(255, 255, 150, 1) 50%,
        rgba(255, 240, 120, 1) 80%,
        rgba(255, 240, 120, 0.95) 100%
    );
    border-top: 1px solid rgba(255, 255, 200, 0.8);
    border-bottom: 1px solid rgba(255, 255, 200, 0.6);
    z-index: 3;
    top: 270px;
    left: 0;
    box-shadow: 
        0 3px 12px rgba(255, 240, 120, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.4),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}
/* 哈大铁路25K型车 */
.toc-hada-train {
    background: linear-gradient(to bottom,
        rgba(245, 245, 245, 0.95) 0%,
        rgba(235, 235, 235, 0.9) 30px,
        rgba(225, 225, 225, 0.85) 50px,
        rgba(215, 215, 215, 0.8) 270px,
        rgba(205, 205, 205, 0.75) 100%
    );
    position: relative;
    box-shadow: 
        inset 0 0 40px rgba(255, 255, 255, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.5);
}
.toc-hada-train .toc-windows-container {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    width: auto;
    height: 190px;
    z-index: 5;
}
.toc-hada-train .toc-train-window {
    width: 200px;
    height: 190px;
    background: rgba(0, 15, 30, 0.85);
    border-radius: 30px;
    border: 3px solid rgba(220, 225, 230, 0.6);
    box-shadow: 
        inset 0 0 20px rgba(0, 0, 0, 0.9),
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    box-sizing: border-box;
}
.toc-hada-train .toc-train-window::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 40px;
    bottom: 15px;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.03) 40%,
        rgba(255, 255, 255, 0) 100%
    );
    border-radius: 24px;
    pointer-events: none;
}
.toc-hada-train::before {
    content: '';
    position: absolute;
    top: 54px;
    left: 0;
    width: 100%;
    height: 211px;
    background: linear-gradient(135deg,
        rgba(0, 45, 90, 0.85) 0%,
        rgba(20, 65, 110, 0.8) 25%,
        rgba(40, 85, 130, 0.75) 50%,
        rgba(20, 65, 110, 0.8) 75%,
        rgba(0, 45, 90, 0.85) 100%
    );
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}
.toc-hada-train .toc-red-belt {
    position: absolute;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right,
        rgba(215, 0, 0, 0.95) 0%,
        rgba(215, 0, 0, 1) 20%,
        rgba(235, 40, 40, 1) 50%,
        rgba(215, 0, 0, 1) 80%,
        rgba(215, 0, 0, 0.95) 100%
    );
    border-top: 1px solid rgba(255, 100, 100, 0.8);
    border-bottom: 1px solid rgba(255, 100, 100, 0.6);
    z-index: 3;
    top: 275px;
    left: 0;
    box-shadow: 
        0 3px 12px rgba(215, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}
/* 方向牌样式 */
.toc-destination-board {
    position: absolute;
    width: 200px;
    height: 40px;
    border-radius: 6px;
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3),
        inset 0 -1px 3px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    color: transparent;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    transition: all 0.3s ease;
}
.toc-destination-board:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.7),
        inset 0 1px 4px rgba(255, 255, 255, 0.4),
        inset 0 -1px 4px rgba(0, 0, 0, 0.4);
}
.toc-destination-board img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.5s ease;
}
.toc-destination-board:hover img {
    transform: scale(1.05);
}
.toc-destination-board::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        rgba(255, 255, 255, 0.1) 100%
    );
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.toc-destination-board:hover::before {
    opacity: 0.5;
}
.toc-binsui-train .toc-destination-board {
    background-image: url('../images/s1.jpg');
    top: 255px;
}
.toc-binzhou-train .toc-destination-board {
    background-image: url('../images/s2.jpg');
    top: 260px;
}
.toc-hada-train .toc-destination-board {
    background-image: url('../images/s3.jpg');
    top: 265px;
}
.toc-train-intro-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    color: #000000;
    text-align: center;
    font-size: 1rem;
    line-height: 1.4;
    z-index: 4;
    padding: 0 15px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.7);
    font-weight: 600;
}
.toc-binsui-train .toc-train-intro-text {
    top: 305px;
}
.toc-binzhou-train .toc-train-intro-text {
    top: 310px;
}
.toc-hada-train .toc-train-intro-text {
    top: 315px;
}
/* 线路特定配色 */
.toc-harbin .toc-chapter-title { color: #f2e8c9; }
.toc-harbin .toc-chapter-intro { background: rgba(242, 232, 201, 0.15); border-left-color: #f2e8c9; color: #f2e8c9; }
.toc-harbin .toc-line-description { background: rgba(242, 232, 201, 0.08); border-left-color: #f2e8c9; }
.toc-harbin .toc-stat-value { color: #f2e8c9; }
.toc-harbin .toc-station-item:hover { background: rgba(242, 232, 201, 0.12); border-color: rgba(242, 232, 201, 0.3); }
.toc-harbin .toc-station-number { color: #f2e8c9; }
.toc-binsui .toc-chapter-title { color: #377a4d; }
.toc-binsui .toc-chapter-intro { background: rgba(55, 122, 77, 0.1); border-left-color: #377a4d; color: #377a4d; }
.toc-binsui .toc-line-description { background: rgba(55, 122, 77, 0.05); border-left-color: #377a4d; }
.toc-binsui .toc-stat-value { color: #377a4d; }
.toc-binsui .toc-station-item:hover { background: rgba(55, 122, 77, 0.1); border-color: rgba(55, 122, 77, 0.3); }
.toc-binsui .toc-station-number { color: #377a4d; }
.toc-binzhou .toc-chapter-title { color: #a24f49; }
.toc-binzhou .toc-chapter-intro { background: rgba(162, 79, 73, 0.1); border-left-color: #a24f49; color: #a24f49; }
.toc-binzhou .toc-line-description { background: rgba(162, 79, 73, 0.05); border-left-color: #a24f49; }
.toc-binzhou .toc-stat-value { color: #a24f49; }
.toc-binzhou .toc-station-item:hover { background: rgba(162, 79, 73, 0.1); border-color: rgba(162, 79, 73, 0.3); }
.toc-binzhou .toc-station-number { color: #a24f49; }
.toc-hada .toc-chapter-title { color: #4f76da; }
.toc-hada .toc-chapter-intro { background: rgba(79, 118, 218, 0.1); border-left-color: #4f76da; color: #4f76da; }
.toc-hada .toc-line-description { background: rgba(79, 118, 218, 0.05); border-left-color: #4f76da; }
.toc-hada .toc-stat-value { color: #4f76da; }
.toc-hada .toc-station-item:hover { background: rgba(79, 118, 218, 0.1); border-color: rgba(79, 118, 218, 0.3); }
.toc-hada .toc-station-number { color: #4f76da; }
a.toc-item[href="#harbin"]:hover,
a.toc-item[href="#harbin"].active {
    background: rgba(242, 232, 201, 0.15);
    border-left-color: #f2e8c9;
}
a.toc-item[href="#binsui"]:hover,
a.toc-item[href="#binsui"].active {
    background: rgba(55, 122, 77, 0.15);
    border-left-color: #377a4d;
}
a.toc-item[href="#binzhou"]:hover,
a.toc-item[href="#binzhou"].active {
    background: rgba(162, 79, 73, 0.15);
    border-left-color: #a24f49;
}
a.toc-item[href="#hada"]:hover,
a.toc-item[href="#hada"].active {
    background: rgba(79, 118, 218, 0.15);
    border-left-color: #4f76da;
}
/* 页脚 */
.toc-footer {
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    margin-left: 320px;
}
.toc-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.toc-copyright {
    font-size: 1rem;
    opacity: 0.7;
}
.toc-footer-links {
    display: flex;
    gap: 25px;
}
.toc-footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.toc-footer-links a:hover {
    color: #feb47b;
}
.toc-contact {
    font-size: 0.9rem;
    opacity: 0.6;
}
/* 快速回到顶部按钮 */
.toc-backToTop {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 126, 95, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.toc-backToTop:hover {
    background: rgba(255, 126, 95, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.6);
}
.toc-backToTop.show {
    opacity: 1;
    visibility: visible;
}
/* =================== 视图切换按钮样式 =================== */
.toc-view-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding: 5px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 175, 0.2);
    backdrop-filter: blur(5px);
}
.switch-btn {
    flex: 1;
    text-align: center;
    padding: 8px 5px;
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.switch-btn.active {
    background: #feb47b;
    color: #1a1a2a;
    font-weight: bold;
}
.switch-btn:hover:not(.active) {
    background: rgba(254, 180, 123, 0.2);
    color: #feb47b;
}
/* =================== 独立固定搜索框样式 =================== */
.toc-search-fixed {
    position: fixed;
    top: 120px;
    left: 20px;
    width: 280px;
    z-index: 101;
    background: transparent;
}
.toc-search-fixed .toc-search-container {
    margin: 0;
    background: rgba(20, 20, 30, 0.9);
    border: 1px solid rgba(255, 215, 175, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 0 10px;
}
.toc-search-form {
    display: flex;
    flex-direction: column;
}
.toc-search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(30, 30, 40, 0.8);
    border-radius: 40px;
    border: 1px solid rgba(255, 215, 175, 0.2);
    transition: all 0.3s ease;
    margin: 12px 0 8px;
}
.toc-search-wrapper:focus-within {
    border-color: #feb47b;
    box-shadow: 0 0 0 3px rgba(254, 180, 123, 0.2);
    background: rgba(40, 40, 50, 0.9);
}
.toc-search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: white;
    font-size: 1rem;
    outline: none;
}
.toc-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}
.toc-search-btn {
    background: transparent;
    border: none;
    padding: 0 20px;
    color: #feb47b;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    line-height: 1;
}
.toc-search-btn:hover {
    color: #ff7e5f;
    transform: scale(1.1);
}
.toc-search-type {
    display: flex;
    justify-content: space-around;
    padding: 8px 5px 15px 5px;
    gap: 5px;
}
.toc-radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
}
.toc-radio-option:hover {
    color: #feb47b;
    background: rgba(254, 180, 123, 0.15);
}
.toc-radio-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    transition: all 0.2s;
}
.toc-radio-option input[type="radio"]:checked {
    border-color: #feb47b;
    background: #feb47b;
    box-shadow: 0 0 8px #feb47b;
}
.toc-radio-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: #1a1a2a;
    border-radius: 50%;
    top: 2px;
    left: 2px;
}
.toc-radio-option span {
    user-select: none;
}
/* =================== 地图版左侧信息面板样式 =================== */
.station-info-panel {
    padding: 15px;
    background: rgba(30, 30, 40, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255,215,175,0.2);
    backdrop-filter: blur(10px);
    margin-top: 10px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}
.panel-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.info-station-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #feb47b;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.info-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255,215,175,0.3);
}
.info-line, .info-level, .info-year {
    font-size: 1rem;
    color: #fff;
    padding: 4px 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}
.info-link {
    display: inline-block;
    text-align: center;
    padding: 8px 15px;
    background: #feb47b;
    color: #1a1a2a;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}
.info-link:hover {
    background: #ff7e5f;
    transform: scale(1.02);
}
.info-placeholder {
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    padding: 20px 0;
}
/* =================== 地图容器样式（关键修复） =================== */
#map-view {
    height: 100%;
    width: 100%;
}
#map {
    height: 100%;
    width: 100%;
    min-height: 0; /* 覆盖原有的 min-height: 600px */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: #1a1a2a;
}
.leaflet-popup-content {
    min-width: 220px;
    text-align: center;
}
.station-popup img {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}
.station-popup h4 {
    margin: 5px 0;
    font-size: 16px;
    color: #2c3e50;
}
.station-popup p {
    margin: 2px 0;
    font-size: 13px;
    color: #555;
}
.station-popup .line {
    color: #2c7a7b;
    font-weight: bold;
}
.station-popup a {
    display: inline-block;
    margin-top: 8px;
    padding: 5px 15px;
    background: #2c7a7b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}
.station-popup a:hover {
    background: #1e5f5f;
}
/* =================== 移动端优化 =================== */
@media (max-width: 992px) {
    .toc-nav {
        display: none;
    }
    .toc-content {
        margin-left: 0;
        padding-right: 0;
    }
    .toc-page-header {
        margin-left: 0;
        padding: 40px 15px 20px;
    }
    .toc-footer {
        margin-left: 0;
    }
    .toc-search-fixed {
        display: block;
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .toc-search-fixed .toc-search-container {
        width: 100%;
        margin: 0;
        padding: 0 10px;
    }
    .toc-search-wrapper {
        display: flex;
        flex-direction: row;
        align-items: center;
        width: 100%;
    }
    .toc-search-input {
        flex: 1;
        min-width: 0;
        padding: 12px 15px;
    }
    .toc-search-btn {
        flex-shrink: 0;
        width: auto;
        padding: 0 15px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
    }
    .toc-search-type {
        flex-wrap: wrap;
    }
    .toc-radio-option {
        flex: 1;
        justify-content: center;
    }
    .toc-section {
        padding: 0 15px 40px;
    }
    #map {
        height: 70vh;
    }
}

/* ========== 新增：感谢模态框样式 ========== */
.toc-thanks-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}
.toc-thanks-modal-content {
    background: rgba(30,30,40,0.95);
    border: 2px solid #feb47b;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    color: white;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    animation: toc-modalFadeIn 0.3s;
}
@keyframes toc-modalFadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.toc-thanks-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}
.toc-thanks-close:hover {
    color: #feb47b;
}
.toc-thanks-modal h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #feb47b;
    text-align: center;
}
.toc-thanks-modal p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: center;
}
.toc-thanks-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}
.toc-thanks-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 40px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}
.toc-thanks-btn-primary {
    background: #feb47b;
    color: #1a1a2a;
}
.toc-thanks-btn-primary:hover {
    background: #ff7e5f;
    transform: scale(1.05);
}
.toc-thanks-btn-secondary {
    background: transparent;
    border: 2px solid #feb47b;
    color: #feb47b;
}
.toc-thanks-btn-secondary:hover {
    background: #feb47b;
    color: #1a1a2a;
    transform: scale(1.05);
}

/* =================== 地图版高度自适应 =================== */
body.map-mode .toc-content {
    height: calc(100vh - 280px); /* 根据页面标题和搜索框高度调整，可微调 */
    overflow: hidden;
}
body.map-mode #map-view {
    height: 100%;
}

/* 强制显示所有内容（临时禁用动画） */
.toc-nav,
.toc-chapter-section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* =================== 地图版样式优化 =================== */
body.map-mode .toc-search-container {
    display: none;
}

body.map-mode .toc-nav {
    display: block;
}

body.map-mode .toc-content {
    margin-left: 320px;
    padding-right: 0;
    height: calc(100vh - 280px);
    overflow: hidden;
}

body.map-mode #map-view,
body.map-mode #map {
    height: 100%;
    width: 100%;
    min-height: 0;
}
/* =================== 地图版最终调整（不融合，地图与头部有间距） =================== */
body.map-mode .toc-content {
    margin-left: 300px;
    padding-right: 0;
    height: calc(100vh - var(--header-height, 0) - var(--footer-height, 0) - 40px);
    margin-top: 20px; /* 地图顶部与头部间距 */
}

/* 切换按钮容器 - 独立显示，位于信息面板上方 */
body.map-mode .toc-search-fixed {
    display: block !important;
    top: calc(var(--header-height, 0) + 20px) !important;
    width: 280px;
    background: transparent;
    padding: 0;
    box-sizing: border-box;
    border: none;
    box-shadow: none;
}
body.map-mode .toc-search-fixed .toc-view-switch {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,215,175,0.3);
    border-radius: 40px;
    margin-bottom: 10px; /* 与信息面板的间距 */
}
/* 隐藏搜索框容器（地图版始终隐藏） */
body.map-mode .toc-search-fixed .toc-search-container {
    display: none !important;
}

/* 左侧信息面板 - 位于按钮下方 */
body.map-mode .toc-nav {
    left: 20;
    top: calc(var(--header-height, 0) + 90px) !important; /* 按钮高度约50px + 间距10px + 按钮顶部20px = 80px，再加10px安全 */
    width: 280px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7); /* 恢复原背景 */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    max-height: calc(100vh - var(--header-height, 0) - var(--footer-height, 0) - 110px); /* 减去顶部总高度和底部间距 */
    overflow-y: auto;
}

/* 确保信息面板内部样式正常 */
body.map-mode .toc-nav .station-info-panel {
    max-height: none;
    overflow: visible;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}
body.map-mode .toc-nav .station-info-panel .panel-content {
    gap: 12px;
}
body.map-mode .toc-nav .info-image {
    max-height: 150px;
    object-fit: cover;
}

/* 隐藏文字版导航列表 */
body.map-mode .toc-list {
    display: none;
}

/* =================== 搜索结果网格样式（与常规网格区分） =================== */
.toc-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.toc-result-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    padding: 12px 10px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(254, 180, 123, 0.2);
    position: relative;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(4px);
}

.toc-result-item:hover {
    background: rgba(254, 180, 123, 0.1);
    border-color: #feb47b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 180, 123, 0.2);
}

.toc-result-number {
    font-size: 0.8rem;
    color: #feb47b;
    margin-bottom: 4px;
    font-family: monospace;
    opacity: 0.9;
}

.toc-result-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.toc-result-category {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* 徽章样式（小巧紧凑） */
.toc-result-badge {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 6px;
    right: 6px;
}

.toc-result-badge::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    z-index: 1001;
}

.toc-result-badge:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 工具提示（与常规工具提示风格一致，但外框稍小） */
.toc-result-item .toc-result-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 40, 0.95);
    border-radius: 6px;
    padding: 12px;
    width: 220px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.toc-result-item:hover .toc-result-tooltip {
    opacity: 1;
    visibility: visible;
}

.toc-result-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(20, 20, 40, 0.95) transparent transparent transparent;
}

/* 工具提示内部样式复用已有的 .toc-tooltip-* 类，无需重复定义 */

/* 搜索结果分组标题 */
.toc-result-group {
    margin-bottom: 30px;
}

.toc-group-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #feb47b;
    border-bottom: 1px solid rgba(254, 180, 123, 0.3);
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-group-title i {
    font-size: 1.2rem;
}

/* 搜索结果头部 */
.toc-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toc-search-header h3 {
    font-size: 1.4rem;
    margin: 0;
}

.toc-keyword {
    color: #feb47b;
    background: rgba(254, 180, 123, 0.2);
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 0.9em;
}

.toc-result-stats {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 30px;
}

/* 无结果提示 */
.toc-no-results {
    text-align: center;
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.toc-no-results i {
    font-size: 3rem;
    color: #feb47b;
    margin-bottom: 15px;
    display: block;
}

/* 返回完整目录链接 */
.toc-back-to-content {
    text-align: center;
    margin-top: 40px;
}

.toc-back-to-content a {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(254, 180, 123, 0.15);
    border: 1px solid #feb47b;
    border-radius: 40px;
    color: #feb47b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.toc-back-to-content a:hover {
    background: #feb47b;
    color: #1a1a2a;
    transform: scale(1.05);
}

/* 搜索结果页顶部间距 */
.toc-search-results {
    margin-top: 40px;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .toc-search-results {
        margin-top: 20px;
    }
}