body{
    max-width: 100vw !important;
    overflow-x: hidden;
}
/* 主要内容区域 */
.main-content {
    min-height: 600px;
    background-color: #f8f9fa;
}

/* 面包屑导航 */
.breadcrumb-nav {
    padding: 10px 0;
    color: #666;
    font-size: 14px;
    cursor: pointer;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: #38a660;
    font-weight: 500;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #999;
}

/* 标签页内容 */
.tab-content {
 
    border-radius: 8px;
    overflow: hidden;
}

.tab-pane {
    padding: 0px 30px;
    display: none;
}

.tab-pane.active {
    display: block !important;
}

/* 专类园区样式 */
.build-content {
    padding: 0;
}

/* 园区导航按钮区域 */
.garden-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 20px;
}

.garden-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
}

.garden-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

.garden-btn:hover {
    background: #e8f5e8;
    border-color: #38a660;
    color: #38a660;
    transform: translateY(-1px);
}

.garden-btn.active {
    background: #38a660;
    border-color: #38a660;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(56, 166, 96, 0.3);
}

.garden-btn.active:hover {
    background: #2d8a4e;
    border-color: #2d8a4e;
}

/* 园区内容展示区域 */
.garden-content {
    padding: 2rem;
    background: #fff;
    margin-top: 1.5rem;
}


.garden-content p{
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    text-indent: 2em;
}
.garden-content img{
    display: block;
    width: 70%;
    max-width: 600px;
    height: auto;
    object-fit: fill;
    margin: 20px auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* 图片展示区域 */
.garden-images {
    margin-top: 30px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.garden-image {
    width: 100%;
    height: 200px;
    object-fit: fill;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.garden-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* 手机端导航样式 */
.mobile-nav {
    display: none;
}

.desktop-nav {
    display: flex;
}

.mobile-nav-container {
    position: relative;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;

}

.mobile-nav-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 15px;
    padding-right: 70px; /* 为更多按钮留出空间 */
    gap: 12px; /* 增加间距让滚动更清晰 */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    /* 确保可以滚动 */
    width: 100%;
    min-width: 0;
    /* 移除背景渐变，保持简洁 */
}

.mobile-nav-scroll::-webkit-scrollbar {
    display: none;
}



.mobile-garden-btn {
    flex-shrink: 0;
    min-width: 85px;
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #666;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    scroll-snap-align: start;
    position: relative;
    z-index: 2;
}

.mobile-garden-btn:hover {
    background: #e8f5e8;
    border-color: #38a660;
    color: #38a660;
    transform: translateY(-1px);
}

.mobile-garden-btn.active {
    background: #38a660;
    border-color: #38a660;
    color: white;

    font-weight: 600;
    box-shadow: 0 2px 8px rgba(56, 166, 96, 0.3);
}

.mobile-garden-btn.active:hover {
    background: #2d8a4e;
    border-color: #2d8a4e;
}

.more-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(to left, white 0%, white 70%, rgba(255,255,255,0.8) 100%);
    border: none;
    padding: 0 15px;
    font-size: 13px;
    z-index: 100;
    color: #38a660;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    transition: all 0.3s ease;
    box-shadow: -3px 0 8px rgba(0,0,0,0.08);
}

.more-btn:hover {
    color: #2d8a4e;
}

.more-btn:active {
    transform: scale(0.98);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-garden-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.modal-garden-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #666;
    padding: 12px 8px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    white-space: normal;
    word-break: break-all;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-garden-btn:hover {
    background: #e8f5e8;
    border-color: #38a660;
    color: #38a660;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 166, 96, 0.2);
}

.modal-garden-btn.active {
    background: #38a660;
    border-color: #38a660;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(56, 166, 96, 0.4);
}

.modal-garden-btn.active:hover {
    background: #2d8a4e;
    border-color: #2d8a4e;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-nav {
        display: block;
    }
    .garden-content{
       margin-top: 10px;
       padding: 1rem;
    }
    .garden-buttons {
        justify-content: center;
    }
    
    .garden-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-width: 80px;
        text-align: center;
    }
    
    /* garden-text 样式已删除 */
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .garden-image {
        height: 180px;
    }
    
    .tab-pane {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .garden-buttons {
        display: none;
    }
    .desktop-nav{
        display: none !important;
    }
    .mobile-nav{
        display: block;
    }
    
    .garden-btn {
        padding: 5px 10px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .mobile-garden-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 75px;
    }
    
    .mobile-nav-scroll {
        padding: 10px 12px;
        padding-right: 60px; /* 小屏幕上为更多按钮留出较小空间 */
        gap: 10px; /* 减少间距以适应小屏幕 */
    }
    
    .more-btn {
        font-size: 12px;
        min-width: 50px;
        padding: 0 12px;
        border-radius: 0 8px 8px 0;
    }
    
    .modal-overlay {
        padding: 10px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .modal-garden-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .modal-garden-btn {
        padding: 10px 6px;
        font-size: 12px;
        min-height: 40px;
    }
    

    
    /* garden-text 样式已删除 */
    
    .garden-image {
        height: 160px;
    }
    
    .tab-pane {
        padding: 0px 0px;
    }
    
    .garden-nav {
        margin-bottom: 5px !important;
        padding-bottom: 5px;
    }
}

/* garden-text 相关样式已删除 */

/* 特色花展样式 */
.flower-exhibition-content {
    padding: 0;
}

/* 第一部分：固定描述文字 */
.exhibition-description {
    padding:0px 30px;
    margin-bottom: 30px;
}

.exhibition-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    text-align: justify;
    text-indent: 2em;
    margin: 0;
    font-family: PingFangSC-regular;
}

/* 第二部分：花展导航区域 */
.flower-nav-section {
    
}

.flower-nav-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
    min-height: 200px;
    position: relative;
    overflow-x: auto;
    padding: 10px;

}

