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

:root {
    --primary: #10b981;
    --primary-light: #34d399;
    --primary-dark: #059669;
    --secondary: #06b6d4;
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --surface: #ffffff;
    --bg: #fafafa;
    --line: #e4e4e7;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px -10px rgba(0, 0, 0, 0.16);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--bg);
}

/* 顶部导航 - 简洁风格 */
.top-nav {
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    font-weight: 700;
}

/* 内容区域 */
.main-content {
    padding: 0;
}

/* 应用卡片 - 类似应用宝但更简洁 */
.app-card {
    background: var(--surface);
    margin: 10px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.app-header {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
}

.app-icon {
    width: 85px;
    height: 85px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-logo {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.star {
    color: #ff9500;
}

.score {
    color: #333;
    font-weight: 600;
}

.tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tags1 {
    margin-top: 5px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 8px;
    background: #f0f0f0;
    color: #666;
    border-radius: 4px;
    font-size: 11px;
}

.tag.primary {
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary-dark);
}

/* 按钮组 - 借鉴应用宝的双按钮设计 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.btn {
    flex: 1;
    padding: 10px 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    box-shadow: 0 8px 20px -10px rgba(16, 185, 129, 0.6);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 6px 14px -10px rgba(16, 185, 129, 0.6);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:active {
    background: #ebebeb;
}

/* 列表卡片 */
.list-card {
    background: var(--surface);
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.list-header {
    padding: 15px;
    border-bottom: 1px solid var(--line);
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.list-item {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-item:last-child {
    border-bottom: none;
}

.feature-row {
    border-bottom: 1px solid #f5f5f5;
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-link {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

#coreFeatureSection .item-arrow {
    font-size: 24px;
    font-weight: 700;
}

.item-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.item-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.icon-stroke {
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.item-arrow {
    color: #ccc;
    font-size: 16px;
}

/* 截图预览 - 横向滚动 */
.screenshot-section {
    background: var(--surface);
    margin: 10px;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.screenshot-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 5px;
}

.screenshot-scroll::-webkit-scrollbar {
    display: none;
}

.screenshot {
    width: 140px;
    flex-shrink: 0;
}

.screenshot img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 信息行 */
.info-section {
    background: var(--surface);
    margin: 10px;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow-sm);
}

.info-row {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 70px;
    color: #999;
    font-size: 13px;
}

.info-value {
    flex: 1;
    color: #333;
    font-size: 13px;
}

.info-link {
    color: var(--primary-dark);
    text-decoration: none;
}

/* 底部固定栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 8px;
    z-index: 99;
}

.bottom-btn {
    flex: 1;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
}

.bottom-btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    flex: 2;
}

.bottom-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

/* 首页引导：提示用户查看核心功能 */
.feature-guide-btn {
    position: fixed;
    right: 14px;
    bottom: 84px;
    z-index: 100;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    cursor: pointer;
}

.feature-guide-btn:active {
    transform: scale(0.98);
}

.feature-guide-btn.is-hidden {
    display: none;
}

/* 广告位样式：保证在 H5 里“看得见、且不突兀” */
.ad-slot-wrap {
    margin: 12px 0;
    background: #fff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ad-slot-wrap.dark {
    background: rgba(255,255,255,0.06);
    box-shadow: none;
    padding: 0;
}

.ad-slot-title {
    padding: 12px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /*margin-bottom: 8px;*/
}

.ad-slot-title-left {
    margin-left: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.ad-slot-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.ad-slot-subtitle {
    color: #888;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ad-slot-wrap.dark .ad-slot-subtitle {
    color: rgba(255,255,255,0.7);
}

.ad-slot-body {
    background: transparent;
    border-radius: 10px;
    overflow: visible;
    padding: 0 0 12px;
}

.ad-slot-container {
    min-height: 0;
    display: block;
    width: 100%;
}

.ad-placeholder {
    padding: 14px;
    color: #999;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.ad-slot-wrap.dark .ad-placeholder {
    color: rgba(255,255,255,0.8);
}

/* 下载页面特殊样式 */
.download-card {
    background: var(--surface);
    margin: 10px;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: linear-gradient(135deg, #fafafa 0%, #f8f9fa 100%);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.platform-item:active {
    background: linear-gradient(135deg, #f0f0f0 0%, #e9ecef 100%);
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.platform-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-right: 12px;
    position: relative;
    color: inherit;
    transition: all 0.3s ease;
}

.platform-icon-android,
.platform-icon-ios {
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-icon-android {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 1.5px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.15);
    color: #10b981;
}

.platform-icon-ios {
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f5 100%);
    border: 1.5px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    color: #495057;
}

.platform-symbol {
    color: #10b981;
    font-size: 30px;
    line-height: 1;
    transition: all 0.3s ease;
}

.platform-icon-ios .platform-symbol {
    color: #495057;
}

.platform-icon ion-icon.platform-symbol {
    display: block;
    width: 30px;
    height: 30px;
}


.platform-info {
    flex: 1;
}

.platform-name {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 3px;
}

.platform-desc {
    font-size: 12px;
    color: #999;
}

.platform-arrow {
    color: #ccc;
}

/* 微信提示 */
.wechat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    padding: 20px;
}

.wechat-overlay.active {
    display: block;
}

.wechat-tip-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

/* 响应式 */
@media (max-width: 375px) {
    .app-name {
        font-size: 17px;
    }
}
