/* =========================================================
   大蚂蚁智慧柑橘 · 农户数据评分系统
   统一设计系统 v2.0  (Challenge Cup Edition)
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  /* 品牌色：柑橘农业主题 */
  --primary: #178a4b;          /* 主色·果园绿 */
  --primary-600: #0f6b39;
  --primary-700: #0c522d;
  --primary-50: #eaf7ef;
  --primary-100: #d3efe0;

  --accent: #f59e0b;           /* 强调色·柑橘金 */
  --accent-600: #d97706;
  --accent-50: #fff7e6;

  --info: #2563eb;
  --danger: #dc2626;
  --danger-50: #fee2e2;
  --success: #16a34a;
  --success-50: #dcfce7;
  --warning: #d97706;
  --warning-50: #fef3c7;

  /* 中性色 */
  --bg: #f4f6f4;               /* 页面背景 */
  --surface: #ffffff;
  --surface-2: #f8faf8;
  --border: #e6e9e6;
  --text: #1f2933;
  --text-2: #52606d;
  --text-3: #9aa5b1;

  /* 尺寸 */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 3px rgba(15, 60, 35, .06);
  --shadow: 0 6px 24px rgba(15, 60, 35, .08);
  --shadow-lg: 0 16px 40px rgba(15, 60, 35, .14);

  --sidebar-w: 248px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-600); }

h1,h2,h3,h4 { line-height: 1.3; color: var(--text); font-weight: 600; }

img { max-width: 100%; }

/* ---------- Layout ---------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }

/* 主布局（登录后：侧边栏 + 主区） */
.layout { display: flex; min-height: 100vh; }

.layout-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.layout-content { flex: 1; padding: 28px 32px 40px; }
.layout-content.wide { max-width: 1180px; }

