/* css/style.css - 完整的首页样式 */

/* ==================== 基础样式 ==================== */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    text-align: center;
}

/* 背景动画效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg, #00ff8866, #00ffff66, #ff00ff66);
    animation: gradientMove 15s ease infinite;
    z-index: -1;
    filter: blur(100px);
}

@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.light-theme {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    color: #333;
}

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

/* ==================== 主容器 ==================== */
.container {
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    transform: translateZ(0);
    will-change: transform;
}

/* ==================== Logo和标题 ==================== */
.logo {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

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

p {
    text-align: center;
    margin: 10px auto;
    max-width: 600px;
    line-height: 1.6;
}

/* ==================== 下载按钮区域 ==================== */
.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;
    transform: translateZ(0);
    will-change: transform;
}

.download-button i {
    font-size: 2rem;
}

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

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

/* 安卓按钮样式 */
.android {
    background: #3DDC84;
    box-shadow: 0 4px 15px rgba(61, 220, 132, 0.3);
}

.android:hover {
    box-shadow: 0 6px 20px rgba(61, 220, 132, 0.4);
}

/* iOS按钮样式 */
.ios {
    background: #007AFF;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.ios:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

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

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

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

/* ==================== 下载统计 ==================== */
.download-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 600px;
}

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

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ==================== 应用特色 ==================== */
.features {
    margin-top: 50px;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
}

.features h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.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.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.feature-card p {
    color: #ddd;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* ==================== 轮播图 ==================== */
.screenshot-carousel {
    margin: 40px auto;
    max-width: 400px;
    padding: 0 20px;
    position: relative;
}

.screenshot-carousel h2 {
    text-align: center;
    margin-bottom: 20px;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    padding: 0 10px;
    box-sizing: border-box;
}

.carousel-slide img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

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

.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: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

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

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

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.3);
}

/* ==================== 页脚 ==================== */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

/* ==================== 明亮主题适配 ==================== */
body.light-theme .download-button {
    color: white; /* 保持按钮文字白色 */
}

body.light-theme .download-stats {
    background: rgba(0, 0, 0, 0.05);
}

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

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

body.light-theme .stat-label {
    color: #666;
}

body.light-theme .feature-card {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-card h3 {
    color: #333;
}

body.light-theme .feature-card p {
    color: #666;
}

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

body.light-theme .carousel-container {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .carousel-button {
    background: rgba(0, 0, 0, 0.1);
}

body.light-theme .carousel-button svg {
    fill: #333;
}

body.light-theme .indicator {
    background: rgba(0, 0, 0, 0.2);
}

body.light-theme .indicator.active {
    background: #333;
}

body.light-theme .back-to-top {
    background-color: rgba(0, 0, 0, 0.1);
}

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

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

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .download-buttons {
        flex-direction: column;
        padding: 0;
        gap: 15px;
        width: 90%;
        max-width: 280px;
    }

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

    .download-button i {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .features {
        padding: 0 15px;
        margin-top: 30px;
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .feature-card {
        padding: 15px;
    }

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

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

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

    .theme-toggle {
        top: 10px;
        right: 10px;
    }

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

@media (max-width: 600px) {
    .feature-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .download-buttons {
        width: 85%;
        max-width: 260px;
    }

    .download-stats {
        gap: 15px;
        padding: 12px;
    }
}

@media (max-width: 320px) {
    .logo {
        width: 80px;
        height: 80px;
    }

    h1 {
        font-size: 1.8em;
    }

    .container {
        padding: 10px;
    }

    .download-buttons {
        width: 80%;
        max-width: 240px;
    }

    .download-button {
        padding: 10px 15px;
        font-size: 1em;
    }

    .download-button i {
        width: 18px;
        height: 18px;
    }

    .features {
        padding: 0 10px;
    }

    .feature-card {
        padding: 12px;
    }

    .download-stats {
        gap: 10px;
        padding: 10px;
    }

    .stat-number {
        font-size: 1em;
    }

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

/* ==================== 背景动画气泡 ==================== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bubble {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(100, 149, 237, 0.1), rgba(135, 206, 235, 0.1));
    animation: float 20s ease-in-out infinite;
}

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