/* 钉钉 · 阿里巴巴 — DingTalk 设计系统 */
:root {
  --bg: #f2f3f5;
  --card: #ffffff;
  --ink: #1f2329;
  --ink2: #646a73;
  --ink3: #8f959e;
  --blue: #1677ff;
  --blue-soft: rgba(22, 119, 255, 0.1);
  --green: #00b578;
  --red: #f53f3f;
  --orange: #ff8800;
  --purple: #8e44ad;
  --teal: #00a8cc;
  --sep: rgba(31, 35, 41, 0.08);
  --radius: 8px;
  --shadow: 0 1px 2px rgba(31, 35, 41, 0.05);
  --nav-h: 56px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  overflow-x: hidden;
}
button { font-family: inherit; border: 0; background: none; color: inherit; cursor: pointer; font-size: inherit; }
img { display: block; }
ul { list-style: none; }

.ic {
  width: 21px;
  height: 21px;
  display: inline-block;
  vertical-align: -4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.ic-sm { width: 16px; height: 16px; stroke-width: 2; }

.app-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom, 0px));
}
.page { display: none; }
.page.active { display: block; }

/* ===== 头部 ===== */
.dt-header {
  padding: 14px 16px 6px;
  background: var(--bg);
}
.dt-top { display: flex; align-items: center; justify-content: space-between; }
.dt-top h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 12px; color: var(--ink2); margin-bottom: 1px; }
.dt-actions { display: flex; gap: 4px; }
.dt-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}
.dt-icon-btn:active { background: rgba(31, 35, 41, 0.06); }

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
  margin: 18px 16px 8px;
}

