:root {
    --primary-color: #FE2C55;
    --secondary-color: #161823;
    --text-color: #333333;
    --dark-bg: #f0f0f0;
    --transition-time: 0.8s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow: hidden;
    height: 100vh;
    background: radial-gradient(circle at center, rgba(245, 245, 245, 0.8) 0%, rgba(230, 230, 230, 0.9) 70%);
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/bg-pattern.png') repeat;
    background-size: 200px;
    opacity: 0.05;
    z-index: -1;
}

/* 头部导航 */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 36px;
    margin-right: 10px;
}

.logo span {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 16px;
    position: relative;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* 标签 */
.hero-tag {
    position: fixed;
    top: 100px;
    left: 40px;
    z-index: 50;
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 主要内容区域 */
.main-content {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slides-wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-time) ease;
    padding: 160px 40px 80px;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.slide-content {
    display: flex;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* 文字内容 */
.text-content {
    flex: 1;
    max-width: 50%;
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.1s;
}

.subtitle {
    font-size: 18px;
    color: rgba(51, 51, 51, 0.8);
    margin-bottom: 60px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.2s;
}

.feature-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transition-delay: 0.3s;
}

.feature-desc p {
    font-size: 16px;
    color: rgba(51, 51, 51, 0.8);
    margin-bottom: 10px;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

.feature-desc p:nth-child(1) {
    transition-delay: 0.4s;
}

.feature-desc p:nth-child(2) {
    transition-delay: 0.5s;
}

/* 图片内容 */
.image-content {
    flex: 1;
    display: flex;
    position: relative;
    height: 100%;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-main {
    position: relative;
    right: -10%;
    bottom: -10%;
    z-index: 1;
    transform: translateX(300px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transition-delay: 0.1s;
    width: 85%;
}

.image-secondary {
    position: absolute;
    top: 10%;
    left: 10%;
    z-index: 2;
    transform: translateX(-300px);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    transition-delay: 0.2s;
    width: 75%;
}

.image-main img, .image-secondary img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.slide.active .image-main {
    transform: translateX(0);
    opacity: 1;
}

.slide.active .image-secondary {
    transform: translateX(0);
    opacity: 1;
}

.slide.active .image-main.animated {
    animation: bounceRight 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both, floatRight 6s ease-in-out infinite 1s;
}

.slide.active .image-secondary.animated {
    animation: bounceLeft 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both, floatLeft 6s ease-in-out infinite 1s;
}

@keyframes bounceRight {
    0% { transform: translateX(0); }
    70% { transform: translateX(25px); }
    100% { transform: translateX(0); }
}

@keyframes bounceLeft {
    0% { transform: translateX(0); }
    70% { transform: translateX(-25px); }
    100% { transform: translateX(0); }
}

@keyframes floatRight {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes floatLeft {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(10px) translateX(5px);
    }
    100% {
        transform: translateY(0px) translateX(0px);
    }
}

/* 激活状态的动画 */
.slide.active .text-content h1,
.slide.active .subtitle {
    transform: translateY(0);
    opacity: 1;
}

.slide.active .feature-title,
.slide.active .feature-desc p {
    transform: translateX(0);
    opacity: 1;
}

/* 导航点 */
.slide-nav {
    position: fixed;
    z-index: 50;
}

.slide-dots {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 60;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s;
}

.dot:hover {
    background-color: rgba(0, 0, 0, 0.4);
}

.dot.active {
    background-color: var(--primary-color);
    transform: scale(1.3);
}

/* 箭头导航 */
.slide-arrows {
    position: fixed;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 60;
}

.arrow {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.8;
    pointer-events: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 1);
    opacity: 1;
}

.arrow.prev {
    position: absolute;
    left: 120px;
}

.arrow.next {
    position: absolute;
    right: 120px;
}

/* 页脚 */
.footer {
    width: 100%;
    text-align: center;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.8);
}

.footer-text {
    font-size: 12px;
    color: rgba(51, 51, 51, 0.5);
    letter-spacing: 2px;
}

/* 首页特殊处理 - footer固定在底部 */
body.home-page .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .text-content h1 {
        font-size: 42px;
    }
    
    .feature-title {
        font-size: 48px;
    }
    
    .arrow.prev {
        left: 80px;
    }
    
    .arrow.next {
        right: 80px;
    }
}

@media (max-width: 992px) {
    .slide-content {
        flex-direction: column;
    }
    
    .text-content {
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .text-content h1 {
        font-size: 36px;
    }
    
    .feature-title {
        font-size: 42px;
    }
    
    .image-content {
        align-items: center;
    }
    
    .image-main img {
        max-height: 40vh;
    }
    
    .image-secondary {
        bottom: 10%;
        right: 10%;
    }
    
    .image-secondary img {
        max-height: 30vh;
    }
}

@media (max-width: 768px) {
    .slide {
        padding: 120px 20px 40px;
    }
    
    .header-container {
        padding: 0 20px;
    }
    
    .nav ul {
        gap: 20px;
    }
    
    .text-content h1 {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .feature-title {
        font-size: 36px;
    }
    
    .slide-dots {
        right: 15px;
    }
    
    .slide-arrows {
        padding: 0 20px;
    }
    
    .arrow {
        width: 40px;
        height: 40px;
    }
    
    .arrow.prev {
        left: 40px;
    }
    
    .arrow.next {
        right: 40px;
    }
}

/* 客服悬浮框样式 - 调整为顶部锚定 */
.customer-service {
    position: fixed;
    right: 20px;
    top: 200px; /* 从底部锚定改为顶部锚定 */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.cs-icon {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5; /* 从红色改为灰白色 */
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 5px rgba(0, 0, 0, 0.05); /* 添加内阴影增加立体感 */
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05); /* 添加细边框增强立体感 */
}

.cs-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.8), inset 0 -2px 5px rgba(0, 0, 0, 0.05);
    background-color: #ffffff; /* 悬停时变为纯白色 */
}

.cs-icon img {
    width: 32px;
    height: 32px;
}

.cs-content {
    position: absolute;
    right: 70px;
    top: 0; /* 改为顶部对齐，而不是底部对齐 */
    width: 200px;
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.customer-service:hover .cs-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.cs-content h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.cs-content p {
    font-size: 12px;
    color: rgba(51, 51, 51, 0.7);
    margin-bottom: 10px;
}

.cs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.cs-btn:hover {
    background-color: #e41e3f;
}

.qq-icon {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}

.cs-phone {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 10px;
    text-align: center;
}

.phone-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .customer-service {
        right: 15px;
        top: 150px; /* 移动设备上也改为顶部锚定 */
    }
    
    .cs-icon {
        width: 50px;
        height: 50px;
        border-radius: 10px; /* 移动设备上的圆角 */
    }
    
    .cs-icon img {
        width: 26px;
        height: 26px;
    }
    
    .cs-content {
        right: 60px;
        width: 180px;
    }
} 