/* ============================================================
   XM 环球金融 网站样式
   配色：深海军蓝 + 金色点缀，简洁专业的金融风格
   ============================================================ */

:root {
  --primary: #0e2a47;
  --primary-2: #123a63;
  --accent: #f0b429;
  --accent-dark: #d99a0b;
  --text: #2b3542;
  --muted: #6b7480;
  --bg: #f5f7fa;
  --white: #ffffff;
  --border: #e5e9ef;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(14, 42, 71, 0.08);
  --shadow-sm: 0 2px 10px rgba(14, 42, 71, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- 头部下方联系栏（QQ / 微信点击复制） ---------- */
.contact-strip {
  background: #f7f9fc;
  border-top: 1px solid var(--border);
}
.contact-strip-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  min-height: 38px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
}
.contact-strip .label { color: #9aa4af; margin-right: 6px; }
.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
  border: none;
  background: transparent;
  font-size: 13px;
  font-family: inherit;
  padding: 2px 0;
}
.copy-chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--accent-dark);
  border: 1px solid var(--accent);
  border-radius: 10px;
  padding: 1px 8px;
  transition: all .2s;
}
.copy-chip:hover { color: var(--accent-dark); }
.copy-chip:hover em { background: var(--accent); color: #3a2c00; }

/* ---------- 头部 ---------- */
.header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), #1d4e85);
  color: var(--accent);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px; letter-spacing: -1px;
}
.logo-text { line-height: 1.2; }
.logo-text b { font-size: 20px; color: var(--primary); display: block; }
.logo-text small { color: var(--muted); font-size: 11px; letter-spacing: 1px; }

/* 导航 */
.nav { display: flex; align-items: center; margin-left: auto; }
.nav > li { position: relative; }
.nav > li > a {
  display: block;
  padding: 26px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav > li > a:hover,
.nav > li.active > a { color: var(--primary); }
.nav > li.active > a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 14px;
  height: 3px; background: var(--accent); border-radius: 2px;
}
.nav .caret { font-size: 10px; margin-left: 3px; }

