:root {
    --yn-purple-main: #9c5aa7;
    --yn-purple-deep: #8a4a99;
    --yn-purple-light: #d4b8dd;
    --yn-purple-border: rgba(156, 90, 167, 0.28);
    --yn-menu-bg: rgba(253, 249, 243, 0.93);
    --yn-text-dark: #444;
    --yn-menu-shadow: 0 8px 24px rgba(156, 90, 167, 0.2);
    --card-total-height: 140px;
    --card-img-height: 105px;
}

/* ========== 导航基础（PC端） ========== */
.yn-main-nav {
    display: flex !important;
    width: 100%;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}
.yn-nav-item {
    list-style: none;
}

.yn-nav-item .nav-link {
    padding: 14px 22px !important;
    font-weight: 500;
    font-size: 15px;
    transition: all .25s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
    text-decoration: none;
}
.yn-nav-item:hover .nav-link{
    background-color: rgba(255, 255, 255, .08) ;
}
.dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border-top-color: #fff;
    border-width: .3em .3em 0;
}

/* ========== 下拉容器通用（PC端） ========== */
.yn-dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1300px !important;
    padding: 26px 0 !important;
    margin: 0 !important;
    border: 1px solid var(--yn-purple-border) !important;
    border-radius: 6px !important;
    background-color: var(--yn-menu-bg) !important;
    backdrop-filter: blur(4px) !important;
    box-shadow: var(--yn-menu-shadow) !important;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    display: block !important;
    z-index: 1050;
}
.yn-nav-item.has-mega-menu:hover .yn-dropdown-menu {
    opacity: 1;
    visibility: visible;
}
.mega-menu-inner {
    padding: 0 32px;
    width: 100%;
    box-sizing: border-box;
}
.mega-cols {
    display: flex;
    width: 100%;
    gap: 0;
    align-items: stretch;
}

/* ========== 多列宽度定义 ========== */
.cols-4 .mega-col:nth-child(1) {
    flex: 0 0 27% ;
    max-width: 27% ;
}
.cols-4 .mega-col:nth-child(2) {
    flex: 0 0 27% ;
    max-width: 27% ;
}
.cols-4 .mega-col:nth-child(3) {
    flex: 0 0 26% ;
    max-width: 26% ;
}
.cols-4 .mega-col:nth-child(4) {
    flex: 0 0 20% ;
    max-width: 20% ;
}
.cols-5 .mega-col:nth-child(1) {
    flex: 0 0 22%;
    max-width: 22%;
}
.cols-5 .mega-col:nth-child(2) {
    flex: 0 0 40%;
    max-width: 40%;
}
.cols-5 .mega-col:nth-child(3) {
    flex: 0 0 18%;
    max-width: 18%;
}
.cols-5 .mega-col:nth-child(4) {
    flex: 0 0 20%;
    max-width: 20%;
}
.cols-6 .mega-col:nth-child(1) {
    flex: 0 0 50%;
    max-width: 50%;
}
/* 第2列：20% */
.cols-6 .mega-col:nth-child(2) {
    flex: 0 0 25%;
    max-width: 25%;
}
/* 第3列：30% */
.cols-6 .mega-col:nth-child(3) {
    flex: 0 0 25%;
    max-width: 25%;
}
.cols-3 .mega-col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
}
.cols-2 .mega-col {
    flex: 0 0 50%;
    max-width: 50%;
}
.cols-1 .mega-col {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ========== 列通用样式 ========== */
.mega-col {
    padding: 0 26px;
    box-sizing: border-box;
    position: relative;
}
.mega-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: var(--yn-purple-border);
}

/* ========== 列标题通用 ========== */
.col-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: baseline;
}
.col-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background-color: var(--yn-purple-main);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}
.col-title {
    color: var(--yn-purple-deep);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0;
    line-height: 1.3;
}
.col-type-2 .col-title {
    white-space: normal !important;
}

