/* ============ 基础变量 ============ */
:root {
  --primary: #1e6fd9;
  --primary-dark: #16489a;
  --primary-soft: #eaf2ff;
  --accent: #ff7a45;
  --accent-soft: #fff1ea;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e6edf6;
  --bg: #ffffff;
  --bg-soft: #f6f9ff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 60, 130, .08);
  --shadow-lg: 0 20px 50px rgba(20, 60, 130, .14);
  --maxw: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* ============ 按钮 ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(30,111,217,.28); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.9); color: var(--primary-dark); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ============ 导航 ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #4f9bff); color: #fff; font-size: 20px;
}
.brand-text em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn):hover { color: var(--primary); }
.nav-links a.active:not(.btn) { color: var(--primary); font-weight: 700; }
.nav-portal { font-weight: 600; color: var(--primary); padding: 7px 14px; border: 1px solid var(--primary); border-radius: 999px; font-size: 14px; }
.nav-portal:hover { background: var(--primary); color: #fff; }
.footer-admin { display: inline-block; margin-top: 10px; color: var(--primary) !important; font-size: 13px; border: 1px solid var(--line); padding: 6px 12px; border-radius: 8px; }
.footer-admin:hover { background: var(--primary-soft); }
.lang-toggle {
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid #cfe0fb; border-radius: 999px;
  padding: 6px 14px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.lang-toggle:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 540px; display: flex; align-items: center;
  padding: 110px 0 150px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('images/Cinematic_wide_photograph_of_a_2026-08-25T10-56-16.png') center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,22,46,.86) 0%, rgba(10,22,46,.62) 42%, rgba(10,22,46,.28) 100%);
}
.hero-inner { position: relative; z-index: 1; color: #fff; text-align: left; max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  font-size: 14px; font-weight: 500; backdrop-filter: blur(6px); margin-bottom: 22px;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,122,69,.3); }
.hero-title { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.12; font-weight: 800; letter-spacing: -.5px; }
.hero-title .hl { color: #ffd0bb; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.88); margin: 20px 0 30px; max-width: 600px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ============ 可信承诺条 ============ */
.trust-band { position: relative; z-index: 5; margin-top: -42px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.trust { display: flex; align-items: center; gap: 14px; padding: 22px 20px; border-right: 1px solid var(--line); }
.trust:last-child { border-right: 0; }
.trust-ico {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(30,111,217,.10); color: var(--primary);
}
.trust b { display: block; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.trust span { color: var(--muted); font-size: 12.5px; }

/* ============ Hero 信任标签 ============ */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px;
  font-size: 13.5px; color: rgba(255,255,255,.92);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.badge-pulse { display: inline-block; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ============ 核心优势 ============ */
.adv-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.adv-card::before {
  content: ''; position: absolute; left: 0; top: 0; width: 4px; height: 100%;
  background: linear-gradient(var(--primary), #6aa0ea);
}
.adv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(30,111,217,.4); }
.adv-ico {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 27px; background: rgba(30,111,217,.10); color: var(--primary); margin-bottom: 16px;
}
.adv-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--ink); }
.adv-card p { color: var(--muted); font-size: 14.5px; line-height: 1.7; flex: 1; }
.adv-vs {
  margin-top: 14px; padding: 9px 12px; border-radius: 10px;
  background: #f6f8fc; color: #5b6b85; font-size: 12.5px; line-height: 1.5;
  border-left: 3px solid var(--line);
}

/* 一站式闭环条 */
.loop {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 40px; padding: 22px 26px; border-radius: 16px;
  background: linear-gradient(120deg, #eef4fe, #f7faff);
  border: 1px solid rgba(30,111,217,.18);
}
.loop-label {
  flex: 0 0 auto; font-weight: 800; color: var(--primary);
  padding: 6px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-sm);
}
.loop-items { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 4px; color: var(--ink); font-size: 14px; }
.loop-items span {
  padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: 13px;
}
.loop-items i { color: var(--primary); font-style: normal; font-weight: 700; }

/* ============ 对比表 ============ */
.compare-table { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.ct-row { display: grid; grid-template-columns: 1.1fr 1.4fr 1.4fr; }
.ct-row > div { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.ct-row:last-child > div { border-bottom: 0; }
.ct-dim { font-weight: 700; color: var(--ink); background: #fafbfe; }
.ct-head { background: #0f2847; }
.ct-head > div { color: #fff; border-bottom: 0; font-weight: 700; }
.ct-us { color: #1c7a3e; background: rgba(28,122,62,.06); font-weight: 600; }
.ct-them { color: #9aa3b2; }
.ct-row:nth-child(even) .ct-dim { background: #f4f6fb; }

/* ============ 关于：资质行 ============ */
.cred-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 22px 0 26px; }
.cred {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.cred b { font-size: 22px; }
.cred span { font-size: 14px; color: var(--ink); font-weight: 600; }

/* ============ 通用区块 ============ */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 700; font-size: 14px; letter-spacing: .5px; margin-bottom: 10px; }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.4px; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16px; }

/* ============ 网格 ============ */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ============ 卡片 ============ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0fb; }
.card .ico { font-size: 34px; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.mini { list-style: none; margin-top: 14px; display: grid; gap: 7px; }
.mini li { font-size: 14px; color: var(--ink); padding-left: 20px; position: relative; }
.mini li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }

/* ============ 精选会议 ============ */
.conference { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.conf-media { position: relative; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); min-height: 340px; }
.conf-media img { width: 100%; height: 100%; object-fit: cover; }
.conf-media-tag {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(255,255,255,.92); color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.photo-credit {
  position: absolute; right: 14px; bottom: 16px;
  background: rgba(0,0,0,.5); color: #fff;
  padding: 5px 10px; border-radius: 8px; font-size: 12px;
}
.conf-info { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.conf-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.conf-meta span { background: var(--primary-soft); color: var(--primary-dark); font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px; }
.conf-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.conf-link:hover { text-decoration: underline; }
.conf-note { color: var(--muted); font-size: 14px; margin: 18px 0 20px; line-height: 1.6; }
.conf-info h3 { font-size: 22px; margin-bottom: 18px; }
.conf-info .btn { margin-top: 22px; }
.feat { background: var(--bg-soft); border-radius: 14px; padding: 18px; }
.feat b { display: block; font-size: 16px; margin-bottom: 4px; }
.feat p { font-size: 14px; color: var(--muted); }

/* ============ 倒计时 ============ */
.countdown {
  background: linear-gradient(135deg, #fff 0%, var(--primary-soft) 100%);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 26px 28px 24px;
  text-align: center; margin-bottom: 38px;
}
.countdown-label { font-size: 16px; color: var(--muted); margin-bottom: 16px; }
.countdown-label b { color: var(--primary-dark); font-weight: 700; }
.countdown-grid {
  display: inline-flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.cd-unit {
  width: 86px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 16px 8px; box-shadow: 0 6px 18px rgba(30,111,217,.1);
}
.cd-unit b { display: block; font-size: 36px; font-weight: 800; color: var(--primary); line-height: 1; }
.cd-unit span { font-size: 14px; color: var(--muted); }
.countdown-note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.countdown-ended .cd-unit b { color: var(--accent); }

/* ============ 会议详情扩充 ============ */
.conf-intro { color: var(--muted); font-size: 15px; margin-bottom: 18px; line-height: 1.7; }
.forum {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px; margin: 18px 0 0;
}
.forum h4 { font-size: 16px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--primary-dark); }
.forum h4 span { font-size: 18px; }
.forum ul { list-style: none; display: grid; gap: 10px; }
.forum li { font-size: 14px; color: var(--ink); padding-left: 20px; position: relative; line-height: 1.55; }
.forum li::before { content: "•"; position: absolute; left: 6px; color: var(--primary); font-weight: 700; }
.forum li b { color: var(--primary-dark); }
.forum-esc { background: linear-gradient(135deg, #fff 0%, #fff7f4 100%); border-color: #ffe0d4; }
.forum-esc h4 { color: #c44b1c; }

/* ============ 流程 ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.step-num {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: 20px; margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* ============ 目的地 ============ */
.dest-grid { gap: 18px; }
.dest {
  position: relative; min-height: 230px; border-radius: var(--radius); overflow: hidden;
  display: flex; align-items: flex-end; background-size: cover; background-position: center;
  box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.dest:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.dest-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,40,.84) 0%, rgba(10,20,40,.32) 55%, rgba(10,20,40,.05) 100%);
}
.dest-body { position: relative; z-index: 1; padding: 20px; color: #fff; display: flex; flex-direction: column; gap: 4px; }
.dest-body .flag { font-size: 30px; }
.dest-body b { font-size: 22px; }
.dest-body small { color: rgba(255,255,255,.85); font-size: 14px; }

/* ============ 关于 ============ */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.about-copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 8px 0 14px; }
.about-copy > p { color: var(--muted); font-size: 16px; }
.about-copy strong { color: var(--primary-dark); }
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.why-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.why-item b { display: block; font-size: 16px; margin-bottom: 4px; color: var(--primary-dark); }
.why-item p { font-size: 14px; color: var(--muted); }
.about-card { display: grid; gap: 18px; }
.about-card blockquote {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 14px; padding: 20px 22px; font-size: 15px; color: var(--ink); box-shadow: var(--shadow);
}
.who { display: flex; flex-direction: column; margin: -8px 0 4px 6px; }
.who b { font-size: 15px; }
.who small { color: var(--muted); font-size: 13px; }

/* ============ FAQ ============ */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 16px; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--primary); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 0 18px; }

/* ============ 联系 ============ */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 8px 0 12px; }
.contact-copy > p { color: var(--muted); font-size: 16px; }
.contact-info { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.contact-info li { font-size: 15px; color: var(--muted); }
.contact-info b { color: var(--ink); }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; font-size: 15px;
  font-family: inherit; color: var(--ink); background: #fbfdff; transition: border-color .15s, box-shadow .15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input.invalid, .field textarea.invalid { border-color: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.form-msg { grid-column: 1 / -1; font-size: 14px; font-weight: 600; padding: 10px 14px; border-radius: 10px; }
.form-msg.ok { background: #ecfdf3; color: #027a48; }
.form-msg.err { background: #fef3f2; color: #b42318; }

/* ============ 页脚 ============ */
.footer { background: #0f1b30; color: #c7d2e4; padding: 56px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 30px; }
.footer .brand { color: #fff; }
.footer .brand-text em { color: #9fb3d4; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #9fb3d4; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: #9fb3d4; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8295b5; }

/* ============ 滚动入场动画 ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.show { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .conference, .about, .contact, .footer-inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; display: none; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 10px; }
  .nav-toggle { display: flex; }
  .hero { padding: 90px 0 120px; min-height: 460px; }
  .trust-band { margin-top: -34px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust:nth-child(2) { border-right: 0; }
  .trust:nth-child(1), .trust:nth-child(2) { border-bottom: 1px solid var(--line); }
  .ct-row { grid-template-columns: 1fr; }
  .ct-row > div { border-bottom: 1px solid var(--line); }
  .ct-head { display: none; }
  .cred-row { grid-template-columns: 1fr; }
  .loop { flex-direction: column; align-items: flex-start; }
  .section { padding: 60px 0; }
  .grid-3, .grid-2, .steps, .why { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* ============ 导航搜索按钮 ============ */
.nav-search-btn {
  background: var(--primary-soft); color: var(--primary-dark);
  border: 1px solid #cfe0fb; border-radius: 999px;
  width: 38px; height: 38px; font-size: 16px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s, color .2s, border-color .2s;
}
.nav-search-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============ 搜索弹层 ============ */
.search-overlay {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center;
  background: rgba(10,22,46,.5); backdrop-filter: blur(4px);
  padding: 8vh 16px 16px; animation: fadeIn .2s ease;
}
.search-overlay[hidden] { display: none; }
.search-modal {
  width: 100%; max-width: 680px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: popIn .22s ease;
}
.search-bar { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-ico { font-size: 20px; }
.search-input { flex: 1; border: 0; outline: none; font-size: 18px; font-family: inherit; color: var(--ink); background: transparent; }
.search-close { background: var(--bg-soft); border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--muted); }
.search-close:hover { background: #fee2e2; color: #b42318; }
.search-hint { padding: 12px 20px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.search-results { max-height: 56vh; overflow-y: auto; padding: 8px; }
.search-results:empty { display: none; }
.search-item { display: block; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s; }
.search-item:hover { background: var(--bg-soft); border-color: var(--line); }
.search-item h4 { font-size: 16px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search-item h4 .tag { font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 2px 8px; border-radius: 999px; }
.search-item p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.search-empty { padding: 28px 20px; text-align: center; color: var(--muted); font-size: 15px; }
.search-empty a { color: var(--primary); font-weight: 600; }
mark.hl { background: #fff3bf; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ============ AI 智能问答悬浮窗 ============ */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 190;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #4f9bff); color: #fff;
  box-shadow: 0 12px 30px rgba(30,111,217,.4); display: grid; place-items: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 38px rgba(30,111,217,.5); }
.chat-fab-icon { font-size: 26px; line-height: 1; }
.chat-fab-badge {
  position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; border: 2px solid #fff;
}
.chat-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 200;
  width: 380px; max-width: calc(100vw - 32px); height: 580px; max-height: calc(100vh - 48px);
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; animation: popIn .22s ease;
}
.chat-panel[hidden] { display: none; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, var(--primary), #4f9bff); color: #fff; }
.chat-avatar { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 22px; }
.chat-head-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-head-text b { font-size: 16px; }
.chat-head-text small { font-size: 12px; opacity: .9; }
.chat-close { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 15px; }
.chat-close:hover { background: rgba(255,255,255,.35); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg-soft); }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.bot a.chat-link { display: inline-block; margin-top: 8px; padding: 7px 12px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; font-size: 13px; font-weight: 600; text-decoration: none; }
.msg.bot a.chat-link:hover { background: var(--primary); color: #fff; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 1px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite both; }
.msg.typing span:nth-child(2) { animation-delay: .2s; }
.msg.typing span:nth-child(3) { animation-delay: .4s; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 14px 0; }
.chat-chip { background: #fff; border: 1px solid var(--line); color: var(--primary-dark); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; transition: background .15s, border-color .15s; }
.chat-chip:hover { background: var(--primary-soft); border-color: #cfe0fb; }
.chat-input-row { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input { flex: 1; border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; font-size: 14px; font-family: inherit; color: var(--ink); background: #fbfdff; outline: none; }
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.chat-send { background: var(--primary); color: #fff; border: 0; border-radius: 11px; padding: 0 18px; font-weight: 600; cursor: pointer; font-size: 14px; }
.chat-send:hover { background: var(--primary-dark); }
.chat-footer { padding: 8px 14px; font-size: 11px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); background: #fff; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.chat-source {
  margin-top: 8px;
  font-size: 11px;
  color: #2e9e6b;
  letter-spacing: .2px;
}
@keyframes flashBg { 0% { box-shadow: 0 0 0 4px var(--primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
.flash { animation: flashBg 1.2s ease; border-radius: 16px; }

/* ============ 搜索 / 聊天 移动端 ============ */
@media (max-width: 720px) {
  .chat-panel { right: 12px; bottom: 12px; left: 12px; width: auto; }
  .chat-fab { right: 16px; bottom: 16px; }
  .nav-search-btn { width: 34px; height: 34px; font-size: 15px; }
}
