* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
}

body {
    background: url('西安3.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: -1;
}

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

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #1a5fb4 0%, #0d3c7a 100%);
    color: white;
    padding: 1.2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 2.8rem;
    color: #ffd43b;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
}

.logo-text h1 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    color: rgba(255,255,255,0.9);
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1.1rem;
}

/* AI悬浮助手 - 地图探索特色 */
.ai-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 8px 25px rgba(46, 194, 126, 0.3);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
}

.ai-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(46, 194, 126, 0.4);
}

.ai-floating-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-window-header {
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ai-window-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2ec27e;
}

.ai-window-title h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.ai-window-title p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.ai-window-close {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.ai-window-close:hover {
    opacity: 1;
}

.ai-window-chat {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f9fafc;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ai-message.assistant {
    background: white;
    align-self: flex-start;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.ai-message.user {
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    color: white;
    align-self: flex-end;
}

.ai-window-input {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.ai-window-input input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #e0e6ef;
    border-radius: 25px;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.ai-window-input input:focus {
    outline: none;
    border-color: #2ec27e;
    box-shadow: 0 0 0 3px rgba(46, 194, 126, 0.1);
}

.ai-window-send {
    background: #2ec27e;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.ai-window-send:hover {
    background: #1a5fb4;
    transform: scale(1.05);
}

/* 地图探索特色内容 */
.main-content {
    padding: 40px 0;
}

.map-section {
    margin-bottom: 40px;
}

.map-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 700px;
    margin-bottom: 30px;
}

#map {
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-btn {
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    color: #2ec27e;
}

.map-btn:hover {
    transform: scale(1.1);
    background: #2ec27e;
    color: white;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 350px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.legend-text {
    font-size: 0.9rem;
    color: #555;
}

.map-tools {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.map-tool-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
    flex: 1;
}

.map-tool-label {
    font-weight: 600;
    color: #1a5fb4;
    font-size: 1rem;
}

.map-tool-select {
    padding: 12px 20px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s;
}

.map-tool-select:focus {
    outline: none;
    border-color: #2ec27e;
    box-shadow: 0 0 0 3px rgba(46, 194, 126, 0.1);
}

.map-tool-btn {
    padding: 12px 30px;
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 28px;
}

.map-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 194, 126, 0.3);
}

.data-layers {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.layers-title {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.layers-title i {
    color: #2ec27e;
}

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

.layer-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid transparent;
    transition: all 0.3s;
    cursor: pointer;
}

.layer-card:hover {
    border-color: #2ec27e;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 194, 126, 0.1);
}

.layer-card.active {
    border-color: #2ec27e;
    background: linear-gradient(135deg, rgba(46, 194, 126, 0.1), rgba(26, 95, 180, 0.1));
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.layer-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
}

.layer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.layer-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

.layer-toggle {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2ec27e;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.map-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.analysis-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.analysis-title {
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.analysis-title i {
    color: #2ec27e;
}

.analysis-chart {
    height: 200px;
    margin-top: 20px;
}

.analysis-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.analysis-stat {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2ec27e;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* 页脚 */
.footer {
    background: #1a1a1a;
    color: #aaa;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #2ec27e;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-links a:hover {
    color: #2ec27e;
    padding-left: 10px;
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    font-size: 0.95rem;
    color: #777;
}

/* 交通查询面板样式 */
.traffic-tools {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.traffic-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.traffic-tab {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666;
}

.traffic-tab:hover {
    border-color: #2ec27e;
    color: #2ec27e;
}

.traffic-tab.active {
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    color: white;
    border-color: transparent;
}

.traffic-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.traffic-search-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.traffic-search-label {
    font-weight: 600;
    color: #1a5fb4;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.traffic-search-input-group {
    display: flex;
    gap: 10px;
}

.traffic-search-input {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
}

.traffic-search-input:focus {
    outline: none;
    border-color: #2ec27e;
    box-shadow: 0 0 0 3px rgba(46, 194, 126, 0.1);
}

.traffic-search-select {
    flex-grow: 1;
    padding: 12px 20px;
    border: 2px solid #e0e6ef;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s;
}

.traffic-search-select:focus {
    outline: none;
    border-color: #2ec27e;
    box-shadow: 0 0 0 3px rgba(46, 194, 126, 0.1);
}

.traffic-search-btn {
    padding: 0 20px;
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.traffic-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 194, 126, 0.3);
}

.traffic-results {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e0e6ef;
}

.traffic-results-title {
    font-size: 1.2rem;
    color: #1a5fb4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.traffic-results-content {
    min-height: 150px;
}

.traffic-results-empty {
    text-align: center;
    color: #999;
    padding: 30px 0;
}

.bus-line-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bus-line-name {
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 8px;
}

.bus-line-stops {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.real-time-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.real-time-header {
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 8px;
}

.real-time-buses {
    color: #666;
    font-size: 0.9rem;
}

.subway-line-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.subway-line-name {
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 8px;
}

.subway-stations {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.transfer-info {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.transfer-route {
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 8px;
}

.transfer-details {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .map-container {
        height: 500px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ai-floating-window {
        width: 320px;
        height: 480px;
    }
    
    .traffic-search-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-item {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .map-container {
        height: 400px;
    }
    
    .map-tools {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .ai-floating-window {
        width: 100%;
        height: 70vh;
        bottom: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
    }
    
    .ai-floating-btn {
        bottom: 20px;
        right: 20px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 满意度评价样式 */
.satisfaction-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

.satisfaction-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    border: 2px solid #e0e6ef;
    transition: all 0.3s;
}

.satisfaction-card:hover {
    border-color: #2ec27e;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(46, 194, 126, 0.1);
}

.satisfaction-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.satisfaction-title i {
    color: #2ec27e;
}

.satisfaction-rating {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.rating-stars {
    display: flex;
    gap: 10px;
    margin-right: 20px;
}

.rating-stars i {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-stars i:hover,
.rating-stars i.active {
    color: #ffc107;
}

.rating-value {
    font-size: 24px;
    font-weight: bold;
    color: #ffc107;
}

.satisfaction-input textarea {
    width: 100%;
    height: 100px;
    padding: 12px 16px;
    border: 2px solid #e0e6ef;
    border-radius: 8px;
    resize: none;
    margin-bottom: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.satisfaction-input textarea:focus {
    outline: none;
    border-color: #2ec27e;
    box-shadow: 0 0 0 3px rgba(46, 194, 126, 0.1);
}

.satisfaction-btn {
    background: linear-gradient(135deg, #2ec27e, #1a5fb4);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.satisfaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 194, 126, 0.3);
}

@media (max-width: 768px) {
    .satisfaction-content {
        grid-template-columns: 1fr;
    }
}

/* 词云样式 */
.satisfaction-wordcloud {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e6ef;
}

.wordcloud-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a5fb4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wordcloud-title i {
    color: #2ec27e;
}

.wordcloud-container {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    background: #f8fafc;
    border: 2px solid #e0e6ef;
    transition: all 0.3s;
}

.wordcloud-container:hover {
    border-color: #2ec27e;
    box-shadow: 0 5px 15px rgba(46, 194, 126, 0.1);
}

@media (max-width: 768px) {
    .wordcloud-container {
        height: 150px;
    }
}