/* ============ 基础 ============ */
* { 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: 28px; height: 72px; }
.logo { display: flex; align-items: center; }
.logo-img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 26px; 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); }

/* ============ 弹窗 ============ */
.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; }
}
