/* 工单记录 / 详情：暗色站风格，对齐旧 web 能力 */
.hg-profile-tickets .hg-tickets-state,
.hg-profile-ticket-detail .hg-tickets-state{padding:48px 16px;text-align:center;color:rgba(255,255,255,.55);font-size:14px}
.hg-profile-tickets .hg-tickets-state[hidden],
.hg-profile-tickets .hg-empty[hidden],
.hg-profile-tickets .hg-tickets-list[hidden],
.hg-profile-tickets .hg-tickets-more[hidden],
.hg-profile-ticket-detail .hg-tickets-state[hidden],
.hg-profile-ticket-detail .hg-ticket-detail-card[hidden],
.hg-profile-ticket-detail .hg-ticket-composer[hidden],
.hg-profile-ticket-detail .hg-ticket-closed-tip[hidden]{display:none!important}

.hg-tickets-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}
.hg-tickets-create-btn{
  min-height:36px;padding:0 16px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(90deg,#ffd21c 0%,#ffb400 100%);color:#111;font-size:13px;font-weight:700
}
.hg-tickets-create-btn:hover{filter:brightness(1.05)}

.hg-tickets-list{display:flex;flex-direction:column;gap:0;margin-top:4px}
.hg-ticket-item{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 4px;border-bottom:1px solid rgba(255,255,255,.08);text-decoration:none;color:inherit
}
.hg-ticket-item:hover{background:rgba(255,255,255,.03)}
.hg-ticket-item__title{margin:0;font-size:15px;font-weight:600;color:#fff}
.hg-ticket-item__meta{margin:6px 0 0;display:flex;flex-wrap:wrap;gap:10px;font-size:12px;color:rgba(255,255,255,.45)}
.hg-ticket-status{flex-shrink:0;font-size:13px;font-weight:600}
.hg-ticket-status.is-pending{color:#ffb400}
.hg-ticket-status.is-replied{color:#3dd68c}
.hg-ticket-status.is-closed{color:rgba(255,255,255,.4)}

.hg-tickets-more{
  display:block;width:100%;max-width:280px;margin:20px auto 8px;min-height:40px;border-radius:999px;
  border:1px solid rgba(255,255,255,.14);background:#1a1a1a;color:#fff;font-size:14px;cursor:pointer
}
.hg-tickets-more:hover{border-color:rgba(255,210,28,.4)}

/* 新建弹窗 */
.hg-ticket-modal{position:fixed;inset:0;z-index:10060;display:flex;align-items:center;justify-content:center;padding:20px}
.hg-ticket-modal[hidden]{display:none!important}
.hg-ticket-modal__mask{position:absolute;inset:0;background:rgba(0,0,0,.72)}
.hg-ticket-modal__panel{
  position:relative;z-index:1;width:min(520px,100%);max-height:90vh;overflow:auto;
  padding:20px 20px 16px;border-radius:16px;background:#1a1a1a;border:1px solid rgba(255,255,255,.1);
  box-shadow:0 16px 48px rgba(0,0,0,.45)
}
.hg-ticket-modal__head{display:flex;align-items:center;justify-content:space-between}
.hg-ticket-modal__title{margin:0;font-size:18px;font-weight:700;color:#fff}
.hg-ticket-modal__close{
  width:32px;height:32px;border:0;border-radius:50%;background:rgba(255,255,255,.08);color:#fff;font-size:22px;line-height:1;cursor:pointer
}
.hg-ticket-modal__hint{margin:8px 0 16px;font-size:12px;line-height:1.5;color:rgba(255,255,255,.5)}
.hg-ticket-field{margin-bottom:14px}
.hg-ticket-label,.hg-ticket-label-row .hg-ticket-label{font-size:13px;font-weight:600;color:#fff}
.hg-ticket-label-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.hg-ticket-count{font-size:11px;color:rgba(255,255,255,.4)}
.hg-ticket-cats{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hg-ticket-cat{
  min-height:32px;padding:0 12px;border-radius:999px;border:1px solid rgba(255,210,28,.28);
  background:rgba(255,210,28,.08);color:rgba(255,255,255,.75);font-size:12px;cursor:pointer
}
.hg-ticket-cat.is-active{
  background:linear-gradient(90deg,#ffd21c 0%,#ffb400 100%);border-color:transparent;color:#111;font-weight:700
}
.hg-ticket-input,.hg-ticket-textarea,.hg-ticket-composer-input{
  width:100%;box-sizing:border-box;border:1px solid rgba(255,255,255,.1);border-radius:12px;
  background:#111;padding:10px 12px;font-size:13px;color:#fff
}
.hg-ticket-input{height:40px}
.hg-ticket-textarea,.hg-ticket-composer-input{resize:none;line-height:1.5}
.hg-ticket-uploads{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.hg-ticket-thumb{position:relative;width:64px;height:64px;border-radius:10px;overflow:hidden}
.hg-ticket-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.hg-ticket-thumb-del{
  position:absolute;top:2px;right:2px;width:18px;height:18px;border:0;border-radius:50%;
  background:rgba(0,0,0,.55);color:#fff;font-size:12px;line-height:1;cursor:pointer
}
.hg-ticket-upload-btn{
  min-width:88px;height:64px;padding:0 10px;border-radius:10px;border:1px dashed rgba(255,210,28,.45);
  background:rgba(255,210,28,.06);color:#ffd21c;font-size:12px;cursor:pointer
}
.hg-ticket-upload-tip{margin:6px 0 0;font-size:11px;color:rgba(255,255,255,.4)}
.hg-ticket-actions{display:flex;gap:10px;margin-top:8px}
.hg-ticket-btn{
  flex:1;height:40px;border:0;border-radius:999px;font-size:14px;font-weight:600;cursor:pointer
}
.hg-ticket-btn.is-cancel{background:#2a2a2a;color:rgba(255,255,255,.75)}
.hg-ticket-btn.is-submit{background:linear-gradient(90deg,#ffd21c 0%,#ffb400 100%);color:#111}
.hg-ticket-btn:disabled{opacity:.6;cursor:not-allowed}

/* 详情 */
.hg-ticket-detail-card,.hg-ticket-composer{
  padding:16px;border-radius:16px;background:#1a1a1a;border:1px solid rgba(255,255,255,.08)
}
.hg-ticket-composer{margin-top:12px}
.hg-ticket-detail-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.hg-ticket-detail-title{margin:0;font-size:18px;font-weight:700;color:#fff}
.hg-ticket-detail-meta{margin:8px 0 0;font-size:12px;color:rgba(255,255,255,.45)}
.hg-ticket-thread{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.hg-ticket-msg{padding:12px;border-radius:12px}
.hg-ticket-msg.is-mine{background:#141414}
.hg-ticket-msg.is-official{background:rgba(255,210,28,.08)}
.hg-ticket-msg-meta{margin:0;font-size:12px;font-weight:700;color:#ffd21c}
.hg-ticket-msg.is-mine .hg-ticket-msg-meta{color:rgba(255,255,255,.45)}
.hg-ticket-msg-content{
  margin:8px 0 0;font-size:14px;line-height:1.6;color:rgba(255,255,255,.82);
  white-space:pre-wrap;word-break:break-word
}
.hg-ticket-detail-images{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hg-ticket-detail-images img{width:88px;height:88px;object-fit:cover;border-radius:10px;display:block}
.hg-ticket-composer-count{margin-top:6px;text-align:right;font-size:11px;color:rgba(255,255,255,.4)}
.hg-ticket-send-btn{
  width:100%;height:40px;margin-top:12px;border:0;border-radius:999px;cursor:pointer;
  background:linear-gradient(90deg,#ffd21c 0%,#ffb400 100%);color:#111;font-size:14px;font-weight:700
}
.hg-ticket-send-btn:disabled{opacity:.6;cursor:not-allowed}
.hg-ticket-closed-tip{margin:16px 0 0;text-align:center;font-size:13px;color:rgba(255,255,255,.45)}
