/* Main Content Sections */

/* Carousel / Banner */
.x-carousel {
    position: relative;
    height: 459px;
    margin-top: 70px;
    /* header的高度 */
    background-color: var(--dark-grey);
    /* Fallback color */
    overflow: hidden;
}

.carousel-container {
    display: flex;
    width: 300%;
    /* 3个轮播图，相对于视口的300% */
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

.carousel-item {
    position: relative;
    width: 33.333%;
    /* 每个item占容器的1/3，也就是视口的100% */
    height: 100%;
    flex-shrink: 0;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 移动端优化：针对超宽图片的特殊处理 */
@media (max-width: 768px) {
    .x-carousel {
        height: 250px;
        /* 固定合适的高度 */
        background-color: var(--dark-grey);
    }

    .carousel-item {
        height: 250px;
    }

    .carousel-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* 使用cover保持图片比例，允许适当裁剪 */
        object-position: center center;
        /* 居中显示重要内容 */
    }
}

@media (max-width: 480px) {
    .x-carousel {
        height: 200px;
        /* 小屏幕稍微减小高度 */
    }

    .carousel-item {
        height: 200px;
    }

    .carousel-img {
        object-position: center;
        /* 确保重要内容居中显示 */
    }
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white-color);
    z-index: 2;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-content p {
    font-size: 24px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Carousel Controls */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 3;
    transition: background-color 0.3s ease;
}

.carousel-arrow:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
    left: 20px;
    border-radius: 5px 0 0 5px;
}

.carousel-arrow.next {
    right: 20px;
    border-radius: 0 5px 5px 0;
}

/* Carousel Buttons */
.carousel-buttons {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 5;
}

/* Carousel Content */
.carousel-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 4;
    max-width: 80%;
    display: none;
    /* 隐藏文本，仅供SEO使用 */
}

.carousel-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.carousel-subtitle {
    font-size: 20px;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    opacity: 0.9;
}

.carousel-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-width: 120px;
    text-align: center;
}

.carousel-btn-primary {
    background-color: #ff7a00;
    color: white;
    border-color: #ff7a00;
}

.carousel-btn-primary:hover {
    background-color: #e56e00;
    border-color: #e56e00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.carousel-btn-secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(255, 255, 255, 0.9);
}

.carousel-btn-secondary:hover {
    background-color: white;
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

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

.indicator.active,
.indicator:hover {
    background-color: var(--white-color);
}

/* Section title icons */
.section-title .iconLeft,
.section-title .iconRight {
    height: 12px;
    margin: 0 20px;
    vertical-align: middle;
}

/* Section title responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 20px;
        /* 适当减小字体大小 */
    }

    .section-title .iconLeft,
    .section-title .iconRight {
        margin: 0 10px;
        /* 减小图标与文字的间距 */
    }
}

/* virtual-simulation section */
.virtual-simulation {
    background-color: transparent;
}

.virtual-simulation .features {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0 auto 40px;
    text-align: center;
    background-color: #fff;
    padding: 15px 0 0;
    /* 移除底部内边距 */
    position: relative;
    max-width: 800px;
    border-bottom: 1px solid #ddd;
    /* 使用边框而不是伪元素 */
}

/* 移除之前的底部线伪元素 */
.virtual-simulation .features::after {
    display: none;
}

.feature-item {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 5px 0;
    /* 移除底部内边距 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    position: relative;
    z-index: 2;
    margin-bottom: -1px;
    /* 关键：使指示器与边框重叠 */
}

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

.feature-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.feature-item h3 {
    font-size: 14px;
    margin-top: 5px;
    margin-bottom: 10px;
    /* 添加底部外边距 */
    font-weight: normal;
}

.feature-item.active {
    background-color: transparent;
    color: #ff6b00;
}

/* 活动项的指示器 */
.feature-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    /* 确保在底部 */
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    /* 增加宽度 */
    height: 3px;
    /* 稍微增加高度 */
    background-color: #ff7a00;
    z-index: 3;
}

/* 移除非活动项的指示器 */
.feature-item:not(.active)::after {
    display: none;
}

/* Feature Contents */
.feature-contents {
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.feature-content {
    display: none;
    padding: 20px 0;
}

.feature-content.active {
    display: flex;
    align-items: center;
    gap: 40px;
}

.feature-content .text-content {
    flex: 1;
    padding-right: 20px;
    max-width: 50%;
}

.feature-content .text-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 15px;
}

.feature-content .image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-content .content-image {
    width: 100%;
    max-width: 450px;
    border-radius: 0;
}

