/* ============================================================
   PC 总后台 · 布局与组件
   ============================================================ */

body.pc { min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.pc-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  background: rgba(252, 251, 247, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
}

.pc-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 6px 20px;
}
.pc-brand-logo { height: 44px; width: auto; flex: none; }
.pc-brand-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.pc-brand-text strong { font-size: 14.5px; font-weight: 600; letter-spacing: 0.04em; }
.pc-brand-text em { font-style: normal; font-size: 11px; color: var(--text-3); margin-top: 2px; white-space: nowrap; }

.project-switch-wrap { position: relative; margin-bottom: 18px; }
.project-switch {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12.5px;
  text-align: left;
  transition: all 0.2s var(--ease);
}
.project-switch:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.project-switch-wrap.open .project-switch { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.project-switch .project-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--olive); box-shadow: 0 0 0 3px rgba(122, 139, 110, 0.14); }
.project-switch span:nth-child(2) { flex: 1; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.project-switch .i { color: var(--text-3); }

/* 项目切换下拉：与卡片同一套暖米色 / 细描边 / 14px 圆角 */
.project-menu {
  position: absolute; left: 0; top: calc(100% + 8px);
  z-index: 70; width: 236px;
  padding: 8px;
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  animation: popIn 0.22s var(--ease-out) both;
}
.project-switch-wrap.open .project-menu { display: block; }
.project-menu .pm-label {
  padding: 4px 10px 8px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.project-option {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 10px;
  border: none; border-radius: 10px;
  background: transparent; text-align: left;
  transition: background 0.18s var(--ease);
}
.project-option:hover { background: var(--surface-2); }
.project-option.on { background: var(--olive-50); }
.po-check { width: 18px; height: 18px; flex: none; display: flex; align-items: center; justify-content: center; color: transparent; }
.project-option.on .po-check { color: var(--olive-600); }
.po-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.po-text strong { font-size: 12.5px; font-weight: 600; color: var(--text); }
.po-text em { font-style: normal; font-size: 10.5px; color: var(--text-3); }

/* 项目可见性：扫码报备 / 撞客判定仅在西湖 1901 展示 */
body[data-project="other"] [data-project-only="xihu"] { display: none !important; }
[data-project-other] { display: none !important; }
body[data-project="other"] [data-project-other] { display: block !important; }
body[data-project="other"] .platform-footnote[data-project-other] { display: flex !important; }
body[data-project="other"] .pc-brand-logo,
body[data-project="other"] .topbar-logo { display: none; }

.pc-nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding-right: 2px; }
.nav-label {
  padding: 14px 12px 6px;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3); font-weight: 600;
}
.pc-nav a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 42px; padding: 0 12px;
  margin-bottom: 2px;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 13.5px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.pc-nav a .i { color: var(--text-3); transition: color 0.2s var(--ease); }
.pc-nav a:hover { background: rgba(122, 139, 110, 0.07); color: var(--text); }
.pc-nav a:hover .i { color: var(--text-2); }
.pc-nav a span { flex: 1; white-space: nowrap; }
.pc-nav .nav-badge {
  flex: none;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em;
  padding: 2px 6px; border-radius: 5px;
  background: var(--gold-soft); color: #96743c;
}

/* 唯一的激活规则：body[data-page] 对应 data-nav */
body[data-page="dashboard"] .pc-nav [data-nav="dashboard"],
body[data-page="customers"] .pc-nav [data-nav="customers"],
body[data-page="customer-detail"] .pc-nav [data-nav="customers"],
body[data-page="followups"] .pc-nav [data-nav="followups"],
body[data-page="visits"] .pc-nav [data-nav="visits"],
body[data-page="showings"] .pc-nav [data-nav="showings"],
body[data-page="viewings"] .pc-nav [data-nav="viewings"],
body[data-page="consultants"] .pc-nav [data-nav="consultants"],
body[data-page="rules"] .pc-nav [data-nav="rules"],
body[data-page="settings"] .pc-nav [data-nav="settings"],
body[data-page="platform"] .pc-nav [data-nav="platform"],
body[data-page="brokers"] .pc-nav [data-nav="brokers"],
body[data-page="broker-detail"] .pc-nav [data-nav="brokers"],
body[data-page="broadcast"] .pc-nav [data-nav="broadcast"],
body[data-page="security"] .pc-nav [data-nav="security"] {
  background: var(--olive-100);
  color: var(--olive-700);
  font-weight: 600;
}
body[data-page="dashboard"] .pc-nav [data-nav="dashboard"] .i,
body[data-page="customers"] .pc-nav [data-nav="customers"] .i,
body[data-page="customer-detail"] .pc-nav [data-nav="customers"] .i,
body[data-page="followups"] .pc-nav [data-nav="followups"] .i,
body[data-page="visits"] .pc-nav [data-nav="visits"] .i,
body[data-page="showings"] .pc-nav [data-nav="showings"] .i,
body[data-page="viewings"] .pc-nav [data-nav="viewings"] .i,
body[data-page="consultants"] .pc-nav [data-nav="consultants"] .i,
body[data-page="rules"] .pc-nav [data-nav="rules"] .i,
body[data-page="settings"] .pc-nav [data-nav="settings"] .i,
body[data-page="platform"] .pc-nav [data-nav="platform"] .i,
body[data-page="brokers"] .pc-nav [data-nav="brokers"] .i,
body[data-page="broker-detail"] .pc-nav [data-nav="brokers"] .i,
body[data-page="broadcast"] .pc-nav [data-nav="broadcast"] .i,
body[data-page="security"] .pc-nav [data-nav="security"] .i { color: var(--olive-700); }
body[data-page="dashboard"] .pc-nav [data-nav="dashboard"]::before,
body[data-page="customers"] .pc-nav [data-nav="customers"]::before,
body[data-page="customer-detail"] .pc-nav [data-nav="customers"]::before,
body[data-page="followups"] .pc-nav [data-nav="followups"]::before,
body[data-page="visits"] .pc-nav [data-nav="visits"]::before,
body[data-page="showings"] .pc-nav [data-nav="showings"]::before,
body[data-page="viewings"] .pc-nav [data-nav="viewings"]::before,
body[data-page="consultants"] .pc-nav [data-nav="consultants"]::before,
body[data-page="rules"] .pc-nav [data-nav="rules"]::before,
body[data-page="settings"] .pc-nav [data-nav="settings"]::before,
body[data-page="platform"] .pc-nav [data-nav="platform"]::before,
body[data-page="brokers"] .pc-nav [data-nav="brokers"]::before,
body[data-page="broker-detail"] .pc-nav [data-nav="brokers"]::before,
body[data-page="broadcast"] .pc-nav [data-nav="broadcast"]::before,
body[data-page="security"] .pc-nav [data-nav="security"]::before {
  content: ""; position: absolute; left: -16px; top: 11px; bottom: 11px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}

