/* Dropdown (desktop hover + Bootstrap-compatible) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.bgcolor{
    background-color: #7f181d;
}
.tscolor{
    color: #7f181d;
}

/* 为页面主体添加顶部边距，避免被固定header遮挡 */
body {
    margin-top: 60px;
}

.social-icon {
    display: inline-block;
}
.qrcode-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    white-space: nowrap;
}
.qrcode-popup::after {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 10px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}
.social-icon:hover .qrcode-popup {
    display: block;
}
.search-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.search-popup.active {
    display: flex;
}
.search-popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 500px;
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.form-control{
    background-color: rgb(255 255 255 / 70%);
}
.form-control:focus{
    border-color: #7f181d;
    background-color: rgb(255 255 255 / 70%);
    box-shadow: 0 0 0 .25rem #7f181d;
}
/* News card styles */
.news-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card img {
    height: 160px;
    object-fit: cover;
    width: 100%;
}

.img-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 60px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ccc"><path d="M3 3h18v18H3V3zm16 16H5V5h14v14zm-4-4c0-1.1-.9-2-2-2s-2 .9-2 2 .9 2 2 2 2-.9 2-2zm-7-5h10v2H8z"/></svg>') no-repeat center;
    background-size: contain;
    transform: translate(-50%, -70%);
}

.img-placeholder::after {
    content: '暂无图片';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20%);
    color: #999;
    font-size: 14px;
}

.news-card h6 {
    margin: 0;
    padding: 10px;
    color: #333;
    line-height: 1.4;
    height: 58px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.news-card a:hover h6 {
    color: #818181;
}

/* 固定header到顶部 */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

/* 重构导航模块样式 */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    top: 0;
    z-index: 1000;
}

.navbar .nav-item {
    position: relative;
    flex: 1;
    text-align: center;
    margin: 0 5px;
}

.navbar .nav-link {
    font-size: 1rem;
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    transition: color 0.2s ease;
    display: inline-block;
    width: 100%;
}

.navbar .nav-link:hover {
    color: #7f181d;
}

/* 导航容器样式 */
.navbar .navbar-collapse {
    width: 100%;
}

.navbar .navbar-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar .navbar-nav .active .nav-link {
    color: #7f181d;
    border-top: 3px solid #7f181d;
}

/* 下拉菜单样式 - 其他导航项 */
.navbar .dropdown-menu:not(.park-full-width-dropdown) {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 150px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    display: none;
    text-align: center;
    border: none;
    border-radius: 0;
    margin: 0;
}

/* 其他下拉栏文字居中 */
.navbar .dropdown-menu:not(.park-full-width-dropdown) .dropdown-item {
    text-align: center;
    padding: 8px 20px;
    color: #555;
    font-size: 14px;
}

.navbar .dropdown-menu:not(.park-full-width-dropdown) .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #7f181d;
}

.navbar .nav-item:hover .dropdown-menu {
    display: block;
}

