/* ==========================================================
   sjz_ui.css —— 站点页面共享设计系统（ui- 前缀）
   用法：公共 header 已全局引入，无需重复 link；页面内容区套
   <div class="ui-wrap"> 获得 1180 中栏布局（不套也能用组件，
   变量挂在 :root）。暗色主题由 html[data-theme="dark"] 驱动。
   规范文档：doc/frontend_conventions.md
   ========================================================== */

/* ---------- 设计 Token ----------
   变量挂在 :root：ui- 组件不依赖 .ui-wrap 祖先也能用（如 ss_pay 共享子模板）；
   .ui-wrap 只负责页面中栏布局。暗色由 html[data-theme="dark"] 覆盖。 */
:root {
    --ui-accent: #3b6ef6;
    --ui-accent-2: #7c3aed;
    --ui-up: #12a35c;          /* 涨/正收益：绿（国外约定，用户指定 2026-09-20，禁反） */
    --ui-down: #e0342c;        /* 跌/负收益：红 */
    --ui-hot: #e0342c;         /* 装饰强调红：警告、价格胶囊等非涨跌场景专用 */
    --ui-card: #ffffff;
    --ui-soft: #f5f7fb;
    --ui-border: #e8ebf2;
    --ui-text: #1f2430;
    --ui-muted: #6b7280;
    --ui-faint: #9aa1ad;
    --ui-shadow: 0 2px 10px rgba(24, 39, 75, .06);
    --ui-shadow-lg: 0 10px 28px rgba(24, 39, 75, .12);
}
html[data-theme="dark"] {
    --ui-card: #171a24;
    --ui-soft: #1e2230;
    --ui-border: #2b3040;
    --ui-text: #e6e8ee;
    --ui-muted: #9aa3b2;
    --ui-faint: #6f7889;
    --ui-shadow: 0 2px 10px rgba(0, 0, 0, .30);
    --ui-shadow-lg: 0 10px 28px rgba(0, 0, 0, .42);
}
.ui-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px 40px;
    color: var(--ui-text);
    font-size: 14px;
}
/* :where() 把特异度压到 0，避免盖掉按钮类上的 color（白底白字坑） */
.ui-wrap :where(a) { color: inherit; text-decoration: none; }
.ui-wrap h1, .ui-wrap h2, .ui-wrap h3 { margin: 0; }

/* 物品图：公共脚本靠 orzice-item-pic + data-grade 加品质描边，别删类名 */
.orzice-item-pic { object-fit: contain; }

/* ---------- 板块头 ---------- */
.ui-sec { margin-top: 18px; }
.ui-sec-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.ui-sec-head h2 { font-size: 18px; font-weight: 800; letter-spacing: .3px; }
.ui-sec-head .ui-bar {
    width: 4px; height: 18px; border-radius: 3px;
    background: linear-gradient(180deg, var(--ui-accent), var(--ui-accent-2));
}
.ui-sec-head .ui-desc { font-size: 12px; color: var(--ui-faint); }
.ui-sec-head .ui-warn { font-size: 12px; color: var(--ui-hot); }
.ui-sec-head .ui-more { margin-left: auto; font-size: 13px; color: var(--ui-accent); font-weight: 600; }
.ui-sec-head .ui-more:hover { text-decoration: underline; }

