/* ============================================================
   云链资产管理 · 移动端设计系统 assetm.css
   设计语言：青黛（深青绿）+ 琥珀（金棕点缀）
   适配页面：index/project/card/user 等前台手机端页面
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
    /* 青黛色阶 */
    --ink: #102E2B;            /* 墨青：标题文字 */
    --teal-900: #0A2E2B;
    --teal-800: #0D3B38;
    --teal-700: #114B47;
    --teal-600: #0E6B63;       /* 主色 */
    --teal-500: #128478;
    --teal-100: #D8EAE7;
    --teal-50:  #EEF6F4;

    /* 琥珀色阶 */
    --amber-600: #B96E12;
    --amber-500: #D98A1F;
    --amber-400: #E8A33D;
    --amber-100: #FBEFDA;
    --amber-50:  #FDF6EA;

    /* 功能色 */
    --green: #2E9E6B;
    --red: #D45B4C;
    --red-50: #FBEFED;

    /* 中性色 */
    --text-1: #162523;
    --text-2: #52645F;
    --text-3: #93A5A0;
    --line: #E3EAE8;
    --line-2: #F0F4F2;
    --bg: #F2F5F4;
    --card: #FFFFFF;

    /* 阴影 */
    --shadow-card: 0 6px 18px rgba(13, 59, 56, 0.06);
    --shadow-pop: 0 12px 36px rgba(13, 59, 56, 0.16);

    /* 圆角 */
    --r-card: 18px;
    --r-btn: 12px;
    --r-field: 10px;

    /* 渐变 */
    --grad-hero: linear-gradient(148deg, #0D3B38 0%, #11544D 58%, #0E6B63 100%);
    --grad-gold: linear-gradient(115deg, #E8A33D 0%, #C97F1B 100%);
    --grad-primary: linear-gradient(135deg, #0E6B63 0%, #0A524C 100%);

    /* 字体 */
    --font-body: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
    --font-num: "DIN Alternate", "Bahnschrift", "Helvetica Neue", sans-serif;
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-1);
    font-size: 15px;
    line-height: 1.55;
    min-height: 100vh;
    /* 顶部细颗粒纹理，增加纸感 */
    background-image: radial-gradient(rgba(14, 107, 99, 0.028) 1px, transparent 1px);
    background-size: 22px 22px;
}

a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---------- 3. 图标 ---------- */
.icon { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; display: inline-block; vertical-align: -0.18em; }
.icon--fill { fill: currentColor; stroke: none; }
.icon--lg { width: 1.6em; height: 1.6em; }

/* ---------- 4. 布局 ---------- */
.page { max-width: 640px; margin: 0 auto; }
.page--tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.page--appbar { padding-top: 54px; }

.section { padding: 0 16px; margin-bottom: 18px; }
.section__head { display: flex; align-items: baseline; gap: 8px; margin: 2px 2px 12px; }
.section__title { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: 0.5px; }
.section__title::before { content: ""; display: inline-block; width: 4px; height: 15px; border-radius: 2px; background: var(--grad-gold); margin-right: 8px; vertical-align: -2px; }
.section__sub { font-size: 12.5px; color: var(--text-3); }
.section__count { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.section__count b { color: var(--amber-600); font-weight: 700; }

/* ---------- 5. 顶部导航栏 ---------- */
.appbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    max-width: 640px; margin: 0 auto;
    height: calc(54px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 8px 0;
    display: flex; align-items: center; gap: 4px;
    background: var(--grad-hero);
    color: #fff;
}
/* 细斜纹肌理，呼应「账本」质感 */
.appbar::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
    background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, 0.028) 14px 15px);
}
.appbar__btn {
    width: 40px; height: 44px; display: flex; align-items: center; justify-content: center;
    font-size: 21px; color: #fff; position: relative; z-index: 1;
    transition: transform 0.12s;
}
.appbar__btn:active { transform: scale(0.88); }
.appbar__title {
    flex: 1; text-align: center; font-size: 17px; font-weight: 600; letter-spacing: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1;
}
.appbar__btn--right { margin-left: auto; }
.appbar--flat { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.appbar--flat .appbar__btn { color: var(--ink); }
.appbar--flat::before { display: none; }

/* ---------- 6. 英雄区（页面头部渐变卡） ---------- */
.hero {
    position: relative;
    background: var(--grad-hero);
    border-radius: 0 0 26px 26px;
    padding: 18px 20px 58px;
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        repeating-linear-gradient(115deg, transparent 0 16px, rgba(255, 255, 255, 0.03) 16px 17px),
        radial-gradient(120% 150% at 88% -18%, rgba(232, 163, 61, 0.24), transparent 46%);
}
/* 琥珀金环装饰 */
.hero__ring {
    position: absolute; right: -34px; top: -34px;
    width: 148px; height: 148px; border-radius: 50%;
    border: 1px solid rgba(232, 163, 61, 0.42);
}
.hero__ring::after {
    content: ""; position: absolute; inset: 26px; border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.16);
}
.hero__brand { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; margin-bottom: 14px; }
.hero__mark {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--grad-gold);
    display: flex; align-items: center; justify-content: center;
    color: var(--teal-900); font-size: 15px; font-weight: 800;
    box-shadow: 0 3px 10px rgba(185, 110, 18, 0.35);
}
.hero__brand-txt { font-size: 13px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.78); }
.hero__title { font-size: 24px; font-weight: 700; letter-spacing: 2px; position: relative; z-index: 1; }
.hero__desc { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, 0.62); letter-spacing: 1px; position: relative; z-index: 1; }
.hero__stats { position: relative; z-index: 1; }