/* 树莓园区特殊样式 - 完全匹配map.html */
.park-full-width-dropdown {
    /* 应用map.html样式 */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    background-color: white !important;
    color: #333 !important;
    padding: 20px !important;
    z-index: 1000 !important;
    display: none !important;
    box-shadow: none !important;
    text-align: left !important;
    opacity: 1 !important;
    min-width: max-content !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

/* 仅在hover时显示 */
.navbar .nav-item:hover .park-full-width-dropdown {
    display: block !important;
}

/* 树莓园区容器网格布局 */
.park-full-width-dropdown .container-fluid {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    align-items: start !important;
    background-color: white !important;
}

.park-full-width-dropdown .row {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: transparent !important;
}

.park-full-width-dropdown .col-12 {
    width: 100% !important;
    padding: 0 !important;
    flex: none !important;
    max-width: none !important;
    background-color: transparent !important;
}

.park-full-width-dropdown .d-flex,
.park-full-width-dropdown .flex-wrap,
.park-full-width-dropdown .justify-content-center,
.park-full-width-dropdown .gap-4 {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto !important;
    flex: none !important;
    max-width: none !important;
    justify-content: normal !important;
    gap: normal !important;
    background-color: transparent !important;
}

/* 确保城市列表的div元素正确显示 */
.park-full-width-dropdown div {
    background-color: transparent !important;
}

/* 确保ul元素正确显示 */
.park-full-width-dropdown ul {
    background-color: transparent !important;
}

/* 确保li元素正确显示 */
.park-full-width-dropdown li {
    background-color: transparent !important;
}

/* 城市标题样式 */
.park-full-width-dropdown strong {
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    color: #333 !important;
    height: 20px !important;
    font-weight: bold !important;
}

/* 区域名称样式 */
.park-full-width-dropdown div ul > li:first-child {
    font-weight: bold !important;
    color: #555 !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
    height: 18px !important;
}

/* 产业园区样式 */
.park-full-width-dropdown div ul > li:not(:first-child) {
    padding: 3px 0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    color: #666 !important;
}

.park-full-width-dropdown div ul > li:not(:first-child):hover {
    color: #7f181d !important;
}

/* 没有城市标题的模块样式 */
.park-full-width-dropdown div:not(:has(strong)) ul > li:first-child {
    font-weight: bold !important;
    color: #555 !important;
    margin-bottom: 5px !important;
    font-size: 14px !important;
    height: 18px !important;
}

.park-full-width-dropdown div:not(:has(strong)) {
    margin-top: 30px !important;
}

/* 列表样式 */
.park-full-width-dropdown ul {
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 链接样式 */
.park-full-width-dropdown a {
    color: inherit !important;
    text-decoration: none !important;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .park-full-width-dropdown .container-fluid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .park-full-width-dropdown .container-fluid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile specific tweaks */
@media (max-width:767px) {
    .custom-footer {
        padding: 30px 0
    }

    .custom-footer .top-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        padding-bottom: 12px
    }

    .custom-footer .top-nav a {
        font-size: 14px
    }

    .custom-footer .footer-inner {
        gap: 18px
    }

    .custom-footer .col-left,
    .custom-footer .col-middle,
    .custom-footer .col-qr {
        min-width: auto
    }

    .custom-footer .col-left {
        order: 1
    }

    .custom-footer .col-middle {
        order: 2
    }

    .custom-footer .col-qr {
        order: 3;
        display: flex;
        gap: 18px;
        justify-content: center
    }

    .custom-footer .qr-box {
        width: 120px;
        height: 120px
    }

    .custom-footer h3.logo {
        font-size: 22px
    }

    .custom-footer .section-title {
        font-size: 16px
    }

    .custom-footer p,
    .custom-footer li {
        line-height: 22px;
        font-size: 14px
    }

    .custom-footer .bottom-bar {
        flex-direction: column;
        gap: 8px;
        text-align: center
    }
}

/* 树莓园区模块样式 */
.park-section {
    background: #e6e6e6;
    padding-top: 36px;
    padding-bottom: 36px
}

.park-header .park-sub {
    color: #8a8a8a;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.park-header .park-sub::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #000;
}

.park-header .park-title {
    font-size: 40px;
    margin: 0 0 6px 0;
    font-weight: 700
}

.park-more .btn-more {
    background: #bfbfbf;
    color: #222;
    padding: 10px 14px;
    border-radius: 4px;
    text-decoration: none
}

.park-banner {
    margin-top: 22px;
    padding: 30px 0
}

/* 使 banner 区块横跨整个视口宽度，防止因容器限制产生滚动 */
.park-banner {
    margin: auto;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.park-carousel {
    position: relative;
    display: flex;
    align-items: center
}

.park-arrow {
    background: transparent;
    border: 0;
    color: #333;
    font-size: 42px;
    width: 64px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer
}

.park-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px
}

.park-slide {
    position: relative
}

.park-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 2px
}

.park-main {
    width: 780px;
    max-width: 78%;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    overflow: hidden
}

.park-main img {
    width: 100%;
    height: 420px
}

.park-preview {
    width: 120px;
    opacity: 0.7
}

.park-preview.left {
    margin-right: 18px
}

.park-preview.right {
    margin-left: 18px
}

.park-preview img {
    height: 320px;
    width: 120px
}

.park-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.caption-title {
    font-weight: 600
}

.caption-addr {
    font-size: 14px;
    opacity: 0.95
}

@media (max-width:1200px) {
    .park-main img {
        height: 360px
    }

    .park-arrow {
        height: 200px
    }
}

@media (max-width:900px) {
    .park-header .park-title {
        font-size: 32px
    }

    .park-main img {
        height: 300px
    }

    .park-preview {
        display: none
    }

    .park-arrow {
        width: 48px
    }
}

@media (max-width:767px) {
    .park-section {
        padding-top: 20px;
        padding-bottom: 20px
    }

    .park-header {
        gap: 8px
    }

    .park-header .park-title {
        font-size: 22px
    }

    .park-banner {
        padding: 10px 0
    }

    .park-main {
        width: 100%
    }

    .park-main img {
        height: 220px
    }

    .park-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px
    }

    .park-arrow {
        display: none
    }

    .park-more {
        margin-top: 12px
    }
}

