/* 内页统一样式文件 - sub.css */
/* 基础重置样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Source Han Sans CN", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1366px;
    width: 100%;
    margin: 0 auto;
    padding: 0 23px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header - 内页简化版 */
.header {
    position: relative;
    z-index: 100;
    background: url("../images/sub-header-bg.jpg");
    background-size: cover;
    padding: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.logo {
    margin-right: 20px;
}

    .logo img {
        height: 70px;
        object-fit: contain;
        display: block;
    }

.logo-text {
    text-align: center;
}

    .logo-text h1 {
        font-size: 28px;
        font-weight: 700;
        color: #045FB2;
        margin-bottom: 5px;
        line-height: 1.2;
    }

    .logo-text p {
        font-size: 12px;
        font-weight: 600;
        color: #666;
        line-height: 1.5;
    }

/* 详情页主图区域 */
.detail-hero {
    width: 100%;
    overflow: hidden;
}

    .detail-hero img {
        width: 100%;
        height: 366px;
        object-fit: cover;
        display: block;
    }

.sub-nav ul li {
    list-style-type: none;
}

.sub-nav ul {
    display: flex;
}

    .sub-nav ul li a {
        display: block;
        padding: 10px 20px;
        font-size: 18px;
    }

        .sub-nav ul li a:hover, .sub-nav ul li a.active {
            background: #559ffb;
            color: #FFF;
        }
/* 主内容区域 */
.detail-main {
    background: #fff;
}

/* 面包屑导航 */
.breadcrumb {
    background: #f3f3f3;
    padding: 6px 20px;
    font-size: 12px;
    color: #505050;
    border-radius: 4px;
    margin-top: 25px;
    margin-bottom: 15px;
}

    .breadcrumb a {
        color: #505050;
        text-decoration: none;
    }

        .breadcrumb a:hover {
            color: #007AFF;
        }

    .breadcrumb .current {
        color: #222;
        font-weight: 500;
    }

/* 详情内容区域 */
.detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 40px;
}

/* 响应式设计 */
@media (max-width: 1366px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .header {
        height: auto;
    }

    .header-content {
        padding: 10px 0;
        gap: 20px;
        align-items: start;
    }

    .logo-section {
        flex-direction: row;
        margin-bottom: 0;
        text-align: left;
    }

    .logo {
        margin-right: 10px;
    }

        .logo img {
            height: 60px;
            margin-bottom: 10px;
        }

    .logo-text {
        text-align: left;
    }

        .logo-text h1 {
            font-size: 20px;
            line-height: 1.3;
            margin-bottom: 5px;
        }

        .logo-text p {
            font-size: 11px;
            line-height: 1.5;
        }

    .detail-main {
        padding: 20px 0;
    }

    .detail-hero img {
        height: 250px;
    }

    .breadcrumb {
        margin-bottom: 20px;
        padding: 8px 15px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    .logo-text h1 {
        font-size: 18px;
    }

    .logo-text p {
        font-size: 10px;
    }

    .detail-hero img {
        height: 200px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .logo img {
        height: 35px;
    }

    .logo-text h1 {
        font-size: 16px;
    }

    .detail-hero img {
        height: 180px;
    }
}





/* 详情页专用样式 */


.detail-title {
    font-size: 36px;
    font-weight: 700;
    color: #222222;
    text-align: center;
    margin-bottom: 60px;
    line-height: 1.5;
}

.detail-text {
    color: #333333;
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
}

    .detail-text p {
        margin-bottom: 24px;
        text-indent: 2em; /* 首行缩进 */
    }

        .detail-text p:last-child {
            margin-bottom: 0;
        }

/* 响应式设计 */
@media (max-width: 768px) {


    .detail-content {
        padding: 0 15px;
    }

    .detail-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .detail-text {
        font-size: 15px;
        line-height: 1.6;
    }

        .detail-text p {
            margin-bottom: 20px;
        }
}

@media (max-width: 480px) {

    .detail-content {
        padding: 0 15px;
    }

    .detail-title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .detail-text {
        font-size: 14px;
        line-height: 1.6;
    }

        .detail-text p {
            margin-bottom: 18px;
            text-indent: 1.5em;
        }
}

@media (max-width: 360px) {

    .detail-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .detail-text {
        font-size: 13px;
        line-height: 1.5;
    }

        .detail-text p {
            margin-bottom: 16px;
        }
}






/* 列表页专用样式 */

/* 列表页主内容区域 */
.list-main {
    background: #fff;
    padding: 40px 0;
}

/* 新闻列表容器 */
.news-list-container {
}

/* 新闻列表项 */
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #DFDFDF;
    transition: background 0.2s ease;
}

    .news-item:hover {
        background: #fafafa;
    }

    .news-item:last-child {
        border-bottom: none;
    }

.news-content {
    flex: 1;
    padding-right: 20px;
}

    .news-content h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 400;
        line-height: 1.5;
        color: #555555;
    }

        .news-content h3 a {
            color: #555555;
            text-decoration: none;
            transition: color 0.2s ease;
        }

            .news-content h3 a:hover {
                color: #007AFF;
            }

.news-date {
    flex-shrink: 0;
    text-align: right;
    min-width: 120px;
}

    .news-date span {
        font-size: 16px;
        color: #888888;
        line-height: 1.375;
    }

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 20px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

    .page-link:hover {
        border-color: #007AFF;
        color: #007AFF;
    }

    .page-link.active {
        background: #007AFF;
        border-color: #007AFF;
        color: #fff;
    }

    .page-link.disabled {
        color: #ccc;
        cursor: not-allowed;
        border-color: #E0E0E0;
    }

        .page-link.disabled:hover {
            border-color: #E0E0E0;
            color: #ccc;
        }

