/* ============================================
   超级应用商店 · iOS 26 / Liquid Glass 风格
   ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --bg: #f5f5f7;
    --bg-elevated: rgba(255, 255, 255, 0.72);
    --card: #ffffff;
    --text: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --fill: rgba(118, 118, 128, 0.12);
    --fill-2: rgba(118, 118, 128, 0.08);
    --separator: rgba(60, 60, 67, 0.12);
    --blue: #0071e3;
    --blue-press: #0077ed;
    --green: #30d158;
    --radius: 22px;
    --radius-lg: 28px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.03);
}

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* ===== 顶部导航（大标题风格） ===== */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(245, 245, 247, 0.78);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 14px 22px 10px;
}
.nav-inner { max-width: 960px; margin: 0 auto; }
.nav-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.nav-brand {
    font-size: 17px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 8px;
}
.nav-brand .logo-dot {
    width: 22px; height: 22px; border-radius: 7px;
    background: linear-gradient(135deg, #5ac8fa, #0071e3);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px; font-weight: 700;
}
.nav-title {
    font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
    color: var(--text); margin: 4px 0 14px;
}

/* 搜索框（iOS 风格） */
.search {
    background: rgba(118,118,128,0.10);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-3); font-size: 15px;
    transition: background .2s, box-shadow .2s;
}
.search:focus-within {
    background: rgba(118,118,128,0.14);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.search svg { flex-shrink: 0; opacity: 0.5; width: 16px; height: 16px; }

/* 分类胶囊 */
.cats {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 4px 0 2px; margin-top: 14px;
    scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
    flex-shrink: 0; padding: 6px 14px; border-radius: 999px;
    background: var(--fill-2); font-size: 13px; font-weight: 500;
    color: var(--text-2); transition: all .2s;
}
.cat.active { background: var(--text); color: #fff; }

/* ===== 主体 ===== */
.container { max-width: 960px; margin: 0 auto; padding: 20px 22px 60px; }

.section-label {
    font-size: 13px; font-weight: 600; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.04em;
    margin: 28px 4px 10px;
}

/* ===== 精选大卡片 ===== */
.feature {
    background: var(--card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    margin-top: 8px;
}
.feature-hero {
    background: linear-gradient(160deg, #e8f0fe 0%, #f5f0ff 100%);
    padding: 28px 24px;
    display: flex; align-items: center; gap: 18px;
}
.feature-icon {
    width: 88px; height: 88px; border-radius: 22px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    flex-shrink: 0;
}
.feature-icon img { width: 100%; height: 100%; object-fit: cover; }
.feature-tag {
    font-size: 11px; font-weight: 600; color: var(--blue);
    text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.feature-name { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.feature-sub { font-size: 13px; color: var(--text-2); margin-top: 3px; }

/* ===== 应用列表（iOS 紧凑行） ===== */
.app-list {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.app-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    transition: background .15s;
}
.app-row + .app-row { border-top: 0.5px solid var(--separator); margin: 0 18px; padding-left: 0; padding-right: 0; }
.app-row + .app-row { border-top: 0.5px solid var(--separator); }
.app-row:first-child { padding-top: 16px; }
.app-row:last-child { padding-bottom: 16px; }

.app-icon {
    width: 60px; height: 60px; border-radius: 14px; overflow: hidden;
    flex-shrink: 0; background: var(--fill-2);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }

.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.app-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.app-summary {
    font-size: 12px; color: var(--text-2); margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* iOS 下载按钮（胶囊） */
.dl-btn {
    flex-shrink: 0;
    padding: 6px 14px; border-radius: 999px;
    background: var(--fill);
    color: var(--blue);
    font-size: 13px; font-weight: 600;
    min-width: 72px; text-align: center;
    transition: all .15s;
}
.dl-btn:hover { background: rgba(0,113,227,0.1); }
.dl-btn:active { transform: scale(0.96); }

/* ===== 详情页 ===== */
.detail-head {
    display: flex; align-items: center; gap: 20px;
    padding: 12px 4px 20px;
}
.detail-icon {
    width: 110px; height: 110px; border-radius: 26px; overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    flex-shrink: 0;
}
.detail-icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-name { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.detail-sub { font-size: 14px; color: var(--text-2); margin-top: 4px; }

.detail-actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.btn-blue {
    flex: 1; padding: 12px; border-radius: 14px;
    background: var(--blue); color: #fff;
    font-size: 15px; font-weight: 600;
    transition: all .15s;
}
.btn-blue:hover { background: var(--blue-press); }
.btn-blue:active { transform: scale(0.98); }

/* 评分行 */
.rating-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 4px;
    border-top: 0.5px solid var(--separator);
    border-bottom: 0.5px solid var(--separator);
    margin: 0 0 20px;
}
.rating-block { flex: 1; text-align: center; }
.rating-num { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.rating-label { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.rating-divider { width: 0.5px; height: 32px; background: var(--separator); }

/* 信息行（iOS 设置页风格） */
.info-group {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 14px;
}
.info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 16px; font-size: 14px;
}
.info-row + .info-row { border-top: 0.5px solid var(--separator); margin-left: 16px; }
.info-row .k { color: var(--text); }
.info-row .v { color: var(--text-3); font-size: 13px; }

/* 介绍 */
.desc-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px 16px;
}
.desc-card h3 {
    font-size: 13px; font-weight: 600; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.desc-card p { font-size: 14px; color: var(--text); line-height: 1.6; white-space: pre-wrap; }

/* 返回按钮 */
.back-nav {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 15px; color: var(--blue);
    padding: 8px 0;
}
.back-nav svg { opacity: 0.8; }

/* 底部 */
.footer {
    text-align: center; color: var(--text-3); font-size: 12px;
    padding: 40px 20px;
}




.btn-step {
    display: block; width: 100%; flex: 0 0 100%; height: 50px; line-height: 50px;
    text-align: center; font-size: 16px; font-weight: 600;
    border-radius: 14px; margin-top: 10px; text-decoration: none;
    transition: opacity .2s;
}
.btn-step:first-child { margin-top: 0; }
.btn-step.btn-secondary {
    background: rgba(0,113,227,0.12); color: #0071e3;
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    height: 22px;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
}
.search input::placeholder {
    color: var(--text-3);
}

/* 强制搜索框透明 */
form.search, .search {
    background: rgba(118,118,128,0.10) !important;
    border: none !important;
    box-shadow: none !important;
}
.search input, .search input:focus, .search input:active {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -webkit-border-radius: 0 !important;
    color: #1d1d1f !important;
}
.search input::placeholder {
    color: #86868b !important;
}
