/* 全局样式 */
body {
    font-family: 'Alibaba-Puhuiti', Arial, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-link {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: center; /* 水平居中（可选） */
    height: 100%; /* 确保有高度基准 */
}

/* 导航栏 */
header {
    background-color: #1a237e;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

#main-header {
    background-color: transparent;
    color: white;
    padding: 0.8rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    transition: background 0.3s ease, box-shadow 0.3s ease; /* 平滑过渡 */
}

#main-header.scrolled {
    background: white;
    color: black;
    padding: 0.6rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影 */
}

#main-header.scrolled .nav-links a {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

#main-header.scrolled .nav-links a:hover {
    color: #d88b28;
}

#main-header.scrolled .menu-toggle i {
    color: black;
    text-decoration: none;
    transition: color 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: white;
    font-weight: 500; /* 稍粗一点，增强可读性 */
    letter-spacing: 0.06em; /* 微调字间距，提升视觉舒适度 */
    line-height: 1.5; /* 控制行高，防止文字紧贴 */
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffab40;
}

/* === 响应式导航相关 === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    z-index: 999;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background-color: #1a237e;
    padding-top: 4rem;
    transition: left 0.3s ease-in-out;
    z-index: 998;
    overflow-y: auto;
}

.mobile-drawer.open {
    left: 0;
}

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

.drawer-links li {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.drawer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 0.5rem 0;
}

.drawer-links a:hover {
    color: #ffab40;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 997;
    pointer-events: none;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer-links a > :first-child {
    display: inline-block;
    width: 24px; /* 固定宽度，可根据需要调整 */
    text-align: center;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .desktop-menu {
        display: none;
    }
}

.hero {
    position: relative;
    color: white;
    padding: 8rem 0 4rem;
    width: 100%;
    height: 70vh;
    text-align: center;
    background-size: cover;
    background-position: center;
    backface-visibility: hidden;
    overflow: hidden; /* 防止滑动时内容溢出 */
    box-sizing: border-box;
}

/* 可选叠加层 */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    color: white;
    text-align: center;
    padding-top: 20%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: transparent;
    z-index: 2;
}

.slide-inner {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: zoom 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes zoom {
    0% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(0) scale(1.1);
    }
    100% {
        transform: translateX(0) scale(1);
    }
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transform: translateY(-50%);
    padding: 0 20px; /* 可选内边距 */
    box-sizing: border-box;
    z-index: 99;
}