/* 响应式设计 */
@media (max-width: 768px) {
    .list-main {
        padding: 20px 0;
    }

    .news-list-container {
        padding: 0 15px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
    }

    .news-content {
        padding-right: 0;
        margin-bottom: 10px;
    }

        .news-content h3 {
            font-size: 15px;
        }

    .news-date {
        text-align: left;
        min-width: auto;
    }

        .news-date span {
            font-size: 14px;
        }

    .pagination {
        margin-top: 30px;
        gap: 8px;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .news-item {
        padding: 16px 0;
    }

    .news-content h3 {
        font-size: 14px;
        line-height: 1.4;
    }

    .news-date span {
        font-size: 13px;
    }

    .pagination {
        margin-top: 25px;
        gap: 6px;
    }

    .page-link {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .news-item {
        padding: 14px 0;
    }

    .news-content h3 {
        font-size: 13px;
    }

    .news-date span {
        font-size: 12px;
    }

    .pagination {
        flex-wrap: wrap;
        margin-top: 20px;
        gap: 5px;
    }

    .page-link {
        min-width: 30px;
        height: 30px;
        padding: 0 6px;
        font-size: 11px;
    }
}






/* 线路查询页面样式 - 按照Figma设计 */

/* Hero Section */
.route-hero {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

    .route-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
        border-radius: 0 0 50% 50% / 0 0 100% 100%;
        z-index: 2;
    }

    .route-hero img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }




/* Layout */
.route-layout {
    display: flex;
    gap: 24px;
    margin-top: 30px;
}

.route-left-panel {
    width: 400px;
    flex-shrink: 0;
}

.route-right-panel {
    flex: 1;
    min-width: 600px;
}

/* Left Panel Sections */
.search-route-section,
.route-details-section {
    background: white;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.route-details-section {
    padding: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #007AFF;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.tab-item {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    background: #f8fafc;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

    .tab-item:hover {
        color: #007AFF;
        background: #f0f7ff;
    }

    .tab-item.active {
        color: #007AFF;
        background: white;
        border-bottom-color: #007AFF;
        font-weight: 600;
    }

/* Tab Content */
.tab-content {
    position: relative;
}

.tab-panel {
    padding: 20px;
    display: none;
}

    .tab-panel.active {
        display: block;
    }

/* Search Form */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .search-input-group label {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

.route-input {
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

    .route-input:focus {
        outline: none;
        border-color: #007AFF;
        box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
    }

.search-btn {
    padding: 10px 20px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 8px;
}

    .search-btn:hover {
        background: #0056CC;
    }

/* Route Grid */
.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px,1fr));
    gap: 8px;
    height: 348px;
    overflow: auto;
}

.route-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 40px;
}

    .route-item:hover {
        border-color: #007AFF;
        background: #f0f7ff;
    }

    .route-item.active {
        background: #007AFF;
        color: white;
        border-color: #007AFF;
    }

/* Route Details */
.route-details {
    /* height: 345px; */
    overflow: auto;
}

.route-summary {
    background: #f8fafc;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.route-name {
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #007AFF;
    margin-bottom: 4px;
}

.route-direction {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
}

.route-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .route-info span {
        font-size: 13px;
        color: #666;
    }

.stations-list h4 {
    font-size: 14px;
    color: #333;
    margin: 0 0 12px 0;
    font-weight: 600;
}

#r-result {
    max-height: 380px;
    overflow: auto;
}

.stations {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.station {
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 4px;
    font-size: 14px;
    color: #374151;
    position: relative;
    padding-left: 24px;
}

    .station::before {
        content: '';
        position: absolute;
        left: 8px;
        top: 50%;
        transform: translateY(-50%);
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #9ca3af;
    }

    .station.start-station::before,
    .station.end-station::before {
        background: #007AFF;
        width: 8px;
        height: 8px;
    }

    .station.start-station {
        background: #dbeafe;
        color: #1e40af;
    }

    .station.end-station {
        background: #fef3c7;
        color: #92400e;
    }

/* Right Panel - Map */
.map-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 940px;
    display: flex;
    flex-direction: column;
}

.map-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .map-header h3 {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin: 0;
    }



.map-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

.map-placeholder {
    text-align: center;
    color: #9ca3af;
}

.map-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.map-placeholder p {
    font-size: 18px;
    margin: 0 0 8px 0;
}

.map-placeholder small {
    font-size: 14px;
    color: #6b7280;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .route-main {
        padding: 20px 0;
    }

    .page-title {
        font-size: 24px;
    }

    .route-layout {
        flex-direction: column;
        gap: 16px;
    }

    .route-left-panel {
        width: 100%;
    }

    .route-right-panel {
        min-width: auto;
    }

    /* .route-grid {
        grid-template-columns: repeat(4, 1fr);
    } */

    .map-container {
        height: 400px;
    }

    .search-route-section,
    .route-details-section {
        padding: 0;
    }

    .tab-panel {
        padding: 16px;
    }

    .route-details-section {
        padding: 16px;
    }

    .map-header {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .route-hero {
        height: 200px;
    }

    .page-title {
        font-size: 20px;
    }

    /* .route-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
     */
    /* .route-item {
        min-height: 36px;
        font-size: 13px;
    } */

    .search-route-section,
    .route-details-section {
        padding: 0;
        margin-bottom: 12px;
    }

    .tab-panel {
        padding: 12px;
    }

    .route-details-section {
        padding: 12px;
    }

    .tab-item {
        padding: 12px 16px;
        font-size: 13px;
    }

    .map-container {
        height: 300px;
    }

    .section-title {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    /* .route-grid {
        grid-template-columns: repeat(3, 1fr);
    }
     */
    /* .route-item {
        min-height: 32px;
        font-size: 12px;
    } */
}
