/* ============================================================
   Global Linker — 全站样式
   设计规范：国际化极简商务风
   主色 #0F3460 · 辅助 #1E90FF · 背景 #FFFFFF/#F8F9FA · 文字 #212529
   ============================================================ */

:root {
  --primary: #0F3460;
  --accent: #1E90FF;
  --bg: #F8F9FA;
  --surface: #FFFFFF;
  --text: #212529;
  --text-muted: #6C757D;
  --border: #E9ECEF;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 52, 96, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 52, 96, 0.12);
  --shadow-lg: 0 14px 40px rgba(15, 52, 96, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* main 自身也是 .container（margin:0 auto），在 body 的 flex 列布局中
   auto margin 会令交叉轴 stretch 失效、宽度收缩为 fit-content，
   必须显式 width:100% 让内部的 .container 正确居中限宽 */
main { flex: 1; padding-bottom: 64px; width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------------- Header ---------------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
/* 深色 footer 中的 logo 需要浅色衬底，因为品牌图为黑字透明底 */
.logo-img-light {
  background: #fff;
  border-radius: 8px;
  padding: 7px 12px;
  height: 40px;
}
@media (max-width: 640px) {
  .logo-img { height: 36px; max-width: 200px; }
  .logo-img-light { height: 32px; padding: 6px 10px; }
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav > a { font-size: 15px; font-weight: 500; color: var(--text-muted); transition: color 0.15s; position: relative; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a.active { color: var(--primary); }
.main-nav > a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-auth { display: flex; align-items: center; gap: 12px; margin-left: 12px; }
.nav-toggle { display: none; background: none; border: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.2s; }

/* 用户下拉菜单 */
.user-menu { position: relative; }
.user-menu .avatar-btn {
  display: flex; align-items: center; gap: 8px; background: none; border: none;
  font-weight: 600; font-size: 14px; padding: 6px; border-radius: 999px; transition: background 0.15s;
  white-space: nowrap;
}
.user-menu .avatar-btn .hide-sm {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 140px;
}
.user-menu .avatar-btn:hover { background: var(--bg); }
/* 防御：头像按钮内的图片必须受尺寸约束（防止用户上传大图后撑破导航栏） */
.user-menu .avatar-btn img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.avatar.lg { width: 84px; height: 84px; font-size: 32px; border-radius: 22px; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 236px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 8px; display: none; z-index: 200;
}
.user-menu.open .dropdown { display: block; }
.dropdown a, .dropdown button {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  color: var(--text); background: none; border: none; text-align: left; transition: background 0.15s;
}
.dropdown a:hover, .dropdown button:hover { background: var(--bg); }
.dropdown .badge-pending { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent; transition: all 0.18s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #124580; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: #1877CE; transform: translateY(-1px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: #FEF2F2; color: var(--danger); border-color: #FECACA; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ---------------- 通用组件 ---------------- */
.page { animation: fadeUp 0.35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: #EEF4FB; color: var(--primary);
}
.badge.opc { background: #0F3460; color: #fff; }
.badge.opc::before { content: "✓"; font-size: 10px; }
.badge.green { background: #ECFDF3; color: var(--success); }
.badge.orange { background: #FFF7E8; color: var(--warning); }
.badge.red { background: #FEF2F2; color: var(--danger); }
.badge.blue { background: #EAF4FF; color: var(--accent); }

.page-hero { padding: 56px 0 36px; text-align: center; }
.page-hero h1 { font-size: 40px; letter-spacing: -1px; line-height: 1.2; margin-bottom: 14px; }
.page-hero p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto; }

.section { margin: 44px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.section-head h2 { font-size: 24px; letter-spacing: -0.5px; }
.section-head .more { color: var(--accent); font-weight: 600; font-size: 14px; }

/* 表单 */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 14px; font-weight: 600; }
.form-group label .opt { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.form-control {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit; background: var(--surface); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint { font-size: 12.5px; color: var(--text-muted); }
.form-error { font-size: 13px; color: var(--danger); min-height: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.form-check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--primary); }
.form-check a { color: var(--accent); font-weight: 600; }
fieldset.form-group { border: 1.5px solid var(--border); border-radius: 10px; padding: 14px 16px; }
fieldset.form-group legend { font-size: 14px; font-weight: 600; padding: 0 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px;
  border: 1.5px solid var(--border); border-radius: 999px; font-size: 13.5px;
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.check-chip:hover { border-color: var(--accent); }
.check-chip.on { background: #EAF4FF; border-color: var(--accent); color: var(--primary); font-weight: 600; }

/* Tabs（个人中心 / 后台） */
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--border); margin-bottom: 28px; overflow-x: auto; }
.tab {
  padding: 11px 18px; font-size: 15px; font-weight: 600; color: var(--text-muted);
  border: none; background: none; border-bottom: 2.5px solid transparent; margin-bottom: -2px;
  transition: all 0.15s; white-space: nowrap;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--accent); }

/* 表格 */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 12px 14px; color: var(--text-muted); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.4px; border-bottom: 1.5px solid var(--border);
}
.table td { padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background 0.12s; }
.table tbody tr:hover { background: #FAFBFD; }

/* 状态徽标 */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status.pending { color: var(--warning); } .status.pending::before { background: var(--warning); }
.status.approve { color: var(--success); } .status.approve::before { background: var(--success); }
.status.reject { color: var(--danger); } .status.reject::before { background: var(--danger); }

/* Toast 提示 */
#toast-container { position: fixed; top: 80px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 380px; padding: 14px 18px; border-radius: 12px;
  background: var(--primary); color: #fff; font-size: 14.5px; font-weight: 500;
  box-shadow: var(--shadow-lg); animation: slideIn 0.3s ease;
  display: flex; gap: 10px; align-items: flex-start;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeUp 0.2s ease; backdrop-filter: blur(3px);
}
.modal {
  background: var(--surface); border-radius: 16px; max-width: 520px; width: 100%;
  padding: 28px; box-shadow: var(--shadow-lg); max-height: 86vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 10px; font-size: 19px; }
.modal p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* 加载状态 */
.page-loading { display: flex; justify-content: center; padding: 120px 0; }
.spinner {
  width: 36px; height: 36px; border: 3.5px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-mask { position: relative; pointer-events: none; opacity: 0.55; }

.empty {
  text-align: center; padding: 64px 20px; color: var(--text-muted);
}
.empty .icon { font-size: 44px; margin-bottom: 12px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ---------------- Footer ---------------- */
#site-footer { background: var(--primary); color: rgba(255, 255, 255, 0.85); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; padding: 48px 24px 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 10px; }
.footer-desc { font-size: 13.5px; margin-top: 14px; opacity: 0.75; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 4px; letter-spacing: 0.3px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 18px 0; font-size: 13px; opacity: 0.65; }
/* 页脚法定备案号（ICP / 公安联网备案）—— 服务端按 .env 注入，未配置时不渲染 */
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; text-align: center; }
.footer-legal-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.15s; }
.footer-legal-link:hover { border-bottom-color: currentColor; }

/* ============================================================
   页面级样式
   ============================================================ */

/* ---- 首页 Hero ---- */
.hero {
  background: linear-gradient(160deg, var(--primary) 0%, #123A6E 55%, #0C2A50 100%);
  color: #fff; padding: 88px 0 96px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(30, 144, 255, 0.35), transparent 65%); border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 46px; line-height: 1.15; letter-spacing: -1.2px; max-width: 640px; margin-bottom: 18px; }
.hero h1 .hl { color: #7DB8FF; }
/* .nb：品牌名等不可拆行片段（配合 i18n 中 home.heroTitle 使用） */
.hero h1 .nb { white-space: nowrap; }
.hero p { font-size: 18px; opacity: 0.85; max-width: 560px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-accent { background: var(--accent); }
.hero .btn-outline { border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* 数据统计条 */
.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: -48px auto 0; position: relative; z-index: 2; }
.stat-card {
  background: var(--surface); border-radius: 16px; padding: 26px;
  text-align: center; box-shadow: var(--shadow-md); border: 1px solid var(--border);
  transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .num { font-size: 30px; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
.stat-card .label { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }

/* 首页特性区 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { padding: 28px; }
.feature .f-icon {
  width: 46px; height: 46px; border-radius: 12px; background: #EAF4FF;
  display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-muted); }

/* ---- 项目卡片 ---- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-card { padding: 22px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.project-card .pc-top { display: flex; align-items: center; gap: 10px; }
.project-card h3 { font-size: 16.5px; letter-spacing: -0.2px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card .pc-summary {
  color: var(--text-muted); font-size: 13.8px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px;
}
.pc-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-meta .badge { font-size: 11.5px; padding: 2px 9px; }
.pc-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-muted); margin-top: auto; padding-top: 6px; }
.pc-owner { display: flex; align-items: center; gap: 7px; }
.pc-owner .avatar { width: 22px; height: 22px; font-size: 10px; }

/* ---- 项目广场筛选栏 ---- */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 16px; margin-bottom: 26px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.filter-bar .form-control { width: auto; min-width: 160px; padding: 9px 12px; font-size: 14px; }
.filter-bar .search-input { flex: 1; min-width: 220px; }
.filter-result { font-size: 14px; color: var(--text-muted); margin-bottom: 18px; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 34px; }
.pagination button {
  min-width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text);
  transition: all 0.15s; padding: 0 10px;
}
.pagination button:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.pagination button.cur { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination button[disabled] { opacity: 0.45; cursor: default; }
.pagination .page-info { font-size: 13.5px; color: var(--text-muted); margin: 0 6px; }

/* ---- 项目详情 ---- */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.detail-main { padding: 32px; }
.detail-main .rich { margin-top: 22px; font-size: 15px; line-height: 1.75; }
.detail-main .rich p { margin-bottom: 12px; }
.detail-main .rich h2 { font-size: 19px; margin: 26px 0 10px; }
.detail-main .rich ul { padding-left: 22px; margin-bottom: 12px; }
.detail-sec { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.detail-sec h3 { font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.detail-sec p { color: var(--text-muted); font-size: 14.5px; }

/* ---- 详情页海报 / 长图 ---- */
.detail-cover { margin: 20px 0 4px; text-align: center; }
.detail-cover img {
  display: block; margin: 0 auto; max-width: 100%; width: auto;
  border-radius: var(--radius); box-shadow: 0 4px 18px rgba(0,0,0,.10);
}
/* ---- 富文本正文（海报长图 / 图文详情）---- */
.rich-body { margin-top: 4px; font-size: 15px; line-height: 1.8; color: var(--text); word-break: break-word; }
.rich-body p { margin-bottom: 12px; }
.rich-body h2 { font-size: 18px; margin: 24px 0 10px; }
.rich-body h3 { font-size: 16px; margin: 20px 0 8px; }
.rich-body ul, .rich-body ol { padding-left: 22px; margin-bottom: 12px; }
.rich-body li { margin-bottom: 4px; }
.rich-body a { color: var(--accent); text-decoration: underline; }
.rich-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 10px 0; display: block; }
.rich-body blockquote {
  border-left: 3px solid var(--border); padding: 6px 14px; margin: 12px 0;
  color: var(--text-muted); background: var(--bg-soft, rgba(127,127,127,.06)); border-radius: 0 8px 8px 0;
}
.rich-body table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.rich-body th, .rich-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.detail-side .card { padding: 24px; }
.detail-side h4 { font-size: 15px; margin-bottom: 14px; }
.side-stat { display: flex; justify-content: space-between; font-size: 13.5px; padding: 7px 0; }
.side-stat .k { color: var(--text-muted); }
.owner-card { display: flex; gap: 14px; align-items: center; padding: 16px; margin-top: 16px; border-radius: 12px; background: var(--bg); transition: background 0.15s; }
.owner-card:hover { background: #EEF4FB; }
.owner-card .oc-name { font-weight: 700; font-size: 15px; }
.owner-card .oc-title { font-size: 12.5px; color: var(--text-muted); }

/* ---- 个人主页 ---- */
.profile-head {
  display: flex; gap: 24px; align-items: flex-start; padding: 36px;
  background: linear-gradient(135deg, var(--primary), #1E4A80); color: #fff; border-radius: 16px;
}
.profile-head .p-info h1 { font-size: 26px; margin-bottom: 4px; }
.profile-head .p-title { opacity: 0.85; font-size: 15px; margin-bottom: 8px; }
.profile-head .p-meta { font-size: 13px; opacity: 0.7; display: flex; gap: 16px; flex-wrap: wrap; }
.profile-body { display: grid; grid-template-columns: 300px 1fr; gap: 26px; margin-top: 26px; align-items: start; }
.profile-side .card { padding: 24px; }
.profile-side h4 { margin: 18px 0 8px; font-size: 14.5px; }
.profile-side h4:first-child { margin-top: 0; }
.profile-side p { font-size: 14px; color: var(--text-muted); }
.social-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13.5px; margin: 0 12px 8px 0; font-weight: 600; }
.social-links a:hover { text-decoration: underline; }

/* ---- 认证页（登录/注册） ---- */
.auth-wrap { max-width: 440px; margin: 60px auto; }
.auth-card { padding: 36px; }
.auth-card h1 { font-size: 25px; margin-bottom: 6px; }
.auth-card .sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-alt { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-alt a { color: var(--accent); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* 登录方式切换（邮箱 / 手机号） */
.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 22px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 4px;
}
.auth-tab {
  flex: 1; padding: 9px 12px; border: none; border-radius: 7px;
  background: transparent; color: var(--text-muted);
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all 0.15s; white-space: nowrap;
}
.auth-tab:hover { color: var(--primary); }
.auth-tab.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* 验证码输入 + 发送按钮 */
.sms-row { display: flex; gap: 10px; align-items: stretch; }
.sms-row .form-control { flex: 1; min-width: 0; letter-spacing: 2px; }
.sms-row .btn { flex: 0 0 auto; white-space: nowrap; padding: 0 16px; }
.legal-note { font-size: 12.5px; color: var(--text-muted); text-align: center; margin-top: 14px; }
.legal-note a { color: var(--accent); }

/* ---- 个人中心 ---- */
.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; margin-top: 32px; }
.dash-side { padding: 20px; position: sticky; top: 88px; }
.dash-side .ds-user { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0 16px; border-bottom: 1px solid var(--border); margin-bottom: 14px; text-align: center; }
.dash-side .ds-user .name { font-weight: 700; font-size: 16px; margin-top: 8px; }
.dash-nav { display: flex; flex-direction: column; gap: 4px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--text); transition: all 0.15s;
}
.dash-nav a:hover { background: var(--bg); }
.dash-nav a.active { background: #EAF4FF; color: var(--primary); font-weight: 700; }
.dash-nav .badge-pending { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; margin-left: auto; }
.dash-main { min-width: 0; }
.dash-main .card { padding: 28px; }
.dash-main h2 { font-size: 21px; margin-bottom: 4px; }
.dash-main .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }

/* 通知 */
.notif-item { display: flex; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-item .n-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #EAF4FF;
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.notif-item .n-title { font-weight: 600; font-size: 14.5px; }
.notif-item .n-body { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }
.notif-item .n-time { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.notif-item.unread { background: #F5FAFF; border-radius: 10px; }

/* 我的项目管理行 */
.proj-row { display: flex; gap: 16px; align-items: center; padding: 18px 6px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.proj-row:last-child { border-bottom: none; }
.proj-row .pr-info { flex: 1; min-width: 200px; }
.proj-row .pr-name { font-weight: 700; font-size: 15.5px; }
.proj-row .pr-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }
.proj-row .pr-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 富文本编辑器 */
.rte-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
  padding: 10px; border: 1.5px solid var(--border); border-bottom: none;
  border-radius: 10px 10px 0 0; background: var(--bg);
}
/* 图标按钮：固定方形尺寸，仅放符号 */
.rte-toolbar button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 32px; padding: 0 9px; flex: 0 0 auto;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); font-size: 14px; line-height: 1;
  color: var(--text); transition: all 0.15s; white-space: nowrap;
}
/* 带文字的按钮（如「插入图片」）自适应宽度，不与图标按钮抢位 */
.rte-toolbar button.wide { padding: 0 12px; gap: 6px; font-size: 13px; font-weight: 600; }
.rte-toolbar button:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.rte-toolbar .rte-sep { width: 1px; height: 20px; background: var(--border); margin: 0 3px; flex: 0 0 auto; }
.rte {
  min-height: 200px; max-height: 420px; overflow-y: auto; padding: 14px 16px;
  border: 1.5px solid var(--border); border-radius: 0 0 10px 10px;
  font-size: 15px; line-height: 1.7; background: var(--surface);
}
.rte:focus { outline: none; border-color: var(--accent); }
.rte:empty::before { content: attr(data-placeholder); color: var(--text-muted); }

/* OPC 申请状态卡 */
.status-hero { padding: 40px 30px; text-align: center; }
.status-hero .s-icon { font-size: 52px; margin-bottom: 14px; }
.status-hero h2 { margin-bottom: 8px; }
.status-hero p { color: var(--text-muted); font-size: 14.5px; }
.status-hero .apply-no {
  display: inline-block; margin-top: 14px; padding: 8px 18px; background: var(--bg);
  border-radius: 999px; font-family: monospace; font-size: 14px; font-weight: 700; color: var(--primary);
}
.reject-note {
  margin-top: 18px; padding: 14px 18px; background: #FEF2F2; border: 1px solid #FECACA;
  color: #991B1B; border-radius: 10px; font-size: 14px; text-align: left;
}

/* 后台 */
.admin-layout { margin-top: 32px; }
.admin-overview { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 28px; }
.ov-card { padding: 20px; text-align: center; }
.ov-card .num { font-size: 26px; font-weight: 800; color: var(--primary); }
.ov-card .label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* 文章页（关于/协议/社群） */
.doc-page { max-width: 760px; margin: 48px auto; padding: 44px; }
.doc-page h1 { font-size: 30px; margin-bottom: 22px; }
.doc-page h2 { font-size: 19px; margin: 30px 0 10px; }
.doc-page p, .doc-page li { font-size: 15px; color: #3D4650; line-height: 1.8; }
.doc-page ul { padding-left: 22px; margin: 10px 0; }
.doc-page .muted { color: var(--text-muted); font-size: 13.5px; margin-top: 34px; }

/* 社群介绍 */
.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 26px; }
.community-card { padding: 26px; }
.community-card .f-icon { font-size: 30px; margin-bottom: 12px; }
.community-card h3 { margin-bottom: 8px; font-size: 17px; }
.community-card p { font-size: 14px; color: var(--text-muted); }

/* ============================================================
   移动端自适应
   ============================================================ */
@media (max-width: 900px) {
  .projects-grid, .features { grid-template-columns: repeat(2, 1fr); }
  .detail-layout, .profile-body, .dash-layout { grid-template-columns: 1fr; }
  .admin-overview { grid-template-columns: repeat(2, 1fr); }
  .dash-side { position: static; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; }
  .dash-nav a { padding: 8px 12px; font-size: 13.5px; }
}
/* 导航分级压缩：保证所有链接永远单行 */
@media (max-width: 1180px) {
  .main-nav { gap: 16px; }
  .main-nav > a { font-size: 14px; }
  .header-inner { gap: 16px; }
}
@media (max-width: 1024px) {
  .main-nav { gap: 12px; }
  .main-nav > a { font-size: 13.5px; }
  .nav-auth { gap: 8px; margin-left: 4px; }
  .logo-img { max-width: 170px; height: 38px; }
}
/* 中屏及以下收起为汉堡菜单（8 个导航项 + 登录态时单行放不下） */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .header-inner { height: 58px; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface); flex-direction: column; align-items: stretch;
    padding: 14px 24px 20px; gap: 4px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  body.nav-open .main-nav { display: flex; }
  .main-nav > a { padding: 11px 4px; font-size: 15.5px; }
  .main-nav > a.active::after { display: none; }
  .nav-auth { margin: 10px 0 0; flex-direction: column; align-items: stretch; gap: 10px; }
}
@media (max-width: 640px) {
  .header-inner { height: 58px; }
  .hero { padding: 56px 0 84px; }
  .hero h1 { font-size: 25px; letter-spacing: -0.6px; }
  .hero p { font-size: 15.5px; }
  .stats-bar { grid-template-columns: 1fr; gap: 12px; margin-top: -36px; }
  .stat-card { padding: 18px; }
  .stat-card .num { font-size: 24px; }
  .projects-grid, .features, .form-row, .community-grid { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 28px; }
  .page-hero { padding: 36px 0 24px; }
  .profile-head { flex-direction: column; padding: 26px; }
  .doc-page { padding: 26px; margin: 24px auto; }
  .doc-page h1 { font-size: 24px; }
  .form-row { gap: 18px; }
  .filter-bar .form-control { width: 100%; }
  .auth-wrap { margin: 28px auto; }
  .auth-card { padding: 26px; }
  #toast-container { left: 16px; right: 16px; top: 72px; }
  .toast { max-width: none; }
}

/* ============================ 个人资料 · 头像上传 ============================ */
.pf-avatar-box { position: relative; flex: 0 0 auto; width: 84px; height: 84px; }
.pf-avatar-box .avatar { width: 84px; height: 84px; }
.pf-avatar-preview {
  position: absolute; inset: 0; width: 84px !important; height: 84px !important;
  object-fit: cover; border-radius: 22px;
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.35);
  z-index: 1; pointer-events: none;
}

/* ============================ 语言切换器（右上角 中/EN） ============================ */.lang-switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
  flex-shrink: 0;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  line-height: 1.2;
}
.lang-switch button:hover { color: var(--primary); }
.lang-switch button.active {
  background: var(--primary);
  color: #fff;
}
.lang-switch button + button { border-left: 1px solid var(--border); }

/* ============================ OPC 综合评分面板 ============================ */
.score-total {
  font-size: 20px;
  font-weight: 800;
  color: #1e7e34;
  letter-spacing: 0.5px;
}
.score-total.fail { color: #c0392b; }
.score-warn {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fdf0ec;
  color: #c0392b;
  font-size: 13px;
  border: 1px solid #f5c9bf;
}
.score-input::-webkit-outer-spin-button,
.score-input::-webkit-inner-spin-button {
  margin: 0;
}

/* ============================ AI 预评分与评价报告面板 ============================ */
.ai-panel {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.ai-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #F1F5FB 0%, #F7FAFF 100%);
  border-bottom: 1px solid var(--border);
}
.ai-title { font-weight: 700; font-size: 14.5px; color: var(--primary); }
.ai-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.6; }
.ai-score-box { text-align: right; white-space: nowrap; }
.ai-score { font-size: 30px; font-weight: 800; line-height: 1.05; color: var(--success); }
.ai-score.bad { color: var(--danger); }
.ai-score span { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.ai-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 2px;
}
.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.ai-tag.ok { background: #ECFDF3; border-color: #BBE9CC; color: var(--success); }
.ai-tag.warn { background: #FFF7E8; border-color: #F5E2B8; color: #B7791F; }
.ai-tag.bad { background: #FEF2F2; border-color: #F6D2CE; color: var(--danger); }
.ai-dim { padding: 12px 16px 0; }
.ai-dim-top { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; }
.ai-dim-w { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.ai-dim-s { font-size: 17px; font-weight: 800; color: var(--accent); }
.ai-dim-s.ok { color: var(--success); }
.ai-dim-s.bad { color: var(--danger); }
.ai-dim-c { font-size: 12.5px; color: var(--text-muted); line-height: 1.75; margin-top: 3px; }
.ai-sec { padding: 12px 16px 0; }
.ai-sec-t { font-size: 13.5px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.ai-sec-t.ok { color: var(--success); }
.ai-sec-t.bad { color: var(--danger); }
.ai-sec-c { font-size: 13px; color: var(--text); line-height: 1.85; margin-top: 4px; white-space: pre-wrap; }
.ai-sec-box { margin: 14px 16px 0; padding: 12px 14px; background: var(--bg); border-radius: 8px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.ai-list { margin: 6px 0 0 0; padding-left: 18px; list-style: disc; }
.ai-list li { font-size: 12.5px; color: var(--text); line-height: 1.75; margin-bottom: 4px; }
.ai-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.ai-note { font-size: 12px; color: var(--text-muted); line-height: 1.6; flex: 1; min-width: 220px; }
.ai-prefill {
  font-size: 12.5px;
  color: #B7791F;
  background: #FFF7E8;
  border: 1px solid #F5E2B8;
  border-radius: 8px;
  padding: 7px 11px;
  margin-bottom: 12px;
}
@media (max-width: 720px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-head { flex-direction: column; }
  .ai-score-box { text-align: left; }
}

/* ============================================================================
   身份角色徽章（管理员 / OPC 会员 / 普通会员）
   ============================================================================ */
.badge.role-admin { background: #0F3460; color: #fff; }
.badge.role-opc { background: #EAF4FF; color: #0B6BCB; border: 1px solid #C9E2FB; }
.badge.role-opc::before { content: "✓"; font-size: 10px; margin-right: 1px; }
.badge.role-member { background: #F1F3F5; color: #495057; border: 1px solid #E3E6E9; }
.badge.gray { background: #F1F3F5; color: #6C757D; border: 1px solid #E3E6E9; }
.dropdown .dropdown-role {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px 10px;
  font-size: 11.5px; color: var(--text-muted); border-bottom: 1px solid var(--border); margin-bottom: 4px;
  white-space: nowrap; flex-wrap: nowrap;
}
.dropdown .dropdown-role span { overflow: hidden; text-overflow: ellipsis; }
.dropdown a.dropdown-admin { font-weight: 700; color: var(--primary); }
.ds-role-hint, .p-role-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.publisher-badge { vertical-align: middle; margin-left: 8px; }

/* ============================================================================
   通用：提示条 / 分段标签 / 卡片网格 / 返回链接
   ============================================================================ */
.info-note {
  font-size: 13px; color: #0B6BCB; background: #EAF4FF; border: 1px solid #C9E2FB;
  border-radius: 10px; padding: 10px 13px; margin: 4px 0 14px; line-height: 1.7;
}
.info-note a { text-decoration: underline; }
.table-note { font-size: 12.5px; color: var(--text-muted); padding: 12px 14px 4px; line-height: 1.7; }
.pre-line { white-space: pre-line; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.community-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 44px 0 20px; }
.back-link { display: inline-block; font-size: 13.5px; color: var(--accent); margin-bottom: 14px; }

.seg-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.seg-tabs .seg {
  font: inherit; font-size: 13.5px; cursor: pointer; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-muted);
  transition: all .18s;
}
.seg-tabs .seg:hover { border-color: var(--accent); color: var(--accent); }
.seg-tabs .seg.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.seg-tabs .seg-count { opacity: .72; font-size: 12px; margin-left: 3px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   活动卡片 / 活动详情
   ============================================================================ */
.event-card { display: flex; flex-direction: column; overflow: hidden; }
.event-card .ec-cover {
  position: relative; height: 118px; background: linear-gradient(135deg, #0F3460 0%, #1E90FF 100%);
  background-size: cover; background-position: center; display: flex; align-items: flex-start;
  justify-content: space-between; padding: 12px;
}
.ec-mode {
  font-size: 11.5px; background: rgba(255,255,255,.92); color: var(--primary);
  border-radius: 999px; padding: 3px 10px; font-weight: 600;
}
.event-card .ec-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.event-card h3 { font-size: 16.5px; line-height: 1.4; }
.ec-summary { font-size: 13px; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ec-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.ec-progress, .ev-progress { height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; }
.ec-progress > span, .ev-progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.ec-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; font-size: 12.5px; color: var(--text-muted); }

.ev-hero-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ev-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 18px 0 4px; }
.ev-info { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.ev-info .k { font-size: 12px; color: var(--text-muted); }
.signup-card h4 { margin-bottom: 12px; }
.seats-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 10px; flex-wrap: wrap; }
.signup-card .ev-progress { margin-bottom: 16px; }
.signup-hint { font-size: 13px; color: var(--text-muted); margin: 6px 0 12px; line-height: 1.7; }
.signup-done {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #ECFDF3;
  border: 1px solid #BBE9CC; border-radius: 10px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 12px;
}
.signup-done .sd-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--success); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; }
.signup-done .sd-meta { width: 100%; font-size: 12.5px; color: var(--text-muted); }
.signup-edit { margin-bottom: 12px; }
.signup-edit > summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.signup-closed {
  font-size: 13.5px; color: var(--warning); background: #FFF7E8; border: 1px solid #F5E2B8;
  border-radius: 10px; padding: 10px 13px; margin-bottom: 14px; text-align: center;
}
@media (max-width: 720px) { .ev-info-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   课程卡片 / 课程详情（免费 / 收费明确标注）
   ============================================================================ */
.course-card { display: flex; flex-direction: column; overflow: hidden; }
.course-card .cc-cover {
  position: relative; height: 96px; background: linear-gradient(135deg, #103C6E 0%, #2B7FD4 100%);
  background-size: cover; background-position: center; display: flex; align-items: flex-start; padding: 12px;
}
.cc-cat { font-size: 11.5px; background: rgba(255,255,255,.92); color: var(--primary); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.course-card .cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { font-size: 16.5px; line-height: 1.4; }
.cc-summary { font-size: 13px; color: var(--text-muted); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cc-price { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 2px; }
.cc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto;
  padding-top: 8px; font-size: 12.5px; color: var(--text-muted); }

.price-badge {
  font-size: 11.5px; font-weight: 800; letter-spacing: .04em; border-radius: 6px; padding: 3px 9px;
  text-transform: uppercase;
}
.price-badge.free { background: #ECFDF3; color: #15803D; border: 1px solid #BBE9CC; }
.price-badge.paid { background: #FFF1F0; color: #C2410C; border: 1px solid #FBD5C9; }
.price-amount { font-size: 16px; font-weight: 800; color: var(--primary); }

.cd-hero { border-radius: 12px; padding: 20px 22px; margin-bottom: 6px; }
.cd-hero.is-free { background: linear-gradient(135deg, #F0FDF4 0%, #F7FFFB 100%); border: 1px solid #D5EFE1; }
.cd-hero.is-paid { background: linear-gradient(135deg, #FFF7F3 0%, #FFFBF9 100%); border: 1px solid #F7DFD2; }
.cd-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.cd-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.cd-price-amount { font-size: 26px; font-weight: 800; color: #C2410C; }
.cd-price-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.cd-price-note { width: 100%; font-size: 12.5px; color: var(--text-muted); line-height: 1.7; }
.purchase-box { background: var(--bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.pb-label { font-size: 12.5px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.pb-note { font-size: 13px; color: var(--text-muted); line-height: 1.75; }

/* ============================================================================
   登录页：管理入口
   ============================================================================ */
.auth-notice {
  font-size: 13px; color: #0B6BCB; background: #EAF4FF; border: 1px solid #C9E2FB;
  border-radius: 10px; padding: 10px 13px; margin: 6px 0 16px; line-height: 1.7;
}
.admin-entry {
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.admin-entry a { font-size: 13.5px; font-weight: 700; color: var(--primary); }
.admin-entry span { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================================
   后台：当前登录身份 / 双语字段块
   ============================================================================ */
.admin-who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.bi-block { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 2px; margin-bottom: 14px; background: var(--bg); }
.bi-label { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.bi-block .form-row { gap: 14px; }

/* ============================================================
   OPC 社区专页
   ============================================================ */
.opc-page { padding-top: 0; }

.opc-hero {
  background: linear-gradient(150deg, #0F3460 0%, #143d73 55%, #1E90FF 140%);
  color: #fff; padding: 64px 0 52px; margin-bottom: 40px;
}
.opc-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 2px;
  padding: 4px 12px; border-radius: 999px; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28); margin-bottom: 14px;
}
.opc-hero h1 { font-size: 40px; letter-spacing: -1px; margin-bottom: 10px; }
.opc-tagline { font-size: 17px; opacity: .92; margin-bottom: 8px; }
.opc-lead { font-size: 15px; opacity: .8; max-width: 780px; line-height: 1.8; }
.opc-stats { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.opc-stat {
  flex: 1 1 180px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20);
  border-radius: 14px; padding: 16px 18px; backdrop-filter: blur(4px);
}
.opc-stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; }
.opc-stat .l { font-size: 13px; opacity: .82; margin-top: 2px; }

.opc-block { margin-bottom: 48px; }
.opc-block > h2 { font-size: 24px; letter-spacing: -0.5px; margin-bottom: 16px; }
.opc-text { font-size: 15.5px; line-height: 1.85; color: var(--text-muted); max-width: 860px; }

.opc-partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }
.opc-partner { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.opc-partner-cover {
  position: relative; height: 176px; background: linear-gradient(140deg, #0F3460, #1E90FF);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.opc-partner-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.opc-partner-icon { position: absolute; font-size: 34px; opacity: .9; }
.opc-partner-cover:not(.is-empty) .opc-partner-icon { display: none; }
.opc-partner-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.opc-partner-body h3 { font-size: 17.5px; letter-spacing: -0.3px; }
.opc-partner-host { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.opc-partner-body p { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.opc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.opc-tags .badge { font-size: 11.5px; }

.opc-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 18px; }
.opc-service { padding: 22px 20px; }
.opc-service h3 { font-size: 15.5px; margin: 10px 0 6px; }
.opc-service p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

.opc-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 14px; margin-top: 18px; }
.opc-photo { margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.opc-photo img { width: 100%; height: 190px; object-fit: cover; display: block; }
.opc-empty { font-size: 13.5px; color: var(--text-muted); padding: 14px 0; }

.opc-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  flex-wrap: wrap; padding: 28px 30px; margin-bottom: 24px;
}
.opc-cta h3 { font-size: 20px; margin-bottom: 6px; }
.opc-cta p { font-size: 14px; color: var(--text-muted); }
.opc-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .opc-hero { padding: 44px 0 36px; }
  .opc-hero h1 { font-size: 30px; }
  .opc-tagline { font-size: 15px; }
  .opc-block > h2 { font-size: 20px; }
  .opc-cta { padding: 22px 20px; }
  .opc-cta-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* OPC 合作卡「了解详情」提示 */
.opc-more { margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }
.opc-partner:hover .opc-more { text-decoration: underline; }
.opc-modal { animation: opcPop .18s ease-out; }
@keyframes opcPop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---- 表单操作区：统一按钮尺寸与间距 ---- */
.form-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border);
}
.form-actions .btn { min-width: 132px; }
.form-actions .btn-ghost { min-width: 108px; }
@media (max-width: 560px) {
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; min-width: 0; }
}

/* ---- 表单内上传/选择按钮：与输入框同高对齐 ---- */
.input-with-btn { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.input-with-btn .form-control { flex: 1 1 220px; min-width: 0; }
.input-with-btn .btn {
  flex: 0 0 auto; height: auto; min-width: 104px;
  padding: 10px 16px; font-size: 14px; border-radius: 10px;
}
@media (max-width: 560px) {
  .input-with-btn { flex-wrap: wrap; }
  .input-with-btn .form-control { flex: 1 1 100%; }
  .input-with-btn .btn { flex: 1 1 100%; }
}

/* ============================================================
   需求市场（Demand Market）
   ============================================================ */

/* 顶部操作条 */
.ch-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-login-hint { font-size: 13.5px; color: var(--text-muted); }

/* Hero：标题 + 操作按钮 + 一行轻量统计 */
/* 需求市场专用宽容器（比全站 1120px 更宽敞）：由路由在 body 上加 page-ch-wide */
body.page-ch-wide > main.container,
body.page-ch-wide #app.container { max-width: 1380px; }
.ch-wide { max-width: 1380px; }
.ch-hero { padding-bottom: 20px; text-align: left; }
.ch-hero-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.ch-hero-text h1 { margin-bottom: 10px; }
.ch-hero-text p { margin: 0; }
.ch-stats-row {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border);
}
.ch-stat { display: flex; align-items: baseline; gap: 7px; }
.ch-stat b { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: var(--primary); }
.ch-stat i { font-style: normal; font-size: 12.5px; color: var(--text-muted); }
.ch-stat-buy b { color: #1D6FD0; }
.ch-stat-sell b { color: #15803D; }
.ch-stat-sep { width: 1px; height: 16px; background: var(--border); }

/* 结果区标题 */
.ch-result-head { margin-top: 6px; margin-bottom: 16px; }
.ch-result-head h2 { font-size: 19px; }
.ch-result-total { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* 空态下的引导按钮 */
.ch-empty-cta { display: flex; justify-content: center; margin-top: 18px; }

/* 类型分段控件（唯一入口，替代旧「板块卡 + tab 栏」的重复设计） */
.ch-seg {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  padding: 5px; border-radius: 999px; background: var(--bg);
  border: 1px solid var(--border); margin-bottom: 20px;
}
.ch-seg-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border: none; border-radius: 999px;
  background: transparent; color: var(--text-muted);
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all 0.16s; white-space: nowrap;
}
.ch-seg-btn:hover { color: var(--text); }
.ch-seg-btn em {
  font-style: normal; font-size: 11.5px; font-weight: 800;
  padding: 1px 7px; border-radius: 999px;
  background: var(--surface); color: var(--text-muted);
}
.ch-seg-btn.active {
  background: var(--surface); color: var(--primary);
  box-shadow: 0 1px 4px rgba(15,23,42,.10);
}
.ch-seg-btn.seg-buy.active { color: #1D6FD0; }
.ch-seg-btn.seg-sell.active { color: #15803D; }
.ch-seg-hint {
  margin-left: auto; padding-right: 14px;
  font-size: 12.5px; color: var(--text-muted);
}

/* 卡片网格 */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.ch-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; text-decoration: none; color: inherit; transition: transform .18s, box-shadow .18s; }
.ch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ch-card-cover { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.ch-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s; }
.ch-card:hover .ch-card-cover img { transform: scale(1.05); }
.ch-card-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 16px 18px 0; }
.ch-card-title {
  font-size: 16.5px; font-weight: 700; line-height: 1.45; margin: 10px 18px 0;
  color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-card-excerpt {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.65; margin: 8px 18px 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-card .pc-meta { padding: 0 18px; margin-top: 10px; }
.ch-card-foot {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 12px 18px 16px; margin-top: auto;
  font-size: 12.5px; color: var(--text-muted); border-top: 1px solid var(--border); padding-top: 12px;
}
.ch-card-foot .dot { color: var(--border); }
.ch-views { margin-left: auto; white-space: nowrap; }

/* 类型徽标 */
.ch-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; line-height: 1.6;
}
.ch-badge.ch-buy { background: #EAF4FF; color: #1D6FD0; }
.ch-badge.ch-sell { background: #ECFDF3; color: #15803D; }

/* 详情页 */
.ch-detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ch-byline {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted); margin-bottom: 18px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.ch-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 18px 0 22px; }
.ch-images img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: zoom-in; }
.ch-contact {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px; padding: 12px 16px; border-radius: 10px;
  background: #EAF4FF; color: #1D6FD0; font-size: 14px; font-weight: 600;
}
.ch-contact a { color: inherit; text-decoration: underline; }

/* 发布表单：类型选择器 */
.ch-type-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ch-type-opt {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 10px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; text-align: center;
  font-size: 14px; font-weight: 600; color: var(--text-muted); transition: all 0.15s;
}
.ch-type-opt .ico { font-size: 22px; line-height: 1; }
.ch-type-opt:hover { border-color: var(--accent); }
.ch-type-opt.on { border-color: var(--accent); background: #EAF4FF; color: var(--accent); box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.12); }
.ch-type-opt input { display: none; }

/* 发布表单：图片列表 */
.ch-img-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ch-img-item { position: relative; width: 104px; height: 104px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.ch-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-img-item button {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0;
  border: none; border-radius: 50%; background: rgba(0, 0, 0, 0.6); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.ch-img-item button:hover { background: var(--danger); }

@media (max-width: 680px) {
  .ch-grid { grid-template-columns: 1fr; }
  .ch-type-picker { grid-template-columns: 1fr; }
  .ch-hero { padding-top: 36px; }
  .ch-hero-inner { flex-direction: column; }
  .ch-actions { width: 100%; }
  .ch-actions .btn { flex: 1 1 auto; justify-content: center; }
  .ch-stats-row { gap: 12px; }
  .ch-seg { border-radius: 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ch-seg::-webkit-scrollbar { display: none; }
  .ch-seg-btn { flex: 0 0 auto; justify-content: center; padding: 9px 12px; font-size: 13px; }
  .ch-seg-hint { display: none; }
  .ch-images img { height: 132px; }
}

/* ============================================================
   签证政策（Visa Policy）
   ============================================================ */

/* 复用的通用板块容器（签证块 / 结果块共用） */
.in-block { margin: 40px 0; }
.in-block:first-child { margin-top: 8px; }
.in-note { font-size: 12.5px; color: var(--text-muted); margin-top: 12px; line-height: 1.6; }
.in-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
  padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--border);
}
.in-meta a { color: var(--accent); }
.in-lead {
  font-size: 16px; line-height: 1.75; color: var(--text);
  padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0;
  background: #EAF4FF; margin-bottom: 22px;
}

/* ---------------- 查询面板 ---------------- */
.vs-panel { padding: 26px 28px; }
.vs-route-picker {
  display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap;
}
.vs-route-col { flex: 1 1 220px; min-width: 180px; }
.vs-route-label {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.3px; margin-bottom: 7px; text-transform: uppercase;
}
.vs-route-col .form-control { width: 100%; }
.vs-route-arrow {
  flex: 0 0 auto; align-self: flex-end; padding-bottom: 11px;
  font-size: 20px; color: var(--accent); font-weight: 700;
}
.vs-go { flex: 0 0 auto; padding: 11px 30px; }

/* 下拉数字含义提示 + 查询加载态 */
.vs-picker-hint {
  margin: 12px 0 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.6;
}
.vs-loading {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 48px 20px; color: var(--text-muted); font-size: 14px;
}
.vs-loading .spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid var(--border); border-top-color: var(--accent);
  animation: vs-spin 0.7s linear infinite;
}
@keyframes vs-spin { to { transform: rotate(360deg); } }

.vs-filters {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border);
}
.vs-filters .form-control { flex: 0 1 210px; min-width: 150px; }
.vs-filters .search-input { flex: 1 1 240px; }

/* 当前查询摘要 */
.vs-active-query {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 16px; font-size: 13px; color: var(--text-muted);
}
.vs-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: 999px;
  background: #EAF4FF; border: 1px solid #C9E2FB; color: #0B6BCB;
  font-size: 13px; font-weight: 500;
}
.vs-chip b { font-weight: 800; color: var(--primary); }

/* ---------------- 中国公民免签专区 ---------------- */
.vs-cn-block {
  padding: 24px 26px; border-radius: var(--radius);
  background: linear-gradient(160deg, #FFF8F8 0%, #FFFDFB 100%);
  border: 1px solid #FBD9D5; box-shadow: var(--shadow-sm);
}
.vs-cn-block .section-head h2 { font-size: 21px; }
.vs-cn-count { font-size: 13px; font-weight: 700; color: #C0392B; }
.vs-cn-group { margin-top: 16px; }
.vs-cn-group + .vs-cn-group { margin-top: 14px; }
.vs-cn-group-label {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 9px;
}
.vs-chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.vs-country-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: 999px;
  background: #fff; border: 1px solid #F0C9C4; color: var(--text);
  font-size: 13.5px; font-weight: 600; line-height: 1.4;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.vs-country-chip i {
  font-style: normal; font-size: 11.5px; font-weight: 700;
  color: #C0392B; background: #FDECEA; padding: 1px 7px; border-radius: 999px;
}
.vs-country-chip:hover {
  transform: translateY(-1px); border-color: #E59A92;
  box-shadow: 0 4px 12px rgba(192, 57, 43, 0.14);
}

/* ---------------- 结果网格 ---------------- */
.vs-total { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.vs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}

/* 政策卡片 */
.vc-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; color: inherit; }
.vc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vc-stay {
  margin-left: auto; font-size: 12px; font-weight: 700; color: var(--text-muted);
  background: var(--bg); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: 999px; white-space: nowrap;
}
.vc-route {
  font-size: 15.5px; font-weight: 700; color: var(--primary); line-height: 1.45;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.vc-route b { font-weight: 800; }
.vc-route i { font-style: normal; color: var(--accent); }
.vc-title { font-size: 15.5px; font-weight: 700; line-height: 1.45; letter-spacing: -0.2px; }
.vc-summary {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.vc-src { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-pending {
  flex: 0 0 auto; font-weight: 700; color: var(--warning);
  background: #FFF7E8; border: 1px solid #FDE3B0; padding: 2px 9px; border-radius: 999px;
}
.vc-verified { flex: 0 0 auto; font-weight: 700; color: var(--success); }
.vc-card:hover .vc-title { color: var(--accent); }

/* ---------------- 入境类型徽标 ---------------- */
.vt-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 1.5;
}
.vt-free { background: #ECFDF3; color: #15803D; border: 1px solid #BBF7D0; }
.vt-voa { background: #EAF4FF; color: #0B6BCB; border: 1px solid #C9E2FB; }
.vt-evisa { background: #F3EEFF; color: #6D28D9; border: 1px solid #DDD1FB; }
.vt-req { background: #FFF7E8; color: #B45309; border: 1px solid #FDE3B0; }
.vt-ban { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }

/* 详情：路线节点 */
.vs-detail-route {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); margin-bottom: 16px;
}
.vs-route-node { display: flex; flex-direction: column; gap: 2px; }
.vs-route-node small { font-size: 11.5px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.3px; }
.vs-route-node b { font-size: 18px; font-weight: 800; color: var(--primary); letter-spacing: -0.3px; }
.vs-route-sep { font-size: 18px; color: var(--accent); font-weight: 700; }
.vs-detail-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 待校验提示条 */
.vs-warn {
  font-size: 13px; line-height: 1.65; color: #92400E;
  background: #FFFBEB; border: 1px solid #FDE68A; border-left: 3px solid var(--warning);
  border-radius: 0 8px 8px 0; padding: 12px 16px; margin-bottom: 20px;
}

/* 免责声明 */
.vs-disclaimer {
  font-size: 12.5px; line-height: 1.7; color: var(--text-muted);
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 14px 18px; margin-top: 28px;
}

/* ---------------- 首页签证入口卡片 ---------------- */
.vs-home-panel { padding: 24px 26px; }
.vs-home-lead { font-size: 14.5px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.vs-home-stat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--primary);
  background: #EAF4FF; border: 1px solid #C9E2FB; padding: 4px 12px; border-radius: 999px;
}
.vs-home-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.vs-home-chips {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px dashed var(--border);
}
.vs-home-chips-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-right: 2px; }
.vs-home-chips .vs-country-chip { font-size: 12.5px; padding: 4px 11px; }
.vs-home-chips .vs-chip-more {
  font-size: 12.5px; font-weight: 700; color: var(--accent); cursor: pointer;
  padding: 4px 6px; background: none; border: none;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 680px) {
  .vs-panel { padding: 18px 16px; }
  .vs-route-picker { flex-direction: column; align-items: stretch; gap: 12px; }
  /* 关键：父容器变纵向后，子项的 flex-basis 220px 会变成 220px 高度，撑出大段空白 */
  .vs-route-col { flex: 0 0 auto; min-width: 0; }
  .vs-route-arrow { align-self: center; padding: 0; transform: rotate(90deg); }
  .vs-go { width: 100%; }
  .vs-filters { flex-direction: column; align-items: stretch; }
  .vs-filters .form-control, .vs-filters .search-input { flex: 1 1 auto; width: 100%; }
  .vs-cn-block { padding: 18px 16px; }
  .vs-grid { grid-template-columns: 1fr; }
  .vc-stay { margin-left: 0; }
  .vs-detail-route { gap: 10px; padding: 14px 16px; }
  .vs-route-node b { font-size: 16px; }
  .vs-home-panel { padding: 18px 16px; }
  .vs-home-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ============================================================
   社交互动（关注 / 点赞 / 评论）
   ============================================================ */

/* ---- 用户主页：社交统计条 + 关注按钮 ---- */
.profile-head { position: relative; }
.p-actions { margin-left: auto; align-self: center; flex: 0 0 auto; }
.sc-follow-btn { min-width: 108px; justify-content: center; }
.up-social-bar {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
}
.usb-item { display: flex; align-items: baseline; gap: 6px; }
.usb-item b { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; color: var(--primary); }
.usb-item i { font-style: normal; font-size: 12.5px; color: var(--text-muted); }
.usb-influence b { color: var(--accent); }
.usb-influence { cursor: help; }
/* 用户主页 hero 为深色底，统计条文字需提亮 */
.profile-head .usb-item b { color: #fff; }
.profile-head .usb-item i { color: rgba(255,255,255,.75); }
.profile-head .usb-influence b { color: #FFD166; }
.profile-head .up-social-bar { border-top-color: rgba(255,255,255,.22); }
.profile-head .p-actions .btn-primary { background: #fff; color: var(--primary); }
.profile-head .p-actions .btn-primary:hover { background: #EDF3FB; }
.profile-head .p-actions .btn-ghost { color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.45); }

/* ---- 内容页操作条（点赞 / 评论计数） ---- */
.content-acts {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border);
}
.like-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 14px; font-weight: 700; font-family: inherit; color: var(--text-muted);
  cursor: pointer; transition: all 0.16s;
}
.like-btn:hover { border-color: #F5A0B4; color: #E0446B; transform: translateY(-1px); }
.like-btn.on { border-color: #F5A0B4; background: #FFF0F4; color: #E0446B; }
.like-btn:disabled { opacity: .6; cursor: default; transform: none; }
.like-btn .lb-ico { font-size: 15px; line-height: 1; }
.ca-stat { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.ca-stat b { color: var(--text); font-weight: 800; }

/* ---- 评论区 ---- */
.cm-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 28px;
}
.cm-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 18px;
}
.cm-head h3 { font-size: 17px; letter-spacing: -0.3px; }
.cm-count { font-size: 12.5px; color: var(--text-muted); font-weight: 600; }

.cm-compose { margin-bottom: 22px; }
.cm-compose-row { display: flex; gap: 12px; align-items: flex-start; }
.cm-compose-row .avatar { flex: 0 0 auto; }
.cm-input {
  flex: 1; resize: vertical; min-height: 62px;
  font-family: inherit; font-size: 14px; line-height: 1.6;
}
.cm-compose-act {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; margin-top: 10px;
}
.cm-replying {
  margin-right: auto; font-size: 12.5px; color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.cm-cancel-reply {
  border: none; background: var(--bg); color: var(--text-muted);
  width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  font-size: 11px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.cm-login-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 12px;
  background: var(--bg); border: 1px dashed var(--border);
  font-size: 14px; color: var(--text-muted);
}

.cm-list { display: flex; flex-direction: column; gap: 4px; }
.cm-loading { display: flex; justify-content: center; padding: 24px; }
.cm-loading .spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid var(--border); border-top-color: var(--accent);
  animation: vs-spin 0.7s linear infinite;
}
.cm-empty { text-align: center; color: var(--text-muted); font-size: 13.5px; padding: 24px 0; }

.cm-item { display: flex; gap: 12px; padding: 15px 0; }
.cm-item + .cm-item { border-top: 1px solid var(--border); }
.cm-avatar { flex: 0 0 auto; text-decoration: none; }
.cm-main { flex: 1; min-width: 0; }
.cm-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px;
}
.cm-name { font-size: 14px; font-weight: 700; color: var(--text); text-decoration: none; }
.cm-name:hover { color: var(--accent); }
.cm-time { font-size: 12px; color: var(--text-muted); }
.cm-body { font-size: 14px; line-height: 1.72; color: var(--text); word-break: break-word; }
.cm-acts { display: flex; gap: 14px; margin-top: 7px; }
.cm-reply, .cm-del {
  border: none; background: none; padding: 0; cursor: pointer;
  font-size: 12.5px; font-weight: 600; font-family: inherit; color: var(--text-muted);
}
.cm-reply:hover { color: var(--accent); }
.cm-del:hover { color: var(--danger); }
.cm-replies {
  margin-left: 44px; padding-left: 14px; border-left: 2px solid var(--border);
}
.cm-replies .cm-item { padding: 12px 0; }
.cm-replies .cm-item:first-child { padding-top: 8px; }

@media (max-width: 680px) {
  .cm-section { padding: 20px 18px; }
  .cm-replies { margin-left: 20px; padding-left: 10px; }
  .p-actions { width: 100%; margin-top: 14px; }
  .sc-follow-btn { width: 100%; }
  .up-social-bar { gap: 16px; }
}

/* ============================================================
   OPC 申请表单 v2（必填问题分组 + 引导语）
   ============================================================ */
.form-lead {
  margin-top: 18px; padding: 14px 18px; border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  font-size: 13.5px; line-height: 1.75; color: var(--text-muted);
}
.form-sec-title {
  margin: 26px 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  font-size: 15px; font-weight: 700; color: var(--text);
}
.form-sec-title:first-child { margin-top: 0; }

/* ============================================================
   页脚微信矩阵二维码（客服 / 公众号 / 视频号）
   ============================================================ */
.footer-qr-row { display: flex; gap: 20px; margin-top: 18px; }
.footer-qr { text-align: center; cursor: pointer; border: none; background: none; padding: 0; font: inherit; }
.footer-qr img {
  width: 76px; height: 76px; border-radius: 10px; background: #fff; object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.25); transition: transform 0.15s, border-color 0.15s; display: block;
}
.footer-qr:hover img { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.55); }
.footer-qr span { display: block; margin-top: 7px; font-size: 11.5px; color: rgba(255, 255, 255, 0.78); white-space: nowrap; }

/* ============================================================
   关于我们 — 品牌故事
   ============================================================ */
.brand-story {
  margin: 40px 0 8px; padding: 30px 34px 34px; border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 5%, transparent), transparent 70%);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}
.brand-story h2 { margin-top: 0; }
.brand-story p { margin-bottom: 14px; }
.brand-story p:last-of-type { margin-bottom: 0; }
.brand-story-quote {
  margin: 22px 0 0; padding: 16px 0 2px; border-top: 1px solid var(--border);
  font-size: 17px; font-weight: 700; color: var(--primary); letter-spacing: 0.2px;
}
@media (max-width: 640px) {
  .brand-story { padding: 22px 20px 24px; margin-top: 30px; }
  .brand-story-quote { font-size: 15.5px; }
}

/* ============================================================
   V1.5 关系层：连接 + 私信（M1）
   ============================================================ */
.conn-line { font-size: 13.5px; margin-bottom: 8px; line-height: 1.6; }
.conn-line strong { color: var(--text); }

/* ---- 活动同场参与者 ---- */
.att-list { display: flex; flex-direction: column; gap: 6px; }
.att-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
}
.att-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.att-name { font-weight: 600; font-size: 14px; color: var(--text); text-decoration: none; }
.att-name:hover { color: var(--accent); }
.att-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- 私信布局 ---- */
.msg-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; min-height: 560px; }
.msg-side { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.msg-side-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.msg-side-head h3 { margin: 0; font-size: 16px; }
.msg-conv-list { flex: 1; overflow-y: auto; }
.msg-conv { display: flex; gap: 12px; padding: 13px 16px; text-decoration: none; border-bottom: 1px solid var(--border); align-items: center; }
.msg-conv:hover { background: var(--bg); }
.msg-conv.active { background: color-mix(in srgb, var(--accent) 8%, transparent); border-left: 3px solid var(--accent); padding-left: 13px; }
.msg-conv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-conv-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.msg-conv-name { font-weight: 600; font-size: 14px; color: var(--text); }
.msg-conv-time { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }
.msg-conv-last { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-conv-empty { padding: 40px 20px; text-align: center; font-size: 13px; color: var(--text-muted); }

.msg-chat { display: flex; flex-direction: column; overflow: hidden; }
.msg-empty { margin: auto; text-align: center; color: var(--text-muted); padding: 40px; }
.msg-empty .icon { font-size: 40px; margin-bottom: 10px; }
.msg-empty h3 { color: var(--text); margin-bottom: 6px; }
.msg-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.msg-chat-peer { display: flex; flex-direction: column; }
.msg-chat-peer a { font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.msg-chat-peer span { font-size: 12px; color: var(--text-muted); }
.msg-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.msg-item { display: flex; flex-direction: column; max-width: 72%; }
.msg-item.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6;
  background: var(--surface); border: 1px solid var(--border); word-break: break-word;
}
.msg-item.mine .msg-bubble { background: var(--primary); color: #fff; border-color: var(--primary); }
.msg-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
.msg-none { margin: auto; color: var(--text-muted); font-size: 13.5px; }
.msg-input-row { display: flex; gap: 10px; padding: 14px 18px; border-top: 1px solid var(--border); align-items: flex-end; }
.msg-input-row textarea { flex: 1; resize: none; min-height: 42px; }

@media (max-width: 860px) {
  .msg-layout { grid-template-columns: 1fr; min-height: auto; }
  .msg-side { max-height: 320px; }
  .msg-chat { min-height: 480px; }
}

/* ============================================================
   主导航：企业服务下拉（桌面悬停 / 移动端手风琴）
   ============================================================ */
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--text-muted); white-space: nowrap; transition: color 0.15s;
}
.nav-drop:hover .nav-drop-btn, .nav-drop.open .nav-drop-btn, .nav-drop.active .nav-drop-btn { color: var(--primary); }
.nav-drop .caret {
  width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); transition: transform 0.18s;
}
.nav-drop.open .caret, .nav-drop:hover .caret { transform: rotate(-135deg); margin-top: 2px; }

.nav-drop-menu {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px);
  min-width: 320px; padding: 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
  z-index: 120;
}
/* 悬停桥接：避免鼠标从按钮移动到菜单的间隙菜单消失 */
.nav-drop-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-drop-menu a {
  display: flex; flex-direction: column; gap: 3px; padding: 11px 14px; border-radius: 10px;
  text-decoration: none; transition: background 0.14s;
}
.nav-drop-menu a:hover { background: var(--bg); }
.ndm-title { font-size: 14.5px; font-weight: 600; color: var(--text); }
.nav-drop-menu a:hover .ndm-title { color: var(--primary); }
.ndm-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.45; }
.nav-drop-menu .ndm-all {
  margin-top: 4px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px;
  font-size: 13px; font-weight: 600; color: var(--accent); flex-direction: row; align-items: center;
}

@media (max-width: 920px) {
  /* 移动端：下拉改为内联手风琴，与其它导航项同一视觉层级 */
  .nav-drop { display: block; }
  .nav-drop-btn { width: 100%; justify-content: space-between; padding: 11px 4px; font-size: 15.5px; }
  .nav-drop .caret { margin-right: 4px; }
  .nav-drop-menu {
    position: static; transform: none; min-width: 0; width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    border: none; box-shadow: none; background: var(--bg); border-radius: 10px;
    padding: 4px 6px; margin: 0 0 6px; display: none;
  }
  .nav-drop-menu::before { display: none; }
  .nav-drop.open .nav-drop-menu { display: block; transform: none; }
  .nav-drop-menu a { padding: 9px 12px; }
  .ndm-title { font-size: 14.5px; }
  .ndm-desc { font-size: 12px; }
  .nav-drop-menu .ndm-all { border-top: none; margin-top: 0; }
}

/* ============================================================
   企业服务页
   ============================================================ */
.es-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.es-nav a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px;
  font-size: 13.5px; font-weight: 500; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; transition: 0.15s;
}
.es-nav a:hover { color: var(--primary); border-color: var(--primary); background: var(--bg); }

.es-block { margin-bottom: 34px; scroll-margin-top: 84px; }
.es-block-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.es-ico {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 21px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.es-block-head h2 { margin: 0 0 4px; font-size: 21px; }
.es-block-head p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.es-card { padding: 24px 26px; }
.es-sub { font-size: 15px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.es-sub:first-child { margin-top: 0; }
.es-list { list-style: none; display: grid; gap: 8px; }
.es-list li {
  position: relative; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--text);
}
.es-list li::before {
  content: ''; position: absolute; left: 3px; top: 10px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
}
.es-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.es-table th, .es-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.es-table th { font-size: 12.5px; font-weight: 700; color: var(--text-muted); background: var(--bg); white-space: nowrap; }
.es-table td:first-child { font-weight: 600; white-space: nowrap; }
.es-table tr:last-child td { border-bottom: none; }
.es-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 10px; }
/* 容器窄于 620px 时表格保持可读宽度、横向滚动，而不是把单元格挤成竖排 */
.es-scroll .es-table { min-width: 620px; }

.es-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 18px; padding: 18px 20px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent);
  border: 1px solid var(--border); border-left: 3px solid var(--primary);
}
.es-cta p { margin: 0; font-size: 13.5px; color: var(--text-muted); }
.es-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .es-card { padding: 18px; }
  .es-block-head h2 { font-size: 19px; }
  .es-cta { flex-direction: column; align-items: stretch; }
  .es-cta-actions .btn { flex: 1; justify-content: center; }
  /* 锚点胶囊一行横滑，避免折成三行 */
  .es-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .es-nav::-webkit-scrollbar { display: none; }
  .es-nav a { flex: 0 0 auto; }
}

/* 企业服务：重点能力列表（GEO / 达人合作 / 活动落地）用左侧强调条区分 */
.es-list-accent li::before {
  content: ''; position: absolute; left: 2px; top: 7px; bottom: 7px; width: 3px;
  border-radius: 2px; background: var(--primary);
}
.es-list-accent li { padding-left: 22px; }
