/* ==========================================================================
   德州OPC供需协作平台 — 视觉系统
   UI 重构 2026-11：对齐 Nanobytech 设计方案（#3A70C8 钢蓝主色 / 深色 Banner /
   浅蓝 #E8F1FA 交替底 / 深海军蓝对比卡 #021533 / 纯黑页脚 / 圆形图标底 / 胶囊按钮）
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
  /* 主色系：Nanobytech 钢蓝 */
  --blue-50: #e8f1fa;
  --blue-100: #d5e5f6;
  --blue-200: #b9d2ef;
  --blue-300: #93b8e6;
  --blue-400: #5b8ee6;
  --blue-500: #4581e2;
  --blue-600: #3a70c8;
  --blue-700: #1d47cf;
  /* 深色资产：深海军蓝对比卡 / 纯黑页脚 / 近黑 Banner */
  --navy: #021533;
  --navy-2: #0a224a;
  --footer-bg: #000000;
  --banner: #0a0a0a;
  /* 中性色：模板正文为近黑灰阶 */
  --ink: #111111;
  --slate-700: #1c1c1c;
  --slate-600: #3d3d3d;
  --muted: #61697a;
  --line: #e4e9f1;
  --line-strong: #d3dceb;
  --bg: #f3f7fb;
  --amber: #f59e0b;
  --green: #10b981;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 16px 36px -18px rgba(29, 71, 207, .30);
  --shadow-lg: 0 30px 70px -30px rgba(2, 21, 51, .55);
  --font: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }

/* 头部登录区：渲染就绪前隐藏（含占位宽度），避免加载期裸文字闪现与按钮位移；
   HTML/内联脚本渲染时自带内联 visibility:hidden，CSS 到达后由 !important 接管显示 */
#auth-slot:not(.ready) { visibility: hidden; min-width: 106px; }
#auth-slot.ready { visibility: visible !important; }

