/* 移动端全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", sans-serif;
    line-height: 1.5;
    color: #333;
    font-size: 14px;
}

/* 头部样式 */
.m-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all .3s;
    background: transparent;
}

.m-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    height: 60px;
    position: relative;
    z-index: 2;
}

/* 实色状态 */
.m-header.solid {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Logo样式 */
.m-logo {
    height: 30px;
    position: relative;
}

.m-logo img {
    height: 100%;
    width: auto;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity .3s;
}

/* 初始状态：白色logo隐藏，红色logo显示 */
.m-logo .logo-white {
    opacity: 0;
}

.m-logo .logo-red {
    opacity: 1;
}

/* 透明状态：白色logo显示，红色logo隐藏 */
.m-header:not(.solid) .m-logo .logo-white {
    opacity: 1;
}

.m-header:not(.solid) .m-logo .logo-red {
    opacity: 0;
}

/* 菜单按钮样式 */
.m-menu-btn {
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
    padding: 10px;
}

.m-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: #b60608;
    position: absolute;
    transition: all .3s;
}

/* 透明状态下菜单按钮为白色 */
.m-header:not(.solid) .m-menu-btn span {
    background: #fff;
}

.m-menu-btn span:nth-child(1) { top: 0; }
.m-menu-btn span:nth-child(2) { top: 9px; }
.m-menu-btn span:nth-child(3) { top: 18px; }

/* 菜单容器 */
.m-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    opacity: 0;
    transition: all .3s;
    z-index: 1999;
}

.m-menu-container.active {
    visibility: visible;
    opacity: 1;
}

.m-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: -1;
}

.m-menu-content {
    position: absolute;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    transition: right .3s;
    padding: 60px 0 0;
}

.m-menu-container.active .m-menu-content {
    right: 0;
}

/* 导航菜单 */
.m-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.m-nav-item a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.m-nav-item.active > a {
    color: #b60608;
}

/* 子菜单 */
.m-sub-nav {
    display: none;
    background: #f5f5f5;
    list-style: none;
}

.m-nav-item.active .m-sub-nav {
    display: block;
}

.m-sub-nav li a {
    padding: 12px 35px;
    font-size: 14px;
}

/* 轮播图 */
.m-banner {
    margin-top: -60px;
    position: relative;
    z-index: 1;
}

.m-banner-item {
    position: relative;
    height: 400px;
}

.m-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.m-video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 视频备用背景图 */
.m-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/app/efine_gw/static/img/home/video-poster.jpg') center center no-repeat;
    background-size: cover;
    display: none;
}

/* 在视频无法播放时显示背景图 */
.video-fallback .m-video-fallback {
    display: block;
}

.video-fallback video {
    display: none;
}

.m-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
}

.m-banner-text {
    position: absolute;
    top: 60%;
    left: 20px;
    right: 20px;
    transform: translateY(-50%);
    color: #fff;
    text-align: center;
}

.m-banner-text h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.m-banner-text p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* 按钮样式 */
.m-btn {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    margin: 0 5px;
}

