/* 操作按钮 - 2x2 网格 */
.action-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px;
  margin-top: 130px;
  position: relative;
  z-index: 10;
}

.action-btn {
  height: 56px;
  border-radius: 8px;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.action-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.action-btn:active { transform: translateY(-1px) scale(0.97); }

/* 总工单 - 主色 */
.total-btn {
  background: linear-gradient(135deg, #f56351 0%, #e05341 100%);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}
.total-btn:hover { box-shadow: 0 8px 25px rgba(245, 99, 81, 0.45); }

/* 待处理 - 橙色 */
.pending-btn {
  background: linear-gradient(135deg, #ff9f43 0%, #ee8a2c 100%);
  animation: fadeInUp 0.8s ease-out 0.3s both;
}
.pending-btn:hover { box-shadow: 0 8px 25px rgba(255, 159, 67, 0.45); }

/* 已派单 - 紫色 */
.dispatched-btn {
  background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}
.dispatched-btn:hover { box-shadow: 0 8px 25px rgba(142, 68, 173, 0.45); }

/* 处理中 - 蓝色 */
.processing-btn {
  background: linear-gradient(135deg, #4a90d9 0%, #357abd 100%);
  animation: fadeInUp 0.8s ease-out 0.5s both;
}
.processing-btn:hover { box-shadow: 0 8px 25px rgba(74, 144, 217, 0.45); }

/* 已完成 - 绿色 */
.completed-btn {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  animation: fadeInUp 0.8s ease-out 0.6s both;
}
.completed-btn:hover { box-shadow: 0 8px 25px rgba(46, 204, 113, 0.45); }

/* 按钮右上角数量角标 */
.btn-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #fff;
  color: #f56351;
  font-size: 12px;
  font-weight: 700;
  border-radius: 11px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  line-height: 1;
}

.pending-btn .btn-badge {
  color: #ee8a2c;
}

.dispatched-btn .btn-badge {
  color: #6c3483;
}

.processing-btn .btn-badge {
  color: #357abd;
}

.completed-btn .btn-badge {
  color: #27ae60;
}

/* 排班管理 */
.schedule-page {
  padding-top: 16px;
}

.schedule-summary-card,
.schedule-section-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 14px;
  overflow: hidden;
}

.schedule-summary-card {
  padding: 20px;
  background: linear-gradient(135deg, #f56351 0%, #e05341 100%);
  color: #fff;
}

.schedule-summary-top,
.schedule-section-title,
.schedule-week-item,
.schedule-rule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.schedule-label {
  margin: 0 0 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.schedule-summary-card h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
}

.schedule-status {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
}

.schedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.schedule-summary-grid div {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
}

.schedule-summary-grid span,
.schedule-summary-grid strong {
  display: block;
}

.schedule-summary-grid span {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.schedule-summary-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
}

.schedule-section-card {
  padding: 18px 16px;
}

.schedule-section-title {
  margin-bottom: 14px;
}

.schedule-section-title span {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
}

.schedule-section-title em {
  color: var(--text-light);
  font-size: 12px;
  font-style: normal;
}

.schedule-week-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.schedule-week-switch button {
  height: 24px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(245, 99, 81, 0.1);
  color: #f56351;
  font-size: 11px;
  font-weight: 700;
}

.schedule-week-switch button:active {
  transform: scale(0.96);
}

.schedule-week-list,
.schedule-rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-week-item {
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: #f8f9fa;
  border: 1px solid transparent;
  min-width: 0;
}

.schedule-week-item.today {
  background: rgba(245, 99, 81, 0.08);
  border-color: rgba(245, 99, 81, 0.2);
}

.schedule-week-item.disabled {
  opacity: 0.62;
}

.schedule-day {
  width: 46px;
  flex-shrink: 0;
  text-align: center;
}

.schedule-day strong,
.schedule-day span,
.schedule-person strong,
.schedule-person span,
.schedule-shift strong,
.schedule-shift span,
.schedule-rule-item strong,
.schedule-rule-item span {
  display: block;
}

.schedule-day strong {
  color: var(--text-primary);
  font-size: 14px;
}

.schedule-day span {
  margin-top: 3px;
  color: var(--text-light);
  font-size: 12px;
}

.schedule-person {
  min-width: 0;
  flex: 1;
}

.schedule-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 15px;
}

.schedule-person span {
  margin-top: 4px;
  color: var(--text-light);
  font-size: 12px;
}

.schedule-shift {
  min-width: 96px;
  flex-shrink: 0;
  text-align: right;
}

.schedule-shift strong {
  color: #f56351;
  font-size: 13px;
}

.schedule-week-item.status-work .schedule-shift strong { color: #20c997; }
.schedule-week-item.status-rest .schedule-shift strong { color: #ff9f1c; }
.schedule-week-item.status-holiday .schedule-shift strong { color: #64748b; }
.schedule-week-item.status-empty .schedule-shift strong { color: #cbd5e1; }

.schedule-shift span {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-light);
  font-size: 12px;
}

.schedule-rule-item {
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: #f8f9fa;
  border-left: 4px solid #f56351;
}

.schedule-rule-item.urgent { border-left-color: #ff4757; }
.schedule-rule-item.normal { border-left-color: #4a90d9; }
.schedule-rule-item.swap { border-left-color: #2ecc71; }

.schedule-rule-item strong {
  color: var(--text-primary);
  font-size: 14px;
}

.schedule-rule-item span {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}


/* ==================================================================
   首页新布局 - 与用户端 100% 一致
   选择器从 section.banner.home-page 适配为 #homePageRoot
   ================================================================== */

/* === 页面背景 === */
body:has(#homePageRoot) {
  min-height: 100dvh;
  background: linear-gradient(180deg, #c3cfe2 0%, #f5f7fa 100%);
  background-attachment: fixed;
}

#homePageRoot {
  background: transparent;
  padding: 0 0 24px;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  display: block;
}

/* === Hero 顶部区域 === */
.home-hero {
  padding: calc(25px + var(--app-safe-area-top)) 16px 20px;
  background: transparent;
}

.home-hero-inner {
  position: relative;
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.home-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(60, 90, 120, 0.12);
}

.home-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.home-avatar .is-hidden {
  display: none !important;
}

.home-user-info {
  min-width: 0;
}

.home-hello {
  font-size: 16px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0 0 2px;
  line-height: 1.2;
}

.home-welcome {
  font-size: 12px;
  color: rgba(31, 43, 58, 0.65);
  margin: 0;
  line-height: 1.2;
}

.home-header-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.home-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.55);
  color: #f56351;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  backdrop-filter: blur(6px);
}

.home-icon-btn.has-dot::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5b5b;
  border: 1px solid #fff;
}

/* === 搜索框 === */
.home-search {
  margin-top: 18px;
  height: 44px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
  box-shadow: 0 6px 14px rgba(60, 90, 120, 0.08);
  position: relative;
}

.home-search i {
  color: #f56351;
  font-size: 14px;
}

.home-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  color: #1f2b3a;
}

.home-search input::placeholder {
  color: #98a9bb;
}

.home-search-clear {
  color: #98a9bb;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
}

.home-search-clear.is-hidden {
  display: none;
}

/* 搜索下拉面板 */
.home-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(30, 60, 90, 0.18);
  z-index: 50;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px 0;
}

.home-search-panel.is-hidden {
  display: none;
}

.home-search-empty,
.home-search-loading {
  padding: 22px 16px;
  text-align: center;
  color: #98a9bb;
  font-size: 13px;
}

.home-search-empty.is-hidden,
.home-search-loading.is-hidden {
  display: none;
}

.home-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-search-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f2f4f7;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.home-search-item:last-child {
  border-bottom: none;
}

.home-search-item:hover,
.home-search-item:active,
.home-search-item.active {
  background: #f5faff;
}

.home-search-item .hsi-icon-wrap {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 12px;
  background: #f5faff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ecdc4;
  font-size: 16px;
  flex-shrink: 0;
}

.home-search-item .hsi-content {
  flex: 1;
  min-width: 0;
}

.home-search-item .hsi-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.home-search-item .hsi-title {
  font-size: 14px;
  color: #1f2b3a;
  font-weight: 500;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.home-search-item .hsi-type-label {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f7;
  color: #6b7c92;
  flex-shrink: 0;
}

.home-search-item .hsi-sub {
  margin-top: 3px;
  font-size: 12px;
  color: #98a9bb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-search-item .hsi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7c92;
}

.home-search-item .hsi-order {
  font-family: Menlo, Consolas, monospace;
  color: #4ecdc4;
}

.home-search-item .hsi-status {
  padding: 2px 8px;
  border-radius: 12px;
  background: #eef2f7;
  color: #6b7c92;
  font-size: 11px;
}

.home-search-item .hsi-status.s-pending { background: #fff4e6; color: #ff9500; }
.home-search-item .hsi-status.s-dispatched { background: #e6f4ff; color: #1890ff; }
.home-search-item .hsi-status.s-repairing,
.home-search-item .hsi-status.s-processing { background: #e6fffb; color: #13c2c2; }
.home-search-item .hsi-status.s-pending_confirmation { background: #fff1f0; color: #f5222d; }
.home-search-item .hsi-status.s-completed { background: #f6ffed; color: #52c41a; }
.home-search-item .hsi-status.s-cancelled { background: #f5f5f5; color: #999; }
.home-search-item .hsi-status.s-teal { background: #e0f7fa; color: #00BCD4; }
.home-search-item .hsi-status.s-purple { background: #f3e5f5; color: #AB47BC; }
.home-search-item .hsi-status.s-indigo { background: #e8eaf6; color: #5C6BC0; }
.home-search-item .hsi-status.s-pink { background: #fce4ec; color: #EC407A; }
.home-search-item .hsi-status.s-brown { background: #efebe9; color: #8D6E63; }
.home-search-item .hsi-status.s-lime { background: #f0f4c3; color: #9CCC65; }
.home-search-item .hsi-status.s-in_use { background: #f6ffed; color: #52c41a; }
.home-search-item .hsi-status.s-idle { background: #f5f5f5; color: #999; }
.home-search-item .hsi-status.s-repair { background: #fff7e6; color: #ff9500; }
.home-search-item .hsi-status.s-transfer { background: #e6f4ff; color: #1890ff; }
.home-search-item .hsi-status.s-scrapped { background: #f5f5f5; color: #999; }
.home-search-item .hsi-status.s-news { background: #f6ffed; color: #52c41a; }

.home-search-item .hl {
  font-style: normal;
  color: #ff6b6b;
  background: #fff3cd;
  padding: 0 2px;
  border-radius: 2px;
}

.home-search-item[data-type="asset"] .hsi-icon-wrap {
  background: #fff7e6;
  color: #ff9500;
}

.home-search-item[data-type="asset"] .hsi-type-label {
  background: #fff7e6;
  color: #ff9500;
}

.home-search-item[data-type="help"] .hsi-icon-wrap {
  background: #e6f7ff;
  color: #1890ff;
}

.home-search-item[data-type="help"] .hsi-type-label {
  background: #e6f7ff;
  color: #1890ff;
}

.home-search-item[data-type="news"] .hsi-icon-wrap {
  background: #f6ffed;
  color: #52c41a;
}

.home-search-item[data-type="news"] .hsi-type-label {
  background: #f6ffed;
  color: #52c41a;
}

.home-search-item[data-type="knowledge"] .hsi-icon-wrap {
  background: #f9f0ff;
  color: #722ed1;
}

.home-search-item[data-type="knowledge"] .hsi-type-label {
  background: #f9f0ff;
  color: #722ed1;
}

/* === 主功能卡片区 === */
.home-cards-wrap {
  padding: 0 16px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}

.home-cards-cols {
  align-items: stretch;
}

.home-cards-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.home-card {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(60, 90, 120, 0.08);
  min-height: 72px;
}

.home-card-primary {
  background: linear-gradient(135deg, #b9d4ff 0%, #e6efff 100%);
}

.home-card-sub {
  background: rgba(255, 255, 255, 0.85);
}

.home-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  color: #6c8dfc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(108, 141, 252, 0.18);
}

.home-card-icon.icon-blue { color: #6c8dfc; }
.home-card-icon.icon-green { color: #4ecdc4; }
.home-card-icon.icon-orange { color: #ff9f43; }

.home-card-body { min-width: 0; }

.home-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0 0 4px;
  line-height: 1.2;
}

.home-card-desc {
  font-size: 12px;
  color: #8698ab;
  margin: 0;
  line-height: 1.2;
}

/* === 工单中心卡片 === */
.home-records {
  background: linear-gradient(135deg, #c9dbff 0%, #dee9ff 100%);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 6px 16px rgba(60, 90, 120, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 54px;
}

.records-label {
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.records-label i {
  margin-right: 4px;
}

.home-records-merged .records-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.home-records-merged .records-title {
  font-size: 13px;
  font-weight: 700;
}

.home-records-merged .records-title i {
  margin-right: 4px;
}

.home-records-merged .records-count {
  font-size: 12px;
  font-weight: 600;
}

.home-records-tall {
  flex: 1 1 auto;
}

.home-cards-col:has(.home-records-tall) {
  justify-content: stretch;
  align-items: stretch;
}

/* === 快捷导航 === */
.home-quick-nav {
  margin-top: 18px;
  padding: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-quick-nav::-webkit-scrollbar {
  display: none;
}

.home-quick-page {
  flex: 0 0 100%;
  width: 100%;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s;
}

.quick-item:active {
  transform: scale(0.94);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
}

.quick-icon.color-1 { background: linear-gradient(135deg, #f56351, #e05341); }
.quick-icon.color-2 { background: linear-gradient(135deg, #ffb56b, #ff9540); }
.quick-icon.color-3 { background: linear-gradient(135deg, #6c8dfc, #4a6ef5); }
.quick-icon.color-4 { background: linear-gradient(135deg, #9b8cff, #7a67f0); }
.quick-icon.color-5 { background: linear-gradient(135deg, #f56351, #6c8dfc); }
.quick-icon.color-6 { background: linear-gradient(135deg, #ff8fa3, #ff6b81); }
.quick-icon.color-7 { background: linear-gradient(135deg, #f56351, #e05341); }
.quick-icon.color-8 { background: linear-gradient(135deg, #ffc36a, #f59f2b); }
.quick-icon.color-9 { background: linear-gradient(135deg, #86e2a6, #4dc379); }
.quick-icon.color-10 { background: linear-gradient(135deg, #ff9a76, #ef6c4a); }
.quick-icon.color-11 { background: linear-gradient(135deg, #6ab7ff, #3d8bfd); }

.quick-label {
  font-size: 12px;
  color: #2b3f57;
}

.home-quick-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.home-quick-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(60, 90, 120, 0.25);
  cursor: pointer;
  transition: all 0.2s;
}

.home-quick-dots .dot.active {
  width: 14px;
  border-radius: 3px;
  background: #6c8dfc;
}

/* === 分组标题 === */
.home-section-header {
  margin: 24px 16px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.home-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0;
  line-height: 1.2;
}

.home-section-text {
  position: relative;
  color: #1f2b3a;
  letter-spacing: 0.5px;
}

.home-section-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: linear-gradient(90deg, rgba(108, 141, 252, 0.35) 0%, rgba(108, 141, 252, 0) 100%);
  border-radius: 3px;
  z-index: -1;
}

.home-section-badge {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px 8px 8px 2px;
  background: linear-gradient(135deg, #ff7a59 0%, #ff4d6d 100%);
  letter-spacing: 0.5px;
  transform: translateY(-2px);
}

.home-section-more {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: #8698ab;
  cursor: pointer;
  transition: color 0.2s ease;
}

.home-section-more:hover,
.home-section-more:active {
  color: #6c8dfc;
}

.home-section-more i {
  font-size: 11px;
}

/* === Tab === */
.home-tabs {
  padding: 0 16px;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-tabs::-webkit-scrollbar { display: none; }

.home-tab {
  font-size: 14px;
  color: #6b7c92;
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
}

.home-tab.active {
  color: #1f2b3a;
  font-weight: 700;
}

.home-tab.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: #6c8dfc;
}

.home-tab-more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  color: #8698ab;
  transition: color 0.2s ease;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px;
}

.home-tab-more:hover,
.home-tab-more:active {
  color: #6c8dfc;
}

.home-tab-more.active::after {
  display: none;
}

.home-tab-more i {
  font-size: 14px;
  line-height: 1;
}

.home-tab-more.is-loading i {
  animation: homeNewsRefreshSpin 0.8s linear infinite;
}

@keyframes homeNewsRefreshSpin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === 资讯卡片 (flight-card) === */
.home-flight-list {
  padding: 12px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.flight-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: 0 4px 12px rgba(60, 90, 120, 0.06);
}

.flight-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2b3a;
  margin: 0 0 8px;
}

.flight-time {
  font-size: 13px;
  color: #4c6a8c;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.flight-time .t {
  font-weight: 700;
  color: #1f2b3a;
}

.flight-time .arrow {
  color: #8698ab;
}

.flight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px dashed #eef1f5;
  padding-top: 10px;
}

.flight-meta {
  font-size: 12px;
  color: #8698ab;
}

.flight-action {
  height: 28px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid #dfe6ee;
  background: #fff;
  color: #4c6a8c;
  font-size: 12px;
  cursor: pointer;
}

.flight-detail {
  font-size: 13px;
  line-height: 1.7;
  color: #4a5b6f;
  background: #f7f9fc;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 10px;
  max-height: 500px;
  overflow: auto;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease, margin 0.2s ease;
  word-break: break-word;
  white-space: normal;
}

.flight-detail.is-hidden {
  display: none !important;
}

.flight-detail-empty {
  color: #99a5b3;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spinRotate 0.8s linear infinite;
}

@keyframes spinRotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.flight-card.is-expanded {
  box-shadow: 0 6px 18px rgba(60, 90, 120, 0.1);
}

/* 资讯卡片缩略图 */
.flight-card.has-thumb .flight-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.flight-card.has-thumb .flight-card-body {
  flex: 1;
  min-width: 0;
}

.flight-card.has-thumb .flight-footer {
  margin-top: 10px;
  justify-content: flex-start;
  gap: 12px;
}

.flight-card.has-thumb .flight-meta {
  margin-right: auto;
}

.flight-thumb {
  flex: none;
  width: 96px;
  min-width: 96px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: #f2f4f7;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flight-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flight-thumb.is-fallback[data-src="baidu"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}

.flight-thumb.is-fallback[data-src="baidu"]::after {
  content: '百度';
  color: #4ecdc4;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.flight-thumb.is-fallback[data-src="weibo"] {
  background: linear-gradient(135deg, #fff1f0 0%, #ffd8d5 100%);
}

.flight-thumb.is-fallback[data-src="weibo"]::after {
  content: '微博';
  color: #ff4d4f;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* 知识库分类占位图 */
.flight-thumb.is-fallback.kb {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flight-thumb.is-fallback.kb svg {
  width: 36px;
  height: 36px;
  opacity: 0.85;
}
.flight-thumb.is-fallback.kb[data-category="问答"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}
.flight-thumb.is-fallback.kb[data-category="问答"] svg { color: #4ecdc4; }
.flight-thumb.is-fallback.kb[data-category="热门"] {
  background: linear-gradient(135deg, #fff1f0 0%, #ffd8d5 100%);
}
.flight-thumb.is-fallback.kb[data-category="热门"] svg { color: #ff6b6b; }
.flight-thumb.is-fallback.kb[data-category="推荐"] {
  background: linear-gradient(135deg, #fff9d9 0%, #ffe580 100%);
}
.flight-thumb.is-fallback.kb[data-category="推荐"] svg { color: #d4a017; }
.flight-thumb.is-fallback.kb[data-category="全部"] {
  background: linear-gradient(135deg, #ede7ff 0%, #d3c5ff 100%);
}
.flight-thumb.is-fallback.kb[data-category="全部"] svg { color: #6c5ce7; }
.flight-thumb.is-fallback.kb[data-category="新闻资讯"] {
  background: linear-gradient(135deg, #eef8f7 0%, #d6f3f0 100%);
}
.flight-thumb.is-fallback.kb[data-category="新闻资讯"] svg { color: #4ecdc4; }
.flight-thumb.is-fallback.kb[data-category="帮助文档"] {
  background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
}
.flight-thumb.is-fallback.kb[data-category="帮助文档"] svg { color: #1890ff; }
.flight-thumb.is-fallback.kb[data-category="平台公告"] {
  background: linear-gradient(135deg, #fff7e6 0%, #ffd591 100%);
}
.flight-thumb.is-fallback.kb[data-category="平台公告"] svg { color: #fa8c16; }

/* === 待办中心卡片 (home-todo) === */
.home-records.home-todo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf3ff 0%, #f5ecff 55%, #ffeef5 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 12px;
  gap: 10px;
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  box-shadow:
    0 8px 20px rgba(80, 110, 160, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-records.home-todo::before {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(78, 205, 196, 0.32), rgba(78, 205, 196, 0) 70%);
  pointer-events: none;
}

.home-records.home-todo::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 149, 178, 0.26), rgba(255, 149, 178, 0) 70%);
  pointer-events: none;
}

.home-records.home-todo:active {
  transform: scale(0.985);
  box-shadow: 0 4px 12px rgba(80, 110, 160, 0.12);
}

.home-records.home-todo .records-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(76, 106, 140, 0.18);
  min-width: 0;
}

.home-records.home-todo .records-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  color: #1f2b3a;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-records.home-todo .records-title i {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  margin-right: 0;
  border-radius: 6px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3ac 100%);
  box-shadow: 0 3px 6px rgba(78, 205, 196, 0.4);
}

.home-records.home-todo .records-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: #ff6b6b;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.22);
  line-height: 1;
  white-space: nowrap;
}

.home-records.home-todo .record-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}

.home-records.home-todo .record-tag {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #4c6a8c;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(60, 90, 120, 0.08);
  cursor: pointer;
  white-space: nowrap;
  flex: 1 1 0;
  min-height: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.home-records.home-todo .record-tag::before {
  content: "";
  flex: 0 0 auto;
  order: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

.home-records.home-todo .record-tag::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  flex: 0 0 auto;
  margin-left: 2px;
  font-size: 10px;
  color: #9db1c8;
  transition: transform 0.18s ease, color 0.18s ease;
}

.home-records.home-todo .record-tag .rt-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-records.home-todo .record-tag .rt-num {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 18px;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3ac 100%);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.35);
}

.home-records.home-todo .record-tag[data-todo="pending"] .rt-num {
  background: linear-gradient(135deg, #ffb266 0%, #ff9f43 100%);
  box-shadow: 0 2px 4px rgba(255, 159, 67, 0.4);
}

.home-records.home-todo .record-tag[data-todo="pending_confirmation"] .rt-num {
  background: linear-gradient(135deg, #4ecdc4 0%, #44b3ac 100%);
  box-shadow: 0 2px 4px rgba(78, 205, 196, 0.4);
}

.home-records.home-todo .record-tag[data-todo="unrated"] .rt-num {
  background: linear-gradient(135deg, #b79cff 0%, #a78bfa 100%);
  box-shadow: 0 2px 4px rgba(167, 139, 250, 0.4);
}

.home-records.home-todo .record-tag[data-todo="pending"]::before {
  background: #ff9f43;
  box-shadow: 0 0 0 2px rgba(255, 159, 67, 0.22);
}

.home-records.home-todo .record-tag[data-todo="pending_confirmation"]::before {
  background: #4ecdc4;
  box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.22);
}

.home-records.home-todo .record-tag[data-todo="unrated"]::before {
  background: #a78bfa;
  box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.24);
}

.home-records.home-todo .record-tag:hover,
.home-records.home-todo .record-tag:active {
  background: #fff;
  color: #1f2b3a;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(60, 90, 120, 0.14);
}

.home-records.home-todo .record-tag:hover::after,
.home-records.home-todo .record-tag:active::after {
  color: #4ecdc4;
  transform: translateX(2px);
}

/* === 详情页底部间距 === */
.page-content {
  padding-bottom: 100px;
}

@media (max-width: 360px) {
  .home-records.home-todo .records-title {
    font-size: 12px;
  }
  .home-records.home-todo .record-tag {
    font-size: 11px;
    padding: 5px 8px;
  }
}

/* ==================================================================
   工单卡片升级样式 - 参考用户端
   ================================================================== */
.repair-order-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.repair-order-card:active {
  transform: scale(0.985);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* 已完成订单特殊样式 */
.repair-order-card.order-completed {
  background: #fff;
  border: 1px solid var(--border-color);
}

.repair-order-card.order-completed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #ddd;
  border-radius: 4px 0 0 4px;
}

/* 已撤销订单样式 */
.repair-order-card.order-cancelled {
  opacity: 0.72;
  border: 1px solid rgba(244, 67, 54, 0.08);
}

.repair-order-card.order-cancelled::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: #cbd5e1;
  border-radius: 4px 0 0 4px;
}

/* 卡片头部 */
.repair-order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.repair-order-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.repair-order-no {
  font-size: 16px;
  font-weight: 700;
  color: #f56351;
  letter-spacing: 0.3px;
}

.repair-order-priority {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.repair-order-time-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.repair-order-time {
  font-size: 12px;
  color: #98a9bb;
}

/* 已完成标记 */
.order-completed-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(102, 187, 106, 0.15);
  flex-shrink: 0;
  animation: completedPopIn 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes completedPopIn {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* 卡片主体 */
.repair-order-body {
  margin-bottom: 12px;
}

.repair-order-company {
  font-size: 15px;
  font-weight: 600;
  color: #1f2b3a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.repair-order-info {
  font-size: 13px;
  color: #6b7c92;
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repair-order-area {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #8698ab;
  margin-bottom: 4px;
  line-height: 1.4;
}

.repair-order-area svg {
  flex-shrink: 0;
}

/* 进度条 */
.repair-progress-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px 0;
  margin-top: 8px;
  gap: 0;
}

.repair-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.repair-progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0e6ee;
  border: 2px solid #e0e6ee;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.repair-progress-step.step-0.done .repair-progress-dot {
  background: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.repair-progress-step.step-1.done .repair-progress-dot {
  background: #f97316;
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.repair-progress-step.step-2.done .repair-progress-dot {
  background: #a855f7;
  border-color: #a855f7;
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.repair-progress-step.step-3.done .repair-progress-dot {
  background: #22c55e;
  border-color: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.repair-progress-label {
  font-size: 10px;
  color: #b0bec5;
  white-space: nowrap;
  transition: color 0.3s ease;
  font-weight: 600;
}

.repair-progress-step.step-0.done .repair-progress-label {
  color: #3b82f6;
}

.repair-progress-step.step-1.done .repair-progress-label {
  color: #f97316;
}

.repair-progress-step.step-2.done .repair-progress-label {
  color: #a855f7;
}

.repair-progress-step.step-3.done .repair-progress-label {
  color: #22c55e;
}

.repair-progress-line {
  width: 100%;
  height: 2px;
  background: #e0e6ee;
  flex: 1;
  min-width: 10px;
  margin: 0 2px;
  margin-bottom: 18px;
  border-radius: 1px;
  position: relative;
  z-index: 0;
  transition: background 0.3s ease;
}

.repair-progress-step.step-0.done ~ .repair-progress-line {
  background: #ddd;
}

.repair-progress-step.step-1.done ~ .repair-progress-line {
  background: #f97316;
}

.repair-progress-step.step-2.done ~ .repair-progress-line {
  background: #a855f7;
}

/* 卡片底部 */
.repair-order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #f0f2f5;
}

.repair-order-reporter {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #8698ab;
}

.repair-order-reporter svg {
  flex-shrink: 0;
}

.repair-order-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* ==================================================================
   排班管理样式优化
   ================================================================== */
.schedule-summary-card {
  transition: transform 0.2s ease;
}

.schedule-summary-card:active {
  transform: scale(0.985);
}

.schedule-week-item {
  transition: all 0.2s ease;
}

.schedule-week-item:active {
  transform: scale(0.98);
}

.schedule-week-item.today {
  box-shadow: 0 2px 12px rgba(245, 99, 81, 0.12);
}

.schedule-week-item.today .schedule-day strong {
  color: #f56351;
  font-weight: 800;
}

.schedule-week-item.today .schedule-day {
  background: rgba(245, 99, 81, 0.12);
  border-radius: 10px;
  padding: 8px 4px;
}

/* ==================================================================
   空状态与列表加载
   ================================================================== */
.repair-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  color: #b0bec5;
}

.repair-empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.45;
}

.repair-empty-state p {
  font-size: 14px;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  .repair-order-card {
    background: #1e1e32;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .repair-order-card.order-completed {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .repair-order-card.order-completed::before {
    background: #444;
  }

  .repair-order-no { color: #ff8a80; }
  .repair-order-company { color: #e0e0e0; }
  .repair-order-info { color: #a0aec0; }
  .repair-order-area { color: #8899aa; }
  .repair-order-reporter { color: #8899aa; }
  .repair-order-footer { border-color: rgba(255, 255, 255, 0.06); }
  .repair-order-time { color: #718096; }

  .repair-progress-dot {
    background: #2d3048;
    border-color: #2d3048;
  }

  .repair-progress-line {
    background: #2d3048;
  }

  .repair-progress-step.step-0.done .repair-progress-dot {
    background: #60a5fa;
    border-color: #60a5fa;
  }

  .repair-progress-step.step-1.done .repair-progress-dot {
    background: #fb923c;
    border-color: #fb923c;
  }

  .repair-progress-step.step-2.done .repair-progress-dot {
    background: #c084fc;
    border-color: #c084fc;
  }

  .repair-progress-step.step-3.done .repair-progress-dot {
    background: #4ade80;
    border-color: #4ade80;
  }

  .repair-progress-step.step-0.done .repair-progress-label {
    color: #60a5fa;
  }

  .repair-progress-step.step-1.done .repair-progress-label {
    color: #fb923c;
  }

  .repair-progress-step.step-2.done .repair-progress-label {
    color: #c084fc;
  }

  .repair-progress-step.step-3.done .repair-progress-label {
    color: #4ade80;
  }

  .repair-progress-step.step-0.done ~ .repair-progress-line {
    background: #60a5fa;
  }

  .repair-progress-step.step-1.done ~ .repair-progress-line {
    background: #fb923c;
  }

  .repair-progress-step.step-2.done ~ .repair-progress-line {
    background: #c084fc;
  }
}

/* ===== 工单列表 loading / empty ===== */
.repair-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #90a4ae;
  font-size: 13px;
}
.repair-loading .spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e0e0e0;
  border-top-color: #f56351;
  border-radius: 50%;
  animation: repair-spin 0.7s linear infinite;
}
@keyframes repair-spin {
  to { transform: rotate(360deg); }
}
.repair-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #b0bec5;
  font-size: 14px;
}
.repair-empty p {
  margin: 0;
}

/* ==================== 资讯详情页 ==================== */
#pageNewsDetail .detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: none;
}
#pageNewsDetail .detail-back-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}
#pageNewsDetail .detail-back-btn:active {
  background: transparent;
  transform: scale(0.95);
}
#pageNewsDetail .detail-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
}
#pageNewsDetail .detail-header-spacer {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#pageNewsDetail .detail-header-spacer .icon {
  width: 24px;
  height: 24px;
}
#pageNewsDetail .page-content-inner {
  box-shadow: var(--shadow-sm);
}

.news-detail {
  padding: 4px 2px 24px;
}
.news-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 12px;
}
.news-detail-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f2f4f7;
  color: #666;
}
.news-detail-badge.baidu {
  background: #eef8f7;
  color: #4ecdc4;
}
.news-detail-badge.weibo {
  background: #fff1f0;
  color: #ff4d4f;
}
.news-detail-badge.rank {
  background: #fff7e6;
  color: #ff7a45;
}
.news-detail-badge.hot {
  background: #fff0f0;
  color: #ff4d4f;
}
.news-detail-title {
  font-size: 22px;
  font-weight: 700;
  color: #1f2b3a;
  line-height: 1.4;
  margin: 0 0 10px;
  word-break: break-word;
}
.news-detail-meta {
  font-size: 12px;
  color: #999;
  margin: 0 0 16px;
}
.news-detail-cover {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 16px;
  background: #f2f4f7;
}
.news-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.news-detail-content {
  font-size: 15px;
  color: #333;
  line-height: 1.75;
  word-break: break-word;
}
.news-detail-actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.news-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #4ecdc4;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(78, 205, 196, 0.35);
}
.news-detail-link:hover {
  background: #3fb8b0;
}
