/* ============================================================
   内容日历页样式(2026-11-03 新增)
   ------------------------------------------------------------
   作用域:全部规则前缀 .cc-page,只影响本页,不改 admin.css /
           ui-refresh.css / mobile-layer.css / tablet-layer.css
   断点:桌面默认;≤1023px 单列;≤767px 手机端(单列 + 折叠工具条 +
         左右大按钮周导航 + ≥44px 触控区)
   ============================================================ */

.cc-page {
  --cc-surface: var(--card, #fff);
  --cc-line: var(--line, #e6f2ed);
  --cc-ink: var(--ink, #163a2d);
  --cc-ink2: var(--ink-2, #497263);
  --cc-ink3: var(--ink-3, #73988a);
  --cc-brand: var(--green, #14A178);
  --cc-soft: #E9F7F1;
  --cc-spring-bg: #FFF8E1;
  --cc-spring-line: #F3C969;
  --cc-mark: #FFF1A8;
  --cc-shadow: 0 2px 14px rgba(22, 58, 45, .05);
  max-width: 100%;
}

[data-theme="dark"] .cc-page {
  --cc-soft: rgba(20, 161, 120, .16);
  --cc-spring-bg: rgba(243, 201, 105, .12);
  --cc-spring-line: rgba(243, 201, 105, .5);
  --cc-mark: rgba(243, 201, 105, .38);
  --cc-shadow: 0 2px 14px rgba(0, 0, 0, .25);
}

.cc-page * { box-sizing: border-box; }
.cc-page .cc-tip {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid var(--cc-spring-line);
  background: var(--cc-spring-bg);
  color: var(--cc-ink);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* ---------- 工具条 ---------- */
.cc-page .cc-toolbar {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  box-shadow: var(--cc-shadow);
  padding: 14px 16px;
  margin-bottom: 14px;
  min-width: 0;
}

.cc-page .cc-weeknav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}
.cc-page .cc-navbtn {
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--cc-line);
  background: var(--cc-surface);
  color: var(--cc-ink);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.cc-page .cc-navbtn:hover { border-color: var(--cc-brand); color: var(--cc-brand); background: var(--cc-soft); }
.cc-page .cc-navbtn:active { transform: translateY(1px); }
.cc-page .cc-weekmid { min-width: 0; flex: 1 1 260px; }
.cc-page .cc-select {
  width: 100%;
  max-width: 380px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: var(--cc-surface);
  color: var(--cc-ink);
  font-size: 13.5px;
  font-family: inherit;
}
.cc-page .cc-select:focus,
.cc-page .cc-search input:focus { outline: none; border-color: var(--cc-brand); box-shadow: 0 0 0 3px rgba(20, 161, 120, .18); }
.cc-page .cc-weeklabel { display: none; }
.cc-page .cc-todaybtn {
  height: 40px;
  padding: 0 16px;
  margin-left: auto;
  border: 1px solid var(--cc-brand);
  background: var(--cc-brand);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cc-page .cc-todaybtn:hover { filter: brightness(.94); }
.cc-page .cc-mfilter-btn { display: none; }

.cc-page .cc-filters {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--cc-line);
  min-width: 0;
}
.cc-page .cc-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 300px;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: var(--cc-surface);
}
.cc-page .cc-search-ico { font-size: 14px; opacity: .7; }
.cc-page .cc-search input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--cc-ink);
  font-size: 14px;
  font-family: inherit;
}
.cc-page .cc-search input::-webkit-search-cancel-button { cursor: pointer; }
.cc-page .cc-ctrl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cc-page .cc-lbl { font-size: 13px; color: var(--cc-ink3); white-space: nowrap; }
.cc-page .cc-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.cc-page .cc-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--cc-line);
  background: var(--cc-surface);
  color: var(--cc-ink2);
  border-radius: 99px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.cc-page .cc-chip:hover { border-color: var(--cc-brand); color: var(--cc-brand); }
.cc-page .cc-chip.on { background: var(--cc-brand); border-color: var(--cc-brand); color: #fff; }

.cc-page .cc-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  min-height: 32px;
}
.cc-page .cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-page .cc-track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 99px;
  background: #d7e5df;
  transition: background .16s ease;
  flex: 0 0 auto;
}
.cc-page .cc-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .16s ease;
}
.cc-page .cc-switch input:checked + .cc-track { background: var(--cc-brand); }
.cc-page .cc-switch input:checked + .cc-track .cc-thumb { transform: translateX(18px); }
.cc-page .cc-switch-txt { font-size: 13px; color: var(--cc-ink2); white-space: nowrap; }