/* 悬浮统计条（叠在英雄区底部） */
.statbar {
    position: relative; z-index: 2;
    margin: -42px 16px 0;
    background: #fff; border-radius: 16px;
    box-shadow: var(--shadow-pop);
    display: flex;
    padding: 16px 4px;
}
.statbar__item { flex: 1; text-align: center; position: relative; }
.statbar__item + .statbar__item::before { content: ""; position: absolute; left: 0; top: 18%; height: 64%; width: 1px; background: var(--line-2); }
.statbar__num { font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--teal-600); letter-spacing: 0.5px; }
.statbar__num--gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statbar__label { margin-top: 3px; font-size: 11.5px; color: var(--text-3); letter-spacing: 1px; }

/* ---------- 7. 卡片 ---------- */
.card {
    background: var(--card); border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(227, 234, 232, 0.6);
    padding: 16px;
    transition: transform 0.14s, box-shadow 0.14s;
}
a.card, .card--tap { cursor: pointer; }
a.card:active, .card--tap:active { transform: scale(0.985); box-shadow: 0 3px 10px rgba(13, 59, 56, 0.08); }

.card + .card { margin-top: 12px; }

.card__row { display: flex; align-items: center; gap: 10px; }
.card__title { font-size: 16px; font-weight: 700; color: var(--ink); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.meta-list { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.meta { display: flex; align-items: center; gap: 8px; padding: 3.5px 0; font-size: 13.5px; color: var(--text-2); }
.meta .icon { width: 15px; height: 15px; color: var(--text-3); }
.meta b { font-weight: 600; color: var(--text-1); }
.meta__num { font-family: var(--font-num); font-weight: 700; color: var(--amber-600); font-size: 15px; }

.card__arrow { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; font-size: 14px; }

/* ---------- 8. 状态徽章 ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px;
    padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.chip--active { background: var(--teal-50); color: var(--teal-600); border: 1px solid rgba(14, 107, 99, 0.18); }
.chip--active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-600); animation: pulse 1.6s ease-out infinite; }
.chip--done { background: var(--line-2); color: var(--text-3); border: 1px solid var(--line); }
.chip--done::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.chip--view { background: var(--amber-50); color: var(--amber-600); border: 1px solid rgba(217, 138, 31, 0.35); }
.chip--gold { background: var(--amber-100); color: var(--amber-600); }
.chip--ghost { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.92); border: 1px solid rgba(255, 255, 255, 0.25); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 107, 99, 0.35); }
    70% { box-shadow: 0 0 0 6px rgba(14, 107, 99, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 107, 99, 0); }
}

/* ---------- 9. 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 44px; padding: 0 20px;
    border-radius: var(--r-btn);
    font-size: 15px; font-weight: 600; letter-spacing: 1px;
    transition: transform 0.12s, filter 0.12s;
    user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad-primary); color: #fff; box-shadow: 0 6px 14px rgba(14, 107, 99, 0.28); }
.btn--gold { background: var(--grad-gold); color: #fff; box-shadow: 0 6px 14px rgba(201, 127, 27, 0.3); }
.btn--ghost { background: #fff; color: var(--teal-600); border: 1.5px solid rgba(14, 107, 99, 0.45); }
.btn--light { background: var(--teal-50); color: var(--teal-600); }
.btn--plain { background: var(--line-2); color: var(--text-2); }
.btn--danger { background: var(--red-50); color: var(--red); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }

/* ---------- 10. 功能入口宫格 ---------- */
.entry-lg {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 14px;
    background: var(--grad-primary);
    border-radius: var(--r-card);
    padding: 18px 20px;
    color: #fff;
    box-shadow: 0 10px 22px rgba(13, 59, 56, 0.22);
    transition: transform 0.14s;
}
.entry-lg:active { transform: scale(0.98); }
.entry-lg::after {
    content: ""; position: absolute; right: -24px; top: -24px;
    width: 110px; height: 110px; border-radius: 50%;
    border: 1px solid rgba(232, 163, 61, 0.45);
}
.entry-lg__icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex; align-items: center; justify-content: center; font-size: 24px;
    color: var(--amber-400);
}
.entry-lg__title { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.entry-lg__desc { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.66); letter-spacing: 0.5px; }
.entry-lg__go { margin-left: auto; color: rgba(255, 255, 255, 0.85); font-size: 18px; }

.entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.entry {
    background: #fff; border-radius: 16px;
    border: 1px solid rgba(227, 234, 232, 0.7);
    box-shadow: var(--shadow-card);
    padding: 15px 6px 12px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    transition: transform 0.14s;
}
.entry:active { transform: scale(0.94); }
.entry__icon {
    width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.entry__icon--teal { background: var(--teal-50); color: var(--teal-600); }
.entry__icon--gold { background: var(--amber-50); color: var(--amber-600); }
.entry__icon--green { background: #EAF6F0; color: var(--green); }
.entry__label { font-size: 13px; font-weight: 600; color: var(--text-1); letter-spacing: 0.5px; }

/* ---------- 11. 列表行 ---------- */
.panel { background: #fff; border-radius: var(--r-card); box-shadow: var(--shadow-card); border: 1px solid rgba(227, 234, 232, 0.6); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 8px; padding: 15px 16px 5px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.panel__head .icon { color: var(--amber-500); }
.cell { display: flex; align-items: center; gap: 12px; padding: 14.5px 16px; position: relative; cursor: pointer; transition: background 0.15s; }
.cell:active { background: var(--teal-50); }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--line-2); }
.cell__icon { width: 34px; height: 34px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.cell__icon--gold { background: var(--amber-50); color: var(--amber-600); }
.cell__icon--red { background: var(--red-50); color: var(--red); }
.cell__body { flex: 1; min-width: 0; }
.cell__title { font-size: 15px; font-weight: 600; color: var(--text-1); display: flex; align-items: center; gap: 8px; }
.cell__desc { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.cell__value { font-size: 13.5px; color: var(--text-3); }
.cell__arrow { color: #C4D0CD; font-size: 16px; }

/* ---------- 12. 底部标签栏 ---------- */
.tabbar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
    max-width: 640px; margin: 0 auto;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-2);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__item {
    flex: 1; height: 56px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--text-3); font-size: 11px; letter-spacing: 0.5px;
    position: relative;
}
.tabbar__item .icon { width: 22px; height: 22px; }
.tabbar__item.active { color: var(--teal-600); font-weight: 600; }
.tabbar__item.active::before {
    content: ""; position: absolute; top: 6px;
    width: 18px; height: 3px; border-radius: 2px;
    background: var(--grad-gold);
}

/* ---------- 13. 搜索栏 ---------- */
.searchbar { display: flex; align-items: center; gap: 9px; height: 40px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 15px; transition: border-color 0.2s, box-shadow 0.2s; }
.searchbar:focus-within { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.1); }
.searchbar .icon { color: var(--text-3); }
.searchbar input { flex: 1; border: none; outline: none; background: none; font-size: 14px; color: var(--text-1); }
.searchbar input::placeholder { color: var(--text-3); }

/* ---------- 14. 分段选项卡 ---------- */
.seg { display: flex; background: var(--line-2); border-radius: 999px; padding: 3px; }
.seg__item { flex: 1; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--text-2); transition: all 0.2s; }
.seg__item.active { background: #fff; color: var(--teal-600); font-weight: 700; box-shadow: 0 2px 8px rgba(13, 59, 56, 0.1); }

/* ---------- 15. 弹层：遮罩 / 底部抽屉 / 居中对话框 ---------- */
.mask {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(9, 30, 28, 0.55);
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.mask.active { opacity: 1; visibility: visible; }

.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001;
    max-width: 640px; margin: 0 auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    transform: translateY(102%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0.24, 1);
    display: flex; flex-direction: column;
    max-height: 78vh;
    padding-bottom: env(safe-area-inset-bottom);
}
.mask.active .sheet, .sheet.active { transform: translateY(0); }
.sheet__grip { width: 40px; height: 4.5px; border-radius: 3px; background: var(--line); margin: 10px auto 4px; flex-shrink: 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 12px; flex-shrink: 0; }
.sheet__title { font-size: 16.5px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.sheet__close { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); color: var(--text-2); font-size: 15px; display: flex; align-items: center; justify-content: center; }
.sheet__search { padding: 0 18px 10px; flex-shrink: 0; }
.sheet__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 18px; }
.sheet__foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: flex; gap: 10px; flex-shrink: 0; }