/* ========== num=8 专属样式 ========== */
.menu-layout-8 .mega-menu-inner {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: 0;
}
.menu-layout-8 .guide-sidebar-col {
    flex: 0 0 22%;
    max-width: 22%;
    padding-right: 26px;
    box-sizing: border-box;
    position: relative;
}
.menu-layout-8 .guide-sidebar-col::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: var(--yn-purple-border);
}
.menu-layout-8 .guide-content-col {
    flex: 1;
    padding-left: 26px;
    box-sizing: border-box;
}
.menu-layout-8 .guide-anchor-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
}
.menu-layout-8 .guide-anchor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--yn-text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all .2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.menu-layout-8 .guide-anchor::after {
    content: '›';
    font-size: 18px;
    color: var(--yn-purple-main);
    transition: transform .2s ease;
}
.menu-layout-8 .guide-anchor.active {
    background-color: var(--yn-purple-light);
    color: var(--yn-purple-deep);
    border-color: var(--yn-purple-border);
}
.menu-layout-8 .guide-anchor:hover {
    background: rgba(156,90,167,0.1);
    color: var(--yn-purple-main);
}
.menu-layout-8 .guide-anchor.active::after {
    transform: translateX(2px);
}
.menu-layout-8 .guide-panel-wrap {
    width: 100%;
    min-height: 320px;
    position: relative;
}
.menu-layout-8 .guide-panel {
    display: none;
    width: 100%;
    animation: guidePanelFadeIn .25s ease;
}
.menu-layout-8 .guide-panel.active {
    display: block;
}
@keyframes guidePanelFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.menu-layout-8 .guide-panel .mega-cols {
    display: flex;
    width: 100%;
    gap: 0;
    align-items: stretch;
}
.menu-layout-8 .guide-panel .mega-col {
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}
.menu-layout-8 .guide-panel .mega-col:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 1px;
    background-color: var(--yn-purple-border);
}
.menu-layout-8 .guide-panel .text-list {
    gap: 14px;
    margin-bottom: 0;
}
.menu-layout-8 .guide-panel .text-link {
    font-size: 14px;
    line-height: 1.4;
}
.menu-layout-8 .guide-panel .card-grids.grid-5 {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 0;
}
.menu-layout-8 .guide-panel .card-square .tour-card {
    gap: 8px;
}
.menu-layout-8 .guide-panel .card-square .tour-card-img {
    width: 100%;
    max-width: none;
    height: 80px !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.menu-layout-8 .guide-panel .card-square .tour-card-name {
    font-size: 12px;
    min-height: auto;
    line-height: 1.3;
}

/* ========== 文字列表通用 ========== */
.text-list {
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.text-link {
    color: var(--yn-text-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: all .2s ease;
    display: block;
}
.text-link:hover {
    color: var(--yn-purple-main);
    padding-left: 3px;
}

/* ========== 月份双栏 ========== */
.month-cols {
    display: flex;
    gap: 24px;
}
.month-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ========== 图文卡片基础 ========== */
.card-grids {
    display: grid;
    gap: 18px;
    margin-bottom: 0;
}
.card-grids.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}
.tour-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform .3s ease;
    justify-content: flex-start;
}
.tour-card:hover {
    transform: translateY(-2px);
}
.tour-card-img {
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--yn-purple-light);
    box-sizing: border-box;
}
.tour-card-name {
    color: var(--yn-text-dark);
    font-size: 13px;
    text-align: center;
    line-height: 1.4;
    min-height: 36px;
    display: flex;
}
.tour-card:hover .tour-card-name {
    color: var(--yn-purple-main);
}

/* ========== 单列下拉 ========== */
.single-dropdown {
    min-width: 220px;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}
.single-dropdown .dropdown-item {
    padding: 10px 24px;
    color: var(--yn-text-dark);
    font-size: 14px;
    transition: all .2s ease;
    display: block;
    text-decoration: none;
}
.single-dropdown .dropdown-item:hover {
    background-color: var(--yn-purple-light);
    color: var(--yn-purple-deep);
}

