body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
.header-image {
           width: 100%; 
           height: 150px;
            background-image: url('../../img/top.jpg'); 
            background-size: cover; 
            background-position: center; 
                       background-repeat: no-repeat; 
}
.nav-container {
    position: relative;
    background: #bd1a2d;
    z-index: 2;
}
.nav-menu {
    list-style: none;
    padding: 0 0 0 60px;
    margin: 0 auto;
    display: flex;
    width: 1200px;
    justify-content: flex-start;
}
.nav-item {
    position: relative;
    padding: 15px 0;
    margin-right: 40px;
    color: white;
    cursor: pointer;
}


.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    width: 1200px; 
   
    transform: translateX(-50%); 
    white-space: nowrap;
    color: #000;
    list-style: none;
    z-index: 3; 
}

.nav-item:hover .sub-menu {
    display: flex;
    flex-direction: row;
    justify-content: center; 
}






.mobile-menu {
    display: none;
}
.banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.banner img {
    width: 100%;
    display: none;
}
.banner img.active {
    display: block;
}
.banner-buttons {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}
.banner-button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFF;
    margin: 0 5px;
    cursor: pointer;
}
.banner-button.active {
    background: #000;
}
.announcement {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}
.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #bd1a2d;
    padding-bottom: 10px;
    margin-bottom: 15px;
}
.announcement-header h3 {
    color: #bd1a2d;
    font-size: 24px;
    margin: 0;
}
.announcement-header a {
    color: #bd1a2d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.announcement-header a:hover {
    color: #8a1322;
}
.announcement-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
}
.announcement-item {
    width: calc(50% - 8px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff6e2;
    border-radius: 6px;
    box-sizing: border-box;
}
.wedding-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.wedding-category {
    position: relative;
    width: calc(33% - 10px);
    margin-bottom: 15px;
    background: #f2f2f2;
    box-sizing: border-box;
}
.wedding-category img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}
.wedding-category .title {
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background: #fff;
}
.wedding-category .more-link {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #bd1a2d;
    text-decoration: none;
    font-weight: bold;
}
.wedding-category .text-list {
    padding: 10px;
}
.wedding-category .text-list .text-item {
    font-size: 14px;
    margin-bottom: 5px;
}
.custom-wedding {
    display: flex;
    margin-top: 20px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}
.custom-wedding .image {
    flex: 1;
    margin-right: 20px;
}
.custom-wedding img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.custom-wedding .list {
    flex: 1;
}
.custom-wedding .list .list-item {
    padding: 10px;
    cursor: pointer;
    transition: background 0.3s;
}
.custom-wedding .list .list-item:hover {
    background: #eaeaea;
}


.about-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    position: relative;
}
.about-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid #bd1a2d;
}
.tab {
    padding: 12px 30px;
    cursor: pointer;
    background: #fff6e2;
    border-radius: 6px 6px 0 0;
    transition: all 0.3s;
}
.tab:hover {
    background: #bd1a2d;
    color: white;
}
.content-list {
    display: none;
    position: absolute;
    width: 100%;
    background: #fff6e2;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tab:hover .content-list { display: block; }
.team-list { display: block; }
.list-item {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
    transition: transform 0.2s;
}
.list-item:hover {
    transform: translateX(10px);
}

.about-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
    gap: 20px;
}
.about-section {
    width: calc(50% - 10px);
    margin: 0;
}
.content-list {
    display: none;
    position: absolute;
    width: 100%;
}
.content-list.active {
    display: block;
    position: relative;
}

.about-tabs {
    justify-content: center;
}


