/* 同窗 M69 样式（Shard-B）：顶部线性图标入口 / 统一榜 / 同船动态·活动 / 发布 composer / 同学录 A-Z
   设计语汇：象牙底 #f5efe3 · 白卡 #fff 圆角16 · navy #1B2A4A · 金 #b8923f / 奶油 #f6ecd4 */

:root {
  --tc-navy: #1B2A4A;
  --tc-gold: #b8923f;
  --tc-gold-2: #c9a45c;
  --tc-cream: #f6ecd4;
  --tc-bg: #f5efe3;
  --tc-line: #ece4d3;
  --tc-muted: #8a8577;
}

.tc-home { padding: 10px 12px 30px; }

/* ---------- 顶部 4 线性图标入口（白卡 + 无圆圈底色） ---------- */
.tc-entries-card {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: 16px; padding: 14px 4px 12px;
  box-shadow: 0 6px 22px rgba(27, 42, 74, .06);
  margin-bottom: 12px;
}
.tc-entry {
  background: none; border: 0; cursor: pointer; display: flex; flex-direction: column;
  align-items: center; gap: 7px; color: var(--tc-navy); padding: 4px 2px;
  border-right: 1px solid var(--tc-line);
}
.tc-entry:last-child { border-right: 0; }
.tc-entry svg { width: 26px; height: 26px; color: var(--tc-navy); opacity: .82; }
.tc-entry span { font-size: 12.5px; color: var(--tc-navy); font-weight: 500; }
.tc-entry.on { color: var(--tc-gold); }
.tc-entry.on svg { color: var(--tc-gold); opacity: 1; }
.tc-entry.on span { color: var(--tc-gold); font-weight: 600; }

/* ---------- 通用小节标题 ---------- */
.tc-sec-t { font-size: 15px; font-weight: 700; color: var(--tc-navy); margin: 14px 2px 8px; }

