/* 重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #4a4a4a;
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
    background-attachment: fixed;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(102, 126, 234, 0.15);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    max-width: 100%;
    height: auto;
}

.logo h1 a {
    text-decoration: none;
    color: #667eea;
    font-weight: 700;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 a:hover {
    color: #764ba2;
    transform: scale(1.05);
}

/* 主导航样式 */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 10px 18px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.nav-link:hover {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.nav-link.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.15);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
}

.nav-link i {
    margin-right: 8px;
    color: #667eea;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    list-style: none;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.dropdown-menu li a:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

/* 头部操作按钮 */
.header-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-login {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn-login:hover {
    background-color: #007bff;
    color: #fff;
}

.btn-register {
    background-color: #007bff;
    color: #fff;
}

.btn-register:hover {
    background-color: #0056b3;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1002;
}

.menu-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-list {
    list-style: none;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 15px;
}

.mobile-nav-link {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-nav-link:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.mobile-nav-link.active {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    font-weight: 600;
}

.mobile-nav-link i {
    margin-right: 8px;
}

.mobile-dropdown-menu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
}

.mobile-dropdown-menu.active {
    display: block;
}

/* 主内容区域 */
.main-content {
    min-height: calc(100vh - 200px);
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.search-box form {
    display: flex;
    background-color: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.search-box button {
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #0056b3;
}

/* 精选内容区域 */
.featured-section {
    padding: 60px 0;
    background-color: #fff;
}

.featured-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
}

.featured-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.featured-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.featured-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.2rem;
    color: #333;
}

.featured-item p {
    padding: 0 20px 20px;
    color: #666;
    font-size: 0.95rem;
}

/* 内容区域 */
.content-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.left-column h2,
.right-column h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.news-item h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #333;
}

.news-item p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.news-date {
    font-size: 0.85rem;
    color: #999;
}

/* 地区选择器样式 */
.regions-selector {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.regions-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* 地区结果样式 */
.regions-results {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 热门线路 */
.hot-routes {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.route-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.route-item:last-child {
    border-bottom: none;
}

.route-item:hover {
    transform: translateX(5px);
}

.route-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    margin-right: 15px;
    font-size: 0.9rem;
}

.route-name {
    color: #333;
    font-size: 0.95rem;
}

/* 页脚样式 */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #fff;
}

.footer-section p {
    color: #adb5bd;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links li a:hover {
    color: #007bff;
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 10px;
    color: #adb5bd;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.contact-info li i {
    margin-right: 10px;
    color: #007bff;
}

.contact-info li a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info li a:hover {
    color: #007bff;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    color: #007bff;
    padding-left: 5px;
}

.social-link i {
    margin-right: 10px;
    color: #007bff;
    font-size: 1.2rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #495057;
    font-size: 0.85rem;
    color: #adb5bd;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-nav a:hover {
    color: #007bff;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .featured-section,
    .content-section {
        padding: 40px 0;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-nav {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .search-box form {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-box button {
        border-radius: 0 0 8px 8px;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* 巴士档案站特有样式 */

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
    animation: fadeInUp 0.8s ease;
    border-radius: 0 0 30px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.15);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 搜索框样式 */
.hero .search-box {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero .search-box form {
    display: flex;
    background-color: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
}

.hero .search-box button {
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero .search-box button:hover {
    background-color: #0056b3;
}

/* 统计卡片区域 */
.stats-section {
    padding: 40px 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
    width: 100%;
}

.stats-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease;
    min-height: 120px;
    width: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.stat-content h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-number {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

/* 精选巴士区域 */
.featured-buses {
    padding: 40px 0 60px;
    background-color: transparent;
}

.featured-buses h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #4a4a4a;
    font-weight: 700;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.featured-buses h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
    border-radius: 2px;
}

/* 巴士网格布局 */
.bus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* 巴士项目样式 */
.bus-item {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(5px);
}

.bus-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* 巴士图片样式 */
.bus-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.bus-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.bus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bus-item:hover .bus-image img {
    transform: scale(1.1);
}

/* 巴士信息样式 */
.bus-info {
    padding: 20px;
}

.bus-info h4 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: #4a4a4a;
    font-weight: 600;
    line-height: 1.4;
}

.bus-info h4 a {
    color: #4a4a4a;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.bus-info h4 a:hover {
    color: #667eea;
    transform: translateX(5px);
}

.bus-type {
    font-size: 0.9rem;
    color: #667eea;
    margin-bottom: 5px;
    font-weight: 500;
    background-color: rgba(102, 126, 234, 0.1);
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.bus-company {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.bus-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.bus-meta .date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: rgba(102, 126, 234, 0.08);
    padding: 2px 10px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

/* 查看全部按钮样式 */
.view-all {
    text-align: center;
}

.view-all .btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    position: relative;
    overflow: hidden;
}

.view-all .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.view-all .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.view-all .btn:hover::before {
    left: 100%;
}

/* 分类区域样式 */
.categories-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.categories-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #333;
}

/* 分类网格布局 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* 分类项目样式 */
.category-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.category-item a {
    text-decoration: none;
    color: #333;
    display: block;
}

.category-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}

.category-item:hover h4 {
    color: #007bff;
}

.category-item p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* 巴士详情页面样式 */
.bus-detail-page {
    padding: 60px 0;
    background-color: #fff;
}

.bus-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.bus-detail-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.bus-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.bus-meta .type, .bus-meta .company, .bus-meta .date, .bus-meta .status {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
}

.bus-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.bus-image-gallery {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.main-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bus-info {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
}

.bus-info h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.bus-specs {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.bus-specs th, .bus-specs td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.bus-specs th {
    background-color: #e9ecef;
    font-weight: 600;
    color: #495057;
    width: 30%;
}

.bus-specs td {
    color: #666;
}

.bus-description {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.bus-description h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.description-content {
    line-height: 1.8;
    color: #666;
    font-size: 1.05rem;
}

.bus-technical-specs {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.bus-technical-specs h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.technical-specs {
    width: 100%;
    border-collapse: collapse;
}

.technical-specs th, .technical-specs td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.technical-specs th {
    background-color: #e9ecef;
    font-weight: 600;
    color: #495057;
    width: 30%;
}

.technical-specs td {
    color: #666;
}

.related-buses {
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.related-buses h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.related-buses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.related-bus-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.related-bus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.related-bus-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-bus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-bus-item:hover .related-bus-image img {
    transform: scale(1.05);
}

.related-bus-info {
    padding: 15px;
}

.related-bus-info h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #333;
}

.related-bus-info h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-bus-info h4 a:hover {
    color: #007bff;
}

.related-bus-type {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* 搜索页面样式 */
.search-page {
    padding: 60px 0;
    background-color: #fff;
}

.search-header {
    margin-bottom: 40px;
    text-align: center;
}

.search-header h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.search-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-box form {
    display: flex;
    background-color: #f8f9fa;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    outline: none;
    font-size: 16px;
    background-color: transparent;
}

.search-box button {
    padding: 15px 30px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0 50px 50px 0;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.search-box button:hover {
    background-color: #0056b3;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 40px;
}

.no-results p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 20px;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-btn {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.page-btn:hover {
    background-color: #e0e0e0;
}

.page-btn.active {
    background-color: #007bff;
    color: #fff;
}

.page-btn.prev, .page-btn.next {
    background-color: #007bff;
    color: #fff;
}

.page-btn.prev:hover, .page-btn.next:hover {
    background-color: #0056b3;
}

/* 用户认证页面样式 */
.user-auth-page {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.auth-container h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: #007bff;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* 消息提示样式 */
.message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.message-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* 错误和成功消息样式 */
.error-message, .success-message {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* 管理员页面样式 */
.admin-main {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 200px);
}

.admin-main h1 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #333;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.card-body {
    padding: 30px;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.data-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* 筛选表单样式 */
.filter-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.filter-form form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-form .form-group {
    flex: 1;
    min-width: 200px;
}

/* 按钮组样式 */
.btn-group {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 当前图片样式 */
.current-image {
    margin-top: 10px;
    text-align: center;
}

.current-image img {
    max-width: 200px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
}

.current-image p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

/* 表单提示样式 */
.form-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
}

/* 必填项样式 */
.required {
    color: #dc3545;
    margin-left: 3px;
}

/* 仪表盘统计样式 */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-content h3 {
    margin: 0 0 5px;
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.stat-number {
    margin: 0;
    font-size: 2rem;
    color: #333;
    font-weight: 700;
}

/* 仪表盘侧边栏样式 */
.dashboard-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
}

.sidebar-menu li a {
    display: block;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu li a i {
    margin-right: 8px;
}

.sidebar-menu li a:hover {
    background-color: #f0f0f0;
    color: #007bff;
}

.sidebar-menu li.active a {
    background-color: #007bff;
    color: #fff;
}

/* 最近活动样式 */
.recent-activities {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.recent-activities h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 0.85rem;
    color: #666;
    margin-right: 20px;
}

.activity-action {
    color: #333;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .bus-detail-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .sidebar-menu {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 10px;
    }
    
    .sidebar-menu li {
        white-space: nowrap;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .bus-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .related-buses-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .bus-detail-header h2 {
        font-size: 2rem;
    }
    
    .bus-meta {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 8px;
    }
    
    .search-box button {
        border-radius: 0 0 8px 8px;
    }
    
    .featured-buses h3, .categories-section h3 {
        font-size: 1.5rem;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        width: 100%;
    }
    
    .filter-form form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

/* 滚动公告横幅样式 */
.announcement-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 15px 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: fadeIn 0.5s ease;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.banner-icon {
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.banner-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.banner-text {
    display: block;
    width: 100%;
}

.banner-slide {
    display: none;
    padding: 0 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    transition: opacity 0.3s ease;
}

.banner-slide strong {
    font-weight: 600;
    margin-right: 8px;
}

.banner-controls {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.banner-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.banner-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.banner-controls button:active {
    transform: scale(0.95);
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* 淡入动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .announcement-banner {
        padding: 12px 0;
    }
    
    .banner-container {
        padding: 0 15px;
        gap: 10px;
    }
    
    .banner-icon {
        font-size: 1.2rem;
    }
    
    .banner-slide {
        font-size: 0.85rem;
        padding: 0 10px;
    }
    
    .banner-controls button {
        width: 25px;
        height: 25px;
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .banner-controls {
        display: none;
    }
    
    .banner-slide {
        font-size: 0.8rem;
        padding: 0 8px;
    }
}

/* 地区页面样式 */
.regions-page {
    padding: 20px 0;
    background-color: #f5f7fa;
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
    background-attachment: fixed;
}

.regions-page h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 700;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.regions-page h1::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.regions-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 地区选择器样式 */
.regions-selector {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 滚动条样式 */
.regions-selector::-webkit-scrollbar {
    width: 8px;
}

.regions-selector::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.regions-selector::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 4px;
}

.regions-selector::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.7);
}

.region-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.region-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.region-section h2 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    padding: 8px 12px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.region-section h2:hover {
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.2);
    transform: translateX(5px);
}

.region-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
    padding-left: 10px;
}

.region-card {
    display: block;
    padding: 12px 8px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    color: #34495e;
    text-decoration: none;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.region-card:hover {
    background-color: #3498db;
    color: #fff;
    border-color: #3498db;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.region-card.all-region {
    background-color: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    font-weight: 600;
    grid-column: 1 / -1;
    margin-bottom: 10px;
}

.region-card.all-region:hover {
    background-color: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

/* 地区结果样式 */
.regions-results {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.5s ease;
}

.regions-results h2 {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(52, 152, 219, 0.2);
}

/* 巴士网格布局 */
.buses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* 巴士项目样式优化 */
.bus-item {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.bus-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 无数据提示 */
.no-data {
    text-align: center;
    padding: 50px 20px;
    color: #7f8c8d;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 2px dashed #bdc3c7;
    margin-top: 20px;
}

/* 地区介绍 */
.regions-intro {
    text-align: center;
    padding: 50px 20px;
    color: #7f8c8d;
    font-size: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 12px;
    border: 2px dashed #bdc3c7;
}

.regions-intro h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    border-bottom: none;
    padding-bottom: 0;
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 折叠/展开图标 */
.toggle-icon {
    font-size: 0.7rem;
    color: #3498db;
    transition: transform 0.3s ease;
}

/* 加载动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .regions-content {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
    
    .buses-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .regions-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .regions-selector {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .region-cards {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    
    .region-card {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .regions-page {
        padding: 15px 0;
    }
    
    .regions-page h1 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .regions-content {
        padding: 0 15px;
    }
    
    .regions-selector {
        padding: 15px;
    }
    
    .regions-results {
        padding: 20px;
    }
    
    .regions-results h2 {
        font-size: 1.4rem;
    }
    
    .buses-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .region-cards {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .region-cards {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 5px;
    }
    
    .region-card {
        padding: 8px 6px;
        font-size: 0.8rem;
    }
    
    .region-section h2 {
        font-size: 1rem;
        padding: 6px 10px;
    }
    
    .buses-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .regions-page h1 {
        font-size: 1.6rem;
    }
    
    .regions-results h2 {
        font-size: 1.2rem;
    }
}