/*
 * notice.html 的独立展示层。
 * 依据 G3 3.5.12 主题及 Button / Modal / SimpleCard 样式资料；
 * 沿用静态 HTML 和原有脚本，不声明为 React 组件接入。
 * 所有规则限定在本页，避免影响引用 common.css 的其他页面。
 */
body.notice-g3-page {
  --cscec-primary-color: #0080ff;
  --cscec-primary-color-hover: #2e9eff;
  --cscec-primary-color-click: #00a2ff;
  --cscec-success-color: #00cf61;
  --cscec-warn-color: #ffb82e;
  --cscec-danger-color: #ff3b3b;
  --cscec-bg-base-color: #edf1f5;
  --cscec-bg-content-color: #fff;
  --cscec-bg-window-color: #fff;
  --cscec-bg-window-title-color: #f4f7f9;
  --cscec-bg-table-th-color: #f4f7f9;
  --cscec-bg-table-tr-color: #fbfcfd;
  --cscec-bg-table-hover-color: #eaf7ff;
  --cscec-line-color: #e9eff4;
  --cscec-border-color: #dee1e3;
  --cscec-font-base-color: #212529;
  --cscec-font-secondary-color: #737687;
  --cscec-font-help-color: #b7c4cc;
  --cscec-font-white-color: #fff;
  --cscec-content-font-size: 14px;
  --cscec-help-font-size: 12px;
  --cscec-button-default-height: 32px;
  --cscec-button-default-border-radius: 3px;
  --cscec-input-normal-padding: 4px 11px;
  --primary: var(--cscec-primary-color);
  --text: var(--cscec-font-base-color);
  --text-strong: var(--cscec-font-base-color);
  --muted: var(--cscec-font-secondary-color);
  --notice-focus-ring: 0 0 0 2px rgb(0 128 255 / 12%);
  --notice-icon-announcement: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v5h4l11 4V6L8 10H4ZM8 15l2 6H6l-2-6M19 10h2v5h-2M8 10v5'/%3E%3C/svg%3E");
  --notice-icon-attachment: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 12 6-6a3 3 0 0 1 4 4l-8 8a5 5 0 0 1-7-7l9-9M6 14l8-8'/%3E%3C/svg%3E");
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  color: var(--cscec-font-base-color);
  background: var(--cscec-bg-base-color);
  font-size: var(--cscec-content-font-size);
  line-height: 1.5715;
}