.slider-prev,
.slider-next {
    font-size: 24px;
    background-color: #1a237e; /* 深蓝色背景 */
    color: white; /* 白色图标文字 */
    border: none;
    padding: 12px; /* 调整内边距使按钮更大一些 */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加轻微阴影提升立体感 */
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 2.5rem;
    height: 2.5rem;
    text-align: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev:hover,
.slider-next:hover {
    background-color: #2962ff; /* 浅蓝悬停效果 */
    transform: scale(1.1); /* 微微放大增强交互反馈 */
}

/* 禁用状态样式 */
.slider-prev:disabled,
.slider-next:disabled {
    background-color: #ccc; /* 灰色表示不可点击 */
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.slider-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.slider-dot:hover {
    background: #9eb4fc;
    transform: scale(1.2);
}

.slider-dot.active {
    background-color: #98b0fd;
    width: 0.7rem;
    height: 0.7rem;
}

.hero .main-title {
    font-size: 3rem;
    letter-spacing: 0.05em; /* 字间距微调 */
    color: #f8f8f8; /* 改为暖白色 */
    font-weight: 600;
    margin: 0;
    z-index: 10;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* 加深阴影以提高白色文字可读性 */
    white-space: nowrap;
    transition: all 0.3s ease;
}

.hero .main-title:hover {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3),
    0 0 15px rgba(255, 255, 255, 0.5);
}

.main-button {
    display: inline-block;
    padding: 12px 35px;
    background: linear-gradient(90deg, #2F4F7F, #1A365D); /* 暖棕渐变 */
    color: #FFF9F2; /* 暖调白 */
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(181, 142, 103, 0.2); /* 暖色投影 */
    position: relative;
    letter-spacing: 1px; /* 增加字间距提升高级感 */
    cursor: pointer;
}

.main-button:hover {
    transform: translateX(15px) translateY(-1px);
    box-shadow: 0 7px 15px rgba(181, 142, 103, 0.35);
    background: linear-gradient(90deg, #1A365D, #2F4F7F); /* 反转渐变方向 */
    color: #FFFFFF;
}

.main-button::after {
    content: "→";
    margin-left: 12px;
    transition: all 0.3s ease;
    color: rgba(255, 249, 242, 0.8); /* 箭头颜色微调 */
}

.main-button:hover::after {
    transform: translateX(4px);
    color: #FFFFFF;
}

/* 可选：添加金属质感边框（更显高级） */
.main-button {
    border: 1px solid rgba(181, 142, 103, 0.3);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    white-space: pre-line; /* 允许文字换行 */
    text-align: center; /* 换行后内容继续保持居中 */
}

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

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-container p {
    color: whitesmoke;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* 添加轻微阴影提升立体感 */
}

@media (max-width: 768px) {
    .hero {
        height: 40vh;
    }

    .hero .hero-container {
        padding: 0 15px;
        width: 100%;
    }

    .hero .main-title {
        font-size: 1.8rem;
    }

    .hero .hero-container p {
        font-size: 0.8rem;
    }

    .hero .main-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .slider-prev,
    .slider-next {
        font-size: 12px;
        padding: 12px;
        width: 1.2rem;
        height: 1.2rem;
    }
}


@media (max-width: 380px) {
    .main-button {
        display: none !important;
    }

    .hero-container p {
        margin-bottom: 0 !important;
    }

    .slider-prev,
    .slider-next {
        font-size: 12px !important;
        padding: 6px !important;
        width: 1rem !important;
        height: 1rem !important;
    }
}

.cta-button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #4f46e5;
}

.services, .cases, .about, .contact {

    padding: 80px 20px;
    transition: all 0.3s ease;
}

.services:hover, .cases:hover, .about:hover, .contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 服务部分 */
.services {
    padding: 4rem 0;
    background-color: #F8F9FF; /* 极浅蓝紫色，科技感基础 */
    background-image: linear-gradient(135deg, rgba(168, 180, 252, 0.1) 0%, rgba(248, 249, 255, 1) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2D3748;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #3A7BD5 0%, #00D2FF 100%);
    border-radius: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(58, 123, 213, 0.1);
    position: relative;
}

@media (min-width: 769px) {
    .service-card {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    /* 视口内显示动画 */
    .service-card.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* 错开动画时间 */
    .service-card[data-index="0"] {
        transition-delay: 0.1s;
    }

    .service-card[data-index="1"] {
        transition-delay: 0.2s;
    }

    .service-card[data-index="2"] {
        transition-delay: 0.3s;
    }

    .service-card[data-index="3"] {
        transition-delay: 0.4s;
    }

    .service-card[data-index="4"] {
        transition-delay: 0.5s;
    }

    .service-card[data-index="5"] {
        transition-delay: 0.6s;
    }

    .service-card[data-index="6"] {
        transition-delay: 0.7s;
    }

    .service-card[data-index="7"] {
        transition-delay: 0.8s;
    }
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3A7BD5 0%, #00D2FF 100%);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(58, 123, 213, 0.15);
}

.service-icon {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A7BD5;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    background-color: rgba(58, 123, 213, 0.05);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: #6C9EE8;
}

.service-content {
    padding: 8px 35px 35px;
    flex-grow: 1;
    background-color: rgba(58, 123, 213, 0.05);
}

.service-content h3 {
    color: #2D3748;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
    margin: 0 auto;
    text-align: center;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    /*background: linear-gradient(90deg, #3A7BD5 0%, #00D2FF 100%);*/
}

.service-content p {
    color: #4A5568;
    font-size: 1rem;
    line-height: 1.8;
    margin-top: 15px;
    display: none; /* 默认隐藏 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.service-card:hover .service-content p {
    display: block; /* 悬停时显示 */
    opacity: 1;
    visibility: visible;
}

/* 滑动提示样式 */
.swipe-hint {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #888;
    padding: 10px 0;
    margin-top: 10px;
    animation: fadeInOut 2.5s ease-in-out infinite;
    display: none;
}

/* 动画：淡入淡出效果 */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(10px);
    }
}


/* 响应式调整 */
@media (max-width: 768px) {

    .services-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
        scrollbar-width: none; /* Firefox 滚动条变细 */
    }

    .services-grid::-webkit-scrollbar {
        height: 8px; /* 横向滚动条高度 */
    }

    .services-grid::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .service-card {
        flex: 0 0 100vw; /* 每张卡片占满整个屏幕宽度 */
        flex-shrink: 0; /* 防止卡片被压缩 */
        margin: 0 20px;
        scroll-snap-align: start;
        /*width: 280px;*/
    }

    .service-icon {
        height: 150px;
        font-size: 3.5rem;
    }

    .swipe-hint {
        display: block;
    }

    .service-content p {
        display: block;
    }
}


.highlight {
    color: #3A7BD5;
    font-weight: 500;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #6C9EE8;
    opacity: 0.3;
}

/* 案例展示 */
.cases {
    padding: 4rem 0;
    background-color: #FFF5F0; /* 暖调浅橙色，活力感 */
    background-image: linear-gradient(135deg, rgba(255, 122, 69, 0.05) 0%, rgba(255, 245, 240, 1) 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.case-card {
    background: #FFFFFF;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(58, 123, 213, 0.1);
    position: relative;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3A7BD5 0%, #00D2FF 100%);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(58, 123, 213, 0.15);
}

@media (min-width: 769px) {
    .case-card {
        opacity: 0;
        transform: translateY(40px);
        transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    /* 每个卡片有不同的初始偏移 */
    .case-card:nth-child(odd) {
        transform: translateX(-20%) rotate(-2deg);
    }

    .case-card:nth-child(even) {
        transform: translateX(20%) rotate(2deg);
    }

    .case-card.in-view {
        opacity: 1;
        transform: none;
    }

    .case-card:hover {
        box-shadow: 0 15px 30px rgba(58, 123, 213, 0.15);
        transform: translateY(-8px) !important;
    }
}


.case-icon {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3A7BD5;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    background-color: rgba(58, 123, 213, 0.05);
}

.case-icon i {
    transition: all 0.3s ease;
}

.case-card:hover .case-icon i {
    transform: scale(1.1);
    color: #6C9EE8;
}

.case-content {
    padding: 35px;
    flex-grow: 1;
}

.case-content h3 {
    color: #2D3748;
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 600;
    position: relative;
}

.case-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #3A7BD5 0%, #00D2FF 100%);
}

.case-content p {
    color: #4A5568;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 15px;
}

/* 滑动提示样式 */
.swipe-hint {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #888;
    padding: 10px 0;
    margin-top: 10px;
    animation: fadeInOut 2.5s ease-in-out infinite;
    display: none;
}

/* 动画：淡入淡出效果 */
@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(10px);
    }
}

.case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 0.8rem;
}