/* ========== 城市分组 ========== */
.city-group {
    margin-bottom: 24px;
}
.city-group-title {
    font-size: 15px;
    color: var(--yn-purple-deep);
    font-weight: 500;
    margin: 0 0 6px 0;
}
.city-group-sub {
    font-size: 13px;
    color: var(--yn-text-dark);
    line-height: 1.5;
    margin: 0;
}

/* ========== num6 三栏卡片区分 ========== */
.card-normal .tour-card {
    height: var(--card-total-height);
}
.card-normal .tour-card-img {
    height: var(--card-img-height);
}
.card-square .tour-card {
    height: auto;
    gap: 6px;
}
.card-square .tour-card-img {
    max-width: 120px;
    height: 100px !important;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.card-square.grid-2 {
    gap: 8px;
    margin-bottom: 10px;
}

/* ========== num7 四栏图文并排 ========== */
.cols-4 .col-type-1 .col-content {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 20px;
}
.cols-4 .col-type-1 .card-grids.grid-2 {
    flex-shrink: 0 !important;
    width: fit-content;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0 !important;
}
.cols-4 .col-type-1 .card-normal .tour-card {
    width: 120px;
    height: var(--card-total-height);
}
.cols-4 .col-type-1 .card-normal .tour-card-img {
    width: 100%;
    height: var(--card-img-height);
    object-fit: cover;
}
.cols-4 .col-type-1 .text-list {
    flex: 1;
}
.cols-4 .card-grids.grid-2 {
    gap: 14px;
}
.col-content-4col {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 30px !important;
}
.col-content-4col .card-grids.grid-2 {
    flex-shrink: 0 !important;
    width: fit-content;
    gap: 8px !important;
    margin-bottom: 0;
}
.col-content-4col .card-normal .tour-card {
    width: 110px;
    height: var(--card-total-height);
}
.col-content-4col .card-normal .tour-card-img {
    width: 100%;
    height: var(--card-img-height);
    object-fit: cover;
}
.col-content-4col .text-list {
    flex: 1;
    gap: 18px !important;
}

/* ========== num=9 About Us 卡片菜单 ========== */
.menu-layout-9 .about-card-grid {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: stretch;
}
.menu-layout-9 .about-card-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.menu-layout-9 .about-card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 0 2px;
    height: 36px;
    flex-shrink: 0;
}
.menu-layout-9 .about-card-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background-color: var(--yn-purple-main);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
    line-height: 1;
}
.menu-layout-9 .about-card-col-title {
    color: var(--yn-purple-deep);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.menu-layout-9 .about-card {
    position: relative;
    display: block;
    width: 100%;
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--yn-purple-light);
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
    aspect-ratio: 1/2;
}
.menu-layout-9 .about-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(156, 90, 167, 0.25);
}
.menu-layout-9 .about-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.menu-layout-9 .about-card-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 12px 12px;
    background: linear-gradient(to top, rgba(74, 30, 85, 0.88), transparent);
    color: #fff;
}
.menu-layout-9 .about-card-name {
    font-size: 13px;
    line-height: 1.4;
    text-transform: lowercase;
}

/* ========== 1366px 大屏适配 ========== */
@media (max-width: 1366px) {
    .yn-dropdown-menu {
        width: 94% !important;
    }
}