/* Dynamic previews layout for arbitrary number of images */
/* 使模块可横跨整个视口宽度（full-bleed） */
.park-stage {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    width: 100%
}

/* 左右为大幅半透预览，靠近主图呈现半遮挡效果 */
.park-left,
.park-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 220px;
    height: 420px;
    overflow: hidden
}

.park-left .thumb,
.park-right .thumb {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer
}

.park-left .thumb img,
.park-right .thumb img {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.26;
    filter: grayscale(100%);
    transition: opacity .35s ease, transform .45s ease
}

.park-left .thumb:hover img,
.park-right .thumb:hover img {
    opacity: 0.6;
    transform: scale(1.03)
}

.park-main-wrap {
    flex: 1;
    display: flex;
    justify-content: center
}

/* 主图扩展到视口宽度内 */
.park-main {
    width: 100%;
    max-width: 100%;
    height: 1000px;
    overflow: hidden;
    display: block;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    background: #eee
}

.park-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* 底部半透明说明栏 */
.park-caption {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
    color: #fff;
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px
}

.park-caption .caption-title {
    font-weight: 700;
    font-size: 16px
}

.park-caption .caption-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9)
}

.park-caption .caption-addr {
    font-size: 13px;
    opacity: 0.95
}

/* 滑动 track：两个并排图片，宽度 200%；JS 通过 translateX 切换 */
.park-main-track {
    width: 200%;
    height: 100%;
    display: flex;
    transform: translateX(0);
    transition: transform .45s ease
}

.park-main-track img.park-main-img {
    width: 50%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* 箭头样式：垂直居中，半透明图标 */
.park-prev,
.park-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    width: 64px;
    height: 64px;
    border-radius: 32px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.7);
    font-size: 36px;
    cursor: pointer
}

.park-prev {
    left: 6%
}

.park-next {
    right: 6%
}

@media (max-width:1200px) {
    .park-main {
        height: 360px
    }

    .park-left,
    .park-right {
        flex: 0 0 180px;
        height: 360px
    }

    .park-prev,
    .park-next {
        width: 56px;
        height: 56px;
        font-size: 32px
    }
}

@media (max-width:900px) {

    /* 移动端隐藏左右大预览，箭头改为小圆 */
    .park-left,
    .park-right {
        display: none
    }

    .park-main {
        height: 300px;
        width: 100%
    }

    .park-prev,
    .park-next {
        left: 8px;
        right: 8px;
        width: 44px;
        height: 44px;
        font-size: 22px
    }
}

@media (max-width:767px) {
    .park-stage {
        flex-direction: column;
        align-items: stretch
    }

    .park-main {
        height: 220px
    }

    .park-left,
    .park-right {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex: 0 0 auto;
        height: auto
    }

    .park-left .thumb,
    .park-right .thumb {
        width: 100px;
        height: 66px
    }
}

/* 重构下拉菜单样式 */
.park-full-width-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
}

.park-full-width-dropdown .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.park-full-width-dropdown .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.park-full-width-dropdown .col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.park-menu-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.park-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.park-menu-list li {
    margin-bottom: 8px;
}

.park-menu-list li a {
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.park-menu-list li a:hover {
    color: #7f181d;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .park-full-width-dropdown .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .park-full-width-dropdown .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}