/* 重置和基础样式 */
* {
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    margin: 0;
    padding: 0;
}

/* 头部导航 */
.header {
    background-color: white;
    color: #fff;
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid #e6ebf2;
}

.nav-bar {
    display: flex;
    padding: 0px !important;
    gap: 20px;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    position: relative;
}

.nav-bar a {
    color: black;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    transition: all 0.3s ease;
    height: 100%;
}

.nav-bar a:hover,
.nav-bar a.hover-active {
    text-decoration: none;
    background-color: #f5f7fa;
    color: black;
}

/* 下拉菜单样式 */
.dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 150px;
    padding: 0 0 5px;
    margin: 0;
    background-color: #ffffff;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 6px 12px rgba(0,0,0,.175);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.dropdown-menu a {
    color: #333333;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px !important;
    clear: both;
    font-size: 14px;
    text-align: left;
    white-space: nowrap;
    border-radius: 0 !important;
    height: auto !important;
    color: #333333;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.menu-logo {
    width: 60px;
    margin-right: 8px;
    vertical-align: middle;
}

.dropdown-item:hover {
    background-color: #f2f8ff !important;
    color: #1866d4 !important;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

/* 当子菜单处于hover状态时，保持父菜单的hover样式 */
.dropdown-menu:hover + .dropdown-toggle,
.dropdown-item:hover ~ .dropdown-toggle {
    background-color: #393946;
    color: #ffffff;
}

/* 移动端汉堡菜单 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: absolute;
    right: 20px;
    z-index: 1001;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle:hover span {
    background-color: #ffffff;
    opacity: 0.8;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #ffffff;
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #ffffff;
}

/* 主要内容区域 */
.main-content {
    margin-top: 60px;
    width: 100%;
    padding: 0;
}

/* 布局组件 */
.row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center; /* 垂直居中对齐 */
    margin-bottom: 30px;
}

/* 交错排列的行，图片在右侧，文字在左侧 */
.row-reverse {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 30px;
    flex-direction: row-reverse; /* 反转排列顺序 */
}

.row h2,
.row-reverse h2 {
    margin-top: 0px;
}

.col-6 {
    flex: 6;
    width: 60%;
}

.col-4 {
    flex: 4;
    width: 40%;
}

/* 图片内容容器 */
.img-content {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    border-radius: 8px;
    overflow: hidden;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    width: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* 文字内容容器 */
.text-content {
    padding: 15px 0;
}

/* 文字内容标题 */
.text-content h2 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #333;
}