/* 本页系统外壳：保留所有菜单、地址和操作。 */
.notice-g3-page .topbar {
  height: 56px;
  min-height: 56px;
  flex-shrink: 0;
  padding: 0 20px;
  gap: 20px;
  border-color: var(--cscec-line-color);
  box-shadow: none;
}
.notice-g3-page .topbar-left { min-width: 0; gap: 28px; }
.notice-g3-page .topbar-brand { flex-shrink: 0; }
.notice-g3-page .brand-logo {
  width: 36px;
  height: 36px;
  background: var(--cscec-primary-color);
  border-radius: 3px;
  letter-spacing: 0;
}
.notice-g3-page .brand-copy { gap: 3px; }
.notice-g3-page .brand-copy strong { font-size: 14px; white-space: nowrap; }
.notice-g3-page .brand-copy span { font-size: 8px; letter-spacing: 0; }
.notice-g3-page .brand-sys-title { font-size: 14px; font-weight: 400; white-space: nowrap; }
.notice-g3-page .topbar-nav { align-self: stretch; align-items: center; flex-shrink: 0; }
.notice-g3-page .topbar-nav-item { height: 36px; padding: 0 16px; font-size: 14px; white-space: nowrap; }
.notice-g3-page .topbar-nav-item.active { color: var(--cscec-primary-color); background: var(--cscec-bg-table-hover-color); }
.notice-g3-page .topbar-user { min-width: 0; gap: 16px; flex-shrink: 0; }
.notice-g3-page .topbar-company { max-width: 260px; border: 0; background: transparent; padding: 0; }
.notice-g3-page .topbar-company > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-g3-page .topbar-avatar { background: var(--cscec-primary-color); }
.notice-g3-page .topbar-avatar-group { flex-shrink: 0; }
.notice-g3-page .topbar-icons { gap: 16px; }
.notice-g3-page .app-shell { height: auto; flex: 1; min-height: 0; }
.notice-g3-page .sidebar {
  width: 208px;
  color: var(--cscec-font-base-color);
  background: var(--cscec-bg-content-color);
  border-right: 1px solid var(--cscec-line-color);
  box-shadow: none;
}
.notice-g3-page .sidebar-search-wrap { padding: 20px 16px 12px; }
.notice-g3-page .sidebar-search-input {
  height: 32px;
  color: var(--cscec-font-base-color);
  background: var(--cscec-bg-content-color);
  border: 1px solid var(--cscec-border-color);
  border-radius: 3px;
  padding: var(--cscec-input-normal-padding);
}
.notice-g3-page .sidebar-search-input::placeholder { color: var(--cscec-font-secondary-color); }
.notice-g3-page .sidebar-search-input:focus { border-color: var(--cscec-primary-color); box-shadow: var(--notice-focus-ring); }
.notice-g3-page .sidebar-group { padding: 8px 0; }
.notice-g3-page .sidebar-section-title { padding: 8px 20px; color: var(--cscec-font-secondary-color); font-size: 12px; font-weight: 400; }
.notice-g3-page .sidebar-section-title > span:last-child { font-size: 8px; }
.notice-g3-page .sidebar-menu-item {
  min-height: 44px;
  padding: 10px 20px;
  gap: 10px;
  color: var(--cscec-font-base-color);
  font-size: 14px;
  border-left: 3px solid transparent;
}
.notice-g3-page .sidebar-menu-item:hover { color: var(--cscec-primary-color); background: var(--cscec-bg-table-th-color); }
.notice-g3-page .sidebar-menu-item.active {
  color: var(--cscec-primary-color);
  background: var(--cscec-bg-table-hover-color);
  border-left-color: var(--cscec-primary-color);
  font-weight: 500;
}
.notice-g3-page .main-shell { min-width: 0; min-height: 0; background: var(--cscec-bg-base-color); }
.notice-g3-page .page-tab-bar { min-height: 40px; height: 40px; flex-shrink: 0; padding: 0 20px; gap: 0; border-color: var(--cscec-line-color); }
.notice-g3-page .page-tab { height: 40px; padding: 0 16px; border-radius: 0; background: transparent; border: 0; }
.notice-g3-page .page-tab.active { color: var(--cscec-primary-color); background: transparent; border: 0; border-bottom: 2px solid var(--cscec-primary-color); }

