/* ===== traffic.css - 优化版，便于后台录入 ===== */

/* ===== 基础变量 ===== */
:root {
    --primary-color: #0b2f6c;
    --primary-light: #e1ecff;
    --accent-color: #ff6b6b;
    --accent-orange: #ff9242;
    --accent-green: #2e7d32;
    --text-dark: #1e2f42;
    --text-soft: #4a5e7a;
    --bg-soft: #f8fbff;
    --border-light: #e2eaf9;
    --shadow-sm: 0 8px 20px rgba(0,20,50,0.06);
    --shadow-hover: 0 15px 35px rgba(11,47,108,0.12);
    --radius-card: 28px;
    --radius-inner: 20px;
}

/* ===== 基础容器 ===== */
.traffic-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    background: transparent;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

.traffic-content-wrapper {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    padding: 50px 60px;
    transition: padding 0.3s ease;
}

/* ===== 页眉区域 - 居中 ===== */
.traffic-header {
    margin-bottom: 35px;
}

.traffic-main-title {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 25px 0;
    padding-bottom: 18px;
    border-bottom: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.traffic-main-title i {
    color: var(--accent-color);
    font-size: 2.2rem;
}

/* 地址卡片 - 单行显示，手机端自动换行 */
.conference-address-card {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-radius: 80px;
    padding: 12px 28px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #c9ddff;
    box-shadow: 0 4px 12px rgba(11,47,108,0.08);
    max-width: 100%;
}

.address-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 6px 12px rgba(11,47,108,0.2);
    flex-shrink: 0;
}

.address-text {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
}

.address-label {
    font-size: 0.9rem;
    color: var(--text-soft);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.address-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.4;
    word-break: break-word; /* 允许换行 */
    white-space: normal; /* 允许换行 */
}

/* ===== 分割装饰 ===== */
.traffic-divider {
    text-align: center;
    margin: 40px 0 45px;
    position: relative;
}

.traffic-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #a5c0fa, transparent);
    z-index: 1;
}

.traffic-divider .divider-icon {
    position: relative;
    z-index: 2;
    display: inline-block;
    width: 76px;
    height: 76px;
    line-height: 76px;
    text-align: center;
    background: linear-gradient(145deg, var(--primary-color), #1a4cb3);
    color: white;
    font-size: 2.2rem;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(11,47,108,0.3);
}

/* ===== 交通列表 - 一行一个卡片 ===== */
.traffic-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 35px 0 30px; /* 底部间距调小 */
}

/* ===== 交通卡片 - 左右布局 ===== */
.traffic-card {
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
}

.traffic-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: #b1cbff;
}

/* 卡片左侧 - 标题区域 - 宽度改为300px */
.card-left {
    flex: 0 0 300px;
    background: linear-gradient(145deg, #f9fcff, #f0f5ff);
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-right: 1px solid #dae5f8;
}

.traffic-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--primary-color), #1f4ab0);
    color: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    margin-bottom: 20px;
    box-shadow: 0 12px 20px rgba(11,47,108,0.25);
}

/* 高铁站图标组合 */
.traffic-icon .fa-train {
    font-size: 1.8rem;
    margin-right: -8px;
}

.traffic-icon .fa-bolt {
    font-size: 1rem;
    color: #ffd966;
    margin-left: -8px;
    margin-top: -10px;
}

.traffic-title {
    width: 100%;
}

.traffic-title h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
    margin: 0 0 12px 0;
    word-break: break-word;
}

.card-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    background: #ffedd5;
    color: #b45309;
}

.card-badge.railway {
    background: #dbeafe;
    color: #1e40af;
}

/* 卡片右侧 - 路线区域 */
.card-right {
    flex: 1;
    padding: 30px 30px;
    background: white;
}

.route-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.route-item {
    display: flex;
    gap: 18px;
    background: var(--bg-soft);
    border-radius: var(--radius-inner);
    padding: 18px 20px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.route-item:hover {
    border-color: #b9d2ff;
    background: #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.route-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.metro-icon {
    background: #e1f0ff;
    color: #0284c7;
}

.taxi-icon {
    background: #fff2e0;
    color: #b45309;
}

.walk-icon {
    background: #e0ffe3;
    color: #2e7d32;
}

.route-content {
    flex: 1;
}

.route-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.route-desc {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 8px;
}

/* 路线元数据 - gap改为6px */
.route-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: var(--text-soft);
    border-top: 1px dashed #d5e2f0;
    padding-top: 8px;
    margin-top: 5px;
}