/* ---------- 页签 ---------- */
.cc-page .cc-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--cc-line);
  margin-bottom: 14px;
  min-width: 0;
}
.cc-page .cc-tab {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--cc-ink2);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.cc-page .cc-tab:hover { color: var(--cc-brand); }
.cc-page .cc-tab.on { color: var(--cc-brand); border-bottom-color: var(--cc-brand); font-weight: 600; }

/* ---------- 周头部 ---------- */
.cc-page .cc-weekhead {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  box-shadow: var(--cc-shadow);
  padding: 16px 18px;
  margin-bottom: 12px;
  min-width: 0;
}
.cc-page .cc-wh-main { flex: 1 1 420px; min-width: 0; }
.cc-page .cc-wh-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.cc-page .cc-wh-week { font-size: 20px; font-weight: 700; color: var(--cc-ink); }
.cc-page .cc-wh-range { font-size: 13px; color: var(--cc-ink2); }
.cc-page .cc-badge-cur,
.cc-page .cc-tag {
  display: inline-block;
  font-size: 12px;
  line-height: 1.5;
  padding: 1px 8px;
  border-radius: 99px;
  border: 1px solid var(--cc-line);
  white-space: nowrap;
}
.cc-page .cc-badge-cur { background: var(--cc-soft); color: var(--cc-brand); border-color: var(--cc-brand); font-weight: 600; }
.cc-page .cc-wh-event { margin-top: 6px; font-size: 13.5px; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc-page .cc-wh-task { margin-top: 4px; font-size: 13px; color: var(--cc-ink2); overflow-wrap: anywhere; }
.cc-page .cc-heat {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  font-size: 12.5px;
  color: var(--cc-ink3);
  padding: 6px 10px;
  background: var(--cc-soft);
  border-radius: 10px;
}
.cc-page .cc-stars { color: #E6A23C; letter-spacing: 1px; font-size: 13px; }
.cc-page .cc-heat-num { color: var(--cc-ink2); }

/* ---------- 结果条 / 卡片 ---------- */
.cc-page .cc-resultbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--cc-ink2);
  margin-bottom: 10px;
  min-width: 0;
}
.cc-page .cc-resultbar b { color: var(--cc-brand); }
.cc-page .cc-clear-inline,
.cc-page .cc-clear {
  border: 1px solid var(--cc-brand);
  background: transparent;
  color: var(--cc-brand);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.cc-page .cc-clear-inline:hover,
.cc-page .cc-clear:hover { background: var(--cc-soft); }

.cc-page .cc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.cc-page .cc-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  box-shadow: var(--cc-shadow);
  overflow: hidden;
}
.cc-page .cc-card-spring { border-color: var(--cc-spring-line); }
.cc-page .cc-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--cc-line);
  min-width: 0;
}
.cc-page .cc-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--cc-brand);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex: 0 0 auto;
}
.cc-page .cc-card-range { font-size: 12.5px; color: var(--cc-ink2); overflow-wrap: anywhere; }
.cc-page .cc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.cc-page .cc-tag { background: var(--cc-soft); color: var(--cc-ink2); }
.cc-page .cc-tag-spring { background: var(--cc-spring-bg); color: #8A6A00; border-color: var(--cc-spring-line); }
[data-theme="dark"] .cc-page .cc-tag-spring { color: #F3C969; }
.cc-page .cc-tag-est { background: rgba(230, 162, 60, .12); color: #9A6500; border-color: rgba(230, 162, 60, .4); }
[data-theme="dark"] .cc-page .cc-tag-est { color: #E8C96A; }
.cc-page .cc-tag-pending { background: rgba(230, 71, 61, .1); color: #B3271F; border-color: rgba(230, 71, 61, .35); }
[data-theme="dark"] .cc-page .cc-tag-pending { color: #F08A8A; }
.cc-page .cc-springbar {
  padding: 8px 14px;
  background: var(--cc-spring-bg);
  border-bottom: 1px solid var(--cc-spring-line);
  color: #8A6A00;
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
[data-theme="dark"] .cc-page .cc-springbar { color: #F3C969; }

.cc-page .cc-fields { display: flex; flex-direction: column; gap: 0; padding: 4px 0; min-width: 0; }
.cc-page .cc-field {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 14px;
  border-bottom: 1px dashed var(--cc-line);
  min-width: 0;
}
.cc-page .cc-field:last-child { border-bottom: 0; }
.cc-page .cc-field-lbl { font-size: 12.5px; color: var(--cc-ink3); min-width: 0; }
.cc-page .cc-field-val { font-size: 13.5px; color: var(--cc-ink); line-height: 1.6; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.cc-page .cc-field-val.cc-topic { font-weight: 600; }
.cc-page .cc-card-foot {
  margin-top: auto;
  padding: 9px 14px;
  border-top: 1px solid var(--cc-line);
  font-size: 12px;
  color: var(--cc-ink3);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cc-page .cc-src-chips { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-left: 6px; vertical-align: middle; }
.cc-page .cc-src-chip {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--cc-soft);
  color: var(--cc-brand);
  font-size: 11.5px;
  cursor: default;
}

.cc-page .cc-pr {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.cc-page .cc-pr-must { background: rgba(230, 71, 61, .1); color: #C0392B; }
.cc-page .cc-pr-rec { background: rgba(230, 162, 60, .14); color: #9A6500; }
.cc-page .cc-pr-opt { background: var(--cc-soft); color: var(--cc-ink2); }
[data-theme="dark"] .cc-page .cc-pr-must { color: #F08A8A; }
[data-theme="dark"] .cc-page .cc-pr-rec { color: #E8C96A; }

.cc-page .cc-mark { background: var(--cc-mark); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- 空态 ---------- */
.cc-page .cc-empty {
  background: var(--cc-surface);
  border: 1px dashed var(--cc-line);
  border-radius: 16px;
  padding: 44px 18px;
  text-align: center;
}
.cc-page .cc-empty-ico { font-size: 34px; }
.cc-page .cc-empty-title { margin-top: 8px; font-size: 16px; font-weight: 600; color: var(--cc-ink); }
.cc-page .cc-empty-desc { margin: 6px auto 14px; max-width: 560px; font-size: 13px; color: var(--cc-ink3); line-height: 1.7; overflow-wrap: anywhere; }

/* ---------- 逐日细化 ---------- */
.cc-page .cc-dtable {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cc-shadow);
  min-width: 0;
}
.cc-page .cc-dhead,
.cc-page .cc-drow {
  display: grid;
  grid-template-columns: 88px minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1.6fr) 78px 92px 68px 84px;
  gap: 8px;
  align-items: start;
  padding: 10px 14px;
  min-width: 0;
}
.cc-page .cc-dhead {
  background: var(--cc-soft);
  font-size: 12px;
  color: var(--cc-ink2);
  font-weight: 600;
  border-bottom: 1px solid var(--cc-line);
}
.cc-page .cc-drow { border-bottom: 1px dashed var(--cc-line); }
.cc-page .cc-drow:last-child { border-bottom: 0; }
.cc-page .cc-dcell { min-width: 0; }
.cc-page .cc-dlbl { display: none; }
.cc-page .cc-dval { display: block; font-size: 12.5px; color: var(--cc-ink); line-height: 1.6; overflow-wrap: anywhere; word-break: break-word; }
.cc-page .cc-weekcell b { color: var(--cc-brand); }

/* ---------- 62 周热度 ---------- */
.cc-page .cc-heatlist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.cc-page .cc-heatrow {
  display: grid;
  grid-template-columns: 62px 156px 132px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  background: var(--cc-surface);
  color: var(--cc-ink);
  font-family: inherit;
  cursor: pointer;
  min-width: 0;
}
.cc-page .cc-heatrow:hover { border-color: var(--cc-brand); background: var(--cc-soft); }
.cc-page .cc-heatrow.on { border-color: var(--cc-brand); box-shadow: inset 3px 0 0 var(--cc-brand); }
.cc-page .cc-hr-week { font-weight: 700; color: var(--cc-brand); font-size: 13.5px; }
.cc-page .cc-hr-date { font-size: 12px; color: var(--cc-ink2); }
.cc-page .cc-hr-bar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cc-page .cc-hr-track { flex: 1 1 auto; height: 8px; border-radius: 99px; background: var(--cc-line); overflow: hidden; min-width: 40px; }
.cc-page .cc-hr-fill { display: block; height: 100%; border-radius: 99px; }
.cc-page .cc-hr-fill.low { background: #9BB7AC; }
.cc-page .cc-hr-fill.mid { background: #E6A23C; }
.cc-page .cc-hr-fill.high { background: #E6473D; }
.cc-page .cc-hr-num { font-size: 11.5px; color: var(--cc-ink3); white-space: nowrap; }
.cc-page .cc-hr-event { font-size: 12.5px; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc-page .cc-hr-task { font-size: 12.5px; color: var(--cc-ink2); overflow-wrap: anywhere; }

/* ---------- 来源与推定 ---------- */
.cc-page .cc-srcnote {
  padding: 10px 14px;
  border: 1px solid var(--cc-line);
  border-radius: 10px;
  background: var(--cc-surface);
  color: var(--cc-ink2);
  font-size: 12.5px;
  line-height: 1.7;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.cc-page .cc-src-list {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--cc-shadow);
}
.cc-page .cc-src-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(0, auto);
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px dashed var(--cc-line);
  align-items: center;
  min-width: 0;
}
.cc-page .cc-src-row:last-child { border-bottom: 0; }
.cc-page .cc-src-code {
  font-size: 12px;
  font-weight: 700;
  color: var(--cc-brand);
  background: var(--cc-soft);
  border-radius: 6px;
  text-align: center;
  padding: 2px 0;
}
.cc-page .cc-src-name { font-size: 13px; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc-page .cc-src-link { font-size: 12px; color: var(--cc-brand); text-decoration: none; overflow-wrap: anywhere; }
.cc-page .cc-src-link:hover { text-decoration: underline; }
.cc-page .cc-src-sub { margin: 18px 0 10px; font-size: 15px; color: var(--cc-ink); }
.cc-page .cc-assume { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-page .cc-assume-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-line);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.cc-page .cc-as-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.cc-page .cc-as-head b { font-size: 13.5px; color: var(--cc-ink); overflow-wrap: anywhere; }
.cc-page .cc-risk { font-size: 11.5px; padding: 1px 8px; border-radius: 99px; white-space: nowrap; }
.cc-page .cc-risk-high { background: rgba(230, 71, 61, .12); color: #C0392B; }
.cc-page .cc-risk-mid { background: rgba(230, 162, 60, .14); color: #9A6500; }
.cc-page .cc-risk-low { background: var(--cc-soft); color: var(--cc-ink2); }
[data-theme="dark"] .cc-page .cc-risk-high { color: #F08A8A; }
[data-theme="dark"] .cc-page .cc-risk-mid { color: #E8C96A; }
.cc-page .cc-as-row { margin-top: 6px; font-size: 12.5px; color: var(--cc-ink2); line-height: 1.6; overflow-wrap: anywhere; }
.cc-page .cc-as-row span { display: inline-block; min-width: 42px; color: var(--cc-ink3); }

/* ---------- ≤1023px:单列(平板/窄屏,避免三列挤压) ---------- */
@media (max-width: 1023px) {
  .cc-page .cc-cards { grid-template-columns: minmax(0, 1fr); }
  .cc-page .cc-assume { grid-template-columns: minmax(0, 1fr); }
  .cc-page .cc-heatrow { grid-template-columns: 56px 140px 120px minmax(0, 1fr); }
  .cc-page .cc-hr-task { grid-column: 1 / -1; }
}

/* ============================================================
   ≤767px 手机端
   ============================================================ */
@media (max-width: 767px) {
  .cc-page .cc-toolbar { padding: 12px; border-radius: 14px; }
  .cc-page .cc-weeknav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }
  .cc-page .cc-navbtn {
    min-height: 48px;
    height: auto;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
  }
  .cc-page .cc-navtxt { display: none; }
  .cc-page .cc-navnext { grid-column: 3; }
  .cc-page .cc-weekmid {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 4px 6px;
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    background: var(--cc-surface);
  }
  .cc-page .cc-select { display: none; }
  .cc-page .cc-weeklabel {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--cc-ink);
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .cc-page .cc-wl-date { font-size: 10.5px; font-weight: 400; color: var(--cc-ink3); white-space: nowrap; }
  .cc-page .cc-todaybtn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
    height: auto;
    margin-left: 0;
    font-size: 14px;
  }
  .cc-page .cc-mfilter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 44px;
    margin-top: 10px;
    border: 1px solid var(--cc-line);
    border-radius: 10px;
    background: var(--cc-surface);
    color: var(--cc-ink);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
  }
  .cc-page .cc-mfilter-btn[aria-expanded="true"] { border-color: var(--cc-brand); color: var(--cc-brand); }
  .cc-page .cc-toolbar.cc-collapsed .cc-filters { display: none; }

  .cc-page .cc-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 10px;
  }
  .cc-page .cc-search { flex: 0 0 auto; height: 44px; }
  .cc-page .cc-search input { font-size: 16px; } /* 防止 iOS 聚焦自动缩放 */
  .cc-page .cc-ctrl { flex-wrap: wrap; gap: 6px; }
  .cc-page .cc-chip { min-height: 44px; padding: 0 16px; font-size: 14px; }
  .cc-page .cc-switch { min-height: 44px; }
  .cc-page .cc-track { width: 46px; height: 26px; }
  .cc-page .cc-thumb { width: 20px; height: 20px; }
  .cc-page .cc-switch input:checked + .cc-track .cc-thumb { transform: translateX(20px); }

  .cc-page .cc-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cc-page .cc-tabs::-webkit-scrollbar { display: none; }
  .cc-page .cc-tab { flex: 0 0 auto; min-height: 44px; padding: 0 14px; font-size: 14px; }

  .cc-page .cc-weekhead { padding: 13px 14px; gap: 10px; }
  .cc-page .cc-wh-week { font-size: 18px; }
  .cc-page .cc-heat { width: 100%; justify-content: center; }

  .cc-page .cc-field { grid-template-columns: 88px minmax(0, 1fr); padding: 8px 12px; }
  .cc-page .cc-card-head { padding: 11px 12px; }
  .cc-page .cc-card-range { flex: 1 1 100%; order: 3; }
  .cc-page .cc-tags { margin-left: 0; }
  .cc-page .cc-card-foot { padding: 9px 12px; }

  .cc-page .cc-dhead { display: none; }
  .cc-page .cc-drow {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 14px;
  }
  .cc-page .cc-dcell {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
  }
  .cc-page .cc-dlbl { display: block; font-size: 12px; color: var(--cc-ink3); }
  .cc-page .cc-dval { font-size: 13px; }

  .cc-page .cc-heatrow {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 12px 14px;
  }
  .cc-page .cc-hr-week,
  .cc-page .cc-hr-date,
  .cc-page .cc-hr-bar,
  .cc-page .cc-hr-event,
  .cc-page .cc-hr-task { grid-column: 1 / -1; }
  .cc-page .cc-hr-date { font-size: 11.5px; }

  .cc-page .cc-src-row { grid-template-columns: 44px minmax(0, 1fr); }
  .cc-page .cc-src-link { grid-column: 1 / -1; }
  .cc-page .cc-empty { padding: 34px 14px; }
  .cc-page .cc-empty-desc { font-size: 12.5px; }
}

/* 触控与动效降级 */
@media (prefers-reduced-motion: reduce) {
  .cc-page .cc-navbtn,
  .cc-page .cc-chip,
  .cc-page .cc-track,
  .cc-page .cc-thumb { transition: none; }
}

/* ============================================================
   2026-11-03:并入「日历视图」+ 朋友圈入口
   ------------------------------------------------------------
   1) .cal-viewswitch 是日历视图顶部的「排期 / 内容日历」胶囊切换。
      样式刻意放在本文件(而不是改 admin.css / ui-refresh.css),
      前缀 .cal- 相互独立,不影响原日历任何既有规则。
   2) .cc-embedded 是内容日历嵌入日历视图时的外壳;不做内部滚动,
      滚动统一交给 #content,避免出现双层滚动条。
   ============================================================ */
.cal-viewswitch {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 14px;
  padding: 4px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #e6f2ed);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(22, 58, 45, .05);
  box-sizing: border-box;
}
.cal-vs-btn {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 7px 16px;
  min-height: 34px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink-2, #497263);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.cal-vs-btn:hover:not(.on) { background: var(--green-light, #E7F7F0); color: var(--green, #14A178); }
.cal-vs-btn.on {
  background: linear-gradient(135deg, #3DBE95, #14A178);
  color: #fff;
  font-weight: 600;
}
.cal-vs-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 161, 120, .22); }

/* 嵌入态:不再额外套一层滚动容器;只保证宽度不溢出 */
.cc-page.cc-embedded {
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}
.cc-page.cc-embedded .cc-card-clickable,
.cc-page.cc-embedded .cc-card-field { min-width: 0; }

/* 本周头部:生成朋友圈按钮 */
.cc-page .cc-wh-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-page .cc-friend-btn {
  appearance: none;
  border: 1px solid var(--cc-brand);
  border-radius: 9px;
  background: var(--cc-soft);
  color: var(--cc-brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  min-height: 34px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .1s ease;
}
.cc-page .cc-friend-btn:hover { background: var(--cc-brand); color: #fff; }
.cc-page .cc-friend-btn:active { transform: translateY(1px); }
.cc-page .cc-friend-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(20, 161, 120, .22); }

/* 卡片可点击态:整格点击 → 打开朋友圈抽屉 */
.cc-page .cc-card-clickable {
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.cc-page .cc-card-clickable:hover {
  border-color: var(--cc-brand);
  box-shadow: 0 4px 18px rgba(20, 161, 120, .14);
}
.cc-page .cc-card-clickable:active { transform: translateY(1px); }
.cc-page .cc-card-clickable:focus-visible {
  outline: none;
  border-color: var(--cc-brand);
  box-shadow: 0 0 0 3px rgba(20, 161, 120, .22);
}
.cc-page .cc-card-friend {
  margin-top: 2px;
  padding: 8px 16px 10px;
  border-top: 1px dashed var(--cc-line);
  font-size: 12px;
  color: var(--cc-brand);
  text-align: right;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  .cal-viewswitch {
    width: 100%;
    margin-bottom: 12px;
  }
  .cal-vs-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
  .cc-page .cc-wh-actions { width: 100%; }
  .cc-page .cc-friend-btn {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
  }
  .cc-page .cc-card-friend { text-align: center; }
}
