/* ==========================================================================
   正胜 · 法商汇   ——   页面级样式
   ========================================================================== */

/* ============================== 首页 Hero =============================== */
.hero {
  background: var(--c-primary);
  color: var(--c-on-dark-2);
  padding: 76px 0 68px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -180px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 140, 74, .16), rgba(217, 140, 74, 0) 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 40px; line-height: 1.32; margin-top: 16px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--c-accent-2); }
.hero__lead { margin-top: 18px; font-size: 15px; line-height: 1.9; color: var(--c-on-dark-2); max-width: 540px; }
.hero__btns { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.founders-card {
  background: var(--c-primary-2);
  border: 1px solid rgba(217, 140, 74, .45);
  border-radius: var(--r-card);
  padding: 26px 28px;
}
.founders-card h3 { color: #fff; font-size: 18px; }
.founders-card__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(216, 201, 180, .18);
  font-size: 14px;
}
.founders-card__row:last-of-type { border-bottom: 0; }
.founders-card__row span:first-child { color: var(--c-on-dark-2); }
.founders-card__row span:last-child { color: var(--c-on-dark-1); font-weight: 600; text-align: right; }
.founders-card__foot { margin-top: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ============================== 数据条（首页通栏统计带） ================== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 28px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-card); box-shadow: var(--sh-1);
  overflow: hidden;
}
.stats__item {
  padding: 20px 26px; text-align: left;
}
.stats__item + .stats__item { border-left: 1px solid var(--c-divider); }
.stats__num { font-size: 28px; font-weight: 700; color: var(--c-accent-2); line-height: 1.2; }
.stats__label { font-size: 13px; color: var(--c-muted); margin-top: 4px; }

/* ============================== 搜索区 ================================== */
.searchbar { margin-top: 48px; }
.searchbar__chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  height: 36px; padding: 0 18px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; font-size: 14px; cursor: pointer;
  background: var(--c-chip); color: var(--c-text); border: 1px solid transparent;
}
.chip:hover { color: var(--c-accent-deep); }
.chip.is-active { background: var(--c-primary); color: #fff; }
.searchbar__row { display: flex; gap: 12px; }
.searchbar__row .input { flex: 1; height: 50px; border-radius: var(--r-sm); }

/* ============================== 通用卡片栅格 ============================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============================== 核心价值 ================================ */
.value-card { position: relative; }
.value-card__num { font-size: 13px; font-weight: 700; color: var(--c-accent-2); letter-spacing: .1em; }
.value-card h3 { font-size: 18px; margin-top: 8px; }
.value-card p { margin-top: 10px; font-size: 14px; }

/* ============================== 供需大厅 ================================ */
.supply-panel { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); overflow: hidden; }
.supply-panel__head { background: var(--c-primary); color: var(--c-on-dark-2); padding: 20px 24px; }
.supply-panel__head--alt { background: var(--c-primary-2); }
.supply-panel__head h3 { color: #fff; font-size: 17px; }
.supply-panel__head p { font-size: 13px; margin-top: 4px; color: var(--c-on-dark-2); }
.supply-item { padding: 18px 24px; border-bottom: 1px solid var(--c-divider); }
.supply-item:last-child { border-bottom: 0; }
.supply-item h4 { font-size: 15px; color: var(--c-text-strong); font-weight: 600; }
.supply-item p { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.supply-more { display: block; text-align: center; padding: 14px; font-size: 14px; color: var(--c-primary); border-top: 1px solid var(--c-divider); }
.supply-more:hover { color: var(--c-accent-deep); background: var(--c-tint); }

/* ============================== 会员体系 ================================ */
.plan { display: flex; flex-direction: column; }
.plan__tag { align-self: flex-start; }
.plan h3 { font-size: 19px; margin-top: 14px; }
.plan__price { font-size: 26px; font-weight: 700; color: var(--c-accent-deep); margin-top: 10px; }
.plan__price small { font-size: 13px; font-weight: 500; color: var(--c-muted); }
.plan__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan__list li { font-size: 14px; padding-left: 20px; position: relative; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-accent-2);
}
.plan--dark .plan__list li { color: var(--c-on-dark-2); }
.plan--dark .plan__price { color: var(--c-accent-2); }
.plan .btn { margin-top: 22px; }

/* ============================== 双栏 CTA ================================ */
.cta-row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.cta-card { border-radius: var(--r-card); padding: 34px 36px; }
.cta-card--dark { background: var(--c-primary-2); color: var(--c-on-dark-2); }
.cta-card--dark h3 { color: #fff; font-size: 22px; }
.cta-card--dark p { margin-top: 12px; font-size: 14px; }
.cta-card--light { background: var(--c-surface); border: 1px solid var(--c-border); }
.cta-card--light h3 { font-size: 22px; }
.cta-card--light p { margin-top: 12px; font-size: 14px; }
.cta-card .btn { margin-top: 22px; }

/* ============================== 活动卡片 ================================ */
.act-card h3 { font-size: 17px; }
.act-card p { margin-top: 10px; font-size: 14px; }
.act-card .tag { margin-top: 16px; }

/* ============================== 会员名录 ================================ */
.filters { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 24px 26px; }
.filters__grid { display: grid; grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.filters__group .field label { margin-bottom: 8px; }
.filters__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  height: 32px; padding: 0 12px; border-radius: var(--r-pill); font-size: 13px;
  white-space: nowrap;
  display: inline-flex; align-items: center; cursor: pointer;
  border: 1px solid var(--c-border); background: var(--c-surface); color: var(--c-text);
}
.opt:hover { border-color: var(--c-accent-2); color: var(--c-accent-deep); }
.opt.is-active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.filters__foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-divider); display: flex; gap: 12px; justify-content: flex-end; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 20px; flex-wrap: wrap; }
.toolbar__count { font-size: 14px; color: var(--c-text-strong); }
.toolbar__count b { color: var(--c-primary); }
.toolbar__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-muted); }
.toolbar__sort .select { height: 36px; width: auto; min-width: 140px; }

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.member-card { display: flex; flex-direction: column; }
.member-card--ent { border-color: var(--c-accent-2); }
.member-card__top { display: flex; gap: 14px; align-items: center; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 20px; font-weight: 600;
  background: var(--c-primary-2); color: #fff;
}
.avatar--ent { border-radius: var(--r-xs); background: var(--c-accent-2); color: #fff; }
.avatar--plain { background: var(--c-muted); }
.member-card__name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.member-card__name h3 { font-size: 17px; }
.member-card__meta { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.member-card__meta div { font-size: 13px; display: flex; gap: 8px; }
.member-card__meta i { font-style: normal; color: var(--c-muted); flex: none; width: 52px; }
.member-card__meta span { color: var(--c-text-strong); }
.member-card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-divider); display: flex; gap: 10px; }
.member-card__foot .btn { flex: 1; }
.member-card__extra { font-size: 13px; color: var(--c-accent-deep); margin-top: 12px; }

