/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    color: #333;
    line-height: 1.6;
    font-size: 14px;
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: #d9232e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #b91c25;
}

/* 头部样式 */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

.top-bar {
    background-color: #f5f5f5;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 20px;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links a {
    margin-left: 15px;
    color: #666;
}

.logo-bar {
    padding: 15px 0;
}

.logo-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 60px;
}

.logo-text h1 {
    font-size: 24px;
    color: #d9232e;
}

.logo-text p {
    color: #666;
    font-size: 12px;
}

.phone-number {
    text-align: right;
}

.phone-number .number {
    font-size: 26px;
    color: #d9232e;
    font-weight: bold;
}

.phone-number .desc {
    color: #666;
}

/* 导航栏样式 */
nav {
    background-color: #d9232e;
}

.nav-list {
    display: flex;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-list a:hover {
    background-color: #b91c25;
}

.nav-list .active a {
    background-color: #b91c25;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 200px;
    display: none;
}

.submenu a {
    color: #333;
    padding: 10px 15px;
}

.submenu a:hover {
    background-color: #f5f5f5;
    color: #d9232e;
}

.has-submenu:hover .submenu {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    height: 450px;
    overflow: hidden;
    max-width: 2500px; /* 最大宽度限制为1500px */
    margin-left: auto; /* 水平居中 */
    margin-right: auto;
}
.carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    position: relative;
}

