/**
 * RIPRO 工单 / 站内信样式
 * 设计基调：沿用主题蓝白体系，细描边、克制留白、靠排版层级建立秩序。
 */

/* ==========================================================================
   1. 文章页：失效提交做成下载按钮右上角的小角标
   ========================================================================== */
.widget-pay .pay-box .pan-btn-group {
    position: relative;
    margin-bottom: 14px;
}

/* 半悬在下载按钮右上角（贴纸式）：不占按钮内部、不压按钮文字 */
.widget-pay .pay-box .pan-ticket-btn {
    position: absolute;
    top: -9px;
    right: 6px;
    z-index: 2;
    margin: 0;
    padding: 2px 9px;
    font-size: 11px;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    text-decoration: none;
    background: #ff8438;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(232, 116, 42, .38);
    cursor: pointer;
    -webkit-transition: all .18s ease;
    transition: all .18s ease;
}

.widget-pay .pay-box .pan-ticket-btn .fa {
    margin-right: 3px;
    font-size: 10px;
}

.widget-pay .pay-box .pan-ticket-btn:hover,
.widget-pay .pay-box .pan-ticket-btn:focus {
    color: #fff;
    background: #ef6a1d;
    border-color: rgba(255, 255, 255, .6);
    outline: none;
}

/* 弹窗内的表单 */
.cao-ticket-swal {
    text-align: left;
}

.cao-ticket-swal__target {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 13px;
    color: #5a6672;
    background: #f6f9fd;
    border: 1px solid #e8eef6;
    border-radius: 6px;
}

.cao-ticket-swal__target strong {
    color: #2c7be5;
    font-weight: 600;
}

.cao-ticket-swal textarea {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #3d4852;
    background: #fff;
    border: 1px solid #dde3ea;
    border-radius: 6px;
    resize: vertical;
    box-sizing: border-box;
}

.cao-ticket-swal textarea:focus {
    outline: none;
    border-color: #9ec2ef;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, .08);
}

.cao-ticket-swal__hint {
    margin: 9px 0 0;
    font-size: 12px;
    color: #98a2ad;
}

/* ==========================================================================
   2. 用户中心：导航徽章
   ========================================================================== */
.cao-nav-badge {
    display: inline-block;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    line-height: 17px;
    color: #fff;
    text-align: center;
    background: #e6655f;
    border-radius: 9px;
    vertical-align: 1px;
}

/* ==========================================================================
   3. 用户中心：工单 / 消息通用容器
   ========================================================================== */
.cao-ticket-box .form_title_area {
    padding-bottom: 15px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 20px;
}

.cao-ticket-box .form_title_area small {
    display: block;
    margin-top: 5px;
    color: #98a2ad;
}

/* --- 新建表单 --- */
.cao-ticket-form {
    position: relative;
    margin-bottom: 28px;
    padding: 20px 22px 18px;
    background: #fbfcfe;
    border: 1px solid #e9eef5;
    border-radius: 8px;
}

.cao-ticket-form__title {
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: #3d4852;
}

.cao-ticket-form__title .fa {
    margin-right: 6px;
    color: #2c7be5;
}

.cao-ticket-form label {
    font-size: 13px;
    font-weight: 500;
    color: #5a6672;
    margin-bottom: 7px;
}

.cao-ticket-optional {
    font-size: 11px;
    font-weight: 400;
    color: #a6aeb8;
}

.cao-ticket-required {
    color: #e6655f;
}

.cao-ticket-form .form-control {
    border-color: #dfe5ec;
    border-radius: 6px;
    box-shadow: none;
    font-size: 13px;
}

.cao-ticket-form .form-control:focus {
    border-color: #9ec2ef;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, .08);
}

.cao-ticket-form textarea.form-control {
    line-height: 1.7;
    resize: vertical;
}

.cao-ticket-form__foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cao-ticket-form__foot .btn-primary {
    padding: 8px 18px;
    font-size: 13px;
    border-radius: 6px;
}

.cao-ticket-form__tip {
    font-size: 12px;
    color: #a6aeb8;
}