/* ============================== 详情页 ================================== */
.detail-banner { background: var(--c-primary); color: var(--c-on-dark-2); padding: 44px 0 46px; }
.detail-banner__grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.avatar--lg { width: 96px; height: 96px; font-size: 34px; }
.detail-banner h1 { color: #fff; font-size: 28px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-banner__meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.detail-banner__meta span { color: var(--c-on-dark-2); }
.detail-banner__meta b { color: var(--c-accent-2); font-weight: 600; }

.qr-card { background: var(--c-surface); border-radius: var(--r-card); padding: 16px; text-align: center; }
.qr-card__img { width: 116px; height: 116px; margin: 0 auto; background: #fff; border-radius: var(--r-xs); padding: 8px; }
.qr-card__img svg { width: 100%; height: 100%; display: block; }
.qr-card p { font-size: 12px; color: var(--c-primary); margin-top: 10px; }

/* ---------------- 会员中心 · 微信二维码上传 ---------------- */
.qr-upload { display: flex; gap: 20px; align-items: flex-start; }
.qr-upload__box {
  width: 132px; height: 132px; flex: none; background: #fff;
  border: 1px solid var(--c-border); border-radius: var(--r-xs); padding: 8px;
}
.qr-upload__box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-upload__ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--c-muted); background: var(--c-surface-2, #F4F0EA); border-radius: inherit;
}
.qr-upload__ops { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) { .qr-upload { flex-direction: column; } }

/* ---------------- 会员中心 · 头像上传 ---------------- */
.av-upload { display: flex; gap: 20px; align-items: flex-start; }
.av-upload__box {
  width: 132px; height: 132px; flex: none; background: #fff;
  border: 1px solid var(--c-border); border-radius: 50%; padding: 6px; overflow: hidden;
}
.av-upload__box img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av-upload__ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--c-muted); background: var(--c-surface-2, #F4F0EA); border-radius: 50%;
}
.av-upload__ops { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 640px) { .av-upload { flex-direction: column; } }

/* 头像图片（有真实头像时替换姓名首字占位） */
.avatar--img { padding: 0; overflow: hidden; background: var(--c-surface-2, #F4F0EA); }
.avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.detail-block h3 { font-size: 18px; margin-bottom: 14px; }
.detail-block p { font-size: 14px; line-height: 1.9; }
.case-list { display: flex; flex-direction: column; gap: 16px; }
.case-item { padding-bottom: 16px; border-bottom: 1px solid var(--c-divider); }
.case-item:last-child { border-bottom: 0; padding-bottom: 0; }
.case-item h4 { font-size: 15px; color: var(--c-text-strong); }
.case-item p { font-size: 13px; color: var(--c-muted); margin-top: 6px; }
.kv { display: flex; flex-direction: column; gap: 12px; }
.kv__row { display: flex; gap: 12px; font-size: 14px; }
.kv__row i { font-style: normal; color: var(--c-muted); flex: none; width: 72px; }
.kv__row span { color: var(--c-text-strong); }

/* ============================== 供需大厅页 ============================== */
/* .tabs / .tab 的样式在 theme.css（前台与后台共用），此处不再重复定义 */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 22px 26px;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.post:hover { border-color: var(--c-accent-2); box-shadow: var(--sh-2); }
.post h3 { font-size: 16px; }
.post__meta { margin-top: 8px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--c-muted); }
.post__desc { margin-top: 10px; font-size: 14px; }
.post__side { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
/* .notice 的样式在 theme.css（前台与后台共用） */

/* 供需详情页「举报此信息」入口：警示胶囊样式，一眼可识别可点击 */
#reportLink {
  display: inline-block;
  margin: 0 3px;
  padding: 2px 12px 3px;
  border: 1px solid #EFC4BD;
  border-radius: 999px;
  background: #FDF1EF;
  color: #B23A3A;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
#reportLink::before { content: '⚠ '; font-weight: 400; }
#reportLink:hover {
  background: #B23A3A;
  border-color: #B23A3A;
  color: #fff;
}
#reportLink[data-done] {
  background: #F0F2F5;
  border-color: #D5DCE4;
  color: var(--c-muted);
  cursor: default;
}
#reportLink[data-done]:hover { background: #F0F2F5; border-color: #D5DCE4; color: var(--c-muted); }

/* ============================== 云徒弟 ================================== */
.cohorts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.cohort-more { font-size: 13px; color: var(--c-muted); margin-left: 6px; }

.expert-card { border-color: var(--c-accent-2); }
.expert-card .expert-role { font-size: 13px; font-weight: 600; color: var(--c-accent-deep); }
.expert-card h3 { font-size: 18px; margin-top: 6px; }
.expert-card p { margin-top: 10px; font-size: 14px; }