/* ===== 卡片 ===== */
.card {
  background: var(--card);
  border-radius: var(--radius);
  margin: 0 12px 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.card.tight { padding: 0; overflow: hidden; }

.search-box {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(31, 35, 41, 0.05);
  border-radius: 8px;
  padding: 8px 10px;
  margin: 6px 12px 10px;
  color: var(--ink3);
}
.search-box input {
  flex: 1;
  border: 0;
  outline: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.search-box input::placeholder { color: var(--ink3); }

/* ===== 工具行（消息/文档快捷入口） ===== */
.tool-row {
  display: flex;
  gap: 8px;
  margin: 2px 12px 12px;
  overflow-x: auto;
}
.tool-item {
  flex: 1;
  min-width: 64px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 10px 4px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  box-shadow: var(--shadow);
}
.tool-item .t-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.tool-item .t-ic .ic { width: 17px; height: 17px; stroke-width: 2; }
.tool-item span { font-size: 11px; color: var(--ink2); }
.tool-item:active { opacity: 0.75; }

/* ===== DING 横幅 ===== */
.ding-banner {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #ff8800, #ff5b00);
  color: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(255, 91, 0, 0.22);
  text-align: left;
}
.ding-banner .d-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex: none;
}
.ding-banner .d-main { flex: 1; min-width: 0; }
.ding-banner .d-title { display: block; font-size: 14px; font-weight: 600; }
.ding-banner .d-sub {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ding-banner .d-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  flex: none;
}

/* ===== 行 ===== */
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  width: 100%;
  min-height: 44px;
  text-align: left;
  position: relative;
}
.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 58px;
  right: 0;
  height: 0.5px;
  background: var(--sep);
}
.row .r-ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
}
.row .r-ic .ic { width: 18px; height: 18px; stroke-width: 2; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { display: block; font-size: 15px; font-weight: 500; }
.row .r-sub {
  display: block;
  font-size: 12px;
  color: var(--ink2);
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.row .r-value { font-size: 13px; color: var(--ink3); flex: none; }
.row .r-chev { color: var(--ink3); flex: none; width: 16px; height: 16px; stroke-width: 2.4; }
.row:active { background: rgba(31, 35, 41, 0.04); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--blue-soft);
  color: var(--blue);
}
.tag.green { background: rgba(0, 181, 120, 0.12); color: #00895c; }
.tag.orange { background: rgba(255, 136, 0, 0.14); color: #d96f00; }
.tag.gray { background: rgba(100, 106, 115, 0.1); color: var(--ink2); }
.tag.purple { background: rgba(142, 68, 173, 0.12); color: var(--purple); }

/* ===== 聊天列表 ===== */
.chat-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
}
.chat-row + .chat-row { border-top: 0.5px solid var(--sep); }
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  flex: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.round { border-radius: 50%; }
.avatar.sm { width: 34px; height: 34px; font-size: 13px; }
.chat-row .c-main { flex: 1; min-width: 0; }
.chat-row .c-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chat-row .c-name { display: block; font-size: 15px; font-weight: 500; }
.chat-row .c-time { font-size: 11px; color: var(--ink3); flex: none; }
.chat-row .c-role { display: block; font-size: 11px; color: var(--ink3); margin-top: 1px; }
.chat-row .c-preview {
  display: block;
  font-size: 12px;
  color: var(--ink2);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.unread-dot {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ===== 邮件/文档列表 ===== */
.mail-row {
  display: flex;
  gap: 11px;
  padding: 11px 14px;
  width: 100%;
  text-align: left;
  background: var(--card);
}
.mail-row + .mail-row { border-top: 0.5px solid var(--sep); }
.mail-row .m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; align-self: center; }
.mail-row .m-dot.hidden { background: transparent; }
.mail-row .m-main { flex: 1; min-width: 0; }
.mail-row .m-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mail-row .m-from { display: block; font-size: 14px; font-weight: 600; }
.mail-row .m-time { font-size: 11px; color: var(--ink3); flex: none; }
.mail-row .m-subject {
  display: block;
  font-size: 13px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-row .m-preview { display: block; font-size: 12px; color: var(--ink2); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-label { font-size: 12px; font-weight: 600; color: var(--ink3); padding: 14px 16px 6px; }

/* ===== 聊天气泡 ===== */
.bubble-row { display: flex; margin: 4px 14px; gap: 8px; }
.bubble-row.me { justify-content: flex-end; }
.bubble-row .b-avatar {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.bubble {
  max-width: 72%;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.5;
  background: var(--card);
  box-shadow: var(--shadow);
}
.bubble-row.me .bubble { background: var(--blue); color: #fff; }
.bubble .who { font-size: 10px; font-weight: 600; opacity: 0.6; margin-bottom: 2px; }
.bubble-time { text-align: center; font-size: 10px; color: var(--ink3); margin: 12px 0 6px; }

.chat-view { display: flex; flex-direction: column; min-height: calc(100vh - 72px); padding-bottom: 12px; }
.chat-composer {
  position: sticky;
  bottom: 12px;
  margin-top: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 14px;
}
.chat-composer .imsg-field {
  flex: 1;
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 6px;
  background: var(--card);
  border: 0.5px solid var(--sep);
}
.chat-composer input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  background: none;
}
.chat-composer .imsg-send {
  height: 34px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.chat-composer .imsg-send:active { opacity: 0.85; }

/* ===== 底部 Tab ===== */
.tabbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 0.5px solid var(--sep);
  z-index: 40;
}
.tabbar button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--ink3);
}
.tabbar button .ic { width: 24px; height: 24px; stroke-width: 1.7; }
.tabbar button span { font-size: 10px; }
.tabbar button.active { color: var(--blue); }
.tabbar .ic-fill { display: none; }
.tabbar button.active .ic-stroke { display: none; }
.tabbar button.active .ic-fill { display: inline-block; }

/* ===== 毛玻璃标题栏 ===== */
.glass-bar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -8px);
  width: 100%;
  max-width: 430px;
  padding: 13px 16px 11px;
  background: rgba(242, 243, 245, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--sep);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 30;
}
.glass-bar.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== 详情层 ===== */
.detail-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.detail-layer.open { transform: translateX(0); }
.detail-layer .app-shell { padding-bottom: 40px; }
.detail-layer.open #detailBody > .app-shell { animation: pushIn 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
@keyframes pushIn {
  from { transform: translateX(22px); opacity: 0.4; }
  to { transform: translateX(0); opacity: 1; }
}
.detail-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 12px 10px;
  background: rgba(242, 243, 245, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 0.5px solid var(--sep);
}
.detail-nav .back { display: flex; align-items: center; gap: 1px; color: var(--blue); font-size: 15px; font-weight: 500; }
.detail-nav h2 { font-size: 16px; font-weight: 600; flex: 1; text-align: center; margin-right: 56px; }

/* ===== 详情内组件 ===== */
.kv { display: flex; justify-content: space-between; padding: 11px 14px; font-size: 14px; }
.kv + .kv { border-top: 0.5px solid var(--sep); }
.kv .k { color: var(--ink2); }
.kv .v { font-weight: 500; text-align: right; }
.note { margin: 2px 16px 12px; font-size: 11px; color: var(--ink3); line-height: 1.5; }

.hero-card {
  margin: 12px;
  border-radius: 10px;
  padding: 18px 16px;
  color: #fff;
  background: linear-gradient(120deg, #2e8bff, #1677ff 60%, #0e5fd9);
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.22);
}
.hero-card .h-label { font-size: 12px; font-weight: 600; opacity: 0.85; }
.hero-card .h-value { font-size: 26px; font-weight: 700; margin-top: 3px; }
.hero-card .h-sub { font-size: 12px; opacity: 0.88; margin-top: 3px; }

.ding-card {
  margin: 12px;
  border-radius: 10px;
  padding: 16px;
  background: linear-gradient(120deg, #ff8800, #ff5b00);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 91, 0, 0.2);
}
.ding-card .d-type { font-size: 11px; font-weight: 600; opacity: 0.9; }
.ding-card h3 { font-size: 17px; font-weight: 700; margin: 6px 0 4px; }
.ding-card p { font-size: 13px; opacity: 0.95; line-height: 1.55; }
.ding-card .d-meta { font-size: 11px; opacity: 0.85; margin-top: 10px; }

/* 工作台网格 */
.work-banner {
  margin: 4px 12px 12px;
  border-radius: 10px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(120deg, #2e8bff, #1677ff);
  box-shadow: 0 6px 18px rgba(22, 119, 255, 0.2);
}
.work-banner .wb-title { font-size: 16px; font-weight: 700; }
.work-banner .wb-sub { font-size: 12px; opacity: 0.9; margin-top: 3px; }
.app-group { margin: 0 12px 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 8px 8px; }
.app-group .g-name { font-size: 12px; font-weight: 600; color: var(--ink2); padding: 0 8px 8px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.app-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  position: relative;
}
.app-cell .a-ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.app-cell .a-ic .ic { width: 23px; height: 23px; stroke-width: 1.9; }
.app-cell span { font-size: 11px; color: var(--ink); }
.app-cell .badge {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-cell:active { opacity: 0.75; }

/* 打卡卡 */
.punch-card {
  margin: 12px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.punch-card .p-top { display: flex; justify-content: space-between; align-items: center; }
.punch-card .p-status { font-size: 20px; font-weight: 700; }
.punch-card .p-time { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.punch-btn {
  margin-top: 12px;
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}
.punch-btn:active { opacity: 0.85; }

/* 资料卡 */
.profile-card {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 6px 12px 10px;
  background: var(--card);
  border-radius: 10px;
  padding: 16px 14px;
  box-shadow: var(--shadow);
}
.profile-card .avatar { width: 60px; height: 60px; border-radius: 14px; }
.profile-card .p-name { display: block; font-size: 19px; font-weight: 700; }
.profile-card .p-sub { display: block; font-size: 12px; color: var(--ink2); margin-top: 2px; }
.stat-row { display: flex; margin: 0 12px 4px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-row .s-cell { flex: 1; text-align: center; padding: 12px 4px; }
.stat-row .s-cell + .s-cell { border-left: 0.5px solid var(--sep); }
.stat-row .s-value { font-size: 18px; font-weight: 700; }
.stat-row .s-label { font-size: 11px; color: var(--ink2); margin-top: 1px; }

.timeline { padding: 6px 14px 10px; }
.tl-item { display: flex; gap: 10px; }
.tl-item .tl-mark { width: 9px; display: flex; flex-direction: column; align-items: center; }
.tl-item .tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); margin-top: 5px; flex: none; }
.tl-item.done .tl-dot { background: var(--green); }
.tl-item.current .tl-dot { background: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.tl-item .tl-line { flex: 1; width: 2px; background: var(--sep); margin: 3px 0 0; }
.tl-item:last-child .tl-line { display: none; }
.tl-item .tl-body { flex: 1; padding-bottom: 14px; }
.tl-item .tl-title { font-size: 13px; font-weight: 500; }
.tl-item.pending .tl-title { color: var(--ink3); font-weight: 400; }

.footer-note { margin: 20px 16px 10px; font-size: 10px; color: var(--ink3); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
@media (min-width: 700px) {
  body { background: #e6e8eb; }
  .app-shell { background: var(--bg); box-shadow: 0 0 50px rgba(0, 0, 0, 0.1); }
}

/* 2026-11-01 · 交互补齐与小屏可读性 */
:root { --ink3: #747b85; }
button { line-height: 1.45; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html { scroll-padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom,0px)); }
.ding-banner { padding: 12px; box-shadow: 0 2px 6px rgba(255,91,0,.12); }
.ding-banner .d-ic { font-size: 12px; width: 36px; }
.ding-banner .d-sub, .ding-banner .d-count { font-size: 12px; }
.ding-banner .d-title { font-size: 14px; line-height: 1.4; }
.tool-item span, .app-cell span { font-size: 12px; }
.chat-row { padding-top: 12px; padding-bottom: 12px; }
.chat-row .c-role, .chat-row .c-time, .mail-row .m-time { font-size: 12px; }
.chat-row .c-preview, .mail-row .m-preview { font-size: 13px; }
.chat-row .c-name, .mail-row .m-from { min-width: 0; overflow-wrap: anywhere; }
.bubble { overflow-wrap: anywhere; }
.bubble .who, .bubble-time { font-size: 12px; }
.message-time { margin-top: 4px; font-size: 12px; color: var(--ink2); }
.bubble-row.me .message-time { color: rgba(255,255,255,.85); }
.chat-composer .imsg-field, .chat-composer input { min-width: 0; }
.chat-composer input { width: 100%; font-size: 16px; }
.tag { flex: none; white-space: nowrap; font-size: 11px; }
.kv { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 16px; align-items: start; }
.kv .k { min-width: 4em; white-space: nowrap; }
.kv .v { min-width: 0; overflow-wrap: anywhere; }
.profile-link { width: calc(100% - 24px); text-align: left; }
.profile-card .p-main { flex: 1; min-width: 0; }
.profile-card .p-name { font-size: 18px; overflow-wrap: anywhere; }
.profile-card .r-chev { flex: none; width: 18px; color: var(--ink3); }
.stat-row .s-value, .stat-row .s-label { display: block; }
.tabbar { background: rgba(255,255,255,.97); }
.tabbar button span { font-size: 11px; }
.empty-state { padding: 24px 16px; color: var(--ink2); font-size: 14px; text-align: center; }
.note { font-size: 12px; overflow-wrap: anywhere; }
.primary-action { display: block; width: calc(100% - 24px); margin: 16px 12px; padding: 12px 16px; min-height: 46px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 600; border-radius: 8px; }
.form-error { margin: 8px 16px; color: #c42b25; font-size: 14px; }
.form-error:empty { display: none; }
.action-form { padding-top: 12px; }
.form-field { display: block; margin-bottom: 16px; }
.form-field:last-child { margin-bottom: 0; }
.form-field > span { display: block; margin-bottom: 8px; font-size: 14px; color: var(--ink2); }
.form-field input, .form-field textarea { display: block; width: 100%; min-width: 0; font: inherit; font-size: 16px; line-height: 1.6; border: 1px solid var(--sep); border-radius: 6px; padding: 10px; background: #fff; color: var(--ink); }
.form-field textarea { min-height: 200px; resize: vertical; }
.form-field [aria-invalid=true] { border-color: #c42b25; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 12px; }
.text-button { color: var(--blue); min-height: 44px; padding: 8px; font-size: 15px; }
.submit-button { padding: 12px 24px; min-height: 46px; background: var(--blue); color: #fff; border-radius: 8px; font-size: 16px; }
.mail-toolbar { display: flex; justify-content: flex-end; padding: 4px 12px; }
.mail-folders { display: flex; margin: 8px 12px 12px; background: #e6e9ee; padding: 3px; border-radius: 7px; }
.mail-folders button { flex: 1; min-height: 36px; font-size: 14px; border-radius: 5px; }
.mail-folders .active { background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.mail-meta { font-size: 13px; color: var(--ink2); margin-top: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.mail-body { font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.mail-body p + p { margin-top: 10px; }
.success-card { margin-top: 16px; text-align: center; padding: 24px; }
.success-card .ic { color: var(--green); width: 40px; height: 40px; margin-bottom: 10px; }
.success-card p { font-size: 14px; color: var(--ink2); margin-top: 8px; }
.doc-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; font-size: 15px; }
#detailBody h3 { overflow-wrap: anywhere; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 20px; background: #aeb4bc; flex: none; }
.switch:after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px #0002; }
.switch.on { background: var(--blue); }
.switch.on:after { transform: translateX(20px); }
.punch-btn:disabled { background: #e9edf2; color: var(--ink2); cursor: default; }

/* 9.x 公开视觉参考：白色列表、轻量导航、浅蓝消息气泡。 */
:root { --bg:#f6f7f9; --ink:#171a20; --ink2:#727883; --ink3:#8a9099; --sep:#edf0f3; --shadow:none; --nav-h:58px; }
body { background:#fff; }
#app { padding-top:env(safe-area-inset-top,0px); }
.page { min-height:calc(100dvh - var(--nav-h) - env(safe-area-inset-top,0px)); }
.page[data-page=messages],.page[data-page=docs],.page[data-page=contacts] { background:#fff; }
.dt-header { padding:10px 16px 6px; background:#fff; }
.dt-top { min-height:38px; }
.dt-top h1 { font-size:23px; font-weight:600; letter-spacing:0; }
.account-heading { display:flex; align-items:center; gap:11px; }
.header-avatar { width:30px; height:30px; border-radius:9px; overflow:hidden; background:#f5f6f8; }
.header-avatar img { width:100%; height:100%; object-fit:cover; }
.dt-icon-btn { width:36px; height:36px; color:#242830; }
.dt-icon-btn .ic { width:23px; height:23px; stroke-width:1.65; }
.search-box { height:36px; margin:6px 16px 8px; background:#f3f4f6; border-radius:8px; padding:7px 11px; }
.search-box input { width:100%; min-width:0; font-size:15px; }
.search-box input::placeholder { color:#a0a5ad; }
.tool-row { margin:0 16px 4px; gap:12px; }
.tool-item { min-height:62px; min-width:0; padding:8px 0; border-radius:0; box-shadow:none; gap:4px; }
.tool-item .t-ic { background:transparent !important; width:28px; height:26px; color:#525b68; border-radius:0; }
.tool-item .t-ic .ic { width:23px; height:23px; stroke-width:1.6; }
.tool-item span { font-size:12px; color:#5e6571; }
.tool-item[data-id=ding] .t-ic { color:#ef880a; }
.message-filters { display:flex; gap:22px; padding:0 16px; min-height:44px; border-bottom:1px solid #f1f2f5; }
.message-filters button { position:relative; min-height:44px; white-space:nowrap; font-size:15px; color:#777e89; }
.message-filters button.active { font-weight:600; color:#1d2129; }
.message-filters button.active:after { content:''; height:3px; width:19px; border-radius:2px; background:var(--blue); position:absolute; bottom:0; left:50%; transform:translateX(-50%); }
.ding-banner { width:calc(100% - 32px); margin:10px 16px 6px; background:#fff8ef; border-radius:7px; padding:10px; color:#87561d; box-shadow:none; gap:9px; }
.ding-banner .d-ic { width:30px; height:26px; border-radius:6px; background:#ffead0; color:#e98708; font-size:10px; font-weight:700; }
.ding-banner .d-title { font-size:13px; font-weight:500; }
.ding-banner .d-sub { color:#a58a68; font-size:12px; }
.ding-banner .d-count { color:#c78225; background:transparent; padding:0; font-size:12px; }
#chatList { margin:0; border-radius:0; box-shadow:none; overflow:visible; }
.chat-row { position:relative; gap:12px; padding:14px 16px; min-height:78px; }
.chat-row + .chat-row { border:0; }
.chat-row + .chat-row:before { content:''; position:absolute; top:0; left:76px; right:0; height:1px; background:#f0f2f5; }
.chat-row .avatar { width:46px; height:46px; border-radius:10px; font-size:18px; font-weight:500; }
.chat-row .c-name { font-size:16px; font-weight:500; }
.chat-row .c-role { display:none; }
.chat-row .c-preview { font-size:14px; color:#8b919b; margin-top:6px; }
.chat-row .c-time { font-size:12px; color:#a4a9b1; }
.chat-row .unread-dot { align-self:center; min-width:17px; height:17px; font-size:11px; padding:0 4px; }
.document-section { display:flex; align-items:center; justify-content:space-between; margin:20px 16px 4px; color:#262a32; font-size:16px; }
.document-section span { font-size:11px; font-weight:400; color:#9ba1aa; }
#docList,#contactList,#orgCard { margin:0; border-radius:0; box-shadow:none; }
#docList .row,#contactList .row { padding:15px 16px; min-height:76px; }
#docList .r-ic { width:36px; height:42px; border-radius:5px; }
#docList .r-title { font-size:15px; }
#docList .r-sub,#contactList .r-sub { font-size:12px; color:#9399a3; margin-top:4px; }
#docList .tag { font-size:10px; background:#f4f5f7; color:#9aa0aa; }
#orgCard { padding:8px 0; border-top:8px solid var(--bg); border-bottom:8px solid var(--bg); }
#contactList .r-ic { border-radius:9px; width:40px; height:40px; }
.page[data-page=work],.page[data-page=me] { background:var(--bg); }
.work-header { border-bottom:1px solid #f2f4f6; padding-bottom:10px; }
.work-header .eyebrow { color:#7c8490; font-size:12px; }
.work-header h1 { font-size:22px; }
.work-banner { background:#fff; color:var(--ink); box-shadow:none; border:1px solid #eff1f4; margin:12px 12px; padding:16px; border-radius:10px; }
.work-banner .wb-title { font-size:16px; font-weight:600; }
.work-banner .wb-sub { margin-top:6px; color:#7c8490; font-size:13px; }
.work-banner .wb-sub:before { content:''; width:6px; height:6px; display:inline-block; vertical-align:2px; border-radius:50%; background:#24b784; margin-right:6px; }
.app-group { padding:15px 8px 12px; border-radius:10px; }
.app-group .g-name { font-size:14px; color:#343a44; padding:0 8px 14px; }
.app-grid { gap:16px 4px; }
.app-cell { gap:7px; }
.app-cell .a-ic { width:40px; height:40px; border-radius:11px; box-shadow:inset 0 1px 0 #ffffff30; }
.app-cell .a-ic .ic { width:22px; height:22px; stroke-width:1.65; }
.app-cell span { font-size:12px; }
.app-cell .badge { font-size:10px; }
.page[data-page=me] .dt-header { background:var(--bg); }
.profile-link { padding:20px 16px; margin-top:8px; gap:14px; }
.profile-card .avatar { width:68px; height:68px; border-radius:15px; }
.profile-card .p-name { font-size:22px; font-weight:600; }
.p-english { display:block; font-size:13px; color:#7e8590; margin:1px 0 5px; }
.profile-card .p-sub { color:#8b929d; font-size:12px; }
.stat-row { padding:3px 0; border-radius:10px; }
.stat-row .s-value { font-size:20px; font-weight:600; }
.stat-row .s-label { font-size:12px; color:#89919c; }
.stat-row .s-cell + .s-cell { border-left-color:#f1f2f5; }
#meServices .row,#meMore .row { padding:14px 16px; }
#meServices .r-ic,#meMore .r-ic { background:transparent !important; color:#4d5867; width:24px; height:24px; }
#meServices .r-ic .ic,#meMore .r-ic .ic { width:22px; height:22px; stroke-width:1.65; }
#meServices .tag { color:#9ca2ab; background:transparent; font-size:12px; padding:0; }
.tabbar { background:rgba(255,255,255,.98); border-top-color:#eef0f3; }
.tabbar button { position:relative; color:#9098a4; gap:3px; }
.tabbar button .ic { width:24px; height:24px; stroke-width:1.65; }
.tabbar button span { font-size:11px; }
.tabbar .nav-badge { position:absolute; left:calc(50% + 8px); top:3px; min-width:15px; padding:0 4px; height:15px; line-height:15px; border-radius:8px; color:#fff; background:#f04f56; font-size:10px; }
.detail-nav { display:grid; grid-template-columns:72px minmax(0,1fr) 72px; min-height:58px; padding:calc(6px + env(safe-area-inset-top,0px)) 12px 6px; gap:0; background:rgba(255,255,255,.97); border-bottom-color:#edf0f3; }
.detail-nav .back { font-size:0; min-width:44px; min-height:44px; width:44px; color:#222831; }
.detail-nav .back .ic { width:23px; height:23px; stroke-width:1.65; }
.detail-nav h2 { min-width:0; font-size:17px; font-weight:500; margin:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.detail-subtitle { display:block; font-size:11px; font-weight:400; color:#a0a6af; margin-top:2px; }
.detail-actions { display:flex; align-items:center; justify-content:flex-end; }
.detail-icon-button { min-width:34px; min-height:44px; color:#343c48; }
.detail-icon-button .ic { width:21px; height:21px; stroke-width:1.6; }
.detail-layer[data-kind=chat] { background:#f7f8fa; }
.detail-layer[data-kind=chat] .app-shell { min-height:calc(100dvh - 58px); padding-bottom:0; }
.chat-view { min-height:calc(100dvh - 58px); padding-bottom:0; padding-top:12px; }
.bubble-row { gap:9px; margin:16px 12px; align-items:flex-start; }
.bubble-row .b-avatar { width:34px; height:34px; border-radius:8px; font-size:15px; }
.own-avatar img { width:100%; height:100%; object-fit:cover; }
.bubble-content { min-width:0; max-width:76%; }
.bubble-content > .who { font-size:11px; color:#929aa5; margin-bottom:4px; }
.bubble { max-width:100%; background:#fff; border:1px solid #eef0f3; border-radius:7px; padding:10px 12px; color:#252b34; font-size:15px; line-height:1.6; box-shadow:none; }
.bubble-row.me .bubble { background:#dceaff; border-color:#dceaff; color:#252b34; }
.message-time,.bubble-row.me .message-time { font-size:10px; color:#9ca5b2; margin-top:5px; }
.bubble-row.me .message-time { text-align:right; }
.chat-composer { background:#f8f9fb; border-top:1px solid #edf0f3; gap:7px; padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px)); bottom:0; align-items:center; }
.chat-composer .imsg-field { min-height:38px; padding:7px 10px; background:#fff; border-color:#eceff3; border-radius:7px; }
.chat-composer .imsg-send { min-height:36px; padding:0 10px; font-size:13px; font-weight:500; }
.composer-tool { width:25px; height:36px; flex:none; color:#6d7785; }
.composer-tool .ic { width:24px; height:24px; stroke-width:1.5; }
.mail-folders { background:#edf0f5; }
.mail-folders button { font-size:14px; }
.form-field input,.form-field textarea { border-color:#e9edf2; }
@media(min-width:700px) { body { background:#e9ecf1; } }