/* overflow-y:scroll 固定 html 为 viewport 滚动容器：
   1) 弹窗打开时 body.lock(overflow:hidden) 不再转移滚动条、宽度恒定；
   2) scrollbar-gutter:stable 为占宽滚动条环境预留固定槽位 */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; overflow-y: scroll; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.7;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .75);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; flex-wrap: nowrap; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--blue-600);
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -8px rgba(29, 71, 207, .8);
}
.brand-mark svg { width: 21px; height: 21px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 16px; color: var(--ink); letter-spacing: -.02em; }
.brand-text span { font-size: 10px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 11px; border-radius: 999px; font-size: 13.5px; color: var(--slate-600);
  font-weight: 500; transition: background .18s, color .18s; white-space: nowrap;
  flex: none; display: inline-flex; align-items: center;
}
.nav-links a:hover { color: var(--blue-700); background: var(--blue-50); }
.nav-links a.active { color: var(--blue-700); background: var(--blue-50); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-actions #auth-slot { display: inline-flex; align-items: center; }
.nav-actions #auth-slot .btn { white-space: nowrap; }

.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; align-items: center; justify-content: center; color: var(--slate-700);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: transform .16s, box-shadow .16s, background .16s, color .16s, border-color .16s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--blue-600);
  color: #fff; box-shadow: 0 10px 22px -10px rgba(29, 71, 207, .75);
}
.btn-primary:hover { background: var(--blue-500); box-shadow: 0 16px 30px -12px rgba(29, 71, 207, .85); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--slate-700); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue-200); color: var(--blue-700); background: var(--blue-50); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15.5px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- 通用区块 ---------- */
.section { padding: 76px 0; }
.section.tight { padding: 52px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700;
  color: var(--blue-600); background: transparent; border: 0;
  padding: 0; border-radius: 0; margin-bottom: 12px;
  text-transform: uppercase; letter-spacing: .18em;
}
.section-head h2 { font-size: 32px; letter-spacing: -.02em; }
.section-head p.lead { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 620px; }
.link-more { color: var(--blue-700); font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.link-more:hover { gap: 10px; }

/* ---------- 首屏：深色 Banner（Nanobytech 风格） ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(860px 480px at 84% -8%, rgba(29, 71, 207, .34) 0%, rgba(29, 71, 207, 0) 62%),
    radial-gradient(600px 380px at 4% 108%, rgba(58, 112, 200, .22) 0%, rgba(58, 112, 200, 0) 58%),
    linear-gradient(170deg, var(--banner) 0%, var(--navy) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 48px; padding: 72px 0 64px;
}
.hero h1 { font-size: 52px; line-height: 1.16; letter-spacing: -.03em; color: #fff; }
.hero h1 .grad {
  background: linear-gradient(120deg, #7fbbdd 0%, #5b8ee6 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 22px; font-size: 16.5px; color: rgba(255, 255, 255, .74); max-width: 520px; }
.hero-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .42); color: #fff; }
.hero-note { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: rgba(255, 255, 255, .55); font-size: 13px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--blue-400); display: inline-block;
}
/* 深色 banner 下首屏 eyebrow 覆盖内联浅色样式 */
.hero .eyebrow {
  color: #9dc3f5 !important; background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  padding: 6px 14px !important; border-radius: 999px !important;
  text-transform: none !important; letter-spacing: .02em !important;
  backdrop-filter: blur(4px);
}
.hero .eyebrow i { background: var(--blue-400) !important; }
/* 首屏视觉容器已移除（模板 Banner 结构），浮动卡样式随之废弃 */
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- 数据条 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 26px 0 0;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 34px; line-height: 1.1; color: var(--ink); letter-spacing: -.03em; font-weight: 700; }
.stat b em { font-style: normal; font-size: 18px; color: var(--blue-600); margin-left: 2px; }
.stat span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- 卡片 ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; height: 100%;
}
.card > .tag { align-self: flex-start; }
.card:hover { transform: translateY(-3px); border-color: var(--blue-200); box-shadow: var(--shadow); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--blue-700); background: var(--blue-50);
  border: 1px solid var(--blue-100); white-space: nowrap;
}
.tag.gray { color: var(--slate-600); background: #f6f8fc; border-color: #e8edf6; }
.tag.green { color: #047857; background: #ecfdf5; border-color: #d1fae5; }
.tag.amber { color: #b45309; background: #fffbeb; border-color: #fef3c7; }

.meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12.5px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* 任务卡：标题/描述/标签预留固定高度，底栏钉底，虚线横线逐行对齐 */
.task-card h3 {
  font-size: 17px; line-height: 1.4; margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 47.6px;
}
.task-card .desc {
  color: var(--slate-600); font-size: 13.8px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 44.2px;
}
.task-card .chips {
  margin-top: 14px; min-height: 26px; max-height: 26px;
  display: flex; flex-wrap: nowrap; overflow: hidden; gap: 8px;
}
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.task-card .card-foot { margin-top: auto; }
.card-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.task-card .card-foot > div { min-width: 0; }
.task-card .card-foot .meta { margin-top: 5px; gap: 12px; }
/* 平台在招需求区与全部任务区之间留出与卡片间距一致的空隙 */
#real-demands { margin-bottom: 36px; }
.price { font-size: 18px; font-weight: 700; color: var(--blue-700); letter-spacing: -.02em; }
.price small { font-size: 12px; color: var(--muted); font-weight: 500; margin-left: 2px; }

/* OPC 卡 */
.opc-card { align-items: flex-start; min-width: 0; }
.card { min-width: 0; }
.card h3, .card p, .card-desc { overflow-wrap: anywhere; }
.avatar {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center;
  font-size: 19px; font-weight: 700; color: #fff; flex: none;
  background: var(--blue-600);
  box-shadow: 0 10px 20px -12px rgba(29, 71, 207, .9);
}
.opc-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; width: 100%; min-width: 0; flex-wrap: wrap; }
.opc-head > div { min-width: 0; }
.opc-head b { overflow-wrap: anywhere; }
.opc-head b { font-size: 16.5px; color: var(--ink); display: block; }
.opc-head span { font-size: 12.5px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.opc-stats { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); width: 100%; }
.opc-stats div { font-size: 12px; color: var(--muted); }
.opc-stats b { display: block; font-size: 17px; color: var(--ink); letter-spacing: -.02em; }

/* 企业卡 */
.ent-card { padding: 22px; }
.ent-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.ent-logo {
  width: 46px; height: 46px; border-radius: 14px; background: #f2f7ff; border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 700; color: var(--blue-700); font-size: 15px; flex: none;
}
.ent-row { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #eef3fb; }
.ent-row:last-child { border-bottom: 0; }
.ent-row span { color: var(--muted); }
.ent-row b { color: var(--slate-700); font-weight: 600; }

/* 八步流程 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: .2s;
}
.step:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-2px); }
.step .num {
  position: absolute; top: 16px; right: 18px; font-size: 12px; font-weight: 700;
  color: var(--blue-200); letter-spacing: .04em;
}
.step .ic {
  width: 52px; height: 52px; border-radius: 50%; background: var(--blue-50);
  display: grid; place-items: center; margin-bottom: 14px;
  border: 1px solid var(--blue-100); box-shadow: 0 6px 14px -8px rgba(29, 71, 207, .45);
}
.step .ic img { width: 34px; height: 34px; }
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 12.8px; color: var(--muted); line-height: 1.6; }

/* 撮合卡 */
.match-card { padding: 22px; }
.match-path { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--slate-600); }
.match-path .dot { width: 22px; height: 22px; border-radius: 8px; background: #f2f7ff; display: grid; place-items: center; font-size: 11px; color: var(--blue-700); }
.match-path .arrow { color: var(--blue-300, #93c5fd); font-size: 15px; }
.match-amount { font-size: 16px; font-weight: 700; color: var(--ink); }

/* 页面头 */
.page-head {
  padding: 46px 0 8px;
  background:
    radial-gradient(760px 300px at 12% 0%, var(--blue-50) 0%, rgba(232, 241, 250, 0) 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
}
.page-head h1 { font-size: 36px; letter-spacing: -.03em; }
.page-head p { margin-top: 12px; color: var(--slate-600); max-width: 660px; font-size: 15px; }
.page-head .head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* 筛选 */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 26px 0 22px; }
.chip {
  height: 34px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--slate-600); font-size: 13.5px; cursor: pointer; transition: .16s;
}
.chip:hover { border-color: var(--blue-200); color: var(--blue-700); }
.chip.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: 0 8px 18px -10px rgba(29, 71, 207, .75); }
.search {
  margin-left: auto; display: flex; align-items: center; gap: 8px; background: #fff;
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 0 14px; height: 38px;
}
.search input { border: 0; outline: 0; font: inherit; font-size: 13.5px; width: 180px; color: var(--ink); background: transparent; }
.search svg { color: var(--muted); flex: none; }

.result-count { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); font-size: 14px; }

/* CTA 横幅 */
.cta-band {
  position: relative; overflow: hidden; border-radius: 20px; padding: 52px 48px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--blue-700) 130%);
  color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 32px;
  box-shadow: 0 40px 80px -40px rgba(2, 21, 51, .85);
}
.cta-band h2 { color: #fff; font-size: 30px; letter-spacing: -.02em; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-top: 10px; font-size: 14.5px; max-width: 520px; }
.cta-band .btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--blue-700); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); }
.cta-glow {
  position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 65%);
}