/* ---------- 互助榜：分段 + chips + 筛选 ---------- */
.tc-seg {
  display: flex; background: #fff; border-radius: 12px; padding: 4px; gap: 4px; margin: 6px 0 8px;
}
.tc-seg-b {
  flex: 1; border: 0; background: none; padding: 8px 0; border-radius: 9px;
  font-size: 13.5px; color: var(--tc-muted); font-weight: 500; cursor: pointer;
}
.tc-seg-b.on { background: var(--tc-navy); color: #fff; font-weight: 600; }
.tc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.chip-wrap { gap: 6px; }
.tc-filter-row { margin: 4px 0 6px; }
.tc-filter-label { font-size: 12px; color: var(--tc-muted); margin: 6px 2px 4px; }
.tc-pub-btn { margin: 10px 0 10px; }

/* ---------- 统一榜卡片 ---------- */
.tc-uni {
  background: #fff; border-radius: 14px; padding: 13px 14px; margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(27, 42, 74, .05); cursor: pointer;
}
.tc-uni-r1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 7px; }
.tc-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; line-height: 1.7;
}
.tc-chip.gold { background: var(--tc-cream); color: var(--tc-gold); }
.tc-chip.long { background: #eef2f7; color: #5a6b86; }
.tc-chip.need { background: #fdecec; color: #c0554f; }
.tc-chip.offer { background: #e9f3ea; color: #4a8a57; }
.tc-chip.wait { background: #eef2f7; color: #5a6b86; }
.tc-chip.ok { background: #e9f3ea; color: #4a8a57; }
.tc-chip.off { background: #f0ece3; color: #9a937f; }
.tc-cat { font-size: 11.5px; color: var(--tc-muted); }
.tc-uni-title { font-size: 15.5px; font-weight: 700; color: var(--tc-navy); line-height: 1.4; }
.tc-uni-c { font-size: 12.5px; color: #6b675c; line-height: 1.55; margin-top: 4px; }
.tc-uni-foot {
  display: flex; justify-content: space-between; align-items: center; margin-top: 9px; gap: 8px;
}
.tc-who { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tc-navy); }
.tc-meta { font-size: 11.5px; color: var(--tc-muted); display: flex; gap: 6px; }
.tc-meta-i { color: var(--tc-gold); font-weight: 600; }

/* ---------- 详情 ---------- */
.tc-uni-detail { padding: 16px 16px 14px; }
.tc-uni-d-title { font-size: 19px; color: var(--tc-navy); margin: 8px 0 6px; line-height: 1.35; }
.td-stats { display: flex; gap: 10px; margin: 10px 0; }
.td-stat {
  flex: 1; background: #faf6ec; border-radius: 10px; padding: 8px 4px; text-align: center;
  display: flex; flex-direction: column; gap: 2px;
}
.td-stat-n { font-size: 14px; font-weight: 700; color: var(--tc-gold); }
.td-stat-l { font-size: 10.5px; color: var(--tc-muted); }
.td-pubcard {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--tc-line);
}
.td-pub-bd { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.td-pub-bd b { font-size: 13.5px; color: var(--tc-navy); }
.td-cardbtn {
  border: 1px solid var(--tc-gold); color: var(--tc-gold); background: none;
  border-radius: 20px; font-size: 12px; padding: 4px 12px; cursor: pointer;
}
.tc-match-sc { color: var(--tc-gold); font-weight: 700; font-size: 13px; }
.tc-taker-st { font-size: 11px; color: var(--tc-muted); align-self: center; }
.tc-taker.won { background: #faf6ec; border-radius: 10px; }

/* ---------- 同船子栏 ---------- */
.tc-chuan-tabs {
  display: flex; background: #fff; border-radius: 14px; padding: 5px; margin-bottom: 10px;
}
.tc-chuan-t {
  flex: 1; border: 0; background: none; display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 0; border-radius: 10px; font-size: 14px; color: var(--tc-muted);
  font-weight: 600; cursor: pointer;
}
.tc-chuan-t svg { width: 19px; height: 19px; }
.tc-chuan-t.on { background: var(--tc-navy); color: #fff; }

/* ---------- 动态（朋友圈） ---------- */
.tc-feed { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 10px; box-shadow: 0 4px 16px rgba(27,42,74,.05); }
.tc-feed-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tc-feed-who { flex: 1; display: flex; flex-direction: column; }
.tc-feed-who b { font-size: 14px; color: var(--tc-navy); }
.tc-feed-text { font-size: 14px; color: #33312b; line-height: 1.6; margin: 2px 0 8px; }
.tc-feed-grid { display: grid; gap: 4px; margin: 6px 0; }
.tc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.tc-feed-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.tc-feed-1 img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; }
.tc-feed-loc { font-size: 12px; color: var(--tc-gold); margin: 4px 0 6px; }
.tc-feed-acts { display: flex; gap: 18px; border-top: 1px solid #f4efe3; padding-top: 8px; margin-top: 4px; }
.tc-feed-act { background: none; border: 0; font-size: 13px; color: var(--tc-muted); cursor: pointer; padding: 0; }
.tc-feed-act.on { color: #d65a5a; }
.tc-feed-comments { background: #f7f3ea; border-radius: 8px; padding: 8px 10px; margin-top: 8px; font-size: 12.5px; color: #5c584c; line-height: 1.7; }
.tc-feed-comments b { color: var(--tc-navy); }
.tc-feed-empty { text-align: center; padding: 26px 16px; }
.tc-feed-empty p { margin: 8px 0 14px; line-height: 1.7; }

/* ---------- 有约活动卡片 ---------- */
.tc-act-card {
  background: #fff; border-radius: 14px; overflow: hidden; margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(27,42,74,.06); cursor: pointer; display: flex; flex-direction: column;
}
.tc-act-cover { width: 100%; height: 150px; object-fit: cover; }
.tc-act-bd { padding: 12px 14px; }
.tc-act-when { font-size: 12px; color: var(--tc-gold); font-weight: 600; margin-bottom: 4px; }
.tc-act-title { font-size: 15.5px; color: var(--tc-navy); margin: 2px 0 4px; }
.tc-act-bd .muted-s { font-size: 12px; color: var(--tc-muted); }

/* ---------- 活动详情（四海模板） ---------- */
.sa-hero { position: relative; margin: -10px -12px 0; height: 300px; background-size: cover; background-position: center; }
.sa-hero.sa-hero-none { background: linear-gradient(135deg, #2a3a5c, #1b2a4a); height: 200px; }
.sa-hero-mask { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,18,36,.15) 0%, rgba(10,18,36,.78) 100%); }
.sa-hero-in { position: absolute; left: 18px; right: 18px; bottom: 22px; color: #fff; }
.sa-eyebrow { font-size: 13px; color: var(--tc-gold-2); letter-spacing: 1px; margin-bottom: 6px; }
.sa-title { font-size: 26px; font-weight: 800; line-height: 1.2; margin: 0 0 6px; }
.sa-sub { font-size: 14px; opacity: .9; margin-bottom: 12px; }
.sa-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; opacity: .92; }
.sa-highlights {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: #fff;
  border-radius: 14px; padding: 14px 8px; margin-top: -24px; position: relative; z-index: 2;
  box-shadow: 0 6px 20px rgba(27,42,74,.08);
}
.sa-hl { text-align: center; display: flex; flex-direction: column; gap: 3px; }
.sa-hl-ic { color: var(--tc-gold); font-size: 16px; }
.sa-hl b { font-size: 12.5px; color: var(--tc-navy); }
.sa-hl span { font-size: 10px; color: var(--tc-muted); }
.sa-sec-t { font-size: 16px; font-weight: 800; color: var(--tc-navy); margin: 20px 2px 10px; padding-left: 10px; border-left: 3px solid var(--tc-gold); }
.sa-intro { font-size: 14px; color: #4a463c; line-height: 1.8; padding: 0 2px; }
.sa-body-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
.sa-timeline { position: relative; padding-left: 6px; }
.sa-tl { display: flex; gap: 10px; padding-bottom: 16px; position: relative; }
.sa-tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc-gold); margin-top: 5px; flex: 0 0 10px; }
.sa-tl:not(:last-child)::before { content: ''; position: absolute; left: 4.5px; top: 16px; bottom: 0; width: 1.5px; background: var(--tc-line); }
.sa-tl-time { font-size: 13px; font-weight: 700; color: var(--tc-gold); width: 48px; flex: 0 0 48px; }
.sa-tl-bd b { font-size: 14px; color: var(--tc-navy); display: block; }
.sa-tl-bd .muted-s { font-size: 12px; color: var(--tc-muted); margin-top: 2px; }
.sa-loc-card { background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 4px 16px rgba(27,42,74,.06); }
.sa-loc-card b { font-size: 14px; color: var(--tc-navy); }
.sa-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sa-note { background: #fff; border-radius: 12px; padding: 12px 8px; text-align: center; font-size: 12px; color: #5c584c; line-height: 1.5; }
.sa-note b { color: var(--tc-gold); display: block; margin-bottom: 4px; }
.sa-cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(27,42,74,.1); display: flex; flex-direction: column; gap: 4px;
}
.sa-remain { font-size: 12px; color: var(--tc-gold); text-align: center; font-weight: 600; }

/* ---------- 发布 composer ---------- */
.tc-compose { padding-bottom: 20px; }
.comp-topbar { display: flex; align-items: center; gap: 10px; padding: 6px 2px 12px; }
.comp-topbar b { flex: 1; font-size: 17px; color: var(--tc-navy); }
.comp-pub { padding: 7px 22px; font-size: 14px; }
.comp-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.comp-tab {
  flex: 1; background: #fff; border: 1px solid var(--tc-line); border-radius: 22px;
  padding: 9px 0; font-size: 14px; color: var(--tc-muted); cursor: pointer; font-weight: 600;
}
.comp-tab.on { border-color: var(--tc-gold); background: var(--tc-cream); color: var(--tc-gold); }
.comp-ai {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  background: var(--tc-cream); color: var(--tc-gold); border: 0; border-radius: 12px;
  padding: 12px 0; font-size: 14px; font-weight: 600; cursor: pointer; margin-bottom: 12px;
}
.comp-field { margin-bottom: 12px; }
.comp-field textarea {
  width: 100%; background: #fff; border: 0; border-radius: 14px; padding: 14px;
  font-size: 14.5px; line-height: 1.6; min-height: 120px; box-sizing: border-box; resize: vertical;
  box-shadow: 0 4px 16px rgba(27,42,74,.05);
}
.comp-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.comp-img-th { position: relative; width: 78px; height: 78px; }
.comp-img-th img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.comp-img-th span {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer;
}
.comp-img-add {
  width: 78px; height: 78px; border: 1.5px dashed #cfc7b4; background: #fbf8f0; border-radius: 8px;
  color: var(--tc-muted); font-size: 12px; cursor: pointer;
}
.vis-seg { display: flex; gap: 8px; }
.vis-seg .seg { flex: 1; }
.vis-target { margin-top: 8px; padding: 10px; background: #faf6ec; border-radius: 10px; }
.comp-preview-label { font-size: 12px; color: var(--tc-muted); margin: 14px 2px 6px; }
.comp-preview { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 4px 16px rgba(27,42,74,.05); }
.comp-preview .tc-ava { background: #e7e0cf; }

/* ---------- 同学录 ---------- */
.tc-dir-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 10px; }
.tc-dir-head .tc-sec-t { margin: 0; }
.tc-dir-search {
  width: 150px; border: 1px solid var(--tc-line); border-radius: 20px; padding: 7px 12px;
  font-size: 12.5px; background: #fff; outline: none;
}
.tc-dir-count { font-size: 12px; color: var(--tc-muted); margin: 6px 2px; }
.tc-dir-wrap { display: flex; gap: 6px; }
.tc-dir-list { flex: 1; min-width: 0; }
.tc-dir-sec-h { font-size: 13px; font-weight: 700; color: var(--tc-gold); margin: 10px 2px 6px; }
.tc-dir-person {
  display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px;
  padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 3px 12px rgba(27,42,74,.04); cursor: pointer;
}
.tc-dir-bd { flex: 1; min-width: 0; }
.tc-dir-bd > div:first-child { display: flex; align-items: center; gap: 6px; }
.tc-dir-bd b { font-size: 14.5px; color: var(--tc-navy); }
.tc-tags-sm { display: flex; gap: 5px; margin-top: 4px; flex-wrap: wrap; }
.tc-tags-sm span { font-size: 10.5px; color: var(--tc-muted); background: #f4efe3; padding: 1px 7px; border-radius: 10px; }
.tc-dir-alpha {
  position: sticky; top: 10px; align-self: flex-start; display: flex; flex-direction: column;
  gap: 1px; font-size: 10px; color: var(--tc-muted); padding-top: 20px;
}
.tc-dir-alpha a { color: inherit; text-decoration: none; line-height: 1.35; cursor: pointer; text-align: center; }
.tc-dir-alpha a:hover { color: var(--tc-gold); font-weight: 700; }

/* ---------- GUEST 空态 ---------- */
.tc-guest { text-align: center; padding: 40px 22px; }
.tc-guest-ic { font-size: 40px; margin-bottom: 12px; }
.tc-guest b { font-size: 16px; color: var(--tc-navy); display: block; margin-bottom: 8px; }
.tc-guest p { line-height: 1.7; margin-bottom: 16px; }

/* ---------- 全局搜索下拉（眉头） ---------- */
.hs-m { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.hs-mid { flex: 1; }
.hs-mid b { font-size: 13.5px; color: var(--tc-navy); display: block; }
.hs-course { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; cursor: pointer; }
.hs-c-tt { font-size: 13.5px; color: var(--tc-navy); }
.hs-sec { font-size: 11px; color: var(--tc-muted); padding: 6px 10px 2px; }
.hs-empty { padding: 18px 10px; font-size: 12.5px; color: var(--tc-muted); line-height: 1.7; }
