/* 基础样式与变量定义 */
:root {
    --primary: #00a8ff;
    --secondary: #192a56;
    --dark: #0c1427;
    --light: #f5f6fa;
    --accent: #9c88ff;
    
    /* 轮播核心变量 - 响应式适配 */
    --post-size: 70vw;
    --post-spacing: 2vw;
    --scale-small: 0.8;
    --carousel-height: 50vh;
    --btn-group-bottom: -50px;
    
    /* 层级变量 */
    --z-middle: 3;
    --z-side: 2;
    --z-hide: 1;
}

/* 响应式变量适配 */
@media (max-width: 992px) {
    :root {
        --post-size: 75vw;
        --post-spacing: 1.5vw;
        --scale-small: 0.75;
        --carousel-height: 45vh;
        --btn-group-bottom: -45px;
    }
}

@media (max-width: 768px) {
    :root {
        --post-size: 85vw;
        --post-spacing: 1vw;
        --scale-small: 0.65;
        --carousel-height: 40vh;
        --btn-group-bottom: -40px;
    }
}

@media (max-width: 480px) {
    :root {
        --post-size: 90vw;
        --post-spacing: 0.5vw;
        --scale-small: 0.6;
        --carousel-height: 35vh;
        --btn-group-bottom: -35px;
    }
}

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus,
a:active {
    color: inherit;
    outline: none;
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* 通用组件样式 */
section {
    padding: 100px 0;
}

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

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

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: inline-block;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 导航栏样式 */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
    height: auto;
}

header.scrolled {
    background: rgba(12, 20, 39, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    color: var(--primary);
    margin-right: 10px;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--light);
    position: relative;
    z-index: 1001;
}

.nav-links.active {
    left: 0 !important;
}

/* 英雄区域样式 */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 0;
}

.hero-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    object-fit: cover;
    opacity: 0.8;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.7;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(12, 20, 39, 0.7) 0%, rgba(25, 42, 86, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-contact {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.btn-contact::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-contact:hover {
    background: var(--accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 168, 255, 0.3);
}

.btn-contact:hover::after {
    left: 100%;
}

/* 服务模块样式 */
.products {
    background: var(--secondary);
}
.products .container {
    max-width: 1400px;
    min-height: 700px;
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.product-card {
    width: 100%;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.product-card .card {
    width: 100%;
}

.product-card .title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 15px 0;
}

.product-card .hover-info {
    font-size: 1rem;
    line-height: 1.7;
    opacity: 0.9;
    margin-top: 20px;
}

.hover-wrapper .btn {
    margin-top: 20px;
}

.pic-wrapper img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}
/* 服务流程 */
/* 服务流程整体 */
.services {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    padding: 100px 0;
}

/* 时间线容器 */
.timeline-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    perspective: 1000px; /* 3D 透视基础 */
}

/* 时间线主线（带流动光效） */
.timeline-main {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: linear-gradient(to bottom, var(--primary), var(--accent), transparent);
    border-radius: 2px;
    opacity: 0.8;
    z-index: 1;
    /* 流动光效动画 */
    background-size: 100% 300%;
    animation: flow 5s linear infinite;
}

@keyframes flow {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* 步骤容器 */
.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px) rotateY(10deg); /* 初始 3D 偏移 */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; /* 开启 3D 变换 */
}

/* 步骤激活样式（JS 控制） */
.timeline-item.active {
    opacity: 1;
    transform: translateY(0) rotateY(0);
}

/* 步骤节点 */
.timeline-dot {
    position: absolute;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--dark);
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.4s ease;
    cursor: pointer;
}

.timeline-dot::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.2;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.3); opacity: 0.1; }
}

.dot-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    position: relative;
    z-index: 10;
    transition: color 0.3s ease;
}

/* 步骤节点 hover 效果 */
.timeline-dot:hover {
    transform: translateX(-50%) scale(1.1);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(156, 136, 255, 0.5);
}

.timeline-dot:hover .dot-number {
    color: var(--accent);
}

