/* ===== 线路页面CSS优化 ===== */

/* 使用全局CSS变量 */
:root {
    /* 字体系列 */
    --font-main: "Source Han Sans CN", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-accent: "Montserrat", "Roboto", sans-serif;
    
    /* 灰度配色体系 - 参考附件要求 */
    --color-title: #2C3E50;      /* 深邃蓝黑：用于标题 */
    --color-text: #545E66;       /* 中灰：用于正文 */
    --color-helper: #8E9AAF;     /* 浅灰：用于辅助信息 */
    --color-brand: #0693bd;      /* 品牌色(使用您的蓝色) */
    --color-brand-light: #3ba3e8;/* 品牌辅助色 */
    --color-accent: #d1000e;     /* 强调色(保持您的红色) */
    --color-bg: #edf4fa;
    
    /* 字号规范 - 桌面端优先 */
    --fs-h1: 36px;
    --fs-h2: 26px;
    --fs-h3: 20px;
    --fs-body: 16px;            /* 黄金标准 */
    --fs-small: 14px;
    
    /* 行高规范 - 提升阅读体验 */
    --lh-title: 1.3;            /* 标题紧凑 */
    --lh-body: 1.75;            /* 正文舒展，附件推荐 */
    
    /* 间距规范 */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ===== Banner图样式 ===== */
.about-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
    margin-bottom: var(--spacing-lg);
    border-radius: 12px;
}

.about-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.about-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 12px;
    /* 附件建议的文字阴影优化 */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.about-banner-title {
    font-size: var(--fs-h1);
    font-family: var(--font-accent);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    letter-spacing: -0.02em;
    line-height: var(--lh-title);
}

.about-banner-subtitle {
    font-size: 20px;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.6;
    font-family: var(--font-main);
}

/* ===== 内容区域 ===== */
.content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== 子栏目导航 ===== */
.subnav-container {
    margin: var(--spacing-lg) 0;
    background-color: white;
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.subnav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
}

.subnav-tab {
    padding: 12px 25px;
    font-size: var(--fs-body);
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: #f5f7fa;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-width: 120px;
    text-align: center;
    font-weight: 500;
    /* 去除链接下划线 */
    text-decoration: none !important;
    display: inline-block;
}

.subnav-tab:hover {
    background-color: rgba(29, 82, 200, 0.1);
    color: var(--color-brand);
    border-color: var(--color-brand-light);
    transform: translateY(-2px);
    text-decoration: none !important;
}

.subnav-tab.active {
    background-color: var(--color-brand);
    color: white;
    border-color: var(--color-brand);
    font-weight: 600;
    text-decoration: none !important;
}
.subnav-tab.active a{

    color: white;

}

/* ===== 线路列表区域 ===== */
.routes-section {
    margin: var(--spacing-lg) 0;
}

.section-header {
    height: 60px;
    border: 2px solid white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: var(--fs-h2);
    font-family: var(--font-accent);
    color: var(--color-accent);
    font-weight: 700;
    line-height: var(--lh-title);
}

.more-link {
    font-size: var(--fs-small);
    color: var(--color-brand);
    display: flex;
    align-items: center;
    font-weight: 500;
    /* 去除下划线 */
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: var(--color-brand-light);
    text-decoration: none !important;
    transform: translateX(3px);
}

/* ===== 线路网格 ===== */
.routes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.route-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none !important;
    display: block;
    color: inherit;
}

.route-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.route-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.route-info {
    padding: var(--spacing-md);
}

.route-title {
    font-size: 18px;
    font-family: var(--font-accent);
    color: var(--color-title);
    line-height: 1.5;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    min-height: 54px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.route-desc {
    font-size: var(--fs-body);
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.route-price {
    display: flex;
    align-items: center;
}

.price-tag {
    background-color: rgba(217, 0, 14, 0.05);
    border: 1px solid rgba(217, 0, 14, 0.1);
    border-radius: 8px;
    padding: 0px 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rmb {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-accent);
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-accent);
}

.per-person {
    font-size: var(--fs-small);
    color: var(--color-helper);
    margin-left: 4px;
}

.route-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.route-tag {
    background-color: rgba(61, 82, 200, 0.08);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    color: var(--color-brand);
    border: 1px solid rgba(61, 82, 200, 0.1);
    white-space: nowrap;
}

/* ===== 链接样式统一设置 - 去除下划线 ===== */
/* 基础链接样式 */
a {
    color: var(--color-brand);
    text-decoration: none !important;
    transition: all 0.3s ease;
}

/* 悬停状态 */
a:hover,
a:focus,
a:active {
    color: var(--color-brand-light);
    text-decoration: none !important;
    /* 添加其他悬停效果替代下划线 */
    opacity: 0.9;
}

/* 确保卡片链接没有下划线 */
.route-card a,
.more-link,
.subnav-tab,
.footer-link,
.nav-item a {
    text-decoration: none !important;
}

.route-card a:hover,
.more-link:hover,
.subnav-tab:hover,
.footer-link:hover,
.nav-item a:hover {
    text-decoration: none !important;
}

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-banner-title {
        font-size: 32px;
    }
    
    .about-banner-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 992px) {
    .routes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .subnav-tabs {
        justify-content: flex-start;
    }
    
    .content-wrapper {
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    :root {
        --fs-h1: 28px;
        --fs-h2: 22px;
        --fs-h3: 18px;
        --fs-body: 15px;
        --lh-body: 1.65;
    }
    
    .about-banner {
        height: 300px;
    }
    
    .about-banner-title {
        font-size: 28px;
        text-align: center;
        padding: 0 var(--spacing-sm);
    }
    
    .about-banner-subtitle {
        font-size: 16px;
        text-align: center;
        padding: 0 var(--spacing-sm);
    }
    
    .routes-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .section-header {
        flex-direction: column;
        height: auto;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
    
    .subnav-container {
        padding: var(--spacing-sm);
    }
    
    .subnav-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .subnav-tab {
        min-width: auto;
        padding: 10px var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    .about-banner {
        height: 250px;
    }
    
    .about-banner-title {
        font-size: 24px;
    }
    
    .route-img {
        height: 180px;
    }
    
    .route-title {
        font-size: 16px;
        min-height: 48px;
    }
    
    .route-desc {
        font-size: var(--fs-small);
        -webkit-line-clamp: 3;
    }
    
    .route-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .route-tags {
        justify-content: flex-start;
        width: 100%;
    }
}

/* ===== 针对AI抓取的优化 ===== */
/* 图片Alt属性样式 */
.route-img[alt] {
    border: 1px solid rgba(0,0,0,0.05);
}

/* 价格信息结构化标记 */
.price-tag[itemprop="offers"] {
    font-weight: 700;
}

/* 标签结构化标记 */
.route-tag[itemprop="keywords"] {
    font-weight: 500;
}

/* 确保对比度符合WCAG标准 */
.route-title,
.price,
.section-title {
    /* 确保足够的颜色对比度 */
    color: #d1000e;
}

.route-desc {
    color: var(--color-text);
}

/* 悬停状态优化 */
 .route-title {
    color: var(--color-title);
}
.route-card:hover{
    color: #d1000e
}

/* 焦点状态（无障碍访问） */
a:focus,
button:focus,
.route-card:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

/* 去除焦点状态下的默认轮廓 */
a:focus:not(:focus-visible) {
    outline: none;
}