/* --- 列表 --- */
.cao-ticket-list {
    border-top: 1px solid #eef1f5;
}

.cao-ticket-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 4px;
    border-bottom: 1px solid #f0f2f6;
    color: inherit;
    text-decoration: none;
    -webkit-transition: background .16s ease;
    transition: background .16s ease;
}

.cao-ticket-item:hover,
.cao-ticket-item:focus {
    background: #fafbfd;
    text-decoration: none;
}

.cao-ticket-item__main {
    flex: 1 1 auto;
    min-width: 0;
}

.cao-ticket-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #3d4852;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cao-ticket-item__sub {
    margin-top: 5px;
    font-size: 12px;
    color: #98a2ad;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cao-ticket-tag {
    display: inline-block;
    margin-right: 7px;
    padding: 1px 7px;
    font-size: 11px;
    color: #2c7be5;
    background: #f0f6ff;
    border: 1px solid #dce9fa;
    border-radius: 3px;
}

.cao-ticket-item__side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cao-ticket-item__side time {
    font-size: 12px;
    color: #a6aeb8;
}

.cao-ticket-item__side .fa {
    font-size: 16px;
    color: #c3cbd4;
}

.cao-ticket-status {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.6;
    border-radius: 3px;
    white-space: nowrap;
}

.cao-ticket-status.status-0 {
    color: #d98324;
    background: #fdf6ec;
    border: 1px solid #f5e2c4;
}

.cao-ticket-status.status-1 {
    color: #2e9e5b;
    background: #f0faf3;
    border: 1px solid #ccebd7;
}

.cao-ticket-status.status-2 {
    color: #98a2ad;
    background: #f5f6f8;
    border: 1px solid #e4e7eb;
}

.cao-ticket-pager {
    margin-top: 18px;
    text-align: center;
}

.cao-ticket-pager .page-numbers {
    display: inline-block;
    min-width: 30px;
    padding: 5px 9px;
    margin: 0 2px;
    font-size: 12px;
    color: #5a6672;
    border: 1px solid #e4e9ef;
    border-radius: 4px;
    text-decoration: none;
}

.cao-ticket-pager .page-numbers.current,
.cao-ticket-pager .page-numbers:hover {
    color: #fff;
    background: #2c7be5;
    border-color: #2c7be5;
}

.cao-ticket-empty {
    padding: 50px 20px;
    text-align: center;
    color: #a6aeb8;
}

.cao-ticket-empty .fa {
    font-size: 34px;
    color: #d6dde5;
}

.cao-ticket-empty p {
    margin: 14px 0 5px;
    font-size: 14px;
    color: #7b8794;
}

.cao-ticket-empty small {
    font-size: 12px;
}

/* --- 详情 --- */
.cao-ticket-detail__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.cao-ticket-detail__head h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    color: #3d4852;
    line-height: 1.5;
}

.cao-ticket-meta {
    margin: 0 0 20px;
    padding: 14px 16px;
    list-style: none;
    background: #fbfcfe;
    border: 1px solid #eef1f5;
    border-radius: 6px;
}

.cao-ticket-meta li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
}

.cao-ticket-meta li span {
    flex: 0 0 68px;
    color: #98a2ad;
}

.cao-ticket-meta li strong {
    font-weight: 500;
    color: #5a6672;
    word-break: break-all;
}

.cao-ticket-block {
    margin-bottom: 18px;
}

.cao-ticket-block__title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #5a6672;
}

.cao-ticket-block__body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.85;
    color: #4a5561;
    white-space: pre-wrap;
    background: #fff;
    border: 1px solid #e9eef5;
    border-radius: 6px;
}

.cao-ticket-reply {
    padding: 16px 18px;
    background: #f6fbf8;
    border: 1px solid #d8efe1;
    border-left: 3px solid #48a875;
    border-radius: 6px;
}

.cao-ticket-reply__title {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #2e9e5b;
}

.cao-ticket-reply__title .fa {
    margin-right: 5px;
}