.pc-sidebar-foot { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 12px; transition: background 0.2s var(--ease); }
.side-user:hover { background: rgba(122, 139, 110, 0.08); }
.side-user-meta { display: flex; flex-direction: column; line-height: 1.3; flex: 1; min-width: 0; }
.side-user-meta strong { font-size: 12.5px; font-weight: 600; }
.side-user-meta em { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.side-user > .i { color: var(--text-3); }

/* ---------- 主区域 ---------- */
.pc-main { margin-left: var(--sidebar-w); min-height: 100vh; position: relative; z-index: 1; }

.pc-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 78px;
  padding: 0 36px;
  background: rgba(245, 243, 238, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(231, 227, 217, 0.8);
}
.topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar-logo { height: 38px; width: auto; flex: none; }
.topbar-title .crumb { font-size: 11px; color: var(--text-3); letter-spacing: 0.04em; }
.topbar-title h1 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.01em; margin-top: 1px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.global-search { position: relative; width: 260px; }
.global-search .i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.global-search input {
  width: 100%; height: 40px;
  padding: 0 46px 0 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px; outline: none;
  transition: all 0.2s var(--ease);
}
.global-search input:focus { background: #fff; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(122, 139, 110, 0.1); }
.global-search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 10px; color: var(--text-3);
  border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: var(--surface-2);
}

.pc-content {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 36px 64px;
}

/* ---------- 页头 ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 24px;
}
.page-head h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: 0.01em; }
.page-head p { color: var(--text-2); font-size: 13px; margin-top: 5px; }
.page-head .head-actions { display: flex; gap: 10px; align-items: center; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h3 { font-size: 16px; font-weight: 600; }
.section-head .more { font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 4px; }
.section-head .more:hover { color: var(--olive-700); }

/* ---------- KPI ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.kpi::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 110px; height: 110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 139, 110, 0.09), transparent 70%);
}
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 12.5px; color: var(--text-2); }
.kpi-icon { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--olive-50); color: var(--olive-600); }
.kpi-icon.gold { background: var(--gold-soft); color: var(--gold-600); }
.kpi-value { font-family: var(--font-num); font-size: 36px; line-height: 1.12; margin-top: 12px; letter-spacing: -0.02em; color: var(--text); }
.kpi-value small { font-size: 14px; color: var(--text-3); margin-left: 4px; font-family: var(--font-body); }
.kpi-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 11.5px; }
.delta.up { color: var(--olive-600); }
.delta.down { color: var(--danger); }
.spark { margin-left: auto; opacity: 0.85; }

/* ---------- 仪表盘布局 ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(300px, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.dash-grid-3 { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }

.chart-legend { display: flex; align-items: center; gap: 16px; font-size: 11.5px; color: var(--text-3); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.chart-wrap { padding: 10px 20px 16px; }
.chart-wrap svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-axis { font-size: 10px; fill: var(--text-3); font-family: var(--font-body); }
.chart-tip { position: absolute; pointer-events: none; background: rgba(46, 51, 44, 0.92); color: #fff; font-size: 11px; padding: 6px 9px; border-radius: 7px; transform: translate(-50%, -120%); white-space: nowrap; opacity: 0; transition: opacity 0.15s; }
.chart-point { cursor: pointer; }
.chart-point:hover + .chart-tip { opacity: 1; }

/* ---------- 平台数据 ---------- */
.platform-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  background: linear-gradient(135deg, #77886b, #5f7056 78%);
  border-radius: var(--r-lg);
  color: #f2f3ed;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 36px -26px rgba(65, 79, 59, 0.7);
}
.platform-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -70px;
  width: 220px; height: 220px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.04), 0 0 0 62px rgba(255, 255, 255, 0.03);
}
.platform-hero .rank-label { font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.6); }
.platform-hero .rank-num { font-family: var(--font-num); font-size: 40px; line-height: 1.1; margin-top: 4px; }
.platform-hero .rank-num span { font-family: var(--font-body); font-size: 12px; color: rgba(255, 255, 255, 0.65); margin-left: 4px; }
.platform-hero .rank-sub { font-size: 11.5px; color: rgba(255, 255, 255, 0.72); margin-top: 6px; }
.rank-badge { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.16); color: #f6f3e9; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 11.5px; }

.platform-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 14px; }
.platform-metric { background: var(--surface); padding: 14px 16px; }
.platform-metric .pm-label { font-size: 11px; color: var(--text-3); }
.platform-metric .pm-value { font-family: var(--font-num); font-size: 22px; margin-top: 3px; }
.platform-metric .pm-sub { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }

