/* 讲师需求对接系统 · 设计 token（对应 Ardot 稿 00003 模板 + 多彩语义色） */
:root {
  --canvas: #F5F7FB;
  --card: #FFFFFF;
  --ink: #1C1E21;
  --body: #5D6C7B;
  --muted: #A3ACB8;
  --line: #E8ECF2;

  --blue: #0064E0;          /* 进行中 / 功能主色 */
  --purple: #7C4DFF;        /* 待对接 / A板块 */
  --green: #00B894;         /* 已确认 / D板块 */
  --gray: #8595A4;          /* 已完成 */
  --red: #E41E3F;           /* 紧急 */
  --orange: #FF8A3D;        /* C板块 / 人数点缀 */
  --orange-deep: #C05E00;
  --pink: #FF5C8A;          /* 品牌粉 / E板块 */
  --yellow: #FFC93C;

  --tint-purple: #F1ECFF; --tint-blue: #E7F1FF; --tint-green: #E2F8F1;
  --tint-orange: #FFF1E3; --tint-pink: #FFEFF4; --tint-red: #FFF0F3;
  --tint-gray: #EEF1F5; --tint-yellow: #FFF4D6;

  --contact-bg: #E0F7F1; --contact-fg: #008A6E;
  --alert-bg: #FFF4D6;   --alert-fg: #8A5A00;

  --r-card: 24px; --r-inner: 16px; --r-pill: 100px;
  --shadow: 0 8px 28px rgba(28,30,33,.08);
  --font: 'Inter', -apple-system, 'PingFang SC', 'Sarasa Gothic SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--canvas); color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }
.ico { width: 16px; height: 16px; flex: none; display: inline-block; vertical-align: -2px; }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1440px; margin: 0 auto; padding: 0 32px; height: 64px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--purple), var(--blue) 55%, var(--green)); display: flex; align-items: center; justify-content: center; color: #fff; }
.nav-search { flex: 1; max-width: 420px; margin-left: 24px; display: flex; align-items: center; gap: 8px; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 16px; }
.nav-search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 14px; font-family: inherit; color: var(--ink); }
.nav-search input::placeholder { color: var(--muted); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sync-chip { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--contact-fg); background: var(--contact-bg); border-radius: var(--r-pill); padding: 6px 12px; }
.sync-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
.btn { border: 0; border-radius: var(--r-pill); padding: 10px 22px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; cursor: pointer; transition: transform .12s, box-shadow .12s, opacity .12s; }
/* 按钮内图标必须显式定尺寸：无 width/height 的 svg 会按 300px 参与 flex 计算，挤爆按钮 */
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; box-shadow: 0 6px 18px rgba(0,100,224,.28); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(0,100,224,.4); }
.btn-ghost { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-ghost:hover { background: var(--tint-blue); }
.btn-gray { background: var(--canvas); color: var(--body); border: 1px solid var(--line); }

/* ---------- 容器 ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 24px 32px 64px; }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: var(--r-card); overflow: hidden; color: #fff; padding: 40px 48px 96px; background: linear-gradient(120deg, #7C4DFF 0%, #0064E0 48%, #00B894 100%); }
.hero h1 { font-size: 34px; font-weight: 800; letter-spacing: .5px; }
.hero p { margin-top: 8px; font-size: 15px; opacity: .92; max-width: 640px; }
.hero-chips { margin-top: 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero-chip { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); border-radius: var(--r-pill); padding: 7px 14px; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .35; pointer-events: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -64px; position: relative; z-index: 2; padding: 0 24px; }
.stat { background: var(--card); border-radius: var(--r-inner); padding: 18px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); }
.stat-ico { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.stat-num { font-size: 28px; font-weight: 800; line-height: 1.1; font-family: 'Inter', var(--font); }
.stat-label { font-size: 13px; color: var(--body); }

/* ---------- 筛选条 ---------- */
.filters { margin-top: 28px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.f-pill { border: 1.5px solid var(--line); background: #fff; color: var(--body); border-radius: var(--r-pill); padding: 8px 18px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.f-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.f-pill.on { color: #fff; border-color: transparent; }
.f-count { font-size: 12px; opacity: .85; }
.f-right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.select { appearance: none; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A3ACB8' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; border-radius: var(--r-pill); padding: 9px 36px 9px 16px; font-size: 13px; color: var(--ink); font-family: inherit; outline: none; }

/* ---------- 卡片网格 ---------- */
.grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.dcard { background: var(--card); border-radius: var(--r-card); padding: 24px; box-shadow: 0 3px 14px rgba(28,30,33,.05); border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; gap: 14px; }
.dcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dcard.urgent { border-color: var(--red); }
.dc-top { display: flex; align-items: flex-start; gap: 10px; }
.dc-title { font-size: 17px; font-weight: 700; flex: 1; }
.dc-company { font-size: 13px; color: var(--body); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.badge { border-radius: var(--r-pill); padding: 4px 12px; font-size: 12px; font-weight: 700; color: #fff; flex: none; }
.dc-rows { display: flex; flex-direction: column; gap: 8px; }
.dc-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.dc-row .ico { color: var(--muted); }
.dc-row b { color: var(--ink); font-weight: 600; }
.hl-orange { color: var(--orange-deep); font-weight: 700; }
.hl-days { color: var(--blue); font-weight: 700; }
.hl-days.soon { color: var(--red); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; border-radius: 8px; padding: 3px 9px; font-weight: 500; }
.alert-bar { display: flex; gap: 8px; align-items: flex-start; background: var(--alert-bg); color: var(--alert-fg); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; }
.alert-bar .ico { margin-top: 2px; }
.contact-bar { display: flex; align-items: center; gap: 8px; background: var(--contact-bg); color: var(--contact-fg); border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.contact-bar .phone { margin-left: auto; font-family: 'Inter', var(--font); }
.dc-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 12px; color: var(--muted); }
.mini-btn { border: 1px solid var(--line); background: #fff; color: var(--body); font-size: 12px; border-radius: var(--r-pill); padding: 5px 12px; }
.mini-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- 抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(28,30,33,.45); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .2s; }
.mask.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); background: var(--canvas); z-index: 70; transform: translateX(105%); transition: transform .28s cubic-bezier(.3,1,.4,1); display: flex; flex-direction: column; box-shadow: -18px 0 50px rgba(28,30,33,.18); }
.drawer.on { transform: none; }
.dw-head { background: #fff; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.dw-head .row1 { display: flex; align-items: center; gap: 8px; }
.dw-close { margin-left: auto; border: 0; background: var(--canvas); width: 32px; height: 32px; border-radius: 50%; font-size: 15px; color: var(--body); }
.dw-close:hover { background: var(--tint-red); color: var(--red); }
.dw-title { font-size: 20px; font-weight: 800; margin-top: 8px; }
.dw-sub { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 13px; color: var(--body); flex-wrap: wrap; }
.dw-body { flex: 1; overflow-y: auto; padding: 18px 26px 26px; }
.kinfo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.kinfo .k { background: #fff; border-radius: 14px; padding: 12px 8px; text-align: center; }
.k .kv { font-size: 15px; font-weight: 700; }
.k .kl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.sect { background: #fff; border-radius: var(--r-inner); margin-bottom: 12px; overflow: hidden; }
.sect-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 700; font-size: 14.5px; }
.sect-letter { width: 26px; height: 26px; border-radius: 9px; color: #fff; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.sect dl { padding: 2px 18px 14px; }
.sect .kv-row { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; align-items: baseline; }
.sect .kv-row:last-child { border-bottom: 0; }
.sect dt { color: var(--muted); flex: none; width: 118px; }
.sect dd { flex: 1; color: var(--ink); word-break: break-all; }
.dw-foot { background: #fff; border-top: 1px solid var(--line); padding: 16px 26px; display: flex; gap: 12px; }
.dw-foot .btn { flex: 1; justify-content: center; }

/* 状态色工具类 */
.st-pending   { background: var(--purple); }
.st-active    { background: var(--blue); }
.st-confirmed { background: var(--green); }
.st-done      { background: var(--gray); }
.fg-pending { color: var(--purple); } .bg-pending { background: var(--tint-purple); }
.fg-active  { color: var(--blue); }   .bg-active  { background: var(--tint-blue); }
.fg-confirmed { color: var(--green); } .bg-confirmed { background: var(--tint-green); }
.fg-done { color: var(--gray); } .bg-done { background: var(--tint-gray); }
.fg-urgent { color: var(--red); } .bg-urgent { background: var(--tint-red); }

/* 板块色 */
.sec-A .sect-letter { background: var(--purple); } .sec-A .sect-h { color: var(--purple); background: var(--tint-purple); }
.sec-B .sect-letter { background: var(--blue); }   .sec-B .sect-h { color: var(--blue); background: var(--tint-blue); }
.sec-C .sect-letter { background: var(--orange-deep); } .sec-C .sect-h { color: var(--orange-deep); background: var(--tint-orange); }
.sec-D .sect-letter { background: var(--green); }  .sec-D .sect-h { color: var(--green); background: var(--tint-green); }
.sec-E .sect-letter { background: var(--pink); }   .sec-E .sect-h { color: var(--pink); background: var(--tint-pink); }

/* ---------- 链接管理面板 ---------- */
.links-panel { margin-top: 20px; background: #fff; border-radius: var(--r-card); padding: 22px 26px; box-shadow: 0 3px 14px rgba(28,30,33,.05); }
.lp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.lp-head h3 { font-size: 16px; font-weight: 800; }
.lp-tip { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.lp-head .dw-close { margin-left: 8px; }
.lp-tools { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: linear-gradient(120deg, var(--tint-purple), var(--tint-blue)); border-radius: 14px; margin: 12px 0; }
.lt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lt-row + .lt-row { border-top: 1px dashed rgba(28,30,33,.12); padding-top: 10px; }
.lt-ico { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--purple), var(--blue)); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.lt-ico svg { width: 14px; height: 14px; }
.lt-ico-b { background: linear-gradient(135deg, var(--blue), var(--green)); }
.lt-text { font-size: 13px; color: var(--body); }
.lt-text b { color: var(--ink); font-weight: 700; }
.lt-sync { font-size: 11.5px; color: var(--muted); margin-left: 6px; }
.lt-dir { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; letter-spacing: .3px; }
.lt-dir.in { background: rgba(124,77,255,.15); color: var(--purple); }
.lt-dir.out { background: rgba(0,184,148,.18); color: var(--contact-fg); }
.lt-actions { margin-left: auto; display: flex; gap: 8px; }
.lt-actions .mini-btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 14px; background: #fff; font-weight: 600; }
.lt-actions .mini-btn svg { width: 13px; height: 13px; }
.lt-actions .mini-btn:hover { border-color: var(--blue); color: var(--blue); background: #fff; }
.lp-sync-log { margin: 6px 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; line-height: 1.6; }
.lp-sync-log.ok { background: var(--tint-green); color: var(--contact-fg); }
.lp-sync-log.err { background: var(--tint-red); color: var(--red); }
.lp-sync-log a { color: inherit; font-weight: 700; word-break: break-all; }
.link-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.link-row:last-child { border-bottom: 0; }
.lr-main { flex: 1; min-width: 220px; }
.lr-title { font-size: 14.5px; font-weight: 700; }
.lr-url { font-size: 12px; color: var(--muted); font-family: 'Inter', var(--font); margin-top: 2px; }
.lr-url b { color: var(--blue); }
.lr-note { font-size: 12px; color: var(--body); margin-top: 4px; }
.lr-time { font-size: 12px; color: var(--muted); min-width: 96px; }
.lr-actions { display: flex; gap: 8px; }

/* ---------- 弹窗（生成链接） ---------- */
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%) scale(.98); width: min(580px, 94vw); max-height: 92vh; overflow-y: auto; background: #fff; border-radius: var(--r-card); z-index: 80; box-shadow: 0 30px 70px rgba(28,30,33,.28); opacity: 0; pointer-events: none; transition: .22s; }
.modal.on { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
/* Hero 顶部 */
.modal-hero { position: relative; padding: 22px 26px 22px; color: #fff; background: linear-gradient(135deg, #7C4DFF 0%, #0064E0 55%, #00B894 100%); border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.modal-hero::before, .modal-hero::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.modal-hero::before { width: 160px; height: 160px; background: #FFC93C; top: -70px; right: -40px; opacity: .32; filter: blur(3px); }
.modal-hero::after { width: 100px; height: 100px; background: #FF5C8A; bottom: -36px; right: 28%; opacity: .28; filter: blur(2px); }
.modal-hero h2 { font-size: 20px; font-weight: 800; letter-spacing: .3px; position: relative; }
.modal-hero .sub { margin-top: 5px; font-size: 12.5px; opacity: .92; max-width: 380px; line-height: 1.55; position: relative; }
.modal-hero .hero-mark { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.35); margin-bottom: 8px; position: relative; }
.modal-hero .hero-mark svg { width: 18px; height: 18px; }
.modal-close { position: absolute; top: 12px; right: 12px; border: 0; background: rgba(255,255,255,.18); width: 30px; height: 30px; border-radius: 50%; font-size: 13px; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: background .15s; }
.modal-close:hover { background: rgba(255,255,255,.32); }
/* Body */
.modal-body { padding: 18px 26px 4px; }
.modal-section { margin-bottom: 14px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--body); letter-spacing: .5px; margin-bottom: 10px; text-transform: uppercase; }
.modal-section-label .msl-ico { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.modal-section-label .msl-ico svg { width: 13px; height: 13px; }
.msl-A .msl-ico { background: var(--tint-purple); color: var(--purple); }
.msl-B .msl-ico { background: var(--tint-blue); color: var(--blue); }
.modal-field { margin-bottom: 12px; }
.modal-field:last-child { margin-bottom: 0; }
.modal-field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.modal-field-label .req { color: var(--pink); margin-right: 2px; }
.modal-field-label .hint { color: var(--muted); font-weight: 400; font-size: 11.5px; margin-left: 6px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap .input-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; display: inline-flex; }
.input-icon-wrap .input-ico svg { width: 16px; height: 16px; }
.input-modal { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 14px 10px 42px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fff; outline: none; transition: border .15s, box-shadow .15s; }
.input-modal.textarea { padding-left: 14px; min-height: 64px; resize: vertical; line-height: 1.55; }
.input-modal:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,100,224,.12); }
.input-modal::placeholder { color: var(--muted); }
/* Foot */
.modal-foot { display: flex; align-items: center; gap: 12px; padding: 14px 26px 18px; border-top: 1px solid var(--line); background: var(--canvas); border-radius: 0 0 var(--r-card) var(--r-card); position: sticky; bottom: 0; flex-wrap: wrap; }
.modal-foot[hidden] { display: none; }
.modal-foot .foot-tip { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; min-width: 0; }
.modal-foot .foot-tip svg { width: 14px; height: 14px; }
.modal-foot-actions { margin-left: auto; display: flex; gap: 10px; flex: none; }
/* 生成完成态 */
.modal-success { padding: 32px 30px 26px; }
.success-note { display: flex; align-items: center; gap: 12px; background: var(--tint-green); color: var(--contact-fg); border-radius: 14px; padding: 14px 16px; font-size: 13.5px; font-weight: 600; }
.success-note .ok-ico { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.success-note .ok-ico svg { width: 16px; height: 16px; }
.link-box { display: flex; gap: 10px; margin-top: 16px; }
.link-box .input-modal { flex: 1; min-width: 0; font-family: 'Inter', var(--font); font-size: 13px; padding-left: 14px; color: var(--body); }
.qr-block { margin-top: 18px; background: var(--canvas); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 16px; }
.qr-block img { width: 110px; height: 110px; border: 1px solid var(--line); border-radius: 10px; padding: 5px; background: #fff; flex: none; }
.qr-tip { font-size: 12.5px; color: var(--body); line-height: 1.7; }
.qr-tip b { color: var(--ink); }
/* 旧 class 兼容 */
.modal-h, .modal-b, .modal-f, .ok-note, .qr-box { display: none; }

.empty { text-align: center; color: var(--muted); padding: 70px 0; font-size: 14px; }
.foot { margin-top: 48px; text-align: center; color: var(--muted); font-size: 12.5px; }
.toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 11px 24px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: .25s; z-index: 99; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 900px) {
  .nav-in, .page { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 28px 24px 84px; } .hero h1 { font-size: 26px; }
  .stats { grid-template-columns: repeat(2, 1fr); padding: 0 8px; }
  .grid { grid-template-columns: 1fr; }
  .kinfo { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .modal-foot .foot-tip { display: none; }
  .modal-foot-actions { width: 100%; }
  .modal-foot-actions .btn { flex: 1; justify-content: center; }
  .submit-card { flex-wrap: wrap; }
  .submit-card .btn { flex: 1; justify-content: center; }
}
