/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

section {
    display: block;
    width: 100%;
}

.container {
    width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: transparent;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.header .nav ul li a {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.header .nav ul li a:hover {
    color: #f0f0f0;
}

.header .language select {
    background-color: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.header .language select option {
    background-color: #333;
    color: #fff;
}

.logo img {
    height: 40px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: #4CAF50;
}

.language select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

/* 轮播图 */
.banner {
    position: relative;
    margin-top: 0;
    height: 600px;
    overflow: hidden;
    width: 100%;
}

.banner-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 20px;
    margin-bottom: 10px;
}

.banner-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.banner-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255,255,255,0.5);
    color: #333;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.banner-controls button:hover {
    background-color: rgba(255,255,255,0.8);
}

/* 悬浮图片 */
.floating-image {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
}

.floating-image img {
    height: 400px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@keyframes float {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    50% {
        transform: translateY(-55%) rotate(2deg);
    }
    100% {
        transform: translateY(-50%) rotate(0deg);
    }
}

/* 轮播图下载按钮 */
.banner-download {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 100;
}

.banner-download .download-btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
    background-image: url('/images/btn.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 180px;
    min-width: 180px;
}

.banner-download .download-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.banner-download .download-btn.highlight {
    animation: buttonGlow 1.5s ease-in-out infinite;
}

.banner-download .download-btn:nth-child(1).highlight {
    animation-delay: 0s;
}

.banner-download .download-btn:nth-child(2).highlight {
    animation-delay: 0.2s;
}

@keyframes buttonGlow {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-8px);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
        filter: brightness(1.2);
    }
}

.banner-download .download-btn.pulse {
    animation: buttonPulse 0.6s ease-out;
}

@keyframes buttonPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
    }
    100% {
        transform: scale(1);
    }
}

.banner-download .icon {
    margin-right: 8px;
    font-size: 20px;
}

.banner-download .icon.apple {
    width: 20px;
    height: 20px;
    background-image: url('/images/apple.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-download .icon.apple:before {
    content: '';
}

.banner-download .icon.android {
    width: 20px;
    height: 20px;
    background-image: url('/images/andro.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-download .icon.android:before {
    content: '';
}

.icon.h5:before {
    content: "🌐";
}

/* App展示区 */
.app-showcase {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.app-showcase .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-phone {
    margin-right: 60px;
}

.app-phone img {
    height: 500px;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    transition: transform 0.3s;
}

.download-btn:hover {
    transform: translateY(-5px);
}

.icon {
    margin-right: 10px;
    font-size: 24px;
}

.icon.apple:before {
    content: "🍎";
}

.icon.android:before {
    content: "🤖";
}

/* 在线客服 */
.customer-service {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.customer-service h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.customer-service p {
    font-size: 18px;
    margin-bottom: 40px;
}

.service-contact p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
}

/* 底部背景图 */
.bottom-background {
    width: 100%;
    background-color: #fff;
    padding: 40px 0;
}

.background-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
}

.background-text {
    flex: 0 0 250px;
    text-align: left;
}

.background-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: normal;
}

.background-text .text-divider {
    width: 250px;
    height: 3px;
    background-color: #dadee3;
    margin-bottom: 15px;
}

.background-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.background-image {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-end;
}

.background-image img {
    max-width: 90%;
    height: auto;
    display: block;
}

/* 底部背景图2 */
.bottom-background-2 {
    width: 100%;
    background-color: #fff;
    padding: 40px 0;
}

.background2-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    justify-content: space-between;
}

.background2-image {
    flex: 0 0 50%;
    display: flex;
    justify-content: flex-start;
}

.background2-image img {
    max-width: 90%;
    height: auto;
    display: block;
}

.background2-text {
    flex: 0 0 250px;
    text-align: left;
}

.background2-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: normal;
}

.text-divider {
    width: 250px;
    height: 3px;
    background-color: #dadee3;
    margin-bottom: 15px;
}

.background2-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* iOS下载弹窗 */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.download-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
}

.modal-image-content {
    max-width: 300px;
    padding: 20px;
    position: relative;
}

.modal-image-body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-image-body img {
    max-width: 90%;
    height: auto;
    display: block;
}

.modal-download-section {
    padding: 0px;
    text-align: center;
}

.ios-download-link {
    display: inline-block;
    padding: 9px 30px;
    background-color: #4CAF50;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0px;
    transition: background-color 0.3s, transform 0.3s;
}

.ios-download-link:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.install-guide {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    text-align: left;
    margin-top: 15px;
}

.guide-download-link {
    display: inline-block;
    color: #4CAF50;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
    transition: color 0.3s, text-decoration 0.3s;
}

.guide-download-link:hover {
    color: #45a049;
    text-decoration: underline;
}

@keyframes modalFadeIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background-color: #4CAF50;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.modal-image-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
}

.close-btn:hover {
    background-color: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 30px;
}

.link-section {
    margin-bottom: 20px;
}

.link-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.download-link {
    display: block;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    word-break: break-all;
    transition: background-color 0.3s, transform 0.3s;
}

.download-link:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.modal-footer {
    background-color: #f9f9f9;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid #e0e0e0;
}

.modal-footer .close-btn {
    background-color: #4CAF50;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    width: auto;
    height: auto;
}

.modal-footer .close-btn:hover {
    background-color: #45a049;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        padding: 10px;
    }

    .nav ul {
        margin: 10px 0;
    }

    .nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }

    .banner {
        height: 400px;
    }

    .slide-content h2 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .app-showcase .container {
        flex-direction: column;
    }

    .app-phone {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .app-phone img {
        height: 300px;
    }

    .floating-image {
        right: 5%;
    }

    .floating-image img {
        height: 250px;
    }

    .banner-download {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        bottom: 30px;
    }

    .banner-download .download-btn {
        padding: 8px 20px;
        font-size: 12px;
        width: 140px;
        min-width: 140px;
    }

    /* 底部背景图响应式 */
    .background-content,
    .background2-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .background-text,
    .background2-text {
        flex: 0 0 40%;
        padding: 0 10px;
        margin-bottom: 0;
    }

    .background-text h3,
    .background2-text h3 {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .background-text p,
    .background2-text p {
        font-size: 12px;
        line-height: 1.4;
    }

    .background-image,
    .background2-image {
        flex: 0 0 60%;
        justify-content: flex-end;
    }

    .background2-image {
        justify-content: flex-start;
    }

    .background-image img,
    .background2-image img {
        max-width: 80%;
    }

    .background-text .text-divider,
    .text-divider {
        width: 120px;
        height: 2px;
        margin-bottom: 10px;
    }

    /* 弹窗响应式 */
    .modal-image-content {
        max-width: 90%;
    }

    .install-guide {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .floating-image {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        text-align: center;
        margin: 20px 0;
        animation: none;
    }

    .floating-image img {
        height: 200px;
    }

    .banner {
        height: 300px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .banner-download {
        bottom: 20px;
    }

    .banner-download .download-btn {
        padding: 8px 20px;
        font-size: 12px;
    }

    .download-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}