@charset "UTF-8";
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
    margin-top: 20px;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 18px;
    background-color: #f77f18;
}

.more-link {
    font-size: 14px;
    color: #666;
    float: right;
}
/* 修改后的轮播图样式 */
.banner-carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slides {
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: white;
}
/* Footer styles */
footer {
    text-align: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #1e40af;
    color: #fff;
}

footer p {
    margin: 0;
}

/* QR code styles */
.qr-code {
    position: fixed;
    left: 20px;
    bottom: 10px;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
}

.qr-code img {
    width: 100px;
    height: 100px;
    display: block;
    margin: 0 auto;
}

.qr-code p {
    margin: 5px 0 0;
    font-size: 0.9em;
    color: #333;
}

/* Mobile styles */
@media (max-width: 768px) {
    /* Header */
    .menu-toggle {
        display: block;
    }

    .login-btn {
        margin-right: 15px;
    }

    /* Hamburger menu animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Navigation */
    .nav {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;
        background-color: #f77f18;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 60px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav li {
        width: 100%;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Dropdown behavior on mobile */
    .sub-menu {
        position: static;
        width: 100%;
        opacity: 0;
        visibility: hidden;
        height: 0;
        transform: none;
        box-shadow: none;
        background-color: #e67315;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .nav li.active .sub-menu {
        opacity: 1;
        visibility: visible;
        height: auto;
        padding: 5px 0;
    }

    .sub-menu li {
        padding: 0;
        border-bottom: none;
    }

    .sub-menu li a {
        padding: 10px 20px 10px 30px;
    }

    /* Carousel */
    .banner-carousel {
        height: 250px;
    }

    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }



    /* Body lock when menu is open */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .banner-carousel {
        height: 200px;
    }

    .carousel-button {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .carousel-button.prev {
        left: 10px;
    }

    .carousel-button.next {
        right: 10px;
    }

    .carousel-dots {
        bottom: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
        margin: 0 3px;
    }
}
/* Legal documents section */
/* 政策文件部分 */
.document-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-card {
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 15px;
    width: 100%;
}

.doc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.doc-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 5px;
}

.doc-content {
    flex: 1;
}

.doc-content h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.doc-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 隐藏滚动条 */
.document-grid::-webkit-scrollbar {
    display: none;
}

.document-grid {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Document section layout */
.document-section {
    display: flex;
}

.document-main {
    flex: 2;
    padding-right: 20px;
}

.document-list {
    flex: 1;
}

/* Dynamic info section */
.dynamic-info {
    padding: 30px 0;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.info-item:hover {
    background-color: #f5f5f5;
}

.info-icon {
    width: 24px;
    height: 24px;
    background-color: #f77f18;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-title {
    flex-grow: 1;
}

.info-date {
    color: #666;
    font-size: 14px;
}

/* News item styles */
.news-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.news-item:hover {
    background-color: #f5f5f5;
}

.news-icon {
    width: 30px;
    height: 30px;
    background-color: #1e40af;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.news-date {
    font-size: 12px;
    color: #999;
}

/* Expert section */
.experts {
    padding: 30px 0;
    background-color: #f9f9f9;
}

.expert-carousel {
    position: relative;
    overflow: hidden;
}

.expert-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.expert-card {
    flex: 0 0 calc(100% / var(--cards-per-view, 1));
    padding: 0 10px;
    transition: all 0.3s ease;
}

.expert-image-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.expert-image {
    width: 100%;
    height: 300px;    /* 是否会有适配出现差异，图片的等比放大，移动设备？ */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.expert-image-container:hover .expert-image {
    transform: scale(1.1);
}

.expert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expert-image-container:hover .expert-overlay {
    opacity: 1;
}

.expert-info {
    color: white;
    text-align: center;
}

.expert-name {
    font-weight: bold;
    margin-bottom: 5px;
}

.expert-title {
    font-size: 14px;
}

.expert-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.expert-arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.expert-arrow-left {
    left: 10px;
}

.expert-arrow-right {
    right: 10px;
}

.expert-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Expert card with name bar */
.expert-item {
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.expert-item .expert-image-container {
    margin-bottom: 0;
}

.expert-item .expert-name-bar {
    background-color: #f77f18;
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
}

/* 指示器样式 */
.carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #f77f18;
    width: 20px;
    border-radius: 4px;
}

/* 移动端适配 */
@media (max-width: 1200px) {
    :root {
        --cards-per-view: 4;
    }
}

@media (max-width: 992px) {
    :root {
        --cards-per-view: 3;
    }

    .expert-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --cards-per-view: 2;
    }

    .expert-image {
        height: 400px;
    }

    .expert-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 576px) {
    :root {
        --cards-per-view: 1;
    }

    .expert-image {
        height: 400px;
    }

    .section-title {
        font-size: 20px;
    }

    .expert-arrow {
        width: 32px;
        height: 32px;
    }
}

/* 触摸滑动支持 */
.expert-carousel {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
/* 视频相关的CSS样式 */
/* Video Section */
/* 视频相关的CSS样式 */
.videos {
    padding: 30px 0;
}

.video-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.video-card {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 视频缩略图容器 */
.video-thumbnail-container {
    position: relative;
    width: 100%;
    height: 168px; /* 固定高度确保一致性 */
    overflow: hidden;
    background-color: #000;
}

/* 视频封面图片样式 */


/* 视频元素样式 - 隐藏但准备好播放 */
.video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
}

.video-card.playing .video-thumbnail-img {
    opacity: 0;
}

.video-card.playing .video-element {
    opacity: 1;
}

/* 视频播放按钮样式 */
.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.video-play-button:before {
    content: "";
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-left: 20px solid white;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.video-card:hover .video-play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

/* 视频标签样式 */
.video-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f44336;
    color: #fff;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 2;
}

/* 视频详细信息样式 */
.video-details {
    padding: 10px;
    background-color: #fff;
}

.video-details .title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.video-details .meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* 视频模态窗口样式 */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    width: 80%;
    max-width: 900px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.video-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.video-modal-body {
    padding: 0;
}

.video-modal-body video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
}

/* Magnifying glass cursor */
.zoom-effect {
    cursor: zoom-in;
}