/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a1128 0%, #1f4068 50%, #0f3460 100%);
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.8);
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    height: 55px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu-btn {
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.customer-service {
    font-size: 1rem;
    color: #ffffff;
    font-weight: 500;
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* 英雄区域样式 */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, #0a1128 0%, #1f4068 50%, #0f3460 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 64, 104, 0.3) 0%, rgba(10, 17, 40, 0.8) 100%);
    z-index: -1;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-phone {
    margin: 40px auto;
    position: relative;
    max-width: 300px;
    height: 520px;
    z-index: 1;
}



.hero-phone::after {
    content: '';
    position: absolute;
    bottom: -350px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: url('./db.png') no-repeat center center;
    background-size: contain;
    z-index: -1;
    opacity: 0.8;
}

/* 底部行动区域样式 */
.cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.qrcode-group {
    display: flex;
    gap: 30px;
    align-items: center;
}

.qrcode {
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .cta-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .qrcode-group {
        flex-direction: column;
        gap: 20px;
    }
    
    .customer-service {
        font-size: 0.9rem;
        padding: 6px 15px;
    }
    
    .logo-text {
        font-size: 1rem;
        height: 45px;
    }
}

.floating-phones {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    perspective: 1000px;
}

.floating-phone {
    position: absolute;
    width: 180px;
    height: 340px;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    transition: all 0.3s ease;
    z-index: 1;
    backface-visibility: hidden;
}

/* 旋转容器 */
.floating-phones::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(78, 205, 196, 0.8);
    border-radius: 50%;
    z-index: 0;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.8);
}

/* 手机1 - 旋转动画 */
.floating-phone.phone-1 {
    animation: rotate1 10s linear infinite;
    z-index: 4;
}

/* 手机2 - 旋转动画 */
.floating-phone.phone-2 {
    animation: rotate2 10s linear infinite;
    z-index: 3;
}

/* 手机3 - 旋转动画 */
.floating-phone.phone-3 {
    animation: rotate3 10s linear infinite;
    z-index: 2;
}

/* 手机4 - 旋转动画 */
.floating-phone.phone-4 {
    animation: rotate4 10s linear infinite;
    z-index: 1;
}

/* 旋转动画效果 - 围绕中心点旋转 */
@keyframes rotate1 {
    0% {
        transform: rotateY(0deg) translateX(250px) rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg) translateX(250px) rotateY(-360deg);
    }
}

@keyframes rotate2 {
    0% {
        transform: rotateY(90deg) translateX(250px) rotateY(-90deg);
    }
    100% {
        transform: rotateY(450deg) translateX(250px) rotateY(-450deg);
    }
}

@keyframes rotate3 {
    0% {
        transform: rotateY(180deg) translateX(250px) rotateY(-180deg);
    }
    100% {
        transform: rotateY(540deg) translateX(250px) rotateY(-540deg);
    }
}

@keyframes rotate4 {
    0% {
        transform: rotateY(270deg) translateX(250px) rotateY(-270deg);
    }
    100% {
        transform: rotateY(630deg) translateX(250px) rotateY(-630deg);
    }
}

/* 悬停效果 */
.floating-phone:hover {
    transform: scale(1.1) rotateY(0deg) translateX(250px) rotateY(0deg) !important;
    z-index: 10;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-phone {
        width: 120px;
        height: 220px;
    }
    
    @keyframes rotate1 {
        0% {
            transform: rotateY(0deg) translateX(180px) rotateY(0deg);
        }
        100% {
            transform: rotateY(360deg) translateX(180px) rotateY(-360deg);
        }
    }
    
    @keyframes rotate2 {
        0% {
            transform: rotateY(90deg) translateX(180px) rotateY(-90deg);
        }
        100% {
            transform: rotateY(450deg) translateX(180px) rotateY(-450deg);
        }
    }
    
    @keyframes rotate3 {
        0% {
            transform: rotateY(180deg) translateX(180px) rotateY(-180deg);
        }
        100% {
            transform: rotateY(540deg) translateX(180px) rotateY(-540deg);
        }
    }
    
    @keyframes rotate4 {
        0% {
            transform: rotateY(270deg) translateX(180px) rotateY(-270deg);
        }
        100% {
            transform: rotateY(630deg) translateX(180px) rotateY(-630deg);
        }
    }
    
    .floating-phone:hover {
        transform: scale(1.1) rotateY(0deg) translateX(180px) rotateY(0deg) !important;
    }
}

.phone-img {
    max-width: 280px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 40px;
    color: #a7c5eb;
    position: relative;
    z-index: 2;
}

/* 产品特点样式 */
.features {
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    font-weight: 600;
    background: linear-gradient(135deg, #ffffff 0%, #4ecdc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 产品特点：电脑端4列，手机端2列 */
@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) and (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(30, 64, 104, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-desc {
    color: #a7c5eb;
    font-size: 0.95rem;
}

/* 应用场景样式 */
.scenarios {
    padding: 80px 0;
    position: relative;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* 应用场景：电脑端2列，手机端1列 */
@media (min-width: 768px) {
    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
}

.scenario-card {
    background: rgba(30, 64, 104, 0.3);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(78, 205, 196, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.scenario-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
}

.scenario-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.scenario-img {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.scenario-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.scenario-card:hover .scenario-img img {
    transform: scale(1.1);
}

.scenario-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    padding: 40px 20px 20px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.scenario-card:hover .scenario-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.scenario-title {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #ffffff;
}

.scenario-desc {
    color: #e0e0e0;
    font-size: 0.95rem;
    margin: 0;
}

/* 底部行动区域样式 */
.cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta-btn {
    background: linear-gradient(135deg, #4ecdc4 0%, #45b7aa 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(78, 205, 196, 0.3);
    margin-bottom: 60px;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(78, 205, 196, 0.4);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
}

.copyright {
    color: #a7c5eb;
    font-size: 0.9rem;
}

.qrcode {
    text-align: center;
}

.qrcode img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.qrcode p {
    color: #a7c5eb;
    font-size: 0.9rem;
}

.company-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-logo {
    height: 30px;
}

.company-info p {
    color: #a7c5eb;
    font-size: 0.9rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .features-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .features,
    .scenarios,
    .cta {
        padding: 60px 0;
    }

    .phone-img {
        max-width: 220px;
    }

    .footer-info {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-img {
        max-width: 180px;
    }

    .feature-card,
    .scenario-card {
        padding: 20px;
    }

    .feature-title {
        font-size: 1.2rem;
    }

    .scenario-title {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 14px 32px;
        font-size: 1rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.scenario-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.scenario-card:nth-child(1) {
    animation-delay: 0.1s;
}

.scenario-card:nth-child(2) {
    animation-delay: 0.2s;
}

.scenario-card:nth-child(3) {
    animation-delay: 0.3s;
}

.scenario-card:nth-child(4) {
    animation-delay: 0.4s;
}