.platform-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #ff7a00;
    color: white;
    border-radius: 0;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.platform-btn:hover {
    background-color: #e56e00;
}

.virtual-simulation .content {
    display: flex;
    align-items: center;
    gap: 30px;
    background: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.virtual-simulation .text-content {
    flex: 1;
}

.virtual-simulation .text-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.virtual-simulation .image-content {
    flex: 1;
}

.virtual-simulation .simulation-image {
    width: 100%;
    border-radius: 5px;
}

/* products-section */
.products-section {
    background-color: var(--white-color);
}

.products-section .content-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
}

.products-section .content-block:last-child {
    border-bottom: none;
}

/* 第2,4个内容块（偶数项）：图片在右，文字在左 */
.products-section .content-block:nth-child(2n) {
    flex-direction: row-reverse;
}

.products-section .text-section {
    flex: 1;
    padding: 20px;
}

.products-section .image-section {
    flex: 0 0 auto;
    /* 宽度跟随图片本身 */
    max-width: none;
    /* 解除50%的限制 */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 15px;
}

.products-section .solution-image {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.products-section .solution-image:hover {
    transform: scale(1.02);
}

.products-section .image-section:hover .view-details-btn {
    opacity: 1;
}

.products-section .view-details-btn {
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.products-section .title {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.products-section .title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.products-section .abstract {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 16px;
    text-align: justify;
}

/* products-section-grid */
.products-section-grid {
    background-color: #ffffff;
    padding: 8px 4px;
}

.products-section-grid .section-title {
    display: flex;
    margin-bottom: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

.products-section-grid .container {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin: 0 auto;
    max-width: 1200px;
}

.products-section-grid .left-side {
    flex: 0 0 auto;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.products-section-grid .right-side {
    flex: 2 0 auto;
    display: flex;
    flex-direction: column;
}

.products-section-grid .left-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 250px;
}

.products-section-grid .grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.products-section-grid .module-card {
    display: flex;
    flex-direction: column;
    justify-content: normal;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0;
    background: linear-gradient(to bottom, #f5f5f5, #ffffff);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.products-section-grid .module-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-section-grid .content {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 10px;
    background: transparent;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
}

.products-section-grid .icon {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 8px 0 0;
}

.products-section-grid .name {
    display: block;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.products-section-grid .description {
    display: block;
    padding: 10px;
    background: transparent;
    width: 100%;
}

.products-section-grid .classify {
    display: block;
    margin: 4px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.products-section-grid .color {
    color: #ff7a00;
    font-weight: bold;
    cursor: pointer;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .products-section-grid .container {
        flex-direction: column;
        align-items: center;
    }

    .products-section-grid .left-side {
        margin-right: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .products-section-grid .right-side {
        width: 100%;
    }

    .products-section-grid .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .left-side {
        background: #F3F4ED;
    }

    .products-section-grid .left-image {
        max-width: 150px;
    }

    .products-section-grid .grid-container {
        grid-template-columns: 1fr;
    }
}

/* Stats Section */
.stats-section {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 40px 0;
}

.stats-section .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 40px;
    font-weight: 700;
}

.stat-label {
    display: block;
    font-size: 16px;
}

/* News Center Section */
.news-center {
    padding: 40px 0;
    background-color: #fff;
}

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

.news-main {
    flex: 2;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    border-bottom: 1px solid #e5e5e5;
}

.news-tabs {
    display: flex;
    border-bottom: none;
    margin-bottom: 0;
    position: relative;
}

.tab {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
    color: #999;
    transition: all 0.3s ease;
}

.tab.active {
    color: #ff7a00;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff7a00;
}

.tab-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.more-link {
    color: #999;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px;
    transition: color 0.3s ease;
}

.more-link:hover {
    color: #ff7a00;
}

/* 隐藏移动端更多按钮 */
@media (min-width: 769px) {
    .mobile-more-link {
        display: none;
    }

    /* 隐藏移动端时间轴 */
    .about-timeline-mobile {
        display: none;
    }
}

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

.news-list.active {
    display: block;
}

.news-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
}

.news-dot {
    width: 6px;
    height: 6px;
    background-color: #ff7a00;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.news-title {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.news-title:hover {
    color: #ff7a00;
}

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

.hot-topics {
    flex: 1;
    max-width: 300px;
}

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

.hot-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-item {
    display: block;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.hot-image {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }

    .hot-topics {
        max-width: 100%;
    }

    .hot-items {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .hot-item {
        width: calc(50% - 8px);
    }
}

@media (max-width: 480px) {
    .news-tabs {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .tab {
        padding: 8px 10px;
    }

    .more-link {
        width: 100%;
        justify-content: flex-end;
        padding: 8px 0;
    }

    .news-item {
        flex-wrap: wrap;
    }

    .news-date {
        width: 100%;
        margin-left: 16px;
        margin-top: 5px;
    }

    .hot-item {
        width: 100%;
    }
}

/* Partners Section */
.partners-section {
    padding: 40px 0;
    background-color: #fff;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    width: 300%;
}

.carousel-slide {
    width: calc(100% / 3);
    flex-shrink: 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.partner-item img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
}

.partners-section .carousel-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
    position: static;
    transform: none;
    bottom: auto;
    left: auto;
    z-index: auto;
}

.partners-section .carousel-indicators .indicator {
    width: 30px;
    height: 4px;
    border: none;
    background-color: #ddd;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.partners-section .carousel-indicators .indicator.active {
    background-color: #ff7a00;
}

@media (max-width: 992px) {
    .partner-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
}

@media (max-width: 480px) {
    .partner-grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(10, 1fr);
    }
}

/* About Us Section */
.about-us-section {
    padding: 40px 0;
    background-color: #fff;
}

.about-content-pc {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.about-image-pc {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stats Section */
.stats-section {
    background-image: url('../images/about/postcard.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px 0;
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: white;
    flex: 1;
}

.stat-number {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.stat-label {
    font-size: 16px;
    color: white;
    line-height: 1.4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-container {
        gap: 30px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .stats-container {
        gap: 10px;
        padding: 0px;
    }

    .stat-number {
        font-size: 20px;
    }
}

.view-details-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background-color: rgba(255, 122, 0, 0.9);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.view-details-btn:hover {
    background-color: rgba(229, 110, 0, 1);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .view-details-btn {
        font-size: 12px;
        padding: 6px 16px;
        bottom: 10px;
        right: 10px;
    }

    .products-section .content-block {
        flex-direction: column;
    }

    .products-section .image-section,
    .products-section .text-section {
        max-width: 100%;
    }

    .products-section .content-block:nth-child(2n) {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .view-details-btn {
        font-size: 11px;
        padding: 5px 14px;
        bottom: 8px;
        right: 8px;
    }

    .products-section .image-section {
        margin-bottom: 15px;
    }
}

/* Responsive styles for carousel buttons */
@media (max-width: 768px) {
    .carousel-buttons {
        bottom: 20px;
        /* 偏下方位置 */
        gap: 15px;
        flex-direction: row;
        /* 水平一行布局 */
        align-items: center;
        justify-content: center;
    }

    .carousel-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }

    .carousel-content {
        top: 35%;
        max-width: 90%;
    }

    .carousel-title {
        font-size: 28px;
        /* 适合新高度的字体大小 */
        margin-bottom: 10px;
    }

    .carousel-subtitle {
        font-size: 16px;
    }

    /* 调整轮播图控制按钮 */
    .carousel-arrow {
        font-size: 24px;
        padding: 8px 12px;
    }

    /* 隐藏轮播图指示器 */
    .carousel-indicators {
        display: none;
    }
}

@media (max-width: 480px) {
    .carousel-buttons {
        display: none;
    }

    .carousel-btn {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 80px;
    }

    .carousel-content {
        top: 30%;
        max-width: 95%;
    }

    .carousel-title {
        font-size: 20px;
        /* 适合200px高度的字体大小 */
        margin-bottom: 8px;
    }

    .carousel-subtitle {
        font-size: 14px;
    }

    /* 小屏幕进一步调整 */
    .carousel-arrow {
        font-size: 20px;
        padding: 6px 10px;
    }

    /* 隐藏轮播图指示器 */
    .carousel-indicators {
        display: none;
    }
}

/* 免费试用按钮样式 */
.free-trial-btn {
    background-color: #ff7a00;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-right: 15px;
}

.free-trial-btn:hover {
    background-color: #e56e00;
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 0 24px 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff7a00;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.submit-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #45a049;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cancel-btn:hover {
    background-color: #e9e9e9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .free-trial-btn {
        padding: 6px 12px;
        font-size: 12px;
        margin-right: 10px;
    }

    .modal-container {
        width: 95%;
        margin: 20px;
    }

    .modal-header,
    .modal-body {
        padding: 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .cancel-btn {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* 返回顶部按钮样式 */
.to-top {
    position: fixed;
    bottom: 50px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: rgb(25, 137, 250);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, .12);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.to-top.show {
    opacity: 1;
    visibility: visible;
}

.to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.to-top:active {
    transform: translateY(0);
}

/* 箭头图标 */
.to-top::after {
    content: "UP";
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .to-top {
        bottom: 220px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}