/* SH365 - 借鉴应用宝风格但有自己特色 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
    background: #f8f8f8;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.container {
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    background: #f8f8f8;
}

/* 顶部导航 - 简洁风格 */
.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, #52c41a 0%, #73d13d 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: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.app-header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.app-icon {
    width: 85px;
    height: 85px;
    border-radius: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.app-info {
    flex: 1;
}

.app-name {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #999;
}

.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: #f6ffed;
    color: #52c41a;
}

/* 按钮组 - 借鉴应用宝的双按钮设计 */
.btn-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn {
    flex: 1;
    padding: 11px 20px;
    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, #52c41a 0%, #73d13d 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(82, 196, 26, 0.3);
}

.btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 6px rgba(82, 196, 26, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

.btn-secondary:active {
    background: #ebebeb;
}

/* 列表卡片 */
.list-card {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.list-header {
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
}

.list-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.list-item {
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-item:last-child {
    border-bottom: none;
}

.item-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
}

.item-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.item-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

.item-arrow {
    color: #ccc;
    font-size: 16px;
}

/* 截图预览 - 横向滚动 */
.screenshot-section {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.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: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
}

.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: #52c41a;
    text-decoration: none;
}

/* 底部固定栏 */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 750px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    gap: 10px;
    z-index: 99;
}

.bottom-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 500;
}

.bottom-btn-primary {
    background: linear-gradient(135deg, #52c41a 0%, #73d13d 100%);
    color: white;
    flex: 2;
}

.bottom-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

/* 下载页面特殊样式 */
.download-card {
    background: #fff;
    margin: 12px;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.platform-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.platform-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s;
}

.platform-item:active {
    background: #f0f0f0;
    transform: scale(0.98);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-right: 12px;
}

.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;
    }
}
