/* ============================================================
   GTC 环球交易中心 - 全局样式
   ============================================================ */
:root {
  --primary: #1649c8;
  --primary-dark: #0f36a0;
  --primary-light: #e8efff;
  --accent: #f5b50a;
  --accent-dark: #d99a00;
  --ink: #1f2937;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f6f8fc;
  --white: #ffffff;
  --green: #16a34a;
  --red: #dc2626;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(22, 73, 200, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 73, 200, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ============ 按钮 ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-open {
  background: linear-gradient(135deg, var(--accent), #ffcc4d);
  color: #5b4300;
  box-shadow: 0 6px 16px rgba(245, 181, 10, .35);
}
.btn-open:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(245, 181, 10, .45); }
.btn-login {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 16px rgba(22, 73, 200, .3);
}
.btn-login:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-gray { background: #f3f4f6; color: var(--ink-2); }
.btn-gray:hover { background: #e5e7eb; }

/* ============ 顶部 ============ */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-main { background: var(--white); }
.header-inner { display: flex; align-items: center; height: 72px; gap: 24px; }
.logo { flex-shrink: 0; display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.logo-text { font-size: 22px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 15.5px; font-weight: 500; color: var(--ink);
  border-radius: 8px; transition: color .15s, background .15s;
}
.main-nav > ul > li > a:hover { color: var(--primary); background: var(--primary-light); }
.main-nav > ul > li > a.active { color: var(--primary); font-weight: 700; }
.caret {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; transition: transform .2s;
}
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; min-width: 170px;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all .2s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 9px 14px; border-radius: 7px; font-size: 14.5px; color: var(--ink-2); }
.dropdown a:hover { background: var(--primary-light); color: var(--primary); }

.header-actions { display: flex; gap: 10px; flex-shrink: 0; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 联系复制条 */
.contact-strip { background: var(--primary-light); border-top: 1px solid #dbe6ff; }
.contact-strip-inner { display: flex; align-items: center; gap: 12px; padding: 7px 20px; font-size: 13.5px; }
.strip-label { color: var(--primary); font-weight: 700; }
.copy-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #dbe6ff;
  border-radius: 999px; padding: 3px 10px; font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.copy-chip i {
  font-style: normal; background: var(--primary); color: #fff; border-radius: 999px;
  padding: 0 8px; font-size: 11px;
}
.copy-chip:hover { border-color: var(--primary); }

/* 移动端菜单 */
.mobile-menu { display: none; background: var(--white); border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu nav { padding: 10px 20px 20px; }
.mobile-menu a { display: block; padding: 12px 6px; font-size: 16px; border-bottom: 1px solid #f3f4f6; color: var(--ink); }
.mobile-menu a.sub { padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.mobile-menu a:hover { color: var(--primary); }

/* ============ 通用区块 ============ */
.section { padding: 72px 0; }
.section-gray { background: var(--bg); }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title h2 { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: .5px; }
.section-title .en { font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-dark); font-weight: 700; margin-bottom: 6px; }
.section-title p { color: var(--muted); margin-top: 10px; max-width: 640px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ============ 首页幻灯片 ============ */
.hero { position: relative; overflow: hidden; }
.slider { position: relative; height: 520px; }
.slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; transition: opacity .8s ease; z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.slide-bg { position: absolute; inset: 0; }
.slide-inner { position: relative; z-index: 2; color: #fff; max-width: 640px; }
.slide-inner .tag {
  display: inline-block; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  padding: 4px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.slide-inner h2 { font-size: 44px; font-weight: 800; line-height: 1.25; margin-bottom: 16px; }
.slide-inner p { font-size: 17px; opacity: .94; margin-bottom: 26px; max-width: 540px; }
.slider-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.slider-dots button { width: 26px; height: 4px; border-radius: 4px; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: width .2s, background .2s; }
.slider-dots button.active { width: 40px; background: var(--accent); }

/* ============ 平台介绍 ============ */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.intro-text h3 { font-size: 26px; font-weight: 800; margin-bottom: 16px; }
.intro-text p { color: var(--ink-2); margin-bottom: 14px; }
.intro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.stat-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; box-shadow: var(--shadow); }
.stat-box strong { display: block; font-size: 26px; color: var(--primary); font-weight: 800; }
.stat-box span { font-size: 13px; color: var(--muted); }
.intro-visual {
  background: linear-gradient(135deg, var(--primary), #2b6cff);
  border-radius: 20px; padding: 40px; color: #fff; box-shadow: var(--shadow-lg);
}
.intro-visual h4 { font-size: 20px; margin-bottom: 18px; }
.feature-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.feature-line .dot { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.feature-line b { display: block; margin-bottom: 2px; }
.feature-line span { font-size: 13.5px; opacity: .9; }

/* ============ 为何选择 ============ */
.reason-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reason-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; transition: transform .2s, box-shadow .2s; }
.reason-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.reason-card .icon { width: 52px; height: 52px; border-radius: 14px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.reason-card h3 { font-size: 18px; margin-bottom: 8px; }
.reason-card p { font-size: 14px; color: var(--muted); }

/* ============ 全球办公室 ============ */
.offices-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.office-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.office-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.office-card b { display: block; font-size: 16px; margin-bottom: 6px; color: var(--primary); }
.office-card span { display: block; font-size: 13px; color: var(--muted); line-height: 1.5; }
.world-map-wrap { background: #eef4ff; border-radius: 20px; padding: 20px; }

/* ============ 产品卡片 ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .pc-top { padding: 24px; background: linear-gradient(135deg, var(--primary), #2b6cff); color: #fff; }
.product-card .pc-top .icon { font-size: 32px; margin-bottom: 8px; }
.product-card .pc-top h3 { font-size: 20px; }
.product-card .pc-body { padding: 20px 24px 24px; }
.product-card .pc-body p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 16px; }
.pc-link { color: var(--primary); font-weight: 600; font-size: 14px; }

/* ============ 新闻列表 ============ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-card .thumb { height: 170px; display: flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; }
.news-card .nc-body { padding: 20px; }
.news-card .nc-body .meta { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 12px; }
.news-card .nc-body h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.news-card .nc-body p { font-size: 14px; color: var(--muted); }

/* ============ 页面横幅 ============ */
.page-banner { background: linear-gradient(135deg, var(--primary-dark), var(--primary), #2b6cff); color: #fff; padding: 60px 0; text-align: center; }
.page-banner h1 { font-size: 38px; font-weight: 800; margin-bottom: 10px; }
.page-banner p { opacity: .9; max-width: 680px; margin: 0 auto; }
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }

/* ============ 内容排版 ============ */
.prose { max-width: 860px; margin: 0 auto; }
.prose p { margin-bottom: 18px; color: var(--ink-2); }
.prose h2 { font-size: 26px; font-weight: 800; margin: 30px 0 14px; color: var(--ink); }
.prose h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul li { list-style: disc; margin-bottom: 8px; color: var(--ink-2); }
.prose ol li { list-style: decimal; margin-bottom: 8px; color: var(--ink-2); }
.prose img { border-radius: var(--radius); margin: 20px auto; }

/* ============ 时间轴（发展历程） ============ */
.timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: #dbe6ff; }
.tl-item { position: relative; margin-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--primary); border: 4px solid #dbe6ff; }
.tl-item .year { font-weight: 800; color: var(--primary); font-size: 18px; margin-bottom: 4px; }
.tl-item p { color: var(--ink-2); }

/* ============ 监管信息 ============ */
.regul-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.regul-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; }
.regul-card .badge { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: 22px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.regul-card h3 { font-size: 17px; margin-bottom: 6px; }
.regul-card p { font-size: 13.5px; color: var(--muted); }

/* ============ 产品子页 ============ */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.cat-tabs a { padding: 9px 22px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; }
.cat-tabs a:hover { color: var(--primary); border-color: var(--primary); }
.cat-tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 48px; }
.adv-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.adv-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--primary); }
.adv-item p { font-size: 14px; color: var(--muted); }
.ptable { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ptable th { background: var(--primary); color: #fff; padding: 14px; text-align: left; font-weight: 600; font-size: 14.5px; }
.ptable td { padding: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.ptable tr:last-child td { border-bottom: none; }
.ptable tr:hover td { background: var(--primary-light); }
.ptable .pname { color: var(--ink); font-weight: 600; }
.ptable .pcode { color: var(--primary); font-weight: 700; font-size: 13px; }

/* ============ 新闻中心 ============ */
.news-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.news-list-item { display: flex; gap: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; transition: box-shadow .2s; }
.news-list-item:hover { box-shadow: var(--shadow-lg); }
.news-list-item .thumb { width: 180px; height: 130px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 30px; }
.news-list-item h3 { font-size: 18px; margin-bottom: 8px; }
.news-list-item p { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.news-list-item .meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 14px; }
.hot-badge { display: inline-block; background: #fee2e2; color: var(--red); font-size: 12px; padding: 1px 8px; border-radius: 4px; margin-right: 8px; }
.sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-card h3 { font-size: 17px; margin-bottom: 16px; padding-left: 12px; border-left: 4px solid var(--primary); }
.hot-list li { margin-bottom: 14px; }
.hot-list a { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.hot-list a:hover { color: var(--primary); }
.hot-list .rank { display: inline-block; width: 22px; height: 22px; line-height: 22px; text-align: center; background: var(--primary-light); color: var(--primary); border-radius: 6px; font-size: 12px; font-weight: 700; margin-right: 8px; }

/* ============ 文章详情 ============ */
.article-wrap { max-width: 860px; margin: 0 auto; }
.article-head { text-align: center; margin-bottom: 30px; }
.article-head h1 { font-size: 32px; font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.article-head .meta { color: var(--muted); font-size: 14px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.article-cover img { width: 100%; }
.article-cover .cover-ph { height: 280px; display: flex; align-items: center; justify-content: center; font-size: 60px; color: #fff; }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.contact-info-card .row { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; }
.contact-info-card .row .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.contact-info-card .row b { display: block; margin-bottom: 2px; }
.contact-info-card .row span { color: var(--muted); font-size: 14.5px; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14.5px; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,73,200,.12); }

/* ============ 404 ============ */
.notfound { text-align: center; padding: 110px 0; }
.notfound .code { font-size: 120px; font-weight: 800; color: var(--primary); line-height: 1; }
.notfound h1 { font-size: 28px; margin: 10px 0 16px; }
.notfound p { color: var(--muted); margin-bottom: 30px; }

/* ============ 页脚 ============ */
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 52px 20px 40px; }
.footer-col h3 { font-size: 17px; margin-bottom: 18px; color: var(--ink); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--muted); font-size: 14.5px; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-about p { color: var(--muted); font-size: 14px; }
.footer-contact ul li { color: var(--muted); font-size: 14.5px; }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a:hover { color: var(--primary); }

/* ============ 手机固定底部按钮 ============ */
.mobile-fixed-bar { display: none; }

/* ============ Toast ============ */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(20px);
  background: rgba(17, 24, 39, .92); color: #fff; padding: 10px 20px; border-radius: 8px;
  font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .reason-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .regul-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .intro-grid, .offices-grid, .contact-grid, .news-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .slide-inner h2 { font-size: 30px; }
  .slider { height: 440px; }
  .intro-stats { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 52px 0; }
  .section-title h2 { font-size: 26px; }
  .mobile-fixed-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
    background: var(--white); border-top: 1px solid var(--line); padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)); gap: 12px;
  }
  .mobile-fixed-bar .btn { flex: 1; }
  body { padding-bottom: 66px; }
}

@media (max-width: 560px) {
  .product-grid, .news-grid, .reason-grid, .regul-grid, .office-list, .adv-grid { grid-template-columns: 1fr; }
  .intro-stats { grid-template-columns: 1fr 1fr; }
  .news-list-item { flex-direction: column; }
  .news-list-item .thumb { width: 100%; height: 160px; }
  .page-banner h1 { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
