/*
 * Zibll任务中心 - 前端样式
 * 基于子比主题设计系统 · 自动适配昼夜模式
 * Version: 1.0.3
 */

/* ========== 基础 ========== */
.ztc-page { font-family: inherit; line-height: 1.6; }

.ztc-page .zb-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--zb-gap-xl, 24px);
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    padding: 24px; margin-bottom: 16px;
}
.ztc-page .zb-hero-left        { flex: 1; }
.ztc-page .zb-hero-title       { font-size: 22px; font-weight: 700; color: var(--main-color); margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.ztc-page .zb-hero-sub         { font-size: 14px; color: var(--muted-2-color); margin-bottom: 16px; line-height: 1.6; }
.ztc-page .zb-hero-actions     { display: flex; gap: 10px; flex-wrap: wrap; }
.ztc-page .zb-hero-stats       { display: flex; gap: 16px; flex-shrink: 0; }
.ztc-page .zb-hero-stat        { text-align: center; padding: 16px 24px; background: var(--muted-bg-color); border-radius: var(--main-radius, 6px); min-width: 80px; }
.ztc-page .zb-hero-stat-num    { font-size: 24px; font-weight: 700; color: var(--ztc-primary, var(--theme-color)); line-height: 1.2; }
.ztc-page .zb-hero-stat-label  { font-size: 12px; color: var(--muted-2-color); margin-top: 2px; }

/* 栅格 */
.ztc-page .zb-row         { display: flex; gap: 24px; align-items: flex-start; }
.ztc-page .zb-main        { flex: 1; min-width: 0; }
.ztc-page .zb-sidebar     { width: 320px; flex-shrink: 0; }
.ztc-page .zb-sidebar-sticky { position: sticky; top: 80px; }

/* 卡片 */
.ztc-page .zb-card {
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    margin-bottom: 16px; overflow: hidden;
}
.ztc-page .zb-card-body   { padding: 24px; }
.ztc-page .zb-card-header {
    padding: 16px 24px; border-bottom: 1px solid var(--main-border-color);
    display: flex; align-items: center; justify-content: space-between;
}
.ztc-page .zb-card-title  { font-size: 16px; font-weight: 600; color: var(--main-color); display: flex; align-items: center; gap: 8px; }
.ztc-page .zb-card-title::before { content: ''; display: inline-block; width: 4px; height: 18px; border-radius: 2px; background: var(--ztc-primary, var(--theme-color)); }

/* 按钮 */
.ztc-page .zb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 20px; font-size: 14px; font-weight: 500;
    border-radius: var(--main-radius, 6px); border: 1px solid transparent;
    cursor: pointer; transition: all .2s ease; white-space: nowrap; line-height: 1.5;
}
.ztc-page .zb-btn:hover     { transform: translateY(-1px); }
.ztc-page .zb-btn:active    { transform: translateY(0); }
.ztc-page .zb-btn-sm        { padding: 5px 14px; font-size: 13px; }
.ztc-page .zb-btn-lg        { padding: 12px 28px; font-size: 16px; }
.ztc-page .zb-btn-primary   { background: var(--ztc-primary, var(--theme-color)); color: #fff; box-shadow: 0 2px 6px rgba(22,119,255,.3); }
.ztc-page .zb-btn-primary:hover { opacity: 0.85; box-shadow: 0 4px 12px rgba(22,119,255,.35); }
.ztc-page .zb-btn-outline   { background: var(--main-bg-color); color: var(--muted-2-color); border-color: var(--main-border-color); }
.ztc-page .zb-btn-outline:hover { color: var(--ztc-primary, var(--theme-color)); border-color: var(--ztc-primary, var(--theme-color)); background: rgba(22,119,255,.06); }
.ztc-page .zb-btn-success   { background: #237804; color: #fff; border-color: #237804; }
.ztc-page .zb-btn-success:hover { background: #1a5c03; color: #fff; }
.ztc-page .zb-btn-danger    { background: #cf1322; color: #fff; border-color: #cf1322; }
.ztc-page .zb-btn-danger:hover  { background: #a8071a; color: #fff; }

/* 徽章 - 深色背景+白色文字，各状态颜色明显区分 */
.zb-badge {
    display: inline-flex; align-items: center; padding: 2px 10px;
    font-size: 12px; font-weight: 500; border-radius: 6px; white-space: nowrap;
}
.zb-badge-success     { background: #237804; color: #fff; }  /* 已完成/已通过 - 深绿 */
.zb-badge-publish     { background: #096dd9; color: #fff; }  /* 进行中/已接受 - 蓝色 */
.zb-badge-warning     { background: #d46b08; color: #fff; }  /* 待审核 - 深橙 */
.zb-badge-danger      { background: #cf1322; color: #fff; }  /* 已驳回/已取消 - 深红 */
.zb-badge-completed   { background: #237804; color: #fff; }  /* 已完成 - 深绿 */
.zb-badge-closed      { background: #595959; color: #fff; }  /* 已关闭/已过期 - 深灰 */
.zb-badge-urgent      { background: #a8071a; color: #fff; font-weight: 600; }  /* 加急 - 深红 */
.zb-badge-sticky      { background: #d48806; color: #fff; font-weight: 600; }  /* 置顶 - 深橙 */
.zb-badge-official    { background: #531dab; color: #fff; }  /* 官方 - 深紫 */
.zb-badge-pending     { background: #d46b08; color: #fff; }  /* 待审核 - 深橙 */
.zb-badge-green       { background: #237804; color: #fff; }  /* 通用绿 - 深绿 */
.zb-badge-blue        { background: #096dd9; color: #fff; }  /* 通用蓝 - 深蓝 */
.zb-badge-purple      { background: #531dab; color: #fff; }  /* 通用紫 - 深紫 */
.zb-badge-orange      { background: #d46b08; color: #fff; }  /* 通用橙 - 深橙 */

/* 分类标签 */
.zb-task-card-cat { font-size: 12px; color: var(--muted-2-color); padding: 2px 8px; background: var(--muted-bg-color); border-radius: var(--main-radius, 4px); }
.zb-cat-icon { width: 14px; height: 14px; vertical-align: middle; margin-right: 3px; border-radius: 2px; }

/* 筛选栏 */
.zb-filter-bar {
    display: flex; align-items: center; gap: 16px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    padding: 16px 24px; margin-bottom: 16px; flex-wrap: wrap;
}
.zb-filter-group     { display: flex; align-items: center; gap: 6px; }
.zb-filter-group .zb-filter-label { margin-right: 4px; }
.zb-filter-label     { font-size: 13px; color: var(--muted-2-color); white-space: nowrap; font-weight: 500; }
.zb-filter-divider   { width: 2px; height: 24px; background: var(--main-border-color); margin: 0 8px; }
.zb-filter-search    { position: relative; flex: 1; min-width: 180px; max-width: 300px; }
.zb-filter-search input {
    width: 100%; height: 36px; padding: 0 16px 0 36px;
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 6px); font-size: 13px; outline: none;
    transition: border-color .2s; background: var(--main-bg-color); color: var(--main-color);
}
.zb-filter-search input:focus { border-color: var(--ztc-primary, var(--theme-color)); }
.zb-filter-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-color); }
.zb-filter-select {
    height: 36px; padding: 0 32px 0 12px;
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 6px); font-size: 13px; outline: none;
    background: var(--main-bg-color) url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: var(--main-color); cursor: pointer; appearance: none;
}
.zb-filter-amount { margin-left: auto; font-size: 13px; color: var(--muted-2-color); white-space: nowrap; }

/* Pill按钮 */
.zb-pill {
    display: inline-flex; align-items: center; padding: 5px 14px;
    font-size: 13px; font-weight: 500; border-radius: 999px;
    border: 1px solid var(--main-border-color);
    background: var(--main-bg-color); color: var(--muted-2-color);
    cursor: pointer; transition: all .2s; white-space: nowrap;
}
.zb-pill:hover { color: var(--ztc-primary, var(--theme-color)); border-color: var(--ztc-primary, var(--theme-color)); }
.zb-pill.active { background: var(--ztc-primary, var(--theme-color)); color: #fff; border-color: var(--ztc-primary, var(--theme-color)); }

/* 任务网格 */
.zb-task-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px;
}
.zb-task-grid > .zb-empty {
    grid-column: 1 / -1;
    width: 100%;
}
.zb-task-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.zb-task-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.zb-task-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.zb-task-card {
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    padding: 24px; transition: all .25s ease;
    display: flex; flex-direction: column; cursor: pointer; position: relative;
}
.zb-task-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    border-color: var(--ztc-primary, var(--theme-color));
}
.zb-task-card-header   { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.zb-task-card-badges   { display: flex; gap: 6px; flex-wrap: wrap; }
.zb-task-card-title {
    font-size: 16px; font-weight: 600; color: var(--main-color);
    margin-bottom: 8px; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zb-task-card-desc {
    font-size: 13px; color: var(--muted-color); line-height: 1.6; margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.zb-task-card-meta       { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted-2-color); margin-bottom: 12px; }
.zb-task-card-meta-item  { display: inline-flex; align-items: center; gap: 4px; }
.zb-task-card-reward     { margin-bottom: 16px; }
.zb-task-card-reward-inner  { display: inline-flex; align-items: baseline; gap: 4px; }
.zb-task-card-reward-val    { font-size: 24px; font-weight: 700; color: #ff4d4f; line-height: 1; }
.zb-task-card-reward-unit   { font-size: 13px; color: #ff4d4f; font-weight: 500; }
.zb-task-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px; border-top: 1px solid var(--main-border-color);
}
.zb-task-card-publisher { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-2-color); }
.zb-task-card-publisher img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.zb-task-card-stats     { display: flex; gap: 12px; font-size: 12px; color: var(--muted-color); }
.zb-task-card-progress {
    height: 4px; background: var(--muted-bg-color);
    border-radius: 2px; margin-bottom: 12px; overflow: hidden;
}
.zb-task-card-progress-bar {
    height: 100%; border-radius: 2px; transition: width .3s ease;
    background: linear-gradient(90deg, #1890ff, #722ed1);
}
.zb-task-card-progress-bar[data-urgency="danger"] {
    background: linear-gradient(90deg, #ff4d4f, #ff7875);
    animation: zb-progress-pulse 2s infinite;
}
.zb-task-card-progress-bar[data-urgency="warning"] {
    background: linear-gradient(90deg, #fa8c16, #ffa940);
}
.zb-task-card-progress-bar[data-urgency="info"] {
    background: linear-gradient(90deg, #1890ff, #40a9ff);
}
@keyframes zb-progress-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .6; }
}

.zb-deadline-danger { color: #ff4d4f; font-weight: 500; }
.zb-deadline-warning { color: #fa8c16; }
.zb-deadline-info { color: #1890ff; }
.zb-deadline-expired { color: var(--muted-color); }

/* 发布者信息卡片 */
.zb-publisher-card {
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
}
.zb-publisher-inner {
    display: flex; align-items: center; gap: 12px;
}
.zb-publisher-avatar-wrap {
    flex-shrink: 0;
    position: relative;
}
.zb-publisher-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--main-border-color);
    transition: all .25s;
}
.zb-publisher-avatar-wrap:hover .zb-publisher-avatar {
    border-color: var(--ztc-primary, var(--theme-color));
    transform: scale(1.08);
}
.zb-publisher-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--ztc-primary, var(--theme-color));
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--main-bg-color);
}
.zb-publisher-content {
    flex: 1; min-width: 0;
}
.zb-publisher-name {
    font-size: 15px; font-weight: 600;
    color: var(--main-color);
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.zb-publisher-name a {
    color: var(--main-color);
    text-decoration: none;
}
.zb-publisher-name a:hover {
    color: var(--ztc-primary, var(--theme-color));
}
.zb-publisher-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 4px;
}
.zb-publisher-register-date {
    font-size: 12px; color: var(--muted-2-color);
}
.zb-publisher-stats {
    display: flex; align-items: center; gap: 12px;
}
.zb-publisher-stat {
    display: flex; align-items: baseline; gap: 4px;
}
.zb-publisher-stat strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ztc-primary, var(--theme-color));
}
.zb-publisher-stat span {
    font-size: 12px;
    color: var(--muted-color);
}
.zb-publisher-divider {
    width: 1px; height: 12px;
    background: var(--main-border-color);
}

/* 文件上传区域 */
.ztc-upload-wrap {
    width: 100%;
}
.ztc-upload-area {
    position: relative;
    border: 2px dashed var(--main-border-color);
    border-radius: var(--main-radius, 8px);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    background: var(--muted-bg-color);
}
.ztc-upload-area:hover {
    border-color: var(--ztc-primary, var(--theme-color));
    background: rgba(22,119,255,.03);
}
.ztc-upload-area.dragover {
    border-color: var(--ztc-primary, var(--theme-color));
    background: rgba(22,119,255,.08);
    transform: scale(1.01);
}
.ztc-upload-icon {
    margin-bottom: 8px;
    color: var(--muted-2-color);
    display: flex;
    justify-content: center;
}
.ztc-upload-icon svg {
    width: 40px; height: 40px;
    opacity: .7;
}
.ztc-upload-text {
    font-size: 14px; font-weight: 500;
    color: var(--muted-2-color);
    margin: 0 0 4px;
}
.ztc-upload-link {
    color: var(--ztc-primary, var(--theme-color));
    cursor: pointer;
    font-weight: 600;
}
.ztc-upload-link:hover {
    text-decoration: underline;
}
.ztc-upload-hint {
    font-size: 12px;
    color: var(--muted-color);
    margin: 0;
}
.ztc-upload-area input[type="file"] {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* 文件预览 */
.ztc-upload-preview {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-top: 12px;
}
.ztc-upload-item {
    position: relative;
    width: 100px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--muted-bg-color);
    border: 1px solid var(--main-border-color);
    transition: all .2s;
}
.ztc-upload-item:hover {
    border-color: var(--ztc-primary, var(--theme-color));
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.ztc-upload-item-image {
    width: 100%; height: 80px;
    object-fit: cover;
    display: block;
}
.ztc-upload-item-file {
    width: 100%;
}
.ztc-upload-item-file-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
}
.ztc-upload-item-file-icon {
    width: 28px; height: 28px;
    flex-shrink: 0;
    color: var(--ztc-primary, var(--theme-color));
}
.ztc-upload-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ztc-upload-item-name {
    font-size: 13px;
    color: var(--main-text-color);
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}
.ztc-upload-item-size {
    font-size: 11px;
    color: var(--muted-color);
}
.ztc-upload-item-remove {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    background: rgba(0,0,0,.6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity .2s;
}
.ztc-upload-item:hover .ztc-upload-item-remove {
    opacity: 1;
}
.ztc-upload-item-remove svg {
    width: 12px; height: 12px;
    color: #fff;
}
.ztc-upload-item-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--ztc-primary, var(--theme-color));
    width: 0%;
    transition: width .3s;
}
.ztc-upload-item.progressing .ztc-upload-item-progress {
    animation: ztc-upload-progress 1s infinite;
}
@keyframes ztc-upload-progress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 0%; }
}

/* 非图片文件列表样式（宽布局） */
.ztc-upload-preview .ztc-upload-item.ztc-upload-item-file {
    width: 100%;
    max-width: 360px;
}

/* 已有附件列表 */
.ztc-existing-files {
    margin-top: 12px;
    padding: 12px;
    background: var(--muted-bg-color);
    border-radius: 6px;
    border: 1px solid var(--main-border-color);
}
.ztc-existing-files-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--main-text-color);
    margin-bottom: 8px;
}
.ztc-existing-files-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ztc-existing-file-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: var(--card-bg-color, #fff);
    border-radius: 4px;
    font-size: 13px;
}
.ztc-existing-file-item svg {
    width: 14px; height: 14px;
    flex-shrink: 0;
    color: var(--muted-2-color);
}
.ztc-existing-file-name {
    flex: 1;
    color: var(--main-text-color);
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ztc-existing-file-view {
    font-size: 12px;
    color: var(--ztc-primary, var(--theme-color));
    cursor: pointer;
    flex-shrink: 0;
}
.ztc-existing-file-view:hover {
    text-decoration: underline;
}

/* 分页 */
.zb-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.zb-page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 12px; font-size: 14px; font-weight: 500;
    border-radius: var(--main-radius, 6px);
    border: 1px solid var(--main-border-color);
    background: var(--main-bg-color); color: var(--muted-2-color);
    cursor: pointer; transition: all .2s;
}
.zb-page-btn:hover { border-color: var(--ztc-primary, var(--theme-color)); color: var(--ztc-primary, var(--theme-color)); }
.zb-page-btn.active { background: var(--ztc-primary, var(--theme-color)); color: #fff; border-color: var(--ztc-primary, var(--theme-color)); }

/* 滚动播报 */
.zb-ticker-wrap {
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    margin-bottom: 16px; overflow: hidden; display: flex; align-items: center;
}
.zb-ticker-label {
    flex-shrink: 0; background: var(--ztc-primary, var(--theme-color)); color: #fff;
    padding: 8px 18px; font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 6px; white-space: nowrap; z-index: 2;
}
.zb-ticker-view  { flex: 1; overflow: hidden; position: relative; height: 40px; }
.zb-ticker-track {
    display: flex; gap: 48px; animation: ztc-ticker-scroll 30s linear infinite;
    white-space: nowrap; align-items: center; height: 100%; padding: 0 16px;
}
.zb-ticker-track:hover { animation-play-state: paused; }
@keyframes ztc-ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.zb-ticker-item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted-2-color); flex-shrink: 0; }
.zb-ticker-item strong { color: var(--main-color); font-weight: 600; }
.zb-ticker-item .zb-ticker-reward { color: #ff4d4f; font-weight: 600; }

/* 排行榜 */
.zb-ranking-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.zb-ranking-chart {
    background: var(--muted-bg-color);
    border-radius: var(--main-radius, 8px);
    padding: 16px; transition: box-shadow .2s;
}
.zb-ranking-chart:hover { box-shadow: var(--main-shadow); }
.zb-ranking-chart-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
    padding-bottom: 10px; border-bottom: 1px solid var(--main-border-color);
}
.zb-ranking-chart-icon {
    font-size: 24px; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: var(--main-bg-color); border-radius: var(--main-radius, 6px);
    box-shadow: var(--main-shadow); flex-shrink: 0;
}
.zb-ranking-chart-title { font-size: 15px; font-weight: 700; color: var(--main-color); display: flex; align-items: baseline; gap: 8px; justify-content: center; text-align: center; width: 100%; }
.zb-ranking-chart-sub-inline { font-size: 12px; color: var(--muted-2-color); font-weight: 400; }
.zb-ranking-list  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.zb-ranking-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 12px 8px; background: var(--main-bg-color);
    border-radius: var(--main-radius, 6px); border: 1px solid var(--main-border-color);
    transition: all .15s; cursor: default; text-align: center;
    position: relative; min-height: 90px; justify-content: center;
}
.zb-ranking-item:hover { background: rgba(22,119,255,.06); transform: translateY(-2px); box-shadow: var(--main-shadow); }
.zb-ranking-pos {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--muted-color);
    background: var(--muted-bg-color); flex-shrink: 0;
    position: absolute; top: 6px; left: 6px;
}
.zb-ranking-pos.pos-1 { background: #ff4d4f; color: #fff; }
.zb-ranking-pos.pos-2 { background: #fa8c16; color: #fff; }
.zb-ranking-pos.pos-3 { background: #faad14; color: #fff; }
.zb-ranking-pos.pos-4 { background: #237804; color: #fff; }
.zb-ranking-pos.pos-5 { background: #1890ff; color: #fff; }
.zb-ranking-pos.pos-6 { background: #722ed1; color: #fff; }
.zb-ranking-pos.pos-7 { background: #eb2f96; color: #fff; }
.zb-ranking-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--main-border-color); flex-shrink: 0; margin-bottom: 4px;
}
.zb-ranking-info   { min-width: 0; width: 100%; }
.zb-ranking-name {
    font-size: 12px; font-weight: 600; color: var(--main-color);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}
.zb-ranking-count  { font-size: 11px; color: var(--muted-2-color); margin-top: 1px; text-align: center; }
.zb-ranking-count strong { color: var(--ztc-primary, var(--theme-color)); font-weight: 700; }
.zb-ranking-badge  { font-size: 14px; flex-shrink: 0; margin-top: 2px; }

/* 我的任务统计 */
.zb-mt-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.zb-mt-stat {
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    border: 1px solid var(--main-border-color);
    padding: 16px; text-align: center;
}
.zb-mt-stat-num   { font-size: 28px; font-weight: 700; color: var(--main-color); line-height: 1.2; }
.zb-mt-stat-label { font-size: 12px; color: var(--muted-2-color); margin-top: 4px; }
.zb-mt-stat.blue .zb-mt-stat-num   { color: var(--ztc-primary, var(--theme-color)); }
.zb-mt-stat.green .zb-mt-stat-num  { color: #237804; }
.zb-mt-stat.orange .zb-mt-stat-num { color: #fa8c16; }
.zb-mt-stat.red .zb-mt-stat-num    { color: #ff4d4f; }
.zb-mt-tabs {
    display: flex; gap: 2px; background: var(--muted-bg-color);
    border-radius: var(--main-radius, 6px); padding: 4px; margin-bottom: 16px;
}
.zb-mt-tab {
    flex: 1; text-align: center; padding: 10px; font-size: 14px; font-weight: 500;
    color: var(--muted-2-color); border-radius: var(--main-radius, 6px);
    cursor: pointer; transition: all .2s; border: none; background: transparent;
}
.zb-mt-tab:hover { color: var(--main-color); }
.zb-mt-tab.active {
    background: var(--main-bg-color); color: var(--ztc-primary, var(--theme-color));
    font-weight: 600; box-shadow: var(--main-shadow);
}
.zb-mt-item {
    display: flex; align-items: center; gap: 16px; padding: 24px;
    border-bottom: 1px solid var(--main-border-color); transition: background .15s;
}
.zb-mt-item:hover { background: var(--muted-bg-color); }
.zb-mt-item:last-child { border-bottom: none; }
.zb-mt-item-icon {
    width: 42px; height: 42px; border-radius: var(--main-radius, 6px);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: var(--ztc-primary, var(--theme-color)); background: rgba(22,119,255,.08);
}
.zb-mt-item-body      { flex: 1; min-width: 0; }
.zb-mt-item-title     { font-size: 15px; font-weight: 500; color: var(--main-color); margin-bottom: 4px; }
.zb-mt-item-meta      { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2-color); flex-wrap: wrap; }
.zb-mt-item-right     { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.zb-mt-item-reward    { font-size: 16px; font-weight: 700; color: #ff4d4f; }

/* 空状态 */
.zb-empty { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; }
.zb-empty-icon {
    width: 120px !important; height: 120px !important; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
}
.zb-empty-icon svg,
.zb-empty-icon img {
    width: 120px !important;
    height: 120px !important;
    max-width: 120px !important;
    max-height: 120px !important;
    display: block;
}
.zb-empty-title { font-size: 16px; font-weight: 600; color: var(--main-color); margin-bottom: 8px; }
.zb-empty-desc  { font-size: 14px; color: var(--muted-2-color); margin-bottom: 16px; }

/* 详情页 */
.zb-detail-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--muted-color); margin-bottom: 16px; transition: color .2s;
}
.zb-detail-back:hover { color: var(--ztc-primary, var(--theme-color)); }
.zb-detail-head {
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: var(--main-shadow);
    border: 1px solid var(--main-border-color);
    padding: 24px; margin-bottom: 16px;
}
.zb-detail-head-top  { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.zb-detail-head-info { flex: 1; min-width: 0; }
.zb-detail-badges    { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.zb-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.zb-detail-title     { font-size: 22px; font-weight: 700; color: var(--main-color); line-height: 1.4; flex: 1; }
.zb-detail-timer-inline {
    flex-shrink: 0;
    min-width: 180px;
    padding: 10px 14px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    border: 1px solid var(--main-border-color);
}
.zb-detail-timer-inline .zb-detail-timer-info {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 6px;
}
.zb-detail-timer-inline .zb-detail-timer-label {
    font-size: 12px; color: var(--muted-color);
    display: flex; align-items: center; gap: 4px;
}
.zb-detail-timer-inline .zb-detail-timer-label svg {
    width: 12px; height: 12px;
}
.zb-detail-timer-inline .zb-detail-timer-text {
    font-size: 14px; font-weight: 600;
}
.zb-detail-timer-inline .zb-detail-timer-bar {
    height: 3px; background: var(--muted-bg-color);
    border-radius: 2px; overflow: hidden;
}
.zb-detail-meta      { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2-color); }
.zb-detail-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.zb-detail-timer {
    margin-top: 16px;
    padding: 12px 16px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 8px);
    border: 1px solid var(--main-border-color);
}
.zb-detail-timer-info {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.zb-detail-timer-label {
    font-size: 13px; color: var(--muted-color);
    display: flex; align-items: center; gap: 6px;
}
.zb-detail-timer-label svg {
    width: 14px; height: 14px;
}
.zb-detail-timer-text {
    font-size: 15px; font-weight: 600;
}
.zb-detail-timer-bar {
    height: 4px; background: var(--muted-bg-color);
    border-radius: 2px; overflow: hidden;
}
.zb-detail-timer-progress {
    height: 100%; border-radius: 2px; transition: width .5s ease;
    background: var(--ztc-primary, var(--theme-color));
}
.zb-detail-timer-progress[data-urgency="danger"] {
    background: #ff4d4f;
    animation: zb-progress-pulse 2s infinite;
}
.zb-detail-timer-progress[data-urgency="warning"] {
    background: #fa8c16;
}
.zb-detail-timer-progress[data-urgency="info"] {
    background: #1890ff;
}
.zb-detail-timer-percent {
    font-size: 12px; color: var(--muted-color);
    text-align: right;
    margin-top: 4px;
}
.zb-detail-reward {
    text-align: center; flex-shrink: 0; padding: 16px 24px;
    background: #fff2f0; border-radius: var(--main-radius, 8px); border: 1px solid #ffccc7;
}
.zb-detail-reward-label { font-size: 12px; color: var(--muted-color); margin-bottom: 4px; }
.zb-detail-reward-val   { font-size: 32px; font-weight: 700; color: #ff4d4f; line-height: 1.2; }
.zb-detail-reward-unit  { font-size: 13px; color: #ff4d4f; font-weight: 500; }
.zb-detail-actions      { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.zb-detail-body         { font-size: 15px; line-height: 1.8; color: var(--muted-2-color); word-break: break-word; }

/* 提交列表 */
.zb-submission-list { }
.zb-submission-item {
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 8px);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all .2s;
}
.zb-submission-item:hover {
    box-shadow: var(--main-shadow);
    border-color: var(--ztc-primary, var(--theme-color));
}
.zb-submission-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: var(--muted-bg-color);
    border-bottom: 1px solid var(--main-border-color);
}
.zb-submission-author {
    display: flex; align-items: center; gap: 10px;
}
.zb-submission-avatar {
    width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--main-border-color);
}
.zb-submission-author-info { }
.zb-submission-name { font-size: 14px; font-weight: 600; color: var(--main-color); }
.zb-submission-meta { font-size: 12px; color: var(--muted-color); }
.zb-submission-status-wrap { display: flex; align-items: center; gap: 8px; }
.zb-submission-time { font-size: 12px; color: var(--muted-color); }

.zb-submission-body {
    padding: 16px;
}
.zb-submission-content {
    font-size: 14px; line-height: 1.7; color: var(--muted-2-color);
    margin-bottom: 12px;
}
.zb-submission-content p { margin: 0 0 8px 0; }
.zb-submission-content p:last-child { margin-bottom: 0; }

.zb-submission-files {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 12px;
}
.zb-submission-file {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px;
    background: rgba(22,119,255,.06);
    border: 1px solid rgba(22,119,255,.2);
    border-radius: 4px;
    font-size: 13px; color: var(--ztc-primary, var(--theme-color));
    text-decoration: none;
    transition: all .2s;
}
.zb-submission-file:hover {
    background: rgba(22,119,255,.12);
    border-color: var(--ztc-primary, var(--theme-color));
}
.zb-submission-file svg { width: 14px; height: 14px; }

.zb-submission-review-notes {
    padding: 10px 14px;
    background: #fff7e6;
    border-radius: 4px;
    font-size: 13px;
    color: #fa8c16;
    margin-bottom: 12px;
    border-left: 3px solid #fa8c16;
}
.zb-submission-review-notes.approved {
    background: #237804;
    color: #fff;
    border-left-color: #237804;
}
.zb-submission-review-notes.rejected {
    background: #cf1322;
    color: #fff;
    border-left-color: #cf1322;
}

.zb-submission-actions {
    display: flex; align-items: center; gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--main-border-color);
}
.zb-submission-action-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 14px;
    font-size: 13px; font-weight: 500;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all .2s;
}
.zb-submission-action-btn.approve {
    background: #237804; color: #fff; border-color: #237804;
}
.zb-submission-action-btn.approve:hover {
    background: #1a5c03; color: #fff;
}
.zb-submission-action-btn.reject {
    background: #fff2f0; color: #ff4d4f; border-color: #ff4d4f;
}
.zb-submission-action-btn.reject:hover {
    background: #ff4d4f; color: #fff;
}
.zb-submission-action-btn.appeal {
    background: #fff7e6; color: #fa8c16; border-color: #fa8c16;
}
.zb-submission-action-btn.appeal:hover {
    background: #fa8c16; color: #fff;
}
.zb-submission-action-btn.disabled {
    background: #f5f5f5; color: #999; border-color: #d9d9d9; cursor: not-allowed;
}

/* 暗黑模式适配 */
body.dark-theme .zb-submission-action-btn.reject {
    background: #2a1818; color: #ff7875; border-color: #ff4d4f;
}
body.dark-theme .zb-submission-action-btn.reject:hover {
    background: #ff4d4f; color: #fff;
}
body.dark-theme .zb-submission-action-btn.appeal {
    background: #2b1d11; color: #ffa940; border-color: #fa8c16;
}
body.dark-theme .zb-submission-action-btn.appeal:hover {
    background: #fa8c16; color: #fff;
}
body.dark-theme .zb-submission-action-btn.disabled {
    background: #1f1f1f; color: #666; border-color: #444;
}
body.dark-theme .zb-submission-action-btn.approve {
    background: #16230a; color: #52c41a; border-color: #237804;
}
body.dark-theme .zb-submission-action-btn.approve:hover {
    background: #237804; color: #fff;
}

/* 侧边栏 */
.zb-side-info-row {
    display: flex; justify-content: space-between; padding: 8px 0;
    border-bottom: 1px solid var(--main-border-color); font-size: 13px;
}
.zb-side-info-row:last-child { border-bottom: none; }
.zb-side-label  { color: var(--muted-color); }
.zb-side-value  { font-weight: 500; color: var(--main-color); }
.zb-publisher-row { display: flex; align-items: center; gap: 10px; }
.zb-publisher-row img {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--main-border-color);
}
.zb-publisher-row-name { font-size: 15px; font-weight: 600; color: var(--main-color); }
.zb-publisher-row-date { font-size: 12px; color: var(--muted-2-color); margin-top: 2px; }

/* 发布表单 */
.zb-form-group  { margin-bottom: 16px; }
.zb-form-label  { display: block; font-size: 14px; font-weight: 600; color: var(--main-color); margin-bottom: 6px; }
.zb-form-label .required { color: #ff4d4f; margin-left: 2px; }
.zb-form-hint   { font-size: 12px; color: var(--muted-2-color); margin-top: 4px; }
.zb-input, .zb-select, .zb-textarea {
    width: 100%; padding: 9px 14px; font-size: 14px;
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 6px); outline: none;
    transition: border-color .2s; background: var(--main-bg-color); color: var(--main-color);
}
.zb-input:focus, .zb-select:focus, .zb-textarea:focus {
    border-color: var(--ztc-primary, var(--theme-color));
    box-shadow: 0 0 0 2px rgba(22,119,255,.1);
}
.zb-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.zb-select {
    appearance: none;
    background: var(--main-bg-color) url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8c8c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    padding-right: 36px; cursor: pointer;
}
.zb-form-row     { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.zb-form-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }

/* 奖励类型选择 */
.zb-reward-types { display: flex; gap: 10px; margin-bottom: 16px; }
.zb-rt-card {
    flex: 1; border: 2px solid var(--main-border-color);
    border-radius: var(--main-radius, 6px);
    padding: 16px 12px; text-align: center; cursor: pointer; transition: all .2s;
}
.zb-rt-card:hover  { border-color: var(--ztc-primary, var(--theme-color)); }
.zb-rt-card.active { border-color: var(--ztc-primary, var(--theme-color)); background: rgba(22,119,255,.06); }
.zb-rt-card svg    { color: var(--ztc-primary, var(--theme-color)); margin-bottom: 6px; }
.zb-rt-card-name   { font-size: 14px; font-weight: 600; color: var(--main-color); }
.zb-rt-card-desc   { font-size: 12px; color: var(--muted-2-color); margin-top: 2px; }

/* 发布指南 */
.zb-publish-guide {
    background: rgba(22,119,255,.06);
    border-radius: var(--main-radius, 8px);
    padding: 24px; border: 1px solid rgba(22,119,255,.15);
}
.zb-publish-guide h3 { font-size: 16px; font-weight: 600; color: var(--main-color); margin-bottom: 12px; }
.zb-publish-guide li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--muted-2-color); padding: 6px 0; }
.zb-publish-guide li::before { content: '✓'; color: #237804; font-weight: 700; flex-shrink: 0; }

/* 弹窗 */
.ztc-modal {
    z-index: 9999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}
.ztc-modal.show {
    opacity: 1;
    visibility: visible;
}
.ztc-modal-overlay { 
    background: rgba(0,0,0,.5); 
    backdrop-filter: blur(4px);
}
.ztc-modal-box {
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 12px);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    transition: transform .25s ease;
    border: 3px solid var(--main-border-color);
    overflow-y: auto;
}
.ztc-modal-header {
    padding: 20px 24px; border-bottom: 1px solid var(--main-border-color);
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; background: var(--main-bg-color); z-index: 1;
}
.ztc-modal-header h3 { 
    font-size: 17px; font-weight: 600; color: var(--main-color); 
    margin: 0;
}
.ztc-modal-close {
    background: var(--muted-bg-color); border: none; 
    width: 28px; height: 28px; border-radius: 50%;
    cursor: pointer; color: var(--muted-color); 
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.ztc-modal-close:hover { 
    color: var(--main-color); 
    background: var(--ztc-primary, var(--theme-color));
    color: #fff;
}
.ztc-modal-body { padding: 24px; }
.ztc-modal-footer {
    padding: 16px 24px; border-top: 1px solid var(--main-border-color);
    display: flex; align-items: center; justify-content: flex-end; gap: 10px;
    position: sticky; bottom: 0; background: var(--main-bg-color); z-index: 1;
}

/* 自定义确认对话框 */
.ztc-confirm-modal {
    z-index: 10000 !important;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
}
.ztc-confirm-modal.show {
    opacity: 1;
    visibility: visible;
}
.ztc-confirm-box {
    text-align: center;
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 12px);
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    border: 3px solid var(--main-border-color);
    transition: transform .25s ease;
}
.ztc-confirm-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
}
.ztc-confirm-icon.warning {
    background: rgba(250,140,22,.1);
    color: #fa8c16;
}
.ztc-confirm-icon.error {
    background: rgba(255,77,79,.1);
    color: #ff4d4f;
}
.ztc-confirm-icon.success {
    background: rgba(35,120,4,.15);
    color: #237804;
}
.ztc-confirm-title {
    font-size: 17px; font-weight: 600; color: var(--main-color);
    margin-bottom: 8px;
}
.ztc-confirm-text {
    font-size: 14px; color: var(--muted-2-color); line-height: 1.6;
    margin-bottom: 20px;
}
.ztc-confirm-buttons {
    display: flex; justify-content: center; gap: 10px;
}
.ztc-btn-confirm {
    padding: 10px 30px;
    border-radius: var(--main-radius, 6px);
    font-size: 14px; font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all .2s;
}
.ztc-btn-confirm-primary {
    background: var(--ztc-primary, var(--theme-color));
    color: #fff;
}
.ztc-btn-confirm-primary:hover {
    opacity: .9;
    transform: translateY(-1px);
}
.ztc-btn-confirm-secondary {
    background: var(--muted-bg-color);
    color: var(--muted-2-color);
}
.ztc-btn-confirm-secondary:hover {
    background: var(--main-border-color);
    color: var(--main-color);
}

/* 动画 */
.ztc-unlocked-notice { animation: ztc-fade-in .3s ease; }
.ztc-unlock-card     { animation: ztc-fade-in .3s ease; }
@keyframes ztc-fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* 响应式 */
@media (max-width: 1024px) {
    .ztc-page .zb-sidebar { display: none; }
    .ztc-page .zb-row { flex-direction: column; }
    .zb-mt-stats { grid-template-columns: repeat(3, 1fr); }
    .zb-ranking-dual { grid-template-columns: 1fr; }
    .zb-rank-list { grid-template-columns: repeat(10, 1fr); }
}
@media (max-width: 768px) {
    .zb-task-grid { grid-template-columns: 1fr; }
    .ztc-page .zb-hero { flex-direction: column; text-align: center; }
    .ztc-page .zb-hero-actions { justify-content: center; }
    .ztc-page .zb-hero-stats { justify-content: center; }
    .zb-mt-stats { grid-template-columns: repeat(2, 1fr); }
    .zb-mt-tabs { flex-direction: column; gap: 4px; }
    .zb-filter-bar { flex-direction: column; align-items: stretch; }
    .zb-filter-search { max-width: none; }
    .zb-detail-head-top { flex-direction: column; }
    .zb-form-row { grid-template-columns: 1fr; }
    .zb-reward-types { flex-direction: column; }
    .zb-rank-list { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 480px) {
    .ztc-page .zb-hero-stats { flex-wrap: wrap; gap: 8px; }
    .ztc-page .zb-hero-stat { min-width: 60px; flex: 1; }
    .zb-mt-stats { grid-template-columns: 1fr; }
    .zb-mt-item { flex-direction: column; align-items: flex-start; }
    .zb-mt-item-right { align-items: flex-start; width: 100%; }
    .zb-ranking-list { grid-template-columns: repeat(3, 1fr); }
    .zb-side-slot { flex-direction: column; align-items: flex-start; }
    .zb-rank-list { grid-template-columns: repeat(5, 1fr); }
}

/* ========== 侧边栏 - 我的任务 ========== */
.zb-side-slots { }
.zb-side-slot {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--main-border-color);
}
.zb-side-slot:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.zb-side-slot-title {
    font-size: 14px; font-weight: 600; color: var(--main-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.zb-side-slot-title a { color: inherit; text-decoration: none; }
.zb-side-slot-title a:hover { color: var(--ztc-primary, var(--theme-color)); }
.zb-side-slot-meta {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--muted-2-color);
}
.zb-side-slot-status { margin-left: auto; }
.zb-side-more {
    text-align: center; padding-top: 8px; margin-top: 8px;
    border-top: 3px solid var(--main-border-color);
}
.zb-side-more a { font-size: 13px; color: var(--ztc-primary, var(--theme-color)); text-decoration: none; }

/* ========== 官方客服模块 ========== */
.zb-customer-service {
    display: flex; flex-direction: column; gap: 10px;
}
.zb-cs-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--muted-2-color);
    padding: 8px 10px;
    background: var(--muted-bg-color);
    border-radius: var(--main-radius, 6px);
}
.zb-cs-item svg {
    color: var(--ztc-primary, var(--theme-color)); flex-shrink: 0;
}
.zb-cs-social {
    display: flex; gap: 24px;
    justify-content: center;
    margin-top: 4px; padding-top: 10px;
    border-top: 3px solid var(--main-border-color);
}
.zb-cs-social-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    cursor: pointer;
}
.zb-cs-icon {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; transition: transform .2s;
}
.zb-cs-icon:hover { transform: scale(1.1); }
.zb-cs-icon-wechat { background: #07c160; }
.zb-cs-icon-qq { background: #12b7f5; }
.zb-cs-icon svg { color: #fff; }
.zb-cs-social-item > span {
    font-size: 11px; color: var(--muted-2-color);
}
.zb-cs-qrcode {
    position: absolute; bottom: 52px; left: 50%;
    transform: translateX(-50%);
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 8px);
    padding: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
    opacity: 0; visibility: hidden;
    transition: all .2s; z-index: 100; pointer-events: none;
}
.zb-cs-social-item:hover .zb-cs-qrcode {
    opacity: 1; visibility: visible;
}
.zb-cs-qrcode-inner {
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
    background: var(--muted-bg-color);
    border-radius: var(--main-radius, 4px);
    font-size: 12px; color: var(--muted-color);
}
.zb-cs-qrcode-inner img {
    width: 100%; height: 100%; object-fit: contain;
}
.zb-cs-extra {
    margin-top: 10px; padding-top: 10px;
    border-top: 3px solid var(--main-border-color);
    font-size: 13px; line-height: 1.8;
    text-align: center;
}
.zb-cs-extra a { text-decoration: none; }
.zb-cs-extra a:hover { text-decoration: underline; }

/* ========== 浮动客服按钮 ========== */
.zb-float-cs {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
}
.zb-float-cs-btn {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, var(--ztc-primary, #1677ff), #0958d9);
    display: flex; align-items: center; justify-content: center;
    color: #fff; cursor: pointer;
    box-shadow: 0 4px 16px rgba(22,119,255,.4);
    transition: all .3s; border: none; outline: none;
}
.zb-float-cs-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(22,119,255,.5);
}
.zb-float-cs-panel {
    position: absolute; bottom: 68px; right: 0;
    width: 280px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius, 12px);
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    border: 1px solid var(--main-border-color);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all .3s; overflow: hidden;
}
.zb-float-cs-panel.active {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.zb-float-cs-header {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--ztc-primary, #1677ff), #0958d9);
    color: #fff; font-size: 15px; font-weight: 600;
}
.zb-float-cs-body { padding: 16px; }

/* ========== 无框排行榜（横向） ========== */
.zb-mini-rank {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
}
.zb-mini-rank-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
}
.zb-rank-list {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
    padding: 4px 0 8px 0;
}
.zb-rank-user {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    cursor: default;
}
.zb-rank-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
}
.zb-rank-avatar-wrap img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .25s, box-shadow .25s;
}
.zb-rank-user:hover .zb-rank-avatar-wrap img {
    transform: scale(1.15);
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.zb-rank-pos {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--muted-color);
    z-index: 2;
    border: 2px solid var(--main-bg-color);
}
.zb-rank-pos.top-1 { background: #ff4d4f; }
.zb-rank-pos.top-2 { background: #fa8c16; }
.zb-rank-pos.top-3 { background: #faad14; }
.zb-rank-pos.top-4 { background: #237804; }
.zb-rank-pos.top-5 { background: #1890ff; }
.zb-rank-pos.top-6 { background: #722ed1; }
.zb-rank-pos.top-7 { background: #eb2f96; }
.zb-rank-pos.top-8 { background: #2f54eb; }
.zb-rank-pos.top-9 { background: #13c2c2; }
.zb-rank-pos.top-10 { background: #fa541c; }
.zb-rank-user-name {
    font-size: 11px;
    color: var(--muted-color);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60px;
    text-align: center;
}
.zb-rank-earnings {
    font-size: 10px;
    color: var(--ztc-primary, var(--theme-color));
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
/* 余额提示行 */
.ztc-balance-tip {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted-2-color);
}
.ztc-balance-tip strong {
    color: var(--ztc-primary, var(--theme-color));
    font-weight: 700;
}
.ztc-charge-link {
    font-size: 12px;
    color: #fff;
    background: var(--ztc-primary, var(--theme-color));
    padding: 2px 10px;
    border-radius: 12px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s;
}
.ztc-charge-link:hover { opacity: .85; color: #fff; }

/* wp_editor 适配 */
.ztc-wp-editor { width: 100%; }
.ztc-page .wp-editor-wrap { border: 1px solid var(--main-border-color); border-radius: var(--main-radius, 6px); overflow: hidden; }
.ztc-page .wp-editor-tabs { background: var(--muted-bg-color); border-bottom: 1px solid var(--main-border-color); }
.ztc-page .mce-tinymce { border: none !important; box-shadow: none !important; }
.ztc-page .wp-editor-area { border: none; outline: none; padding: 12px; width: 100%; box-sizing: border-box; min-height: 200px; }

/* ========== 主标签栏（我接受的/我发布的） ========== */
.zb-mt-maintabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--main-border-color);
}
.zb-mt-maintab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--muted-color);
    cursor: pointer;
    margin-bottom: -2px;
    transition: all .2s;
}
.zb-mt-maintab:hover { color: var(--main-color); }
.zb-mt-maintab.active {
    color: var(--ztc-primary, var(--theme-color));
    border-bottom-color: var(--ztc-primary, var(--theme-color));
}

/* ========== 文件上传/附件列表 ========== */
.ztc-file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ztc-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: var(--muted-bg-color);
    border-radius: 4px;
    font-size: 12px;
    gap: 8px;
}
.ztc-file-item-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--main-color);
}
.ztc-file-item-name a {
    color: var(--ztc-primary, var(--theme-color));
    text-decoration: none;
}
.ztc-file-item-name a:hover { text-decoration: underline; }
.ztc-file-item-size {
    color: var(--muted-2-color);
    flex-shrink: 0;
}
.ztc-del-file-btn {
    background: none;
    border: none;
    color: #ff4d4f;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
    flex-shrink: 0;
}
.ztc-del-file-btn:hover { opacity: .7; }
.ztc-file-new {
    border: 1px dashed var(--ztc-primary, var(--theme-color));
    cursor: pointer;
}
.ztc-file-preview {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ztc-file-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: 4px;
    font-size: 12px;
    color: var(--main-color);
    text-decoration: none;
    transition: all .2s;
}
.ztc-file-link:hover {
    border-color: var(--ztc-primary, var(--theme-color));
    color: var(--ztc-primary, var(--theme-color));
}

/* ========== 任务详情页关联付费内容模块 ========== */
.ztc-linked-paid-content .zb-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ztc-linked-badge {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(22,119,255,.1);
    color: var(--theme-color, #1677ff);
    margin-left: auto;
}
.ztc-linked-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ztc-linked-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 10px;
    background: var(--muted-bg-color, #f7f8fa);
    border: 1px solid transparent;
    text-decoration: none;
    color: inherit;
    transition: all .25s ease;
    position: relative;
}
.ztc-linked-item:hover {
    border-color: var(--ztc-primary, var(--theme-color));
    background: rgba(22,119,255,.04);
    transform: translateX(4px);
}
.ztc-linked-item.is-unlocked {
    background: rgba(22,119,255,.06);
    border-color: rgba(22,119,255,.2);
}
.ztc-linked-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: var(--main-bg-color);
}
.ztc-linked-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ztc-linked-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(22,119,255,.1) 0%, rgba(99,102,241,.1) 100%);
    color: var(--ztc-primary, var(--theme-color));
    font-size: 28px;
}
.ztc-linked-unlocked-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(22,119,255,.9);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
}
.ztc-linked-info {
    flex: 1;
    min-width: 0;
}
.ztc-linked-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color);
    margin: 0 0 6px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ztc-linked-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
}
.ztc-linked-type {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(22,119,255,.1);
    color: var(--theme-color, #1677ff);
    font-size: 11px;
}
.ztc-linked-price {
    color: #f5222d;
    font-weight: 600;
    font-size: 13px;
}
.ztc-linked-arrow {
    color: var(--muted-2-color, #999);
    flex-shrink: 0;
    transition: transform .2s;
}
.ztc-linked-item:hover .ztc-linked-arrow {
    color: var(--ztc-primary, var(--theme-color));
    transform: translateX(3px);
}
.ztc-linked-tip {
    margin-top: 14px;
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(250,173,20,.08) 0%, rgba(250,140,22,.08) 100%);
    border-radius: 8px;
    font-size: 13px;
    color: var(--muted-2-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ztc-linked-tip i {
    color: #fa8c16;
    font-size: 16px;
}
.ztc-linked-tip strong {
    color: #fa8c16;
}

/* 暗黑模式适配 */
body.dark-theme .ztc-linked-item {
    background: rgba(255,255,255,.04);
}
body.dark-theme .ztc-linked-item:hover {
    background: rgba(22,119,255,.1);
}
body.dark-theme .ztc-linked-tip {
    background: rgba(250,140,22,.1);
}
body.dark-theme .ztc-linked-badge {
    background: rgba(22,119,255,.15);
}

/* ========== 编辑弹窗 ========== */
.ztc-modal-lg .ztc-modal-box {
    max-width: 720px;
    width: 100%;
}

/* ========== 发布页统计 ========== */
.zb-mt-stat.gray .zb-mt-stat-num { color: var(--muted-2-color); }
.zb-mt-stat.gray { background: var(--muted-bg-color); }

/* 管理任务菜单 */
.zb-task-manage { position: relative; margin-top: 8px; z-index: 100; }
.zb-task-manage-menu {
    display: none;
    position: fixed;
    z-index: 9999;
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 8px);
    box-shadow: 0 10px 40px rgba(0,0,0,.15);
    overflow: hidden;
    min-width: 180px;
}
.zb-task-manage.open .zb-task-manage-menu { display: block; }
.zb-task-manage-item {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 11px 16px;
    text-align: left;
    font-size: 13px; color: var(--muted-2-color);
    border: none;
    background: none;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}
.zb-task-manage-item:hover {
    background: var(--muted-bg-color);
    color: var(--main-color);
}
.zb-task-manage-item-danger:hover {
    background: #fff2f0;
    color: #ff4d4f;
}

/* ========== 边框样式统一 ========== */
.ztc-page .zb-card,
.ztc-page .zb-hero,
.ztc-page .zb-filter-bar,
.ztc-page .zb-task-card,
.ztc-page .zb-publisher-card,
.ztc-page .zb-detail-head,
.ztc-page .zb-detail-info,
.ztc-page .zb-detail-submit,
.ztc-page .zb-detail-comments,
.ztc-page .zb-detail-reward,
.ztc-page .zb-detail-timer,
.ztc-page .zb-ranking-card,
.ztc-page .zb-mt-card,
.ztc-page .zb-empty,
.ztc-page .zb-page-bar,
.ztc-page .zb-task-manage-menu,
.ztc-page .zb-modal-box,
.ztc-page .zb-side-card,
.ztc-page .zb-side-info,
.ztc-page .ztc-modal-box,
.ztc-page .zb-card-header,
.ztc-page .zb-task-header,
.ztc-page .zb-task-footer,
.ztc-page .zb-mt-item,
.ztc-page .zb-mt-maintabs,
.ztc-page .zb-side-slot,
.ztc-page .zb-side-info-row,
.ztc-page .zb-modal-header,
.ztc-page .zb-modal-footer,
.ztc-page .zb-comment-item,
.ztc-page .zb-comment-form {
    border-width: 3px;
    border-color: var(--main-border-color);
}

.ztc-page .dark-theme .zb-card,
.ztc-page .dark-theme .zb-hero,
.ztc-page .dark-theme .zb-filter-bar,
.ztc-page .dark-theme .zb-task-card,
.ztc-page .dark-theme .zb-publisher-card,
.ztc-page .dark-theme .zb-detail-head,
.ztc-page .dark-theme .zb-detail-info,
.ztc-page .dark-theme .zb-detail-submit,
.ztc-page .dark-theme .zb-detail-comments,
.ztc-page .dark-theme .zb-detail-reward,
.ztc-page .dark-theme .zb-detail-timer,
.ztc-page .dark-theme .zb-ranking-card,
.ztc-page .dark-theme .zb-mt-card,
.ztc-page .dark-theme .zb-empty,
.ztc-page .dark-theme .zb-page-bar,
.ztc-page .dark-theme .zb-task-manage-menu,
.ztc-page .dark-theme .zb-modal-box,
.ztc-page .dark-theme .zb-side-card,
.ztc-page .dark-theme .zb-side-info,
.ztc-page .dark-theme .ztc-modal-box,
.ztc-page .dark-theme .zb-card-header,
.ztc-page .dark-theme .zb-task-header,
.ztc-page .dark-theme .zb-task-footer,
.ztc-page .dark-theme .zb-mt-item,
.ztc-page .dark-theme .zb-mt-maintabs,
.ztc-page .dark-theme .zb-side-slot,
.ztc-page .dark-theme .zb-side-info-row,
.ztc-page .dark-theme .zb-modal-header,
.ztc-page .dark-theme .zb-modal-footer,
.ztc-page .dark-theme .zb-comment-item,
.ztc-page .dark-theme .zb-comment-form {
    border-color: rgba(255,255,255,.15);
}

body.dark-theme .ztc-page .zb-card,
body.dark-theme .ztc-page .zb-hero,
body.dark-theme .ztc-page .zb-filter-bar,
body.dark-theme .ztc-page .zb-task-card,
body.dark-theme .ztc-page .zb-publisher-card,
body.dark-theme .ztc-page .zb-detail-head,
body.dark-theme .ztc-page .zb-detail-info,
body.dark-theme .ztc-page .zb-detail-submit,
body.dark-theme .ztc-page .zb-detail-comments,
body.dark-theme .ztc-page .zb-detail-reward,
body.dark-theme .ztc-page .zb-detail-timer,
body.dark-theme .ztc-page .zb-ranking-card,
body.dark-theme .ztc-page .zb-mt-card,
body.dark-theme .ztc-page .zb-empty,
body.dark-theme .ztc-page .zb-page-bar,
body.dark-theme .ztc-page .zb-task-manage-menu,
body.dark-theme .ztc-page .zb-modal-box,
body.dark-theme .ztc-page .zb-side-card,
body.dark-theme .ztc-page .zb-side-info,
body.dark-theme .ztc-page .ztc-modal-box,
body.dark-theme .ztc-page .zb-card-header,
body.dark-theme .ztc-page .zb-task-header,
body.dark-theme .ztc-page .zb-task-footer,
body.dark-theme .ztc-page .zb-mt-item,
body.dark-theme .ztc-page .zb-mt-maintabs,
body.dark-theme .ztc-page .zb-side-slot,
body.dark-theme .ztc-page .zb-side-info-row,
body.dark-theme .ztc-page .zb-modal-header,
body.dark-theme .ztc-page .zb-modal-footer,
body.dark-theme .ztc-page .zb-comment-item,
body.dark-theme .ztc-page .zb-comment-form {
    border-color: rgba(255,255,255,.15);
}

/* ========== 简洁上传按钮 ========== */
.ztc-upload-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.ztc-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--main-radius, 8px);
    border: 1px solid var(--main-border-color);
    background: var(--card-bg-color, #fff);
    color: var(--main-text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
}
.ztc-upload-btn:hover {
    border-color: var(--theme-color, #1677ff);
    color: var(--theme-color, #1677ff);
    background: rgba(22,119,255,.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22,119,255,.12);
}
.ztc-upload-btn svg {
    width: 16px; height: 16px;
}
.ztc-upload-hint-text {
    font-size: 13px;
    color: var(--muted-color);
}

/* ========== 文件列表 ========== */
.ztc-file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ztc-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--muted-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 8px);
    transition: all .2s;
}
.ztc-file-item:hover {
    border-color: var(--theme-color, #1677ff);
    background: rgba(22,119,255,.03);
}
.ztc-file-icon {
    width: 32px; height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(22,119,255,.1);
    border-radius: 6px;
    color: var(--theme-color, #1677ff);
}
.ztc-file-icon svg {
    width: 18px; height: 18px;
}
.ztc-file-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ztc-file-name {
    font-size: 14px;
    color: var(--main-text-color);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ztc-file-size {
    font-size: 12px;
    color: var(--muted-color);
}
.ztc-file-remove {
    width: 24px; height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--muted-color);
    cursor: pointer;
    transition: all .2s;
}
.ztc-file-remove:hover {
    background: rgba(255,77,79,.12);
    color: #ff4d4f;
}
.ztc-file-remove svg {
    width: 14px; height: 14px;
}

/* ========== 美化文本域 ========== */
.ztc-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius, 8px);
    background: var(--card-bg-color, #fff);
    color: var(--main-text-color);
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color .25s, box-shadow .25s;
    box-sizing: border-box;
    font-family: inherit;
}
.ztc-textarea:focus {
    outline: none;
    border-color: var(--theme-color, #1677ff);
    box-shadow: 0 0 0 3px rgba(22,119,255,.12);
}
.ztc-textarea::placeholder {
    color: var(--muted-color);
}

/* ========== 精美提交按钮（渐变+适配昼夜） ========== */
.ztc-submit-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--main-radius, 10px);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    overflow: hidden;
    letter-spacing: .5px;
}
.ztc-submit-btn.ztc-btn-lg {
    padding: 14px 36px;
    font-size: 16px;
}
.ztc-submit-btn.ztc-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #1677ff 0%, #4096ff 50%, #69b1ff 100%);
    box-shadow: 0 4px 14px rgba(22,119,255,.35);
}
.ztc-submit-btn.ztc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,119,255,.45);
    background: linear-gradient(135deg, #0958d9 0%, #1677ff 50%, #4096ff 100%);
}
.ztc-submit-btn.ztc-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(22,119,255,.35);
}
.ztc-submit-btn:disabled {
    cursor: not-allowed;
    opacity: .7;
    transform: none !important;
}
.ztc-btn-icon {
    font-size: 16px;
    line-height: 1;
}
.ztc-btn-text {
    position: relative;
    z-index: 1;
}

/* 按钮loading动画 */
.ztc-submit-btn.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ztc-btn-spin .8s linear infinite;
    z-index: 2;
}
.ztc-submit-btn.loading .ztc-btn-text,
.ztc-submit-btn.loading .ztc-btn-icon {
    opacity: 0;
}
@keyframes ztc-btn-spin {
    to { transform: rotate(360deg); }
}

/* 暗色主题适配 */
body.dark-theme .ztc-upload-btn {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
    color: var(--main-text-color);
}
body.dark-theme .ztc-upload-btn:hover {
    border-color: var(--theme-color, #4096ff);
    color: var(--theme-color, #4096ff);
    background: rgba(64,150,255,.08);
}
body.dark-theme .ztc-file-item {
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.1);
}
body.dark-theme .ztc-file-item:hover {
    border-color: var(--theme-color, #4096ff);
    background: rgba(64,150,255,.06);
}
body.dark-theme .ztc-file-icon {
    background: rgba(64,150,255,.15);
    color: var(--theme-color, #4096ff);
}
body.dark-theme .ztc-textarea {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
    color: rgba(255,255,255,.95);
}
body.dark-theme .ztc-textarea:focus {
    border-color: var(--theme-color, #4096ff);
    box-shadow: 0 0 0 3px rgba(64,150,255,.15);
}
body.dark-theme .ztc-textarea::placeholder {
    color: rgba(255,255,255,.45);
}

body.dark-theme .zb-input,
body.dark-theme .zb-textarea,
body.dark-theme .zb-select {
    background: rgba(255,255,255,.04) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: rgba(255,255,255,.95) !important;
}
body.dark-theme .zb-input::placeholder,
body.dark-theme .zb-textarea::placeholder {
    color: rgba(255,255,255,.45) !important;
}
body.dark-theme .zb-input:focus,
body.dark-theme .zb-textarea:focus,
body.dark-theme .zb-select:focus {
    border-color: var(--theme-color, #4096ff) !important;
    box-shadow: 0 0 0 3px rgba(64,150,255,.15) !important;
    color: rgba(255,255,255,.95) !important;
}

/* 覆盖各种input类型在暗黑模式下的文字颜色 */
body.dark-theme input.zb-input,
body.dark-theme input[type="text"].zb-input,
body.dark-theme input[type="number"].zb-input,
body.dark-theme input[type="password"].zb-input,
body.dark-theme input[type="email"].zb-input,
body.dark-theme input[type="url"].zb-input,
body.dark-theme input[type="tel"].zb-input,
body.dark-theme input[type="search"].zb-input,
body.dark-theme input[type="date"].zb-input,
body.dark-theme input[type="datetime-local"].zb-input,
body.dark-theme input[type="time"].zb-input,
body.dark-theme select.zb-select,
body.dark-theme textarea.zb-textarea {
    color: rgba(255,255,255,.95) !important;
    background: rgba(255,255,255,.04) !important;
}

/* 自动填充背景修复 */
body.dark-theme .zb-input:-webkit-autofill,
body.dark-theme .zb-input:-webkit-autofill:hover,
body.dark-theme .zb-input:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255,255,255,.95) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,.04) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}
body.dark-theme .ztc-submit-btn.ztc-btn-primary {
    background: linear-gradient(135deg, #0958d9 0%, #1677ff 50%, #4096ff 100%);
    box-shadow: 0 4px 14px rgba(22,119,255,.4);
}
body.dark-theme .ztc-submit-btn.ztc-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(22,119,255,.5);
    background: linear-gradient(135deg, #003eb3 0%, #0958d9 50%, #1677ff 100%);
}
body.dark-theme .ztc-upload-hint-text {
    color: rgba(255,255,255,.45);
}

/* ========== 弹窗内TinyMCE编辑器适配 ========== */
.ztc-editor-wrap .mce-tinymce {
    border-radius: 8px;
    border-color: var(--main-border-color);
    overflow: hidden;
}
.ztc-editor-wrap .mce-panel {
    background: var(--main-bg-color);
    border-color: var(--main-border-color);
}
.ztc-editor-wrap .mce-btn {
    background: transparent;
    border-color: transparent;
}
.ztc-editor-wrap .mce-btn:hover {
    background: var(--muted-bg-color);
    border-color: var(--main-border-color);
}
.ztc-editor-wrap .mce-toolbar-grp {
    background: var(--main-bg-color);
    border-bottom: 1px solid var(--main-border-color);
}
.ztc-editor-wrap .mce-statusbar {
    display: none;
}
.ztc-editor-wrap .mce-edit-area {
    background: var(--main-bg-color);
}
.ztc-editor-wrap .mce-edit-area iframe {
    background: var(--main-bg-color);
}

/* ========== 付费区域解锁权益紧凑模块 ========== */

/* 用户中心任务tab内容重置样式 - 修复黑色圆点错位 */
.user-center-content [class*="zb-"],
.user-center-content [class*="ztc-"],
.user-center-content .zib-widget,
.user-center-content .row,
.user-center-content .col-sm-4,
.user-center-content .flex,
.user-center-content .zb-filter-bar,
.user-center-content .zb-task-grid,
.user-center-content .ztc-earnings-wrap,
.user-center-content .ztc-my-tasks-wrap {
    list-style: none !important;
}
.user-center-content .zib-widget,
.user-center-content .box-body {
    margin: 0;
    padding: 0;
}
.user-center-content select,
.user-center-content input {
    display: inline-block;
    vertical-align: middle;
}

.ztc-pay-unlock-btn {
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
}
.ztc-pay-unlock-btn.jb-blue {
    background: var(--theme-color, #1677ff);
    border-color: var(--theme-color, #1677ff);
}
.ztc-pay-unlock-btn.jb-blue:hover {
    background: linear-gradient(135deg, var(--theme-color, #1677ff) 0%, #096dd9 100%);
    border-color: var(--theme-color, #1677ff);
}

/* 蓝色任务解锁按钮 - 与购买按钮同尺寸 */
.ztc-pay-unlock-blue {
    background: var(--theme-color, #1677ff) !important;
    border: 1px solid var(--theme-color, #1677ff) !important;
    color: #fff !important;
    height: 36px !important;
    line-height: 34px !important;
    padding: 0 16px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: normal !important;
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    transition: all .2s ease !important;
}
.ztc-pay-unlock-blue:hover {
    background: var(--theme-color, #1677ff) !important;
    border-color: var(--theme-color, #1677ff) !important;
    color: #fff !important;
    opacity: .85;
}
.ztc-pay-unlock-blue img {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    display: inline-block;
    filter: brightness(0) invert(1);
}

/* 解锁说明文字 */
.ztc-pay-unlock-tip {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(114,46,209,.08) 0%, rgba(146,84,222,.08) 100%);
    border: 1px solid rgba(114,46,209,.2);
    border-radius: 6px;
    font-size: 13px;
    color: #722ed1;
    display: flex;
    align-items: center;
}
.ztc-pay-unlock-tip i {
    color: #722ed1;
    font-size: 14px;
}

/* 暗黑模式适配 */
body.dark-theme .ztc-pay-unlock-blue {
    background: var(--theme-color, #1677ff) !important;
    border-color: var(--theme-color, #1677ff) !important;
    color: #fff !important;
}
body.dark-theme .ztc-pay-unlock-blue:hover {
    background: var(--theme-color, #1677ff) !important;
    opacity: .85;
}
body.dark-theme .ztc-pay-unlock-tip {
    background: rgba(114,46,209,.15);
    border-color: rgba(146,84,222,.3);
    color: #b37feb;
}
body.dark-theme .ztc-pay-unlock-tip i {
    color: #b37feb;
}

/* 已解锁盒子标识 */
.ztc-unlocked-box {
    border: 1px solid rgba(22,119,255,.3) !important;
    position: relative;
}
.ztc-unlock-badge-inline {
    line-height: 1.4;
}

.ztc-unlock-mini {
    margin: 10px 0;
    padding: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(22,119,255,.06) 0%, rgba(99,102,241,.06) 100%);
    border: 1px solid rgba(22,119,255,.15);
    overflow: hidden;
    transition: all .3s ease;
}
.ztc-unlock-mini:hover {
    box-shadow: 0 4px 12px rgba(22,119,255,.1);
    border-color: rgba(22,119,255,.25);
}
.ztc-unlock-mini-inner {
    padding: 12px 16px;
}
.ztc-unlock-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ztc-unlock-mini-title {
    font-weight: 600;
    color: var(--main-color, #333);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.ztc-unlock-mini-title i {
    color: var(--theme-color, #4096ff);
    font-size: 16px;
}
.ztc-unlock-mini-icon {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}
.ztc-unlock-mini-quota {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(22,119,255,.15);
    color: var(--theme-color, #1677ff);
    font-size: 12px;
    font-weight: 600;
    gap: 4px;
    transition: all .2s;
}
.ztc-unlock-mini-quota:hover {
    background: rgba(22,119,255,.25);
}
.ztc-unlock-mini-body {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ztc-unlock-mini-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .25s ease;
    gap: 4px;
    white-space: nowrap;
}
.ztc-unlock-mini-go {
    background: var(--theme-color, #1677ff);
    color: #fff;
    border-color: var(--theme-color, #1677ff);
}
.ztc-unlock-mini-go:hover {
    background: linear-gradient(135deg, var(--theme-color, #1677ff) 0%, #096dd9 100%);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22,119,255,.3);
}
.ztc-unlock-mini-go:active {
    transform: translateY(0);
}
.ztc-unlock-mini-use {
    background: rgba(22,119,255,.1);
    color: var(--theme-color, #1677ff);
    border-color: rgba(22,119,255,.3);
}
.ztc-unlock-mini-use:hover {
    background: var(--theme-color, #1677ff);
    color: #fff;
    border-color: var(--theme-color, #1677ff);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(22,119,255,.3);
}
.ztc-unlock-mini-use:active {
    transform: translateY(0);
}
.ztc-unlock-mini-use:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}

/* 已解锁状态 */
.ztc-unlock-mini-done {
    background: linear-gradient(135deg, rgba(22,119,255,.06) 0%, rgba(99,102,241,.06) 100%);
    border-color: rgba(22,119,255,.2);
}
.ztc-unlock-mini-done .ztc-unlock-mini-title i {
    color: var(--theme-color, #1677ff);
}
.ztc-unlock-mini-done .ztc-unlock-mini-quota {
    background: rgba(22,119,255,.15);
    color: var(--theme-color, #1677ff);
}

/* 暗黑模式适配 */
body.dark-theme .ztc-unlock-mini {
    background: linear-gradient(135deg, rgba(22,119,255,.08) 0%, rgba(99,102,241,.08) 100%);
    border-color: rgba(22,119,255,.2);
}
body.dark-theme .ztc-unlock-mini-quota {
    background: rgba(64,150,255,.2);
    color: var(--theme-color, #4096ff);
}
body.dark-theme .ztc-unlock-mini-use {
    background: rgba(22,119,255,.15);
    border-color: rgba(22,119,255,.35);
}
body.dark-theme .ztc-unlock-mini-done {
    background: linear-gradient(135deg, rgba(22,119,255,.08) 0%, rgba(99,102,241,.08) 100%);
    border-color: rgba(22,119,255,.25);
}
/* 确保编辑器下拉菜单不受弹窗overflow限制 */
.ztc-modal-body .mce-floatpanel {
    z-index: 10002 !important;
}
/* 确保子比主题媒体选择器在任务弹窗之上 */
body .mini-media-modal {
    z-index: 10003 !important;
}
body .mini-media-modal .modal-dialog {
    z-index: 10004 !important;
}
/* 暗色主题编辑器适配 */
body.dark-theme .ztc-editor-wrap .mce-tinymce {
    border-color: rgba(255,255,255,.12);
}
body.dark-theme .ztc-editor-wrap .mce-panel {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
}
body.dark-theme .ztc-editor-wrap .mce-btn {
    color: var(--main-text-color);
}
body.dark-theme .ztc-editor-wrap .mce-btn:hover {
    background: rgba(255,255,255,.08);
}
body.dark-theme .ztc-editor-wrap .mce-toolbar-grp {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.12);
}
body.dark-theme .ztc-editor-wrap .mce-ico {
    color: var(--main-text-color);
}

/* ========== 用户中心 Tab 专用样式 ========== */
.ztc-uc-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
.ztc-uc-stat {
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: var(--main-radius, 8px);
    padding: 16px 12px;
    text-align: center;
    transition: all .2s ease;
}
.ztc-uc-stat:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
.ztc-uc-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--main-color, #333);
    line-height: 1.2;
    margin-bottom: 4px;
}
.ztc-uc-stat-label {
    font-size: 12px;
    color: var(--muted-2-color, #999);
}
.ztc-uc-stat-blue .ztc-uc-stat-num   { color: var(--theme-color, #1677ff); }
.ztc-uc-stat-green .ztc-uc-stat-num  { color: #52c41a; }
.ztc-uc-stat-orange .ztc-uc-stat-num { color: #fa8c16; }
.ztc-uc-stat-red .ztc-uc-stat-num    { color: #ff4d4f; }
.ztc-uc-stat-gray .ztc-uc-stat-num   { color: var(--muted-2-color, #999); }

/* 迷你统计（我的任务内用） */
.ztc-uc-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}
.ztc-uc-mini-stat {
    background: var(--main-bg-color, #ffffff);
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    transition: all .2s ease;
}
.ztc-uc-mini-stat:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ztc-uc-mini-num {
    font-size: 20px;
    font-weight: 700;
    color: var(--main-color, #333333);
    line-height: 1.2;
    margin-bottom: 4px;
}
.ztc-uc-mini-label {
    font-size: 12px;
    color: var(--muted-2-color, #999999);
}
.ztc-uc-mini-blue .ztc-uc-mini-num   { color: var(--theme-color, #1677ff); }
.ztc-uc-mini-green .ztc-uc-mini-num  { color: #52c41a; }
.ztc-uc-mini-orange .ztc-uc-mini-num { color: #fa8c16; }
.ztc-uc-mini-red .ztc-uc-mini-num    { color: #ff4d4f; }
.ztc-uc-mini-gray .ztc-uc-mini-num   { color: var(--muted-2-color, #999999); }

/* 区块标题 */
.ztc-uc-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--main-border-color, #e8e8e8);
}
.ztc-uc-section-header.ztc-uc-no-border {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 8px;
}
.ztc-uc-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--main-color, #333);
}
.ztc-uc-more {
    font-size: 12px;
    color: var(--theme-color, #1677ff);
    text-decoration: none;
}
.ztc-uc-more:hover { opacity: .8; }

/* Tab切换 */
.ztc-uc-tabs {
    display: flex;
    gap: 4px;
    background: var(--muted-bg-color, #f5f5f5);
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 18px;
}
.ztc-uc-tabs-small { padding: 2px; margin-bottom: 14px; }
.ztc-uc-tab {
    flex: 1;
    text-align: center;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted-2-color, #999999);
    border-radius: 6px;
    cursor: pointer;
    transition: all .2s ease;
    border: none;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
}
.ztc-uc-tabs-small .ztc-uc-tab {
    padding: 7px 12px;
    font-size: 12px;
}
.ztc-uc-tab:hover {
    color: var(--main-color, #333333);
    background: rgba(0,0,0,.03);
}
.ztc-uc-tab.active {
    background: var(--main-bg-color, #ffffff);
    color: var(--theme-color, #1677ff);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

/* 任务列表 */
.ztc-uc-task-list {
    background: var(--main-bg-color, #ffffff);
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: var(--main-radius, 8px);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.ztc-uc-task-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--main-border-color, #f0f0f0);
    transition: all .15s ease;
    text-decoration: none;
    color: inherit;
}
.ztc-uc-task-item:last-child { border-bottom: none; }
.ztc-uc-task-item:hover { 
    background: var(--muted-bg-color, #fafafa); 
    padding-left: 20px;
}
.ztc-uc-task-main { flex: 1; min-width: 0; }
.ztc-uc-task-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ztc-uc-task-title-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color, #333333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.ztc-uc-task-title-text:hover { color: var(--theme-color, #1677ff); }
.ztc-uc-task-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--muted-2-color, #999999);
    flex-wrap: wrap;
}
.ztc-uc-task-cat {
    background: var(--muted-bg-color, #f5f5f5);
    padding: 2px 8px;
    border-radius: 4px;
}
.ztc-uc-task-reward {
    font-size: 16px;
    font-weight: 700;
    color: #ff4d4f;
    flex-shrink: 0;
}
.ztc-uc-task-reward-small {
    color: #ff4d4f;
    font-weight: 600;
}
.ztc-uc-task-action { flex-shrink: 0; }

/* 按钮 */
.ztc-uc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    height: 28px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}
.ztc-uc-btn-sm { height: 26px; padding: 0 10px; font-size: 12px; }
.ztc-uc-btn-primary {
    background: var(--theme-color, #1677ff);
    color: #fff;
    border-color: var(--theme-color, #1677ff);
}
.ztc-uc-btn-primary:hover { opacity: .85; color: #fff; }
.ztc-uc-btn-outline {
    background: transparent;
    color: var(--theme-color, #1677ff);
    border-color: var(--theme-color, #1677ff);
}
.ztc-uc-btn-outline:hover {
    background: rgba(22,119,255,.08);
}

/* 状态标签 */
.ztc-uc-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 10px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: 600;
    min-width: 56px;
}
.ztc-uc-status-success {
    color: #52c41a;
    background: rgba(82,196,26,.12);
}
.ztc-uc-status-warning {
    color: #fa8c16;
    background: rgba(250,140,22,.12);
}
.ztc-uc-status-error {
    color: #ff4d4f;
    background: rgba(255,77,79,.12);
}
.ztc-uc-status-info {
    color: #1677ff;
    background: rgba(22,119,255,.12);
}

/* 收益列表 */
.ztc-uc-earnings-list {
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: var(--main-radius, 8px);
    overflow: hidden;
}
.ztc-uc-earning-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--main-border-color, #e8e8e8);
    transition: background .15s ease;
}
.ztc-uc-earning-item:last-child { border-bottom: none; }
.ztc-uc-earning-item:hover { background: var(--muted-bg-color, #f5f5f5); }
.ztc-uc-earning-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.ztc-uc-earn-green  { background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%); }
.ztc-uc-earn-blue   { background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%); }
.ztc-uc-earn-purple { background: linear-gradient(135deg, #722ed1 0%, #531dab 100%); }
.ztc-uc-earning-main { flex: 1; min-width: 0; }
.ztc-uc-earning-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 10px;
}
.ztc-uc-earning-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--main-color, #333);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}
.ztc-uc-earning-title:hover { color: var(--theme-color, #1677ff); }
.ztc-uc-earning-amount {
    font-size: 15px;
    font-weight: 700;
    color: #52c41a;
    flex-shrink: 0;
}
.ztc-uc-earning-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted-2-color, #999);
}
.ztc-uc-earning-type {
    background: var(--muted-bg-color, #f5f5f5);
    padding: 2px 6px;
    border-radius: 4px;
}

/* 空状态 */
.ztc-uc-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--muted-2-color, #999);
    font-size: 13px;
}

/* 分页 */
.ztc-uc-pagination {
    margin-top: 20px;
    text-align: center;
}
.ztc-uc-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    font-size: 13px;
    color: var(--muted-2-color, #999);
    background: var(--main-bg-color, #fff);
    border: 1px solid var(--main-border-color, #e8e8e8);
    border-radius: 4px;
    text-decoration: none;
    transition: all .2s ease;
}
.ztc-uc-pagination .page-numbers:hover {
    color: var(--theme-color, #1677ff);
    border-color: var(--theme-color, #1677ff);
}
.ztc-uc-pagination .page-numbers.current {
    background: var(--theme-color, #1677ff);
    color: #fff;
    border-color: var(--theme-color, #1677ff);
}

/* 响应式 */
@media (max-width: 768px) {
    .ztc-uc-stats { grid-template-columns: repeat(2, 1fr); }
    .ztc-uc-mini-stats { grid-template-columns: repeat(2, 1fr); }
    .ztc-uc-tabs { flex-wrap: wrap; }
    .ztc-uc-tab { flex: 0 0 auto; min-width: 25%; }
    .ztc-uc-task-item { padding: 12px; }
    .ztc-uc-earning-item { padding: 12px; }
}

/* 暗黑模式 */
body.dark-theme .ztc-uc-stat,
body.dark-theme .ztc-uc-task-list,
body.dark-theme .ztc-uc-earnings-list {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
}
body.dark-theme .ztc-uc-mini-stat {
    background: rgba(255,255,255,.06);
}
body.dark-theme .ztc-uc-tabs {
    background: rgba(255,255,255,.06);
}
body.dark-theme .ztc-uc-tab.active {
    background: rgba(255,255,255,.08);
}
body.dark-theme .ztc-uc-section-header {
    border-bottom-color: rgba(255,255,255,.1);
}
body.dark-theme .ztc-uc-task-item,
body.dark-theme .ztc-uc-earning-item {
    border-bottom-color: rgba(255,255,255,.08);
}
body.dark-theme .ztc-uc-task-cat,
body.dark-theme .ztc-uc-earning-type {
    background: rgba(255,255,255,.06);
}
body.dark-theme .ztc-uc-pagination .page-numbers {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.1);
}

/* ========== 用户中心侧边栏按钮样式 ========== */
.user-icon-but-box item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: 8px;
    transition: all .2s ease;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.user-icon-but-box item:hover {
    background: rgba(22,119,255,.08);
    transform: translateY(-1px);
}
.user-icon-but-box item .em16 {
    font-size: 20px;
    line-height: 1;
    margin-bottom: 6px;
    color: var(--theme-color, #1677ff);
}
.user-icon-but-box item .em16 img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}
.user-icon-but-box item .px12 {
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.user-icon-but-box item.active {
    background: rgba(22,119,255,.12);
}
.user-icon-but-box item.active .px12 {
    color: var(--theme-color, #1677ff);
    font-weight: 600;
}

/* 暗黑模式侧边栏 */
body.dark-theme .user-icon-but-box item:hover {
    background: rgba(255,255,255,.08);
}
body.dark-theme .user-icon-but-box item.active {
    background: rgba(255,255,255,.1);
}

/* ========== 用户中心内容区基础样式 ========== */
.author-user-con .ztc-user-center,
.author-user-con .ztc-uc-stats,
.author-user-con .ztc-uc-mini-stats,
.author-user-con .ztc-uc-section-header,
.author-user-con .ztc-uc-tabs,
.author-user-con .ztc-uc-task-list,
.author-user-con .ztc-uc-earnings-list,
.author-user-con .ztc-uc-empty,
.author-user-con .ztc-uc-pagination {
    margin-left: 0;
    margin-right: 0;
}
.author-user-con .ztc-uc-task-item,
.author-user-con .ztc-uc-earning-item {
    text-decoration: none;
}

/* 确保用户中心active状态的内容正确显示 */
#user-tab-ztctaskcenter.active,
#user-tab-ztcmytasks.active,
#user-tab-ztcpublish.active,
#user-tab-ztcearnings.active {
    display: block !important;
}

/* 兼容不同主题版本的tab-pane激活状态 */
#user-tab-ztctaskcenter.active.in,
#user-tab-ztcmytasks.active.in,
#user-tab-ztcpublish.active.in,
#user-tab-ztcearnings.active.in {
    display: block !important;
}

/* ZTC强制显示tab-pane（JS动态切换时的保险机制）
   解决子比主题原生tab切换对自定义tab兼容性不佳的问题 */
.ztc-tab-pane.ztc-force-show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* 隐藏非当前ztc tab-pane，避免内容堆叠 */
.ztc-tab-pane:not(.ztc-force-show) {
    display: none !important;
}

/* 修复用户中心内容区的内边距 */
.author-user-con > .ztc-user-center {
    padding: 10px 0;
}