/* 文字内容段落 */
.text-content p {
    color: #5c5c70;
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式图片 */
.img-responsive {
    box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
    border-radius: 8px;
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* 新增的响应式组件样式 */
.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

.logo-section {
    margin-bottom: 20px;
    gap: 15px;
}

.logo-img {
    height: 70px;
    max-width: 100%;
}

.logo-img-small {
    height: 26px;
    max-width: 100%;
}

.product-title {
    font-size: 24px;
    font-weight: 500;
    color: #333;
}

.main-title {
    font-size: 1.8rem;
    font-weight: 500;
    margin: 20px 0;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 40px;
    flex-wrap: wrap;
}

.image-container {
    width: 70%;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-container {
    margin: 0 auto;
    width: 90%;
    max-width: 800px;
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-button.prev {
    left: -75px;
}

.carousel-button.next {
    right: -75px;
}

.carousel-button.next:hover {
    transform: translateY(-50%) scaleX(-1) scale(1.1) !important;
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

.btn-primary {
    background-color: #1866d4;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 180px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 102, 212, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    background-color: #3d7bd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 102, 212, 0.4);
}

.btn-plain {
    background-color: white;
    color: #1866d4;
    border: 2px solid #1866d4;
    border-radius: 6px;
    padding: 8px 22px;
    cursor: pointer;
    width: 180px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-plain:hover {
    background-color: #1866d4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(24, 102, 212, 0.3);
}

h1 {
    font-family: inter, sans-serif;
    font-weight: 500;
    font-style: normal;
    margin-top: 10px;
}

.block-wrapper {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* 容器和工具类 */
.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
}

.flex-center {
    display: flex;
    justify-content: center;
}

.gap-20 {
    gap: 20px;
}

.align-center {
    display: flex;
    align-items: center;
}

.main-content hr {
    margin-top: 80px;
    margin-bottom: 80px;
    border-color: #eee !important;
    opacity: 1 !important;
    border: 0;
    border-top: 1px solid;
}

/* 响应式断点 - 移动设备优先 */

/* 超小屏幕（手机，小于 576px） */
@media (max-width: 575.98px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-bar {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #000;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        z-index: 999;
    }
    
    .nav-bar.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-bar a {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #333;
    }
    
    /* 隐藏默认菜单项，只显示汉堡按钮 */
    .nav-bar > a,
    .nav-bar > .dropdown {
        display: none;
    }
    
    .nav-bar.nav-open > a,
    .nav-bar.nav-open > .dropdown {
        display: flex;
    }
    
    /* 移动端下拉菜单样式调整 */
    .dropdown {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .dropdown-toggle {
        width: 100%;
        padding: 15px 20px;
        justify-content: flex-start;
        border-bottom: 1px solid #333;
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #111;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        display: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding-left: 40px !important;
    }
    
    .container {
        padding-right: 0;
        padding-left: 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: 0;
        margin-right: 0;
    }
    
    .hero-content {
        width: 100%;
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 1.1rem;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn-primary, .btn-plain {
        width: 100%;
        max-width: 200px;
        padding: 10px 16px;
        font-size: 14px;
        height: 40px;
    }
    
    .image-container {
        width: 90%;
    }
    
    .carousel-container {
        width: 90%;
    }
    
    .carousel-button {
        display: none; /* 在移动端隐藏箭头按钮，只使用触摸滑动 */
    }
    
    /* 移动端行布局 - 上下排列 */
    .row, .row-reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 20px;
    }
    
    /* 移动端列宽度 - 占满整行 */
    .col-6, .col-4 {
        width: 100%;
        flex: none;
        min-width: auto;
    }
    
    /* 移动端文字内容样式调整 */
    .text-content {
        padding: 10px 15px;
    }
    
    .text-content h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
    
    .description {
        font-size: 0.8rem;
        padding: 0 15px;
    }
    
    .block-wrapper {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* 小屏幕（平板，576px 到 767px） */
@media (min-width: 576px) and (max-width: 767.98px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .nav-bar {
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: #000;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        padding: 0;
        z-index: 999;
    }
    
    .nav-bar.nav-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-bar a {
        width: 100%;
        padding: 15px 20px;
        border-radius: 0;
        border-bottom: 1px solid #333;
    }
    
    /* 隐藏默认菜单项，只显示汉堡按钮 */
    .nav-bar > a,
    .nav-bar > .dropdown {
        display: none;
    }
    
    .nav-bar.nav-open > a,
    .nav-bar.nav-open > .dropdown {
        display: flex;
    }
    
    /* 移动端下拉菜单样式调整 */
    .dropdown {
        flex-direction: column;
        width: 100%;
        height: auto;
    }
    
    .dropdown-toggle {
        width: 100%;
        padding: 15px 20px;
        justify-content: flex-start;
        border-bottom: 1px solid #333;
        border-radius: 0;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        background-color: #111;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
        display: none;
    }
    
    .dropdown.open .dropdown-menu {
        display: block;
    }
    
    .dropdown-item {
        padding-left: 40px !important;
    }
    
    .container {
        max-width: 540px;
        padding-right: 15px;
        padding-left: 15px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .logo-img {
        height: 60px;
    }
    
    .button-group {
        gap: 15px;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary, .btn-plain {
        width: 100%;
        max-width: 220px;
        padding: 8px 18px;
        font-size: 15px;
        height: 42px;
    }
    
    .image-container {
        width: 85%;
    }
    
    .carousel-container {
        width: 85%;
    }
    
    .carousel-button.prev {
        left: -25px;
    }
    
    .carousel-button.next {
        right: -25px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    /* 小屏平板上也使用上下布局 */
    .row, .row-reverse {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 25px;
    }
    
    .col-6, .col-4 {
        width: 100%;
        flex: none;
    }
    
    /* 文字内容样式调整 */
    .text-content {
        padding: 15px;
    }
    
    .text-content h2 {
        font-size: 1.3rem;
    }
}

/* 中等屏幕（小型笔记本，768px 到 991px） */
@media (min-width: 768px) and (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-bar {
        position: static;
        flex-direction: row;
        background-color: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 20px;
    }
    
    .nav-bar > a {
        display: flex;
    }
    
    .container {
        max-width: 700px;
    }
    
    .carousel-button.prev {
        left: -40px;
    }
    
    .carousel-button.next {
        right: -40px;
    }
}

/* 大屏幕（桌面，992px 到 1199px） */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-bar {
        position: static;
        flex-direction: row;
        background-color: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 20px;
    }
    
    .nav-bar > a {
        display: flex;
    }
    
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        max-width: 900px;
    }
    
    .main-title {
        font-size: 2.1rem;
    }
    
    .description {
        font-size: 1rem;
        max-width: 800px;
        margin: 0 auto 30px;
    }
    
    .image-container {
        width: 70%;
        max-width: 700px;
    }
    
    .carousel-container {
        width: 70%;
        max-width: 700px;
    }
}

/* 超大屏幕（大桌面，1200px 到 1399px） */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-bar {
        position: static;
        flex-direction: row;
        background-color: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 20px;
    }
    
    .nav-bar > a {
        display: flex;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .hero-content {
        max-width: 1000px;
    }
    
    .main-title {
        font-size: 2.3rem;
    }
    
    .description {
        font-size: 1.05rem;
        max-width: 850px;
        margin: 0 auto 30px;
    }
    
    .image-container {
        width: 70%;
        max-width: 900px;
    }
    
    .carousel-container {
        width: 70%;
        max-width: 900px;
    }
    
    .block-wrapper {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

/* 超超大屏幕（超大桌面，1400px 到 1919px） */
@media (min-width: 1400px) and (max-width: 1919.98px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-bar {
        position: static;
        flex-direction: row;
        background-color: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 20px;
    }
    
    .nav-bar > a {
        display: flex;
    }
    
    .container {
        max-width: 1320px;
    }
    
    .hero-content {
        max-width: 1100px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1.1rem;
        max-width: 900px;
        margin: 0 auto 40px;
    }
    
    .image-container {
        width: 75%;
        max-width: 1200px;
    }
    
    .carousel-container {
        width: 75%;
        max-width: 1200px;
    }
    
    .block-wrapper {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .button-group {
        margin: 20px 0 40px;
    }
}

/* 4K和超宽屏幕（1920px 及以上） */
@media (min-width: 1920px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .nav-bar {
        position: static;
        flex-direction: row;
        background-color: transparent;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        padding: 10px 20px;
    }
    
    .nav-bar > a {
        display: flex;
    }
    
    .container {
        max-width: 1600px;
    }
    
    .hero-content {
        max-width: 1200px;
    }
    
    .main-title {
        font-size: 2.8rem;
        margin: 30px 0;
    }
    
    .description {
        font-size: 1.2rem;
        max-width: 1000px;
        margin: 0 auto 50px;
        line-height: 1.5;
    }
    
    .image-container {
        width: 75%;
        max-width: 1200px;
    }
    
    .carousel-container {
        width: 75%;
        max-width: 1200px;
    }
    
    .block-wrapper {
        padding-top: 80px;
        padding-bottom: 80px;
    }
    
    .button-group {
        margin: 20px 0 40px;
        gap: 30px;
    }
    
    .btn-primary, .btn-plain {
        padding: 8px 20px;
        font-size: 16px;
        width: 100%;
        max-width: 240px;
    }
    
    .logo-img {
        height: 80px;
    }
    
    .product-title {
        font-size: 28px;
    }
}

/* 实用工具类 */
.mt-10 {
    margin-top: 10px;
}

.text-gray-10 {
    color: #5c5c70 !important;
}

.text-center {
    text-align: center !important;
}

.maxw-750 {
    max-width: 750px;
    margin: 0 auto;
}

/* 性能优化和可访问性 */
img {
    max-width: 100%;
    height: auto;
}

* {
    -webkit-tap-highlight-color: transparent;
}

/* 焦点状态 */
.btn-primary:focus,
.btn-plain:focus {
    outline: 2px solid #1866d4;
    outline-offset: 2px;
}

/* 减少动效 */
@media (prefers-reduced-motion: reduce) {
    .carousel-slides,
    .mobile-menu-toggle span,
    .btn-primary,
    .btn-plain,
    .carousel-button,
    .carousel-dot {
        transition: none;
    }
}

/* 移动设备上的菜单图标调整 */
@media (max-width: 767.98px) {
    .menu-logo {
        height: 16px;
        margin-right: 10px;
    }
    
    /* 移动设备上的子菜单样式覆盖 */
    .dropdown-menu {
        background-color: #f8f8f8 !important;
        border-top: none !important;
    }
    
    .dropdown-item {
        color: #333333 !important;
        border-bottom: 1px solid #eeeeee !important;
    }
    
    .dropdown-item:hover {
        background-color: #f2f8ff !important;
        color: #1866d4 !important;
    }
}