/* 业务布局。20px 页面边距；断点与卡片行布局为本页适配选择。 */
.notice-g3-page .notice-portal-container { position: relative; flex: 1; min-width: 0; padding: 20px; background: var(--cscec-bg-base-color); }
.notice-g3-page .watermark-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .55; background-repeat: repeat; }
.notice-g3-page .notice-portal-content { position: relative; z-index: 2; min-width: 0; }
.notice-g3-page .portal-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 76px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--cscec-bg-content-color);
  border: 1px solid var(--cscec-line-color);
  border-radius: 3px;
}
.notice-g3-page .portal-header-left { display: flex; align-items: center; }
.notice-g3-page .portal-page-title { display: flex; align-items: center; gap: 10px; }
.notice-g3-page .portal-page-title h1 { color: var(--cscec-font-base-color); font-size: 20px; font-weight: 600; line-height: 1.4; }
.notice-g3-page .portal-page-title > .notice-ui-icon { width: 22px; height: 22px; color: var(--cscec-primary-color); }
.notice-g3-page .portal-header-right { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; min-width: 0; }
.notice-g3-page .org-scope-field { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notice-g3-page .org-scope-field > label { color: var(--cscec-font-secondary-color); font-size: 14px; white-space: nowrap; }
.notice-g3-page .org-scope-field > select { width: 236px; min-width: 0; }
.notice-g3-page .notice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.notice-g3-page .notice-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 260px;
  container-type: inline-size;
  background: var(--cscec-bg-content-color);
  border: 1px solid var(--cscec-line-color);
  border-radius: 3px;
}
.notice-g3-page .notice-card-header { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--cscec-line-color); }
.notice-g3-page .notice-card-title-group { display: flex; align-items: center; gap: 8px; min-width: 0; }
.notice-g3-page .notice-bar-marker { width: 3px; height: 16px; flex-shrink: 0; background: var(--cscec-primary-color); border-radius: 1px; }
.notice-g3-page .notice-card-title { font-size: 16px; font-weight: 600; color: var(--cscec-font-base-color); white-space: nowrap; }
.notice-g3-page .notice-count-badge { min-width: 24px; padding: 0 6px; line-height: 20px; border-radius: 3px; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--cscec-font-secondary-color); background: var(--cscec-bg-table-th-color); text-align: center; }
.notice-g3-page .notice-more-link { display: inline-flex; align-items: center; flex-shrink: 0; padding: 4px 0 4px 8px; gap: 4px; color: var(--cscec-font-secondary-color); font-size: 12px; white-space: nowrap; transition: color .15s; cursor: pointer; }
.notice-g3-page .notice-more-link:hover { color: var(--cscec-primary-color); }
.notice-g3-page .notice-list { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 4px 0; list-style: none; }
.notice-g3-page .notice-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; min-height: 44px; padding: 10px 16px; border-bottom: 1px solid var(--cscec-line-color); cursor: pointer; transition: background-color .15s; }
.notice-g3-page .notice-item:last-child { border-bottom: 0; }
.notice-g3-page .notice-item:hover { background: var(--cscec-bg-table-hover-color); }
.notice-g3-page .notice-item:hover .notice-title-text { color: var(--cscec-primary-color); }
.notice-g3-page .notice-item-left { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; }
.notice-g3-page .notice-title-text { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--cscec-font-base-color); font-size: 14px; line-height: 22px; transition: color .15s; }
.notice-g3-page .notice-title-text > span:first-child { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-g3-page .notice-attach-icon { display: inline-block; flex-shrink: 0; width: 14px; height: 14px; font-size: 0; color: var(--cscec-font-secondary-color); background: currentColor; mask: var(--notice-icon-attachment) center / contain no-repeat; }
.notice-g3-page .notice-item-right { display: flex; align-items: center; justify-content: flex-end; flex-shrink: 0; gap: 10px; }
.notice-g3-page .notice-date { min-width: 76px; color: var(--cscec-font-secondary-color); font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.notice-g3-page .notice-top-tag,
.notice-g3-page .notice-status-badge { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: 20px; padding: 0 6px; font-size: 12px; font-weight: 400; line-height: 18px; border: 1px solid; border-radius: 3px; white-space: nowrap; }
.notice-g3-page .notice-top-tag { color: #d9363e; background: #fff2f0; border-color: #ffccc7; }
.notice-g3-page .status-draft { color: #ad6800; background: #fffbe6; border-color: #ffe58f; }
.notice-g3-page .status-published { color: #237804; background: #f6ffed; border-color: #b7eb8f; }
.notice-g3-page .notice-item-actions { display: inline-flex; align-items: center; gap: 12px; padding-left: 10px; border-left: 1px solid var(--cscec-line-color); }
.notice-g3-page .btn-row-action { display: inline-flex; align-items: center; justify-content: center; height: 24px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--cscec-primary-color); font-size: 12px; line-height: 24px; white-space: nowrap; transition: color .15s; }
.notice-g3-page .btn-row-action:hover { color: var(--cscec-primary-color-hover); }
.notice-g3-page .btn-row-action:active { color: var(--cscec-primary-color-click); }
.notice-g3-page .btn-delete,
.notice-g3-page .file-delete { color: var(--cscec-danger-color); }
.notice-g3-page .btn-delete:hover { color: #d9363e; }
.notice-g3-page .notice-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 12px; min-height: 220px; padding: 28px 16px; color: var(--cscec-font-secondary-color); font-size: 14px; }
.notice-g3-page .notice-empty-icon { display: block; width: 48px; height: 48px; font-size: 0; color: var(--cscec-font-help-color); background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M10 18 17 8h14l7 10v20H10V18ZM10 24h9l2 5h6l2-5h9M18 16h12M18 21h12'/%3E%3C/svg%3E") center / contain no-repeat; }

/* G3 默认 / 主按钮：32px 高、3px 圆角、无渐变与阴影。 */
.notice-g3-page .btn-portal-primary,
.notice-g3-page .btn-portal-subtle,
.notice-g3-page .btn-picker-action { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 6px; height: var(--cscec-button-default-height); padding: 4px 12px; font-size: 14px; font-weight: 400; line-height: 22px; border: 1px solid var(--cscec-border-color); border-radius: var(--cscec-button-default-border-radius); background: var(--cscec-bg-content-color); color: var(--cscec-font-base-color); box-shadow: none; white-space: nowrap; transition: color .15s, border-color .15s, background-color .15s; cursor: pointer; }
.notice-g3-page .btn-portal-primary { color: var(--cscec-font-white-color); background: var(--cscec-primary-color); border-color: var(--cscec-primary-color); }
.notice-g3-page .btn-portal-primary:hover { color: var(--cscec-font-white-color); background: var(--cscec-primary-color-hover); border-color: var(--cscec-primary-color-hover); }
.notice-g3-page .btn-portal-primary:active { background: var(--cscec-primary-color-click); border-color: var(--cscec-primary-color-click); }
.notice-g3-page .btn-portal-subtle:hover,
.notice-g3-page .btn-picker-action:hover { color: var(--cscec-primary-color-hover); border-color: var(--cscec-primary-color-hover); }
.notice-g3-page :is(button, a, input, select, textarea):focus-visible { outline: 2px solid var(--cscec-primary-color); outline-offset: 2px; }
.notice-g3-page :is(button, input, select, textarea):disabled { color: var(--cscec-font-help-color); border-color: var(--cscec-line-color); background: var(--cscec-bg-table-th-color); cursor: not-allowed; }

/* 弹窗：40px 标题栏，内容区滚动，取消在左、确认在右。 */
.notice-g3-page .modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgb(0 0 0 / 45%); }
.notice-g3-page .modal-backdrop.is-open { display: flex; }
.notice-g3-page .modal-dialog { display: flex; flex-direction: column; width: 100%; max-width: 680px; max-height: calc(100dvh - 48px); min-height: 0; background: var(--cscec-bg-window-color); border-radius: 3px; box-shadow: 0 4px 24px rgb(0 0 0 / 16%); animation: notice-g3-modal-in .18s ease-out; }
.notice-g3-page .modal-header { display: flex; align-items: center; justify-content: space-between; min-height: 40px; flex-shrink: 0; gap: 12px; padding: 0 20px; background: var(--cscec-bg-window-title-color); border-radius: 3px 3px 0 0; }
.notice-g3-page .modal-title { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 16px; font-weight: 600; color: var(--cscec-font-base-color); }
.notice-g3-page .modal-title > .notice-ui-icon { color: var(--cscec-primary-color); }
.notice-g3-page #view-modal-title > span:first-child { width: 16px; height: 16px; flex-shrink: 0; font-size: 0; background: var(--cscec-primary-color); mask: var(--notice-icon-announcement) center / contain no-repeat; }
.notice-g3-page .modal-close-btn { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 3px; color: var(--cscec-font-secondary-color); background: transparent; font-size: 16px; }
.notice-g3-page .modal-close-btn:hover { color: var(--cscec-font-base-color); background: var(--cscec-line-color); }
.notice-g3-page .modal-body { flex: 1 1 auto; min-height: 0; padding: 24px; overflow-y: auto; overscroll-behavior: contain; }
.notice-g3-page .modal-footer { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; flex-shrink: 0; gap: 8px; padding: 0 24px 20px; border-radius: 0 0 3px 3px; background: var(--cscec-bg-window-color); }

/* G3Modal 标准标题栏与居中按钮；编辑保留原表单和字段。 */
.notice-g3-page :is(#add-notice-modal, #notice-feedback-modal) .modal-header {
  padding-right: 0;
}
.notice-g3-page :is(#add-notice-modal, #notice-feedback-modal) .modal-close-btn {
  width: 56px;
  height: 40px;
  border-radius: 0;
}
.notice-g3-page #add-notice-modal .modal-title > .notice-ui-icon {
  display: none;
}
.notice-g3-page #add-notice-modal .modal-footer {
  justify-content: center;
}
.notice-g3-page :is(#add-notice-modal, #notice-feedback-modal) .modal-footer {
  border-top: 0;
}
.notice-g3-page .form-control:focus-visible {
  outline: 0;
}
.notice-g3-page .org-tags-container:focus-visible {
  border-color: var(--cscec-primary-color);
  box-shadow: var(--notice-focus-ring);
  outline: 0;
}

/* 对应 G3Modal.confirm / warning：416px、48px 状态图标、居中操作。 */
.notice-g3-page .notice-feedback-backdrop {
  z-index: 1100;
}
.notice-g3-page .notice-feedback-dialog {
  max-width: 416px;
}
.notice-g3-page .notice-feedback-dialog .modal-body {
  flex: 0 1 auto;
  padding: 30px 60px 0;
  text-align: center;
}
.notice-g3-page .notice-feedback-indicator {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--cscec-font-white-color);
  background: var(--cscec-warn-color);
  font: 600 32px / 48px Arial, sans-serif;
  text-align: center;
}
.notice-g3-page .notice-feedback-dialog[data-variant="info"] .notice-feedback-indicator {
  background: var(--cscec-primary-color);
}
.notice-g3-page .notice-feedback-dialog[data-variant="error"] .notice-feedback-indicator {
  background: var(--cscec-danger-color);
}
.notice-g3-page .notice-feedback-content {
  margin-top: 20px;
  color: var(--cscec-font-base-color);
  font-size: var(--cscec-content-font-size);
  line-height: 22px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.notice-g3-page .notice-feedback-dialog .modal-footer {
  justify-content: center;
  padding: 30px 20px 20px;
}
.notice-g3-page #notice-feedback-cancel[hidden] {
  display: none;
}
.notice-g3-page .form-group { position: relative; margin-bottom: 20px; }
.notice-g3-page .form-group:last-child { margin-bottom: 0; }
.notice-g3-page .form-label { display: block; margin-bottom: 8px; color: var(--cscec-font-base-color); font-size: 14px; font-weight: 400; line-height: 22px; }
.notice-g3-page .form-label.required::before { content: "*"; display: inline-block; margin-right: 4px; color: var(--cscec-danger-color); }
.notice-g3-page .form-control { width: 100%; height: 32px; min-width: 0; padding: var(--cscec-input-normal-padding); color: var(--cscec-font-base-color); border: 1px solid var(--cscec-border-color); border-radius: 3px; background: var(--cscec-bg-content-color); font-size: 14px; line-height: 22px; transition: border-color .15s, box-shadow .15s; }
.notice-g3-page .form-control::placeholder { color: var(--cscec-font-secondary-color); }
.notice-g3-page .form-control:hover { border-color: var(--cscec-primary-color-hover); }
.notice-g3-page .form-control:focus { border-color: var(--cscec-primary-color); box-shadow: var(--notice-focus-ring); }
.notice-g3-page select.form-control { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23737687' stroke-width='1.2'%3E%3Cpath d='m2 4 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.notice-g3-page .org-tags-container { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 32px; padding: 4px 30px 4px 6px; border: 1px solid var(--cscec-border-color); border-radius: 3px; background: var(--cscec-bg-content-color); cursor: pointer; }
.notice-g3-page .org-tags-container:hover { border-color: var(--cscec-primary-color-hover); }
.notice-g3-page .org-tags-container.is-focused { border-color: var(--cscec-primary-color); box-shadow: var(--notice-focus-ring); }
.notice-g3-page #selected-org-tags { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; max-width: 100%; gap: 5px; }
.notice-g3-page .org-tag-pill { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; padding: 0 6px; color: var(--cscec-font-base-color); border: 1px solid var(--cscec-line-color); border-radius: 3px; background: var(--cscec-bg-table-th-color); font-size: 12px; line-height: 22px; overflow-wrap: anywhere; }
.notice-g3-page .org-tag-remove { flex-shrink: 0; color: var(--cscec-font-secondary-color); cursor: pointer; }
.notice-g3-page .org-tag-remove:hover { color: var(--cscec-danger-color); }
.notice-g3-page .org-tags-placeholder { color: var(--cscec-font-secondary-color); font-size: 14px; }
.notice-g3-page .org-picker-chevron { position: absolute; right: 10px; top: 9px; color: var(--cscec-font-secondary-color); font-size: 9px; line-height: 14px; }
/* 在原生弹窗的滚动区内展开，避免组织选项和确认按钮被裁切。 */
.notice-g3-page .org-picker-dropdown { position: relative; z-index: 50; display: none; margin-top: 4px; padding: 12px; border: 1px solid var(--cscec-line-color); border-radius: 3px; background: var(--cscec-bg-content-color); box-shadow: 0 4px 16px rgb(0 0 0 / 12%); }
.notice-g3-page .org-picker-dropdown.is-open { display: block; }
.notice-g3-page .org-picker-toolbar { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--cscec-line-color); color: var(--cscec-font-secondary-color); font-size: 12px; }
.notice-g3-page .org-picker-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; max-height: 200px; overflow-y: auto; }
.notice-g3-page .org-picker-item { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 5px 8px; border-radius: 3px; font-size: 14px; cursor: pointer; }
.notice-g3-page .org-picker-item:hover { background: var(--cscec-bg-table-hover-color); }
.notice-g3-page :is(.org-picker-item input, .top-radio-label input) { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; accent-color: var(--cscec-primary-color); cursor: pointer; }
.notice-g3-page .org-picker-footer { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--cscec-line-color); }
.notice-g3-page .top-switch-wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; min-height: 32px; }
.notice-g3-page .top-radio-label { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--cscec-font-base-color); font-size: 14px; line-height: 22px; cursor: pointer; }
.notice-g3-page .file-upload-box { padding: 20px 16px; border: 1px dashed var(--cscec-border-color); border-radius: 3px; background: var(--cscec-bg-table-th-color); transition: border-color .15s; }
.notice-g3-page .file-upload-box:hover { border-color: var(--cscec-primary-color); }
.notice-g3-page .file-upload-trigger { display: flex; align-items: center; justify-content: center; }
.notice-g3-page .file-list { display: flex; flex-direction: column; gap: 8px; }
.notice-g3-page .file-list:not(:empty) { margin-top: 16px; }
.notice-g3-page .file-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--cscec-line-color); border-radius: 3px; background: var(--cscec-bg-content-color); font-size: 14px; }
.notice-g3-page .file-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.notice-g3-page .file-name > span:first-child { flex-shrink: 0; width: 16px; height: 16px; font-size: 0; color: var(--cscec-font-secondary-color); background: currentColor; mask: var(--notice-icon-attachment) center / contain no-repeat; }
.notice-g3-page .file-item > div:last-child { flex-shrink: 0; white-space: nowrap; }
.notice-g3-page .file-size { color: var(--cscec-font-secondary-color); font-size: 12px; }
.notice-g3-page .file-delete { margin-left: 12px; font-size: 12px; cursor: pointer; }
.notice-g3-page .file-delete:hover { text-decoration: underline; }
.notice-g3-page #view-modal-body { overflow-wrap: anywhere; }
.notice-g3-page #view-modal-body div:has(> a) { flex-wrap: wrap; gap: 8px 12px; }
.notice-g3-page #view-modal-body div:has(> a) > span { flex: 1 1 200px; min-width: 0; }
.notice-g3-page #view-modal-body a { flex-shrink: 0; white-space: nowrap; }
.notice-g3-page #view-modal-body a:hover { text-decoration: underline; }
.notice-g3-page .toast-msg { position: fixed; top: 72px; left: 50%; z-index: 2000; display: none; width: max-content; max-width: min(720px, calc(100vw - 32px)); padding: 12px 20px; transform: translateX(-50%); border: 1px solid var(--cscec-line-color); border-radius: 3px; background: var(--cscec-bg-content-color); color: var(--cscec-font-base-color); box-shadow: 0 3px 16px rgb(0 0 0 / 12%); font-size: 14px; line-height: 22px; overflow-wrap: anywhere; pointer-events: none; }