.stat-item {
    text-align: center;
    padding: 0.2rem;
}

.case-card[data-category="law"] .stat-value {
    color: #4338ca;
}

.case-card[data-category="health"] .stat-value {
    color: #db2777;
}

.stat-item .stat-value {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.stat-item .stat-label {
    font-size: 0.7rem;
    color: #64748b;
}


.case-content .tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
}

.case-tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

.case-card[data-category="law"] .case-tag {
    background: #e0e7ff;
    color: #4338ca;
}

.case-card[data-category="health"] .case-tag {
    background: #fce7f3;
    color: #db2777;
}

.view-demo {
    display: block;
    text-align: center;
    margin-top: 1rem;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.case-card[data-category="law"] .view-demo {
    background: #4338ca;
    color: white;
}

.case-card[data-category="health"] .view-demo {
    background: #db2777;
    color: white;
}

/* 触摸反馈效果 */
.view-demo:active {
    transform: scale(0.98);
}

/* 响应式调整 */
@media (max-width: 768px) {

    .cases-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
        scrollbar-width: none; /* Firefox 滚动条变细 */
    }

    .cases-grid::-webkit-scrollbar {
        height: 8px; /* 横向滚动条高度 */
    }

    .cases-grid::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .case-card {
        flex: 0 0 100vw; /* 每张卡片占满整个屏幕宽度 */
        flex-shrink: 0; /* 防止卡片被压缩 */
        margin: 0 20px;
        scroll-snap-align: start;
        /*width: 280px;*/
    }

    .case-icon {
        height: 150px;
        font-size: 3.5rem;
    }

    .swipe-hint {
        display: block;
    }
}

/* 关于我们 */
.about {
    padding: 4rem 0;
    background-color: #F0F8FF; /* 浅科技蓝，专业感 */
    background-image: linear-gradient(135deg, rgba(100, 210, 255, 0.05) 0%, rgba(240, 248, 255, 1) 100%);
}

/* 默认桌面布局：左右排列 */
.about-text {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #4f46e5;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #64748b;
    font-size: 1.05rem;
}

.startup-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #8b5cf6;
}

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

.feature-icon {
    font-size: 2.5rem;
    color: #8b5cf6;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #4f46e5;
}

.feature-card p {
    color: #64748b;
}

