/* 全局重置 */
* {
    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;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景装饰 */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    animation: float 20s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* 主容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px 20px;
    animation: fadeInDown 0.8s ease-out;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 36px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    backdrop-filter: blur(10px);
}

.logo-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 28px;
    color: #1976D2;
    margin-bottom: 4px;
    font-weight: 700;
}

.tagline {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* APP展示卡片 */
.app-showcase {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 48px 32px;
    margin: 32px auto;
    max-width: 680px;
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.2);
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 下载按钮 */
.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn.primary {
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    color: white;
}

.download-btn.secondary {
    background: linear-gradient(135deg, #1976D2 0%, #2196F3 100%);
    color: white;
}

.download-btn:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 36px;
    line-height: 1;
    flex-shrink: 0;
}

.btn-content {
    flex: 1;
    text-align: left;
}

.btn-label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.btn-hint {
    display: block;
    font-size: 12px;
    opacity: 0.9;
}

.btn-arrow {
    font-size: 24px;
    font-weight: 700;
    transition: transform 0.3s;
}

.download-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* 功能特点 */
.features {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 48px 32px;
    margin: 32px auto;
    max-width: 1000px;
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.section-title {
    font-size: 28px;
    color: #1976D2;
    text-align: center;
    margin-bottom: 36px;
    font-weight: 700;
    position: relative;
    padding-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1976D2, #2196F3);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-item {
    padding: 28px;
    background: linear-gradient(135deg, #F5F8FC 0%, #FFFFFF 100%);
    border-radius: 20px;
    border: 1px solid #E3F2FD;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

.feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(25, 118, 210, 0.15);
    border-color: #BBDEFB;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

.feature-item h4 {
    font-size: 18px;
    color: #1976D2;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 系统要求 */
.requirements {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 32px;
    padding: 48px 32px;
    margin: 32px auto;
    max-width: 680px;
    box-shadow: 0 20px 60px rgba(31, 38, 135, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.req-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #F5F8FC 0%, #FFFFFF 100%);
    border-radius: 16px;
    border: 1px solid #E3F2FD;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.08);
}

.req-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
}

.req-content h4 {
    font-size: 16px;
    color: #1976D2;
    margin-bottom: 4px;
    font-weight: 700;
}

.req-content p {
    font-size: 13px;
    color: #666;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 0.8s ease-out 0.8s both;
}

.copyright {
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 500;
}

.support {
    font-size: 12px;
    opacity: 0.8;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .header {
        padding: 24px 16px 16px;
    }

    .logo-wrapper {
        gap: 12px;
        padding: 16px 24px;
    }

    .logo-img {
        width: 44px;
        height: 44px;
    }

    .logo-text h1 {
        font-size: 22px;
    }

    .tagline {
        font-size: 12px;
    }

    .app-showcase {
        padding: 36px 24px;
    }

    .download-btn {
        padding: 16px 20px;
    }

    .btn-icon {
        font-size: 32px;
    }

    .btn-label {
        font-size: 16px;
    }

    .features {
        padding: 36px 24px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 24px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .requirements {
        padding: 36px 24px;
    }

    .req-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        gap: 8px;
        padding: 16px 20px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .app-showcase {
        padding: 32px 20px;
    }
}

/* 额外的视觉效果 */
.download-btn {
    cursor: pointer;
}

.feature-item {
    cursor: default;
}

/* 确保在移动设备上触摸反馈良好 */
@media (hover: none) {
    .download-btn:active {
        transform: scale(0.96);
    }

    .feature-item:active {
        transform: translateY(-2px);
    }
}
