/* 全局变量 */
:root {
    --primary-color: #4A90E2;
    --secondary-color: #34C759;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --text-color: #333333;
    --transition: all 0.3s ease;
}

/* 全局样式 */
* {
    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);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.login-btn {
    padding: 8px 24px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* Banner区域 */
.banner {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(135deg, #EBF4FF, #E6FFE6);
    overflow: hidden;
}

.banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.banner-content {
    flex: 1;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.banner p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

/* Banner按钮样式 */
.banner-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.primary-btn, .secondary-btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover, .secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* 手机展示区域 */
.phone-showcase {
    position: relative;
    height: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.phone-container {
    position: relative;
    width: 300px;
    height: 600px;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* 手机外壳图片 */
.phone-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* 降低层级为最低 */
}

/* 轮播图样式 */
.carousel-container {
    position: absolute;
    width: 86%;     /* 微调宽度 */
    height: 74%;    /* 微调高度 */
    top: 13%;       /* 微调顶部位置 */
    left: 7%;       /* 微调左侧位置 */
    z-index: 2;     /* 高于手机框架 */
    overflow: hidden;
    border-radius: 24px; /* 添加圆角 */
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 3; /* 确保高于其他元素 */
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 25;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* 为什么选择我们 */
.why-choose-us {
    padding: 60px 0;
    background-color: var(--light-color);
    position: relative;
    z-index: 6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
}

/* 使用流程 */
.how-to-use {
    padding: 60px 0;
    position: relative;
    z-index: 5;
    margin-top: -100px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

/* 用户反馈 */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin-top: -50px;
    overflow: hidden;
}

.testimonial-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 20px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.testimonial-card {
    flex: 0 0 300px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.user-info {
    margin-bottom: 15px;
}

.user-info h4 {
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.user-title {
    color: #666;
    font-size: 0.9rem;
}

.feedback {
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

.rating {
    color: #ffd700;
    font-size: 1.2rem;
}

/* 底部样式 */
.footer {
    background: var(--dark-color);
    padding: 40px 0;
    color: white;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0 15px;
    transition: var(--transition);
}

.footer-links span {
    color: rgba(255, 255, 255, 0.4);
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
}

.copyright p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

.icp {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.icp:hover {
    color: white;
}

/* 底部固定横条 */
.mobile-float-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.mobile-float-bar .auto-exchange {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.mobile-float-bar .enter-btn {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .banner .container {
        flex-direction: column;
        text-align: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .phone-showcase {
        height: 600px;
    }

    .phone-container {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 768px) {
    .header .container {
        height: 60px;
    }

    .contact-info span {
        display: none;
    }

    .banner h1 {
        font-size: 2.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        grid-template-columns: 1fr;
    }

    .testimonial-track {
        grid-template-columns: 1fr;
    }

    .phone-showcase {
        height: 500px;
    }

    .phone-container {
        width: 260px;
        height: 520px;
    }

    .carousel-slide img {
        width: 85%;
        height: 85%;
        margin-left: 20px;
        margin-top: 15px;
    }

    .mobile-float-bar {
        display: flex;
    }

    .how-to-use {
        margin-top: -50px;
    }

    .testimonial-card {
        flex: 0 0 280px;
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .copyright {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .banner h1 {
        font-size: 2rem;
    }

    .phone-showcase {
        height: 450px;
    }

    .phone-container {
        width: 240px;
        height: 480px;
    }

    .testimonial-card {
        flex: 0 0 260px;
        padding: 15px;
    }
} 