/* 步骤内容 */
.timeline-content {
    position: relative;
    width: 30%;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1) 0%, rgba(156, 136, 255, 0.05) 100%);
    border-radius: 15px;
    border: 1px solid rgba(0, 168, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d; /* 3D 变换 */
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 25px;
    width: 20px;
    height: 20px;
    background: inherit;
    border: inherit;
    border-right: none;
    border-top: none;
    z-index: -1;
    transition: transform 0.3s ease;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
}

.timeline-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0; /* 初始隐藏描述 */
    transform: translateY(10px);
    transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

/* 左侧步骤 */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: calc(50% + 40px);
    text-align: left;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -10px;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content h3::after {
    left: 0;
}

/* 右侧步骤 */
.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(20% - 40px);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -10px;
    transform: rotate(-135deg);
}

.timeline-item:nth-child(even) .timeline-content h3::after {
    left: auto;
    right: 0;
}

/* 步骤内容 hover 效果 */
.timeline-content:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(156, 136, 255, 0.4);
    box-shadow: 0 15px 40px rgba(0, 168, 255, 0.3);
}

.timeline-content:hover h3::after {
    width: 40px;
}

.timeline-content:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* 平板响应式适配（768px 以下） */
@media (max-width: 768px) {
    .timeline-main {
        left: 40px;
    }

    .timeline-item {
        margin-left: 80px;
        margin-bottom: 80px;
    }

    .timeline-dot {
        left: -40px;
        transform: translateX(0);
        width: 50px;
        height: 50px;
    }

    .timeline-content {
        width: 100%;
        margin: 0 !important;
        text-align: left;
    }

    .timeline-content::before {
        top: 20px;
        left: -10px !important;
        transform: rotate(45deg) !important;
    }

    .timeline-content h3::after {
        left: 0 !important;
        right: auto !important;
    }
    .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}

}

/* 手机响应式适配（480px 以下） */
@media (max-width: 480px) {
    .timeline-main {
        left: 30px;
    }

    .timeline-item {
        margin-left: 60px;
        margin-bottom: 60px;
    }

    .timeline-dot {
        left: -30px;
        width: 40px;
        height: 40px;
    }

    .dot-number {
        font-size: 1rem;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }
}
/* 案例展示样式 */
.cases {
    background: var(--secondary);
    padding: 80px 0 120px;
    position: relative;
    z-index: 1;
}

.case-carousel {
    position: relative;
    width: 100%;
    height: var(--carousel-height);
    max-height: 500px;
    margin: 0 auto;
    overflow: visible;
}

#banner, .img-list {
    width: 100%;
    height: 100%;
    position: relative;
}

.img-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--post-size);
    height: 70%;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: var(--z-hide);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0.5;
}

.img-box.active {
    z-index: var(--z-middle);
    transform: translate(-50%, -50%) scale(1);
    height: 100%;
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0, 168, 255, 0.4);
}

.img-box.prev {
    z-index: var(--z-side);
    transform: translate(calc(-50% - var(--post-size) / 2 - var(--post-spacing)), -50%) scale(var(--scale-small));
    opacity: 0.7;
}

.img-box.next {
    z-index: var(--z-side);
    transform: translate(calc(-50% + var(--post-size) / 2 + var(--post-spacing)), -50%) scale(var(--scale-small));
    opacity: 0.7;
}

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

.img-box .info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--light);
    text-align: center;
    z-index: 10;
}

.btn-group {
    position: absolute;
    bottom: var(--btn-group-bottom);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 999;
    pointer-events: auto;
}

.carousel-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    pointer-events: auto;
    outline: none;
    transition: all 0.3s ease;
}

.arrow {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid white;
    border-right: 2px solid white;
}

.left-arrow {
    transform: rotate(-135deg);
    margin-left: 3px;
}

.right-arrow {
    transform: rotate(45deg);
    margin-right: 3px;
}

.carousel-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 168, 255, 0.7);
}

.carousel-btn:active {
    transform: scale(0.95);
}