/* 合作机构 */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.partner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-sm);
}
.partner .plogo {
  width: 44px; height: 44px; border-radius: 13px; background: #f2f7ff; display: grid; place-items: center;
  font-weight: 700; color: var(--blue-700); font-size: 15px; flex: none; border: 1px solid var(--line);
}
.partner b { display: block; font-size: 14.5px; color: var(--ink); }
.partner span { font-size: 12.5px; color: var(--muted); }

/* footer 内合作机构（纯文字列表，与 foot-col 链接列表一致） */
.foot-col .partner-list span {
  display: block; font-size: 13.5px; color: rgba(255, 255, 255, .62); padding: 5px 0; cursor: default;
}

/* 关于页 */
.about-lead {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 36px; box-shadow: var(--shadow-sm); font-size: 16px; color: var(--slate-700);
}
.about-lead strong { color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.principle { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.principle .pnum { font-size: 12px; font-weight: 700; color: var(--blue-300, #93c5fd); letter-spacing: .08em; }
.principle h3 { font-size: 17px; margin: 10px 0 10px; }
.principle p { font-size: 13.8px; color: var(--muted); }
.info-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-row { display: flex; gap: 20px; padding: 18px 24px; border-bottom: 1px solid #f1f5fc; font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-row dt { width: 96px; flex: none; color: var(--muted); }
.info-row dd { margin: 0; color: var(--ink); }

/* 页脚：纯黑（Nanobytech 风格） */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .68); border-top: 0; margin-top: 84px; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 36px; }
.foot-brand p { color: rgba(255, 255, 255, .52); font-size: 13.5px; margin-top: 16px; max-width: 320px; }
.foot-col h4 { font-size: 13.5px; color: #fff; margin-bottom: 14px; letter-spacing: .01em; }
.foot-col a, .foot-col span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .62); padding: 5px 0; }
.foot-col a:hover { color: #9dc3f5; }
.foot-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 26px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: rgba(255, 255, 255, .45); font-size: 12.5px;
}
/* 页脚信息列：流程序号与底部法务链接 */
.foot-col > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foot-col span b { color: #fff; font-weight: 600; font-size: 12px; margin-right: 8px; opacity: .85; }
.foot-legal { display: inline-flex; gap: 16px; align-items: center; }
.foot-legal a { color: rgba(255, 255, 255, .55); }
.foot-legal a:hover { color: #9dc3f5; }

/* 动效 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2, .7, .3, 1), transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; left: 16px; right: 16px; top: 74px;
    max-height: calc(100vh - 90px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 10px; flex-direction: column; align-items: stretch;
    box-shadow: 0 30px 60px -30px rgba(15, 23, 42, .35);
  }
  .nav-links.open a { padding: 12px 14px; border-radius: 10px; }
  .hero h1 { font-size: 42px; }
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .partners, .principles { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 40px 0 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head h2 { font-size: 26px; }
  .page-head .head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero h1 { font-size: 34px; }
  .grid-3, .grid-2, .grid-4, .steps, .partners, .principles, .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .cta-band h2 { font-size: 24px; }
}

/* ==========================================================================
   交互层：弹窗 / 抽屉 / 提示 / 表单 / 详情 / 账户
   ========================================================================== */

body.lock { overflow: hidden; }

.card[data-open-task], .card[data-open-opc], .card[data-open-ent], .card[data-open-match] { cursor: pointer; }
.card:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 3px; }

.card-tools { display: inline-flex; align-items: center; gap: 8px; }

.fav-btn {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line);
  background: #fff; color: #9aa9bd; display: inline-grid; place-items: center;
  cursor: pointer; transition: .16s; flex: none; padding: 0;
}
.fav-btn:hover { color: var(--blue-600); border-color: var(--blue-200); background: var(--blue-50); }
.fav-btn.on { color: #f59e0b; border-color: #fde68a; background: #fffbeb; }

.avail { font-size: 11.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.avail::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #cbd5e1; }
.avail.on { color: #047857; }
.avail.on::before { background: #10b981; }

/* ---------- 遮罩与面板 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 20, 40, .42); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s ease;
}
.overlay.open { opacity: 1; }
.overlay[hidden] { display: none; }

.sheet {
  background: #fff; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); box-shadow: 0 40px 90px -30px rgba(2, 12, 32, .55);
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px);
  transform: translateY(12px) scale(.985); opacity: .6;
  transition: transform .22s cubic-bezier(.2, .7, .3, 1), opacity .22s;
}
.overlay.open .sheet { transform: none; opacity: 1; }
.sheet-sm { width: min(440px, calc(100vw - 32px)); }
.sheet-md { width: min(640px, calc(100vw - 32px)); }

.sheet-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; left: auto;
  width: min(560px, 100vw); max-height: none; border-radius: 22px 0 0 22px;
  transform: translateX(28px); opacity: 1;
}
.overlay.open .sheet-drawer { transform: none; }

.sheet-head {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line); background: #fff;
}
.sheet-title { flex: 1; min-width: 0; }
.sheet-title .eyebrow {
  display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 999px;
  padding: 3px 10px; margin-bottom: 8px; letter-spacing: .02em;
}
.sheet-title h3 { font-size: 18px; line-height: 1.45; letter-spacing: -.01em; }
.sheet-body { padding: 20px 22px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-foot {
  display: flex; gap: 10px; justify-content: flex-end; align-items: center;
  padding: 14px 22px; border-top: 1px solid var(--line); background: #fbfdff;
}
.sheet-foot .btn[data-fav] { margin-right: auto; }

.icon-btn {
  width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--slate-600); display: grid; place-items: center; cursor: pointer; transition: .16s;
}
.icon-btn:hover { background: #f6f8fc; color: var(--ink); border-color: var(--line-strong); }

/* ---------- 提示 ---------- */
.toast-host {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: 8px; max-width: min(90vw, 420px);
  background: rgba(11, 18, 32, .94); color: #fff; font-size: 13.5px; line-height: 1.5;
  padding: 10px 16px; border-radius: 999px; box-shadow: 0 18px 40px -18px rgba(2, 12, 32, .8);
  opacity: 0; transform: translateY(8px) scale(.98); transition: .22s cubic-bezier(.2, .7, .3, 1);
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 7px; height: 7px; border-radius: 50%; background: #93c5fd; flex: none; }
.toast-success .toast-dot { background: #34d399; }
.toast-error .toast-dot { background: #f87171; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 10px 13px; outline: 0; transition: border-color .16s, box-shadow .16s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.6; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(69, 129, 226, .18);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #fca5a5; }
.field.invalid input:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(248, 113, 113, .15); }
.field-err { font-size: 12px; color: #dc2626; min-height: 16px; line-height: 16px; padding-top: 4px; }
.field-inline { display: flex; gap: 8px; }
.field-inline input { flex: 1; }
.field-inline .btn { flex: none; height: 40px; }

.check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); cursor: pointer; margin: 4px 0 14px; }
.check input { margin-top: 3px; accent-color: var(--blue-600); }

.btn-block { width: 100%; }
.btn-danger { background: #fff; color: #dc2626; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; border-color: #fca5a5; }
.form-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }

.tabs { display: flex; gap: 6px; background: #f4f7fc; padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.tab {
  flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent;
  font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer; transition: .16s;
}
.tab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- 详情 ---------- */
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-lead { font-size: 15px; color: var(--slate-700); line-height: 1.75; }
.detail-h { font-size: 13.5px; color: var(--ink); margin: 22px 0 8px; letter-spacing: .01em; }
.detail-p { font-size: 13.8px; color: var(--slate-600); line-height: 1.8; }
.detail-list { margin: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid #eef3fb; }
.detail-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef3fb; font-size: 13px; }
.detail-list > div:nth-child(odd) { padding-right: 18px; }
.detail-list > div:nth-child(even) { padding-left: 18px; border-left: 1px solid #eef3fb; }
.detail-list dt { color: var(--muted); flex: none; }
.detail-list dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.detail-ul { margin: 0; padding: 0; list-style: none; }
.detail-ul li { position: relative; padding: 5px 0 5px 18px; font-size: 13.8px; color: var(--slate-600); }
.detail-ul li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-200); }
.detail-note {
  margin-top: 20px; padding: 12px 14px; border-radius: 12px; background: var(--blue-50);
  border: 1px solid var(--blue-100); font-size: 12.5px; color: var(--muted); line-height: 1.7;
}
.opc-hero { display: flex; gap: 16px; align-items: flex-start; }
.opc-hero h4 { font-size: 19px; }
.opc-hero p { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.avatar.lg { width: 64px; height: 64px; border-radius: 18px; font-size: 22px; }
.review { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fcfdff; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review-head b { font-size: 13px; color: var(--ink); }
.review p { font-size: 13.2px; color: var(--slate-600); line-height: 1.7; }
.stars { font-size: 12px; color: #f59e0b; letter-spacing: 1px; }
.stars i { color: #e2e8f0; font-style: normal; }

/* ---------- 账户 ---------- */
.user-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; cursor: pointer; transition: .16s;
}
.user-btn:hover { border-color: var(--blue-200); background: var(--blue-50); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--blue-500), var(--blue-700)); color: #fff;
  font-size: 12.5px; font-weight: 700; flex: none;
}
.user-avatar.lg { width: 46px; height: 46px; font-size: 17px; border-radius: 14px; }
.user-name { font-size: 13px; color: var(--slate-700); font-weight: 600; max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acct-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.acct-head b { display: block; font-size: 16px; color: var(--ink); }
.acct-head span { font-size: 12.5px; color: var(--muted); }
.acct-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.acct-grid > div { background: var(--blue-50); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.acct-grid b { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.02em; }
.acct-grid span { font-size: 12px; color: var(--muted); }
.acct-list { margin-top: 16px; }
.acct-list h4 { font-size: 12.5px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.acct-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #eef3fb; font-size: 13px; color: var(--slate-700); }
.acct-item em { font-style: normal; font-size: 12px; color: var(--blue-700); background: var(--blue-50); border-radius: 999px; padding: 2px 9px; flex: none; }

/* ---------- 列表工具条 ---------- */
.select {
  height: 34px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff;
  color: var(--slate-600); font-size: 13px; padding: 0 32px 0 14px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select:hover { border-color: var(--blue-200); }
.chip.fav-chip { display: inline-flex; align-items: center; gap: 6px; }
.chip.fav-chip::before { content: '★'; font-size: 12px; color: #cbd5e1; }
.chip.fav-chip.on::before { color: #fff; }

.load-more-wrap { display: flex; justify-content: center; margin-top: 26px; }
.load-more {
  display: none; align-items: center; justify-content: center; height: 42px; padding: 0 26px;
  border-radius: 999px; border: 1px dashed var(--line-strong); background: #fff;
  color: var(--slate-600); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .16s;
}
.load-more:hover { border-color: var(--blue-300, #93c5fd); color: var(--blue-700); background: var(--blue-50); }

/* ---------- FAQ / 表单区 ---------- */
.faq { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 18px; color: var(--blue-600); font-weight: 400; transition: transform .18s;
}
.faq[open] summary::after { content: '−'; }
.faq p { padding: 0 20px 18px; font-size: 13.8px; color: var(--slate-600); line-height: 1.8; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--slate-600); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: .2s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { color: var(--blue-700); border-color: var(--blue-200); }

/* ---------- 骨架屏 ---------- */
.skeleton { background: linear-gradient(90deg, #f1f5fb 25%, #e8effa 37%, #f1f5fb 63%); background-size: 400% 100%; animation: sk 1.2s ease infinite; border-radius: 12px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 640px) {
  .sheet { width: 100vw; max-height: 92vh; border-radius: 20px 20px 0 0; align-self: flex-end; }
  .overlay { align-items: flex-end; }
  .sheet-drawer { width: 100vw; border-radius: 20px 20px 0 0; max-height: 92vh; top: auto; }
  .detail-list { grid-template-columns: 1fr; }
  .detail-list > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .detail-list > div:nth-child(odd) { padding-right: 0; }
  .acct-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .acct-grid b { font-size: 18px; }
  .toast-host { bottom: 16px; }
  .back-top { right: 16px; bottom: 16px; }
  .filters .select { flex: 1 1 auto; }
  .search { width: 100%; }
}

/* ---------- 工具条两行布局 ---------- */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 18px; }
.filter-bar .search { margin-left: 0; min-width: 240px; }
.filter-bar .search input { width: 100%; }
.filter-bar .result-count { margin-left: auto; margin-bottom: 0; }
.filters { margin-bottom: 0; }

/* ---------- 小屏头部压缩 ---------- */
@media (max-width: 640px) {
  .brand-text span { display: none; }
  .brand { gap: 8px; }
  .nav { gap: 10px; height: 64px; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .user-name { display: none; }
  .user-btn { padding: 0 5px 0 3px; }
  .filter-bar .search { min-width: 0; flex: 1 1 100%; order: 2; }
  .filter-bar .select { order: 3; flex: 1 1 auto; }
  .filter-bar .result-count { order: 1; margin-left: 0; }
}

/* ---------- 提示位置：左下，避免遮挡弹窗底部 ---------- */
.toast-host {
  left: 24px; right: auto; bottom: 24px; transform: none; align-items: flex-start;
}
@media (max-width: 640px) {
  .toast-host { left: 16px; right: 16px; bottom: 16px; align-items: center; }
}

/* ---------- 细节修正 ---------- */
.field-inline { align-items: center; }
.field-inline .btn { height: 44px; }
.card-tools .meta { font-size: 12px; }
.match-title { font-size: 16.5px; margin-bottom: 14px; }
.ent-name { font-size: 16px; color: var(--ink); display: block; }
.ent-sub { font-size: 12.5px; color: var(--muted); }
.opc-stats b.sm { font-size: 13px; padding-top: 3px; display: block; }

/* 窄桌面（≤1240px）收起头部发布按钮，保证 9 个菜单项 + 登录态按钮不撑高导航 */
@media (max-width: 1240px) {
  .nav-actions [data-act="publish"] { display: none; }
}

/* 超窄屏（<380px）收起头部发布按钮，保留登录入口 */
@media (max-width: 380px) {
  .nav-actions [data-act="publish"] { display: none; }
  .nav-actions #auth-slot .btn { padding: 0 10px; }
}

/* OPC 卡：工具区绝对定位，避免挤压标题 */
.opc-card { position: relative; }
.opc-card .card-tools { position: absolute; top: 14px; right: 14px; gap: 6px; }
.opc-card .opc-head { padding-right: 96px; }
.opc-stats { flex-wrap: wrap; row-gap: 10px; }
.opc-stats > div { white-space: nowrap; }

.opc-head > div { min-width: 0; }
.opc-head b, .opc-head span {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