/* 下拉子菜单 */
.dropdown { display: none; }
.nav > li.has-drop:hover .dropdown,
.nav > li.has-drop:focus-within .dropdown { display: block; }
.dropdown {
  position: absolute;
  top: 100%; left: 0;
  min-width: 176px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 0 0 10px 10px;
  padding: 8px 0;
  border-top: 3px solid var(--accent);
}
.dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  transition: all .2s;
}
.dropdown a:hover { background: #f0f4f9; color: var(--primary); padding-left: 26px; }

/* 头部按钮 */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  line-height: 1.4;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #3a2c00; }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(240, 180, 41, .45); transform: translateY(-1px); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: var(--white); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 13px 32px; font-size: 16px; }

/* 汉堡按钮 */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  background: var(--primary);
  border: none; border-radius: 8px;
  cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- 通用板块 ---------- */
.section { padding: 60px 0; }
.section-alt { background: var(--white); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: 30px; color: var(--primary); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15px; }
.kicker {
  display: inline-block;
  color: var(--accent-dark);
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  margin-bottom: 8px;
}

/* Hero */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(240, 180, 41, .16), transparent 60%),
    linear-gradient(135deg, #0a2038 0%, var(--primary) 55%, #163e6b 100%);
  color: #fff;
  padding: 84px 0 92px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 40px; line-height: 1.25; margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero .lead { color: #c7d6e6; font-size: 16px; margin-bottom: 28px; max-width: 560px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats .st b { font-size: 26px; color: var(--accent); display: block; }
.hero-stats .st span { color: #aebfce; font-size: 13px; }

/* 卡片 */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: all .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 52px; height: 52px; border-radius: 12px;
  background: #eef3f9; color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.card h3 { font-size: 18px; color: var(--primary); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14px; }

/* 产品分类入口 */
.prod-entry {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: all .25s;
  display: block;
}
.prod-entry:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-entry .num { color: #d7e0ea; font-size: 40px; font-weight: 800; line-height: 1; }
.prod-entry h3 { color: var(--primary); margin: 10px 0 8px; font-size: 20px; }
.prod-entry p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.prod-entry .go { color: var(--accent-dark); font-weight: 600; font-size: 14px; }
.prod-entry::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,180,41,.25), transparent 70%);
}

/* 特性列表 */
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px dashed var(--border);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .dot { color: var(--accent-dark); font-weight: 700; line-height: 1.6; }

/* 表格 */
.table-wrap { overflow-x: auto; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); }
.table {
  width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px;
}
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.table thead th { background: var(--primary); color: #fff; font-weight: 600; white-space: nowrap; }
.table tbody tr:hover { background: #f7fafd; }
.table tbody tr:last-child td { border-bottom: none; }
.up { color: var(--green); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }

/* 面包屑 */
.crumbs { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 0; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { margin: 0 8px; color: #c3cad2; }
.crumbs .cur { color: var(--primary); }

/* 页面标题区 */
.page-hero {
  background:
    radial-gradient(900px 360px at 80% -20%, rgba(240,180,41,.16), transparent 60%),
    linear-gradient(135deg, #0a2038, var(--primary));
  color: #fff; padding: 54px 0;
}
.page-hero h1 { font-size: 32px; margin-bottom: 10px; }
.page-hero p { color: #c7d6e6; max-width: 720px; }

/* 内容排版 */
.prose { font-size: 15px; color: var(--text); }
.prose h2 { color: var(--primary); font-size: 22px; margin: 28px 0 12px; }
.prose h3 { color: var(--primary); font-size: 18px; margin: 22px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; }
.prose ul li { margin-bottom: 8px; }
.prose img { border-radius: 8px; margin: 16px 0; }

/* 警示框 */
.notice {
  background: #fff8e6; border-left: 4px solid var(--accent);
  padding: 16px 20px; border-radius: 6px;
  color: #7a5b12; font-size: 13.5px; margin-top: 24px;
}

/* 新闻列表 */
.news-item {
  display: flex; gap: 22px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; margin-bottom: 18px;
  transition: all .25s;
}
.news-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-item .thumb {
  width: 180px; height: 120px; flex-shrink: 0; border-radius: 8px;
  background: linear-gradient(135deg, #dbe6f1, #b8cbdd);
  overflow: hidden;
}
.news-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-item .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 30px; }
.news-item .body { flex: 1; }
.news-item h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.news-item h3 a:hover { color: var(--accent-dark); }
.news-item .summary { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.news-meta { color: #9aa4af; font-size: 13px; }
.news-meta .tag { background: #eef3f9; color: var(--primary); padding: 2px 10px; border-radius: 12px; margin-right: 10px; font-size: 12px; }

/* 分页 */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 文章详情 */
.article-detail { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.article-detail h1 { color: var(--primary); font-size: 28px; margin-bottom: 16px; line-height: 1.4; }
.article-detail .cover { border-radius: 10px; margin: 20px 0; }

/* 联系我们 */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; }
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
}
.contact-card h3 { color: var(--primary); margin-bottom: 16px; }
.contact-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--border); align-items: flex-start; }
.contact-row:last-child { border-bottom: none; }
.contact-row .ico { color: var(--accent-dark); font-size: 20px; width: 26px; text-align: center; flex-shrink: 0; }
.contact-row b { display: block; color: var(--text); }
.contact-row span { color: var(--muted); font-size: 14px; }
.copy-btn {
  margin-left: 10px; font-size: 12px; color: var(--primary);
  border: 1px solid var(--primary); background: #fff;
  border-radius: 4px; padding: 2px 8px; cursor: pointer;
}
.copy-btn:hover { background: var(--primary); color: #fff; }

/* 站点地图 */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.sitemap-col { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.sitemap-col h3 { color: var(--primary); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.sitemap-col a { display: block; padding: 7px 0; color: var(--muted); font-size: 14px; }
.sitemap-col a:hover { color: var(--primary); padding-left: 6px; }

/* ---------- 页脚（白色主题） ---------- */
.footer { background: var(--white); color: var(--muted); margin-top: 0; border-top: 1px solid var(--border); }
.footer-main {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px;
  padding: 52px 0 36px;
}
.footer h4 { color: var(--primary); font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; background: var(--accent); border-radius: 2px; }
.footer .f-about p { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.footer-links a { display: block; padding: 6px 0; font-size: 13.5px; color: var(--muted); }
.footer-links a:hover { color: var(--primary); padding-left: 6px; transition: all .2s; }
.footer .f-contact li { display: flex; gap: 10px; font-size: 13.5px; padding: 7px 0; color: var(--muted); }
.footer .f-contact .ico { color: var(--accent-dark); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0; font-size: 13px; color: var(--muted);
}
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--primary); }
.footer .f-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff6e0; color: #8a6d1a;
  border-radius: 16px; padding: 4px 12px; font-size: 12px; margin-top: 12px;
}

/* 移动端底部固定按钮 */
.mobile-fab {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
  background: var(--white); box-shadow: 0 -4px 16px rgba(0,0,0,.1);
  padding: 10px 14px;
  gap: 12px;
}
.mobile-fab .btn { flex: 1; }
body { padding-bottom: 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .contact-strip-inner { gap: 12px; min-height: 34px; }
  .nav-toggle { display: flex; }
  .header-inner { height: 64px; gap: 14px; }
  .nav {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--white); flex-direction: column; align-items: stretch;
    box-shadow: var(--shadow); border-top: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav > li > a { padding: 14px 20px; }
  .nav > li.active > a::after { display: none; }
  .dropdown { position: static; box-shadow: none; border-top: none; background: #f5f8fb; display: none; }
  .nav > li.has-drop.open .dropdown { display: block; }
  .dropdown a { padding: 11px 34px; }
  .header-actions { margin-left: auto; }
  .header-actions .btn { padding: 9px 16px; font-size: 13px; }
  .header-actions .btn-outline { display: none; }
  .grid-4, .grid-3, .footer-main, .sitemap-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-head h2 { font-size: 24px; }
  .hero { padding: 48px 0 60px; }
  .hero h1 { font-size: 26px; }
  .news-item { flex-direction: column; }
  .news-item .thumb { width: 100%; height: 180px; }
  .article-detail { padding: 22px; }
  body { padding-bottom: 70px; }
  .mobile-fab { display: flex; }
}

/* 复制成功提示 */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(14,42,71,.92); color: #fff;
  padding: 10px 22px; border-radius: 22px; font-size: 14px;
  z-index: 10000; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.toast.show { opacity: 1; }
