* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #222222;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 430px;
    margin: 0 auto;
    width: 100%;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-container {
    flex-shrink: 0;
}

/* 顶部导航 */
.header {
    flex-shrink: 0;
    background: white;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: url('icon.png') center/cover no-repeat;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.download-btn {
    background: #fb7299;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    position: relative;
}

.menu-icon span {
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 1px;
}

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    overflow: hidden;
    z-index: 200;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-title {
    padding: 10px 20px 4px;
    font-size: 12px;
    color: #999;
    cursor: default;
}

.dropdown-item {
    padding: 14px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #f8f8f8;
}

.dropdown-item:hover {
    background: #f5f5f5;
}

/* 轮播区域 */
.carousel-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.carousel {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
}

.card {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 6;
}

.card img {
    width: 100%;
    height: calc(100% + 30px);
    margin-top: -30px;
    object-fit: cover;
    object-position: top;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    padding-bottom: 200px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    color: white;
    z-index: 6;
    text-align: center;
}

.card-content h3 {
    font-size: 42px;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 4px;
}

.card-content p {
    font-size: 14px;
    opacity: 0.9;
}

/* 底部下载按钮 - 叠加在轮播上 */
.bottom-download {
    position: fixed;
    bottom: 36px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    z-index: 10;
}

.bottom-download .download-main-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: none;
    padding: 14px 42px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.bottom-download .download-main-btn:active {
    transform: scale(0.98);
}

/* 轮播指示器 - 屏幕居底 */
.carousel-indicators {
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.carousel-indicators .indicator {
    pointer-events: auto;
}



.btn-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: url('icon.png') center/cover no-repeat;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s;
}

.indicator.active {
    width: 20px;
    background: white;
}

/* 响应式 */
@media (max-width: 375px) {
    .title-main h2 {
        font-size: 22px;
    }
}
