/* ==========================================================================
   北京华恒融通科技有限公司 企业官网
   style.css —— 全局设计系统 / 组件 / 响应式
   品牌：深空蓝 #0A2463（主）/ 品牌红 #C41E3A（CTA）/ 科技蓝 #3E92CC / 金融金 #D4AF37
   风格参考：联想集团官网（大Banner + 卡片布局 + 吸顶导航 + 响应式 + 科技感）
   ========================================================================== */

/* ---------- 1. 设计变量 Design Tokens ---------- */
:root {
  --color-brand:       #0A2463;   /* 主色：深空蓝 */
  --color-brand-dark:  #071A4A;
  --color-brand-light: #EAF0FB;
  --color-accent:      #C41E3A;   /* 品牌红 */
  --color-accent-dark: #A11830;
  --color-tech:        #3E92CC;   /* 科技蓝 */
  --color-gold:        #D4AF37;   /* 金融金 */

  --color-bg:          #FFFFFF;
  --color-bg-gray:     #F5F7FA;
  --color-text:        #1F2937;
  --color-text-muted:  #6B7280;
  --color-border:      #E5E7EB;

  --font-sans: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --container-w: 1200px;
  --shadow-card: 0 6px 24px rgba(10, 36, 99, .08);
  --shadow-hover: 0 12px 32px rgba(10, 36, 99, .16);
  --header-h: 72px;
  --transition: all .3s ease;
}