.route-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.route-meta i {
    color: var(--accent-orange);
    width: 16px;
    font-size: 0.95rem;
}

.meta-separator {
    color: #cbd5e1;
    font-weight: 300;
    margin: 0 2px;
}

/* ===== 底部提示 - 简洁无边框背景，间距调小 ===== */
.traffic-footer-note {
    text-align: center;
    margin-top: 20px; /* 间距调小 */
    padding: 10px 0;
    color: var(--text-soft);
    font-size: 0.95rem;
    display: inline-block;
    width: 100%;
}

.traffic-footer-note i {
    color: var(--accent-orange);
    margin-right: 6px;
}

/* ===== 响应式设计 ===== */
@media screen and (max-width: 1200px) {
    .traffic-content-wrapper {
        padding: 40px 40px;
    }
}

@media screen and (max-width: 992px) {
    .traffic-container {
        padding: 30px 15px;
    }
    .traffic-content-wrapper {
        padding: 35px 30px;
    }
    .traffic-main-title {
        font-size: 1.9rem;
    }
    .card-left {
        flex: 0 0 260px; /* 平板端适当缩小 */
        padding: 25px 20px;
    }
}

@media screen and (max-width: 768px) {
    .traffic-container {
        padding: 20px 12px;
    }
    .traffic-content-wrapper {
        padding: 25px 18px;
        border-radius: 24px;
    }
    .traffic-main-title {
        font-size: 1.6rem;
        padding-bottom: 12px;
    }
    .conference-address-card {
        padding: 10px 18px;
        border-radius: 40px;
    }
    .address-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    .address-label {
        font-size: 0.8rem;
    }
    .address-value {
        font-size: 0.95rem;
        word-break: break-word;
        white-space: normal;
    }
    .traffic-divider {
        margin: 30px 0 35px;
    }
    .divider-icon {
        width: 64px;
        height: 64px;
        line-height: 64px;
        font-size: 1.8rem;
    }

    /* 卡片改为上下布局 */
    .traffic-card {
        flex-direction: column;
    }
    .card-left {
        flex: auto;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #dae5f8;
        padding: 20px;
        flex-direction: row;
        gap: 20px;
        text-align: left;
        align-items: center;
    }
    .traffic-icon {
        margin-bottom: 0;
        width: 60px;
        height: 60px;
        font-size: 2rem;
        border-radius: 20px;
    }
    .traffic-title {
        flex: 1;
        text-align: left;
    }
    .traffic-title h3 {
        margin-bottom: 8px;
    }
    .card-right {
        padding: 20px;
    }

    /* 手机端地址自动换行 */
    .address-text {
        white-space: normal;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 576px) {
    .traffic-container {
        padding: 15px 10px;
    }
    .traffic-content-wrapper {
        padding: 20px 14px;
    }
    .traffic-main-title {
        font-size: 1.4rem;
    }
    .conference-address-card {
        flex-wrap: wrap;
        border-radius: 30px;
        padding: 8px 16px;
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    .address-text {
        white-space: normal;
        flex-wrap: wrap;
        justify-content: center;
    }
    .address-label {
        font-size: 0.8rem;
    }
    .address-value {
        font-size: 0.9rem;
        text-align: center;
    }
    .card-left {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .traffic-icon {
        margin: 0 auto;
    }
    .traffic-title {
        text-align: center;
    }

    /* 手机端：图标和标签在同一行 */
    .route-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
    }

    .route-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        border-radius: 12px;
        flex-shrink: 0;
    }

    .route-content {
        flex: 1;
    }

    /* 确保标签和图标视觉上对齐 */
    .route-label {
        display: inline-block;
        vertical-align: middle;
    }

    .traffic-footer-note {
        margin-top: 15px;
        padding: 8px 0;
        font-size: 0.9rem;
    }

    .route-meta {
        gap: 4px;
    }
}

@media screen and (max-width: 400px) {
    .traffic-content-wrapper {
        padding: 15px 12px;
    }
    .conference-address-card {
        padding: 6px 12px;
        gap: 6px;
    }
    .address-label {
        font-size: 0.7rem;
    }
    .address-value {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    .route-item {
        gap: 8px;
        padding: 14px 12px;
    }
    .route-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
    }
}