@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        margin-top: 30px;
    }

    .news-container {
        padding: 10px;
    }

    .section-title[style*="margin-top"] {
        margin-top: 30px !important;
    }
    
    .news-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-title {
        margin-bottom: 5px;
    }

    .news-item.with-image {
        flex-direction: column;
    }

    .news-item.with-image img {
        width: 100%;
        height: 200px;
    }

    .category-header {
        padding: 10px 15px;
    }

    .category-header h2 {
        font-size: 18px;
    }

    .news-list {
        padding: 15px;
    }

    .breadcrumb {
        padding: 10px 15px;
        background: #f5f5f5;
        border-radius: 4px;
        margin-bottom: 15px;
    }

    .header-image {
               width: 100%; 
            height: 10vh; 
            background-image: url('../../img/top2.jpg'); 
            background-size: cover; 
            background-position: center; 
            background-repeat: no-repeat; 
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-left: 0;
    }
    .nav-item {
        width: 100%;
        padding: 10px;
        margin-right: 0;
        box-sizing: border-box;
    }
    .sub-menu {
        position: static;
        background: #555;
        display: none;
        padding-left: 20px;
    }
    .mobile-menu {
        display: block;
        padding: 15px;
        color: white;
        cursor: pointer;
    }
    .active .nav-menu {
        display: flex;
    }
    .banner {
        height: 150px;
    }
    .announcement {
        padding: 0 15px;
    }
    .announcement-item {
        width: 100%;
        padding: 10px 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    .announcement-header {
        padding: 0 10px 10px;
    }
    .announcement-header h3 {
        font-size: 20px;
    }
    .wedding-category {
        width: 100%;
    }
    .custom-wedding {
        flex-direction: column;
    }
    .custom-wedding .image,
    .custom-wedding .list {
        width: 100%;
        margin: 0;
    }

    .about-tabs {
        flex-direction: column;
    }
    .tab {
        width: 100%;
        text-align: center;
    }
    .content-list {
        position: static;
    }

    .team-list {
        display: none;
    }
    .content-list.active {
        display: block;
    }
    .list-item {
        padding: 10px;
        margin: 5px 0;
        background: white;
        border-radius: 4px;
        transition: transform 0.2s;
    }

    .about-section {
        width: 100%;
        padding: 0 10px;
    }
    .footer div {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer img {
        margin: 20px auto;
    }
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #bd1a2d;
}

.content-wrapper {
    display: flex;
    gap: 30px;
}

/* 左侧新闻列表样式 */
.news-list {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    min-width: 800px;
    max-width: 800px;
}

.section-title {
    border-bottom: 2px solid #bd1a2d;
    margin-bottom: 20px;
    position: relative;
}

.section-title h2 {
    color: #bd1a2d;
    font-size: 20px;
    margin: 0;
    padding-bottom: 10px;
    display: inline-block;
}

/* 添加分隔样式 */
.section-title[style*="margin-top"] {
    position: relative;
}

.section-title[style*="margin-top"]::before {
    content: '';
    display: block;
    height: 1px;
    background: #eee;
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
}

.news-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-item {
    border-bottom: 1px solid #eee;
}

.news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.news-link:hover {
    padding-left: 10px;
    background-color: #f9f9f9;
}

.news-title {
    flex: 1;
    margin-right: 20px;
}

.news-date {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

/* 右侧边栏样式 */
.sidebar {
    width: 300px;
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #bd1a2d;
    font-size: 18px;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #bd1a2d;
}

.image-box img, .video-box img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 10px;
}

.image-box p, .video-title {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

.video-slider {
    position: relative;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    box-sizing: border-box;
}

.slider-nav span {
    background: rgba(0,0,0,0.5);
    color: white;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
}

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

.theory-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.theory-list a {
    color: #333;
    text-decoration: none;
    display: block;
}

.theory-list a:hover {
    color: #bd1a2d;
}

@media (max-width: 768px) {
    .section-title[style*="margin-top"] {
        margin-top: 30px !important;
    }
    
    .news-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .news-title {
        margin-bottom: 5px;
    }
}

/* 新闻内容区域样式 */
.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.news-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-category {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #bd1a2d;
    color: white;
    width: 100%;
    box-sizing: border-box;
}

.category-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    max-width: 80%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.more-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    margin-left: 20px;
    flex-shrink: 0;
}

.news-list {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    min-width: 800px;
    max-width: 800px;
}

.news-item.with-image {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    min-width: 800px;
    max-width: 800px;
}

.news-item.with-image img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.news-content {
    flex: 1;
    min-width: 580px;
    max-width: 580px;
    width: calc(100% - 220px);
    box-sizing: border-box;
    overflow: hidden;
}

.news-content h3 {
    margin: 0 0 10px 0;
    width: 100%;
}

.news-content h3 a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.4;
    display: block;
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.news-content p {
    color: #666;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    min-width: 580px;
    max-width: 580px;
}

/* 响应式调整 - 保持手机端不变 */
@media (max-width: 768px) {
    .news-list {
        min-width: 100%;
        max-width: 100%;
        padding: 15px;
    }

    .news-item.with-image {
        min-width: 100%;
        max-width: 100%;
        flex-direction: column;
    }

    .news-item.with-image img {
        width: 100%;
        height: 200px;
    }

    .news-content {
        min-width: 100%;
        max-width: 100%;
        width: 100%;
    }

    .news-content p {
        min-width: 100%;
        max-width: 100%;
    }

    .news-category {
        width: 100%;
    }

    .category-header {
        padding: 10px 15px;
    }

    .category-header h2 {
        font-size: 18px;
        max-width: 70%;
    }

    .news-list {
        padding: 15px;
    }

    .news-item.with-image {
        flex-direction: column;
    }

    .news-item.with-image img {
        width: 100%;
        height: 200px;
    }

    .news-content {
        width: 100%;
    }
}

.featured-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    width: calc(33.33% - 14px);
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

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

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.card-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .featured-cards {
        flex-direction: column;
        gap: 15px;
    }

    .card {
        width: 100%;
    }

    .card img {
        height: 180px;
    }
}

.news-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}

.news-nav {
    margin-bottom: 20px;
    font-size: 14px;
}

.news-nav .nav-item {
    color: #999;
}

.news-nav .nav-separator {
    margin: 0 10px;
    color: #999;
}

.news-title {
    margin-bottom: 20px;
}

.news-title h1 {
    font-size: 24px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    font-weight: bold;
}

.news-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

.info-left span {
    margin-right: 20px;
}

.info-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.font-size {
    margin-right: 5px;
}

.font-large, .font-medium, .font-small {
    color: #666;
    text-decoration: none;
    padding: 0 5px;
}

.font-large:hover, .font-medium:hover, .font-small:hover {
    color: #bd1a2d;
}

.share {
    margin-left: 20px;
}

.share-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-left: 10px;
}

.share-icon img {
    width: 100%;
    height: 100%;
}

.news-content {
    line-height: 1.8;
    color: #333;
    font-size: 16px;
}

.news-content p {
    margin-bottom: 20px;
    text-align: justify;
}

@media (max-width: 768px) {
    .news-detail {
        padding: 15px;
    }

    .news-title h1 {
        font-size: 20px;
    }

    .news-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .info-right {
        width: 100%;
        justify-content: space-between;
    }

    .news-content {
        font-size: 15px;
    }
}