/* HALOFLUX · 公告 / 文件 / 通讯录。所有新增选择器限定于 hf-content 命名空间。 */
.hf-content { min-width: 0; }
.hf-content-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; background: linear-gradient(115deg, rgba(94, 234, 212, .055), transparent 65%), var(--panel); }
.hf-content-hero h2 { font-size: 22px; font-weight: 600; letter-spacing: .03em; margin: 4px 0; }
.hf-content-hero p { color: var(--dim); font-size: 13.5px; }
.hf-content-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hf-content-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.hf-content-metric { min-width: 0; position: relative; overflow: hidden; padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: rgba(8, 12, 17, .66); }
.hf-content-metric::after { content: ''; position: absolute; right: -26px; bottom: -30px; width: 92px; height: 92px; pointer-events: none; background: radial-gradient(circle, var(--hf-glow, rgba(94, 234, 212, .13)), transparent 70%); }
.hf-content-metric > span { display: block; color: var(--dim); font-size: 13px; }
.hf-content-metric > b { display: block; font: 600 27px/1.3 var(--mono); color: var(--hf-accent, var(--cyan)); margin: 5px 0 3px; text-shadow: 0 0 18px var(--hf-glow, rgba(94, 234, 212, .2)); }
.hf-content-metric > small { display: block; color: var(--mute); font-size: 12px; line-height: 1.6; }
.hf-content-metric .prog { margin: 9px 0 4px; }
.hf-content-cyan { --hf-accent: var(--cyan); --hf-glow: rgba(94, 234, 212, .18); }
.hf-content-green { --hf-accent: var(--green); --hf-glow: rgba(52, 211, 153, .18); }
.hf-content-amber { --hf-accent: var(--amber); --hf-glow: rgba(251, 191, 36, .18); }
.hf-content-indigo { --hf-accent: var(--indigo); --hf-glow: rgba(129, 140, 248, .2); }
.hf-content-blue { --hf-accent: var(--blue); --hf-glow: rgba(96, 165, 250, .18); }
.hf-content-pink { --hf-accent: var(--pink); --hf-glow: rgba(244, 114, 182, .18); }
.hf-content-dim { --hf-accent: var(--dim); --hf-glow: rgba(139, 152, 169, .15); }
.hf-content-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.hf-content-toolbar > .inp { width: 150px; min-width: 0; }
.hf-content-toolbar > .hf-content-search { flex: 1 1 220px; min-width: 160px; }
.hf-content-toolbar .chk { white-space: nowrap; font-size: 13.5px; }
.hf-content-listhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; border-bottom: 1px solid var(--line); }
.hf-content-listhead h3 { font-size: 16px; font-weight: 600; word-break: break-word; }
.hf-content-listhead > .dim { flex: none; font-size: 12.5px; }
.hf-content-listhead .hf-content-note { margin: 3px 0 0; }
.hf-content-listhead .hf-content-note:empty { display: none; }
.hf-content-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.hf-content-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--dim); }
.hf-content-meta > span { display: inline-flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.hf-content-meta svg { width: 13px; height: 13px; }
.hf-content-note { margin-top: 12px; color: var(--dim); font-size: 12.5px; line-height: 1.8; overflow-wrap: anywhere; }
.hf-file-video { margin: 16px 0 4px; }
.hf-file-video video { display: block; width: 100%; max-height: 62vh; border-radius: 10px; border: 1px solid var(--line); background: #000; }
.hf-file-video figcaption, .hf-file-preview figcaption { margin-top: 7px; font-size: 13.5px; color: var(--dim); }
.hf-file-preview { margin: 16px 0 4px; }
.hf-file-preview .hf-file-pdf { display: block; width: 100%; height: 62vh; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.hf-docx-preview { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2, #fff); padding: 14px 16px; max-height: 58vh; overflow: auto; }
.hf-docx-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.8; color: var(--text, #d8dee9); }
.hf-content-note svg { vertical-align: -.15em; margin-right: 4px; }
.hf-content-warning { padding: 10px 12px; border-radius: 8px; border: 1px dashed rgba(251, 191, 36, .3); background: rgba(251, 191, 36, .035); color: #cabb96; margin-bottom: 14px; }
.hf-content-more { text-align: center; padding: 14px; }
.hf-content-split { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: 16px; align-items: start; }
.hf-content-main { min-width: 0; min-height: 0; max-height: 70dvh; overflow: auto; overscroll-behavior: contain; }
@media (min-width: 761px) and (min-height: 640px) {
  .gx-shell .view:has(.hf-content-split) { overflow: hidden; }
  .view:has(.hf-content-split) > .view-in { height: 100%; min-height: 0; }
  .hf-content:has(> .hf-content-split) { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .hf-content:has(> .hf-content-split) > :not(.hf-content-split) { flex: none; }
  .hf-content .hf-content-split { flex: 1; min-height: 0; align-items: stretch; }
  .hf-content-split > .hf-content-main { height: 100%; max-height: none; }
  .hf-content-split > .hf-content-sidebar { min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .hf-content-sidebar .hf-content-navlist { max-height: none; overflow: visible; }
}
.hf-content-sidebar { padding: 16px 12px; }
.hf-content-sidebarhead { padding: 0 7px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.hf-content-sidebarhead h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.hf-content-sidebarhead svg { color: var(--cyan); width: 17px; height: 17px; }
.hf-content-sidebar > .hf-content-note { margin: 14px 6px 0; font-size: 12px; }
.hf-content-navlist { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.hf-content-navrow { display: flex; align-items: center; border-radius: 8px; min-width: 0; }
.hf-content-navbutton { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; text-align: left; padding: 9px 10px; border: 1px solid transparent; border-radius: 8px; color: var(--text2); background: transparent; cursor: pointer; font-size: 13.5px; }
.hf-content-navbutton > svg { width: 15px; height: 15px; color: var(--dim); }
.hf-content-navbutton > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hf-content-navbutton > b { flex: none; min-width: 20px; font: 400 12px var(--mono); text-align: center; color: var(--dim); }
.hf-content-navbutton:hover { color: #fff; background: rgba(94, 234, 212, .05); }
.hf-content-navbutton.hf-content-selected, .hf-content-navrow.hf-content-selected { background: rgba(94, 234, 212, .09); box-shadow: inset 2px 0 0 var(--cyan); }
.hf-content-selected > .hf-content-navbutton, .hf-content-navbutton.hf-content-selected { color: #fff; }
.hf-content-selected > .hf-content-navbutton > svg, .hf-content-navbutton.hf-content-selected > svg { color: var(--cyan); }
.hf-content-navrow > .hf-content-navbutton { flex: 1; padding-right: 4px; }
.hf-content-navtools { display: flex; align-items: center; gap: 0; padding-right: 3px; }
.hf-content-navtools .btn { width: 26px; padding: 0; }
.hf-content-navtools .btn svg { width: 13px; height: 13px; }
.hf-content button:focus-visible, .hf-content a:focus-visible, .hf-content-detail button:focus-visible, .hf-content-detail a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.hf-content-detail { min-width: 0; }
.hf-content-detailtitle { font-size: 23px; font-weight: 600; margin: 14px 0; line-height: 1.5; overflow-wrap: anywhere; }
.hf-content-person { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.hf-content-person b { font-size: 13.5px; font-weight: 500; }
.hf-content-person small { display: block; color: var(--dim); font-size: 12px; }
.hf-content-detailactions { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.hf-content-sectiontitle { font-size: 14px; font-weight: 500; margin: 20px 0 10px; color: var(--text2); }
.hf-content-text { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); font-size: 14px; line-height: 1.9; }
.hf-content-form .hf-content-note { margin: 0; }
.hf-content-form .fld { min-width: 0; }

/* 公告 */
.hf-notice-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 130px; align-items: start; gap: 14px; padding: 19px 20px; border-bottom: 1px dashed rgba(38, 49, 64, .8); }
.hf-notice-row:last-child { border-bottom: none; }
.hf-notice-row:hover { background: rgba(94, 234, 212, .025); }
.hf-notice-unread { background: linear-gradient(90deg, rgba(94, 234, 212, .04), transparent 60%); }
.hf-notice-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--dim); border: 1px solid var(--line); background: rgba(255, 255, 255, .025); }
.hf-notice-mark svg { width: 18px; height: 18px; }
.hf-notice-unread .hf-notice-mark { color: var(--cyan); border-color: rgba(94, 234, 212, .3); box-shadow: 0 0 16px rgba(94, 234, 212, .08); }
.hf-notice-title { display: block; color: var(--text); font-size: 16px; font-weight: 600; margin: 8px 0 5px; line-height: 1.5; overflow-wrap: anywhere; }
.hf-notice-title:hover { color: var(--cyan); }
.hf-notice-excerpt { color: var(--dim); font-size: 13.5px; line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; margin-bottom: 8px; }
.hf-notice-readcount { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; color: var(--dim); font-size: 12.5px; padding-top: 3px; }
.hf-notice-readcount > .btn { margin-top: 14px; }
.hf-notice-readcount svg { width: 14px; height: 14px; }
.hf-notice-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 2; padding: 18px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.hf-notice-tracking { margin-top: 22px; }
.hf-notice-tracking > h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.hf-notice-tracking > .prog { margin-top: 10px; }
.hf-notice-tracking details { margin-top: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.hf-notice-tracking summary { color: var(--text2); font-size: 13.5px; cursor: pointer; }
.hf-notice-tracking details .hf-content-tags { padding-top: 10px; }

/* 文件中心 */
.hf-file-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px 14px; align-items: start; padding: 18px 20px; border-bottom: 1px dashed rgba(38, 49, 64, .8); }
.hf-file-row:last-child { border-bottom: none; }
.hf-file-row:hover { background: rgba(94, 234, 212, .025); }
.hf-file-icon { display: grid; place-items: center; width: 42px; height: 46px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .025); color: var(--hf-accent, var(--cyan)); }
.hf-file-icon svg { width: 22px; height: 22px; }
.hf-file-main { min-width: 0; }
.hf-file-name { display: block; color: var(--text); font-size: 15.5px; font-weight: 600; overflow-wrap: anywhere; margin-bottom: 8px; }
.hf-file-name:hover { color: var(--cyan); }
.hf-file-main .hf-content-meta { margin-top: 8px; }
.hf-file-excerpt { font-size: 12.5px; color: var(--dim); margin-top: 7px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.hf-file-actions { grid-column: 2; }

/* 通讯录 */
.hf-contact-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 13px 16px; }
.hf-contact-heading h3 { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.hf-contact-heading .hf-content-note { margin-top: 3px; }
.hf-contact-heading > .dim { flex: none; font-size: 12.5px; }
.hf-contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 14px; }
.hf-contact-card { padding: 16px; transition: border-color .16s, box-shadow .16s; }
.hf-contact-card:hover { border-color: rgba(94, 234, 212, .35); box-shadow: 0 0 20px rgba(94, 234, 212, .045); }
.hf-contact-person { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--text); margin-bottom: 12px; }
.hf-contact-person > span:last-of-type { flex: 1; min-width: 0; }
.hf-contact-person b { display: block; font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-contact-person small { display: block; color: var(--dim); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-contact-person > svg { width: 14px; height: 14px; color: var(--mute); }
.hf-contact-person:hover { color: var(--cyan); }
.hf-contact-dept { display: flex; align-items: center; gap: 7px; color: var(--text2); font-size: 13px; padding: 12px 0 7px; overflow-wrap: anywhere; }
.hf-contact-dept svg { flex: none; width: 14px; height: 14px; color: var(--dim); }
.hf-contact-line { display: flex; align-items: start; gap: 7px; color: var(--dim); font-size: 12.5px; margin-top: 5px; min-width: 0; }
.hf-contact-line svg { width: 14px; height: 14px; margin-top: 3px; }
.hf-contact-line > span { overflow-wrap: anywhere; min-width: 0; user-select: text; }
.hf-contact-cardfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; margin-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; }
.hf-contact-cardfoot a { display: inline-flex; align-items: center; gap: 4px; }
.hf-contact-cardfoot svg { width: 14px; height: 14px; }
.hf-contact-disabled { opacity: .78; }
.hf-contact-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 0 24px; }
.hf-contact-profile h2 { font-size: 24px; font-weight: 600; margin: 12px 0 3px; overflow-wrap: anywhere; }
.hf-contact-profile p { color: var(--dim); font-size: 14px; margin-bottom: 12px; }
.hf-contact-profile .hf-content-tags { justify-content: center; }
.hf-contact-value { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; user-select: text; }

@media (max-width: 1100px) {
  .hf-content-hero { align-items: flex-start; flex-wrap: wrap; }
  .hf-content-split { grid-template-columns: 210px minmax(0, 1fr); }
  .hf-content-metric { padding: 12px; }
  .hf-contact-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 760px) {
  .hf-content-hero { flex-direction: column; gap: 14px; padding: 16px; }
  .hf-content-hero h2 { font-size: 20px; }
  .hf-content-hero > .hf-content-actions { width: 100%; }
  .hf-content-hero > .hf-content-actions > .btn { flex: 1 1 auto; }
  .hf-content-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
  .hf-content-metric > b { font-size: 25px; }
  .hf-content-metric > span { font-size: 12.5px; }
  .hf-content-metric > small { font-size: 11.5px; }
  .hf-content-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hf-content-main { max-height: none; overflow: visible; }
  .hf-content-sidebar { padding: 12px; }
  .hf-content-navlist { max-height: 220px; }
  .hf-content-sidebar > .hf-content-note { margin-top: 10px; }
  .hf-content-toolbar { gap: 8px; }
  .hf-content-toolbar > .inp { width: auto; flex: 1 1 130px; }
  .hf-content-toolbar > .hf-content-search { flex: 1 1 100%; min-width: 0; }
  .hf-content-listhead { padding: 13px 14px; flex-wrap: wrap; }
  .hf-notice-row { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 15px 14px; }
  .hf-notice-mark { width: 30px; height: 32px; border-radius: 8px; }
  .hf-notice-mark svg { width: 16px; height: 16px; }
  .hf-notice-title { font-size: 15px; }
  .hf-notice-readcount { grid-column: 2; justify-content: flex-start; gap: 7px; padding-top: 0; }
  .hf-notice-readcount > .btn { margin: 0 0 0 auto; }
  .hf-notice-body { padding: 14px; font-size: 14px; }
  .hf-content-detailtitle { font-size: 21px; }
  .hf-file-row { grid-template-columns: 32px minmax(0, 1fr); padding: 15px 14px; gap: 10px; }
  .hf-file-icon { width: 32px; height: 38px; }
  .hf-file-icon svg { width: 18px; height: 18px; }
  .hf-file-actions { gap: 6px; }
  .hf-contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hf-contact-heading { padding: 12px 14px; }
  .hf-content-detail .kv { grid-template-columns: 80px minmax(0, 1fr); font-size: 13.5px; }
  .hf-content-detailactions > .btn { flex: 1 1 auto; }
}