@media (min-width: 769px) {
    /* 基础动画类 */
    .animate-element {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease;
    }

    .animate-element.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    /* 错开延迟时间 */
    [data-animate-group] .animate-element:nth-child(1) {
        transition-delay: 0.2s;
    }

    [data-animate-group] .animate-element:nth-child(2) {
        transition-delay: 0.4s;
    }

    [data-animate-group] .animate-element:nth-child(3) {
        transition-delay: 0.6s;
    }

    [data-animate-group] .animate-element:nth-child(4) {
        transition-delay: 0.8s;
    }

    .slide-left {
        transform: translateX(-40px);
    }

    .slide-right {
        transform: translateX(40px);
    }

}

/* 移动端布局：上下排列 */
@media (max-width: 768px) {
    .about-text {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-text img {
        margin-bottom: 20px; /* 图片与文字之间留点间距 */
    }

    .about-text > div {
        padding-left: 0;
        padding-top: 10px;
    }

    .startup-features {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* iOS 流畅滚动 */
        scrollbar-width: none; /* Firefox 滚动条变细 */
    }

    .startup-features::-webkit-scrollbar {
        height: 8px; /* 横向滚动条高度 */
    }

    .startup-features::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }

    .feature-card {
        flex: 0 0 100vw; /* 每张卡片占满整个屏幕宽度 */
        flex-shrink: 0; /* 防止卡片被压缩 */
        margin: 0 20px;
        scroll-snap-align: start;
        /*width: 280px;*/
    }
}

/* 联系我们 */
.contact {
    padding: 4rem 0;
    background-color: #F8F9FF; /* 极浅蓝紫色，科技感基础 */
    background-image: linear-gradient(135deg, rgba(168, 180, 252, 0.1) 0%, rgba(248, 249, 255, 1) 100%);
}


.required {
    color: #e63946;
    font-size: 1.2em;
    vertical-align: middle;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (min-width: 769px) {
    .contact-form {
        opacity: 0;
        transform: scale(0.95);
        transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    }

    .contact-form.in-view {
        opacity: 1;
        transform: scale(1);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    box-sizing: border-box; /* 关键修复 */
    font-size: 1rem;
    transition: border-color 0.3s ease;
}


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

.form-group textarea {
    height: 150px;
}

.submit-button {
    background-color: #007BFF;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #0056b3;
}

.form-message {
    margin-top: 1rem;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* 页脚 */
footer {
    background: #1e1b4b;
    color: #e0e7ff;
    padding: 3rem 1rem 1.5rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap; /* 允许换行以适配小屏幕 */
    gap: 2rem; /* 各区块之间的间距 */
}

.footer-about {
    padding-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.footer-logo {
    display: flex;
    gap: 24px;
    align-items: flex-end;
}

.footer-logo p {
    margin-bottom: 1px;
    font-size: 1.2rem !important;
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    flex: 1;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #8b5cf6;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: #e0e7ff;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: white;
    transform: translateX(5px);
}

.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
}

.footer-contact i {
    margin-right: 0.7rem;
    color: #8b5cf6;
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #8b5cf6;
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.7;
}


@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        align-items: start;
        flex-direction: column;
    }

    .mobile-hidden {
        display: none;
    }
}


.copy-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    animation: fade-in 0.3s forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.copy-toast.success {
    background: rgba(40, 167, 69, 0.9);
}

.copy-toast.error {
    background: rgba(220, 53, 69, 0.9);
}

.copy-toast.fade-out {
    animation: fade-out 0.3s forwards;
}

@keyframes fade-in {
    from {
        opacity: 0;
        bottom: 20px;
    }
    to {
        opacity: 1;
        bottom: 30px;
    }
}

@keyframes fade-out {
    from {
        opacity: 1;
        bottom: 30px;
    }
    to {
        opacity: 0;
        bottom: 40px;
    }
}

.video-modal {
    display: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out forwards;
}

.modal-content {
    position: relative;
    background-color: inherit;
    z-index: 100;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 700px;
    margin: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    opacity: 0;
}

.video-modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.video-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.show {
    opacity: 1;
    visibility: visible;
}

#modalVideo {
    width: 100%;
    height: auto;
    display: block;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    z-index: 101;
    color: #000;
    cursor: pointer;
    background-color: transparent; /* 背景色透明 */
    border: none;
    padding: 5px 10px;
    transition: all 0.3s ease; /* 添加过渡动画 */
}

/* 鼠标悬停时添加背景色和缩放效果 */
.close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1); /* 淡色背景 */
    transform: scale(1.1); /* 放大一点 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* 添加阴影 */
}

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

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