.cao-ticket-reply__title small {
    margin-left: 8px;
    font-size: 11px;
    font-weight: 400;
    color: #94b5a4;
}

.cao-ticket-reply__body {
    font-size: 13px;
    line-height: 1.85;
    color: #4a5561;
    white-space: pre-wrap;
}

.cao-ticket-reply__link {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 12px;
    color: #8a96a3;
    border-top: 1px solid #e1efe7;
    word-break: break-all;
}

.cao-ticket-reply__link a {
    color: #2c7be5;
    text-decoration: none;
}

.cao-ticket-pending {
    padding: 14px 16px;
    font-size: 13px;
    color: #98a2ad;
    background: #fafbfc;
    border: 1px dashed #e4e9ef;
    border-radius: 6px;
}

.cao-ticket-pending .fa {
    margin-right: 6px;
    color: #d98324;
}

/* ==========================================================================
   4. 用户中心：站内消息
   ========================================================================== */
.cao-msg-list {
    border-top: 1px solid #eef1f5;
}

.cao-msg-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px 14px 16px 18px;
    border-bottom: 1px solid #f0f2f6;
    cursor: pointer;
    -webkit-transition: background .16s ease;
    transition: background .16s ease;
}

.cao-msg-item:hover {
    background: #fafbfd;
}

.cao-msg-item__dot {
    position: absolute;
    left: 7px;
    top: 22px;
    width: 6px;
    height: 6px;
    background: transparent;
    border-radius: 50%;
}

.cao-msg-item.is-unread {
    background: #f7faff;
}

.cao-msg-item.is-unread .cao-msg-item__dot {
    background: #2c7be5;
}

.cao-msg-item__main {
    flex: 1 1 auto;
    min-width: 0;
}

.cao-msg-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #3d4852;
    line-height: 1.5;
}

.cao-msg-item.is-unread .cao-msg-item__title {
    color: #2c7be5;
}

.cao-msg-unread {
    display: inline-block;
    margin-left: 8px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 500;
    line-height: 17px;
    color: #fff;
    background: #2c7be5;
    border-radius: 3px;
    vertical-align: 1px;
}

.cao-msg-item__body {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.75;
    color: #7b8794;
    word-break: break-word;
}

.cao-msg-item__foot {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #a6aeb8;
}

.cao-msg-item__foot a {
    color: #2c7be5;
    text-decoration: none;
}

/* ==========================================================================
   5. 后台回复弹窗
   ========================================================================== */
.cao-admin-reply {
    text-align: left;
}

.cao-admin-reply__subject {
    margin: 0 0 14px;
    padding: 9px 12px;
    font-size: 13px;
    color: #3d4852;
    background: #f4f7fb;
    border-left: 3px solid #2c7be5;
    border-radius: 3px;
}

.cao-admin-reply label {
    display: block;
    margin: 14px 0 6px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5561;
}

.cao-admin-reply textarea,
.cao-admin-reply input[type=text] {
    display: block;
    width: 100%;
    padding: 9px 11px;
    font-size: 13px;
    line-height: 1.6;
    color: #3d4852;
    background: #fff;
    border: 1px solid #d9e0e8;
    border-radius: 4px;
    box-sizing: border-box;
}

.cao-admin-reply textarea:focus,
.cao-admin-reply input[type=text]:focus {
    outline: none;
    border-color: #7fb0ee;
    box-shadow: 0 0 0 2px rgba(44, 123, 229, .1);
}

.cao-admin-reply__hint {
    font-weight: 400;
    color: #98a2ad;
}

.cao-admin-reply__check {
    display: flex !important;
    align-items: center;
    gap: 7px;
    font-weight: 400 !important;
    color: #7b8794;
}

.cao-admin-reply__check input {
    margin: 0;
}

/* 后台列表小样式 */
.cao-ticket-cell-desc {
    color: #98a2ad;
    font-size: 12px;
}

.cao-ticket-cell-muted {
    color: #b4bcc5;
}

.cao-ticket-cell-disk {
    display: inline-block;
    margin-top: 4px;
    padding: 1px 6px;
    font-size: 11px;
    color: #2c7be5;
    background: #f0f6ff;
    border-radius: 3px;
}