/* 仅替换装饰图标，动态数据和事件仍由 notice.html 原脚本生成。 */
.notice-g3-page .notice-ui-icon { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; background: currentColor; mask: var(--notice-icon) center / contain no-repeat; vertical-align: middle; }
.notice-g3-page .notice-icon-announcement { --notice-icon: var(--notice-icon-announcement); }
.notice-g3-page .notice-icon-work { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='14' height='17' rx='2'/%3E%3Cpath d='M9 4V2h6v2M9 9h6M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.notice-g3-page .notice-icon-star { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z'/%3E%3C/svg%3E"); }
.notice-g3-page .notice-icon-chart { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v17h17M9 16v-5M14 16V6M19 16v-8'/%3E%3C/svg%3E"); }
.notice-g3-page .notice-icon-settings { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='m10 3-.8 3-2.7.7L4 6l-2 3 2 2v3l-2 2 2 3 2.5-.7 2.7.7.8 3h4l.8-3 2.7-.7L20 19l2-3-2-2v-3l2-2-2-3-2.5.7-2.7-.7-.8-3h-4Z'/%3E%3Ccircle cx='12' cy='12.5' r='3'/%3E%3C/svg%3E"); }
.notice-g3-page .notice-icon-bell { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0v6l2 3H4l2-3V9ZM10 21h4M12 1v2'/%3E%3C/svg%3E"); }
.notice-g3-page .notice-icon-help { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9a2.5 2.5 0 1 1 4.2 1.8L12 12v2M12 17h.01'/%3E%3C/svg%3E"); }
.notice-g3-page .notice-icon-folder { --notice-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'%3E%3Cpath d='M3 7V4h7l2 3h9v13H3V7ZM3 9h18'/%3E%3C/svg%3E"); }

/* 小卡片上的草稿独占两行，保留标题空间及全部操作。 */
@container (max-width: 640px) {
  .notice-g3-page .notice-item:has(.notice-item-actions) { flex-wrap: wrap; gap: 4px 12px; }
  .notice-g3-page .notice-item:has(.notice-item-actions) .notice-item-left { flex-basis: 100%; }
  .notice-g3-page .notice-item:has(.notice-item-actions) .notice-item-right { margin-left: auto; }
}
@media (max-width: 1280px) {
  .notice-g3-page .topbar { flex-wrap: wrap; height: auto; gap: 8px 20px; padding: 12px 20px; }
  .notice-g3-page .topbar-left { flex-wrap: wrap; gap: 12px 24px; }
  .notice-g3-page .topbar-user { margin-left: auto; }
  .notice-g3-page .topbar-company { max-width: 220px; }
}
@media (max-width: 1100px) {
  .notice-g3-page .sidebar { width: 184px; }
  .notice-g3-page .notice-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .notice-g3-page .topbar { padding: 10px 16px; gap: 8px; }
  .notice-g3-page .topbar-left { width: 100%; gap: 8px 16px; }
  .notice-g3-page .topbar-brand { flex-wrap: wrap; flex-shrink: 1; gap: 8px; }
  .notice-g3-page .brand-copy strong { font-size: 12px; }
  .notice-g3-page .brand-copy span { font-size: 7px; }
  .notice-g3-page .brand-sys-title { font-size: 12px; }
  .notice-g3-page .topbar-nav-item { height: 30px; padding: 0 12px; }
  .notice-g3-page .topbar-user { width: 100%; justify-content: space-between; gap: 12px; }
  .notice-g3-page .topbar-company { max-width: min(44vw, 240px); font-size: 12px; }
  .notice-g3-page .sidebar { width: 160px; }
  .notice-g3-page .sidebar-search-wrap { padding: 16px 12px 8px; }
  .notice-g3-page .sidebar-section-title { padding: 8px 14px; }
  .notice-g3-page .sidebar-menu-item { padding: 10px 12px; gap: 8px; font-size: 13px; }
  .notice-g3-page .notice-portal-container { padding: 16px; }
  .notice-g3-page .portal-header-bar { padding: 16px; margin-bottom: 16px; }
  .notice-g3-page .portal-header-right { width: 100%; gap: 12px; }
  .notice-g3-page .org-scope-field { width: 100%; flex-wrap: wrap; }
  .notice-g3-page .org-scope-field > select { flex: 1; min-width: 160px; }
  .notice-g3-page .notice-grid { gap: 16px; }
  .notice-g3-page .notice-card-header { padding: 0 12px; }
  .notice-g3-page .notice-item { padding: 10px 12px; }
}
@media (max-width: 520px) {
  .notice-g3-page .sidebar { width: 132px; }
  .notice-g3-page .sidebar-menu-item { gap: 6px; font-size: 12px; padding-right: 6px; }
  .notice-g3-page .sidebar-section-title { padding-left: 12px; }
  .notice-g3-page .topbar-brand { gap: 6px; }
  .notice-g3-page .brand-logo { width: 32px; height: 32px; }
  .notice-g3-page .brand-copy strong { white-space: normal; }
  .notice-g3-page .notice-portal-container { padding: 12px; }
  .notice-g3-page .portal-header-bar { padding: 12px; }
  .notice-g3-page .org-scope-field > select { flex-basis: 100%; width: 100%; min-width: 0; }
  .notice-g3-page .portal-page-title h1 { font-size: 18px; }
  .notice-g3-page .notice-card-header { flex-wrap: wrap; gap: 4px 8px; padding: 12px; }
  .notice-g3-page .notice-item { flex-wrap: wrap; gap: 4px; }
  .notice-g3-page .notice-item-left { flex-basis: 100%; }
  .notice-g3-page .notice-item-right { flex-wrap: wrap; gap: 4px 8px; margin-left: auto; max-width: 100%; }
  .notice-g3-page .notice-item-actions { gap: 12px; }
  .notice-g3-page .modal-backdrop { padding: 12px; }
  .notice-g3-page .modal-dialog { max-height: calc(100dvh - 24px); }
  .notice-g3-page .modal-body { padding: 20px 16px; }
  .notice-g3-page .modal-footer { padding: 0 16px 16px; }
  .notice-g3-page .notice-feedback-dialog .modal-body { padding: 24px 24px 0; }
  .notice-g3-page .notice-feedback-dialog .modal-footer { padding: 24px 16px 20px; }
  .notice-g3-page .org-picker-list { grid-template-columns: minmax(0, 1fr); max-height: 160px; }
  .notice-g3-page .top-switch-wrap { gap: 12px; }
  .notice-g3-page .file-item { flex-wrap: wrap; gap: 4px; }
}
@keyframes notice-g3-modal-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .notice-g3-page .modal-dialog { animation: none; }
  .notice-g3-page :is(.notice-item, .notice-title-text, button, .form-control) { transition: none; }
}