.flower-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    width: 140px;
    border-radius: 50px 50px 0 0;
    background: linear-gradient(180deg, rgba(239,239,239,1) 0%,rgba(219,253,231,1) 100%);
    filter: brightness(1.1);
}
.garden-content p {
    margin-bottom: 16px;
    font-size: 16px;
    text-align: justify;
    text-indent: 2em;
    font-family: PingFangSC-regular;
    line-height: 28px;
}
.flower-nav-item.odd-position {
    align-self: flex-start;
    margin-top: 0;
}

.flower-nav-item.even-position {
    align-self: flex-end;
    margin-top: 60px;
}

.flower-nav-item:hover {
    transform: translateY(-5px);
    
}

.flower-nav-item.active {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(180deg, rgba(239,239,239,1) 0%,rgba(219,253,231,1) 100%);
    filter: none;
}

.flower-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
  
  
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.flower-nav-item.active .flower-image {
   
}

.flower-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.flower-title {
    writing-mode: vertical-lr;
    text-orientation: upright;
    font-size: 16px;
    font-family: PingFangSC-bold;
    font-weight: 600;
    color: #333333;
    line-height: 1.2;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flower-nav-item.active .flower-title {
    color: #38a660;
    font-size: 16px;
}

.flower-nav-item:hover .flower-title {
    color: #38a660;
}

/* 第三部分：富文本内容展示 */
.flower-content-section {
    padding: 2rem;
    background: #fff;
    margin-top: 1.5rem;
    min-height: 50vh;
}
.flower-content-section img{
    display: block;
    width: 70%;
    max-width: 600px;
    height: auto;
    object-fit: fill;
    margin: 20px auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* flower-content-text 相关样式已删除 */

/* 花展响应式设计 */
@media (max-width: 1200px) {
    .flower-nav-container {
        gap: 15px;
    }
    
    .flower-nav-item {
        width: 120px;
    }
    
    .flower-image {
        width: 80px;
        height: 80px;
    }
}
@media (min-width: 768px) {
    .mobile-nav{
        display: none !important;
    }
}
@media (max-width: 768px) {
    .flower-nav-container {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        min-height: auto;
        overflow-x: auto;
        padding-left: 105px;
    }
    
    .flower-nav-item.odd-position,
    .flower-nav-item.even-position {
        align-self: center;
        margin-top: 0;
    }
    
    .flower-title {
        writing-mode: horizontal-tb;
        text-orientation: mixed;
        height: auto;
        text-align: center;
    }
    
    .exhibition-description,
    .flower-nav-section {
        padding: 0px;
    }
    
    .flower-content-section {
        padding: 20px 10px;
    }
    
    .garden-content img,
    .flower-content-section img {
        width: 90%;
        max-width: 100%;
        margin: 15px auto;
    }
    
    /* flower-content-text 样式已删除 */
}

@media (max-width: 480px) {
    .flower-nav-item {
        width: 100px;
    }
    
    .flower-image {
        width: 60px;
        height: 60px;
    }
    
    .flower-title {
        font-size: 16px;
        height: 50px;
        font-weight: 500;
    }
    
    .flower-nav-item.active .flower-title {
        font-size: 16px;
    }
    
    .garden-content img,
    .flower-content-section img {
        width: 95%;
        max-width: 100%;
        margin: 10px auto;
    }
}
