/* 矿业权交易撮合平台 - 全局样式 */
:root {
  --navy: #0d2a45;
  --navy-2: #16406a;
  --navy-3: #245b8d;
  --gold: #c8973f;
  --gold-2: #e8c98a;
  --gold-bg: #fdf6e8;
  --sell: #1f6fb2;
  --sell-bg: #eaf3fb;
  --buy: #b8762b;
  --buy-bg: #fdf3e5;
  --text: #1b2733;
  --muted: #6c7d90;
  --muted-2: #93a2b3;
  --line: #e4e9f0;
  --line-2: #eef2f7;
  --bg: #f4f7fa;
  --white: #ffffff;
  --ok: #2e9e6b;
  --danger: #cf4b4b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(13, 42, 69, .06), 0 6px 20px rgba(13, 42, 69, .06);
  --shadow-hover: 0 4px 12px rgba(13, 42, 69, .1), 0 14px 34px rgba(13, 42, 69, .1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; outline: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
}
.logo-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: grid; place-items: center;
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  flex: none;
}
.logo small { display: block; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.55); letter-spacing: 0; }

.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a {
  padding: 7px 13px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  transition: .15s;
  white-space: nowrap;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a.active { background: rgba(200, 151, 63, .18); color: var(--gold-2); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-user {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.header-user:hover { background: rgba(255,255,255,.14); }
.header-user .avatar { width: 26px; height: 26px; font-size: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #fff; font-weight: 600; }
.btn-primary:hover { background: #b8872f; }
.btn-navy { background: var(--navy); color: #fff; font-weight: 600; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--navy); }
.btn-outline:hover { border-color: var(--navy-3); color: var(--navy-2); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-sm { height: 32px; padding: 0 13px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Form ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.field > label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: .15s;
}
.textarea { height: auto; min-height: 110px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(36,91,141,.1); }
.select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c7d90' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.row { display: flex; gap: 14px; }
.row > * { flex: 1; min-width: 0; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 5px; min-height: 0; }

/* ---------- Generic card / panel ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.panel-pad { padding: 20px; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 20px; }
.section-title { font-size: 20px; font-weight: 700; color: var(--navy); margin: 0; }
.section-title .en { font-size: 12px; font-weight: 400; color: var(--muted-2); margin-left: 8px; letter-spacing: 1px; }
.section-sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.link-more { color: var(--navy-3); font-size: 13px; }
.link-more:hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 52%, #1d4f7c 100%);
  color: #fff;
  padding: 46px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -60px;
  width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,151,63,.22), transparent 65%);
}
.hero h1 { font-size: 32px; margin: 0 0 10px; font-weight: 700; letter-spacing: 1px; }
.hero p { color: rgba(255,255,255,.72); margin: 0 0 24px; font-size: 15px; }
.search-card { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--shadow-hover); position: relative; z-index: 2; }
.search-tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.search-tab {
  padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); cursor: pointer; font-size: 14px; transition: .15s;
}
.search-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.search-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 10px; }
@media (max-width: 860px) { .search-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.stat { padding: 18px 20px; border-right: 1px solid var(--line-2); text-align: center; }
.stat:last-child { border-right: none; }
.stat b { display: block; font-size: 24px; color: var(--navy); font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: none; } }

/* ---------- Listing card ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(2, 1fr); } .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid, .card-grid.cols-4 { grid-template-columns: 1fr; } }

.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; transition: .18s; display: flex; flex-direction: column; cursor: pointer;
}
.listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #cfdcea; }
.listing-card .lc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.listing-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.listing-card h3:hover { color: var(--gold); }
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 5px; font-size: 12px; font-weight: 500;
  background: var(--line-2); color: var(--muted);
}
.tag-sell { background: var(--sell-bg); color: var(--sell); }
.tag-buy { background: var(--buy-bg); color: var(--buy); }
.tag-gold { background: var(--gold-bg); color: #96702a; }
.tag-navy { background: #eef4fa; color: var(--navy-2); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; margin-bottom: 12px; }
.lc-meta div { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-meta div b { color: var(--text); font-weight: 600; }
.lc-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lc-price { font-size: 17px; font-weight: 700; color: var(--danger); }
.lc-price.freeze { color: var(--muted); font-size: 14px; font-weight: 600; }
.lc-time { font-size: 12px; color: var(--muted-2); }

/* ---------- Member card ---------- */
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 600; font-size: 15px; flex: none;
  background: var(--navy-3);
}
.member-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: .18s; cursor: pointer; }
.member-card:hover { box-shadow: var(--shadow-hover); border-color: #cfdcea; }
.member-card .mc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.member-card .mc-name { font-weight: 600; color: var(--navy); font-size: 15px; }
.member-card .mc-role { font-size: 12px; color: var(--muted); }
.mc-desc { font-size: 13px; color: var(--muted); line-height: 1.65; height: 43px; overflow: hidden; }

/* ---------- Filter ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.filter-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); align-items: flex-start; }
.filter-row:last-child { border-bottom: none; }
.filter-label { width: 62px; flex: none; color: var(--muted); font-size: 13px; padding-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.chip { padding: 4px 12px; border-radius: 999px; background: var(--line-2); color: var(--text); cursor: pointer; font-size: 13px; transition: .15s; }
.chip:hover { background: #dde5ee; }
.chip.active { background: var(--navy); color: #fff; font-weight: 500; }

/* 擅长领域：九大专业分组多选 */
.spec-picker { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-group { border-bottom: 1px solid var(--line-2); }
.spec-group:last-child { border-bottom: none; }
.spec-gname {
  background: #f4f7fa; padding: 6px 12px; font-size: 12.5px; font-weight: 600; color: var(--navy);
}
.spec-group .chips { padding: 8px 12px; gap: 6px; }
.spec-group .chip { background: #fff; border: 1px solid var(--line); font-size: 12.5px; }
.spec-group .chip:hover { border-color: var(--navy-3); background: #f0f5fa; }
.spec-group .chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.spec-hint { font-size: 12px; color: var(--muted-2); margin-top: 6px; }
.spec-line { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; flex-wrap: wrap; }
.spec-line-g { flex: none; min-width: 150px; font-size: 13px; font-weight: 600; color: var(--navy); padding-top: 2px; }
@media (max-width: 640px) { .spec-line-g { min-width: 100%; } }

/* ---------- 首页顶部条带：三步撮合 + 为什么地质同行 ---------- */
.hero-band { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 20px; }
@media (max-width: 880px) { .hero-band { grid-template-columns: 1fr; } }
.hb-col { background: rgba(255,255,255,.97); border-radius: var(--radius); padding: 14px 16px; box-shadow: 0 6px 22px rgba(0,0,0,.16); }
.hb-title { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.hb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 640px) { .hb-steps { grid-template-columns: 1fr; } }
.hb-steps > div { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.hb-steps b { flex: none; width: 21px; height: 21px; border-radius: 6px; background: var(--gold-bg); color: var(--gold); display: grid; place-items: center; font-size: 12px; }
.hb-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 14px; }
@media (max-width: 640px) { .hb-why { grid-template-columns: 1fr; } }
.hb-why li { position: relative; padding-left: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.hb-why li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--gold); font-size: 12px; }

/* ---------- 首页统一登录入口（单一窗口，置顶） ---------- */
.entry-window { margin: 0 auto 22px; max-width: 860px; background: rgba(255,255,255,.97); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.18); overflow: hidden; }
.ew-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: #f4f6f9; border-bottom: 1px solid var(--line); }
.ew-head .ew-title { font-size: 15px; font-weight: 700; color: var(--navy); }
.ew-head .ew-sub { font-size: 12.5px; color: var(--muted); }
.ew-body { padding: 6px 18px 14px; }
.ew-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); flex-wrap: wrap; }
.ew-row:last-child { border-bottom: none; }
.ew-ico { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--gold-bg); color: var(--gold); display: grid; place-items: center; font-size: 17px; }
.ew-txt { flex: 1; min-width: 180px; }
.ew-txt b { display: block; font-size: 14px; color: var(--navy); }
.ew-txt span { font-size: 12px; color: var(--muted); line-height: 1.6; }
.ew-btn { flex: none; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.ew-btn:hover { border-color: var(--navy-3); }
.ew-btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; }
.ew-btn.primary:hover { opacity: .9; }
@media (max-width: 640px) { .ew-btn { flex: 1; text-align: center; } }

/* ---------- 成员 logo 墙（横向滚动，鼠标悬停暂停） ---------- */
.logo-wall { position: relative; overflow: hidden; padding: 4px 0; }
.logo-wall::before, .logo-wall::after { content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none; }
.logo-wall::before { left: 0; background: linear-gradient(90deg, var(--bg, #f5f7fa), rgba(245,247,250,0)); }
.logo-wall::after { right: 0; background: linear-gradient(270deg, var(--bg, #f5f7fa), rgba(245,247,250,0)); }
.lw-track { display: flex; gap: 14px; width: max-content; animation: lw-scroll 40s linear infinite; }
.logo-wall:hover .lw-track, .logo-wall:focus-within .lw-track { animation-play-state: paused; }
@keyframes lw-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.lw-item { flex: none; width: 168px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; cursor: pointer; box-shadow: var(--shadow); }
.lw-item:hover { border-color: var(--gold); box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.lw-logo { width: 100%; height: 62px; border-radius: 6px; background: #f2f5f8; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 8px; }
.lw-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lw-name { font-size: 12.5px; font-weight: 600; color: var(--navy); line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-role { margin-top: 3px; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-join { flex: none; width: 168px; border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 12px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; background: #fff; }
.lw-join:hover { border-color: var(--gold); color: var(--gold); }
.lw-join b { font-size: 13px; }
.lw-join span { font-size: 11.5px; margin-top: 4px; }

/* ---------- 页脚行业网站链接 ---------- */
.f-links { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.f-links h5 { font-size: 13px; color: rgba(255,255,255,.9); margin: 0 0 10px; letter-spacing: .5px; }
.fl-list { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.fl-list a { font-size: 12.5px; color: rgba(255,255,255,.72); text-decoration: none; padding: 4px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; }
.fl-list a:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.08); }

/* ---------- 照片上传控件 ---------- */
.photo-picker { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 10px; background: #fbfcfd; }
.pp-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-item { position: relative; width: 92px; height: 92px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pp-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 1; border: none; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: 14px; }
.pp-add { width: 92px; height: 92px; border: 1px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--muted); font-size: 12px; cursor: pointer; background: #fff; }
.pp-add:hover { border-color: var(--navy-3); color: var(--navy); }

/* ---------- 相册 / 封面（统一 4:3 画幅，超出部分裁切居中，双击看原图） ---------- */
.gallery { margin: 0 0 14px; }
.gal-main { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 420px; border-radius: var(--radius-sm); overflow: hidden; background: #eef1f5; display: flex; align-items: center; justify-content: center; }
.gal-main img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; cursor: zoom-in; }
.gal-hint { position: absolute; right: 8px; bottom: 8px; padding: 3px 9px; border-radius: 20px; background: rgba(0,0,0,.55); color: #fff; font-size: 11.5px; pointer-events: none; }
.gal-thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gal-thumb { width: 76px; height: 57px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; background: #eef1f5; }
.gal-thumb.cur { border-color: var(--navy); }

/* ---------- 大图查看（双击放大） ---------- */
.lb-mask { position: fixed; inset: 0; z-index: 9999; background: rgba(8,12,20,.9); display: flex; align-items: center; justify-content: center; }
.lb-mask .lb-img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 4px; box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: zoom-in; transition: transform .18s ease; }
.lb-mask .lb-img.zoom { max-width: none; max-height: none; width: auto; height: auto; cursor: zoom-out; }
.lb-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.lb-close:hover { background: rgba(255,255,255,.28); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 60px; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; border-radius: 6px; }
.lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-count { position: absolute; bottom: 54px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; opacity: .85; }
.lb-tip { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: 12px; }
.gal-nologin { width: 100%; padding: 26px 0; text-align: center; color: var(--muted); font-size: 13px; background: #eef1f5; border-radius: var(--radius-sm); }
.card-cover { width: 100%; height: 150px; object-fit: cover; display: block; background: #eef1f5; }
.card-cover-wrap { position: relative; }
.card-cover-wrap .gal-nologin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 0; font-size: 12px; }
.sort-tabs { display: flex; gap: 6px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.result-bar .count { color: var(--muted); font-size: 13px; }
.result-bar .count b { color: var(--navy); font-size: 16px; }

/* ---------- Detail ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .detail-wrap { grid-template-columns: 1fr; } }
.detail-title { font-size: 23px; color: var(--navy); margin: 6px 0 12px; font-weight: 700; line-height: 1.4; }
.detail-meta-row { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.spec-grid > div { background: #fff; padding: 12px 14px; }
.spec-grid dt { font-size: 12px; color: var(--muted-2); margin-bottom: 2px; }
.spec-grid dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); word-break: break-all; }
@media (max-width: 700px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.detail-body { line-height: 1.9; color: #33465b; white-space: pre-wrap; font-size: 14px; }
.side-card { position: sticky; top: 78px; }
.contact-box { background: var(--gold-bg); border: 1px dashed var(--gold-2); border-radius: var(--radius-sm); padding: 14px; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; }
.contact-row .k { width: 46px; color: var(--muted); font-size: 13px; flex: none; }
.contact-row .v { font-weight: 600; letter-spacing: .3px; }
.lock-mask { filter: blur(5px); user-select: none; opacity: .8; }

/* ---------- Misc UI ---------- */
.badge-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 5px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .ico { font-size: 40px; opacity: .35; margin-bottom: 10px; }
.skeleton { background: linear-gradient(90deg, #eef2f7 25%, #e2e9f1 37%, #eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 6px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pager button { min-width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 7px; cursor: pointer; color: var(--text); }
.pager button.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 74px; left: 0; right: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  padding: 10px 18px; border-radius: 8px; background: var(--navy); color: #fff;
  box-shadow: var(--shadow-hover); font-size: 14px; animation: toastIn .2s ease;
  max-width: 80vw;
}
.toast.ok { background: #22795a; }
.toast.err { background: #b23b3b; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(13, 42, 69, .45); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; max-height: 88vh; overflow: auto; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 16px; color: var(--navy); }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; }

/* ---------- Steps / feature ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--gold-bg); color: var(--gold); display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.step h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.step p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 34px 0 24px; margin-top: 40px; font-size: 13px; }
.site-footer .f-grid { display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 18px; }
@media (max-width: 1000px) { .site-footer .f-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 800px) { .site-footer .f-grid { grid-template-columns: 1fr 1fr; } }
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 12px; }
.site-footer ul li { padding: 4px 0; }
.site-footer a:hover { color: var(--gold-2); }
.f-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 16px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.f-org { margin-top: 26px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: center; color: rgba(255,255,255,.85); font-size: 14px; letter-spacing: .5px; }
.f-addr { margin-top: 6px; padding: 0 0 10px; text-align: center; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.9; letter-spacing: .3px; }
@media (max-width: 640px) { .f-addr { padding: 0 10px 10px; } }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 860px) { .login-page { grid-template-columns: 1fr; } .login-side { display: none; } }
.login-side { background: linear-gradient(150deg, var(--navy), var(--navy-2) 60%, #1d4f7c); color: #fff; padding: 60px 56px; display: flex; flex-direction: column; justify-content: center; }
.login-side h2 { font-size: 28px; margin: 0 0 14px; }
.login-side p { color: rgba(255,255,255,.7); line-height: 1.9; }
.login-side ul { margin-top: 24px; }
.login-side li { padding: 8px 0 8px 22px; position: relative; color: rgba(255,255,255,.82); }
.login-side li::before { content: ""; position: absolute; left: 0; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.login-main { background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-box { width: 100%; max-width: 380px; }
.login-box h1 { font-size: 24px; color: var(--navy); margin: 0 0 6px; }
.otp-tabs { display: flex; gap: 4px; background: var(--line-2); padding: 4px; border-radius: 9px; margin-bottom: 20px; }
.otp-tabs button { flex: 1; height: 34px; border: none; background: transparent; border-radius: 7px; cursor: pointer; color: var(--muted); }
.otp-tabs button.active { background: #fff; color: var(--navy); font-weight: 600; box-shadow: var(--shadow); }
.otp-row { display: flex; gap: 8px; }
.otp-row .input { flex: 1; }
.otp-row .btn { flex: none; width: 108px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth-btn { width: 100%; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); }
.oauth-btn:hover { background: var(--bg); }

/* ---------- Inbox / list rows ---------- */
.row-item { display: flex; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.row-item:last-child { border-bottom: none; }
.row-item .ri-main { flex: 1; min-width: 0; }
.row-item .ri-title { font-weight: 600; color: var(--navy); margin-bottom: 3px; }
.row-item .ri-sub { font-size: 13px; color: var(--muted); }
.row-item .ri-text { font-size: 13px; color: #4a5c70; background: var(--bg); padding: 8px 12px; border-radius: 8px; margin: 8px 0; line-height: 1.7; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs button { padding: 10px 18px; border: none; background: none; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 14px; }
.tabs button.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }

.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 20px; }
.page-head h1 { margin: 0; font-size: 22px; color: var(--navy); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.crumb a:hover { color: var(--gold); }

.layout-side { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .layout-side { grid-template-columns: 1fr; } }
.side-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.side-nav a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--text); font-size: 14px; }
.side-nav a:hover { background: var(--bg); }
/* 入会引导卡片与步骤 */
.mc-join { border: 2px dashed var(--gold); background: #fffdf7; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.mc-join:hover { border-color: #b8933d; background: #fdf6e3; }
.mc-join-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 26px; line-height: 44px; text-align: center; font-weight: 300; }
.join-step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.join-step:last-of-type { border-bottom: none; }
.join-step > b { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-3); color: #fff; text-align: center; line-height: 26px; font-size: 13px; }
.join-step b { color: var(--navy); }
.join-step p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.8; }

/* 平台评级星级（管理员评定） */
.star-badge { display: inline-flex; align-items: center; gap: 1px; font-size: 13px; line-height: 1;
  background: #fff8ec; border: 1px solid #f0dcb4; border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.star-badge .s { color: #dcdfe4; font-size: 12px; }
.star-badge .s.on { color: #e6a23c; }
.star-badge b { margin-left: 4px; font-size: 11.5px; color: #b8762b; font-weight: 700; }
.star-badge.none { background: #f4f6f8; border-color: var(--line); color: var(--muted-2); font-size: 11.5px; padding: 2px 8px; }
.star-badge.lg { font-size: 15px; padding: 4px 12px; }
.star-badge.lg .s { font-size: 14px; }
/* 拍卖 / 竞标 */
.auc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.auc-price { color: var(--danger); font-weight: 700; font-size: 17px; }
.auc-sub { font-size: 12.5px; color: var(--muted); }
.offer-item { display: flex; gap: 12px; align-items: center; border-top: 1px dashed var(--line); padding: 12px 0; }
.offer-item:first-child { border-top: none; }
.offer-item .oi-amt { color: var(--danger); font-weight: 700; font-size: 16px; min-width: 110px; }
.offer-item .oi-name { font-weight: 600; color: var(--navy); }
.offer-item .oi-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.7; }
.countdown { font-size: 12.5px; font-weight: 600; }
.countdown.on { color: var(--danger); }
.countdown.off { color: var(--muted-2); }

/* 专家评分 */
.rate-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rate-stars .st { color: #d9dee6; font-size: 14px; line-height: 1; }
.rate-stars .st.on { color: #e6a23c; }
.rate-avg { color: #b8762b; font-weight: 700; }
.rate-num { color: var(--muted); font-size: 12px; }
.rate-input { display: flex; gap: 6px; font-size: 30px; cursor: pointer; user-select: none; }
.rate-input span { color: #d9dee6; transition: transform .1s; }
.rate-input span.on { color: #e6a23c; }
.rate-input span:hover { transform: scale(1.15); }
.review-item { border-top: 1px dashed var(--line); padding: 12px 0; }
.review-item:first-child { border-top: none; }
.review-item .rv-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.review-item .rv-comment { font-size: 13px; color: var(--text); line-height: 1.8; margin: 0; }

.side-nav a.active { background: var(--sell-bg); color: var(--navy-2); font-weight: 600; }

/* ============ 疑难杂症 · 同行答疑 ============ */
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 16px; cursor: pointer; transition: .18s;
}
.qa-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow-hover); transform: translateY(-1px); }
.qa-count {
  flex: none; width: 56px; text-align: center; padding-top: 2px;
}
.qa-count b { display: block; font-size: 20px; color: var(--navy-3); line-height: 1.1; }
.qa-count.solved b { color: var(--ok); }
.qa-count span { font-size: 12px; color: var(--muted-2); }
.qa-main { flex: 1; min-width: 0; }
.qa-title {
  font-size: 15.5px; font-weight: 600; color: var(--navy); margin: 0 0 6px;
  line-height: 1.5; display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap;
}
.qa-title:hover { color: var(--navy-3); }
.qa-mark {
  flex: none; display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center;
  border-radius: 4px; background: var(--gold); color: #fff; font-size: 12px; font-weight: 700; margin-top: 2px;
}
.qa-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.qa-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted-2); }
.qa-foot .who { color: var(--muted); }
.badge-solved { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-solved.on { background: #e6f6ee; color: var(--ok); }
.badge-solved.off { background: var(--gold-bg); color: #96702a; }
.qa-cat { background: #eef4fa; color: var(--navy-2); padding: 2px 9px; border-radius: 999px; font-size: 12px; }

/* 问题详情 */
.qa-detail-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.qa-detail-title { font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.45; margin: 10px 0 12px; }
.qa-detail-body { white-space: pre-wrap; line-height: 1.9; color: #33465b; font-size: 14px; }
.answer-list { display: flex; flex-direction: column; gap: 14px; }
.answer-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; gap: 14px;
}
.answer-item.adopted { border-color: var(--ok); background: #fbfefc; }
.answer-body { flex: 1; min-width: 0; }
.answer-body .txt { white-space: pre-wrap; line-height: 1.9; color: #33465b; font-size: 14px; }
.answer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.answer-head .nm { font-weight: 600; color: var(--navy); font-size: 14px; }
.answer-head .co { font-size: 12px; color: var(--muted); }
.answer-ops { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.agree-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; cursor: pointer;
  padding: 4px 14px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px;
}
.agree-btn:hover { border-color: var(--gold-2); color: #96702a; }
.agree-btn.on { border-color: var(--navy-3); background: var(--sell-bg); color: var(--navy-2); font-weight: 600; }
.adopted-flag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  background: #e6f6ee; color: var(--ok); font-size: 12px; font-weight: 600;
}
.qa-side-title { font-size: 14px; font-weight: 700; color: var(--navy); margin: 0 0 10px; }
.qa-cat-link { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--text); }
.qa-cat-link:hover { background: var(--bg); }
.qa-cat-link.active { background: var(--sell-bg); color: var(--navy-2); font-weight: 600; }
.qa-cat-link em { font-style: normal; font-size: 12px; color: var(--muted-2); }

@media (max-width: 720px) {
  .qa-card { padding: 14px; gap: 12px; }
  .qa-count { width: 44px; }
  .answer-item { padding: 14px; gap: 10px; }
}

/* ============ 专家门诊 · 预约答疑 ============ */
.expert-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; transition: .18s;
}
.expert-card:hover { border-color: var(--gold-2); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.ex-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ex-avatar { flex: none; position: relative; }
.ex-avatar img.ex-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; background: #eef1f5; }
.ex-avatar.big img.ex-photo { width: 76px; height: 76px; }
.ex-badge {
  position: absolute; bottom: -4px; right: -4px; background: var(--ok); color: #fff;
  font-size: 10px; padding: 1px 5px; border-radius: 999px; border: 2px solid #fff;
}
.ex-name { font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.ex-title { font-size: 12.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.ex-intro {
  font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 0 12px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ex-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ex-stat { display: flex; gap: 14px; font-size: 12px; color: var(--muted-2); margin-bottom: 12px; }
.ex-stat b { color: var(--navy); font-size: 13px; }
.ex-price {
  margin-top: auto; padding: 10px 12px; background: var(--gold-bg); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
}
.ex-price .p { font-size: 15px; font-weight: 700; color: var(--danger); }
.ex-price .p small { font-weight: 400; font-size: 12px; color: var(--muted); }

/* 预约单 */
.bk-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.bk-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.bk-no { font-size: 12px; color: var(--muted-2); font-family: ui-monospace, Menlo, Consolas, monospace; }
.bk-title { font-size: 15px; font-weight: 600; color: var(--navy); margin: 0 0 6px; line-height: 1.5; }
.bk-meta { font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.bk-answer {
  margin-top: 12px; padding: 14px; background: #fbfefc; border: 1px dashed var(--ok);
  border-radius: var(--radius-sm); white-space: pre-wrap; line-height: 1.9; font-size: 14px; color: #33465b;
}
.pay-box { background: var(--bg); border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 14px; font-size: 13px; line-height: 1.9; }
.pay-box .k { color: var(--muted); display: inline-block; width: 76px; }
.pay-box .v { color: var(--navy); font-weight: 600; }
.fee-big { font-size: 28px; font-weight: 700; color: var(--danger); }
.step-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.step-line .done { color: var(--ok); font-weight: 600; }
.step-line .cur { color: var(--navy); font-weight: 700; }

/* ============ 栏目介绍面板（联席会议 / 矿业公信人士） ============ */
.intro-panel { padding: 18px 20px; margin: 0 0 18px; border-left: 4px solid var(--gold); }
.ip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.ip-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.ip-sub { margin: 4px 0 0; font-size: 12px; color: var(--muted-2); line-height: 1.6; }
.ip-lead { margin: 0 0 14px; font-size: 13.5px; line-height: 1.9; color: #40566e; }
.ip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ip-cell { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.ip-cell b { display: block; font-size: 13px; color: var(--navy); margin-bottom: 5px; }
.ip-cell p { margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.ip-more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 14px; }
.ip-block { margin-bottom: 14px; }
.ip-block h5 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--navy-2); }
.ip-block p { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.ip-block li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.ip-block li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.ip-src { margin: 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.7; }
@media (max-width: 900px) { .ip-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ip-grid { grid-template-columns: 1fr; } .intro-panel { padding: 14px; } }
