/* ============================================
   CONTACT — macOS 备忘录 Notes 风格
   左栏今天 / 右栏白色编辑区 / 红黄绿窗口按钮
   ============================================ */

.contact-page {
  position: relative;
  min-height: calc(100vh - var(--menu-bar-h));
  min-height: calc(100svh - var(--menu-bar-h));
  padding: var(--sp-5) var(--sp-5) 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-frame {
  width: 100%;
  max-width: 960px;
  height: calc(100svh - var(--menu-bar-h) - 190px);
  min-height: 480px;
  overflow: hidden;
}

/* —— Notes 标题栏（偏白色背景 + 左侧红黄绿 + 右侧搜索图标）—— */
.ct-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: #f2f1ef;
  border-bottom: 1px solid rgba(0,0,0,.08);
  user-select: none;
}

.ct-titlebar .ct-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ct-titlebar .ct-notes-icon {
  width: 26px; height: 26px;
  background: linear-gradient(180deg, #FFD93D, #F4B700);
  border-radius: 5px;
  position: relative;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08);
}
.ct-titlebar .ct-notes-icon::before {
  content: "";
  position: absolute; left: 3px; right: 3px; top: 7px; height: 2px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 6px 0 rgba(255,255,255,.5);
}
.ct-titlebar .ct-appname {
  font-weight: 600;
  font-size: 13px;
  color: #3a3a3a;
}

.ct-titlebar .ct-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ct-titlebar .ct-tool-btn {
  width: 28px; height: 26px;
  border-radius: 5px;
  border: none;
  background: transparent;
  color: #555;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.ct-titlebar .ct-tool-btn:hover { background: rgba(0,0,0,.06); color: #222; }
.ct-titlebar .ct-spacer { width: 1px; height: 18px; background: rgba(0,0,0,.12); margin: 0 4px; }

/* —— Notes 主体：左侧边栏 + 右侧编辑区 —— */
.ct-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: calc(100% - 46px);
  background: #fff;
}

/* 左侧边栏 */
.ct-sidebar {
  background: #f7f6f3;
  border-right: 1px solid rgba(0,0,0,.08);
  padding: 14px 10px;
  overflow-y: auto;
}
.ct-sidebar h3 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a857d;
  margin: 4px 8px 10px;
  font-weight: 600;
}
.ct-note-item {
  display: block;
  padding: 10px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  cursor: default;
  transition: background .15s;
  border: 1px solid transparent;
}
.ct-note-item:hover { background: rgba(0,0,0,.04); }
.ct-note-item.active { background: #fff3b0; border-color: rgba(244,183,0,.4); box-shadow: 0 1px 3px rgba(244,183,0,.2); }
.ct-note-item .ct-note-title {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 2px;
  color: #2a2a2a;
}
.ct-note-item .ct-note-date {
  font-size: 11px;
  color: #8a857d;
  margin-bottom: 2px;
}
.ct-note-item .ct-note-preview {
  font-size: 12px;
  color: #6a6a6a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右侧编辑区 */
.ct-editor {
  padding: 28px 40px;
  overflow-y: auto;
  background: #fff;
}

.ct-editor h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}
.ct-editor .ct-meta {
  font-size: 12px;
  color: #9e9688;
  margin-bottom: 28px;
}

.ct-contact-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ct-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background .15s;
  border: 1px solid transparent;
}
.ct-row:hover { background: #fff9e6; border-color: rgba(244,183,0,.3); }
.ct-row .ct-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a857d;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ct-row .ct-label .ct-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #F4B700;
  display: inline-block;
}
.ct-row .ct-value {
  font-size: 16px;
  color: #2a2a2a;
  font-weight: 500;
}
.ct-row.tel .ct-dot  { background: #34C759; }
.ct-row.mail .ct-dot { background: #007AFF; }
.ct-row.wx .ct-dot   { background: #07C160; }

.ct-sign {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px dashed rgba(0,0,0,.12);
  color: #9e9688;
  font-size: 12px;
  font-style: italic;
}

/* —— 响应式 —— */
@media (max-width: 720px) {
  .ct-body { grid-template-columns: 1fr; }
  .ct-sidebar { display: none; }
  .ct-editor { padding: 20px 20px; }
  .ct-row { grid-template-columns: 80px 1fr; padding: 12px 12px; }
  .ct-row .ct-value { font-size: 14px; }
}
