* {
    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: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 140px; /* 为悬浮卡片留出空间（卡片高度 + 底部间距50px + footer高度 + 额外空间） */
}

/* 顶部区域 */
.header {
    background-color: #fff;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header-left {
    flex: 1;
}

.header-title-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.header-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    flex-shrink: 0;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-text-wrapper {
    display: flex;
    flex-direction: column;
}

.title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 4px 0;
}

.description {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.download-btn {
    background-color: #FFD700;
    color: #333;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    white-space: nowrap;
}

.download-btn:hover {
    background-color: #FFC700;
}

.download-btn:active {
    background-color: #FFB700;
    transform: scale(1.1);
}

/* 头部展示图 */
.header-image-section {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    background-color: transparent;
    margin-bottom: 0;
}

.header-image:last-child {
    margin-bottom: 0;
}

/* 轮播图区域 */
.carousel-section {
    padding: 20px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: block;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-description {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 20px;
    line-height: 1.6;
    padding: 0 16px;
}

/* 底部版权信息 */
.footer {
    text-align: center;
    padding: 20px 16px;
    padding-bottom: 20px; /* 为悬浮卡片留出足够空间 */
    color: #999;
    font-size: 12px;
}

.copyright {
    margin: 0;
}

/* 悬浮卡片 */
.floating-card {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 368px;
    height: auto;
    min-height: 98px;
    background-color: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
    padding: 44px 20px 20px 20px;
    z-index: 1000;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: visible;
}

.floating-card.scrolled {
    width: 280px;
    transform: translateX(-50%);
    padding: 16px 16px 16px 16px;
}

.floating-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.floating-card-icon {
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
    background-color: #FFD700;
    display: block;
    transition: top 0.3s ease, left 0.3s ease, transform 0.3s ease;
}

.floating-card.scrolled .floating-card-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.floating-card.scrolled .floating-card-icon {
    top: 50%;
    left: 52px;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 14px;
}

.floating-card-left {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.floating-card.scrolled .floating-card-left {
    text-align: left;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.floating-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.floating-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.3;
}

.floating-info {
    font-size: 12px;
    color: #999;
    margin: 0;
    line-height: 1.3;
}

.floating-card.scrolled .floating-title,
.floating-card.scrolled .floating-subtitle,
.floating-card.scrolled .floating-info {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        border-radius: 8px;
    }
    50% {
        transform: scale(1.05);
        border-radius: 8px;
    }
}

.floating-download-btn {
    background-color: rgb(228 49 45);
    color:#ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 99px !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
    width: 100%;
    animation: pulse 2s ease-in-out infinite;
    transform-origin: center;
    will-change: transform;
}

.floating-card.scrolled .floating-download-btn {
    width: auto;
    min-width: 100px;
    flex-shrink: 0;
}

.floating-download-btn:hover {
    background-color: #FFC700;
}

.floating-download-btn:active {
    background-color: #FFB700;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-image-section,
    .carousel-section {
        padding: 0;
    }

    .floating-card {
        width: calc(100% - 48px);
        left: 24px;
        transform: none;
        bottom: 30px;
    }

    .floating-card.scrolled {
        width: calc(100% - 48px);
        transform: none;
    }
}

@media (max-width: 480px) {
    body {
        padding-bottom: 80px;
    }

    .title {
        font-size: 20px;
    }

    .description {
        font-size: 13px;
    }

    .floating-card {
        width: calc(100% - 32px);
        left: 16px;
        transform: none;
        bottom: 20px;
    }
    
    .floating-card.scrolled {
        width: calc(100% - 32px);
        transform: none;
    }
}