.carousel-content {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.carousel.carousel-content h2 {
    font-size: 36px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-indicator.active {
    background-color: #fff;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-control:hover {
    background-color: rgba(0,0,0,0.5);
}

/* 服务板块样式 */
.services {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 30px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d9232e;
}

.section-title p {
    color: #666;

    margin: 0 auto;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.05);
}

.service-content {
    padding: 20px;
}

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

.service-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.service-more {
    color: #d9232e;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 律师团队样式 */
.lawyers {
    padding: 60px 0;
}

.lawyer-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.lawyer-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.lawyer-img {
    height: 300px;
    overflow: hidden;
}

.lawyer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lawyer-info {
    padding: 20px;
}

.lawyer-info h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.lawyer-position {
    color: #d9232e;
    margin-bottom: 10px;
    font-size: 14px;
}

.lawyer-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 15px 0;
    background-color: #f5f5f5;
    font-size: 12px;
}

.breadcrumb .container {
    gap: 5px;
}

.breadcrumb a {
    color: #666;
}

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

.breadcrumb span:last-child {
    color: #d9232e;
}

/* 新闻资讯样式 */
.news {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-left {
    flex: 1;
    min-width: 300px;
}

.news-item {
    display: flex;
    gap: 20px;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
}

.news-img {
    flex: 0 0 150px;
  
}

.news-img img {
    width: 100%;
    height: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 4px;
}

.news-content {
    flex: 1;
}

.news-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.news-item:hover .news-content h3 {
    color: #d9232e;
}

.news-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-desc {
    color: #666;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-more {
    text-align: center;
    margin-top: 20px;
}

/* 新闻资讯页面样式 */
.news-page {
    padding: 10px 0;
}

.news-main {
    flex: 1;
    min-width: 300px;
}

/* 新闻分类 */
.news-categories {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.news-categories h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-item {
    padding: 5px 15px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:hover,
.category-item.active {
    background-color: #d9232e;
    color: #fff;
}

/* 新闻列表 */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* 新闻详情页面样式 */
.news-detail {
    padding: 10px 0;
}

.news-detail-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-content {
    flex: 1;
    min-width: 300px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.news-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.news-title {
    font-size: 26px;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.3;
}

/* 侧边栏 */
.news-sidebar {
    flex: 0 0 300px;
}

.sidebar-widget {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #d9232e;
    color: #333;
}

.hot-news-list li, .related-news-list li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.hot-news-list li:last-child, .related-news-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.hot-news-item, .related-news-item {
    display: flex;
    gap: 10px;
}

.hot-news-img, .related-news-img {
    flex: 0 0 80px;
    height: 60px;
}

.hot-news-img img, .related-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.hot-news-content h4, .related-news-content h4 {
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-news-content h4:hover, .related-news-content h4:hover {
    color: #d9232e;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.page-item {
    width: auto;
    min-width: 40px;
    padding: 0 8px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}


.page-item:hover {
    border-color: #d9232e;
    color: #d9232e;
}

.page-item.active {
    background-color: #d9232e;
    color: #fff;
    border-color: #d9232e;
}

.page-item.disabled {
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
}

.page-item.disabled:hover {
    color: #999;
    border-color: #eee;
}

/* 新闻详情页样式补充 */
.news-body {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.news-body p {
    margin-bottom: 20px;
}

.news-body img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 4px;
}

.news-body h3 {
    font-size: 20px;
    margin: 30px 0 15px;
    color: #333;
}

.news-body ul {
    margin: 0 0 20px 20px;
    list-style: disc;
}

.news-body li {
    margin-bottom: 10px;
}

.news-tags {
    margin: 30px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.news-tags span {
    color: #999;
    margin-right: 10px;
}

.tag-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    padding: 5px 12px;
    background-color: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.tag-item:hover {
    background-color: #d9232e;
    color: #fff;
}

.news-share {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.share-text {
    color: #999;
}

.share-links {
    display: flex;
    gap: 10px;
}

.share-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.share-link:hover {
    background-color: #d9232e;
    color: #fff;
}

.news-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.news-prev, .news-next {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 45%;
}

.news-prev span, .news-next span {
    color: #999;
    white-space: nowrap;
}

.news-prev a, .news-next a {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-prev a:hover, .news-next a:hover {
    color: #d9232e;
}

/* 律师咨询 */
.lawyer-consult {
    background-color: #fdeaea;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.lawyer-consult h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #d9232e;
}

.lawyer-consult p {
    margin-bottom: 20px;
    color: #666;
}

.consult-phone {
    font-size: 24px;
    color: #d9232e;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #d9232e;
}

.footer-about p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d9232e;
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #ccc;
}

.footer-contact li i {
    margin-top: 5px;
    color: #d9232e;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
    font-size: 12px;
}
.footer-bottom a {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .carousel {
        height: 350px;
    }
    
    .carousel-content h2 {
        font-size: 28px;
    }
    
    .carousel-content p {
        font-size: 16px;
    }
    
    .news-sidebar {
        flex: 0 0 100%;
    }
    
    .footer-top{
     display: none;  
    }
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    
    .logo-bar .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .phone-number {
        text-align: center;
    }
    .nav-list a{
    padding: 15px 15px;    
    font-size: 15px;
    }
    /*
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #d9232e;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .nav-list.show {
        display: flex;
    }
    */
    .submenu {
        position: static;
        width: 100%;
        background-color: #c71c26;
    }
    
    .submenu a {
        color: #fff;
        padding-left: 40px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .carousel {
        height: 280px;
    }
    
    .carousel-content h2 {
        font-size: 24px;
    }
    
    .carousel-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 6px 15px;
        font-size: 14px;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-img {
        flex: 0 0 auto;
        height: 180px;
    }
    
    .news-title {
        font-size: 22px;
    }
    
    .news-content {
        padding: 20px;
    }
    
    .news-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-prev, .news-next {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 220px;
    }
    
    .carousel-content h2 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .carousel-content p {
        display: none;
    }
    
    .service-cards,
    .lawyer-cards {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .news-img {
        height: 160px;
    }
    
    .page-item {
        width: auto;
        min-width: 40px;
        padding: 0 8px;
        height: 30px;
        font-size: 12px;
    }
    
    .news-title {
        font-size: 20px;
    }
    

    
    .news-share {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}


.empty-state {
    background-color: #fff;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    color: #999;
}

.empty-state .icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
}

.empty-state p {
    color: #999;
    max-width: 400px;
    margin: 0 auto 25px;
}


/* 搜索模块及热门关键词样式 */
.header-search-container {
    flex: 1;
    max-width: 500px;
}

.header-search {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
}

.search-form {
    display: flex;
    gap: 10px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #d9232e;
}

.search-btn {
    padding: 10px 20px;
    background-color: #d9232e;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #b91c25;
}

/* 热门搜索关键词样式 */
.hot-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
}

.hot-keywords a {
    color: #666;
    padding: 2px 8px;
    background-color: #f5f5f5;
    border-radius: 12px;
    transition: all 0.2s;
}

.hot-keywords a:hover {
    color: #fff;
    background-color: #d9232e;
}

/* 移动端搜索适配 */
@media (max-width: 768px) {
    .top-search {
        display: block;
        padding: 10px 15px;
        background-color: #f5f5f5;
    }
    
    .top-search .search-form {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .logo-bar .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-search-container {
        width: 100%;
        max-width: 100%;
    }
    
    /* 移动端隐藏logo栏中的热门关键词，避免拥挤 */
    .logo-bar .hot-keywords {
        display: none;
    }
    
    /* 移动端在搜索框下方显示热门关键词 */
    .top-search .hot-keywords {
        margin-top: 10px;
        display: flex;
    }
}


/* 漂浮联系按钮样式（使用图片图标） */
.floating-contact {
    position: fixed;
    right: 20px;
    bottom: 30px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: all 0.3s;
    overflow: hidden;
    border: 2px solid #fff;
}


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

.contact-btn:hover {
    transform: scale(1.1);
    background-color: #b91c25;
}


.contact-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    width: 280px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    padding: 25px 20px;
    z-index: 9999998;
    display: none;
}

.contact-modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 9999997;
    display: none;
}

.modal-overlay.active {
    display: block;
    animation: overlayFade 0.3s ease;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.contact-info-item {
    margin-bottom: 15px;
    text-align: center;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.wechat-qrcode {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
    border: 1px solid #eee;
    padding: 5px;
}

.wechat-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.contact-value {
    font-size: 16px;
    color: #333;
    word-break: break-all;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.close-modal:hover {
    background-color: #d9232e;
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .floating-contact {
        right: 15px;
        bottom: 20px;
    }
    
    .contact-btn {
        width: 45px;
        height: 45px;
    }
    
    .contact-modal {
        width: 250px;
        padding: 20px 15px;
    }
    
    .wechat-qrcode {
        width: 150px;
        height: 150px;
    }
}
  .iframe001 {width:100%;height:500px;border:1px solid #eee;margin:20px auto;}
  @media (max-width: 768px) {.iframe001 {width: 100%;height: 100%;border: none;outline: none;position: fixed;top: 0;left: 0;z-index: 9999;margin: 0;padding: 0;overflow: hidden;}
  
/* 案例视频播放按钮样式 */
.news-img {
    position: relative; /* 给图片容器添加相对定位，用于承载绝对定位的播放按钮 */
    overflow: hidden;
}

/* 播放按钮基础样式 */
.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: rgba(217, 35, 46, 0.8); /* 红色半透明背景，匹配网站主色调 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10; /* 确保按钮在图片上方 */
}

/* 播放按钮三角形图标（通过CSS绘制） */
.play-btn::after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff; /* 白色三角形，模拟播放图标 */
    margin-left: 1px; /* 微调图标位置，使其居中 */
}

/* 鼠标 hover 效果 */
.play-btn:hover {
    background-color: rgba(185, 28, 37, 1); /* 加深背景色 */
    transform: translate(-50%, -50%) scale(1.1); /* 轻微放大 */
}

/* 适配移动端 */
@media (max-width: 768px) {
    .play-btn {
        width: 42px;
        height: 42px;
    }
    .play-btn::after {
        border-width: 6px 0 6px 9px;
    }
}
  