* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 顶部栏 */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.top-bar-content {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
}

.logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.app-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* 应用下载区域 */
.download-section {
    margin-top: 56px;
    background-image: url('../img/bj.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 24px;
    position: relative;
    overflow: hidden;
}

.download-section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(30, 64, 175, 0.85) 0%, rgba(37, 99, 235, 0.75) 50%, rgba(15, 23, 42, 0.9) 100%);
    z-index: 0;
}

.download-content {
    text-align: center;
    z-index: 1;
    animation: downloadContentFade 0.8s ease-out;
}

@keyframes downloadContentFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

.slogan {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.slogan-line {
    display: block;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25), 0 0 40px rgba(16, 185, 129, 0.15);
}

.slogan-line.slogan-accent {
    background: white;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(52, 211, 153, 0.4));
}

.sub-slogan {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 36px;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.03em;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    border: none;
    padding: 20px 56px;
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
}

.download-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
}

.download-btn:active {
    transform: translateY(-2px) scale(1);
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.4);
}

.download-btn-text {
    position: relative;
    z-index: 1;
}

.download-btn-arrow {
    font-size: 1.25em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    animation: downloadArrowBounce 2s ease-in-out infinite;
}

@keyframes downloadArrowBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* 第一区域：服务器节点 */
.server-section {
    padding: 50px 20px;
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.4;
}

.server-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
}

.server-description {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

/* 用户评价区域 */
.testimonial-section {
    padding: 30px 20px 0px 20px;
    background-color: #f8f9fa;
}

.testimonial-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-card.prev {
    transform: translateX(-100%);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid #33C681;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-quote {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: #33C681;
    opacity: 0.2;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 0 10px;
    flex: 1;
}

.testimonial-contact {
    font-size: 14px;
    color: #999;
    margin-top: auto;
}

.carousel-btn {
    position: absolute;
    top: calc(50% - 40px);
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(51, 198, 129, 0.8);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background-color: #33C681;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-left {
    left: -20px;
}

.carousel-btn-right {
    right: -20px;
}

/* 选择原因区域 */
.features-section {
    padding: 50px 20px;
    background-color: #ffffff;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    text-align: center;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.feature-description {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    max-width: 500px;
}

/* 底部 */
.footer {
    padding: 30px 20px;
    text-align: center;
    background-color: #f8f9fa;
}

.footer p {
    font-size: 12px;
    color: #999;
}

/* iPad适配 */
@media (min-width: 768px) and (max-width: 1024px) {
    .download-section {
        min-height: 500px;
        padding: 60px 24px;
    }
    
    .download-btn {
        padding: 22px 64px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .server-description {
        font-size: 18px;
    }
    
    .testimonial-text {
        font-size: 18px;
    }
    
    .testimonial-contact {
        font-size: 16px;
    }
    
    .testimonial-avatar {
        width: 100px;
        height: 100px;
    }
    
    .testimonial-card {
        padding: 40px 35px;
    }
    
    .testimonial-quote {
        font-size: 100px;
    }
    
    .feature-title {
        font-size: 24px;
    }
    
    .feature-description {
        font-size: 17px;
    }
    
    .feature-icon {
        width: 100px;
        height: 100px;
    }
    
    .carousel-btn {
        width: 48px;
        height: 48px;
    }
    
    .footer p {
        font-size: 14px;
    }
    
    .app-name {
        font-size: 22px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .server-section {
        padding: 70px 20px;
    }
    
    .testimonial-section {
        padding: 50px 20px 0px 20px;
    }
    
    .testimonial-container {
        max-width: 600px;
    }
    
    .features-section {
        padding: 70px 20px;
    }
    
    .feature-item {
        margin-bottom: 50px;
    }
    
    .top-bar {
        padding: 15px 30px;
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .download-section {
        min-height: 380px;
        padding: 40px 20px;
    }
    
    .download-badge {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 16px;
    }
    
    .download-btn {
        padding: 18px 44px;
    }
    
    .sub-slogan {
        margin-bottom: 28px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn-left {
        left: -15px;
    }
    
    .carousel-btn-right {
        right: -15px;
    }
    
    .testimonial-card {
        padding: 25px 20px;
    }
    
    .testimonial-quote {
        font-size: 60px;
        top: 15px;
        right: 20px;
    }
}