.sheet .summary { display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; background: var(--teal-50); border-radius: 12px; margin-bottom: 6px; font-size: 12.5px; color: var(--text-2); flex-shrink: 0; }
.sheet .summary b { color: var(--teal-600); font-family: var(--font-num); font-size: 14px; }

/* 统计行（弹窗内列表项） */
.stats-item { display: flex; align-items: center; gap: 10px; padding: 13.5px 2px; position: relative; cursor: pointer; border-radius: 8px; transition: background 0.15s; }
.stats-item:active { background: var(--teal-50); }
.stats-item + .stats-item::before { content: ""; position: absolute; top: 0; left: 2px; right: 2px; height: 1px; background: var(--line-2); }
.stats-item-name { flex: 1; font-size: 14.5px; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-item-count { font-family: var(--font-num); font-size: 17px; font-weight: 700; color: var(--amber-600); min-width: 34px; text-align: right; }
.stats-item-arrow { color: #C4D0CD; font-size: 13px; }
.stats-empty { text-align: center; color: var(--text-3); padding: 44px 0; font-size: 13.5px; }

/* 居中对话框 */
.mask--center { display: flex; align-items: center; justify-content: center; padding: 24px; }
.dialog {
    width: 100%; max-width: 320px; background: #fff; border-radius: 18px; overflow: hidden;
    animation: dialogIn 0.24s cubic-bezier(0.32, 0.72, 0.24, 1);
}
@keyframes dialogIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 0; }
.dialog__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.dialog__close { width: 26px; height: 26px; border-radius: 50%; background: var(--line-2); color: var(--text-2); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.dialog__body { padding: 14px 18px 18px; font-size: 14px; color: var(--text-2); line-height: 1.7; white-space: pre-line; }
.dialog__foot { display: flex; border-top: 1px solid var(--line-2); }
.dialog__btn { flex: 1; height: 46px; font-size: 15px; font-weight: 600; color: var(--text-2); }
.dialog__btn + .dialog__btn { border-left: 1px solid var(--line-2); color: var(--teal-600); }
.dialog__btn--danger { color: var(--red); }

/* ---------- 16. 加载遮罩 ---------- */
.loading-mask { position: fixed; inset: 0; z-index: 2000; background: rgba(9, 30, 28, 0.62); display: none; align-items: center; justify-content: center; }
.loading-mask.active { display: flex; }
.loading-box { background: #fff; border-radius: 18px; padding: 30px 40px; text-align: center; }
.loading-spin { width: 38px; height: 38px; margin: 0 auto 14px; border-radius: 50%; border: 3.5px solid var(--teal-100); border-top-color: var(--teal-600); animation: spin 0.9s linear infinite; }
.loading-text { font-size: 14.5px; color: var(--text-2); letter-spacing: 1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 17. 表单 ---------- */
.field { margin-bottom: 16px; }
.field__label { display: flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; letter-spacing: 0.5px; }
.field__label .req { color: var(--amber-500); }
.field input, .field select, .field textarea {
    width: 100%; border: 1.5px solid var(--line); border-radius: var(--r-field);
    padding: 11px 13px; font-size: 14.5px; color: var(--text-1); background: #fff;
    outline: none; transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-600); box-shadow: 0 0 0 3px rgba(14, 107, 99, 0.09); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input[readonly] { background: var(--line-2); color: var(--text-2); }
.field select { background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath fill='none' stroke='%2352645F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4.5 4.5L10 1'/%3E%3C/svg%3E") no-repeat right 13px center; }
.field textarea { min-height: 86px; resize: vertical; }

/* ---------- 18. 空状态 ---------- */
.empty { text-align: center; padding: 52px 20px; }
.empty svg { width: 84px; height: 84px; color: var(--teal-100); margin-bottom: 14px; }
.empty__title { font-size: 15px; font-weight: 600; color: var(--text-2); }
.empty__desc { margin-top: 5px; font-size: 12.5px; color: var(--text-3); }

/* ---------- 19. 头像 ---------- */
.avatar { width: 58px; height: 58px; border-radius: 19px; background: var(--grad-primary); color: #fff; font-size: 23px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(14, 107, 99, 0.3); flex-shrink: 0; }

/* ---------- 20. 进度条 ---------- */
.progress { height: 7px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.progress__fill { height: 100%; border-radius: 4px; background: var(--grad-gold); transition: width 0.4s ease; }

/* ---------- 21. 入场动画（列表错落浮现） ---------- */
.stagger > * { animation: fadeUp 0.5s cubic-bezier(0.25, 0.7, 0.3, 1) backwards; }
.stagger > *:nth-child(1) { animation-delay: 0.02s; }
.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.14s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.26s; }
.stagger > *:nth-child(6) { animation-delay: 0.32s; }
.stagger > *:nth-child(7) { animation-delay: 0.38s; }
.stagger > *:nth-child(8) { animation-delay: 0.44s; }
.stagger > *:nth-child(n+9) { animation-delay: 0.5s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   22. PC 宽屏适配（≥1024px）
   说明：页面内联 <style> 在本文件之后加载，故 PC 规则统一用
   html body 前缀提升特异性来覆盖页面级同名样式。
   ============================================================ */
@media (min-width: 1024px) {
    /* ---------- 容器 ---------- */
    html body .page { max-width: 1200px; }
    html body .page--appbar { padding-top: 60px; }
    html body .page--footbar { max-width: 900px; padding-bottom: 104px; }
    html body .page--tabbar { padding-top: 60px; padding-bottom: 28px; }

    /* ---------- 顶部导航（原底部标签栏） ---------- */
    html body .tabbar {
        top: 0; bottom: auto; left: 0; right: 0;
        max-width: none;
        height: 60px;
        padding: 0 max(16px, calc((100vw - 1200px) / 2));
        background: var(--grad-hero);
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }
    html body .tabbar__item {
        flex: 0 0 auto;
        height: 40px;
        flex-direction: row;
        gap: 8px;
        padding: 0 20px;
        border-radius: 10px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.76);
    }
    html body .tabbar__item .icon { width: 18px; height: 18px; }
    html body .tabbar__item.active { color: #fff; background: rgba(255, 255, 255, 0.14); font-weight: 600; }
    html body .tabbar__item.active::before { display: none; }

    /* ---------- 顶部返回栏：通栏 + 内容对齐 ---------- */
    html body .appbar {
        max-width: none;
        height: 60px;
        padding-left: max(8px, calc((100vw - 1200px) / 2));
        padding-right: max(8px, calc((100vw - 1200px) / 2));
    }
    html body .appbar__title { font-size: 18px; }
    html body .appbar__btn { width: 44px; }

    /* ---------- 顶部导航：左侧品牌（原英雄区品牌行上移，仅含 tabbar 的页面出现） ---------- */
    html body .tabbar::before {
        content: "链";
        order: -2;
        flex: 0 0 auto;
        display: inline-flex; align-items: center; justify-content: center;
        width: 30px; height: 30px; border-radius: 9px;
        background: var(--grad-gold); color: #fff;
        font-size: 14px; font-weight: 700;
        box-shadow: 0 3px 10px rgba(185, 110, 18, 0.35);
        margin-right: 9px;
    }
    html body .tabbar::after {
        content: "云链资产管理";
        order: -1;
        flex: 0 0 auto;
        font-size: 13px; letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.78);
        margin-right: auto;
    }

    /* ---------- 英雄区：扁平化页面头（品牌行已上移导航；资产详情页等沉浸式渐变头不受影响） ---------- */
    html body .page--tabbar .hero,
    html body .page--appbar .hero {
        background: none;
        border-radius: 0;
        padding: 22px 32px 58px;
    }
    html body .page--tabbar .hero::before,
    html body .page--appbar .hero::before { display: none; }
    html body .page--tabbar .hero__ring,
    html body .page--appbar .hero__ring { display: none; }
    html body .page--tabbar .hero__brand,
    html body .page--appbar .hero__brand { display: none; }
    html body .page--tabbar .hero__title,
    html body .page--appbar .hero__title { color: var(--ink); }
    html body .page--tabbar .hero__desc,
    html body .page--appbar .hero__desc { color: var(--text-3); }
    html body .page--tabbar .hero .chip--ghost,
    html body .page--appbar .hero .chip--ghost {
        background: var(--teal-50); color: var(--teal-600);
        border: 1px solid rgba(14, 107, 99, 0.18);
    }
    html body .hero__title { font-size: 28px; }
    html body .statbar { margin-left: 32px; margin-right: 32px; }
    /* 连续多个统计条时，后续条不再上浮叠加，避免互相遮挡 */
    html body .statbar + .statbar { margin-top: 16px; }

    /* ---------- 区块间距 ---------- */
    html body .section { padding: 0 32px; }
    html body .section__title { font-size: 18px; }

    /* ---------- 列表：多列网格 ---------- */
    html body #projectList {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    html body #projectList > .project-card { margin: 0; height: 100%; }
    html body #assetList {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
        gap: 16px;
        align-items: start;
    }
    html body #assetList > .card + .card { margin-top: 0; }
    html body #assetList > .adjust-card { margin-bottom: 0; }
    html body .entry-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
    html body .entry { padding: 20px 10px 16px; }

    /* ---------- 资产仓库工具条 ---------- */
    html body .toolbar { top: 60px; padding-left: 32px; padding-right: 32px; }
    html body .resultbar { padding-left: 38px; padding-right: 38px; }
    html body .asset-list-wrap { padding: 0 32px; }
    html body .searchbar { height: 42px; }

    /* ---------- 弹层：底部抽屉改为居中模态 ---------- */
    html body .sheet {
        left: 50%; right: auto; top: 50%; bottom: auto;
        width: min(760px, calc(100vw - 96px));
        max-width: 760px;
        max-height: 84vh;
        padding-bottom: 0;
        border-radius: 20px;
        transform: translate(-50%, -50%) scale(0.96);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    }
    html body .mask.active .sheet,
    html body .sheet.active {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        visibility: visible;
    }
    html body .sheet__grip { display: none; }
    html body .sheet__head { padding-top: 16px; }
    html body .sheet__body { padding: 4px 22px; }
    html body .sheet__foot { padding-bottom: 14px; }

    /* ---------- 居中对话框 ---------- */
    html body .dialog { max-width: 460px; }
    html body .about-dialog { max-width: 460px; }
    html body .dialog__body { max-height: 70vh; overflow-y: auto; }

    /* ---------- 底部固定栏：居中限宽 ---------- */
    html body .footbar {
        left: 50%; right: auto;
        width: min(900px, 100vw);
        max-width: 900px;
        transform: translateX(-50%);
        padding-left: 24px; padding-right: 24px;
    }
    html body .actionbar {
        left: 50%; right: auto;
        width: min(1200px, 100vw);
        transform: translateX(-50%);
        padding-left: 32px; padding-right: 32px;
    }

    /* ---------- 批次编辑：全屏 iframe → 居中大弹窗 ---------- */
    html body #batchEditModal .batch-edit-frame {
        inset: 7vh 6vw;
        width: 88vw;
        height: 86vh;
        border-radius: 18px;
        box-shadow: var(--shadow-pop);
    }
}

/* ---------- PC 鼠标悬停反馈（触屏不生效） ---------- */
@media (min-width: 1024px) and (hover: hover) {
    html body a.card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(13, 59, 56, 0.12); }
    html body .entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
    html body .btn:hover { filter: brightness(1.04); }
    html body .cell:hover { background: var(--teal-50); }
    html body .stats-item:hover { background: var(--teal-50); }
    html body .tabbar__item:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
    html body .sheet__close:hover,
    html body .dialog__close:hover { background: var(--line); }
    html body .toolbar__filter:hover { border-color: var(--teal-600); color: var(--teal-600); }
}
