/* 科文信息服务咨询中心 - 前台样式（响应式，移动优先） */
:root {
  --brand: #4C1D95;
  --brand-light: #7c3aed;
  --teal: #0d9488;
  --accent: #e11d48;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2d3d;
  --muted: #7a8798;
  --line: #e2e7ef;
  --ok: #16a34a;
  --warn: #d97706;
  --radius: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px;
}
a { color: var(--brand-light); text-decoration: none; }
img { max-width: 100%; }

/* 导航栏 */
.nav {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  max-width: 1000px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.nav-brand { font-weight: 800; font-size: 17px; color: var(--brand); white-space: nowrap; }
.nav-brand span { color: var(--muted); font-weight: 500; font-size: 12px; margin-left: 4px; }
.nav-links { display: flex; gap: 14px; align-items: center; overflow-x: auto; font-size: 14px; }
.nav-links a { color: #4a5a6b; white-space: nowrap; padding: 4px 2px; }
.nav-links a.on { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); }
.nav-links a.btn-sm { color: #fff; }

.container { max-width: 1000px; margin: 0 auto; padding: 20px 16px; }
.container-narrow { max-width: 640px; }

/* 卡片 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card-pad { padding: 22px 20px; }

/* 按钮 */
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; background: var(--brand);
  color: #fff; transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-accent { background: var(--teal); color: #fff; }
.btn-ghost { background: #fff; color: var(--brand-light); border-color: var(--brand-light); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* 首屏 */
.hero { background: linear-gradient(135deg, #4C1D95 0%, #7c3aed 60%, #a855f7 100%); color: #fff; padding: 44px 20px 38px; text-align: center; }
.hero h1 { font-size: 26px; font-weight: 800; margin-bottom: 12px; line-height: 1.3; }
.hero p { max-width: 560px; margin: 0 auto; opacity: .95; font-size: 15px; }
.hero-note { margin-top: 18px; font-size: 13.5px; background: rgba(255,255,255,.14); display: inline-block; padding: 8px 16px; border-radius: 999px; }
.hero-stats { display: flex; justify-content: center; gap: 28px; margin-top: 26px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 26px; font-weight: 800; }
.hero-stat-label { font-size: 12.5px; opacity: .85; }

/* 区块标题 */
.section-head { margin: 26px 0 16px; }
.section-head h2 { font-size: 20px; color: #1f2d3d; }
.section-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.section-head.center { text-align: center; }

/* 登记入口 */
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .pick-grid { grid-template-columns: 1fr 1fr; } }
.pick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: block; color: var(--text); transition: box-shadow .15s, transform .15s;
}
.pick-card:hover { box-shadow: 0 6px 18px rgba(76,29,149,.12); transform: translateY(-2px); }
.pick-who { font-size: 12.5px; color: var(--brand-light); font-weight: 600; }
.pick-card h3 { font-size: 18px; margin: 6px 0 8px; }
.pick-card p { font-size: 13.5px; color: var(--muted); }
.pick-btn { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--brand); }

/* 信任条 */
.trust-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.trust-strip span { font-size: 12.5px; color: #4a5a6b; background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* 广场入口 / 特性网格 */
.entry-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .entry-grid { grid-template-columns: repeat(3, 1fr); } }
.entry-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: block; color: var(--text); }
.entry-card h4 { font-size: 16px; margin: 6px 0; }
.entry-card p { font-size: 13px; color: var(--muted); }
.entry-tag { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); padding: 3px 9px; border-radius: 999px; }
.entry-tag.is-college { background: var(--teal); }
.entry-tag.is-demand { background: var(--accent); }

/* 流程四步 */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature-icon { width: 40px; height: 40px; border-radius: 10px; background: #f3ecff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; margin-bottom: 10px; }
.feature h4 { font-size: 15px; margin-bottom: 4px; }
.feature p { font-size: 13px; color: var(--muted); }

/* 说明框 */
.notice-box, .form-note { background: #f3ecff; border: 1px solid #e4d6ff; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: #3b2c56; margin-bottom: 16px; }
.form-note-brand { background: #eef4ff; border-color: #c5d6f5; color: #2c3e50; }
.form-tip { font-size: 13px; color: var(--warn); margin-bottom: 12px; }

/* 表单 */
label.field-label { display: block; font-weight: 700; font-size: 14px; margin: 16px 0 6px; color: #2c3e50; }
.field-hint { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 6px; }
.field-full { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.input, .select, .textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #d4dbe6; border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--text); outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,58,237,.12); }
.textarea { min-height: 84px; resize: vertical; }
.select { appearance: none; }
.inline-group { display: flex; gap: 10px; align-items: center; }
.unit { color: var(--muted); font-size: 14px; white-space: nowrap; }

/* 胶囊选择 */
.chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  position: relative; cursor: pointer;
}
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid #d4dbe6;
  background: #fff; font-size: 14px; color: #4a5a6b; user-select: none;
}
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.req { color: var(--accent); }
.hint-soft { color: var(--muted); font-weight: 400; font-size: 12px; }

/* 广场列表 */
.grid-list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px) { .grid-list { grid-template-columns: 1fr 1fr; } }
.item-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.item-card h3 { font-size: 16px; margin-bottom: 6px; color: #2c3e50; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: 12px; background: #f0f2f7; color: #4a5a6b; padding: 3px 9px; border-radius: 999px; }
.tag.brand { background: #f3ecff; color: var(--brand); }
.tag.teal { background: #e0f7f5; color: var(--teal); }
.tag.ok { background: #e6f7ec; color: var(--ok); }
.meta { font-size: 12.5px; color: var(--muted); }
.item-desc { font-size: 13.5px; color: #4a5a6b; margin-top: 6px; white-space: pre-wrap; }

/* 筛选 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
.filter-bar .input, .filter-bar .select { width: auto; min-width: 120px; flex: 1; }

/* 状态徽标 */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge.ok { background: #e6f7ec; color: var(--ok); }
.badge.warn { background: #fdf3e3; color: var(--warn); }
.badge.gray { background: #eef1f6; color: #7a8798; }

/* 空态 */
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14px; }

/* 提示/警告 */
.alert { padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.alert-error { background: #fdeaea; color: #b91c1c; border: 1px solid #f5c2c2; }
.alert-ok { background: #e6f7ec; color: #166534; border: 1px solid #bfe6cd; }

/* 页脚 */
.footer { background: #1f2330; color: #aab; padding: 26px 16px; margin-top: 40px; font-size: 13px; }
.footer-inner { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.footer a { color: #9aa3b5; }
.footer .col h5 { color: #fff; margin-bottom: 8px; font-size: 14px; }
.footer .copy { color: #6b7280; font-size: 12px; }
.footer .admin-link { color: #555c6e; font-size: 12px; margin-top: 10px; display: inline-block; }
.footer .icp { text-align: center; }
.footer .icp a { color: #7b8496; font-size: 12px; }

/* 表格（后台/简单列表用） */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f7f8fb; color: #4a5a6b; font-weight: 600; white-space: nowrap; }
.tbl tr:hover td { background: #faf9ff; }

/* 响应式细节 */
@media (max-width: 480px) {
  .hero h1 { font-size: 22px; }
  .nav-links { font-size: 13px; gap: 10px; }
  .tbl th, .tbl td { padding: 8px; font-size: 12.5px; }
}