/* ---------- 2. 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container-w); margin: 0 auto; padding: 0 20px; }

/* ---------- 3. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px; font-size: 15px; font-weight: 600;
  border: none; gap: 8px; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(196,30,58,.3); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--color-brand); }
.btn-ghost { background: transparent; color: var(--color-brand); border: 2px solid var(--color-brand); }
.btn-ghost:hover { background: var(--color-brand); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: #fff; color: var(--color-brand); }

/* ---------- 4. 顶部信息条 ---------- */
.top-bar { background: var(--color-brand-dark); color: rgba(255,255,255,.85); font-size: 13px; padding: 7px 0; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.bar-links { display: flex; gap: 22px; }
.bar-links a:hover { color: #fff; }

/* ---------- 5. 吸顶导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.05); transition: var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(10,36,99,.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-name { font-size: 19px; font-weight: 700; color: var(--color-brand); }
.logo-name small { display: block; font-size: 11px; font-weight: 400; color: var(--color-text-muted); letter-spacing: .5px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; color: var(--color-text);
}
.main-nav a:hover { color: var(--color-accent); background: var(--color-brand-light); }
.main-nav a.active { color: var(--color-accent); font-weight: 600; }
.nav-cta .btn { padding: 10px 22px; font-size: 14px; }

/* 汉堡按钮 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; border-radius: 3px; background: var(--color-brand); transition: var(--transition); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. Hero 轮播 ---------- */
.hero { position: relative; overflow: hidden; background: var(--color-brand); color: #fff; }
.hero-slider { position: relative; min-height: 560px; }
.hero-slide {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .8s ease; padding: 80px 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-slide.is-active { opacity: 1; visibility: visible; position: relative; }
.hero-slide h1 { font-size: 48px; line-height: 1.25; margin-bottom: 18px; font-weight: 800; }
.hero-slide h1 .highlight { color: #FFD24C; }
.hero-slide p { font-size: 18px; color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); transition: var(--transition); }
.hero-dots button.active { background: #fff; width: 28px; border-radius: 999px; }

/* ---------- 7. 通用板块 ---------- */
.section { padding: 84px 0; }
.section--gray { background: var(--color-bg-gray); }
.section--dark { background: var(--color-brand); color: #fff; }
.section--brand-light { background: var(--color-brand-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-tag { display: inline-block; font-size: 13px; font-weight: 600; color: var(--color-accent); background: rgba(196,30,58,.08); padding: 4px 14px; border-radius: 999px; margin-bottom: 14px; letter-spacing: 1px; }
.section-title { font-size: 34px; font-weight: 800; color: var(--color-brand); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--color-text-muted); }
.section--dark .section-tag { background: rgba(255,255,255,.12); color: #FFD24C; }
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: rgba(255,255,255,.7); }

/* ---------- 8. 优势卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px 26px;
  box-shadow: var(--shadow-card); text-align: center; transition: var(--transition); border: 1px solid #fff;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--color-brand-light); }
.feature-icon {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
  background: var(--color-brand-light); color: var(--color-brand); font-size: 30px; font-weight: 800;
}
.feature-card h3 { font-size: 18px; color: var(--color-brand); margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.7; }

/* ---------- 9. 数据指标 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-item { text-align: center; }
.stat-num { font-size: 46px; font-weight: 800; color: #fff; line-height: 1.1; }
.stat-num .unit { font-size: 20px; color: #FFD24C; }
.stat-label { margin-top: 6px; color: rgba(255,255,255,.75); font-size: 15px; }

/* ---------- 10. 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border);
  transition: var(--transition); display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.product-card .card-img { overflow: hidden; aspect-ratio: 16/9; background: var(--color-brand-light); }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .card-img img { transform: scale(1.06); }
.product-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-card h3 { font-size: 18px; color: var(--color-brand); margin-bottom: 10px; }
.product-card .card-desc { font-size: 14px; color: var(--color-text-muted); flex: 1; margin-bottom: 16px; }
.product-card .card-link { color: var(--color-accent); font-weight: 600; font-size: 14px; }
.product-card .card-link:hover { color: var(--color-accent-dark); }

/* ---------- 11. 关于/简介 ---------- */
.about-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.about-content h2 { font-size: 30px; font-weight: 800; color: var(--color-brand); margin-bottom: 18px; }
.about-content p { color: var(--color-text-muted); margin-bottom: 16px; font-size: 15px; }
.about-points { margin: 20px 0 28px; }
.about-points li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--color-text); font-size: 15px; }
.about-points .tick { color: var(--color-accent); font-weight: 800; }

/* ---------- 12. 新闻卡片 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border);
  transition: var(--transition);
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.news-card .card-body { padding: 22px; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--color-text-muted); margin-bottom: 10px; }
.news-tag { background: var(--color-brand-light); color: var(--color-brand); padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.news-card h3 { font-size: 17px; color: var(--color-brand); margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 14px; color: var(--color-text-muted); }

/* ---------- 13. CTA 横幅 ---------- */
.cta-band { background: url("../assets/img/bg_fintech_dark.png") center/cover no-repeat, var(--color-brand); position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(7,26,74,.78); }
.cta-inner { position: relative; z-index: 2; text-align: center; padding: 30px 0; }
.cta-inner h2 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-inner p { color: rgba(255,255,255,.82); margin-bottom: 28px; font-size: 17px; }

/* ---------- 14. 页面横幅（内页顶部） ---------- */
.page-banner { background: linear-gradient(120deg, var(--color-brand) 0%, #12316e 60%, #1a4a9e 100%); color: #fff; padding: 72px 0 60px; }
.page-banner h1 { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.page-banner .breadcrumb { color: rgba(255,255,255,.7); font-size: 14px; }
.page-banner .breadcrumb a { color: #FFD24C; }
.page-banner .breadcrumb a:hover { color: #fff; }

/* ---------- 15. 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.contact-info li { display: flex; gap: 16px; margin-bottom: 22px; }
.contact-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; background: var(--color-brand-light); color: var(--color-brand); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; }
.contact-info h4 { font-size: 15px; color: var(--color-text); margin-bottom: 3px; }
.contact-info p { color: var(--color-text-muted); font-size: 14px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-card); border: 1px solid var(--color-border); }
.form-card h3 { font-size: 20px; color: var(--color-brand); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--color-text); margin-bottom: 7px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; transition: var(--transition); background: #fff; color: var(--color-text);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(10,36,99,.08); }
.form-group textarea { resize: vertical; min-height: 130px; }

/* ---------- 16. 页脚 ---------- */
.site-footer { background: #081333; color: rgba(255,255,255,.72); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .footer-logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.footer-brand .footer-logo img { height: 40px; margin-bottom: 10px; }
.footer-brand p { font-size: 14px; line-height: 1.8; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; font-size: 14px; }
.footer-col ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 12px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* ---------- 17. 滚动动画 ---------- */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
[data-animate].in-view { opacity: 1; transform: none; }

/* ---------- 18. 回到顶部 ---------- */
.back-top { position: fixed; right: 28px; bottom: 30px; width: 46px; height: 46px; border-radius: 50%; background: var(--color-brand); color: #fff; border: none; font-size: 20px; box-shadow: var(--shadow-card); opacity: 0; visibility: hidden; transition: var(--transition); z-index: 90; }
.back-top.show { opacity: 1; visibility: visible; }
.back-top:hover { background: var(--color-accent); transform: translateY(-3px); }

/* ---------- 19. 分页 ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: 1px solid var(--color-border); font-size: 14px; color: var(--color-text); }
.pagination a:hover { border-color: var(--color-brand); color: var(--color-brand); }
.pagination .current { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }

/* ==========================================================================
   响应式三档断点
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-slide h1 { font-size: 38px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh; background: #fff;
    flex-direction: column; align-items: flex-start; padding: 84px 26px; gap: 6px;
    box-shadow: -10px 0 30px rgba(0,0,0,.12); transition: right .35s ease; z-index: 150;
  }
  .main-nav.open { right: 0; }
  .main-nav a { width: 100%; font-size: 16px; padding: 12px 10px; }
  .nav-cta { margin-top: 16px; width: 100%; }
  .nav-cta .btn { width: 100%; }
  .nav-overlay { position: fixed; inset: 0; background: rgba(7,26,74,.5); z-index: 120; opacity: 0; visibility: hidden; transition: var(--transition); }
  .nav-overlay.show { opacity: 1; visibility: visible; }
  .hero-slider { min-height: 460px; }
  .hero-slide { padding: 56px 0; }
  .hero-slide h1 { font-size: 30px; }
  .hero-slide p { font-size: 16px; }
  .section { padding: 60px 0; }
  .section-title { font-size: 28px; }
  .product-grid, .news-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .page-banner h1 { font-size: 30px; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-slider { min-height: 400px; }
  .hero-slide h1 { font-size: 26px; }
  .top-bar .bar-links .hide-mobile { display: none; }
  .logo-name { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}