body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #a8d8ea, #c8e6f5);
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #b8e6ff33, #d0f0ff33);
    animation: gradientMove 15s ease infinite;
    z-index: -1;
    filter: blur(80px);
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
        transform: translateZ(0);
    }
    25% {
        background-position: 100% 50%;
        transform: translateZ(0);
    }
    50% {
        background-position: 50% 100%;
        transform: translateZ(0);
    }
    75% {
        background-position: 0% 50%;
        transform: translateZ(0);
    }
    100% {
        background-position: 50% 0%;
        transform: translateZ(0);
    }
}

body::before {
    background-size: 400% 400%;
}

.container {
    text-align: center;
    padding: 15px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transform: translateZ(0);
    will-change: transform;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #ff6b6b;
    font-weight: bold;
    background: linear-gradient(135deg, #ff6b6b, #ff9f43, #feca57, #ff6348, #ff3838);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite;
    font-family: "SimSun", "宋体", "NSimSun", "新宋体", serif;
}

/* 备用方案：不支持背景裁剪时的样式 */
@supports not (-webkit-background-clip: text) {
    h1 {
        color: #ff6b6b;
        -webkit-text-fill-color: initial;
        background: none;
    }
}

h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #ff9f43, #feca57);
    border-radius: 2px;
    animation: underlineGlow 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    font-family: "SimSun", "宋体", "NSimSun", "新宋体", serif;
}

.download-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 20px;
    margin: 30px auto;
    max-width: 600px;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 24px;
    min-width: 200px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    transform: translateZ(0);
    will-change: transform;
    position: relative;
}

.button-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    margin-right: 24px;
}

.button-text small {
    font-size: 0.8rem;
    opacity: 0.9;
}

.button-text strong {
    font-size: 1.1rem;
}

.official {
    background: #3DDC84;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.navigation {
    background: #007AFF;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.download-button:active {
    transform: translateY(0);
}

/* 下载量统计样式 */
.download-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px auto;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    flex-direction: row;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #1a252f;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.stat-label {
    font-size: 0.9em;
    color: #2c3e50;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards 0.2s;
    font-weight: 500;
}

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

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    25% {
        text-shadow: 0 0 10px rgba(255, 107, 107, 0.6), 0 0 20px rgba(255, 107, 107, 0.3);
    }
    50% {
        text-shadow: 0 0 10px rgba(255, 159, 67, 0.6), 0 0 20px rgba(255, 159, 67, 0.3);
    }
    75% {
        text-shadow: 0 0 10px rgba(254, 202, 87, 0.6), 0 0 20px rgba(254, 202, 87, 0.3);
    }
}

@keyframes underlineGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
    }
    33% {
        box-shadow: 0 0 15px rgba(255, 159, 67, 0.7), 0 0 25px rgba(255, 159, 67, 0.4);
    }
    66% {
        box-shadow: 0 0 15px rgba(254, 202, 87, 0.7), 0 0 25px rgba(254, 202, 87, 0.4);
    }
}

.features {
    margin-top: 25px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.features h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-card:hover {
    transform: translateY(-5px) translateZ(20px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.feature-card h3 {
    color: #1a252f;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.feature-card p {
    color: #2c3e50;
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 900px) {
    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 默认隐藏移动端特色 */
.mobile-features {
    display: none;
}

@media (max-width: 768px) {
    body {
        height: 100vh;
        overflow: hidden;
        padding: 0;
        margin: 0;
    }

    .container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        box-sizing: border-box;
        padding: 0;
    }

    /* 主要内容区域 - 可滚动 */
    .main-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 16px 16px 0 16px;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        min-height: 0;
        /* 为底部版权留出空间 */
        padding-bottom: 60px;
    }

    .logo {
        width: 96px;
        height: 96px;
        margin-bottom: 16px;
        flex-shrink: 0;
    }

    h1 {
        font-size: 2em;
        letter-spacing: 0.5px;
        margin: 0 0 8px 0;
        flex-shrink: 0;
        text-align: center;
    }

    h1::after {
        width: 48px;
        height: 2px;
        margin: 8px auto 0;
    }

    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 0.3px;
        margin: 0 0 24px 0;
        flex-shrink: 0;
        text-align: center;
    }

    .download-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 24px auto;
        padding: 0;
    }

    .download-button {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.1em;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin: 0;
        box-sizing: border-box;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }

    .download-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .button-text {
        text-align: left;
        line-height: 1.3;
    }

    .button-text strong {
        display: block;
        font-size: 1.1em;
        margin-bottom: 2px;
    }

    .button-text small {
        font-size: 0.9em;
        opacity: 0.8;
    }

    .button-icon {
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    /* 隐藏桌面端特色，显示移动端特色 */
    .desktop-features {
        display: none;
    }

    .mobile-features {
        display: block;
    }

    .features {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        flex-shrink: 0;
    }

    /* 移动端特色标题网格布局 */
    .mobile-feature-titles {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .mobile-feature-title {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 8px;
        padding: 12px 8px;
        text-align: center;
        font-size: 0.85em;
        font-weight: 600;
        color: #2c3e50;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.2s ease;
        min-height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        word-break: keep-all;
        white-space: nowrap;
        backdrop-filter: blur(5px);
    }

    .mobile-feature-title:active {
        transform: scale(0.98);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }



    .download-stats {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        padding: 20px 16px;
        margin: 0 auto 24px auto;
        width: 100%;
        max-width: 320px;
    }

    .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        flex: 1;
        min-width: 0;
    }

    .stat-number {
        font-size: 1.4em;
        font-weight: 700;
        color: #2c3e50;
    }

    .stat-label {
        font-size: 0.8em;
        color: #7f8c8d;
        font-weight: 500;
        white-space: nowrap;
        text-align: center;
        word-break: keep-all;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 12px 12px 0 12px;
    }

    .download-buttons {
        max-width: 280px;
    }

    /* 小屏幕改为两栏布局 */
    .mobile-feature-titles {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .mobile-feature-title {
        font-size: 0.8em;
        padding: 10px 6px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
    .main-content {
        padding: 8px 8px 0 8px;
    }

    .logo {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }

    h1 {
        font-size: 1.8em;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .download-buttons {
        max-width: 260px;
        gap: 10px;
    }

    .download-button {
        padding: 14px 16px;
        font-size: 1em;
    }

    .download-stats {
        padding: 16px 8px;
        margin-bottom: 20px;
        gap: 4px;
    }

    .stat-label {
        font-size: 0.75em;
    }

    .mobile-feature-title {
        font-size: 0.75em;
        padding: 8px 4px;
    }
}

/* 底部版权信息样式 */
.footer {
    margin-top: 20px;
    padding: 10px 20px;
    text-align: center;
    color: #2c3e50;
    font-size: 0.85em;
}

/* 移动端底部样式优化 */
@media (max-width: 768px) {
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 16px;
        font-size: 0.8em;
        text-align: center;
        color: #7f8c8d;
        z-index: 100;
        /* 为iPhone底部安全区域留出空间 */
        padding-bottom: max(12px, env(safe-area-inset-bottom));
    }
}
