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

/* 去除所有 a 链接的默认样式 */
a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:active,
a:focus,
a:visited {
    text-decoration: none;
    outline: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #9966fd 0%, #b794ff 50%, #d4c5ff 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* 顶部装饰背景 */
.top-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    overflow: hidden;
    pointer-events: none;
}

.decoration-shape {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 30px;
    left: 50px;
    transform: rotate(45deg);
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 80px;
    right: 80px;
    border-radius: 50%;
    opacity: 0.5;
    animation: float 8s ease-in-out infinite reverse;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 180px;
    right: 200px;
    transform: rotate(30deg);
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

/* 主容器 */
.share-container {
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* App信息卡片 */
.app-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 20px;
}

/* App图标 */
.app-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.icon-badge {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

/* App标题 */
.app-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

/* 统计信息 */
.app-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: #666;
    font-size: 14px;
}

.stat-divider {
    color: #ddd;
}

/* 信息行 */
.app-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.app-info-row:last-of-type {
    margin-bottom: 15px;
}

.info-label {
    color: #666;
}

.info-link {
    color: #4A90E2;
    text-decoration: none;
    font-size: 13px;
}

.info-link:hover {
    text-decoration: underline;
}

/* 提示信息 */
.app-notice {
    background: #FFF9E6;
    border-left: 3px solid #FFB84D;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

.notice-label {
    color: #FF6B6B;
    font-weight: 600;
}

.notice-text {
    color: #666;
}

/* 复制链接区域 */
.copy-link-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
}

.link-text {
    flex: 1;
    color: #4A90E2;
    font-size: 12px;
    word-break: break-all;
    line-height: 1.4;
}

.copy-btn {
    padding: 6px 12px;
    background: #9966fd;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.copy-btn:hover {
    background: #8855ec;
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.95);
}

.copy-btn.copied {
    background: #4CAF50;
}

/* 倒计时区域 */
.countdown-wrapper {
    margin-top: 20px;
    text-align: center;
}

.countdown-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

#countdownSeconds {
    display: inline-block;
    min-width: 20px;
    color: #9966fd;
    font-size: 20px;
    font-weight: 700;
}

.countdown-progress {
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #9966fd 0%, #b794ff 100%);
    width: 100%;
    transition: width 0.1s linear;
    border-radius: 3px;
}

/* 操作按钮 */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-open {
    background: #9966fd;
    color: white;
}

.btn-open:hover {
    background: #9966fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(153, 102, 253, 0.4);
}

.btn-open.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-open.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-download {
    background: #FF6B6B;
    color: white;
}

.btn-download:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* 宣传图片区域 - Swiper轮播 */
.promo-section {
    margin-top: 20px;
}

.promo-swiper {
    width: 100%;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.promo-card {
    width: 100%;
    max-width: 220px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s;
}

.promo-card:hover {
    transform: translateY(-5px);
}

.promo-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 600px) {
    body {
        padding: 15px;
    }

    .app-card {
        padding: 30px 20px 25px;
    }

    .app-icon {
        width: 80px;
        height: 80px;
    }

    .app-title {
        font-size: 24px;
    }

    .app-stats {
        font-size: 13px;
    }

    .app-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-link {
        align-self: flex-end;
    }

    .action-buttons {
        gap: 10px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .promo-images {
        flex-direction: column;
        gap: 12px;
    }

    .promo-card {
        max-width: 100%;
    }

    .shape-1, .shape-2, .shape-3 {
        display: none;
    }
}
