:root {
  --brand: #1f5eff;
  --brand-dark: #1546c4;
  --brand-soft: #eef3ff;
  --ok: #16a34a;
  --warn: #f59e0b;
  --danger: #dc2626;
  --text: #1f2937;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --bg: #f5f7fb;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; margin: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

a { color: var(--brand); text-decoration: none; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 216px;
  background: #131a2b;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.sidebar .logo {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar .logo small { display: block; font-size: 11px; font-weight: 400; color: #94a3b8; }

.nav { flex: 1; overflow-y: auto; padding: 10px 0; }

.nav-group-title {
  padding: 14px 18px 6px;
  font-size: 12px;
  color: #64748b;
  letter-spacing: .5px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 14px;
  border-left: 3px solid transparent;
  transition: background .15s;
}

.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.nav-item.active {
  background: rgba(31, 94, 255, .18);
  border-left-color: var(--brand);
  color: #fff;
  font-weight: 500;
}

.nav-item .badge {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  border-radius: 9px;
  padding: 0 6px;
  font-size: 11px;
  line-height: 18px;
}

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

.topbar {
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
}

.topbar .title { font-size: 16px; font-weight: 600; }
.topbar .spacer { flex: 1; }

.content { flex: 1; padding: 18px; overflow: auto; }

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  margin-bottom: 16px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title .sub { font-size: 12px; color: var(--text-sub); font-weight: 400; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat .label { color: var(--text-sub); font-size: 13px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 6px; }
.stat .value.brand { color: var(--brand); }
.stat .value.ok { color: var(--ok); }
.stat .value.warn { color: var(--warn); }

/* ---------- 流程步骤条 ---------- */
.flow { display: flex; flex-wrap: wrap; gap: 10px; }

.flow-step {
  flex: 1 1 150px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  position: relative;
}

.flow-step.done { border-color: var(--ok); background: #f0fdf4; }
.flow-step.current { border-color: var(--brand); background: var(--brand-soft); }
.flow-step .idx {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--border); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; margin-right: 6px;
}
.flow-step.done .idx { background: var(--ok); }
.flow-step.current .idx { background: var(--brand); }
.flow-step .name { font-weight: 600; }
.flow-step .detail { color: var(--text-sub); font-size: 12px; margin-top: 6px; }

/* ---------- 30 天日历 ---------- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
}

.day-cell {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  background: #fff;
  transition: all .15s;
}
.day-cell:hover { border-color: var(--brand); transform: translateY(-1px); }
.day-cell .d { font-weight: 700; }
.day-cell .t { font-size: 12px; color: var(--text-sub); margin-top: 4px; height: 32px; overflow: hidden; }
.day-cell.approved { background: #f0fdf4; border-color: var(--ok); }
.day-cell.pending { background: #fffbeb; border-color: var(--warn); }
.day-cell.rejected { background: #fef2f2; border-color: var(--danger); }
.day-cell.today { box-shadow: 0 0 0 2px rgba(31, 94, 255, .35); }

/* ---------- 人才卡片 ---------- */
.talent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.talent-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.talent-card .head { display: flex; align-items: center; gap: 12px; }
.talent-card .name { font-size: 16px; font-weight: 600; }
.talent-card .meta { color: var(--text-sub); font-size: 12px; margin-top: 2px; }
.talent-card .score { margin-left: auto; text-align: center; }
.talent-card .score b { font-size: 22px; color: var(--brand); display: block; }
.talent-card .score span { font-size: 11px; color: var(--text-sub); }
.talent-card .tags { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.talent-card .ops { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- 认证三步 ---------- */
.cert-steps { display: flex; gap: 12px; margin-bottom: 18px; }
.cert-step {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  background: #fff;
}
.cert-step.done { border-color: var(--ok); background: #f0fdf4; }
.cert-step.active { border-color: var(--brand); background: var(--brand-soft); }
.cert-step .n { font-size: 20px; font-weight: 700; }

/* ---------- 登录/门户 ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f5eff 0%, #0b2a6f 100%);
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.auth-card h1 { font-size: 20px; margin: 0 0 4px; }
.auth-card .sub { color: var(--text-sub); font-size: 13px; margin-bottom: 20px; }

.portal-hero {
  background: linear-gradient(135deg, #1f5eff 0%, #0b2a6f 100%);
  color: #fff;
  padding: 70px 20px 90px;
  text-align: center;
}
.portal-hero h1 { font-size: 34px; margin: 0 0 12px; }
.portal-hero p { font-size: 15px; opacity: .9; margin: 0 auto; max-width: 720px; line-height: 1.8; }

.portal-entries {
  max-width: 1080px;
  margin: -56px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.entry-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(15, 30, 70, .1);
}
.entry-card h3 { margin: 0 0 8px; font-size: 18px; }
.entry-card p { color: var(--text-sub); line-height: 1.7; min-height: 70px; }

.muted { color: var(--text-sub); }
.mt8 { margin-top: 8px; }
.mt16 { margin-top: 16px; }
.mb8 { margin-bottom: 8px; }
.mb16 { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }
.nowrap { white-space: nowrap; }

.empty { text-align: center; color: var(--text-sub); padding: 40px 0; }

.media-thumb {
  width: 80px; height: 60px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--border); margin-right: 6px;
}

/* ---------- 聊天 ---------- */
.chat-wrap { display: flex; height: calc(100vh - 160px); gap: 14px; }
.chat-list { width: 260px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-y: auto; }
.chat-list .item { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.chat-list .item:hover, .chat-list .item.active { background: var(--brand-soft); }
.chat-list .item .n { font-weight: 600; }
.chat-list .item .m { color: var(--text-sub); font-size: 12px; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-main { flex: 1; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; }
.msg { margin-bottom: 14px; display: flex; }
.msg .bubble { max-width: 62%; padding: 9px 13px; border-radius: 10px; background: #f1f5f9; line-height: 1.6; }
.msg.mine { justify-content: flex-end; }
.msg.mine .bubble { background: var(--brand); color: #fff; }
.msg .time { font-size: 11px; color: var(--text-sub); margin-top: 4px; }
.chat-input { border-top: 1px solid var(--border); padding: 12px; display: flex; gap: 10px; }

/* ---------- 作品集分享页 ---------- */
.share-page { max-width: 960px; margin: 0 auto; padding: 30px 20px 60px; }
.share-head { text-align: center; margin-bottom: 30px; }
.share-head h1 { font-size: 28px; margin: 0 0 8px; }
.share-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.share-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.share-item .body { padding: 14px; }
.share-item h4 { margin: 0 0 6px; }

/* ---------- 作品集（个人端）---------- */
.pf-filter { margin-bottom: 16px; }
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.work-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work-card .cover { height: 150px; background: var(--brand-soft); position: relative; overflow: hidden; }
.work-card .cover img { width: 100%; height: 100%; object-fit: cover; }
/* ====== 高科技分类封面（纯 CSS/SVG，无外部图片） ====== */
.work-card .cover-ph {
  height: 100%; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: 12px;
  background-size: auto 92%, cover; background-position: center 68%, center; background-repeat: no-repeat;
  transition: transform .35s ease;
}
.work-card:hover .cover-ph { transform: scale(1.05); }
.work-card .cover-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 50% 40%, #000 35%, transparent 90%);
  mask-image: radial-gradient(ellipse 95% 90% at 50% 40%, #000 35%, transparent 90%);
}
.work-card .cover-ph::after {
  content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%;
  right: -34px; top: -38px; filter: blur(34px); opacity: .55;
}
.cover-ph.cat-programming { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 150'%3E%3Crect x='34' y='24' width='152' height='104' rx='10' fill='%230D1830' stroke='rgba(255,255,255,.22)'/%3E%3Crect x='34' y='24' width='152' height='24' rx='10' fill='rgba(255,255,255,.07)'/%3E%3Ccircle cx='48' cy='36' r='3.4' fill='%23f87171'/%3E%3Ccircle cx='60' cy='36' r='3.4' fill='%23fbbf24'/%3E%3Ccircle cx='72' cy='36' r='3.4' fill='%2334d399'/%3E%3Crect x='46' y='60' width='52' height='6' rx='3' fill='%2322d3ee' opacity='.95'/%3E%3Crect x='46' y='74' width='84' height='6' rx='3' fill='%23818cf8' opacity='.85'/%3E%3Crect x='58' y='88' width='62' height='6' rx='3' fill='%23f0c27a' opacity='.9'/%3E%3Crect x='46' y='102' width='40' height='6' rx='3' fill='%2334d399' opacity='.85'/%3E%3Crect x='58' y='116' width='28' height='6' rx='3' fill='%23f472b6' opacity='.85'/%3E%3C/svg%3E"), linear-gradient(135deg, #0B1631, #122750 55%, #1D4ED8); }
.cover-ph.cat-programming::after { background: #22D3EE; }
.cover-ph.cat-proposal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 150'%3E%3Crect x='30' y='22' width='160' height='106' rx='10' fill='rgba(255,255,255,.09)' stroke='rgba(255,255,255,.28)'/%3E%3Cpath d='M48 112h128' stroke='rgba(255,255,255,.28)' stroke-width='1.4'/%3E%3Crect x='54' y='88' width='17' height='24' rx='3' fill='%2393c5fd' opacity='.95'/%3E%3Crect x='84' y='74' width='17' height='38' rx='3' fill='%2360a5fa' opacity='.95'/%3E%3Crect x='114' y='58' width='17' height='54' rx='3' fill='%233b82f6'/%3E%3Crect x='144' y='42' width='17' height='70' rx='3' fill='%2322d3ee'/%3E%3Cpath d='M54 84 L96 66 L134 46 L168 32' stroke='%23F0C27A' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='168' cy='32' r='4.5' fill='%23F0C27A'/%3E%3C/svg%3E"), linear-gradient(135deg, #0A2A5E, #1D4ED8 70%, #2563EB); }
.cover-ph.cat-proposal::after { background: #F0C27A; }
.cover-ph.cat-design { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 150'%3E%3Crect x='30' y='22' width='160' height='106' rx='10' fill='rgba(255,255,255,.10)' stroke='rgba(255,255,255,.28)'/%3E%3Cpath d='M52 106 C 84 34, 136 128, 170 42' stroke='%23F0ABFC' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3Cpath d='M52 106 L84 34 M136 128 L170 42' stroke='rgba(255,255,255,.35)' stroke-width='1.2' stroke-dasharray='4 4'/%3E%3Ccircle cx='52' cy='106' r='4.5' fill='%2322d3ee'/%3E%3Ccircle cx='170' cy='42' r='4.5' fill='%23F0C27A'/%3E%3Ccircle cx='96' cy='38' r='5.5' fill='%23F472B6'/%3E%3Ccircle cx='140' cy='52' r='7' fill='%2334d399' opacity='.85'/%3E%3C/svg%3E"), linear-gradient(135deg, #3B0764, #7E22CE 55%, #C026D3); }
.cover-ph.cat-design::after { background: #F0ABFC; }
.cover-ph.cat-other { background-image: linear-gradient(135deg, #0B1631, #1E3A8A); }
.cover-ph.cat-other::after { background: #60A5FA; }
.work-card .ph-badge {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.work-card .ph-badge .dot { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 8px currentColor; }
.cat-programming .ph-badge .dot { background: #22D3EE; box-shadow: 0 0 8px #22D3EE; }
.cat-proposal .ph-badge .dot { background: #F0C27A; box-shadow: 0 0 8px #F0C27A; }
.cat-design .ph-badge .dot { background: #F0ABFC; box-shadow: 0 0 8px #F0ABFC; }
.work-card .body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.work-card h4 { margin: 8px 0 6px; font-size: 15px; }
.work-card .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; }
.work-card .ops { margin-top: auto; padding-top: 8px; display: flex; gap: 6px; }

.media-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.media-item { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 8px; }
.media-item .thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; background: #000; }
.media-item .file-chip { font-size: 13px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item .file-chip a { color: var(--brand); }

/* ---------- 作品集（企业端 / 分享页）---------- */
.pf-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.pf-gallery img { width: 92px; height: 70px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 1px solid var(--border); }
.pf-gallery video { width: 150px; height: 92px; border-radius: 6px; background: #000; }
.pf-doc { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 13px; color: var(--brand); text-decoration: none; margin: 4px 8px 4px 0; }
.pf-link { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); border-radius: 8px; padding: 6px 10px; font-size: 13px; margin: 4px 8px 4px 0; }
.pf-link a { color: var(--brand); }
.pf-work { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 14px; }
.pf-work h4 { margin: 6px 0; }
.pf-work .desc { font-size: 13px; line-height: 1.7; white-space: pre-wrap; }

@media (max-width: 900px) {
  .sidebar { width: 64px; }
  .sidebar .logo span, .nav-item span.txt, .nav-group-title { display: none; }
  .cert-steps { flex-direction: column; }
  .chat-wrap { flex-direction: column; height: auto; }
  .chat-list { width: 100%; max-height: 200px; }
}

/* [fix 2026-09-12] Vue 挂载前隐藏未编译模板，杜绝 {{ }} 闪现（FOUC） */
[v-cloak] { display: none !important; }
