/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #12325e;
  --navy-deep: #0c2344;
  --navy-soft: #1d4377;
  --gold: #c9a15a;
  --gold-deep: #b08842;
  --bg: #f6f8fb;
  --text: #2b3440;
  --text-light: #6b7686;
  --line: #e3e8ef;
  --radius: 12px;
}
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.container { width: min(1160px, 92%); margin: 0 auto; }
.hidden { display: none !important; }

/* ============ 按钮 ============ */
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 10px 22px; border-radius: 8px;
  font-size: 15px; font-family: inherit; line-height: 1.5;
  transition: all .2s ease; white-space: nowrap;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-soft); }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; font-weight: 600; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: none; color: var(--navy); cursor: pointer; font-size: 13px; font-family: inherit; }
.link-btn:hover { text-decoration: underline; }

/* ============ 顶部导航 ============ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 72px; }
.logo { display: flex; align-items: center; position: relative; }
.logo-img { height: 44px; width: auto; display: block; }
/* LOGO 双热区：整块回首页；「学」字为校园服务入口（位置极低调，不做视觉提示） */
.logo-hit { position: absolute; display: block; }
.logo-hit-home { top: 0; right: 0; bottom: 0; left: 0; z-index: 2; }
.logo-hit-xue { left: 0; top: 6.3%; width: 23.9%; height: 63.2%; z-index: 3; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { font-size: 15px; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: var(--navy); border-bottom-color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 18px; padding: 4px 10px; cursor: pointer; }

/* ============ 首屏 ============ */
.hero {
  position: relative; color: #fff; padding: 110px 0 90px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-soft) 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 85% 15%, rgba(201,161,90,.18), transparent 45%),
    radial-gradient(ellipse at 10% 90%, rgba(255,255,255,.06), transparent 40%);
}
.hero-content { position: relative; }
.hero-tag {
  display: inline-block; font-size: 13px; letter-spacing: 1px;
  border: 1px solid rgba(201,161,90,.6); color: var(--gold);
  padding: 4px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.25; margin-bottom: 20px; }
.hero-sub { max-width: 640px; color: rgba(255,255,255,.82); font-size: 16px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 860px; }
.stat {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 18px 20px; backdrop-filter: blur(4px);
}
.stat strong { display: block; font-size: 24px; color: var(--gold); }
.stat strong small { font-size: 14px; font-weight: 400; }
.stat span { font-size: 13px; color: rgba(255,255,255,.75); }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-tag { color: var(--gold-deep); font-size: 13px; letter-spacing: 3px; margin-bottom: 8px; }
.section-head h2 { font-size: 32px; color: var(--navy-deep); }
.section-desc { color: var(--text-light); margin-top: 10px; }
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============ 卡片 ============ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: all .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(18,50,94,.1); }
.service-card h3 { font-size: 18px; color: var(--navy-deep); margin: 14px 0 10px; }
.service-card p { font-size: 14px; color: var(--text-light); margin-bottom: 14px; }
.service-card ul { list-style: none; }
.service-card li { font-size: 13px; color: var(--text); padding-left: 18px; position: relative; margin-bottom: 4px; }
.service-card li::before { content: "•"; color: var(--gold); position: absolute; left: 4px; font-weight: 700; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; font-size: 26px;
  background: linear-gradient(135deg, #eef3fa, #e2ebf6);
  display: flex; align-items: center; justify-content: center;
}

/* ============ 关于我们 ============ */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.about-text h2 { font-size: 32px; color: var(--navy-deep); margin-bottom: 18px; }
.about-text > p { color: var(--text); margin-bottom: 14px; font-size: 15px; }
.about-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.point { background: var(--bg); border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); }
.point strong { display: block; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.point span { font-size: 12px; color: var(--text-light); }
.about-card {
  background: linear-gradient(160deg, var(--navy-deep), var(--navy));
  color: #fff; border-radius: var(--radius); padding: 30px;
}
.about-card h3 { color: var(--gold); margin-bottom: 18px; font-size: 19px; }
.about-logo { height: 38px; width: auto; display: block; margin-bottom: 18px; filter: brightness(0) invert(1); opacity: .95; }
.about-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 14px; }
.about-card dt { color: rgba(255,255,255,.6); white-space: nowrap; }
.about-card dd { color: #fff; }

/* ============ 资讯 ============ */
.news-card { display: flex; flex-direction: column; gap: 10px; }
.news-card h3 { font-size: 18px; color: var(--navy-deep); }
.news-card p { font-size: 14px; color: var(--text-light); flex: 1; }
.news-card:hover { border-color: var(--gold); }
.news-date { display: flex; align-items: baseline; gap: 8px; color: var(--gold-deep); }
.news-date span { font-size: 14px; font-weight: 600; }
.news-date em { font-style: normal; font-size: 20px; font-weight: 700; }
.news-link { color: var(--navy); font-size: 14px; font-weight: 600; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 44px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; display: flex; flex-direction: column;
}
.info-item strong { color: var(--navy); font-size: 13px; margin-bottom: 2px; }
.info-item span { font-size: 15px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; color: var(--navy-deep); margin-bottom: 6px; font-weight: 600; }
.form-group label em { color: #d4553f; font-style: normal; }
.form-group input, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: inherit; outline: none; transition: border .2s;
  background: var(--bg);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--navy); background: #fff; }
.form-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #d4553f; }
.field-error { color: #d4553f; font-size: 13px; min-height: 18px; margin-top: 4px; }

/* ============ 页脚 ============ */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.8); padding: 40px 0; }
.footer-logo { height: 34px; width: auto; display: block; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .95; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer strong { color: #fff; font-size: 16px; }
.footer p { font-size: 13px; margin-top: 6px; }
.footer .copyright { color: rgba(255,255,255,.45); }

/* 页脚底部：业务平台入口（低调排布，不抢视觉） */
.footer-links {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  font-size: 12px;
  line-height: 1.9;
}
.footer-links a {
  color: rgba(255,255,255,.32);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.footer-links a:hover { color: rgba(201,161,90,.92); }
/* 常用工具行：与业务平台入口同为页脚链接，去掉两行之间的分隔线，避免双横线 */
.footer-links-tools { padding-bottom: 12px; }
.footer-links-tools + .footer-links { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 720px) {
  .footer-links { gap: 4px 16px; margin-top: 20px; }
  .footer-links a { font-size: 11.5px; }
  .footer-links-tools { padding-bottom: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; }
}

/* ============ 弹窗 ============ */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(10,25,50,.55); }
.modal-body {
  position: relative; background: #fff; border-radius: 16px;
  width: min(400px, 92%); padding: 34px 30px; max-height: 92vh; overflow: auto;
}
.modal-body h3 { color: var(--navy-deep); font-size: 22px; }
.modal-sub { color: var(--text-light); font-size: 13px; margin: 4px 0 20px; }
.modal-close {
  position: absolute; top: 12px; right: 14px; background: none; border: none;
  font-size: 26px; color: var(--text-light); cursor: pointer; line-height: 1;
}
.modal-close.small { position: static; font-size: 20px; }
.code-group { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.code-group label { grid-column: 1 / -1; margin-bottom: 0; }
.btn-wechat { background: #07c160; color: #fff; font-weight: 600; }
.btn-wechat:hover { background: #06ad56; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-light); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============ AI 客服 ============ */
.ai-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff; font-size: 26px;
  box-shadow: 0 8px 24px rgba(18,50,94,.35);
  transition: transform .2s;
}
.ai-fab:hover { transform: scale(1.08); }
.ai-panel {
  position: fixed; right: 26px; bottom: 100px; z-index: 150;
  width: min(380px, 92vw); height: min(540px, 70vh);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(10,25,50,.28);
  display: flex; flex-direction: column;
}
.ai-panel-head {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.ai-panel-head .link-btn { color: rgba(255,255,255,.85); margin-right: 10px; }
.ai-messages { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.ai-msg {
  max-width: 84%; padding: 10px 14px; border-radius: 12px;
  font-size: 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.ai-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.ai-msg.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-msg.typing { color: var(--text-light); }
.ai-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-input-row input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; font-family: inherit; outline: none;
}
.ai-input-row input:focus { border-color: var(--navy); }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 4%;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .about-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
  .logo-img { height: 34px; }
}

/* ===== 网站书签条（首页顶部） ===== */
.bookmark-bar { background: #fff; border-bottom: 1px solid var(--line); }
.bookmark-bar[hidden] { display: none; }
.bookmark-inner { display: flex; align-items: center; gap: 16px; height: 48px; }
.bookmark-label {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--text-light);
  padding-right: 15px; border-right: 1px solid var(--line); white-space: nowrap;
}
.bookmark-label svg { width: 13px; height: 13px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linejoin: round; }
.bookmark-list {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  overflow-x: auto; overflow-y: hidden; padding: 4px 0;
  scrollbar-width: none; -ms-overflow-style: none;
}
.bookmark-list::-webkit-scrollbar { display: none; }
.bookmark {
  display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
  padding: 4px 13px 4px 5px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--navy);
  background: #f5f7fb; border: 1px solid transparent;
  white-space: nowrap; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bookmark:hover {
  background: #fff; border-color: rgba(201,161,90,.55);
  box-shadow: 0 3px 10px rgba(18,50,94,.09); transform: translateY(-1px);
}
.bookmark i.bm-ico {
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--bc, #12325e);
  background-image: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,0) 48%, rgba(0,0,0,.16));
  color: #fff; font-size: 11px; font-weight: 800; font-style: normal; line-height: 1;
  text-shadow: 0 1px 0 rgba(0,0,0,.14);
}
@media (max-width: 720px) {
  .bookmark-inner { gap: 10px; height: 44px; }
  .bookmark-label { padding-right: 10px; }
  .bookmark-label span { display: none; }
  .bookmark { font-size: 12px; padding: 3px 11px 3px 4px; gap: 6px; }
  .bookmark i.bm-ico { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; font-size: 10px; }
}

/* 书签条：桌面自动换行、移动端单行滑动 */
.bookmark-inner { height: auto; min-height: 48px; padding: 5px 0; }
.bookmark-list { flex-wrap: wrap; row-gap: 7px; overflow: visible; padding: 0; }
@media (max-width: 720px) {
  .bookmark-inner { height: 44px; min-height: 0; padding: 0; }
  .bookmark-list { flex-wrap: nowrap; row-gap: 0; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
}

/* 书签条：分组两行（业务平台 / 高校官网） */
.bookmark-inner { flex-direction: column; align-items: stretch; gap: 0; height: auto; min-height: 0; padding: 7px 0 8px; }
.bookmark-row { display: flex; align-items: center; gap: 12px; min-height: 30px; }
.bookmark-row + .bookmark-row { margin-top: 6px; }
.bookmark-label { flex: 0 0 88px; padding-right: 0; }
.bookmark-list { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
@media (max-width: 720px) {
  .bookmark-inner { padding: 6px 0; }
  .bookmark-row { gap: 8px; min-height: 28px; }
  .bookmark-row + .bookmark-row { margin-top: 4px; }
  .bookmark-label { flex: 0 0 22px; }
}

/* 品牌胶囊：可点击外链 */
a.brand-pill { text-decoration: none; cursor: pointer; }
a.brand-pill::after {
  content: '↗';
  display: inline-block; width: 0; overflow: hidden;
  font-size: 11px; line-height: 1; color: var(--gold-deep);
  opacity: 0; transition: width .2s ease, opacity .2s ease;
}
a.brand-pill:hover::after,
a.brand-pill:focus-visible::after { width: 11px; opacity: 1; }
a.brand-pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 合作院校卡片：整卡链到学校官网 */
a.school-card { text-decoration: none; cursor: pointer; }
.school-visit {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto; padding-top: 10px;
  font-size: 12.5px; font-weight: 600; color: var(--gold-deep);
  transition: color .2s ease;
}
.school-visit svg {
  width: 13px; height: 13px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
a.school-card:hover .school-visit { color: var(--navy); }
a.school-card:hover .school-visit svg { transform: translate(2px, -2px); }
a.school-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
