:root {
    --primary-color: #4285F4;
    --secondary-color: #34A853;
    --text-color: #333;
    --bg-color: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 页面背景图 - 确保assets/background.jpg存在 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

@media (max-width: 768px) {
    body::before {
        background-size: cover;
        background-position: center;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 顶部导航栏logo - 建议尺寸80x80 */
.logo {
    height: 40px; /* 原始尺寸的50% */
    width: auto;
}

nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link:hover {
    background-color: #f0f0f0;
}

main {
    flex: 1;
    padding: 2rem;
}

.hidden {
    display: none;
}

.content-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.app-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    text-align: center;
}

/* 应用主logo - 建议尺寸300x300 */
.main-logo {
    width: 150px; /* 原始尺寸的50% */
    height: auto;
}

/* Google Play按钮 - 建议尺寸360x120 */
.google-play {
    width: 180px; /* 原始尺寸的50% */
    height: auto;
    transition: transform 0.3s ease;
}

.google-play:hover {
    transform: scale(1.05);
}

/* 电脑端轮播容器 - 原始图片尺寸520*924缩小1.4倍 */
.slider-container {
    position: relative;
    width: 371px;
    height: 660px;
    overflow: hidden;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider input[type="radio"] {
    display: none;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: transparent;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#slide1:checked ~ .slides .slide:nth-child(1),
#slide2:checked ~ .slides .slide:nth-child(2),
#slide3:checked ~ .slides .slide:nth-child(3),
#slide4:checked ~ .slides .slide:nth-child(4) {
    opacity: 1;
}

.navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

#slide1:checked ~ .navigation label:nth-child(1),
#slide2:checked ~ .navigation label:nth-child(2),
#slide3:checked ~ .navigation label:nth-child(3),
#slide4:checked ~ .navigation label:nth-child(4) {
    background: white;
}

.navigation-arrows {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10;
}

.navigation-arrows label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    color: #333;
}

.navigation-arrows label:hover {
    background: rgba(255, 255, 255, 0.9);
}

.navigation-arrows .prev {
    left: 10px;
}

.navigation-arrows .next {
    right: 10px;
}

#privacy-page iframe {
    width: 100%;
    height: calc(100vh - 80px);
    border: none;
}

/* 移动端样式 */
@media (max-width: 768px) {
    header {
        padding: 0.5rem;
    }

    .content-container {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.2rem;
    }

    .app-info {
        order: 2;
        margin-top: 2rem;
    }

    .slider-container {
        width: 100%;
        max-width: 330px;
        height: auto;
        aspect-ratio: 330/555;
        order: 1;
        margin: 0 auto;
    }

    .slider {
        height: 100%;
    }

    .main-logo {
        width: 120px;
    }

    .google-play {
        width: 150px;
    }

    .navigation-arrows label {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .navigation {
        bottom: 15px;
    }

    .nav-dot {
        width: 10px;
        height: 10px;
        margin: 0 5px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 30px;
    }

    h1 {
        font-size: 1rem;
    }

    nav {
        gap: 0.2rem;
    }

    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }

    .slider-container {
        max-width: 280px;
    }

    .navigation-arrows label {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