/* ---------- 筛选栏 / 表单控件 ---------- */
.ui-filter {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 12px 14px; box-shadow: var(--ui-shadow);
}
.ui-filter-label { font-size: 13px; color: var(--ui-muted); font-weight: 600; }
.ui-select {
    height: 34px; padding: 0 32px 0 12px; border-radius: 999px; font-size: 13px;
    border: 1px solid var(--ui-border); background-color: var(--ui-soft); color: var(--ui-text);
    outline: none; cursor: pointer; appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--ui-faint) 50%),
                      linear-gradient(135deg, var(--ui-faint) 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px; background-repeat: no-repeat;
    transition: border-color .15s;
}
.ui-select:hover, .ui-select:focus { border-color: var(--ui-accent); }
.ui-input {
    height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px;
    border: 1px solid var(--ui-border); background-color: var(--ui-soft); color: var(--ui-text);
    outline: none; transition: border-color .15s;
}
.ui-input:hover, .ui-input:focus { border-color: var(--ui-accent); }
.ui-input::placeholder { color: var(--ui-faint); }
.ui-btn {
    height: 34px; padding: 0 18px; border: none; border-radius: 999px;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: transform .15s, opacity .15s;
}
.ui-btn:hover { transform: translateY(-1px); opacity: .92; }
.ui-btn-main { background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2)); color: #fff; }
.ui-btn-ghost { background: var(--ui-soft); color: var(--ui-muted); border: 1px solid var(--ui-border); }

/* ---------- 面板 / 表格 ---------- */
.ui-panel {
    background: var(--ui-card); border: 1px solid var(--ui-border);
    border-radius: 14px; box-shadow: var(--ui-shadow); overflow: hidden;
}
.ui-sec .ui-panel, .ui-wrap .ui-panel + .ui-panel { margin-top: 12px; }
.ui-table { width: 100%; border-collapse: collapse; }
.ui-table th, .ui-table td { padding: 10px 14px; font-size: 13px; text-align: left; }
.ui-table thead th { font-size: 12px; font-weight: 600; color: var(--ui-faint); background: var(--ui-soft); }
.ui-table tbody tr + tr { border-top: 1px solid var(--ui-border); }
.ui-table tbody tr { transition: background .15s; }
.ui-table tbody tr:hover { background: var(--ui-soft); }
/* 小时表的第一列 */
.ui-table tbody th { width: 80px; text-align: center; white-space: nowrap; font-weight: 800; color: var(--ui-text); }
/* 可排序表头 */
.ui-table th.ui-sort { cursor: pointer; user-select: none; }
.ui-table th.ui-sort:hover { color: var(--ui-accent); }
/* 主+副两行单元格 */
.ui-tname { font-size: 13px; font-weight: 600; color: var(--ui-text); }
.ui-tsub { margin-top: 2px; font-size: 12px; color: var(--ui-faint); }
.ui-empty { padding: 22px; text-align: center; color: var(--ui-faint); font-size: 13px; }
/* 物品头像（表格/列表通用） */
.ui-avatar { display: block; width: 44px; height: 44px; flex-shrink: 0; }
.ui-avatar img { width: 100%; height: 100%; }

