@charset "UTF-8";
/* ==========================================================
   应用市场 H5  ·  移动端设计系统 v2.0
   风格参考：华为应用市场（HarmonyOS Design）
   支持：浅色 / 暗色双主题 · 沉浸头图 · 骨架屏 · 微交互
   ========================================================== */

:root {
    /* 主色 */
    --primary: #0A59F7;
    --primary-dark: #0043C8;
    --primary-light: #E9F0FE;
    --primary-grad: linear-gradient(135deg, #3B82FF 0%, #0A59F7 100%);
    --danger: #FA2A2D;
    --warning: #FF8A00;
    --success: #1FC48A;

    /* 文本 */
    --text: #16181A;
    --text-2: #5C6066;
    --text-3: #9BA1A8;

    /* 面与线 */
    --bg: #F3F5F8;
    --card: #FFFFFF;
    --fill: #F2F4F7;
    --fill-2: #F4F6F9;
    --fill-3: #EFF1F4;
    --line: #EDEFF2;
    --line-strong: #E2E5EA;

    /* 语义浅底 */
    --warn-bg: #FFF8E8;
    --warn-bg-2: #FFF0EC;
    --warn-text: #A96A00;
    --danger-bg: #FFEDED;

    /* 顶/底栏毛玻璃 */
    --bar-bg: rgba(255, 255, 255, .92);
    --bar-border: rgba(0, 0, 0, .06);

    /* 圆角 */
    --radius-l: 20px;
    --radius: 14px;
    --radius-s: 11px;

    /* 阴影（多层更精致） */
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 14px rgba(16, 24, 40, .05);
    --shadow-l: 0 6px 16px rgba(16, 24, 40, .08), 0 16px 40px rgba(16, 24, 40, .10);
    --shadow-press: 0 1px 2px rgba(16, 24, 40, .06);

    /* 底部导航高度 + 安全区 */
    --nav-h: 56px;
    --safe-b: env(safe-area-inset-bottom, 0px);

    /* 入场动画曲线 */
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --ease-smooth: cubic-bezier(.4, 0, .2, 1);
}

/* ================== 暗色主题 ================== */
[data-theme="dark"] {
    --primary: #4D8BFF;
    --primary-dark: #0043C8;
    --primary-light: rgba(77, 139, 255, .16);
    --primary-grad: linear-gradient(135deg, #3B82FF 0%, #0A59F7 100%);
    --danger: #FF5B5E;
    --warning: #FFA033;
    --success: #2FD79B;

    --text: #E9EBEF;
    --text-2: #A6ADB6;
    --text-3: #6E757E;

    --bg: #0E1014;
    --card: #181B21;
    --fill: #20242C;
    --fill-2: #23272F;
    --fill-3: #14171C;
    --line: #262B33;
    --line-strong: #2E333C;

    --warn-bg: #2A230C;
    --warn-bg-2: #2E1A14;
    --warn-text: #E0A44A;
    --danger-bg: #2E1416;

    --bar-bg: rgba(18, 20, 24, .90);
    --bar-border: rgba(255, 255, 255, .07);

    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 14px rgba(0, 0, 0, .35);
    --shadow-l: 0 6px 16px rgba(0, 0, 0, .4), 0 16px 40px rgba(0, 0, 0, .5);
    --shadow-press: 0 1px 2px rgba(0, 0, 0, .4);
}

* { -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC",
        "Helvetica Neue", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 750px;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    transition: background-color .3s var(--ease-smooth), color .3s var(--ease-smooth);
}

a { color: inherit; text-decoration: none; }
a:hover { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
input, button, textarea, select { font-family: inherit; outline: none; }
button { border: none; background: none; cursor: pointer; }

/* 滚动条美化（桌面预览时） */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(150, 150, 150, .3); border-radius: 3px; }

.text-primary-c { color: var(--primary) !important; }
.text-muted-c { color: var(--text-3) !important; }
.text-danger-c { color: var(--danger) !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ellipsis-2 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.ellipsis-3 {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================== 页面容器 ================== */
.page {
    padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
    min-height: 100vh;
    animation: pageEnter .32s var(--ease-smooth);
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.page-leave { opacity: 0; transform: translateY(8px); transition: opacity .22s var(--ease-smooth), transform .22s var(--ease-smooth); }
.page.no-nav { padding-bottom: 16px; }
.page.has-bottombar { padding-bottom: calc(66px + var(--safe-b)); }
.wrap { padding: 0 12px; }

/* ================== 顶部栏 ================== */
.topbar {
    position: sticky; top: 0; z-index: 90;
    background: var(--card);
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    min-height: 50px;
    box-shadow: 0 1px 0 var(--bar-border);
    transition: background-color .3s var(--ease-smooth);
}
.topbar.grad {
    background: var(--primary-grad);
    box-shadow: none;
}
.topbar.grad .tb-title, .topbar.grad .tb-btn { color: #fff; }
.tb-btn {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: var(--text);
    border-radius: 50%;
    transition: background-color .15s;
}
.tb-btn:active { background: var(--fill); }
.tb-title {
    flex: 1; font-size: 17px; font-weight: 600; letter-spacing: .3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tb-title.center { text-align: center; }
.tb-actions { display: flex; align-items: center; gap: 12px; font-size: 18px; color: var(--text-2); }

/* 搜索头（沉浸式渐变） */
.search-head {
    position: sticky; top: 0; z-index: 90;
    background: var(--primary-grad);
    padding: 10px 12px 12px;
    box-shadow: 0 4px 14px rgba(10, 89, 247, .18);
}
[data-theme="dark"] .search-head { box-shadow: none; }
.search-head .brand {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.search-head .brand .logo {
    width: 28px; height: 28px; border-radius: 9px;
    background: rgba(255, 255, 255, .22); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 700;
}
.search-head .brand .name { font-size: 17px; font-weight: 700; color: #fff; }
.search-head .brand .slogan { font-size: 11px; color: rgba(255, 255, 255, .8); margin-left: 2px; }
.search-box {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .95); border-radius: 20px;
    padding: 0 14px; height: 38px;
}
.search-box i { color: var(--text-3); font-size: 14px; }
.search-box input {
    flex: 1; border: none; background: transparent;
    font-size: 14px; color: var(--text); height: 100%;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box .sb-btn {
    color: var(--primary); font-size: 13px; font-weight: 600; padding-left: 6px;
    border-left: 1px solid var(--line-strong);
}

/* ================== 卡片 / 区块 ================== */
.card {
    background: var(--card);
    border-radius: var(--radius-l);
    box-shadow: var(--shadow);
    margin: 12px;
    overflow: hidden;
    transition: background-color .3s var(--ease-smooth);
}
.card-pad { padding: 14px; }
.sec { margin: 12px; }
.sec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding: 0 2px;
}
.sec-head .t {
    font-size: 17px; font-weight: 700; letter-spacing: .2px;
    display: flex; align-items: center; gap: 6px;
}
.sec-head .t .bar {
    width: 3px; height: 15px; border-radius: 2px; background: var(--primary);
}
.sec-head .more { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 3px; }
.sec-head .more:active { opacity: .6; }

/* ================== 轮播 ================== */
.banner {
    margin: 10px 12px 0;
    border-radius: var(--radius-l);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.banner-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.banner-track::-webkit-scrollbar { display: none; }
.banner-item { flex: 0 0 100%; scroll-snap-align: start; }
.banner-item img { width: 100%; height: 152px; object-fit: cover; display: block; }
.banner-dots {
    position: absolute; bottom: 8px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 5px;
}
.banner-dots span {
    width: 5px; height: 5px; border-radius: 3px;
    background: rgba(255, 255, 255, .55); transition: all .3s;
}
.banner-dots span.on { width: 16px; background: #fff; }

/* ================== 金刚区分类 ================== */
.cat-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 14px 4px; padding: 18px 10px;
}
.cat-grid .item { text-align: center; transition: transform .15s; }
.cat-grid .item:active { transform: scale(.92); }
.cat-grid .ico {
    width: 46px; height: 46px; margin: 0 auto 7px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px; color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}
.cat-grid .tx {
    font-size: 11.5px; color: var(--text-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 分类色板 */
.c1 { background: linear-gradient(135deg, #5B9CFF, #2C6EF2); }
.c2 { background: linear-gradient(135deg, #FF9A6C, #FF6B35); }
.c3 { background: linear-gradient(135deg, #7ED9A5, #23B87A); }
.c4 { background: linear-gradient(135deg, #C08BFF, #8A4DFF); }
.c5 { background: linear-gradient(135deg, #FFC46B, #FF9500); }
.c6 { background: linear-gradient(135deg, #6FD8E8, #12A5C4); }
.c7 { background: linear-gradient(135deg, #FF8FA8, #F5486E); }
.c8 { background: linear-gradient(135deg, #9AA9FF, #5C6CF5); }
.c9 { background: linear-gradient(135deg, #7BD0FF, #2F9BFF); }
.c10 { background: linear-gradient(135deg, #B7D96B, #79B517); }

/* ================== 应用列表项 ================== */
.app-list { padding: 4px 0; }
.app-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    position: relative;
    transition: background-color .15s;
}
.app-item:active { background: var(--fill); }
.app-item + .app-item::before {
    content: ""; position: absolute; left: 78px; right: 14px; top: 0;
    height: 1px; background: var(--line);
}
.app-item .icon {
    width: 56px; height: 56px; flex: 0 0 56px;
    border-radius: 14px; overflow: hidden;
    background: var(--fill-2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
.app-item .icon img { width: 100%; height: 100%; object-fit: cover; }
.app-item .info { flex: 1; min-width: 0; }
.app-item .nm {
    font-size: 15px; font-weight: 600; color: var(--text);
    display: flex; align-items: center; gap: 5px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-item .ds {
    font-size: 12px; color: var(--text-3); margin-top: 3px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.app-item .mt {
    font-size: 11px; color: var(--text-3); margin-top: 4px;
    display: flex; align-items: center; gap: 8px;
}
.app-item .mt .dot { width: 2px; height: 2px; border-radius: 50%; background: var(--text-3); }
.btn-get {
    flex: 0 0 auto;
    background: var(--primary-light); color: var(--primary);
    font-size: 13px; font-weight: 600;
    padding: 6px 16px; border-radius: 15px;
    white-space: nowrap;
    transition: transform .15s, background-color .15s;
}
.btn-get:active { transform: scale(.92); background: var(--primary-light); filter: brightness(.95); }
.btn-get.solid { background: var(--primary-grad); color: #fff; }

/* 排名徽标 */
.rank-no {
    flex: 0 0 20px; text-align: center;
    font-size: 14px; font-weight: 800; font-style: italic;
    color: var(--text-3);
}
.rank-no.t1 { color: #FF3B30; }
.rank-no.t2 { color: #FF8A00; }
.rank-no.t3 { color: #FFB800; }

/* 置顶/标签 */
.tag {
    display: inline-block; font-size: 10px; line-height: 15px;
    padding: 0 5px; border-radius: 4px; font-weight: 500;
    vertical-align: middle;
}
.tag-top { background: var(--warn-bg-2); color: #FF5B27; }
.tag-new { background: rgba(31, 196, 138, .14); color: #12A46F; }
.tag-hot { background: var(--danger-bg); color: var(--danger); }
.tag-cat { background: var(--fill); color: var(--text-3); }

/* ================== 横向卡片（精品推荐） ================== */
.hscroll {
    display: flex; gap: 11px; overflow-x: auto;
    padding: 2px 12px 6px; margin: 0 -12px;
    scrollbar-width: none;
}
.hscroll::-webkit-scrollbar { display: none; }
.hcard {
    flex: 0 0 96px; text-align: center;
    transition: transform .15s;
}
.hcard:active { transform: scale(.95); }
.hcard .icon {
    width: 64px; height: 64px; margin: 0 auto 8px;
    border-radius: 17px; overflow: hidden; background: var(--fill-2);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .1);
}
.hcard .icon img { width: 100%; height: 100%; object-fit: cover; }
.hcard .nm {
    font-size: 12.5px; font-weight: 500; margin-bottom: 7px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hcard .btn-get { display: inline-block; padding: 4px 14px; font-size: 12px; }

/* 大图推荐卡 */
.big-card {
    background: var(--card); border-radius: var(--radius-l);
    overflow: hidden; box-shadow: var(--shadow);
}
.big-card .cover { width: 100%; height: 150px; object-fit: cover; }

/* ================== 左分类 + 右列表 ================== */
.split { display: flex; align-items: stretch; min-height: calc(100vh - 100px); }
.side {
    flex: 0 0 88px; background: var(--fill-3);
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    position: sticky; top: 50px; align-self: flex-start;
    max-height: calc(100vh - 50px - var(--nav-h));
    padding-bottom: 20px;
    transition: background-color .3s var(--ease-smooth);
}
.side a {
    display: block; padding: 14px 6px; text-align: center;
    font-size: 12.5px; color: var(--text-2); position: relative;
    line-height: 1.3;
}
.side a.on {
    background: var(--card); color: var(--primary); font-weight: 600;
}
.side a.on::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; border-radius: 0 2px 2px 0; background: var(--primary);
}
.main-col { flex: 1; min-width: 0; background: var(--card); transition: background-color .3s; }

/* 顶部 tab */
.tabs {
    display: flex; background: var(--card); position: sticky; top: 50px; z-index: 80;
    box-shadow: 0 1px 0 var(--bar-border);
    overflow-x: auto; scrollbar-width: none;
    transition: background-color .3s;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
    flex: 1 0 auto; text-align: center; padding: 11px 16px;
    font-size: 14.5px; color: var(--text-2); position: relative; white-space: nowrap;
}
.tabs a.on { color: var(--primary); font-weight: 700; }
.tabs a.on::after {
    content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 3px; border-radius: 2px; background: var(--primary);
}
.tabs.pill { box-shadow: none; background: transparent; padding: 10px 12px; gap: 8px; }
.tabs.pill a {
    flex: 0 0 auto; background: var(--card); border-radius: 16px; padding: 6px 16px;
    font-size: 13px; box-shadow: var(--shadow);
}
.tabs.pill a.on { background: var(--primary); color: #fff; }
.tabs.pill a.on::after { display: none; }

/* 筛选条 */
.filter-bar {
    display: flex; gap: 8px; padding: 10px 12px; background: var(--card);
    overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line);
    transition: background-color .3s;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-bar a {
    flex: 0 0 auto; padding: 5px 13px; border-radius: 14px;
    background: var(--fill); font-size: 12.5px; color: var(--text-2);
}
.filter-bar a.on { background: var(--primary-light); color: var(--primary); font-weight: 600; }

/* 应用 / 游戏 子切换 */
.subtabs {
    position: sticky; top: 50px; z-index: 85; display: flex; gap: 18px;
    padding: 11px 16px 9px; background: var(--card); border-bottom: 1px solid var(--line);
    transition: background-color .3s;
}
.subtabs a {
    position: relative; padding-bottom: 6px; font-size: 15px; color: var(--text-2);
}
.subtabs a.on { color: var(--text); font-weight: 700; }
.subtabs a.on::after {
    content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
    width: 22px; height: 3px; border-radius: 2px; background: var(--primary);
}

/* ================== 详情页 ================== */
.detail-hero {
    position: relative;
    padding: 18px 14px 16px;
    background: var(--primary-grad);
    overflow: hidden;
    color: #fff;
}
.detail-hero::before {
    content: ""; position: absolute; inset: 0;
    background: var(--app-tint, transparent);
    opacity: .55; mix-blend-mode: overlay;
}
.detail-hero .hb {
    position: absolute; top: 10px; right: 12px; z-index: 2;
    display: flex; gap: 14px; color: #fff; font-size: 18px;
}
.detail-hero .hb a { opacity: .92; transition: transform .15s; }
.detail-hero .hb a:active { transform: scale(.9); }
.detail-hed {
    position: relative; z-index: 2;
    display: flex; gap: 14px; align-items: flex-start;
}
.detail-hero .icon {
    width: 80px; height: 80px; flex: 0 0 80px; border-radius: 20px;
    overflow: hidden; background: rgba(255, 255, 255, .25);
    border: 1px solid rgba(255, 255, 255, .4);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.detail-hero .icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero h1 { font-size: 20px; font-weight: 700; margin: 2px 0 6px; line-height: 1.3; }
.detail-hero .sub {
    font-size: 12px; color: rgba(255, 255, 255, .92);
}
.detail-hero .tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.detail-hero .tags .tag {
    background: rgba(255, 255, 255, .2); color: #fff;
    backdrop-filter: blur(4px);
}
.detail-hd {
    background: var(--card); padding: 16px 14px 14px;
    display: flex; gap: 14px; align-items: flex-start;
    transition: background-color .3s;
}
.detail-hd .icon {
    width: 76px; height: 76px; flex: 0 0 76px; border-radius: 19px;
    overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, .1); background: var(--fill-2);
}
.detail-hd .icon img { width: 100%; height: 100%; object-fit: cover; }
.detail-hd h1 { font-size: 19px; font-weight: 700; margin: 2px 0 5px; line-height: 1.3; }
.detail-hd .sub { font-size: 12px; color: var(--text-3); }
.detail-meta {
    display: flex; background: var(--card); padding: 12px 0 16px; text-align: center;
    transition: background-color .3s;
}
.detail-meta .m { flex: 1; position: relative; }
.detail-meta .m + .m::before {
    content: ""; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: var(--line);
}
.detail-meta .v { font-size: 15px; font-weight: 700; color: var(--text); }
.detail-meta .k { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.stars { color: #FFB400; font-size: 11px; letter-spacing: 1px; }

.shots { display: flex; gap: 10px; overflow-x: auto; padding: 12px 14px; scrollbar-width: none; }
.shots::-webkit-scrollbar { display: none; }
.shots img {
    flex: 0 0 auto; height: 216px; border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .1); object-fit: cover;
}
.intro { font-size: 14px; color: var(--text); line-height: 1.85; word-break: break-word; }
.info-rows { font-size: 13px; }
.info-rows .r {
    display: flex; justify-content: space-between; padding: 9px 0;
    border-bottom: 1px solid var(--line);
}
.info-rows .r:last-child { border-bottom: none; }
.info-rows .k { color: var(--text-3); }
.info-rows .v { color: var(--text); font-weight: 500; max-width: 65%; text-align: right; word-break: break-all; }

/* 底部操作条 */
.bottom-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    max-width: 750px; margin: 0 auto;
    background: var(--bar-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--bar-border);
    padding: 8px 14px calc(8px + var(--safe-b));
    display: flex; align-items: center; gap: 12px;
}
.bottom-bar .side-btn {
    text-align: center; font-size: 10px; color: var(--text-3); width: 42px;
}
.bottom-bar .side-btn i { display: block; font-size: 18px; margin-bottom: 1px; color: var(--text-2); }
.bottom-bar .side-btn.on i, .bottom-bar .side-btn.on { color: var(--primary); }
.btn-download {
    flex: 1; height: 44px; border-radius: 22px;
    background: var(--primary-grad); color: #fff;
    font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    box-shadow: 0 4px 14px rgba(10, 89, 247, .3);
    transition: transform .15s;
}
.btn-download:active { transform: scale(.98); color: #fff; }

/* ================== 底部导航 ================== */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    max-width: 750px; margin: 0 auto;
    height: calc(var(--nav-h) + var(--safe-b));
    padding-bottom: var(--safe-b);
    background: var(--bar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--bar-border);
    display: flex;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .05);
}
.tabbar a {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    font-size: 10.5px; color: var(--text-3); gap: 2px;
    transition: color .2s;
    position: relative;
}
.tabbar a i { font-size: 19px; transition: transform .2s; }
.tabbar a.on { color: var(--primary); font-weight: 600; }
.tabbar a.on i { transform: translateY(-1px) scale(1.05); }
.tabbar a:active { opacity: .7; }

/* ================== 表单 ================== */
.form-card {
    background: var(--card); border-radius: var(--radius-l);
    margin: 12px; padding: 4px 14px; box-shadow: var(--shadow);
    transition: background-color .3s;
}
.form-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.form-item:last-child { border-bottom: none; }
.form-item > label {
    display: block; font-size: 13.5px; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
}
.form-item > label .req { color: var(--danger); margin-left: 2px; }
.form-item .hint { font-size: 11.5px; color: var(--text-3); margin-top: 6px; line-height: 1.5; }
.inp, .form-item input[type=text], .form-item input[type=password],
.form-item input[type=tel], .form-item input[type=url],
.form-item input[type=number], .form-item textarea, .form-item select {
    width: 100%; border: 1px solid var(--line-strong); background: var(--fill);
    border-radius: var(--radius-s); padding: 10px 12px;
    font-size: 14px; color: var(--text);
    transition: all .2s; -webkit-appearance: none; appearance: none;
}
.form-item select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%239BA1A8' d='M4.5 6.5L8 10l3.5-3.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
    padding-right: 30px;
}
.inp:focus, .form-item input:focus, .form-item textarea:focus, .form-item select:focus {
    border-color: var(--primary); background: var(--card);
    box-shadow: 0 0 0 3px rgba(10, 89, 247, .12);
}
.form-item textarea { resize: vertical; min-height: 90px; line-height: 1.7; }

.btn {
    display: block; width: 100%; height: 46px; line-height: 46px;
    border-radius: 23px; text-align: center;
    font-size: 16px; font-weight: 600;
    background: var(--primary-grad); color: #fff;
    box-shadow: 0 4px 14px rgba(10, 89, 247, .28);
    transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.985); color: #fff; }
.btn[disabled], .btn.disabled { opacity: .6; pointer-events: none; }
.btn-ghost {
    background: var(--card); color: var(--text-2);
    border: 1px solid var(--line-strong); box-shadow: none;
}
.btn-danger { background: linear-gradient(135deg, #FF6B6E, #FA2A2D); box-shadow: 0 4px 14px rgba(250, 42, 45, .25); }
.btn-sm { height: 34px; line-height: 34px; font-size: 13px; border-radius: 17px; width: auto; padding: 0 18px; display: inline-block; }

/* 图片上传 */
.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.up-box {
    width: 76px; height: 76px; border-radius: 12px;
    border: 1px dashed var(--line-strong); background: var(--fill);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--text-3); font-size: 11px; gap: 3px; position: relative; overflow: hidden;
}
.up-box i { font-size: 20px; }
.up-box input[type=file] {
    position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.up-prev {
    width: 76px; height: 76px; border-radius: 12px; overflow: hidden;
    position: relative; background: var(--fill-2); border: 1px solid var(--line);
}
.up-prev img { width: 100%; height: 100%; object-fit: cover; }
.up-prev .del {
    position: absolute; top: 2px; right: 2px;
    width: 18px; height: 18px; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff;
    font-size: 10px; display: flex; align-items: center; justify-content: center;
}

/* ================== 用户中心 ================== */
.user-hero {
    background: var(--primary-grad);
    padding: 22px 16px 56px; color: #fff; position: relative;
}
.user-hero .row { display: flex; align-items: center; gap: 14px; }
.user-hero .avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: rgba(255, 255, 255, .22); border: 2px solid rgba(255, 255, 255, .5);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; overflow: hidden;
}
.user-hero .avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-hero .nm { font-size: 19px; font-weight: 700; }
.user-hero .ph { font-size: 12.5px; opacity: .88; margin-top: 3px; }
.user-stats {
    margin: -40px 12px 0; background: var(--card); border-radius: var(--radius-l);
    box-shadow: var(--shadow-l); display: flex; padding: 14px 0; position: relative; z-index: 2;
    transition: background-color .3s;
}
.user-stats .s { flex: 1; text-align: center; position: relative; }
.user-stats .s + .s::before {
    content: ""; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: var(--line);
}
.user-stats .v { font-size: 19px; font-weight: 700; color: var(--text); }
.user-stats .k { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }

.menu-list { background: var(--card); border-radius: var(--radius-l); margin: 12px; box-shadow: var(--shadow); overflow: hidden; transition: background-color .3s; }
.menu-list a, .menu-list .mi {
    display: flex; align-items: center; gap: 12px;
    padding: 14px; font-size: 14.5px; position: relative;
    transition: background-color .15s;
}
.menu-list a:active, .menu-list .mi:active { background: var(--fill); }
.menu-list a + a::before, .menu-list .mi + .mi::before {
    content: ""; position: absolute; top: 0; left: 46px; right: 0; height: 1px; background: var(--line);
}
.menu-list .mico {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 14px;
}
.menu-list .mtx { flex: 1; }
.menu-list .marrow { color: var(--text-3); font-size: 14px; }
.menu-list .mbadge {
    background: var(--danger); color: #fff; font-size: 10px;
    padding: 1px 6px; border-radius: 8px;
}
/* 主题切换开关 */
.switch {
    position: relative; width: 44px; height: 26px; flex: 0 0 44px;
    border-radius: 13px; background: var(--line-strong);
    transition: background-color .25s;
}
.switch.on { background: var(--primary); }
.switch .knob {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .25s var(--ease-spring);
}
.switch.on .knob { transform: translateX(18px); }

/* 发布记录 */
.pub-item {
    background: var(--card); border-radius: var(--radius); margin: 10px 12px;
    padding: 12px; box-shadow: var(--shadow);
    transition: background-color .3s, transform .15s;
}
.pub-item:active { transform: scale(.99); }
.pub-item .top { display: flex; gap: 11px; }
.pub-item .icon {
    width: 50px; height: 50px; flex: 0 0 50px; border-radius: 12px;
    overflow: hidden; background: var(--fill-2);
}
.pub-item .icon img { width: 100%; height: 100%; object-fit: cover; }
.pub-item .nm { font-size: 15px; font-weight: 600; }
.pub-item .ds { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.pub-item .foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line);
    font-size: 12px; color: var(--text-3);
}
.st { font-size: 11px; padding: 2px 8px; border-radius: 9px; font-weight: 600; }
.st-wait { background: var(--warn-bg); color: var(--warning); }
.st-pass { background: rgba(31, 196, 138, .14); color: #12A46F; }
.st-reject { background: var(--danger-bg); color: var(--danger); }
.reject-tip {
    margin-top: 8px; background: var(--danger-bg); border-radius: 8px;
    padding: 7px 10px; font-size: 12px; color: var(--danger); line-height: 1.5;
}

/* ================== 登录注册 ================== */
.auth-wrap { padding: 30px 26px 20px; }
.auth-logo {
    width: 66px; height: 66px; border-radius: 20px; margin: 10px auto 14px;
    background: var(--primary-grad); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; box-shadow: 0 8px 20px rgba(10, 89, 247, .3);
}
.auth-title { text-align: center; font-size: 22px; font-weight: 700; }
.auth-sub { text-align: center; font-size: 13px; color: var(--text-3); margin: 6px 0 26px; }
.auth-field {
    display: flex; align-items: center; gap: 10px;
    background: var(--fill); border-radius: 14px; padding: 0 14px;
    height: 48px; margin-bottom: 14px; border: 1px solid transparent;
    transition: all .2s;
}
.auth-field:focus-within { border-color: var(--primary); background: var(--card); box-shadow: 0 0 0 3px rgba(10, 89, 247, .12); }
.auth-field i { color: var(--text-3); width: 16px; text-align: center; }
.auth-field input {
    flex: 1; border: none; background: transparent; font-size: 15px; height: 100%;
}
.auth-field .eye { color: var(--text-3); padding: 4px; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; margin: 16px 2px 0; color: var(--text-3); }
.auth-links a { color: var(--primary); }
.agree { font-size: 12px; color: var(--text-3); text-align: center; margin-top: 20px; line-height: 1.7; }

/* ================== 空状态 ================== */
.empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty i { font-size: 46px; color: #D8DDE4; margin-bottom: 12px; display: block; }
[data-theme="dark"] .empty i { color: #3A3F47; }
.empty p { font-size: 13.5px; margin: 0 0 14px; }
.empty .empty-art {
    width: 120px; height: 120px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
}

/* ================== 分页 ================== */
.pager { padding: 16px 12px 22px; text-align: center; }
.pager-list { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pager-item a {
    display: block; min-width: 32px; height: 32px; line-height: 32px;
    padding: 0 8px; border-radius: 9px; background: var(--card);
    font-size: 13px; color: var(--text-2); box-shadow: var(--shadow);
}
.pager-item.active a { background: var(--primary); color: #fff; font-weight: 600; }
.pager-item.disabled a { color: var(--text-3); pointer-events: none; }
.pager-dots { line-height: 32px; color: var(--text-3); font-size: 12px; }
.pager-info { font-size: 11.5px; color: var(--text-3); margin-top: 10px; }

/* ================== Toast / 弹窗 ================== */
.toast-box {
    position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(.9);
    z-index: 9999; background: rgba(20, 22, 26, .9); color: #fff;
    padding: 12px 20px; border-radius: 12px; font-size: 14px;
    max-width: 76%; text-align: center; opacity: 0;
    transition: all .25s var(--ease-spring);
    pointer-events: none; backdrop-filter: blur(8px); line-height: 1.5;
}
.toast-box.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.toast-box i { margin-right: 6px; }
.toast-box.success i { color: #4ADE80; }
.toast-box.error i { color: #FF7A7A; }
.toast-box.warn i { color: #FFC44D; }

.modal-mask {
    position: fixed; inset: 0; z-index: 9998;
    background: rgba(0, 0, 0, .45); backdrop-filter: blur(2px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transition: opacity .22s;
}
.modal-mask.show { opacity: 1; pointer-events: auto; }
.modal-box {
    width: 78%; max-width: 320px; background: var(--card); border-radius: 18px;
    overflow: hidden; transform: scale(.88); transition: transform .28s var(--ease-spring);
}
.modal-mask.show .modal-box { transform: scale(1); }
.modal-box .mh { padding: 22px 20px 6px; text-align: center; font-size: 17px; font-weight: 700; }
.modal-box .mb { padding: 4px 20px 20px; text-align: center; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.modal-box .mf { display: flex; border-top: 1px solid var(--line); }
.modal-box .mf button {
    flex: 1; padding: 13px 0; font-size: 16px; color: var(--text-2); background: var(--card);
}
.modal-box .mf button + button { border-left: 1px solid var(--line); color: var(--primary); font-weight: 600; }

/* 加载 */
.loading-mask {
    position: fixed; inset: 0; z-index: 9997; background: rgba(255, 255, 255, .55);
    display: none; align-items: center; justify-content: center;
}
[data-theme="dark"] .loading-mask { background: rgba(14, 16, 20, .55); }
.loading-mask.show { display: flex; }
.spinner {
    width: 32px; height: 32px; border: 3px solid rgba(10, 89, 247, .18);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 回到顶部 */
.to-top {
    position: fixed; right: 14px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
    width: 38px; height: 38px; border-radius: 50%; background: var(--bar-bg);
    box-shadow: var(--shadow-l); display: none;
    align-items: center; justify-content: center; color: var(--text-2); z-index: 92;
    backdrop-filter: blur(10px);
}
.to-top.show { display: flex; }

/* 通知条 */
.notice-bar {
    display: flex; align-items: center; gap: 8px; margin: 12px;
    background: var(--warn-bg); color: var(--warn-text); border-radius: 12px;
    padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
}
.notice-bar i { flex: 0 0 auto; }

/* 搜索历史 */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a {
    background: var(--fill); border-radius: 14px; padding: 5px 13px;
    font-size: 12.5px; color: var(--text-2);
}
.chips a.hot { background: var(--warn-bg-2); color: #FF5B27; }

/* 网站卡片 */
.web-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
.web-card {
    background: var(--card); border-radius: var(--radius); padding: 12px;
    box-shadow: var(--shadow); display: flex; gap: 10px; align-items: flex-start;
    transition: background-color .3s, transform .15s;
}
.web-card:active { transform: scale(.98); }
.web-card .ico {
    width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
    overflow: hidden; background: var(--fill-2);
}
.web-card .ico img { width: 100%; height: 100%; object-fit: cover; }
.web-card .nm { font-size: 13.5px; font-weight: 600; }
.web-card .ds { font-size: 11px; color: var(--text-3); margin-top: 2px; line-height: 1.45; }

.divider-line { height: 8px; background: var(--bg); }
.safe-b { height: calc(var(--safe-b) + 6px); }

/* ================== 下拉刷新 ================== */
.pull-indicator {
    position: fixed; left: 0; right: 0; top: 0; z-index: 88;
    max-width: 750px; margin: 0 auto;
    height: 56px; display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 8px; color: var(--text-3); font-size: 12px;
    transform: translateY(-56px);
    pointer-events: none;
}
.pull-indicator .pull-ico {
    width: 22px; height: 22px; border: 2px solid var(--text-3);
    border-top-color: var(--primary); border-radius: 50%;
    animation: spin .8s linear infinite;
    display: none;
}
.pull-indicator.loading .pull-ico { display: block; }
.pull-indicator .pull-txt { margin-left: 6px; }

/* ================== 骨架屏 ================== */
.sk {
    background: linear-gradient(100deg, var(--fill) 30%, var(--fill-2) 50%, var(--fill) 70%);
    background-size: 200% 100%;
    animation: skShine 1.2s ease-in-out infinite;
    border-radius: 8px;
}
@keyframes skShine { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 12px; margin: 8px 0; }
.sk-line.sm { height: 10px; width: 50%; }
.sk-line.lg { height: 16px; width: 80%; }
.sk-card { background: var(--card); border-radius: var(--radius-l); margin: 12px; padding: 14px; box-shadow: var(--shadow); }
.sk-round { border-radius: 50%; }
.sk-ico { width: 56px; height: 56px; border-radius: 14px; }
.sk-hico { width: 64px; height: 64px; border-radius: 17px; }
.sk-overlay {
    position: fixed; inset: 0; z-index: 9996;
    background: var(--bg); overflow-y: auto;
    transform: translateY(0); opacity: 1;
    transition: opacity .35s var(--ease-smooth);
}
.sk-overlay.hide { opacity: 0; }
[data-theme="dark"] .sk-overlay { background: #0E1014; }
.sk-app-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.sk-banner { height: 152px; border-radius: var(--radius-l); margin: 10px 12px 0; }
.sk-cat { text-align: center; }
.sk-cat .sk { margin: 0 auto 7px; }
.sk-app-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
.sk-banner { height: 152px; border-radius: var(--radius-l); margin: 10px 12px 0; }

/* 入场动画（列表项逐个浮现） */
.fade-up { animation: fadeUp .4s var(--ease-smooth) both; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* 点击波纹 */
.ripple {
    position: absolute; border-radius: 50%;
    background: currentColor; opacity: .18;
    transform: scale(0); animation: rippleAnim .6s ease-out;
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(2.4); opacity: 0; } }

/* 主题切换悬浮按钮（仅演示用，可删） */
.theme-fab {
    position: fixed; left: 14px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--bar-bg); box-shadow: var(--shadow-l);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-2); z-index: 92; backdrop-filter: blur(10px);
    font-size: 16px;
}
