/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ebeef5; /* 加深背景色，增加对比度 */
    color: #333333; /* 深灰文字 */
    line-height: 1.5;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased; /* 字体平滑 */
    -moz-osx-font-smoothing: grayscale;
}

.app-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    background-color: #ffffff; /* 白色卡片背景 */
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 100vh; /* 手机端铺满 */
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* 增加卡片阴影 */
}

/* 头部 */
.main-header {
    text-align: center;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.update-tag {
    background: #eef2ff; /* 极浅的蓝色 */
    color: #6366f1; /* 品牌蓝紫色 */
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.logo-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* 适配图片Logo */
.app-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    /* 如果原图自带阴影则不需要这行，如果没有可以加点轻微阴影 */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.app-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.app-title p {
    font-size: 13px;
    color: #666;
}

/* 数据统计栏 - 极简风格 */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 10px;
    border-radius: 12px;
    /* 移除深色背景，改用简单的分割 */
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-num {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 11px;
    color: #999;
}

.stat-divider {
    width: 1px;
    height: 20px;
    background: #eee;
}

/* 邀请码区域 - 更加紧凑和扁平 */
.invite-section {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.invite-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
    font-weight: 500;
}

.vip-badge {
    background: #FF5722; /* 活力橙 */
    color: #fff;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.invite-box {
    background: #fafafa;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px dashed #ddd;
}

.invite-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.invite-label {
    font-size: 13px;
    color: #666;
}

.invite-code {
    font-family: monospace;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    letter-spacing: 1px;
}

.copy-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #000;
}

.invite-tip {
    font-size: 11px;
    color: #999;
}

/* 下载区域 */
.download-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dl-btn {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.dl-btn:active {
    transform: scale(0.99);
}

/* 按钮通用样式 */
.dl-btn {
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dl-btn .dl-icon {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dl-btn .dl-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* 安卓按钮 - 清爽薄荷绿 */
.android-dl {
    background: linear-gradient(135deg, #00b09b 0%, #96c93d 100%);
    box-shadow: 0 4px 12px rgba(0, 176, 155, 0.3);
}

/* 苹果按钮 - 深邃科技蓝 */
.ios-dl {
    /* 采用一种折中的鲜艳蓝紫色，与安卓形成对比 */
    background: linear-gradient(135deg, #3a7bd5 0%, #3a6073 100%);
    box-shadow: 0 4px 12px rgba(58, 123, 213, 0.3);
}

/* 发卡按钮 - 活力橙红 */
.card-dl {
    background: linear-gradient(135deg, #FF8008 0%, #FFC837 100%);
    box-shadow: 0 4px 12px rgba(255, 128, 8, 0.3);
}

/* 覆盖旧样式 */
.dl-action {
    margin-left: auto;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dl-arrow {
    margin-left: auto;
    font-size: 18px;
    color: #fff; /* 发卡按钮也是深色背景了，箭头改为白色 */
    font-weight: 400;
    background: rgba(255,255,255,0.2);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}


.dl-icon {
    width: 38px;
    height: 38px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* 方形圆角更稳重 */
}

.dl-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.dl-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dl-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.dl-desc {
    font-size: 11px;
}

/* SEO 内容区 */
.seo-content {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    text-align: left; /* 左对齐更适合阅读 */
}

.seo-content h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
}

.seo-content h3 {
    font-size: 14px;
    color: #444;
    margin-top: 15px;
    margin-bottom: 8px;
}

.seo-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 10px;
}

.seo-content li {
    margin-bottom: 4px;
}

/* 移除旧的特色功能区和FAQ区，因为现在合并到了 SEO 内容区以文本形式展示，更利于 SEO 抓取且页面更清爽 */

.main-footer {
    text-align: center;
    padding: 30px 0 10px;
    color: #999;
    font-size: 11px;
}

/* 适配大屏幕 */
@media (min-width: 768px) {
    body {
        background-color: #f0f2f5; /* PC端背景浅灰 */
        padding: 40px 0;
        align-items: flex-start; /* 顶部对齐 */
    }
    
    .app-container {
        border-radius: 24px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
        min-height: auto; /* PC端不需要铺满 */
    }
}