/* ---------- 涨跌徽标 / 数值胶囊 ---------- */
.ui-up { color: var(--ui-up) !important; }
.ui-down { color: var(--ui-down) !important; }
.ui-badge {
    display: inline-block; padding: 4px 12px; border-radius: 999px;
    font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums;
    color: #fff; text-align: center; min-width: 56px;
}
.ui-badge-up { background: linear-gradient(135deg, #2fbf71, #0d8a4c); }
.ui-badge-down { background: linear-gradient(135deg, #ef5f52, #c2261d); }
.ui-change {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.ui-change.is-pos { color: var(--ui-up); background: color-mix(in srgb, var(--ui-up) 12%, transparent); }
.ui-change.is-neg { color: var(--ui-down); background: color-mix(in srgb, var(--ui-down) 12%, transparent); }
/* 渐变价格胶囊（列表右侧主价格） */
.ui-price {
    flex-shrink: 0; padding: 4px 12px; border-radius: 999px;
    font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums;
    color: #fff; background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
}
/* 软 chip（生产时长、当前价格等辅助信息） */
.ui-chip {
    display: inline-block; margin: 2px 6px 2px 0;
    padding: 1px 8px; border-radius: 999px; font-size: 11px;
    background: var(--ui-soft); border: 1px solid var(--ui-border); color: var(--ui-muted);
}
.ui-chip b, .ui-chip span { font-weight: 600; color: var(--ui-text); }

/* ---------- 补卡小卡（88px 竖排） ---------- */
.ui-key-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ui-key {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 88px; padding: 10px 6px; border-radius: 12px; cursor: pointer;
    background: var(--ui-soft); border: 1px solid transparent;
    transition: border-color .15s, transform .15s;
}
.ui-key:hover { border-color: color-mix(in srgb, var(--ui-accent) 40%, transparent); transform: translateY(-2px); }
.ui-key-pic { width: 44px; height: 44px; }
.ui-key-pic img { width: 100%; height: 100%; }
.ui-key-name {
    max-width: 100%; font-size: 12px; color: var(--ui-muted); text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-key-price {
    padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--ui-hot); border: 1px solid color-mix(in srgb, var(--ui-hot) 45%, transparent);
}

/* ---------- 物品卡网格（低价预测大卡） ---------- */
.ui-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.ui-card {
    position: relative; overflow: hidden; cursor: pointer; text-align: center;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 16px 12px 14px; box-shadow: var(--ui-shadow);
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.ui-card::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: linear-gradient(90deg, var(--ui-accent), var(--ui-accent-2));
    opacity: 0; transition: opacity .2s;
}
.ui-card:hover { transform: translateY(-3px); box-shadow: var(--ui-shadow-lg);
    border-color: color-mix(in srgb, var(--ui-accent) 40%, var(--ui-border)); }
.ui-card:hover::before { opacity: 1; }
.ui-card-pic { width: 64px; height: 64px; margin: 0 auto; }
.ui-card-pic img { width: 100%; height: 100%; }
.ui-card-name {
    margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ui-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-card-price {
    display: inline-block; margin-top: 6px; padding: 2px 12px; border-radius: 999px;
    font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums;
    color: #fff; background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
}
.ui-card-times { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.ui-time {
    padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
    background: color-mix(in srgb, var(--ui-accent) 12%, transparent); color: var(--ui-accent);
}

/* ---------- 部门面板 + 物品行 ---------- */
.ui-depts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.ui-dept {
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    box-shadow: var(--ui-shadow); overflow: hidden;
}
.ui-dept-head {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; font-size: 14px; font-weight: 800;
    background: var(--ui-soft); border-bottom: 1px solid var(--ui-border);
}
.ui-dept-ico {
    width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-size: 12px;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
}
.ui-dept.is-green .ui-dept-ico { background: linear-gradient(135deg, #10b981, #0ea5e9); }
.ui-dept.is-orange .ui-dept-ico { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.ui-dept.is-purple .ui-dept-ico { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.ui-dept.is-red .ui-dept-ico { background: linear-gradient(135deg, #ef5f52, #c2261d); }
.ui-dept-tip { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--ui-faint); }

.ui-li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; cursor: pointer; transition: background .15s;
}
.ui-li + .ui-li { border-top: 1px solid var(--ui-border); }
.ui-li:hover { background: var(--ui-soft); }
.ui-li-pic { width: 44px; height: 44px; flex-shrink: 0; }
.ui-li-pic img { width: 100%; height: 100%; }
.ui-li-main { flex: 1; min-width: 0; }
.ui-li-name {
    font-size: 13px; font-weight: 600; color: var(--ui-text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ui-li-sub { margin-top: 4px; font-size: 12px; color: var(--ui-faint); }
.ui-li-right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
/* 列表头（子弹收益表那种“列名行”） */
.ui-li-head { display: flex; justify-content: space-between; padding: 10px 16px;
    font-size: 12px; color: var(--ui-faint); background: var(--ui-soft);
    border-bottom: 1px solid var(--ui-border); }

/* ---------- 统计卡（玩家趋势等） ---------- */
.ui-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.ui-stat {
    flex: 1; min-width: 150px; text-align: center;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 16px 14px; box-shadow: var(--ui-shadow);
}
.ui-stat-title { font-size: 12px; color: var(--ui-faint); }
.ui-stat-val { margin-top: 6px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ui-stat-sub { margin-top: 2px; font-size: 12px; color: var(--ui-muted); }

/* ---------- 选项卡（卡战备排行榜，JS 依赖 .tabs-lift label[data-id]，类名勿改） ---------- */
.tabs-lift { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs-lift label {
    cursor: pointer; user-select: none;
    padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--ui-muted); background: var(--ui-soft); border: 1px solid transparent;
    transition: all .15s;
}
.tabs-lift label:hover { color: var(--ui-accent); }
.tabs-lift label.is-active {
    color: #fff; background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
}
#tips {
    position: sticky; top: 8px; z-index: 9;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 8px 10px; box-shadow: var(--ui-shadow); margin-bottom: 12px;
}
#tips2 {
    display: none; position: sticky; top: 8px; z-index: 9;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 8px 10px; box-shadow: var(--ui-shadow); margin: 8px 12px 0;
}
/* .section-title / .main-container 也是 top.html 的 JS 选择器钩子，类名勿改 */
.section-title {
    font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px; color: var(--ui-text);
}
.section-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, var(--ui-accent), var(--ui-accent-2));
}
.main-container { width: 100%; }

/* ---------- 响应式（全站统一两档） ---------- */
@media (max-width: 1000px) {
    .ui-depts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ui-wrap { padding: 0 10px 30px; }
    .ui-cards { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .ui-stat { min-width: 120px; }
    .ui-stat-val { font-size: 20px; }
}
@media (max-width: 480px) {
    #tips { display: none; }
    #tips2 { display: block; }
}

/* ---------- 实时价格表扩展（follow / ss_pay 系列） ---------- */
/* 数字居中变体：ui-table is-center（物品列仍左对齐） */
.ui-table.is-center th, .ui-table.is-center td { text-align: center; }
.ui-table.is-center th:first-child, .ui-table.is-center td:first-child { text-align: left; }
/* 不换行 + 横向滚动容器（10 列价格表窄屏用） */
.ui-table-scroll { overflow-x: auto; }
.ui-table.is-nowrap th, .ui-table.is-nowrap td { white-space: nowrap; }
/* 表格内物品单元格：头像 + 名称 + 推荐方式 */
.ui-item { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.ui-item-main { min-width: 0; }
/* 推荐卖出方式标签：深底（亮绿色 ShopSellType-2/3 文字在浅底上看不清，勿改浅底） */
.ui-sell { display: inline-block; padding: 1px 10px; border-radius: 6px; font-size: 11px; background: #2e333d; }
/* 等宽数字价格 */
.ui-num { font-variant-numeric: tabular-nums; font-weight: 700; }
/* 金币图标在居中单元格里真正居中（icon-gold 系列是 common.css 的 flex） */
.ui-cell-gold { display: flex; justify-content: center; }
.ui-cell-gold .icon-gold, .ui-cell-gold .icon-gold-jb, .ui-cell-gold .icon-gold-yzj { display: inline-flex; align-items: center; }
/* 危险操作按钮（删除关注等） */
.ui-btn-danger { background: linear-gradient(135deg, #ef5f52, #c2261d); color: #fff; }
.ui-btn-sm { height: 28px; padding: 0 14px; font-size: 12px; }
/* 金本位双行（金条/鱼子酱换算） */
.ui-jb { display: flex; flex-direction: column; gap: 4px; align-items: center; font-size: 12px; color: var(--ui-muted); }
@media (max-width: 640px) {
    .ui-item { min-width: 150px; }
}

/* ==========================================================
   任务链流程（task/task_s11.html 专用，tk11- 前缀）
   ⚠️ 页面 JS 选择器依赖 .tk11-item / .tk11-node-n / .tk11-state /
   .tk11-state-t / .tk11-block-c.is-hl，类名勿改
   ========================================================== */
[v-cloak] { display: none; }
.tk11 { font-size: 14px; }

/* 筛选区：阶段 / 任务组 分段按钮 + 关键字 */
.tk11-filter {
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 6px 16px 12px; box-shadow: var(--ui-shadow);
}
.tk11-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--ui-border); }
.tk11-row:first-child { border-top: 0; }
.tk11-label { flex: none; width: 46px; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--ui-muted); }
.tk11-seg { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.tk11-seg button {
    border: 1px solid var(--ui-border); background: transparent; color: var(--ui-text);
    padding: 6px 15px; border-radius: 999px; font-size: 13px; line-height: 1.5;
    cursor: pointer; transition: all .18s ease;
}
.tk11-seg button:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.tk11-seg button.is-on {
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
    border-color: transparent; color: #fff; font-weight: 700;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--ui-accent) 28%, transparent);
}
.tk11-search { flex: none; position: relative; display: flex; align-items: center; }
.tk11-search i { position: absolute; left: 11px; font-size: 12px; color: var(--ui-muted); pointer-events: none; }
.tk11-search input {
    width: 190px; height: 34px; padding: 0 12px 0 30px;
    border: 1px solid var(--ui-border); border-radius: 999px;
    background: var(--ui-soft); color: var(--ui-text); font-size: 13px;
    outline: none; transition: border-color .18s ease;
}
.tk11-search input:focus { border-color: var(--ui-accent); }

/* 结果统计条 */
.tk11-bar { display: flex; align-items: center; gap: 8px; margin: 16px 2px 12px; font-size: 13px; color: var(--ui-muted); }
.tk11-bar b { color: var(--ui-accent); font-size: 15px; }
.tk11-bar-tip { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }

/* 任务链：同一任务组内按顺序解锁（完成上一个才解锁下一个） */
.tk11-flow { display: flex; flex-direction: column; }
.tk11-item { display: flex; gap: 14px; padding-bottom: 16px; }
.tk11-item.is-last { padding-bottom: 0; }

/* 左侧节点：序号 + 向下延伸的连接线 */
.tk11-node { flex: none; display: flex; flex-direction: column; align-items: center; }
.tk11-node-n {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent-2));
    color: #fff; font-size: 14px; font-weight: 700;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--ui-accent) 30%, transparent);
}
.tk11-item:not(.is-last) .tk11-node::after {
    content: ""; width: 2px; flex: 1; margin-top: 6px;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--ui-accent-2) 55%, transparent),
        color-mix(in srgb, var(--ui-muted) 30%, transparent));
}
/* 未解锁：节点灰化，连接线变淡 */
.tk11-item.is-lock .tk11-node-n { background: var(--ui-faint); box-shadow: none; }
.tk11-item.is-lock .tk11-node::after { background: color-mix(in srgb, var(--ui-muted) 28%, transparent); }

.tk11-card {
    flex: 1; min-width: 0; position: relative; overflow: hidden;
    background: var(--ui-card); border: 1px solid var(--ui-border); border-radius: 14px;
    padding: 14px 18px 16px; box-shadow: var(--ui-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tk11-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--ui-accent) 45%, transparent);
    box-shadow: var(--ui-shadow-lg);
}
.tk11-item.is-lock .tk11-card { border-style: dashed; box-shadow: none; }

.tk11-hd { display: flex; align-items: baseline; gap: 9px; }
.tk11-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; color: var(--ui-text); }
/* 解锁状态标签：第 1 步「可开始」，其余「完成第 N 步后解锁」 */
.tk11-state {
    flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
}
.tk11-state.is-open { background: color-mix(in srgb, var(--ui-up) 13%, transparent); color: var(--ui-up); }
.tk11-state.is-lock { background: color-mix(in srgb, var(--ui-muted) 13%, transparent); color: var(--ui-muted); }
[data-theme="dark"] .tk11-state.is-open { color: #6ee7b7; }

/* 高亮：与小程序 S11.vue 的 highlightGold 同一套规则（浅色装饰红 / 深色金） */
.tk11-hl { color: var(--ui-hot); font-weight: 600; }
[data-theme="dark"] .tk11-hl { color: #f5c842; }

/* 内容区：任务要求整行，说明与奖励并排 */
.tk11-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tk11-cols .tk11-block.is-req { grid-column: 1 / -1; }

.tk11-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tk11-tag {
    padding: 3px 10px; border-radius: 6px; border: 1px solid transparent;
    font-size: 12px; line-height: 1.7; white-space: nowrap;
}
.tk11-tag.is-lx {
    background: color-mix(in srgb, var(--ui-up) 12%, transparent);
    border-color: color-mix(in srgb, var(--ui-up) 25%, transparent); color: var(--ui-up);
}
.tk11-tag.is-lx[data-v="主线"] {
    background: color-mix(in srgb, var(--ui-hot) 12%, transparent);
    border-color: color-mix(in srgb, var(--ui-hot) 25%, transparent); color: var(--ui-hot);
}
.tk11-tag.is-group {
    background: color-mix(in srgb, var(--ui-accent-2) 12%, transparent);
    border-color: color-mix(in srgb, var(--ui-accent-2) 25%, transparent); color: var(--ui-accent-2);
}
[data-theme="dark"] .tk11-tag.is-lx { color: #6ee7b7; }
[data-theme="dark"] .tk11-tag.is-lx[data-v="主线"] { color: #fca5a5; }
[data-theme="dark"] .tk11-tag.is-group { color: #c4b5fd; }

.tk11-block { padding: 10px 12px; border: 1px solid var(--ui-border); border-radius: 10px; background: var(--ui-soft); }
.tk11-block-t {
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
    font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--ui-muted);
}
.tk11-block-t i { font-size: 11px; }
.tk11-block-c { font-size: 13.5px; line-height: 1.85; color: var(--ui-text); word-break: break-word; }
.tk11-block.is-req {
    background: color-mix(in srgb, var(--ui-hot) 7%, transparent);
    border-color: color-mix(in srgb, var(--ui-hot) 22%, transparent);
}
.tk11-block.is-req .tk11-block-t { color: var(--ui-hot); }
.tk11-block.is-reward { background: rgba(245, 158, 11, .08); border-color: rgba(245, 158, 11, .26); }
.tk11-block.is-reward .tk11-block-t { color: #b45309; }
[data-theme="dark"] .tk11-block.is-req .tk11-block-t { color: #fca5a5; }
[data-theme="dark"] .tk11-block.is-reward .tk11-block-t { color: #fcd34d; }

.tk11-empty {
    padding: 48px 20px; text-align: center; color: var(--ui-muted); font-size: 14px;
    border: 1px dashed var(--ui-border); border-radius: 14px;
}
.tk11-empty i { display: block; font-size: 26px; margin-bottom: 10px; opacity: .6; }

/* 移动端引导去小程序 */
.tk11-mobile { text-align: center; padding: 28px 20px; border-radius: 14px; background: var(--ui-card); border: 1px solid var(--ui-border); }
.tk11-mobile img { display: block; margin: 0 auto; width: 220px; height: 220px; border-radius: 12px; }
.tk11-mobile .t1 { margin-top: 16px; font-size: 15px; font-weight: 700; color: var(--ui-hot); }
.tk11-mobile .t2 { margin-top: 6px; font-size: 13px; color: var(--ui-muted); }

@media (max-width: 768px) {
    .tk11-cols { grid-template-columns: 1fr; }
    .tk11-item { gap: 10px; padding-bottom: 12px; }
    .tk11-node-n { width: 27px; height: 27px; font-size: 13px; }
    .tk11-card { padding: 12px 14px 14px; }
    .tk11-hd { flex-wrap: wrap; }
    .tk11-state { margin-left: 0; }
    .tk11-row { flex-direction: column; gap: 8px; }
    .tk11-label { width: auto; padding-top: 0; }
    .tk11-search, .tk11-search input { width: 100%; }
}
