* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* 第一屏 */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-image: url('/static/andadata/img/intro-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    width: 100%;
    padding: 0 40px;
    gap: 60px;
}

.hero-content {
    flex: 1;
    text-align: left;
    color: #fff;
    animation: fadeInUp 1s ease-out;
    margin-top:-20px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-align: left;
}

.logo-square {
    display: inline-block;
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.logo-square img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-wide {
    display: block;
    max-width: 300px;
    height: auto;
    margin: 0;
}

.logo-wide img {
    width: 100%;
    height: auto;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 50px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.demo-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.demo-btn {
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    text-decoration: none;
    display: inline-block;
}

.demo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.demo-btn:active {
    transform: translateY(-1px);
}

/* 小程序码弹窗 */
.qrcode-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.qrcode-modal.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.qrcode-content {
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qrcode-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #666;
    transition: all 0.3s ease;
}

.qrcode-close:hover {
    background: #e0e0e0;
    color: #333;
}

.qrcode-img {
    width: 280px;
    height: 280px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
}

.qrcode-tip {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

/* 底部版权 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    text-align: center;
    z-index:0;
}

.footer p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

.footer a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* 手机展示区域 */
.phone-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out 1s both;
}

.phone-frame {
    position: relative;
    width: 320px;
    height: 640px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 0 2px rgba(255, 255, 255, 0.1),
                inset 0 0 0 2px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-screen-content {
    width: 100%;
    height: 100%;
    position: relative;
}

.phone-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.phone-image.active {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .logo-wide {
        margin: 0 auto;
    }

    .demo-buttons {
        justify-content: center;
    }

    .phone-container {
        order: -1;
    }

    .phone-frame {
        width: 280px;
        height: 560px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        padding: 0 20px;
        gap: 30px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }

    .demo-btn {
        padding: 14px 30px;
        font-size: 16px;
    }

    .logo-wide {
        max-width: 250px;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }
}