/* 关于我们样式 */
.team-stats {
    margin-bottom: 60px;
}

.stats-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.stat-icon {
    margin: 0 auto 20px;
}
.stat-icon img{
    width: 48px;
    height: 48px;
}
.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.advantages-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

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

.advantage-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.advantage-icon {
    margin-bottom: 20px;
}
.advantage-icon img{
    width: 56px;
    height: 56px;
}

/* 团队介绍样式 */
.team {
    padding: 80px 0;
}

.team-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.advantage-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.team-cta {
    text-align: center;
    margin-top: 60px;
}

.btn-more {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 联系区域样式 */
.contact {
    background: var(--secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-icon .icon {
    width: 30px;
    height: 30px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

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

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* 页脚样式 */
footer {
    background: var(--dark);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: var(--light);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.footer-column img {
    width: 100px;
    height: 100px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式详细适配 */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .product-card .title {
        font-size: 1.4rem;
    }

    .product-card .hover-info {
        font-size: 0.95rem;
    }

    .btn {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* 导航栏移动端适配 */
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: left 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links li {
        margin: 15px 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
    }

    /* 英雄区域适配 */
    .hero h1 {
        font-size: 2.3rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .btn, .btn-contact {
        width: 100%;
        text-align: center;
    }

    .btn-contact {
        padding: 12px 0;
    }

    /* 轮播按钮适配 */
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .arrow {
        width: 10px;
        height: 10px;
    }
        /* 轮播特殊适配 */
    .img-box.prev {
        transform: translate(calc(-50% - var(--post-size) / 2 - var(--post-spacing) - 5px), -50%) scale(var(--scale-small));
    }

    .img-box.next {
        /* 关键修复：添加 -5px 修正右侧超出问题 */
        transform: translate(calc(-75% + var(--post-size) / 2 + var(--post-spacing) - 5px), -50%) scale(var(--scale-small));
    }


}

@media (max-width: 480px) {
    section {
        padding: 70px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .product-card .title {
        font-size: 1.2rem;
    }

    .product-card .hover-info {
        font-size: 0.85rem;
    }

    .btn {
        font-size: 0.85rem;
        padding: 10px 25px;
    }

    /* 轮播特殊适配 */
    .img-box.prev {
        transform: translate(calc(-50% - var(--post-size) / 2 - var(--post-spacing) - 5px), -50%) scale(var(--scale-small));
    }

    .img-box.next {
        /* 关键修复：添加 -5px 修正右侧超出问题 */
        transform: translate(calc(-80% + var(--post-size) / 2 + var(--post-spacing) - 5px), -50%) scale(var(--scale-small));
    }


    .img-box .info h3 {
        font-size: 0.8rem;
        padding: 15px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .btn-group {
        gap: 15px;
    }

    .carousel-btn {
        width: 35px;
        height: 35px;
        border-width: 1.5px;
    }

    .arrow {
        width: 9px;
        height: 9px;
        border-width: 1.5px;
    }

    /* 案例区域标题适配 */
    .cases .section-title {
        margin-bottom: 40px;
    }

    .section-title p {
        font-size: 0.9rem;
        padding: 0 20px;
    }
}

/* 滚动动画排除轮播容器 */
.fade-in:not(.case-carousel) {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible:not(.case-carousel) {
    opacity: 1;
    transform: translateY(0);
}

/* 父元素点击穿透修复 */
#banner, .img-list, .case-carousel {
    pointer-events: auto !important;
}
@media (max-width: 320px) {
    :root {
        --post-spacing: 0.2vw; /* 进一步缩小间距 */
        --btn-group-bottom: -30px;
    }

    .img-box.prev {
        transform: translate(calc(-50% - var(--post-size) / 2 - var(--post-spacing) - 8px), -50%) scale(var(--scale-small));
    }

    .img-box.next {
        transform: translate(calc(-50% + var(--post-size) / 2 + var(--post-spacing) - 8px), -50%) scale(var(--scale-small));
    }
}