.org-chart { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 32px 28px; }
.org-chart > h3 { text-align: center; font-size: 20px; margin-bottom: 26px; }
.org-layer { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.org-node {
  border: 1px solid var(--c-border); border-radius: var(--r-card);
  background: var(--c-surface); padding: 14px 22px; text-align: center; min-width: 132px;
}
.org-node .role { font-size: 12px; color: var(--c-muted); }
.org-node .name { font-size: 16px; font-weight: 600; color: var(--c-primary); margin-top: 4px; }
.org-node--dark { background: var(--c-primary); border-color: var(--c-primary); }
.org-node--dark .role { color: var(--c-accent-2); }
.org-node--dark .name { color: #fff; }
.org-node--lg { padding: 20px 34px; }
.org-node--lg .name { font-size: 20px; }
.org-link { width: 2px; height: 22px; background: var(--c-accent-2); margin: 0 auto; }
.org-section-title { text-align: center; font-size: 16px; font-weight: 600; color: var(--c-primary); margin: 26px 0 16px; }
.org-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.org-groups--4 { grid-template-columns: repeat(4, 1fr); }
.group-card { text-align: left; }
.group-card h4 { font-size: 15px; color: var(--c-accent-deep); }
.group-card p { margin-top: 10px; font-size: 14px; color: var(--c-text-deep); line-height: 2; }

/* ============================== 创始人架构 ============================== */
.gov-layer { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.gov-card {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 20px 26px; min-width: 240px; max-width: 420px;
  text-align: center;
}
.gov-card h4 { font-size: 17px; }
.gov-card .gov-sub { font-size: 13px; color: var(--c-text-deep); margin-top: 8px; }
.gov-card .gov-duty { font-size: 13px; color: var(--c-muted); margin-top: 8px; }
.gov-card--dark { background: var(--c-primary); border-color: var(--c-accent-2); }
.gov-card--dark h4 { color: #fff; }
.gov-card--dark .gov-role { font-size: 13px; font-weight: 600; color: var(--c-accent-2); }
.gov-card--dark .gov-sub { color: #fff; font-size: 19px; font-weight: 600; margin-top: 6px; }
.gov-card--dark .gov-duty { color: var(--c-on-dark-2); }
.gov-card--wide { max-width: 520px; }
.gov-card--accent { border-color: var(--c-accent-2); background: var(--c-tint); }
.gov-note { max-width: 860px; margin: 40px auto 0; text-align: center; font-size: 14px; }
/* 治理架构：二级机构 / 职位两列排布 + 成员名单 */
.gov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gov-grid .gov-card { min-width: 0; max-width: none; }
.gov-names {
  margin-top: 12px; display: flex; flex-wrap: wrap; gap: 4px 14px;
  justify-content: center; align-items: baseline;
  font-size: 14px; color: var(--c-text-deep); line-height: 1.9;
  border-top: 1px dashed var(--c-divider); padding-top: 12px;
}
.gov-names i { font-style: normal; font-size: 12px; color: var(--c-muted); }
@media (max-width: 820px) { .gov-grid { grid-template-columns: 1fr; } }

/* ============================== 关于 / 活动 ============================= */
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline__item { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--c-divider); }
.timeline__item:last-child { border-bottom: 0; }
.timeline__time { font-size: 14px; font-weight: 600; color: var(--c-accent-deep); }
.timeline__body h4 { font-size: 16px; }
.timeline__body p { font-size: 14px; margin-top: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.info-item { display: flex; gap: 14px; font-size: 14px; }
.info-item i { font-style: normal; color: var(--c-muted); flex: none; width: 88px; }
.info-item span { color: var(--c-text-strong); }

/* ============================== 登录 / 注册 ============================= */
.auth { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; place-items: center; padding: 56px 20px; }
.auth__box { width: 100%; max-width: 440px; }
.auth__switch { display: flex; gap: 8px; background: var(--c-tint); padding: 6px; border-radius: var(--r-pill); margin-bottom: 26px; }
.auth__switch button {
  flex: 1; height: 40px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--c-text); font-size: 15px; font-weight: 600;
}
.auth__switch button.is-active { background: var(--c-surface); color: var(--c-primary); box-shadow: var(--sh-1); }
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.auth__hint { font-size: 13px; color: var(--c-muted); text-align: center; margin-top: 18px; }
.auth__hint a { color: var(--c-accent-deep); }
.auth__note { font-size: 12px; color: var(--c-muted); margin-top: 20px; line-height: 1.8; }

/* ---- 第三方登录：微信 ---- */
.auth__oauth { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.auth__oauth::before, .auth__oauth::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }
.auth__oauth span { font-size: 12px; color: var(--c-muted); }
.btn--wechat {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 14px; background: #07C160; color: #fff; border: 1px solid #07C160;
  font-size: 14px; font-weight: 600;
}
.btn--wechat:hover { background: #06AD57; border-color: #06AD57; color: #fff; }

/* ---- 微信扫码弹窗 ---- */
.qr-mask { position: fixed; inset: 0; background: rgba(24,32,42,.55); z-index: 900;
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.qr-mask[hidden] { display: none; }
.qr-box { width: 320px; background: var(--c-surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 48px rgba(24,32,42,.24); }
.qr-box__hd { display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--c-line); }
.qr-box__hd b { font-size: 15px; color: var(--c-primary); }
.qr-box__x { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--c-muted); cursor: pointer; }
.qr-box__x:hover { color: var(--c-primary); }
.qr-box__bd { padding: 0; min-height: 300px; }
.qr-box__bd iframe { display: block; width: 100%; height: 320px; border: 0; }
.qr-box__ft { padding: 12px 18px; border-top: 1px solid var(--c-line);
  font-size: 12px; color: var(--c-muted); text-align: center; line-height: 1.7; }
.qr-loading { display: flex; align-items: center; justify-content: center;
  height: 320px; font-size: 13px; color: var(--c-muted); }

/* 扫码后绑定手机号表单 */
.qr-bind { padding: 22px 20px; }
.qr-bind .field { margin-bottom: 14px; }
.qr-bind .field label { display: block; font-size: 12px; color: var(--c-muted); margin-bottom: 6px; }
.qr-bind .field input { width: 100%; }
.qr-bind .row { display: flex; gap: 8px; }
.qr-bind .row .input { flex: 1; }
.qr-bind__who { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.qr-bind__av { width: 38px; height: 38px; border-radius: 50%; background: #07C160; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; flex: none; }
.qr-bind__nm { font-size: 14px; font-weight: 600; color: var(--c-primary); }
.qr-bind__tip { font-size: 12px; color: var(--c-muted); margin-top: 3px; }
/* 已绑定微信号的卡片 */
.wx-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 1px solid var(--c-line); border-radius: 12px; background: var(--c-tint); }
.wx-card__av { width: 44px; height: 44px; border-radius: 50%; background: #07C160; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; flex: none; }
.wx-card__bd { flex: 1; min-width: 0; }
.wx-card__nm { font-size: 15px; font-weight: 600; color: var(--c-primary); }
.wx-card__sub { font-size: 12px; color: var(--c-muted); margin-top: 3px; }

/* ============================== 管理后台 ================================ */
/* 后台骨架（.admin / .admin__* / .role-* / .principle）已整体迁至 admin.css，
   后台页面只加载 theme.css + admin.css，不加载本文件。 */

/* ============================== 响应式 ================================== */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .filters__grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .org-groups, .org-groups--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__item { padding: 16px 20px; }
  .stats__item:nth-child(3) { border-left: 0; }
  .stats__item:nth-child(n+3) { border-top: 1px solid var(--c-divider); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-row { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .detail-banner__grid { grid-template-columns: 1fr; text-align: left; }
  .post { grid-template-columns: 1fr; }
  .post__side { align-items: flex-start; text-align: left; }
  .timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .info-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1.1.0 增补 —— 会员等级 / 悬停名片 / 管委会 / 审核流程 / 产品展示
   ========================================================================== */

/* ---------------- 导航中的会员中心 ---------------- */
.nav__center {
  font-size: 14px; color: #fff; padding: 0 4px;
}
.nav__center:hover { color: var(--c-accent-2); }

/* ---------------- 会员等级徽章 ---------------- */
.lvl {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
}
.lvl--free { background: var(--c-chip); color: var(--c-muted); border-color: var(--c-border); }
.lvl--cert { background: #E7F0E9; color: #2E6B45; border-color: #CBE2D2; }
.lvl--vip  { background: linear-gradient(135deg, var(--c-accent), var(--c-accent-2)); color: #fff; }
.lvl--law  { background: var(--c-primary); color: #fff; }
.lvl--ent  { background: var(--c-accent-deep); color: #fff; }
.lvl--org  { background: var(--c-tint); color: var(--c-accent-deep); border-color: var(--c-border); }

/* ---------------- 联系方式锁定（普通注册会员） ---------------- */
.locked {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--c-chip); border: 1px dashed var(--c-border);
  border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; color: var(--c-muted);
}
.locked b { color: var(--c-text-strong); font-weight: 600; }
.locked .mask { letter-spacing: .12em; color: var(--c-muted); }
.locked .btn { margin-left: auto; }

/* ---------------- 会员体系（三档） ---------------- */
.plans-vip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.plan--hero { border-color: var(--c-accent-2); box-shadow: var(--sh-2); }
.plan__badge {
  position: absolute; top: -11px; right: 18px;
  background: var(--c-accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.plan { position: relative; }
.plan__sub { font-size: 12px; color: var(--c-muted); margin-top: 6px; }
.plan__divider { height: 1px; background: var(--c-divider); margin: 16px 0 12px; }
.plan__grouptitle { font-size: 12px; font-weight: 700; color: var(--c-accent-deep); letter-spacing: .06em; }
.plan__list li span { color: var(--c-text-strong); font-weight: 600; }

/* ---------------- 云徒弟：悬停名片 ---------------- */
.org-node--person { cursor: help; position: relative; }
.org-node--person:hover { border-color: var(--c-accent-2); box-shadow: var(--sh-1); }
.name-tip { position: relative; display: inline-block; }
.name-tip:hover { color: var(--c-accent-deep); text-decoration: underline dotted; }
.name-tip__card {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%);
  width: 288px; z-index: 30; opacity: 0; visibility: hidden; transition: opacity .16s ease;
  background: var(--c-primary); color: var(--c-on-dark-2);
  border: 1px solid var(--c-accent-2); border-radius: var(--r-card);
  padding: 16px 18px; text-align: left; box-shadow: var(--sh-2);
}
.name-tip:hover .name-tip__card { opacity: 1; visibility: visible; }
.name-tip__card::after {
  content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--c-accent-2);
}
.name-tip__card h5 { color: #fff; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.name-tip__card .tt-sub { font-size: 12px; color: var(--c-accent-2); margin-top: 4px; }
.name-tip__card dl { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.name-tip__card dl div { display: flex; gap: 10px; font-size: 12px; line-height: 1.7; }
.name-tip__card dl dt { flex: none; width: 50px; color: var(--c-on-dark-4); }
.name-tip__card dl dd { color: var(--c-on-dark-1); }
.name-tip__card .tt-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(216,201,180,.2); font-size: 12px; color: var(--c-on-dark-3); }

/* ---------------- 云徒弟管理委员会 ---------------- */
.cmt { background: var(--c-tint); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 30px 28px; }
.cmt__top { display: flex; justify-content: center; }
.cmt__row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.cmt__node {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card);
  padding: 12px 20px; text-align: center; min-width: 128px;
}
.cmt__node .role { font-size: 12px; color: var(--c-muted); }
.cmt__node .name { font-size: 15px; font-weight: 600; color: var(--c-primary); margin-top: 4px; }
.cmt__node--dark { background: var(--c-primary); border-color: var(--c-primary); }
.cmt__node--dark .role { color: var(--c-accent-2); }
.cmt__node--dark .name { color: #fff; }
.cmt__coms { margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--c-border); }
.cmt__coms h4 { text-align: center; font-size: 16px; color: var(--c-primary); }
.cmt__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 16px; }
.cmt__cell {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xs);
  padding: 10px 8px; text-align: center; font-size: 13px; color: var(--c-text-strong);
}
.cmt__cell:hover { border-color: var(--c-accent-2); color: var(--c-accent-deep); }

/* ---------- 管委会 · 专业委员会卡片 ---------- */
.coms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.com-card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card);
  padding: 18px 20px; text-align: left; transition: border-color .16s ease, box-shadow .16s ease;
}
.com-card:hover { border-color: var(--c-accent-2); box-shadow: var(--sh-2); }
.com-card h3 {
  font-size: 15px; color: var(--c-primary); margin: 0;
  padding-bottom: 10px; border-bottom: 1px dashed var(--c-border);
}
.com-roles { margin-top: 12px; display: flex; flex-direction: column; gap: 7px; }
.com-role { display: flex; gap: 10px; font-size: 13px; line-height: 1.65; align-items: baseline; }
.com-role .k { flex: none; min-width: 56px; color: var(--c-muted); }
.com-role .v { color: var(--c-text-strong); font-weight: 600; }
.com-role--lead .v { color: var(--c-accent-deep); font-size: 15px; }

/* ---------- 管委会 · 秘书处条 + 副主任分管部门 ---------- */
.cmt__secbar {
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xs);
  padding: 12px 20px; font-size: 13px; color: var(--c-text-strong);
}
.cmt__secbar .t { font-weight: 700; color: var(--c-primary); font-size: 14px; }
.cmt__secbar .sep { color: var(--c-border); }
.cmt__secbar b { color: var(--c-primary); font-weight: 600; }
.dept-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; align-items: start; }
.dept-head { width: 100%; box-sizing: border-box; }
.dept-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.dept-item {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-xs);
  padding: 10px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  transition: border-color .16s ease;
}
.dept-item:hover { border-color: var(--c-accent-2); }
.dept-item .d { font-size: 13px; color: var(--c-primary); font-weight: 600; }
.dept-item .p { font-size: 13px; color: var(--c-text-strong); white-space: nowrap; }

/* ---------------- 产品 / 服务展示 ----------------
   一行一条的通栏横向卡片：封面在左、文字在右。
   这样企业只上传 1 条内容时，卡片同样占满整行，右侧不会空出一大片。 */
.prod-grid { display: flex; flex-direction: column; gap: 16px; }
.prod-card { overflow: hidden; display: flex; flex-direction: row; align-items: stretch; }
.prod-card__img {
  flex: 0 0 292px; width: 292px; min-height: 152px;
  background: var(--c-tint); border-right: 1px solid var(--c-divider);
  display: grid; place-items: center; font-size: 13px; color: var(--c-muted);
}
.prod-card__body { flex: 1 1 auto; min-width: 0; padding: 20px 24px; display: flex; flex-direction: column; }
.prod-card h4 { font-size: 16px; }
.prod-card p { font-size: 13.5px; margin-top: 8px; }
.prod-card__tags { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 审核流程（AI 初审 + 人工复审） ---------------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow__step {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 20px 20px; position: relative;
}
.flow__step .no {
  width: 26px; height: 26px; border-radius: 50%; background: var(--c-primary); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}
.flow__step h4 { font-size: 15px; margin-top: 12px; }
.flow__step p { font-size: 13px; margin-top: 8px; line-height: 1.8; }
.flow__step--ai { border-color: var(--c-accent-2); }
.flow__step--ai .no { background: var(--c-accent); }
.flow__step--last { border-color: #CBE2D2; }
.flow__step--last .no { background: #2E6B45; }

/* ---------------- 短信提醒场景清单 ---------------- */
.sms-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sms-item { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); padding: 18px 20px; }
.sms-item h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sms-item p { font-size: 13px; margin-top: 8px; line-height: 1.8; }
.sms-item .scene { font-size: 12px; color: var(--c-accent-deep); }

/* ---------------- 首页 Hero 重排（删除顶部图片后） ---------------- */
.hero--slim { padding: 66px 0 60px; }
.hero__grid--single { grid-template-columns: 1fr; gap: 0; }
.hero__center { max-width: 780px; }
.hero__center h1 { font-size: 44px; }
.hero__points { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 26px; }
.hero__points div { font-size: 14px; color: var(--c-on-dark-2); display: flex; align-items: center; gap: 8px; }
.hero__points div::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c-accent-2); }
.hero__quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.hero__quick a {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(216, 201, 180, .22);
  border-radius: var(--r-card); padding: 16px 18px; text-align: center;
  color: var(--c-on-dark-1); font-size: 14px; transition: background .18s ease, border-color .18s ease;
}
.hero__quick a:hover { background: rgba(217, 140, 74, .16); border-color: var(--c-accent-2); color: #fff; }
.hero__quick a b { display: block; font-size: 15px; font-weight: 600; }
.hero__quick a span { display: block; font-size: 12px; color: var(--c-on-dark-4); margin-top: 4px; }

/* ---------------- 统计数字可点击 ---------------- */
.stats__num a { color: inherit; border-bottom: 1px dashed var(--c-accent-2); }
.stats__num a:hover { color: var(--c-accent-deep); }

@media (max-width: 1080px) {
  .plans-vip { grid-template-columns: repeat(2, 1fr); }
  .sms-list { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .cmt__grid { grid-template-columns: repeat(4, 1fr); }
  .coms-grid { grid-template-columns: repeat(2, 1fr); }
  .dept-groups { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .dept-item { flex-direction: column; gap: 2px; align-items: flex-start; }
  .hero__quick { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .plans-vip, .sms-list, .flow { grid-template-columns: 1fr; }
  .cmt__grid { grid-template-columns: repeat(2, 1fr); }
  .coms-grid { grid-template-columns: 1fr; }
  .dept-groups { grid-template-columns: 1fr; }
  .hero__center h1 { font-size: 30px; }
  .name-tip__card { width: 240px; }
}

/* =====================================================================
 * v1.4 · 权益文字醒目度 / 轮席值班律师 / 供需发布与详情
 * =================================================================== */

/* ---------- 1. 权益介绍文字更醒目 ---------- */
.plan__list li { font-size: 14.5px; line-height: 1.85; color: var(--c-text-strong); }
.plan__list li span { color: var(--c-accent-deep); font-weight: 700; }
/* VIP 卡片（plan--dark）背景为白色，文字改用深色，避免白字白底不可见 */
.plan--dark .plan__list li { color: var(--c-text-strong); font-size: 14.5px; line-height: 1.85; }
.plan--dark .plan__list li::before { background: var(--c-accent-deep); }
.plan--dark .plan__list li span { color: var(--c-accent-deep); font-weight: 700; }
.plan__list li::before { top: 10px; }

/* 深色卡片（.card--dark，底色 #23405E）内的权益清单：改用浅色文字 + 暖金强调，
   避免上面的「深色文字」规则在深底上形成低对比（如申请入汇页、律师/企业详情页） */
.card--dark .plan__list li { color: var(--c-on-dark-1); }
.card--dark .plan__list li::before { background: var(--c-accent-on-dark); }
.card--dark .plan__list li span { color: var(--c-accent-on-dark); font-weight: 700; }
/* 深底上的橙色主按钮：文字压深一档，避免橙底深蓝字发灰 */
.card--dark .btn--primary { color: #16293D; }

/* ---------- 2. 轮席值班律师（首页右上角） ---------- */
.hero__grid--duty { grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.duty-box {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-card);
  padding: 20px 22px;
  backdrop-filter: blur(2px);
}
.duty-box__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.duty-box__title { color: #fff; font-size: 15px; font-weight: 600; }
.duty-box__period {
  flex: none; font-size: 12px; color: var(--c-accent-2);
  background: rgba(217, 140, 74, .16); border: 1px solid rgba(217, 140, 74, .38);
  border-radius: 20px; padding: 3px 10px;
}
.duty-box__date { font-size: 12px; color: var(--c-on-dark-4); margin-top: 6px; }
.duty-lawyers { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.duty-lawyer {
  display: flex; gap: 12px; align-items: center;
  background: rgba(255, 255, 255, .96); border-radius: 10px; padding: 10px 12px;
}
.duty-lawyer__qr {
  width: 54px; height: 54px; flex: none; border-radius: 8px; overflow: hidden;
  background: var(--c-tint); border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--c-muted);
}
.duty-lawyer__qr img { width: 100%; height: 100%; object-fit: cover; }
.duty-lawyer__info { min-width: 0; }
.duty-lawyer__nm { font-size: 15px; font-weight: 700; color: var(--c-primary); }
.duty-lawyer__firm { font-size: 12px; color: var(--c-text); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duty-lawyer__phone { font-size: 13px; color: var(--c-accent-deep); font-weight: 600; margin-top: 3px; }
.duty-lawyer__wx { font-size: 11px; color: var(--c-muted); margin-top: 2px; }
.duty-box__ft { margin-top: 14px; font-size: 11.5px; line-height: 1.7; color: var(--c-on-dark-4); border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
.duty-empty { font-size: 12.5px; color: var(--c-on-dark-4); padding: 8px 0; }

/* ---------- 3. 通用双栏详情布局 ---------- */
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }

/* ---------- 4. 供需详情 ---------- */
.post-detail__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-detail__views { font-size: 12px; color: var(--c-muted); margin-left: auto; }
.post-detail__body p { font-size: 15px; line-height: 2; color: var(--c-text); margin-bottom: 14px; }
.post-detail__kws { margin-top: 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- 5. 发布方卡片 ---------- */
.pub { display: flex; gap: 12px; align-items: center; }
.pub__avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%;
  background: var(--c-primary); color: #fff; font-size: 18px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.pub__name { font-size: 15px; font-weight: 600; color: var(--c-text-strong); }
.pub__sub { font-size: 12px; color: var(--c-muted); margin-top: 2px; }

/* ---------- 6. 推荐 / 我的发布列表 ---------- */
.rel-list { display: flex; flex-direction: column; }
.rel-item { display: block; padding: 12px 0; border-top: 1px solid var(--c-line); text-decoration: none; }
.rel-item:first-child { border-top: 0; }
.rel-item h5 { font-size: 14px; color: var(--c-text-strong); font-weight: 500; }
.rel-item p { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.rel-item:hover h5 { color: var(--c-accent-deep); }

/* ---------- 7. 步骤条 ---------- */
.step-list { display: flex; flex-direction: column; gap: 10px; }
.step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--c-text); }
.step b {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--c-tint); color: var(--c-accent-deep);
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}

/* ---------- 8. 分类选择 / 提示 ---------- */
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
/* 发布页信息类型：7 类一行排开（紧凑 pill），窄屏回退换行 */
.cats--row { flex-wrap: nowrap; gap: 6px; }
.cats--row .chip {
  flex: 0 1 auto; min-width: 0; white-space: nowrap; justify-content: center;
  height: 34px; padding: 0 11px; font-size: 12.5px; letter-spacing: -.2px;
}
@media (max-width: 900px) {
  .cats--row { flex-wrap: wrap; }
  .cats--row .chip { height: 36px; padding: 0 16px; font-size: 14px; letter-spacing: 0; }
}
.field__hint { font-size: 12px; color: var(--c-muted); margin-top: 6px; line-height: 1.7; }
.field__hint.is-warn { color: #B4471F; font-weight: 600; }
/* .notice--warn 的样式在 theme.css */
.join-vip__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

@media (max-width: 1080px) {
  .hero__grid--duty { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
}

/* ---------- v1.5 云徒弟真实名单展示 ---------- */
.yt-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
.yt-meta__item { font-size: 13.5px; color: var(--c-text-strong); background: #FBF6EE;
  border: 1px solid rgba(169, 99, 31, .22); border-radius: 999px; padding: 5px 14px; }
.yt-duty { font-style: normal; font-size: 11.5px; color: var(--c-accent-deep);
  border: 1px solid rgba(169, 99, 31, .35); border-radius: 4px;
  padding: 0 5px; margin-left: 5px; vertical-align: middle; white-space: nowrap; }
.group-card__names .name-tip { display: inline-flex; align-items: center; margin: 0 14px 6px 0; }


/* ---------- v1.6 业务强项多选 ---------- */
.spec-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 4px; }
.spec-chip {
  font: inherit; font-size: 13.5px; line-height: 1;
  color: var(--c-text-strong); background: #FBF6EE;
  border: 1px solid rgba(169, 99, 31, .25); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; transition: all .15s ease;
}
.spec-chip:hover { border-color: var(--c-accent-deep); color: var(--c-accent-deep); }
.spec-chip.is-on {
  background: var(--c-accent-deep); border-color: var(--c-accent-deep);
  color: #fff; font-weight: 600;
}

/* =====================================================================
 * v1.7.6 · 企业展示：产品与服务 / 资质与荣誉
 *   会员中心维护列表（.asset-*）、通用弹窗与媒体区（.zs-*）
 *   企业主页展示卡片（.prod-card 图文视频 / .honor-grid）
 * =================================================================== */

/* ---------- 会员中心：统计与列表 ---------- */
.asset-stat { font-size: 13px; color: var(--c-muted); margin-right: 12px; white-space: nowrap; }
.asset-stat b { color: var(--c-accent-deep); font-weight: 700; }

.asset-list { display: flex; flex-direction: column; gap: 14px; }
.asset-row {
  display: grid; grid-template-columns: 184px 1fr auto; gap: 18px; align-items: flex-start;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 16px; transition: border-color .16s ease, box-shadow .16s ease;
}
.asset-row:hover { border-color: var(--c-accent-2); box-shadow: 0 6px 20px rgba(35, 64, 94, .06); }
.asset-row__thumb {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-xs);
  overflow: hidden; background: var(--c-tint); border: 1px solid var(--c-divider);
  display: grid; place-items: center;
}
.asset-row__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.asset-row__ph { font-size: 12.5px; color: var(--c-muted); text-align: center; padding: 0 10px; line-height: 1.7; }
.asset-row__vd {
  position: absolute; left: 8px; bottom: 8px; font-style: normal; font-size: 11px;
  background: rgba(35, 64, 94, .82); color: #fff; border-radius: 4px; padding: 2px 7px;
}
.asset-row__bd { min-width: 0; }
.asset-row__hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.asset-row__hd h4 { font-size: 16px; color: var(--c-text-strong); }
.asset-row__bd p { font-size: 13.5px; margin-top: 8px; line-height: 1.8; }
.asset-row__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; }
.asset-row__meta span { font-size: 12.5px; color: var(--c-muted); }
.asset-row__note {
  margin-top: 10px; font-size: 12.5px; line-height: 1.8;
  color: #8A3A1E; background: #FDF3EC; border: 1px solid #F0D6C2;
  border-radius: var(--r-xs); padding: 8px 12px;
}
.asset-row__ops { display: flex; flex-direction: column; gap: 8px; }
.asset-row__ops .btn { white-space: nowrap; }
.btn--danger { color: #B23A3A; border-color: #E7C9C4; }
.btn--danger:hover { background: #FCF1EF; border-color: #D9A9A1; color: #9A2F2F; }

/* 说明：通用弹窗（.zs-modal*）与媒体上传（.zs-media*）的样式在 theme.css 中，
   前台与后台共用同一份，此处只保留前台专有样式。 */

/* ---------- 企业主页：产品与服务卡片（通栏横向：封面在左、文字在右） ---------- */
.prod-card { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.prod-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(35, 64, 94, .1); border-color: var(--c-accent-2); }
.prod-card__img { position: relative; overflow: hidden; }
.prod-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-card__play {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.prod-card__play i {
  width: 46px; height: 46px; border-radius: 50%; background: rgba(35, 64, 94, .76);
  display: grid; place-items: center; font-style: normal; color: #fff; font-size: 15px;
  border: 2px solid rgba(255, 255, 255, .7);
}
/* 纯文字介绍：左侧不放图，留一块浅色标识区，保证各卡片左栏等宽对齐 */
.prod-card__text { flex: 0 0 292px; width: auto; padding: 20px 18px; text-align: center; }
.prod-card__text .k { font-size: 12px; color: var(--c-accent-deep); letter-spacing: 1px; }
.prod-card__body p { line-height: 1.85; }
.prod-card__more { font-size: 12.5px; color: var(--c-accent-deep); margin-top: auto; padding-top: 12px; }

/* ---------- 企业主页：资质与荣誉（通栏横向：证书在左、信息在右） ---------- */
.honor-grid { display: flex; flex-direction: column; gap: 16px; }
.honor-card {
  overflow: hidden; display: flex; flex-direction: row; align-items: stretch; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.honor-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(35, 64, 94, .1); border-color: var(--c-accent-2); }
.honor-card__img {
  position: relative; flex: 0 0 168px; width: 168px; min-height: 164px;
  background: var(--c-tint); border-right: 1px solid var(--c-divider);
  display: grid; place-items: center; font-size: 12.5px; color: var(--c-muted);
  text-align: center; padding: 10px;
}
/* 证书用 contain：整张证书完整可见，不裁掉印章与签字 */
.honor-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.honor-card__bd { flex: 1 1 auto; min-width: 0; padding: 18px 22px; display: flex; flex-direction: column; }
.honor-card__bd h4 { font-size: 16px; line-height: 1.6; }
.honor-card__desc { font-size: 13.5px; line-height: 1.85; margin-top: 8px; color: var(--c-text); }
.honor-card__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.honor-card__meta span { font-size: 12.5px; color: var(--c-muted); }
.honor-card__more { font-size: 12.5px; color: var(--c-accent-deep); margin-top: auto; padding-top: 12px; }

/* ---------- 详情查看器（图集 + 视频） ---------- */
.zs-viewer__gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.zs-viewer__gallery figure {
  margin: 0; border: 1px solid var(--c-border); border-radius: var(--r-xs); overflow: hidden; background: var(--c-tint);
}
.zs-viewer__gallery img { width: 100%; display: block; }
.zs-viewer__video { margin-top: 16px; }
.zs-viewer__video video { width: 100%; border-radius: var(--r-xs); background: #000; display: block; }
.zs-viewer__body { margin-top: 16px; font-size: 14px; line-height: 2; color: var(--c-text); white-space: pre-line; }
.zs-viewer__kv { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; }
.zs-viewer__kv span { font-size: 13px; color: var(--c-muted); }
.zs-viewer__one { border: 1px solid var(--c-border); border-radius: var(--r-xs); overflow: hidden; margin-top: 16px; }
.zs-viewer__one img { width: 100%; display: block; }
.zs-empty-tip { font-size: 13.5px; color: var(--c-muted); line-height: 1.9; }

/* 通栏横向卡片的响应式：窄屏收窄左栏 → 更窄时上下堆叠（始终占满整行，不会留半行空白） */
@media (max-width: 900px) {
  .prod-card__img { flex: 0 0 208px; width: 208px; min-height: 138px; }
  .honor-card__img { flex: 0 0 132px; width: 132px; min-height: 150px; }
  .prod-card__body { padding: 16px 18px; }
  .honor-card__bd { padding: 14px 18px; }
}
@media (max-width: 860px) {
  .asset-row { grid-template-columns: 1fr; }
  .asset-row__ops { flex-direction: row; flex-wrap: wrap; }
  .zs-viewer__gallery { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .prod-card, .honor-card { flex-direction: column; }
  .prod-card__img {
    flex: none; width: 100%; height: 168px; min-height: 0;
    border-right: 0; border-bottom: 1px solid var(--c-divider);
  }
  .honor-card__img {
    flex: none; width: 100%; height: 196px; min-height: 0;
    border-right: 0; border-bottom: 1px solid var(--c-divider);
  }
}


/* ============================== 首页轮播 =============================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.carousel { position: relative; overflow: hidden; background: var(--c-tint); }
.carousel__track { display: flex; transition: transform .55s ease; }
.carousel__slide {
  position: relative; flex: 0 0 100%;
  aspect-ratio: 1920 / 600;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* 按钮热区：--fx/--fw 为横向位置与宽度（图宽占比），--ty/--th 为纵向；桌面按图等比映射 */
.carousel__hot {
  position: absolute; display: block; border-radius: 10px;
  left: calc(var(--fx) * 100%); top: calc(var(--ty) * 100%);
  width: calc(var(--fw) * 100%); height: calc(var(--th) * 100%);
  transition: box-shadow .2s;
}
.carousel__hot:hover { box-shadow: 0 0 0 3px rgba(255,255,255,.75), 0 12px 28px rgba(16,56,94,.28); }
.carousel__hot:focus-visible { outline: 3px solid var(--c-accent-2); outline-offset: 2px; }
/* 后台未配置按钮热区时：整张图就是一个跳转链接（无白框 hover，避免整屏发光） */
.carousel__hot--full { left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; }
.carousel__hot--full:hover { box-shadow: none; }
.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  font-size: 26px; line-height: 1; color: #fff;
  background: rgba(16, 56, 94, .34); display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.carousel__arrow:hover { background: rgba(16, 56, 94, .58); }
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; }
.carousel__dots {
  position: absolute; left: 0; right: 0; bottom: 16px; z-index: 3;
  display: flex; justify-content: center; gap: 10px;
}
.carousel__dot {
  width: 26px; height: 5px; border-radius: 3px; border: none; padding: 0; cursor: pointer;
  background: rgba(16, 56, 94, .26); transition: background .2s, width .2s;
}
.carousel__dot.is-active { background: #10385E; width: 38px; }

/* ---------- 快捷入口（一行四卡）+ 轮席值班律师（通栏横条） ---------- */
.section--quick { padding: 28px 0 0; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-card {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--r-card); padding: 16px 20px; text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.quick-card b { font-size: 16px; font-weight: 700; color: var(--c-heading); flex: none; }
.quick-card span { font-size: 12.5px; color: var(--c-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-card::after { content: '›'; margin-left: auto; color: var(--c-accent-2); font-size: 18px; flex: none; }
.quick-card:hover { transform: translateY(-2px); border-color: var(--c-accent-2); box-shadow: 0 12px 28px rgba(35, 64, 94, .10); }

.section--duty { padding: 18px 0 0; }
/* 首页搜索区：紧跟统计带，压缩上间距 */
.section--search { padding-top: 26px; }
.section--search .searchbar { margin-top: 0; }
.duty-band {
  display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px; align-items: center;
  background: linear-gradient(120deg, #1D3550, #23405E 55%, #2A4C70);
  border-radius: var(--r-card); padding: 24px 28px;
  box-shadow: 0 12px 30px rgba(35, 64, 94, .18);
}
.duty-band__hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.duty-band__title { color: #fff; font-size: 17px; font-weight: 700; }
.duty-band__date { font-size: 12.5px; color: var(--c-on-dark-3); margin-top: 8px; }
.duty-band__ft {
  margin-top: 12px; font-size: 11.5px; line-height: 1.7; color: var(--c-on-dark-4);
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 10px;
}
.duty-band .duty-empty { color: var(--c-on-dark-4); }
/* 律师卡：横条内两卡并排 */
.duty-lawyers--row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.duty-band .duty-lawyer { background: rgba(255, 255, 255, .97); }

.duty-box--light {
  background: var(--c-surface); border: 1px solid var(--c-border);
  box-shadow: 0 12px 30px rgba(35, 64, 94, .08); backdrop-filter: none;
}
.duty-box--light .duty-box__title { color: var(--c-heading); }
.duty-box--light .duty-box__period { color: var(--c-accent-deep); background: var(--c-tag-bg); border-color: rgba(169, 99, 31, .35); }
.duty-box--light .duty-box__date { color: var(--c-muted); }
.duty-box--light .duty-box__ft { color: var(--c-text); border-top-color: var(--c-divider); }
.duty-box--light .duty-empty { color: var(--c-muted); }
.duty-band .duty-box__period { color: var(--c-accent-2); background: rgba(217, 140, 74, .16); border-color: rgba(217, 140, 74, .38); }

@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .duty-band { grid-template-columns: 1fr; gap: 18px; align-items: stretch; }
  .duty-lawyers--row { grid-template-columns: 1fr; }
}
/* 手机：轮播改 16/9 高度，横向按 cover 裁切映射热区（图 3.2:1 → 显示宽 1.8 倍，位置 22%） */
@media (max-width: 760px) {
  .carousel__slide { aspect-ratio: 16 / 9; background-position: 22% center; }
  .carousel__hot { left: calc((var(--fx) * 1.8 - 0.176) * 100%); width: calc(var(--fw) * 1.8 * 100%); }
  .carousel__arrow { display: none; }
  .carousel__dots { bottom: 10px; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
}
/* ---------- 省市区级联选择（面板式 cascader） ---------- */
.region-field { width: 100%; }
.rc-wrap { position: relative; }
.rc-box {
  position: relative; height: 42px; padding: 0 40px 0 14px; width: 100%;
  display: flex; align-items: center; cursor: pointer; font-size: 14px;
  border: 1px solid var(--c-border); border-radius: var(--r-sm); background: var(--c-surface);
  transition: border-color .16s ease; user-select: none;
}
.rc-box:hover, .rc-box.is-open { border-color: var(--c-accent-2); }
.rc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--c-text-strong); }
.rc-text.is-ph { color: var(--c-muted); }
.rc-arrow {
  position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--c-muted); border-bottom: 1.5px solid var(--c-muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .16s ease; pointer-events: none;
}
.rc-box.is-open .rc-arrow { transform: translateY(-30%) rotate(225deg); }
.rc-clear {
  position: absolute; right: 32px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; line-height: 15px; text-align: center;
  border-radius: 50%; background: #C4CBD6; color: #fff; font-size: 12px; display: none;
}
.rc-clear.has-val { display: block; }
.rc-clear:hover { background: #9AA3B2; }
.rc-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 80;
  display: flex; padding: 6px;
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px;
  box-shadow: 0 14px 38px rgba(20, 35, 65, .16);
}
.rc-col { width: 190px; max-height: 268px; overflow-y: auto; }
.rc-col + .rc-col { border-left: 1px solid var(--c-divider); }
.rc-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-radius: 6px; cursor: pointer; font-size: 13.5px; color: var(--c-text); white-space: nowrap;
}
.rc-item:hover { background: var(--c-tint); }
.rc-item.is-on { color: var(--c-accent-deep); font-weight: 600; }
.rc-dot { flex: none; width: 14px; height: 14px; border: 1.5px solid #C9D0DB; border-radius: 50%; position: relative; }
.rc-item:hover .rc-dot { border-color: var(--c-accent-2); }
.rc-item.is-on .rc-dot { border-color: currentColor; }
.rc-item.is-on .rc-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.rc-name { overflow: hidden; text-overflow: ellipsis; }
.rc-go { margin-left: auto; padding-left: 6px; color: var(--c-muted); font-size: 13px; }
.rc-item.is-on .rc-go { color: currentColor; }
.rc-empty { padding: 26px 12px; color: var(--c-muted); font-size: 13px; text-align: center; }

/* ---------- 前台表单网格（member-center / join 原先漏定义，一直单列堆叠） ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.form-grid .full { grid-column: 1 / -1; }
.form-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-divider); display: flex; gap: 12px; justify-content: flex-end; }

/* ---------- 前台筛选条 .bar（原先漏定义，搜索/筛选一直竖着堆叠） ---------- */
.bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 16px 22px; background: var(--c-tint); border-radius: var(--r-card); }
.bar .input { height: 38px; flex: 1 1 220px; min-width: 200px; }
.bar .select { height: 38px; width: auto; min-width: 130px; }

/* ---------- 活动中心：类型卡可点击 + 场次弹窗 ---------- */
.act-card { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.act-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(35, 64, 94, .12); }
.act-more { display: block; margin-top: 12px; font-size: 13px; color: var(--c-accent); }
.timeline__item { cursor: pointer; transition: background .15s ease; }
.timeline__item:hover { background: rgba(194, 118, 58, .04); }
.timeline__item:hover h4 { color: var(--c-accent-deep); }
.act-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--c-divider); cursor: pointer; }
.act-row:last-child { border-bottom: 0; }
.act-row:hover h4 { color: var(--c-accent-deep); }
.act-row__main h4 { font-size: 15px; }
.act-row__main p { font-size: 13px; color: var(--c-muted); margin-top: 4px; }
.act-row__act { flex-shrink: 0; }
.act-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 4px 0 14px; font-size: 14px; }
.act-kv span { display: inline-block; min-width: 3.4em; color: var(--c-muted); margin-right: 6px; }
.act-desc { font-size: 14px; line-height: 1.8; margin: 0; padding-top: 12px; border-top: 1px dashed var(--c-divider); }
.act-ft-btn { margin-top: 16px; text-align: right; }
@media (max-width: 640px) {
  .act-kv { grid-template-columns: 1fr; }
  .act-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* =====================================================================
 * 前台通用状态徽章与文字链接
 * （此前 .badge / .link 只在 admin.css 定义，前台页面全部裸样式 —— v1.8.29 补齐）
 * =================================================================== */
a.link { color: var(--c-accent-deep); cursor: pointer; }
a.link:hover { text-decoration: underline; }

.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.badge--wait  { background: #FDF6EC; color: var(--c-accent-deep); border-color: #F0D9BC; }
.badge--ai    { background: #E9EEF6; color: var(--c-primary); border-color: #D3DEEC; }
.badge--human { background: #F3EAFB; color: #6C43A0; border-color: #E2D2F2; }
.badge--pass  { background: #E7F0E9; color: #2E6B45; border-color: #CBE2D2; }
.badge--fail  { background: #FBE9E7; color: #C0392B; border-color: #F3CFC9; }
.badge--off   { background: #F0F2F5; color: var(--c-muted); border-color: #DDE3EA; }