.source-list { display: flex; flex-direction: column; gap: 13px; }
.source-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.source-row .src-name { font-size: 12.5px; color: var(--text-2); }
.source-row .src-val { font-size: 12.5px; font-weight: 600; color: var(--text); font-family: var(--font-num); }
.source-bar { grid-column: span 2; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.source-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--olive), #9aab8d); }
.source-row:nth-child(2) .source-bar i { background: linear-gradient(90deg, var(--gold), #d9bd8c); }
.source-row:nth-child(3) .source-bar i { background: linear-gradient(90deg, #98a89a, #bcc9b2); }

/* ---------- 列表页 ---------- */
.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.filter-bar .search-box { width: 260px; }
.filter-bar .select { width: auto; min-width: 116px; height: 40px; border-radius: 11px; background-color: var(--surface-2); font-size: 13px; }
.filter-bar .spacer { flex: 1; }

.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.list-card .table th:first-child, .list-card .table td:first-child { padding-left: 24px; }
.list-card .table th:last-child, .list-card .table td:last-child { padding-right: 24px; }
.list-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.pager { display: flex; gap: 4px; }
.pager button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: 12px; }
.pager button:hover { border-color: var(--line-strong); color: var(--text); }
.pager button.on { background: var(--olive-100); border-color: #d4ddca; color: var(--olive-700); font-weight: 600; }

/* ---------- 客户详情 ---------- */
.detail-hero {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.detail-hero::after {
  content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 162, 101, 0.1), transparent 68%);
  pointer-events: none;
}
.detail-hero .avatar { width: 64px; height: 64px; font-size: 22px; }
.detail-id { flex: 1; min-width: 0; }
.detail-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-name h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-meta .i { color: var(--text-3); }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; }
.info-item .k { font-size: 11.5px; color: var(--text-3); }
.info-item .v { font-size: 13.5px; color: var(--text); margin-top: 3px; }
.info-item .v.mono { font-family: var(--font-num); font-size: 15px; letter-spacing: 0.02em; }

.relation-list { display: flex; flex-direction: column; gap: 10px; }
.relation-item { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: all 0.2s var(--ease); }
.relation-item:hover { border-color: var(--line-strong); background: var(--surface); box-shadow: var(--shadow-sm); }
.relation-item .rel-role { font-size: 11px; color: var(--text-3); }
.relation-item .rel-name { font-size: 13px; color: var(--text); font-weight: 500; }
.relation-item .rel-arrow { color: var(--text-3); margin-left: auto; }
.relation-item .rel-tag { font-size: 10.5px; color: var(--text-3); }

.timeline-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.timeline-filter .chip { height: 28px; font-size: 11.5px; padding: 0 10px; }
.timeline .tl-card .row { font-size: 12px; color: var(--text-3); }
.media-thumbs { display: flex; gap: 6px; margin-top: 8px; }
.media-thumb {
  width: 54px; height: 42px; border-radius: 7px;
  background: linear-gradient(135deg, #e7ebe1, #d9e0cf);
  border: 1px solid rgba(122, 139, 110, 0.16);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-600);
  position: relative;
}
.media-thumb.video { background: linear-gradient(135deg, #f0e9db, #e6d9c2); color: var(--gold-600); border-color: rgba(198, 162, 101, 0.2); }

/* ---------- 跟进 / 邀约 ---------- */
.tab-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.followup-item {
  display: flex; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid #f0ede6;
}
.followup-item:last-child { border-bottom: none; }
.followup-item:hover { background: #faf9f5; }
.followup-body { flex: 1; min-width: 0; }
.followup-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.followup-top strong { font-size: 13.5px; font-weight: 600; }
.followup-text { font-size: 13px; color: var(--text-2); line-height: 1.75; margin-top: 7px; }
.followup-meta { display: flex; gap: 16px; margin-top: 9px; font-size: 11.5px; color: var(--text-3); flex-wrap: wrap; }
.followup-meta span { display: inline-flex; align-items: center; gap: 4px; }
.fu-side { text-align: right; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* ---------- 到访 ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
.stat-strip .item { background: var(--surface); padding: 16px 20px; }
.stat-strip .item .k { font-size: 11.5px; color: var(--text-3); }
.stat-strip .item .v { font-family: var(--font-num); font-size: 26px; margin-top: 2px; }
.stat-strip .item .v small { font-size: 12px; font-family: var(--font-body); color: var(--text-3); margin-left: 3px; }

/* ---------- 带看 ---------- */
.viewing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.viewing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s var(--ease); cursor: pointer; }
.viewing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.viewing-cover {
  position: relative; height: 172px;
  background:
    radial-gradient(120px 80px at 78% 22%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(140deg, #dfe6d8 0%, #cdd8c3 48%, #e8dfcc 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.viewing-cover::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.28) 42.5%, transparent 43%),
    linear-gradient(0deg, rgba(122, 139, 110, 0.14), transparent 55%);
}
.viewing-cover .cover-icon { position: relative; z-index: 1; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.62); display: flex; align-items: center; justify-content: center; color: var(--olive-700); backdrop-filter: blur(4px); }
.viewing-cover .cover-badge { position: absolute; left: 12px; top: 12px; z-index: 2; }
.viewing-cover .cover-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(46, 51, 44, 0.5); color: #fff; font-size: 11px; backdrop-filter: blur(4px); }
.viewing-body { padding: 15px 18px 17px; }
.viewing-body h4 { font-size: 14px; font-weight: 600; }
.viewing-body .v-meta { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.viewing-body .v-note { font-size: 12.5px; color: var(--text-2); margin-top: 9px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.viewing-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 11.5px; color: var(--text-3); }

.lightbox-media {
  height: 300px; border-radius: var(--r-md);
  background:
    radial-gradient(200px 120px at 70% 20%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #dfe6d8, #ccd7c2 55%, #e7dece);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-700);
  margin-bottom: 18px;
}
.lightbox-media .media-inner { text-align: center; }
.lightbox-media .media-inner p { font-size: 12px; color: var(--text-2); margin-top: 8px; }

/* ---------- 顾问 ---------- */
.consultant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.consultant-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: all 0.3s var(--ease); }
.consultant-card:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.consultant-card.off { opacity: 0.62; }
.consultant-top { display: flex; align-items: center; gap: 12px; }
.consultant-top .avatar { width: 46px; height: 46px; font-size: 16px; }
.consultant-id { flex: 1; min-width: 0; }
.consultant-id strong { font-size: 14px; font-weight: 600; display: block; }
.consultant-id em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.consultant-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 16px 0 14px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.consultant-stats div { background: var(--surface-2); padding: 10px 8px; text-align: center; }
.consultant-stats .k { font-size: 10.5px; color: var(--text-3); }
.consultant-stats .v { font-family: var(--font-num); font-size: 19px; margin-top: 1px; }
.consultant-bar { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.consultant-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--olive), #a3b295); }
.consultant-foot { display: flex; gap: 8px; margin-top: 14px; }
.consultant-foot .btn { flex: 1; }

/* ---------- 判客规则 + AI ---------- */
.rules-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.rule-section { padding: 22px 24px; border-bottom: 1px solid #f0ede6; }
.rule-section:last-child { border-bottom: none; }
.rule-section > h4 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.rule-section > h4 .i { color: var(--olive-600); }
.rule-section > p.hint { font-size: 12px; color: var(--text-3); margin-top: 5px; margin-bottom: 16px; line-height: 1.65; }
.rule-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 11px 0; }
.rule-row + .rule-row { border-top: 1px dashed var(--line); }
.rule-row .rule-name { font-size: 13px; color: var(--text); }
.rule-row .rule-desc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; max-width: 420px; line-height: 1.6; }
.inline-num { display: flex; align-items: center; gap: 8px; flex: none; }
.inline-num input { width: 74px; height: 38px; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-family: var(--font-num); font-size: 15px; outline: none; }
.inline-num input:focus { border-color: var(--olive); box-shadow: 0 0 0 3px rgba(122, 139, 110, 0.12); }
.inline-num span { font-size: 12px; color: var(--text-3); }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.radio-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; transition: all 0.2s var(--ease); }
.radio-card:hover { border-color: var(--line-strong); }
.radio-card.on { border-color: #c6d1bb; background: var(--olive-50); box-shadow: 0 0 0 3px rgba(122, 139, 110, 0.08); }
.radio-card .rc-title { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.radio-card .rc-desc { font-size: 11px; color: var(--text-3); margin-top: 5px; line-height: 1.55; }
.radio-card .rc-radio { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; }
.radio-card.on .rc-radio { border-color: var(--olive); }
.radio-card.on .rc-radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--olive); }

.ai-panel {
  position: sticky; top: 94px;
  border-radius: var(--r-lg);
  border: 1px solid #e4dbc8;
  background: linear-gradient(165deg, #fdfbf5, #f8f3e8 62%, #f6f0e2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.ai-panel::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px 120px at 100% 0%, rgba(198, 162, 101, 0.16), transparent 70%);
  pointer-events: none;
}
.ai-head { display: flex; align-items: center; gap: 11px; padding: 20px 22px 14px; position: relative; }
.ai-badge { width: 36px; height: 36px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, #d9c08c, var(--gold)); color: #fff; box-shadow: 0 8px 18px -10px rgba(177, 141, 82, 0.8); }
.ai-head h4 { font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; }
.ai-head p { font-size: 10.5px; color: #9a8b6d; margin-top: 1px; }
.ai-body { padding: 0 22px 20px; position: relative; }
.ai-summary { font-size: 12.5px; color: #5c5547; line-height: 1.8; }
.ai-summary strong { color: #3f3a30; font-weight: 600; }
.ai-diff { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ai-diff-item { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 9px; background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(198, 162, 101, 0.18); font-size: 11.5px; color: #6c614e; }
.ai-diff-item .from { color: #9c8f78; text-decoration: line-through; }
.ai-diff-item .to { color: #4d5e45; font-weight: 600; }
.ai-impact { margin-top: 14px; padding: 12px 13px; border-radius: 10px; background: rgba(122, 139, 110, 0.08); border: 1px solid rgba(122, 139, 110, 0.14); font-size: 11.5px; color: #5d6755; line-height: 1.7; }
.ai-impact b { font-weight: 600; }
.ai-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 10.5px; color: #a39883; }
.ai-history { margin-top: 4px; border-top: 1px dashed rgba(198, 162, 101, 0.3); }
.ai-history-item { padding: 12px 0; border-bottom: 1px dashed rgba(198, 162, 101, 0.22); font-size: 11.5px; color: #8b7f69; }
.ai-history-item:last-child { border-bottom: none; }
.ai-history-item strong { color: #5c5547; font-weight: 600; display: block; font-size: 12px; }
.ai-history-item time { font-size: 10.5px; color: #b0a68f; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 16px; align-items: start; }
.sub-plan { padding: 24px; border-radius: var(--r-lg); background: linear-gradient(150deg, #77886b, #5e6f55 80%); color: #f4f4ed; box-shadow: 0 20px 40px -28px rgba(65, 79, 59, 0.8); position: relative; overflow: hidden; }
.sub-plan::after { content: ""; position: absolute; right: -50px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 0 0 28px rgba(255, 255, 255, 0.04); }
.sub-plan .sp-label { font-size: 11px; letter-spacing: 0.14em; color: rgba(255, 255, 255, 0.62); }
.sub-plan h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; margin-top: 6px; }
.sub-plan .sp-desc { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-top: 5px; }
.sub-plan .sp-valid { font-size: 11.5px; color: rgba(255, 255, 255, 0.62); margin-top: 18px; }
.usage { margin-top: 18px; position: relative; z-index: 1; }
.usage-row { margin-top: 12px; }
.usage-row .ur-top { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255, 255, 255, 0.78); }
.usage-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); margin-top: 6px; overflow: hidden; }
.usage-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e8d6b0, #f2e7cf); }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #f1eee7; }
.settings-row:last-child { border-bottom: none; }
.settings-row .sr-title { font-size: 13px; color: var(--text); }
.settings-row .sr-desc { font-size: 11.5px; color: var(--text-3); margin-top: 3px; line-height: 1.6; }
.settings-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 18px; }

/* ---------- 登录 ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(460px, 0.92fr); position: relative; z-index: 1; }
.login-visual {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px 64px;
  background: linear-gradient(150deg, #78896c 0%, #65775b 46%, #52634a 100%);
  color: #f4f3ea;
  overflow: hidden;
}
.login-visual::before {
  content: ""; position: absolute; right: -180px; top: -160px;
  width: 620px; height: 620px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.035), 0 0 0 130px rgba(255, 255, 255, 0.025);
}
.login-visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(0deg, rgba(38, 48, 34, 0.28), transparent);
  pointer-events: none;
}
.login-visual .lv-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.login-visual .lv-brandmark { width: 40px; height: 46px; border-radius: 12px; background: #F5F3EE; border: 1px solid rgba(255, 255, 255, 0.22); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.login-visual .lv-brandmark img { height: 40px; }
.login-visual .lv-brandtext strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; }
.login-visual .lv-brandtext em { font-style: normal; font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.login-visual .lv-mid { position: relative; z-index: 1; max-width: 520px; }
.login-visual .lv-eyebrow { font-size: 11px; letter-spacing: 0.22em; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; }
.login-visual h1 { font-family: var(--font-display); font-size: 48px; line-height: 1.28; font-weight: 600; margin-top: 18px; letter-spacing: 0.01em; }
.login-visual h1 span { color: #e5d3ae; }
.login-visual .lv-desc { font-size: 14px; color: rgba(255, 255, 255, 0.72); line-height: 1.9; margin-top: 20px; max-width: 430px; }
.login-visual .lv-stats { position: relative; z-index: 1; display: flex; gap: 46px; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.login-visual .lv-stat .n { font-family: var(--font-num); font-size: 30px; }
.login-visual .lv-stat .l { font-size: 11.5px; color: rgba(255, 255, 255, 0.6); margin-top: 3px; }
.login-form-side { display: flex; align-items: center; justify-content: center; padding: 40px; background: var(--bg); }
.login-form { width: min(370px, 100%); animation: rise 0.6s var(--ease-out) both; }
.login-form .lf-eyebrow { font-size: 11px; letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; }
.login-form h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; margin-top: 10px; }
.login-form .lf-sub { font-size: 13px; color: var(--text-2); margin-top: 8px; line-height: 1.7; }
.login-form .lf-fields { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.login-form .lf-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; font-size: 12.5px; color: var(--text-2); }
.login-form .lf-meta a { color: var(--olive-700); }
.login-form .lf-submit { margin-top: 26px; height: 50px; border-radius: 13px; font-size: 15px; }
.login-form .lf-demo { margin-top: 22px; padding: 13px 15px; border-radius: 12px; background: var(--olive-50); border: 1px dashed #d5ddc9; font-size: 11.5px; color: var(--olive-700); line-height: 1.8; }
.login-form .lf-foot { margin-top: 28px; font-size: 11px; color: var(--text-3); text-align: center; }

/* ---------- 响应式 ---------- */
@media (max-width: 1320px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .viewing-grid { grid-template-columns: repeat(2, 1fr); }
  .consultant-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1180px) {
  :root { --sidebar-w: 84px; }
  .pc-sidebar { padding: 22px 12px 16px; align-items: center; }
  .pc-brand { padding: 0 0 18px; }
  .pc-brand-text, .project-switch span:nth-child(2), .project-switch .i,
  .nav-label, .pc-nav a span, .pc-nav .nav-badge,
  .side-user-meta, .side-user > .i { display: none; }
  .project-switch { width: 44px; padding: 0; justify-content: center; }
  .project-switch-wrap { width: 44px; }
  .project-menu { width: 220px; }
  .project-switch .project-dot { width: 8px; height: 8px; }
  .pc-nav { width: 100%; }
  .pc-nav a { justify-content: center; padding: 0; height: 46px; margin-bottom: 4px; }
  .pc-nav a .i { width: 20px; height: 20px; }
  body[data-page] .pc-nav a::before { display: none; }
  .pc-sidebar-foot { width: 100%; display: flex; justify-content: center; }
  .side-user { padding: 8px 0; }
  .pc-topbar { padding: 0 24px; }
  .pc-content { padding: 24px 24px 56px; }
  .global-search { width: 200px; }
  .dash-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .rules-layout { grid-template-columns: 1fr; }
  .ai-panel { position: static; }
  .settings-grid { grid-template-columns: 1fr; }
  .login-page { grid-template-columns: 1fr; }
  .login-visual { display: none; }
}

@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .dash-grid-2, .dash-grid-3 { grid-template-columns: 1fr; }
  .viewing-grid, .consultant-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .filter-bar .search-box { width: 100%; }
  .detail-hero { flex-wrap: wrap; }
  .detail-actions { width: 100%; justify-content: flex-start; }
  .radio-cards { grid-template-columns: 1fr; }
  .topbar-actions .global-search { display: none; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   页面级补充：客户详情 / 跟进 / 到访 / 带看 / 顾问 / 规则 / 设置
   ============================================================ */

/* 三列 KPI */
.kpi-grid.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 时间轴节点图标 */
.tl-dot.has-icon::after { display: none; }
.tl-dot.has-icon .i { width: 9px; height: 9px; color: var(--olive-600); }
.tl-item.gold .tl-dot.has-icon .i { color: var(--gold-600); }
.tl-item.info .tl-dot.has-icon .i { color: var(--info); }

/* 详情页辅助 */
.detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.detail-phone {
  border: none; background: none; padding: 0;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--text-2);
}
.detail-phone:hover { color: var(--olive-700); }
.detail-back { margin-bottom: 14px; }
.mini-list { display: flex; flex-direction: column; }
.mini-row {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  font-size: 12.5px; color: var(--text-2);
}
.mini-row:last-child { border-bottom: none; }
.mini-row .mi {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--olive-50); color: var(--olive-600);
}
.mini-row .mi.gold { background: var(--gold-soft); color: var(--gold-600); }
.mini-row .mt { flex: 1; min-width: 0; }
.mini-row .mt strong { display: block; color: var(--text); font-size: 12.5px; font-weight: 500; }
.mini-row .mt em { font-style: normal; font-size: 11px; color: var(--text-3); }
.mini-row .mv { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.mini-row .mv b { font-family: var(--font-num); font-size: 14px; color: var(--text); font-weight: 500; }
.protect-track { height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.protect-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--olive), #a3b295); }

/* 照片 / 视频占位 */
.thumb-btn { padding: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.photo-ph {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-700);
  background:
    radial-gradient(120px 80px at 74% 18%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #e3e9dc, #d2dcc8 55%, #ece4d3);
}
.photo-ph::after {
  content: attr(data-cap);
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 11px 8px;
  font-size: 10.5px; color: #fff;
  background: linear-gradient(0deg, rgba(46, 51, 44, 0.62), transparent);
}
.photo-ph.video {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
  color: var(--gold-600);
  background:
    radial-gradient(160px 90px at 72% 22%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(140deg, #efe7d8, #e4d5bb 58%, #d9e0cf);
}
.photo-ph .ph-play {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--gold-600);
}
.photo-note { font-size: 11.5px; color: var(--text-3); line-height: 1.75; margin-top: 12px; }

/* 规则 · 有效跟进口径 */
.criteria-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.criteria-item {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface-2);
  font-size: 12.5px; color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.criteria-item input { width: 15px; height: 15px; accent-color: var(--olive); margin: 0; }
.criteria-item:hover { border-color: var(--line-strong); }
.criteria-item.on { border-color: #c6d1bb; background: var(--olive-50); color: var(--text); }
.rule-current { font-size: 11.5px; color: var(--text-3); text-align: right; }
.ai-skeleton { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.ai-skeleton .skeleton { display: block; height: 10px; }

/* 设置 · Tab 与套餐 */
.tab-bar { margin-bottom: 20px; }
.tab-pane { display: none; }
.tab-pane.on { display: block; animation: rise 0.35s var(--ease-out) both; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.plan-card {
  position: relative;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.plan-card.current { border-color: #c6d1bb; box-shadow: 0 0 0 3px rgba(122, 139, 110, 0.08), var(--shadow-sm); }
.plan-card h4 { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.plan-price { font-family: var(--font-num); font-size: 28px; margin-top: 8px; color: var(--text); }
.plan-price small { font-family: var(--font-body); font-size: 11.5px; color: var(--text-3); margin-left: 3px; }
.plan-card .plan-desc { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.plan-feats { display: flex; flex-direction: column; gap: 9px; margin: 16px 0 18px; font-size: 12px; color: var(--text-2); }
.plan-feats li { display: flex; align-items: flex-start; gap: 7px; line-height: 1.55; }
.plan-feats .i { color: var(--olive-600); margin-top: 2px; }
.logo-box {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
}
.logo-box img { height: 52px; width: auto; }
.logo-box .lb-meta { font-size: 11.5px; color: var(--text-3); line-height: 1.7; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(46, 51, 44, 0.08); }

@media (max-width: 1320px) {
  .kpi-grid.kpi-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-ph.video { grid-column: span 1; }
}
@media (max-width: 900px) {
  .kpi-grid.kpi-3 { grid-template-columns: 1fr; }
  .criteria-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   新增：经纪人管理 / 报备二维码
   ============================================================ */
.broker-name-link { color: var(--text); font-weight: 500; }
.broker-name-link:hover { color: var(--olive-700); }

.qr-frame {
  width: 200px; height: 200px; flex: none;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(122, 139, 110, 0.05), var(--shadow-sm);
}
.qr-frame svg { width: 100%; height: 100%; display: block; }
.qr-panel-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qr-validity { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.validity-opt {
  height: 38px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); font-size: 12px;
  transition: all 0.2s var(--ease);
}
.validity-opt:hover { border-color: var(--line-strong); }
.validity-opt.on {
  border-color: #c6d1bb; background: var(--olive-50); color: var(--olive-700);
  font-weight: 600; box-shadow: 0 0 0 3px rgba(122, 139, 110, 0.07);
}
.qr-valid-text { width: 100%; font-size: 11.5px; color: var(--text-3); text-align: center; }
.qr-valid-text b { color: var(--text-2); font-weight: 500; }
.qr-records { width: 100%; }
.qr-records-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 4px; margin-top: 4px;
  font-size: 11.5px; color: var(--text-3);
  border-top: 1px dashed var(--line);
}
.qr-record-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 11.5px; color: var(--text-2);
}
.qr-record-row:last-child { border-bottom: none; }
.qr-record-row .qr-time { font-family: var(--font-num); color: var(--text); }
.qr-record-row .qr-device { margin-left: auto; font-size: 10.5px; color: var(--text-3); }
.qr-empty { padding: 18px 0; text-align: center; font-size: 11.5px; color: var(--text-3); }
.qr-note { font-size: 10.5px; color: var(--text-3); line-height: 1.7; text-align: center; }
.qr-expired {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2);
}
.qr-expired .qe-main { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-2); }
.qr-expired .qe-main strong { display: block; font-size: 12px; font-weight: 500; color: var(--text); }
.qr-expired .qe-main em { font-style: normal; font-size: 10.5px; color: var(--text-3); }
.qr-hint { padding: 30px 20px; text-align: center; }
.qr-hint .hint-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 50%; background: var(--surface-3); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.qr-hint h4 { font-size: 14px; font-weight: 600; color: var(--text); }
.qr-hint p { font-size: 12px; color: var(--text-3); line-height: 1.7; margin-top: 6px; }

/* 凭证卡片预览与下载 */
.card-preview {
  width: 100%;
  display: flex; justify-content: center;
  padding: 24px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(179, 146, 79, 0.26);
  background:
    radial-gradient(circle at 50% 26%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 62%),
    linear-gradient(158deg, #f1e9d8, #e4dbc8);
}
.card-preview canvas {
  display: block;
  width: 100%; max-width: 300px; height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 40px -20px rgba(30, 58, 47, 0.55), 0 2px 6px rgba(30, 58, 47, 0.12);
}
.card-downloads { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.card-foot-note { width: 100%; font-size: 11px; color: var(--text-3); line-height: 1.75; text-align: center; }
.privacy-switch {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.privacy-switch a {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11.5px; line-height: 1.4;
  color: var(--text-3);
  transition: all 0.2s var(--ease);
}
.privacy-switch a:hover { color: var(--text); }
.privacy-switch a.on {
  background: #fff; color: var(--olive-700);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(46, 51, 44, 0.12);
}

/* ============================================================
   新增：平台数据
   ============================================================ */
.platform-filter .seg { margin-left: 2px; }
.visitor-cell { display: flex; align-items: center; gap: 10px; }
.visitor-id { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.visitor-id strong { font-size: 13px; font-weight: 500; color: var(--text); }
.visitor-id em { font-style: normal; font-size: 11px; color: var(--text-3); }
.visitor-anon strong { color: var(--text-2); font-weight: 400; }
.anon-avatar {
  background: linear-gradient(145deg, #f0eee7, #e6e2d7);
  color: var(--text-3); border-color: var(--line);
}
.platform-footnote {
  display: flex; gap: 8px; align-items: flex-start;
  margin-top: 14px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2);
  font-size: 11.5px; color: var(--text-3); line-height: 1.75;
}
.platform-footnote .i { color: var(--olive-600); margin-top: 2px; }

/* ============================================================
   新增：消息群发
   ============================================================ */
.broadcast-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px; align-items: start; }
.field-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.broadcast-editor .card-body { padding-top: 16px; }
.broadcast-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 11.5px; color: var(--text-3); }
.recipient-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.recipient-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recipient-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2);
  font-size: 12.5px; color: var(--text-2);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.recipient-item:hover { border-color: var(--line-strong); }
.recipient-item.on { border-color: #c6d1bb; background: var(--olive-50); color: var(--text); }
.recipient-item input { width: 15px; height: 15px; accent-color: var(--olive); margin: 0; }
.recipient-item .ri-meta { margin-left: auto; font-size: 10.5px; color: var(--text-3); }
.char-count { text-align: right; font-size: 11px; color: var(--text-3); margin-top: 4px; }

.notice-preview {
  position: sticky; top: 94px;
  padding: 22px;
  border: 1px solid #e4dbc8; border-radius: var(--r-lg);
  background: linear-gradient(165deg, #fdfbf5, #f8f3e8 62%, #f6f0e2);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.notice-preview::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px 120px at 100% 0%, rgba(198, 162, 101, 0.16), transparent 70%);
  pointer-events: none;
}
.np-eyebrow { position: relative; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #a39883; font-weight: 600; }
.np-device {
  position: relative; z-index: 1;
  margin-top: 14px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
}
.np-top { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-3); }
.np-app {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--olive-100); color: var(--olive-700);
  display: flex; align-items: center; justify-content: center;
}
.np-title { font-size: 15px; font-weight: 600; margin-top: 12px; line-height: 1.5; word-break: break-word; }
.np-title.is-empty { color: var(--text-3); font-weight: 400; }
.np-body {
  font-size: 12.5px; color: var(--text-2); line-height: 1.8;
  margin-top: 8px; min-height: 76px;
  white-space: pre-wrap; word-break: break-word;
}
.np-body.is-empty { color: var(--text-3); }
.np-meta {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 10.5px; color: var(--text-3);
}
.read-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.read-row:last-child { border-bottom: none; }
.read-row .read-name { flex: 1; color: var(--text); }
.read-row .read-time { font-size: 11px; color: var(--text-3); font-family: var(--font-num); }

/* ============================================================
   新增：数据安全
   ============================================================ */
.security-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 22px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, #77886b, #5f7056 78%);
  color: #f2f3ed;
  box-shadow: 0 18px 36px -26px rgba(65, 79, 59, 0.7);
}
.security-hero::after {
  content: ""; position: absolute; right: -50px; top: -70px;
  width: 230px; height: 230px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 30px rgba(255, 255, 255, 0.04), 0 0 0 64px rgba(255, 255, 255, 0.03);
}
.sh-icon {
  position: relative; z-index: 1;
  width: 62px; height: 62px; flex: none;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
  color: #f0e7d2;
}
.security-hero > div { position: relative; z-index: 1; }
.security-hero h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: 0.01em; }
.security-hero p { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); line-height: 1.8; margin-top: 6px; max-width: 760px; }

.security-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sec-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.sec-head { display: flex; align-items: center; gap: 11px; }
.sec-icon {
  width: 38px; height: 38px; flex: none;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--olive-50); color: var(--olive-600);
}
.sec-icon.gold { background: var(--gold-soft); color: var(--gold-600); }
.sec-card h3 { font-size: 14.5px; font-weight: 600; }
.sec-card .sec-sub { font-size: 11px; color: var(--text-3); margin-top: 1px; }
.sec-card > p { font-size: 12.5px; color: var(--text-2); line-height: 1.8; margin-top: 12px; }
.sec-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.sec-list li { display: flex; gap: 8px; font-size: 12px; color: var(--text-2); line-height: 1.7; }
.sec-list li .i { color: var(--olive-600); margin-top: 3px; }

.sec-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.sec-step { padding: 16px 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.sec-step .n { font-family: var(--font-num); font-size: 20px; color: var(--gold-600); }
.sec-step strong { display: block; font-size: 12.5px; font-weight: 600; margin-top: 4px; }
.sec-step p { font-size: 11px; color: var(--text-3); line-height: 1.65; margin-top: 5px; }

.faq-list details { border-bottom: 1px dashed var(--line); padding: 14px 2px; }
.faq-list details:last-child { border-bottom: none; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 500; color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .i { color: var(--text-3); transition: transform 0.2s var(--ease); }
.faq-list details[open] summary .i { transform: rotate(180deg); }
.faq-list .faq-a { font-size: 12px; color: var(--text-2); line-height: 1.8; margin-top: 8px; max-width: 880px; }

.security-footnote {
  display: flex; gap: 10px; align-items: flex-start;
  margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface-2);
  font-size: 11.5px; color: var(--text-3); line-height: 1.75;
}
.security-footnote .i { color: var(--olive-600); margin-top: 2px; }

@media (max-width: 1180px) {
  .broadcast-grid { grid-template-columns: 1fr; }
  .notice-preview { position: static; }
  .sec-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .security-grid { grid-template-columns: 1fr; }
  .security-hero { flex-direction: column; align-items: flex-start; }
  .sec-steps { grid-template-columns: 1fr; }
  .recipient-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   看房日记 · 内容审核与效果
   ============================================================ */
.content-cell { display: flex; align-items: center; gap: 12px; min-width: 260px; }
.content-thumb {
  width: 68px; height: 50px; flex: none;
  border-radius: 9px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-700);
  background:
    radial-gradient(60px 36px at 76% 20%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #e0e7d9, #cfdac6 55%, #e9e0ce);
  border: 1px solid rgba(122, 139, 110, 0.16);
}
.content-thumb.gold {
  color: var(--gold-600);
  background:
    radial-gradient(60px 36px at 24% 22%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #f0e8d8, #e4d6bc 55%, #dde4d6);
  border-color: rgba(198, 162, 101, 0.2);
}
.content-thumb .play-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.content-cell .cc-body { min-width: 0; }
.content-cell .cc-title { font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--text); }
.content-cell .cc-sub { font-size: 11px; color: var(--text-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.content-cell .cc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
.content-cell .cc-tags span { font-size: 9.5px; padding: 2px 6px; border-radius: 4px; background: var(--surface-3); color: var(--text-2); }
.data-inline { display: flex; gap: 11px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.data-inline b { font-family: var(--font-num); font-size: 12.5px; font-weight: 600; color: var(--text); margin-right: 2px; }
.actions .btn + .btn { margin-left: 4px; }

.effect-list { display: flex; flex-direction: column; }
.effect-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.effect-row:last-child { border-bottom: none; }
.effect-row .er-name { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--text-2); }
.effect-row .er-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effect-row .er-val { font-family: var(--font-num); font-size: 12.5px; font-weight: 600; color: var(--text); }
.effect-bar { grid-column: span 2; height: 5px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.effect-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--olive), #a6b699); }
.effect-bar.gold i { background: linear-gradient(90deg, var(--gold), #dcc394); }

.reject-reasons { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 14px; }
.reject-reasons .chip { height: 28px; font-size: 11.5px; padding: 0 10px; }
.detail-cover {
  height: 150px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-700);
  background:
    radial-gradient(140px 80px at 76% 20%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #e0e7d9, #cfdac6 55%, #e9e0ce);
}
.detail-cover.gold {
  color: var(--gold-600);
  background:
    radial-gradient(140px 80px at 24% 22%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #f0e8d8, #e4d6bc 55%, #dde4d6);
}
.detail-cover .dc-play {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.detail-meta-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.detail-note { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: var(--danger-soft); color: #a25a51; font-size: 11.5px; line-height: 1.7; display: flex; gap: 8px; }
.detail-note .i { flex: none; margin-top: 2px; }
.detail-body { font-size: 12.5px; color: var(--text-2); line-height: 1.85; margin-top: 12px; white-space: pre-wrap; }

/* 聚云南展示预览 */
.display-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.jyn-browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.jyn-bar { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #f4f2ec; border-bottom: 1px solid var(--line); }
.jyn-bar .dots { display: flex; gap: 5px; }
.jyn-bar .dots i { width: 8px; height: 8px; border-radius: 50%; background: #d7d3c9; }
.jyn-bar .dots i:nth-child(1) { background: #d9a79e; }
.jyn-bar .dots i:nth-child(2) { background: #ddc48f; }
.jyn-bar .dots i:nth-child(3) { background: #a9bb9d; }
.jyn-bar .url {
  flex: 1; text-align: center; padding: 3px 12px;
  font-family: var(--font-num); font-size: 10.5px; color: var(--text-3);
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
}
.jyn-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.jyn-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--olive-700); }
.jyn-logo .mark { width: 22px; height: 22px; border-radius: 6px; background: var(--olive); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.jyn-search { flex: 1; max-width: 260px; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3); font-size: 11px; }
.jyn-hero {
  margin: 14px 18px 0; padding: 18px;
  border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eef2e8, #e4ebdc 56%, #f1ead9);
  border: 1px solid rgba(122, 139, 110, 0.14);
}
.jyn-hero::after { content: ""; position: absolute; right: -40px; top: -60px; width: 170px; height: 170px; border-radius: 50%; border: 1px solid rgba(122, 139, 110, 0.12); box-shadow: 0 0 0 22px rgba(122, 139, 110, 0.04); }
.jyn-hero h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; position: relative; z-index: 1; }
.jyn-hero .sub { font-size: 11px; color: var(--text-2); margin-top: 4px; position: relative; z-index: 1; }
.jyn-hero .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; position: relative; z-index: 1; }
.jyn-hero .tags span { font-size: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(122, 139, 110, 0.16); color: var(--olive-700); }
.jyn-hero .metrics { display: flex; gap: 20px; margin-top: 13px; position: relative; z-index: 1; font-size: 10.5px; color: var(--text-3); }
.jyn-hero .metrics b { font-family: var(--font-num); font-size: 15px; color: var(--text); font-weight: 500; margin-right: 3px; }
.jyn-tabs { display: flex; gap: 22px; padding: 0 18px; margin-top: 15px; border-bottom: 1px solid var(--line); }
.jyn-tabs span { position: relative; padding: 0 0 10px; font-size: 12.5px; color: var(--text-3); }
.jyn-tabs span.on { color: var(--text); font-weight: 600; }
.jyn-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--olive); }
.jyn-section { padding: 16px 18px 20px; }
.jyn-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.jyn-section-head h4 { font-size: 14px; font-weight: 600; }
.jyn-section-head .cnt { font-size: 10.5px; color: var(--text-3); margin-left: 7px; font-weight: 400; }
.jyn-sort { display: flex; gap: 6px; }
.jyn-sort button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-3); font-size: 10.5px; }
.jyn-sort button.on { background: var(--olive-100); border-color: #d4ddca; color: var(--olive-700); }
.jyn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jyn-diary {
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: #fff; cursor: pointer; transition: all 0.22s var(--ease);
}
.jyn-diary:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.jyn-cover {
  height: 122px; position: relative;
  display: flex; align-items: center; justify-content: center;
  color: var(--olive-700);
  background:
    radial-gradient(100px 60px at 76% 20%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #e0e7d9, #cfdac6 55%, #e9e0ce);
}
.jyn-cover.gold {
  color: var(--gold-600);
  background:
    radial-gradient(100px 60px at 24% 22%, rgba(255, 255, 255, 0.6), transparent 70%),
    linear-gradient(140deg, #f0e8d8, #e4d6bc 55%, #dde4d6);
}
.jyn-cover .cover-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.65); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.jyn-cover .badge { position: absolute; left: 9px; top: 9px; height: 20px; font-size: 9px; }
.jyn-cover .cap { position: absolute; right: 9px; bottom: 9px; height: 20px; padding: 0 8px; border-radius: 999px; background: rgba(46, 51, 44, 0.5); color: #fff; font-size: 9px; display: inline-flex; align-items: center; gap: 4px; backdrop-filter: blur(4px); }
.jyn-body { padding: 10px 11px 11px; }
.jyn-body .t { font-size: 12.5px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 37px; }
.jyn-body .m { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: 10px; color: var(--text-3); }
.jyn-consultant { display: flex; align-items: center; gap: 5px; }
.jyn-consultant .avatar { width: 20px; height: 20px; font-size: 8px; }
.jyn-body .views { display: inline-flex; align-items: center; gap: 3px; }

.display-side .card + .card { margin-top: 16px; }
.display-rule { display: flex; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.display-rule:last-child { border-bottom: none; }
.display-rule .dr-n { width: 22px; height: 22px; flex: none; border-radius: 7px; background: var(--olive-100); color: var(--olive-700); display: flex; align-items: center; justify-content: center; font-family: var(--font-num); font-size: 11px; }
.display-rule strong { display: block; font-size: 12.5px; font-weight: 600; }
.display-rule p { font-size: 11px; color: var(--text-3); line-height: 1.7; margin-top: 3px; }

@media (max-width: 1180px) {
  .display-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .jyn-grid { grid-template-columns: 1fr; }
  .jyn-head { flex-wrap: wrap; }
  .jyn-hero .metrics { flex-wrap: wrap; gap: 10px 16px; }
}