.cao-ticket-cell-url {
    display: block;
    margin-top: 3px;
    max-width: 260px;
    font-size: 11px;
    color: #a6aeb8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cao-ticket-st {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    line-height: 1.6;
    border-radius: 3px;
    white-space: nowrap;
}

.cao-ticket-st-wait {
    color: #d98324;
    background: #fdf6ec;
}

.cao-ticket-st-ok {
    color: #2e9e5b;
    background: #f0faf3;
}

.cao-ticket-st-off {
    color: #98a2ad;
    background: #f5f6f8;
}

/* ==========================================================================
   6. 深色模式适配
   ========================================================================== */
.zgwsnet-dark .cao-ticket-form {
    background: #232425;
    border-color: #333438;
}

.zgwsnet-dark .cao-ticket-form__title,
.zgwsnet-dark .cao-ticket-item__title,
.zgwsnet-dark .cao-ticket-detail__head h4,
.zgwsnet-dark .cao-msg-item__title {
    color: #d5d8dc;
}

.zgwsnet-dark .cao-ticket-form label,
.zgwsnet-dark .cao-ticket-block__title,
.zgwsnet-dark .cao-ticket-meta li strong,
.zgwsnet-dark .cao-ticket-block__body,
.zgwsnet-dark .cao-ticket-reply__body,
.zgwsnet-dark .cao-msg-item__body {
    color: #a8adb4;
}

.zgwsnet-dark .cao-ticket-form .form-control {
    color: #d5d8dc;
    background: #2b2c2e;
    border-color: #3f4146;
}

.zgwsnet-dark .cao-ticket-item,
.zgwsnet-dark .cao-msg-item,
.zgwsnet-dark .cao-ticket-box .form_title_area,
.zgwsnet-dark .cao-ticket-list {
    border-color: #333438;
}

.zgwsnet-dark .cao-ticket-meta,
.zgwsnet-dark .cao-ticket-block__body {
    background: #232425;
    border-color: #333438;
}

.zgwsnet-dark .cao-ticket-reply {
    background: #1e2a24;
    border-color: #2f4a3b;
    border-left-color: #48a875;
}

.zgwsnet-dark .cao-ticket-reply__body {
    color: #a8c8b6;
}

.zgwsnet-dark .cao-ticket-swal__target {
    color: #a8adb4;
    background: #2b2c2e;
    border-color: #3f4146;
}

.zgwsnet-dark .cao-ticket-swal textarea {
    color: #d5d8dc;
    background: #2b2c2e;
    border-color: #3f4146;
}

/* ==========================================================================
   7. 我的工单页（v40：参照 ripro-v5 会员中心工单页）
   ========================================================================== */
.uct-box {
    padding: 22px 26px 26px;
}

.uct-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid #eef1f5;
    margin-bottom: 20px;
}

.uct-head__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #3d4852;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uct-back {
    font-size: 12px;
    font-weight: 500;
    color: #5a6672;
    background: #eef1f6;
    padding: 3px 10px;
    border-radius: 12px;
    text-decoration: none;
    transition: all .16s ease;
}

.uct-back:hover {
    color: #fff;
    background: #2c7be5;
    text-decoration: none;
}

.uct-back--dark {
    color: #fff;
    background: #3d4653;
}

.uct-back--dark:hover {
    color: #fff;
    background: #23272e;
}

/* --- 状态统计卡 --- */
.uct-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.uct-stat {
    display: block;
    padding: 18px 10px 14px;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all .18s ease;
}

.uct-stat strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.uct-stat span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #7b8794;
}