@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .layout-content { padding: 20px 16px 32px; }
}

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  height: 62px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px;
}
.topbar-title { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.topbar-title .crumb { color: var(--text-3); font-weight: 400; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.topbar-user {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px;
}
.topbar-user .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

@media (max-width: 600px){ .topbar-title{font-size:14px} }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0e5c31 0%, #0a4726 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  flex-shrink: 0;
}
.sidebar-brand {
  padding: 22px 20px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #ffb020, #f59e0b);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #7a3c00;
  box-shadow: 0 4px 14px rgba(0,0,0,.22);
}
.brand-text b { display:block; font-size: 15px; letter-spacing: .5px; }
.brand-text span { display: block; font-size: 11px; color: rgba(255,255,255,.65); margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 14px 12px; overflow-y: auto; }
.sidebar-nav .nav-group {
  font-size: 11px; color: rgba(255,255,255,.5);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 12px 6px;
}
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.82);
  padding: 10px 12px; border-radius: 10px;
  font-size: 14px; margin-bottom: 3px;
  transition: background .2s, color .2s;
}
.sidebar-nav a .ico { width: 20px; text-align: center; font-size: 16px; }
.sidebar-nav a:hover { background: rgba(255,255,255,.08); color:#fff; }
.sidebar-nav a.active { background: rgba(255,255,255,.16); color:#fff; font-weight:600; }

.sidebar-foot { padding: 16px 14px; border-top: 1px solid rgba(255,255,255,.12); }
.sidebar-foot a {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.75); font-size: 13px; padding: 8px 12px; border-radius: 10px;
}
.sidebar-foot a:hover { background: rgba(255,255,255,.08); color:#fff; }

@media (max-width: 900px) {
  .sidebar { position: static; width: 100%; height: auto; }
  .sidebar-nav { display: flex; flex-wrap: wrap; padding: 8px; }
  .sidebar-nav .nav-group { display:none; }
  .sidebar-nav a { flex: 0 0 auto; margin: 3px; }
  .sidebar-foot { display:none; }
}

/* ---------- 页面标题 ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { font-size: 22px; font-weight: 700; }
.page-head p { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.page-head .actions { display:flex; gap:10px; margin-top: 12px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 24px; }
.card-head {
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.card-head h3 { font-size: 16px; }
.card-body { padding: 22px 24px; }
.card + .card, .grid + .card { margin-top: 20px; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-v { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 900px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr } }

/* ---------- 统计卡 ---------- */
.stat-card {
  background: var(--surface); border:1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display:flex; align-items:center; gap:16px;
  transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat-icon {
  width: 50px; height:50px; border-radius: 13px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size: 24px;
}
.stat-icon.green { background: var(--primary-50); }
.stat-icon.amber { background: var(--accent-50); }
.stat-icon.blue  { background: #e8f0fe; }
.stat-icon.red   { background: #fdeaea; }
.stat-meta .label { font-size: 13px; color: var(--text-3); }
.stat-meta .value { font-size: 26px; font-weight: 700; line-height: 1.25; }
.stat-meta .value small { font-size: 13px; font-weight: 400; color: var(--text-3); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 18px; border-radius: 9px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: all .18s; line-height: 1.4; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); color:#fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23,138,75,.28); }
.btn-accent { background: var(--accent); color: #7a3c00; }
.btn-accent:hover { background: var(--accent-600); color:#fff; }
.btn-light { background: #fff; color: var(--text); border-color: var(--border); }
.btn-light:hover { background: var(--surface-2); border-color: #d4dad4; }
.btn-ghost { background: transparent; color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--danger); color:#fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }

/* 操作按钮（小尺寸标签式） */
.act { display:inline-flex; align-items:center; gap:4px; padding:4px 10px; border-radius:8px; font-size:12.5px; font-weight:600; border:1px solid transparent; cursor:pointer; transition:all .15s; }
.act:hover { transform: translateY(-1px); }
.act-view  { background:#e8f0fe; color:#1d4ed8; } .act-view:hover{background:#dbeafe;}
.act-edit  { background:var(--primary-50); color:var(--primary-600);} .act-edit:hover{background:var(--primary-100);}
.act-ok    { background:var(--success-50); color:var(--success);} .act-ok:hover{background:#bbf7d0;}
.act-down  { background:#eef2ff; color:#4338ca;} .act-down:hover{background:#e0e7ff;}
.act-danger{ background:var(--danger-50); color:var(--danger);} .act-danger:hover{background:#fecaca;}

/* ---------- 徽章 / 评分等级 ---------- */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}
.badge-green { background: var(--primary-50); color: var(--primary-700); }
.badge-amber { background: var(--accent-50); color: #92400e; }
.badge-blue  { background: #e8f0fe; color: #1d4ed8; }
.badge-red   { background: var(--danger-50); color: var(--danger); }
.badge-gray  { background: #eef1ee; color: var(--text-2); }

/* 评分等级 */
.level { display:inline-block; min-width: 42px; text-align:center; padding:3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.level-S { background: linear-gradient(135deg,#16a34a,#4ade80); color:#fff; }
.level-A { background: #2563eb; color:#fff; }
.level-B { background: #f59e0b; color:#7a3c00; }
.level-C { background: #ea580c; color:#fff; }
.level-D { background: #9aa5b1; color:#fff; }

/* ---------- 排名徽标 ---------- */
.rank-badge {
  width: 30px; height: 30px; border-radius: 9px;
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; background: #eef1ee; color: var(--text-2);
}
.rank-1 { background: linear-gradient(135deg,#f59e0b,#fbbf24); color:#7a3c00; box-shadow:0 2px 8px rgba(245,158,11,.4); }
.rank-2 { background: linear-gradient(135deg,#cbd5e1,#e2e8f0); color:#475569; }
.rank-3 { background: linear-gradient(135deg,#b45309,#d97706); color:#fff; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width:100%; border-collapse: collapse; font-size: 14px; }
.table thead th {
  background: var(--surface-2); color: var(--text-2);
  font-weight:600; text-align:left; padding: 11px 14px;
  border-bottom:1px solid var(--border); white-space:nowrap; font-size: 13px;
}
.table tbody td { padding: 12px 14px; border-bottom:1px solid var(--border); color:var(--text-2); vertical-align:middle; }
.table tbody tr:last-child td { border-bottom:none; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--primary-50); }
.table .row-hl { background: var(--accent-50) !important; }
.table .col-strong { font-weight:600; color:var(--text); }

/* 空状态 */
.empty { text-align:center; padding: 46px 20px; color: var(--text-3); }
.empty .e-ico { font-size: 42px; margin-bottom: 10px; opacity:.7; }
.empty p { font-size: 14px; }
.empty .btn { margin-top: 14px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display:block; font-size: 13.5px; font-weight:600; color:var(--text-2); margin-bottom:7px; }
.field label .req { color: var(--danger); }
.field .hint { font-size:12px; color:var(--text-3); margin-top:5px; }
.input, .select, .textarea {
  width:100%; padding: 10px 13px;
  border:1px solid var(--border); border-radius: 9px;
  font-size:14px; font-family:var(--font); color:var(--text);
  background:#fff; transition: border-color .18s, box-shadow .18s;
}
.input:focus, .select:focus, .textarea:focus {
  outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(23,138,75,.14);
}
.select { appearance:none; background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%239aa5b1' d='M6 8 0 0h12z'/></svg>"); background-repeat:no-repeat; background-position:right 12px center; padding-right:34px; }
.textarea { resize: vertical; min-height: 90px; }
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap: 4px 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px){ .form-grid{ grid-template-columns:1fr } }

/* 上传区 */
.upload-box {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 18px; text-align:center; transition: all .2s;
}
.upload-box:hover { border-color: var(--primary); background: var(--primary-50); }
.upload-box input[type=file] { display:none; }
.upload-box .up-label { cursor:pointer; color: var(--primary); font-weight:600; font-size:14px; }
.upload-box .up-hint { font-size:12px; color:var(--text-3); margin-top:6px; }

/* ---------- 提示 / 消息 ---------- */
.alert {
  display:flex; align-items:flex-start; gap:10px;
  padding: 12px 15px; border-radius: 10px; margin-bottom: 16px;
  font-size: 14px; border-left: 4px solid transparent;
}
.alert-ok   { background: var(--success-50); border-color: var(--success); color:#166534; }
.alert-err  { background: var(--danger-50); border-color: var(--danger); color:#991b1b; }
.alert-info { background: #e8f0fe; border-color: var(--info); color:#1e40af; }
.alert-warn { background: var(--warning-50); border-color: var(--warning); color:#92400e; }
.flash-stack .alert { margin-bottom:10px; }

/* ---------- 评分展示 ---------- */
.score-hero {
  background: linear-gradient(135deg,#0e5c31 0%,#178a4b 60%,#21a85f 100%);
  border-radius: var(--radius); color:#fff; text-align:center;
  padding: 34px 20px; position: relative; overflow:hidden;
  box-shadow: var(--shadow);
}
.score-hero::after {
  content:""; position:absolute; width:240px; height:240px; border-radius:50%;
  background: rgba(255,255,255,.07); right:-60px; top:-90px;
}
.score-hero::before {
  content:""; position:absolute; width:180px; height:180px; border-radius:50%;
  background: rgba(255,255,255,.05); left:-50px; bottom:-70px;
}
.score-hero .label { font-size:15px; opacity:.9; }
.score-hero .value { font-size: 54px; font-weight: 800; line-height:1.1; margin: 4px 0 10px; }
.score-hero .level-pill {
  display:inline-block; padding: 6px 22px; border-radius: 999px;
  background: rgba(255,255,255,.18); font-weight:700; font-size:16px;
}
.score-hero .meta { margin-top: 14px; font-size: 13px; opacity:.85; }

.progress { height: 8px; background:#e8ece8; border-radius: 99px; overflow:hidden; margin-top:12px; }
.progress > i { display:block; height:100%; border-radius:99px; background: linear-gradient(90deg,var(--primary),#34d399); }

/* 维度卡 */
.dim-card { background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align:center; }
.dim-card .dim-name { font-size:13px; color:var(--text-2); }
.dim-card .dim-val { font-size: 30px; font-weight:700; margin-top:2px; color: var(--primary-600); }
.dim-card .dim-max { font-size:12px; color:var(--text-3); }

/* ---------- 排名榜 podium ---------- */
.podium { display:flex; gap:14px; align-items:flex-end; justify-content:center; padding: 8px 0 4px; }
.podium .p-col { flex:1; max-width:200px; text-align:center; }
.podium .p-avatar {
  width: 46px; height:46px; margin:0 auto 8px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center; font-size:20px;
  background: var(--primary-50); color: var(--primary-600); font-weight:700;
}
.podium .p-name { font-size:14px; font-weight:600; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.podium .p-score { font-size:12.5px; color:var(--text-2); margin-top:2px; }
.podium .p-bar { height:14px; border-radius:6px 6px 0 0; }
.podium .p-bar.p1 { height:64px; background:linear-gradient(180deg,#fbbf24,#f59e0b); }
.podium .p-bar.p2 { height:46px; background:linear-gradient(180deg,#e2e8f0,#cbd5e1); }
.podium .p-bar.p3 { height:34px; background:linear-gradient(180deg,#d97706,#b45309); }
.podium .p-medal { font-size:22px; }
@media (max-width:600px){ .podium{ gap:8px } }

/* ---------- 标签页 ---------- */
.tabs { display:flex; gap:8px; flex-wrap:wrap; }
.tab-btn {
  padding:7px 16px; border-radius:999px; border:1px solid var(--border);
  background:#fff; color:var(--text-2); font-size:13.5px; font-weight:600;
  cursor:pointer; transition:all .18s; font-family:var(--font);
}
.tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.tab-btn.active { background: var(--primary); color:#fff; border-color: var(--primary); }
.tab-pane { display:none; }
.tab-pane.active { display:block; }

/* ---------- 模态框 ---------- */
.modal-mask {
  position:fixed; inset:0; z-index:1000; background:rgba(15,30,20,.5);
  display:none; align-items:center; justify-content:center; padding:20px;
}
.modal-mask.show { display:flex; }
.modal {
  background:#fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  width:100%; max-width:480px; max-height:90vh; overflow:auto;
}
.modal-head { padding:18px 22px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.modal-head h3 { font-size:17px; }
.modal-body { padding: 22px; }
.modal .close-x { border:none; background:none; font-size:22px; color:var(--text-3); cursor:pointer; line-height:1; }
.modal .close-x:hover{ color:var(--danger); }

/* ---------- 信息展示 ---------- */
.detail-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px,1fr)); gap: 4px 20px; }
.detail-item { padding: 11px 0; border-bottom: 1px dashed var(--border); }
.detail-item:last-child{ border-bottom:none; }
.detail-item .d-label { font-size:12px; color:var(--text-3); margin-bottom:2px; }
.detail-item .d-value { font-size:14.5px; font-weight:600; color:var(--text); }

/* ---------- 认证页（登录/注册） ---------- */
.auth-body { background: linear-gradient(135deg,#0a4726 0%,#0e5c31 55%,#178a4b 100%); }
.auth-wrap {
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding: 26px;
  position: relative; overflow:hidden;
}
.auth-wrap::before, .auth-wrap::after {
  content:""; position:absolute; border-radius:50%; background: rgba(255,255,255,.05);
}
.auth-wrap::before{ width:420px;height:420px; top:-120px; right:-120px; }
.auth-wrap::after { width:340px;height:340px; bottom:-110px; left:-110px; }
.auth-card {
  width:100%; max-width: 430px; background:#fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 34px 34px 28px; position:relative; z-index:2;
}
.auth-brand { text-align:center; margin-bottom: 22px; }
.auth-brand .mark {
  width: 58px; height:58px; margin:0 auto 12px; border-radius: 16px;
  background: linear-gradient(135deg,#ffb020,#f59e0b); font-size: 30px;
  display:flex; align-items:center; justify-content:center; color:#7a3c00;
  box-shadow: 0 8px 22px rgba(245,158,11,.35);
}
.auth-brand h1 { font-size: 20px; }
.auth-brand p { color: var(--text-3); font-size: 13px; margin-top:5px; }
.auth-head { text-align:center; margin-bottom: 22px; }
.auth-head h2 { font-size: 20px; }
.auth-head p { color: var(--text-3); font-size: 13px; margin-top:4px; }
.auth-foot { text-align:center; margin-top: 18px; font-size: 13.5px; color: var(--text-2); }
.auth-foot a { font-weight:600; }
.auth-back { text-align:center; margin-top:14px; font-size:13px; }
.auth-back a { color: var(--text-3); }
.auth-back a:hover { color: var(--primary); }

/* 认证提示条 */
.auth-notice {
  background: var(--accent-50); border:1px solid #fde9c0; color:#92400e;
  border-radius: 10px; padding: 12px 15px; font-size: 13px; text-align:center; margin-bottom:18px;
}

/* ---------- 落地页（首页） ---------- */
.landing { min-height:100vh; }
.landing-hero {
  background: linear-gradient(135deg,#0a4726 0%,#0e5c31 55%,#178a4b 100%);
  color:#fff; text-align:center; padding: 74px 22px 56px; position:relative; overflow:hidden;
}
.landing-hero::before, .landing-hero::after{ content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.05); }
.landing-hero::before{ width:440px;height:440px; top:-160px; left:-140px; }
.landing-hero::after{ width:400px;height:400px; bottom:-150px; right:-120px; }
.landing-hero .mark {
  width: 76px; height:76px; margin:0 auto 20px; border-radius: 20px;
  background: linear-gradient(135deg,#ffb020,#f59e0b); font-size: 40px;
  display:flex; align-items:center; justify-content:center; color:#7a3c00;
  box-shadow:0 14px 40px rgba(0,0,0,.3);
}
.landing-hero h1 { color:#fff; font-size: 34px; letter-spacing: 1px; }
.landing-hero .sub { margin-top:12px; color: rgba(255,255,255,.82); font-size: 16px; max-width:720px; margin-left:auto; margin-right:auto; }
.landing-hero .tags { margin-top: 20px; display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.landing-hero .tags span {
  padding:5px 14px; border-radius:999px; background:rgba(255,255,255,.12);
  font-size:12.5px; border:1px solid rgba(255,255,255,.2);
}
@media (max-width:600px){ .landing-hero h1{ font-size:26px } }

.landing-body { max-width:1000px; margin:-34px auto 0; padding:0 20px 60px; position:relative; z-index:3; }
.role-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
@media (max-width:760px){ .role-grid{ grid-template-columns:1fr } }
.role-card {
  background:#fff; border-radius:16px; box-shadow: var(--shadow);
  padding: 28px 24px; text-align:center; transition: transform .2s, box-shadow .2s;
  border:1px solid var(--border);
}
.role-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.role-card .rc-ico {
  width:64px;height:64px;margin:0 auto 16px;border-radius:18px;font-size:30px;
  display:flex;align-items:center;justify-content:center;
}
.rc-ico.green{ background:var(--primary-50);} .rc-ico.amber{ background:var(--accent-50);} .rc-ico.blue{ background:#e8f0fe;}
.role-card h3{ font-size:17px; }
.role-card p{ color:var(--text-2); font-size:13.5px; margin:10px 0 18px; min-height:44px; }
.role-card .btn{ width:100%; }

.landing-info { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:26px; }
@media (max-width:760px){ .landing-info{ grid-template-columns:repeat(2,1fr) } }
.li-item {
  background:#fff; border-radius:14px; padding:18px 16px; text-align:center; box-shadow:var(--shadow-sm); border:1px solid var(--border);
}
.li-item .li-ico{ font-size:24px; }
.li-item .li-title{ font-size:13px; color:var(--text-2); margin-top:6px; }
.li-item .li-desc{ font-size:12px; color:var(--text-3); margin-top:2px; }

/* ---------- 详情图片 ---------- */
.img-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:16px; }
.img-card{ background:#fff; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.img-card img{ width:100%; height:160px; object-fit:cover; display:block; background:#eef1ee; }
.img-card .cap{ padding:8px 12px; font-size:13px; color:var(--text-2); text-align:center; }

/* ---------- 消息中心 ---------- */
.chat-shell { display:flex; height:600px; border:1px solid var(--border); border-radius: var(--radius); overflow:hidden; background:#fff; }
.chat-side { width:280px; border-right:1px solid var(--border); display:flex; flex-direction:column; flex-shrink:0; }
.chat-side-head { padding:14px 16px; border-bottom:1px solid var(--border); font-weight:600; font-size:14px; }
.chat-list { flex:1; overflow-y:auto; }
.chat-item { padding:13px 16px; border-bottom:1px solid #f1f3f1; cursor:pointer; transition:background .15s; }
.chat-item:hover{ background:var(--surface-2); }
.chat-item .ci-name{ font-weight:600; font-size:13.5px; color:var(--text); }
.chat-item .ci-time{ float:right; font-size:11.5px; color:var(--text-3); }
.chat-item .ci-prev{ font-size:12.5px; color:var(--text-3); margin-top:3px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.chat-main { flex:1; display:flex; flex-direction:column; }
.chat-main-head { padding:14px 18px; border-bottom:1px solid var(--border); font-weight:600; }
.chat-body { flex:1; overflow-y:auto; padding:20px; background: var(--surface-2); }
.bubble { max-width:72%; margin-bottom:14px; }
.bubble .bb-content { padding:10px 15px; border-radius:16px; font-size:14px; word-break:break-word; }
.bubble.incoming .bb-content{ background:#fff; border:1px solid var(--border); border-top-left-radius:4px; }
.bubble.outgoing { margin-left:auto; }
.bubble.outgoing .bb-content{ background: var(--primary-100); border-top-right-radius:4px; color:#0b3d22; }
.bubble .bb-time{ font-size:11px; color:var(--text-3); margin-top:4px; }
.chat-input { padding:14px 16px; border-top:1px solid var(--border); background:#fff; }
.chat-input form{ display:flex; gap:10px; }
.chat-input textarea{ flex:1; border:1px solid var(--border); border-radius:20px; padding:9px 16px; resize:none; font-family:var(--font); font-size:14px; min-height:40px; max-height:110px; }
.chat-input textarea:focus{ outline:none; border-color:var(--primary); }
@media (max-width:700px){ .chat-shell{ flex-direction:column; } .chat-side{ width:100%; height:34%; border-right:none; border-bottom:1px solid var(--border); } }

/* ---------- 页脚 ---------- */
.landing-foot { text-align:center; padding: 26px 20px; color: var(--text-3); font-size: 13px; border-top:1px solid var(--border); background:#fff; }

/* ---------- 工具类 ---------- */
.mt-0{margin-top:0}.mt-1{margin-top:6px}.mt-2{margin-top:12px}.mt-3{margin-top:20px}.mt-4{margin-top:30px}
.mb-1{margin-bottom:6px}.mb-2{margin-bottom:12px}.mb-3{margin-bottom:20px}
.flex{display:flex}.between{justify-content:space-between}.center{justify-content:center;align-items:center}
.items-center{align-items:center}.gap-1{gap:6px}.gap-2{gap:12px}.gap-3{gap:20px}
.text-center{text-align:center}.text-right{text-align:right}
.muted{color:var(--text-2)}.dim{color:var(--text-3)}
.w-full{width:100%}