.m-btn-blue { background: #1E9FFF; }
.m-btn-green { background: #009688; }

/* 产品展示 */
.m-product-section {
    padding: 20px 10px;
}

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

.m-section-title h2 {
    font-size: 20px;
}

.m-section-title p {
    font-size: 14px;
}

.m-product-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.m-product-item {
    flex: 0 0 33.333%;  /* 每行显示三个产品 */
    padding: 5px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.m-product-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
}

.m-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.m-product-info h3 {
    font-size: 14px;
    margin-bottom: 2px;
}

.m-product-info p {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    /* 文字超出两行显示省略号 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 服务部分 */
.m-service-section {
    padding: 30px 15px;
    background: #f5f5f5;
}

.m-service-item {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

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

.m-service-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
    color: #fff;
}

.m-service-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.m-service-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* 底部样式 */
.m-footer {
    background: #202239;
    padding: 30px 15px;
    color: #fff;
}

.m-footer-section {
    margin-bottom: 20px;
}

.m-footer-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

.m-footer-section ul {
    list-style: none;
}

.m-footer-section ul li {
    margin-bottom: 8px;
}

.m-footer-section a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

/* 关闭按钮 */
.m-menu-close {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: #b60608;
    border-radius: 50%;
    z-index: 2001;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-menu-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
}

.m-menu-close span:first-child {
    transform: rotate(45deg);
}

.m-menu-close span:last-child {
    transform: rotate(-45deg);
}

/* 实色状态下保持红色 */
.m-header.solid .m-menu-btn span {
    background: #b60608;
}

/* AI获客标题红色样式 */
.highlight {
    color: #b60608;
}

/* 立即体验按钮样式 */
.m-try-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #1E9FFF;
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all .3s;
    z-index: 1;
}

.m-try-btn:hover {
    opacity: 0.9;
}

/* 资源库平台样式优化 */
.m-platform-section {
    padding: 30px 15px;
    background: #f5f5f5;
}

.m-platform-list {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.m-platform-item {
    flex: 0 0 50%;
    padding: 10px;
}

.m-platform-item-inner {
    background: #fff;
    border-radius: 8px;
    padding: 40px 20px 20px;
    text-align: center;
    position: relative;
    transition: all .3s;
}

.m-platform-icon {
    width: 60px;
    height: 60px;
    background: #b60608;
    border-radius: 50%;
    margin: -50px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m-platform-icon img {
    width: 30px;
    height: 30px;
}

.m-platform-icon .icon-hover {
    display: none;
}

.m-platform-item-inner:hover {
    background: #b60608;
    color: #fff;
}

.m-platform-item-inner:hover .icon-default {
    display: none;
}

.m-platform-item-inner:hover .icon-hover {
    display: block;
}

/* 新闻资讯样式优化 */
.m-news-section {
    padding: 30px 15px;
}

.m-news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.m-news-header-left h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.m-news-header-left p {
    color: #666;
    font-size: 16px;
}

.m-more-btn {
    display: inline-block;
    padding: 6px 15px;
    background: #b60608;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
}

.m-news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.m-news-content {
    padding: 15px;
}

.m-news-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.m-news-img {
    margin: 10px -15px;
}

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

.m-detail-link {
    display: flex;
    align-items: center;
    color: #333;
    margin-top: 10px;
}

.m-arrow-icon {
    margin-left: 5px;
    transition: transform .3s;
}

.m-detail-link:hover .m-arrow-icon {
    transform: translateX(5px);
}

/* 底部导航横向排列 */
.m-footer-nav {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.m-footer-section {
    flex: 0 0 33.33%;
    padding: 0 10px;
    margin-bottom: 30px;
}

/* 联系我们和二维码占满宽度 */
.m-footer-section:nth-last-child(2),
.m-footer-qrcode {
    flex: 0 0 100%;
}

/* 认证图标样式 */
.m-footer-certs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 30px 15px;
}

.m-footer-cert-item {
    text-align: center;
}

.m-footer-cert-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 5px;
    opacity: 0.7;
    transition: opacity .3s;
}

.m-footer-cert-item:hover img {
    opacity: 1;
}

.m-footer-cert-item span {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* 二维码容器样式 */
.m-footer-qrcodes {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    width: 100%;
}

.m-qrcode-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.m-qrcode-item img {
    width: 93px;
    height: 93px;
    margin-bottom: 10px;
    order: 1;
}

.m-qrcode-item span {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    order: 2;
}

/* 移除旧的单个二维码样式 */
.m-footer-qrcode {
    display: none;
}

/* 新闻列表样式优化 */
.m-news-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.m-news-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.m-news-title {
    flex: 1;
    margin-right: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333;
}

.m-news-date {
    flex-shrink: 0;
    color: #999;
    font-size: 14px;
}

/* AI描述页面样式 */
.ai-desc-container {
    padding: 20px 15px;
}

/* 顶部问题标题样式 */
.ai-desc-header {
    margin-bottom: 30px;
}

.question-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.question-item h2 {
    font-size: 20px;
    color: #333;
    margin: 0;
}

/* 问题展示区样式 */
.problems-section {
    margin-bottom: 40px;
}

.problems-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.problem-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease;
    margin-bottom: 15px;
}

.problem-item.show {
    opacity: 1;
    transform: translateX(0);
}

.problem-content {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 解决方案区样式 */
.solution-section {
    margin-bottom: 40px;
}

.solution-title {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.solution-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
    color: #666;
}

.solution-item {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 服务介绍区样式 */
.service-section {
    margin-bottom: 40px;
}

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

.service-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
    color: #666;
}

.product-grid {
    display: grid;
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

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

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

.learn-more {
    display: inline-block;
    padding: 8px 20px;
    background: #b60608;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
} 