.uct-stat--blue  { background: rgba(44, 123, 229, .12); }
.uct-stat--blue strong  { color: #2c7be5; }
.uct-stat--green { background: rgba(26, 158, 91, .12); }
.uct-stat--green strong { color: #1a9e5b; }
.uct-stat--gray  { background: rgba(122, 134, 154, .13); }
.uct-stat--gray strong  { color: #6c7a8e; }
.uct-stat--sky   { background: rgba(74, 163, 240, .14); }
.uct-stat--sky strong   { color: #3e97e8; }

.uct-stat:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(30, 60, 120, .10);
}

.uct-stat.is-active {
    box-shadow: inset 0 0 0 2px currentColor;
}

.uct-stat.is-active span {
    color: #4a5561;
    font-weight: 600;
}

.uct-subhead {
    margin-bottom: 12px;
    font-size: 13px;
    color: #98a2ad;
}

/* --- 列表条目 --- */
.uct-list {
    border-top: 1px solid #f0f2f6;
}

.uct-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 6px;
    border-bottom: 1px solid #f0f2f6;
    color: inherit;
    text-decoration: none;
    transition: background .16s ease;
}

.uct-item:hover,
.uct-item:focus {
    background: #f8f9fc;
    text-decoration: none;
}

.uct-item__avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    overflow: hidden;
    border-radius: 50%;
}

.uct-item__avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: block;
}

.uct-item__main {
    flex: 1 1 auto;
    min-width: 0;
}

.uct-item__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.uct-item__title {
    font-size: 14px;
    font-weight: 600;
    color: #3d4852;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uct-item__date {
    flex: 0 0 auto;
    font-size: 12px;
    color: #a6aeb8;
    font-variant-numeric: tabular-nums;
}

