*,*:before,*:after{-moz-box-sizing: border-box;-webkit-box-sizing:border-box;box-sizing: border-box;}
:root {
    --bg-gradient-dark: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    --bg-gradient-light: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    --text-color-dark: #fff;
    --text-color-light: #333;
    --card-bg-dark: rgba(255, 255, 255, 0.1);
    --card-bg-light: rgba(0, 0, 0, 0.05);
    --card-text-dark: #ddd;
    --card-text-light: #666;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-gradient-dark);
    color: var(--text-color-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* 背景光晕 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #00ff8866, #00ffff66, #ff00ff66);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -2;
    filter: blur(100px);
}

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

/* 明亮主题 */
body.light-theme {
    background: var(--bg-gradient-light);
    color: var(--text-color-light);
}

body.light-theme::before {
    background: linear-gradient(125deg, #2196f366, #00bcd466, #e91e6366);
    opacity: 0.6;
    background-size: 400% 400%;
}

.container {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
}

.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}

h1 {
    font-size: 2em;
    margin-bottom: 15px;
}

/* 下载按钮 */
.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;
    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;
    justify-content: center;
}
.download-button i{
    font-size: 1.5rem;
}

.button-text {
    display: flex;
    flex-direction: column;
}

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

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

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

.ios {
    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);
}

/* 主题切换按钮 */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    color: white; /* 暗色模式默认 */
}

body.light-theme .theme-toggle {
    color: #333;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(30deg);
}

/* 返回顶部 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    background-color: var(--text-color-dark);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: #111;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

body.light-theme .back-to-top {
    background-color: var(--text-color-light);
}

body.light-theme .back-to-top svg {
    fill: #fff;
}

/* 下载统计 */
.download-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px auto;
    padding: 20px;
    background: var(--card-bg-dark);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
    flex-direction: row;
}

body.light-theme .download-stats {
    background: var(--card-bg-light);
}

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

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

body.light-theme .stat-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-color-dark);
}

body.light-theme .stat-number {
    color: var(--text-color-light);
}

.stat-label {
    font-size: 0.9em;
    color: var(--card-text-dark);
}

body.light-theme .stat-label {
    color: var(--card-text-light);
}

/* 背景泡泡 */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0.02));
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(
    45deg,
    rgba(var(--bubble-color-1), 0.1),
    rgba(var(--bubble-color-2), 0.1)
    );
    backdrop-filter: blur(1px);
    animation: float var(--duration) ease-in-out infinite;
}

:root {
    --bubble-color-1: 100, 149, 237;
    --bubble-color-2: 135, 206, 235;
}

@media (prefers-color-scheme: dark) {
    :root {
    --bubble-color-1: 70, 130, 180;
    --bubble-color-2: 65, 105, 225;
    }
}

.bubble:nth-child(1)  { --size: 120px; --duration: 20s; left: 10%;  animation-delay: 0s;  width: var(--size); height: var(--size); }
.bubble:nth-child(2)  { --size: 80px;  --duration: 18s; left: 25%;  animation-delay: -2s; width: var(--size); height: var(--size); }
.bubble:nth-child(3)  { --size: 100px; --duration: 22s; left: 40%;  animation-delay: -4s; width: var(--size); height: var(--size); }
.bubble:nth-child(4)  { --size: 90px;  --duration: 25s; left: 55%;  animation-delay: -6s; width: var(--size); height: var(--size); }
.bubble:nth-child(5)  { --size: 130px; --duration: 21s; left: 70%;  animation-delay: -8s; width: var(--size); height: var(--size); }
.bubble:nth-child(6)  { --size: 110px; --duration: 19s; left: 85%;  animation-delay: -10s;width: var(--size); height: var(--size); }
.bubble:nth-child(7)  { --size: 95px;  --duration: 23s; left: 15%;  animation-delay: -12s;width: var(--size); height: var(--size); }
.bubble:nth-child(8)  { --size: 115px; --duration: 24s; left: 30%;  animation-delay: -14s;width: var(--size); height: var(--size); }
.bubble:nth-child(9)  { --size: 85px;  --duration: 20s; left: 45%;  animation-delay: -16s;width: var(--size); height: var(--size); }
.bubble:nth-child(10) { --size: 125px; --duration: 26s; left: 60%;  animation-delay: -18s;width: var(--size); height: var(--size); }

@keyframes float {
    0%, 100% { transform: translateY(100vh) scale(1); }
    50% { transform: translateY(-10vh) scale(1.1); }
}

/* 响应式 */
@media (max-width: 768px) {
    .theme-toggle { top: 10px; right: 10px; }

    .download-buttons {
    flex-direction: column;
    padding: 0;
    gap: 15px;
    width: 90%;
    max-width: 280px;
    margin: 30px auto;
    align-items: center;
    }

    .download-button {
    width: 100%;
    min-width: unset;
    padding: 12px 20px;
    font-size: 1.1em;
    justify-content: center;
    }

    .download-stats {
    gap: 20px;
    padding: 15px;
    margin: 20px auto;
    }

    .stat-number { font-size: 1.2em; }
    .stat-label { font-size: 0.8em; }

    .back-to-top { bottom: 20px; right: 20px; width: 35px; height: 35px; }
}

@media (max-width: 320px) {
    .logo { width: 80px; height: 80px; }
    h1 { font-size: 1.8em; }

    .download-buttons { width: 80%; max-width: 240px; }
    .download-button { padding: 10px 15px; font-size: 1em; }

    .download-stats { gap: 10px; padding: 10px; }
    .stat-number { font-size: 1em; }
    .stat-label { font-size: 0.7em; }
}