/* ========== 991px 以下 移动端 ========== */
@media (max-width: 991px) {
    /* 重置多列宽度，确保移动端正常显示 */
    .cols-4 .mega-col:nth-child(1),
    .cols-4 .mega-col:nth-child(2),
    .cols-4 .mega-col:nth-child(3),
    .cols-4 .mega-col:nth-child(4),
    .cols-5 .mega-col:nth-child(1),
    .cols-5 .mega-col:nth-child(2),
    .cols-5 .mega-col:nth-child(3),
    .cols-5 .mega-col:nth-child(4),
    .cols-6 .mega-col:nth-child(1),
    .cols-6 .mega-col:nth-child(2),
    .cols-6 .mega-col:nth-child(3),
    .cols-3 .mega-col,
    .cols-2 .mega-col,
    .cols-1 .mega-col {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
    .header .navbar .navbar-nav .nav-item .nav-link:hover{
        color: #9c5aa7;
    }
    /* 侧边抽屉 */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 95%;
        max-width: 520px;
        background: var(--yn-menu-bg);
        box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
        z-index: 1060;
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        transform: translateX(-100%);
        transition: transform .3s ease;
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
        box-sizing: border-box;
        overscroll-behavior: contain;
        scrollbar-width: thin;
    }
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    .col-content-4col .text-list{
        gap: 1px !important;
    }
    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: rgba(156, 90, 167, 0.3);
        border-radius: 3px;
    }
    .navbar-collapse.show {
        transform: translateX(0);
    }
    .header .navbar-collapse{
        max-height: 100vh;
        min-height: 100vh;
    }
    .card-normal .tour-card{
        height:20px
    }
        /* 顶部返回按钮 */
    #yn-menu-back-btn {
        position: sticky;
        top: 0;
        z-index: 10;
        background: var(--yn-menu-bg);
        padding: 18px 28px;
        margin: 0;
        text-align: left;
        font-size: 17px;
        font-weight: 500;
        color: var(--yn-purple-deep);
        border-bottom: 1px solid var(--yn-purple-border);
        cursor: pointer;
    }
    #yn-menu-back-btn::before {
        content: "";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px;
        height: 64px;
        margin-right: 10px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 128 128'%3E%3Cpath fill='%239f5890' d='M52.52 92.09h-6.43c-.26 0-.49.16-.57.4L35.17 120l.07.57c.11.17.30.27.51.27h6.77c.27 0 .5-.17.59-.43l1.57-4.72h9.25l1.57 4.72c.08.25.32.43.58.43h6.78c.20 0 .39-.10.50-.27l.07-.57L53.1 92.49c-.10-.24-.32-.40-.58-.40m-5.90 17.75l2.69-8.09l2.68 8.09zm-16.07-3.89c1.57-1.49 2.55-3.49 2.55-5.70c0-4.57-4.14-8.29-9.21-8.29H13.47c-.34 0-.62.27-.62.62v27.78c0 .34.28.62.62.62H25.20c5.08 0 9.21-3.72 9.21-8.30c0-2.78-1.53-5.22-3.86-6.73m-7.08-2.58h-3.85l-.13-4.88l-.02-.84h.02l.62-.03l3.35-.12c1.55 0 2.80 1.31 2.80 2.93c.01 1.63-1.25 2.94-2.79 2.94m.22 12.24h-4.05v-.01l-.15-6.63l.62-.02l3.22-.11l.36-.01c.04 0 .08.01.11.01c1.66.07 3.00 1.55 3.00 3.38c0 1.83-1.33 3.32-3.00 3.39c-.03-.01-.06 0-.11 0m61.82-4.55l-.27.06c-1.74 1.38-4.73 2.42-6.96 2.42c-4.30 0-7.30-2.91-7.30-7.07c0-4.17 3.00-7.08 7.30-7.08c2.33 0 4.72.75 6.23 1.95l.27.07l.22-.16l3.45-6.28l-.08-.42c-2.62-2.06-5.92-3.07-10.12-3.07c-8.94 0-15.43 6.30-15.43 14.99c0 8.68 6.49 14.98 15.43 14.98c4.09 0 7.63-1.25 10.50-3.70l.08-.40l-3.10-6.12zm20.29-5.81l8.18-12.33a.62.62 0 0 0 .03-.63a.622.622 0 0 0-.55-.32h-6.72c-.21 0-.40.10-.52.27l-7.42 11.19V92.57c0-.34-.28-.62-.62-.62h-6.03c-.34 0-.61.27-.61.62v27.78c0 .34.28.62.61.62h6.03c.34 0 .62-.28.62-.62v-13.21l8.48 13.55c.12.18.31.29.52.29h6.73c.23 0 .43-.12.53-.32a.6.6 0 0 0-.01-.62z'%3E%3C/path%3E%3Cpath fill='%23461a3e' d='m14.78 47.94l47.61-34.90v21.77h50.83v26.04H62.39v22z'%3E%3C/path%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-size: contain;
    }
    #yn-menu-back-btn {
        display: inline-flex;
        align-items: center;
        font-size: 17px;
        font-weight: 500;
        color: var(--yn-purple-deep);
    }

    /* 一级菜单列表 */
    .yn-main-nav {
        flex-direction: column !important;
        width: 100% !important;
        padding: 0;
        position: static;
    }

    /* 一级菜单项 */
    .yn-nav-item {
        width: 100%;
        border-bottom: 1px solid var(--yn-purple-border);
        position: relative;
    }

    /* 一级菜单链接 */
    .yn-nav-item .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 16px 28px !important;
        font-size: 18px;
        color: var(--yn-text-dark);
        background: transparent;
        box-sizing: border-box;
    }
    .yn-nav-item.active .nav-link,
    .yn-nav-item:hover .nav-link {
        background: rgba(156, 90, 167, 0.08);
    }

    /* 下拉箭头 */
    .dropdown-toggle::after {
        border: solid var(--yn-purple-main);
        border-width: 0 2px 2px 0;
        padding: 4px;
        transform: rotate(45deg);
        transition: transform .25s ease;
        margin-left: 12px;
        border-top-color: transparent;
    }
    .yn-nav-item.active .dropdown-toggle::after {
        transform: rotate(-135deg);
    }

    /* 下拉菜单：手风琴展开 */
    .yn-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        padding: 16px 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        background: transparent;
        backdrop-filter: none;
        max-height: none;
        overflow: visible;
    }
    .yn-nav-item.active .yn-dropdown-menu {
        display: block !important;
    }
    .yn-nav-item.has-mega-menu:hover .yn-dropdown-menu {
        opacity: 1;
        visibility: visible;
    }
    .card-grids.grid-2 {
        grid-template-columns: repeat(1, 1fr);
    }
    .cols-4 .mega-col:nth-child(2){
        display: none;
    }
    .cols-5 .mega-col:nth-child(2){
        display: none;
    }
    .cols-5 .mega-col:nth-child(4){
        display: none;
    }
    .cols-3 .mega-col:nth-child(2){
        display: none;
    }
    /* 下拉内容内边距 */
    .mega-menu-inner {
        padding: 0 28px;
    }

    /* 多列统一单列纵向 */
    .mega-cols {
        flex-direction: column;
        gap: 20px;
    }

    /* 列样式 */
    .mega-col {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0 20px 0 !important;
        border-bottom: 1px solid var(--yn-purple-border);
        box-sizing: border-box;
    }
    .mega-col:last-child {
        border-bottom: none;
        padding-bottom: 0 !important;
    }
    .mega-col:not(:last-child)::after {
        display: none;
    }

    /* 列标题 */
    .col-header {
        margin-bottom: 16px;
    }
    .col-title {
        font-size: 15px;
    }

    /* 文字列表 */
    .text-list {
        gap: 0;
    }
    .text-link {
        font-size: 16px;
        padding: 8px 0;
        border-bottom: 1px solid transparent;
    }
    .text-link:hover {
        padding-left: 4px;
    }

    /* 图文卡片 */
    .card-grids {
        grid-template-columns: 1fr ;
        gap: 20px;
    }
    .tour-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        height: auto;
        width: 100%;
    }
    .tour-card-img {
        width: 100%;
        max-width: 100%;
        height: 180px !important;
        border-radius: 6px;
    }
    .tour-card-name {
        min-height: auto;
        margin-top: 10px;
        font-size: 15px;
        text-align: left;
        justify-content: flex-start;
    }

    /* num=7 图文统一上下结构 */
    .cols-4 .col-type-1 .col-content,
    .col-content-4col {
        flex-direction: column !important;
        gap: 16px !important;
        align-items: flex-start;
    }
    .cols-4 .col-type-1 .card-grids.grid-2,
    .col-content-4col .card-grids.grid-2 {
        width: 100%;
        gap: 16px;
    }
    .cols-4 .col-type-1 .card-normal .tour-card,
    .col-content-4col .card-normal .tour-card {
        width: 100%;
        height: auto;
    }

    /* num=8 移动端适配 */
    .menu-layout-8 .mega-menu-inner {
        flex-direction: column;
        gap: 0;
    }
    .menu-layout-8 .guide-sidebar-col {
        max-width: 100%;
        padding: 0 0 20px 0;
    }
    .menu-layout-8 .guide-sidebar-col::after {
        width: 100%;
        height: 1px;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
    }
    .menu-layout-8 .guide-anchor-list {
        flex-direction: column;
        gap: 10px;
    }
    .menu-layout-8 .guide-anchor {
        width: 100%;
        padding: 12px 16px;
        font-size: 15px;
        box-sizing: border-box;
    }
    .menu-layout-8 .guide-content-col {
        padding: 20px 0 0 0;
    }
    .menu-layout-8 .guide-panel-wrap {
        min-height: auto;
    }
    .menu-layout-8 .guide-panel .mega-cols {
        flex-direction: column;
        gap: 20px;
    }
    .menu-layout-8 .guide-panel .mega-col {
        padding: 0 0 20px 0;
        border-bottom: 1px solid var(--yn-purple-border);
    }
    .menu-layout-8 .guide-panel .mega-col:last-child {
        border-bottom: none;
    }
    .menu-layout-8 .guide-panel .mega-col:not(:last-child)::after {
        display: none;
    }
    .menu-layout-8 .guide-panel .card-grids.grid-5 {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }
    .menu-layout-8 .guide-panel .card-square .tour-card-img {
        height: 110px !important;
    }

    /* num=9 移动端适配 */
    .menu-layout-9 .about-card-grid {
        flex-wrap: wrap;
        gap: 20px;
    }
    .menu-layout-9 .about-card-wrap {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
    .menu-layout-9 .about-card-header {
        height: auto;
        min-height: 36px;
    }

    /* 城市分组 */
    .city-group {
        margin-bottom: 20px;
    }

    /* 月份双栏改单栏 */
    .month-cols {
        flex-direction: column;
        gap: 0;
    }

    /* 正方形卡片适配 */
    .card-square .tour-card-img {
        max-width: 100%;
        height: 160px !important;
        aspect-ratio: 1 / 1;
    }
}

/* ========== 576px 小屏手机适配 ========== */
@media (max-width: 576px) {
    .navbar-collapse {
        width: 95%;
        max-width: 100%;
    }
    .yn-nav-item .nav-link {
        padding: 14px 20px !important;
        font-size: 17px;
    }
    .mega-menu-inner {
        padding: 0 20px;
    }
    #yn-menu-back-btn {
        padding: 16px 20px;
        font-size: 16px;
    }

    /* 图片高度微调 */
    .tour-card-img {
        height: 160px !important;
        display: none;
    }

    /* num=8 小屏保持2列 */
    .menu-layout-8 .guide-panel .card-grids.grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    .menu-layout-8 .guide-panel .card-square .tour-card-img {
        height: 100px !important;
    }

    /* 正方形卡片适配 */
    .card-square .tour-card-img {
        height: 140px !important;
    }
}