.uct-item__badges {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.uct-badge {
    display: inline-block;
    padding: 1px 9px;
    font-size: 11px;
    line-height: 1.7;
    border-radius: 3px;
    white-space: nowrap;
}

.uct-badge--s0 { color: #e05a53; background: rgba(230, 101, 95, .10); }
.uct-badge--s1 { color: #1a9e5b; background: rgba(26, 158, 91, .10); }
.uct-badge--s2 { color: #5a6672; background: rgba(122, 134, 154, .14); }
.uct-badge--type { color: #7b8794; background: rgba(122, 134, 154, .10); }

.uct-item__arrow {
    flex: 0 0 auto;
    font-size: 18px;
    color: #c3cbd4;
}

/* --- 新建表单 --- */
.uct-form {
    max-width: 100%;
}

.uct-field {
    margin-bottom: 18px;
}

.uct-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5561;
}

.uct-optional {
    font-weight: 400;
    font-size: 11px;
    color: #a6aeb8;
}

.uct-required {
    color: #e6655f;
}

.uct-input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    font-size: 13px;
    color: #3d4852;
    background: #f5f7fa;
    border: 1px solid #f5f7fa;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.uct-input[disabled] {
    color: #7b8794;
    background: #eef1f6;
    cursor: not-allowed;
}

.uct-input:focus {
    outline: none;
    background: #fff;
    border-color: #9ec2ef;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, .08);
}

.uct-input--area {
    line-height: 1.8;
    resize: vertical;
}

.uct-field--foot {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.uct-tip {
    font-size: 12px;
    color: #a6aeb8;
}

/* --- 按钮 --- */
.uct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all .16s ease;
}

.uct-btn:hover {
    text-decoration: none;
}

.uct-btn--dark {
    color: #fff;
    background: #3d4653;
}

.uct-btn--dark:hover {
    color: #fff;
    background: #23272e;
}

.uct-btn--dark[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.uct-btn--danger {
    color: #e05a53;
    background: rgba(230, 101, 95, .10);
}

.uct-btn--danger:hover {
    color: #fff;
    background: #e05a53;
}

/* --- 详情 --- */
.uct-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 12px;
    color: #98a2ad;
}

.uct-meta__avatar {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    line-height: 30px;
    text-align: center;
    font-size: 18px;
    color: #6c7a8e;
    background: #eef1f6;
}

.uct-meta__avatar img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: block;
}

.uct-meta__who {
    color: #7b8794;
}

.uct-meta__chip a {
    color: #2c7be5;
    text-decoration: none;
}

.uct-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: #3d4852;
}

.uct-title .fa {
    margin-right: 8px;
    color: #2c7be5;
}

.uct-body {
    padding: 14px 16px;
    font-size: 13px;
    line-height: 1.85;
    color: #4a5561;
    border-radius: 6px;
    word-break: break-word;
}

.uct-body--user {
    background: rgba(74, 163, 240, .10);
    border: 1px solid rgba(74, 163, 240, .22);
}

.uct-body--admin {
    background: rgba(26, 158, 91, .10);
    border: 1px solid rgba(26, 158, 91, .22);
}

.uct-body__link {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px dashed rgba(122, 134, 154, .3);
    font-size: 12px;
    color: #8a96a3;
    word-break: break-all;
}

.uct-body__link a {
    color: #2c7be5;
    text-decoration: none;
}

.uct-pending {
    padding: 14px 16px;
    font-size: 13px;
    color: #98a2ad;
    background: #fafbfc;
    border: 1px dashed #e4e9ef;
    border-radius: 6px;
}

.uct-pending .fa {
    margin-right: 6px;
    color: #d98324;
}

.uct-foot {
    display: flex;
    justify-content: flex-end;
    margin-top: 22px;
}

.uct-none {
    padding: 44px 20px;
    text-align: center;
    color: #a6aeb8;
}

.uct-none .fa {
    font-size: 34px;
    color: #d6dde5;
}

.uct-none p {
    margin: 14px 0 5px;
    font-size: 14px;
    color: #7b8794;
}

.uct-none small {
    font-size: 12px;
}

/* --- 分页 --- */
.uct-pager {
    margin-top: 18px;
    text-align: center;
}

.uct-pager .page-numbers {
    display: inline-block;
    min-width: 30px;
    padding: 5px 9px;
    margin: 0 2px;
    font-size: 12px;
    color: #5a6672;
    border: 1px solid #e4e9ef;
    border-radius: 4px;
    text-decoration: none;
}

.uct-pager .page-numbers.current,
.uct-pager .page-numbers:hover {
    color: #fff;
    background: #2c7be5;
    border-color: #2c7be5;
}

/* --- 手机端 --- */
@media (max-width: 768px) {
    .uct-box {
        padding: 16px 14px 20px;
    }

    .uct-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .uct-stat {
        padding: 14px 8px 10px;
    }

    .uct-stat strong {
        font-size: 20px;
    }

    .uct-item {
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .uct-item__main {
        flex: 1 1 calc(100% - 48px);
    }

    .uct-item__row {
        flex-wrap: wrap;
        gap: 4px 10px;
    }

    .uct-item__title {
        white-space: normal;
    }

    .uct-item__arrow {
        display: none;
    }
}

/* --- 深色模式 --- */
.zgwsnet-dark .uct-head,
.zgwsnet-dark .uct-list,
.zgwsnet-dark .uct-item {
    border-color: #333438;
}

.zgwsnet-dark .uct-head__title,
.zgwsnet-dark .uct-item__title,
.zgwsnet-dark .uct-title {
    color: #d5d8dc;
}

.zgwsnet-dark .uct-stat.is-active span {
    color: #a8adb4;
}

.zgwsnet-dark .uct-body--user {
    background: rgba(74, 163, 240, .12);
    border-color: rgba(74, 163, 240, .25);
    color: #a8c4dc;
}

.zgwsnet-dark .uct-body--admin {
    background: rgba(26, 158, 91, .12);
    border-color: rgba(26, 158, 91, .25);
    color: #a8c8b6;
}

.zgwsnet-dark .uct-input {
    color: #d5d8dc;
    background: #2b2c2e;
    border-color: #3f4146;
}

.zgwsnet-dark .uct-input[disabled] {
    color: #8a96a3;
    background: #232425;
}

.zgwsnet-dark .uct-item:hover {
    background: #232425;
}

/* --- v40b：新建表单两列（创建人+工单类型）与下拉框 --- */
.uct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

.uct-input--select {
    height: 40px;
    padding: 0 34px 0 14px;
    line-height: 38px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%237b8794' stroke-width='1.6' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.uct-input--select:focus {
    line-height: 38px;
}

@media (max-width: 768px) {
    .uct-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
