/* ═══════════════════════════════════════════════════════════
   有马信息首页 — 与 style.css 统一配色
   深蓝科技风 + 翠绿强调色，圆角卡片
   ═══════════════════════════════════════════════════════════ */

:root {
  --primary:          #0a1628;
  --primary-light:    #132040;
  --primary-mid:      #1a2d52;
  --accent:           #00c9a7;
  --accent-dark:      #00a88a;
  --accent-light:     #00e6bf;
  --secondary:        #4a90d9;
  --secondary-light:  #6baaf0;
  --text:             #1a1a2e;
  --text-light:       #5a6578;
  --text-lighter:     #8b95a5;
  --text-on-dark:     #e0e6ef;
  --text-on-dark-muted: #9aa5b8;
  --bg:               #ffffff;
  --bg-light:         #f5f7fa;
  --border:           #e2e8f0;
  --border-light:     #f0f3f7;
  --shadow-sm:        0 1px 3px rgba(10,22,40,.06);
  --shadow:           0 4px 20px rgba(10,22,40,.08);
  --shadow-lg:        0 12px 40px rgba(10,22,40,.12);
  --radius:           12px;
  --radius-lg:        20px;
  --radius-xl:        28px;
  --transition:       .3s cubic-bezier(.4,0,.2,1);
  --font:             'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif:            'Noto Serif SC', Georgia, serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.h-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.h-center { text-align: center; }
.h-serif { font-family: var(--serif); }
.h-text-lime { color: var(--accent); }


/* ═══════ BUTTONS ═══════ */
.h-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 600;
  font-size: .92rem; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  font-family: var(--font); white-space: nowrap;
}
.h-btn i { font-size: .85em; transition: transform .3s; }
.h-btn:hover i { transform: translateX(4px); }

.h-btn-lime { background: var(--accent); color: #fff; border-color: var(--accent); }
.h-btn-lime:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(0,201,167,.3); }

.h-btn-dark { background: var(--primary); color: #fff; border-color: var(--primary); }
.h-btn-dark:hover { background: var(--primary-mid); }

.h-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.h-btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.h-btn-outline-dark { background: transparent; color: var(--text); border-color: var(--border); }
.h-btn-outline-dark:hover { border-color: var(--accent); color: var(--primary); }

.h-btn-lg { padding: 16px 36px; font-size: 1rem; }
.h-btn-sm { padding: 10px 22px; font-size: .85rem; }


/* ═══════ HEADER ═══════ */
.h-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: var(--primary); transition: var(--transition);
}
.h-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.h-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.h-logo { display: flex; align-items: center; gap: 10px; }
.h-logo-icon {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: #fff url("../img/logo.png") center/contain no-repeat;
  color: transparent; border-radius: 10px; font-size: 0;
}
.h-logo-text { color: #fff; font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.h-logo-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 3px;
  opacity: 0.7;
  text-transform: uppercase;
}

.h-nav-list { display: flex; align-items: center; gap: 4px; }
.h-nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; color: rgba(255,255,255,.8); font-size: .92rem;
  border-radius: 8px; transition: var(--transition);
}
.h-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.h-nav-link i { font-size: .6rem; transition: transform .3s; }
.h-has-dropdown:hover .h-nav-link i { transform: rotate(180deg); }

.h-has-dropdown { position: relative; }
.h-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0; visibility: hidden; transition: all .3s; padding-top: 8px;
}
.h-has-dropdown:hover .h-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.h-dropdown-inner {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 28px; display: flex; gap: 36px; min-width: 520px;
}
.h-dropdown-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-lighter); margin-bottom: 14px; }
.h-dropdown-col a { display: block; padding: 6px 0; color: var(--text); font-size: .88rem; }
.h-dropdown-col a:hover { color: var(--accent); transform: translateX(4px); }

.h-header-actions { display: flex; align-items: center; gap: 12px; }
.h-mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.h-mobile-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }


/* ═══════ HERO ═══════ */
.h-hero {
  background: var(--primary); padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.h-hero::before {
  content: ''; position: absolute; top: -40%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,.08), transparent 60%);
}
.h-hero::after {
  content: ''; position: absolute; bottom: -30%; left: -15%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,144,217,.06), transparent 60%);
}

.h-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center; position: relative; z-index: 1;
}

.h-hero-content h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 20px;
}

.h-hero-desc {
  color: rgba(255,255,255,.7); font-size: 1.05rem; line-height: 1.8;
  margin-bottom: 32px; max-width: 500px;
}

.h-hero-btns { display: flex; gap: 14px; margin-bottom: 36px; flex-wrap: wrap; }

.h-hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.h-trust-item {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.6); font-size: .85rem;
}
.h-trust-item i { color: var(--accent); font-size: .9rem; }

.h-hero-visual { display: flex; justify-content: center; position: relative; }
.h-hero-img-wrap {
  width: 100%; max-width: 480px; aspect-ratio: 4/3;
  background: rgba(255,255,255,.04); border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.h-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 12px;
}

.h-hero-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; width: 100%; height: 100%; color: rgba(255,255,255,.3);
}
.h-hero-placeholder i { font-size: 3rem; }
.h-hero-placeholder span { font-size: .9rem; }
.h-hero-placeholder small { font-size: .75rem; font-family: monospace; opacity: .5; }


/* ═══════ BRANDS ═══════ */
.h-brands { padding: 40px 0; border-bottom: 1px solid var(--border); }
.h-brands-label {
  text-align: center; font-size: .8rem; color: var(--text-lighter);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px;
}
.h-brands-row { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.h-brand {
  padding: 10px 24px; font-weight: 600; font-size: .95rem;
  color: var(--text-lighter); border: 1px solid var(--border);
  border-radius: var(--radius); transition: var(--transition);
}
.h-brand:hover { border-color: var(--accent); color: var(--primary); }


/* ═══════ SECTIONS ═══════ */
.h-section { padding: 90px 0; }
.h-section-gray { background: var(--bg-light); }

.h-section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--text);
  text-align: center; margin-bottom: 48px; line-height: 1.3;
}

.h-section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.h-section-head .h-section-title { margin-bottom: 0; text-align: left; }

.h-link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-weight: 600; font-size: .95rem; margin-top: 20px;
}
.h-link-arrow:hover { gap: 12px; }


/* ═══════ FACTS ═══════ */
.h-facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.h-facts-text h2 { font-size: 2.2rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.h-facts-text p { color: var(--text-light); font-size: .95rem; line-height: 1.8; margin-bottom: 12px; }

.h-facts-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.h-stat-card {
  padding: 32px 24px; border-radius: var(--radius-lg); text-align: center;
  border: 1px solid var(--border); background: var(--bg);
  transition: var(--transition);
}
.h-stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.h-stat-accent { background: var(--accent) !important; border-color: var(--accent) !important; }
.h-stat-accent .h-stat-num { color: var(--primary); }
.h-stat-accent .h-stat-label { color: rgba(10,22,40,.6); }

.h-stat-num { font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 6px; }
.h-stat-label { font-size: .85rem; color: var(--text-lighter); }


/* ═══════ BENEFITS ═══════ */
.h-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.h-benefit-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; text-align: center; transition: var(--transition);
}
.h-benefit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }

.h-benefit-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--border); border-radius: var(--radius);
  font-size: 1.5rem; color: var(--primary); transition: var(--transition);
}
.h-benefit-card:hover .h-benefit-icon { border-color: var(--accent); background: rgba(0,201,167,.1); color: var(--accent); }

.h-benefit-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.h-benefit-card p { color: var(--text-light); font-size: .9rem; line-height: 1.7; }


/* ═══════ WHY SECTION ═══════ */
.h-why-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  position: relative; overflow: hidden;
}

.h-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.h-why-content h2 { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 32px; }

.h-why-cards { display: flex; flex-direction: column; gap: 16px; }

.h-why-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 20px; transition: var(--transition);
}
.h-why-card:hover { background: rgba(255,255,255,.1); border-color: rgba(0,201,167,.3); }

.h-why-card-icon {
  width: 44px; height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(0,201,167,.15), rgba(74,144,217,.15));
  color: var(--accent); border-radius: 12px; font-size: 1.1rem;
}

.h-why-card h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.h-why-card p { font-size: .85rem; color: var(--text-on-dark-muted); line-height: 1.5; }

.h-why-visual { position: relative; }
.h-why-img-wrap {
  width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.h-why-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.h-why-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--primary); color: #fff; border-radius: var(--radius);
  padding: 16px 24px; display: flex; flex-direction: column; align-items: center;
  box-shadow: var(--shadow-lg);
}
.h-why-badge-num { font-size: 1.8rem; font-weight: 900; color: var(--accent); line-height: 1; }
.h-why-badge-text { font-size: .75rem; color: rgba(255,255,255,.7); margin-top: 2px; }


/* ═══════ STEPS ═══════ */
.h-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.h-step-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; text-align: center; transition: var(--transition); position: relative;
}
.h-step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.h-step-num {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 14px;
}
.h-step-num span {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; background: var(--accent); border-radius: 50%;
  font-size: .85rem; font-weight: 800; color: #fff;
}

.h-step-card p { color: var(--text-light); font-size: .9rem; line-height: 1.7; margin-bottom: 20px; }

.h-step-icon {
  width: 60px; height: 60px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); border-radius: var(--radius);
  font-size: 1.4rem; color: var(--primary);
}


/* ═══════ PRODUCTS ═══════ */
.h-products-scroll { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.h-product-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition); display: block;
}
.h-product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }

.h-product-img {
  height: 180px; background: var(--bg-light);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.h-product-img img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.h-pimg-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #c0c8d4; font-size: 2.5rem; }

.h-product-body { padding: 20px; text-align: center; }
.h-product-tag {
  display: inline-block; padding: 3px 12px; border-radius: 50px;
  font-size: .72rem; font-weight: 600; margin-bottom: 8px;
  background: rgba(10,22,40,.06); color: var(--primary);
}
.h-tag-new { background: rgba(0,201,167,.1); color: var(--accent-dark); }
.h-tag-cn  { background: rgba(0,201,167,.08); color: var(--accent-dark); }

.h-product-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.h-product-body p { font-size: .82rem; color: var(--text-lighter); line-height: 1.5; }


/* ═══════ CASES ═══════ */
.h-cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.h-case-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; transition: var(--transition); display: flex; flex-direction: column;
}
.h-case-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--accent); }

.h-case-tag {
  display: inline-block; padding: 4px 14px; border-radius: 50px;
  font-size: .75rem; font-weight: 600; margin-bottom: 14px; align-self: flex-start;
  background: var(--primary); color: var(--accent);
}

.h-case-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; color: var(--text); line-height: 1.4; }
.h-case-card p { font-size: .88rem; color: var(--text-light); line-height: 1.6; flex-grow: 1; margin-bottom: 16px; }

.h-case-link { color: var(--accent); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.h-case-card:hover .h-case-link { gap: 10px; }


/* ═══════ CTA ═══════ */
.h-cta { background: var(--primary); padding: 90px 0; position: relative; overflow: hidden; }
.h-cta::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,167,.1), transparent 60%);
}

.h-cta-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 1; }

.h-cta-text h2 { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 16px; }
.h-cta-text p { color: rgba(255,255,255,.6); font-size: 1rem; margin-bottom: 32px; }
.h-cta-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.h-cta-visual { display: flex; justify-content: center; }
.h-cta-stat {
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px; width: 100%; max-width: 340px;
}
.h-cta-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-cta-stat-row div {
  padding: 20px 16px; text-align: center;
  background: rgba(255,255,255,.04); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.06); transition: var(--transition);
}
.h-cta-stat-row div:hover { background: rgba(255,255,255,.08); }
.h-cta-stat-row strong { display: block; font-size: 1.6rem; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.h-cta-stat-row span { font-size: .78rem; color: rgba(255,255,255,.5); }


/* ═══════ FOOTER ═══════ */
.h-footer { background: #070e1a; padding: 64px 0 0; }

.h-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }

.h-footer .h-logo-icon { background: #fff url("../img/logo.png") center/contain no-repeat; }
.h-footer .h-logo-text { color: #fff; }

.h-footer-brand p { color: var(--text-on-dark-muted); font-size: .88rem; margin-top: 14px; line-height: 1.6; }
.h-footer-contact { margin-top: 20px; }
.h-footer-contact p { display: flex; align-items: center; gap: 8px; color: var(--text-on-dark-muted); font-size: .85rem; margin-top: 6px; }

.h-footer-links h4 { color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 16px; }
.h-footer-links a { display: block; color: var(--text-on-dark-muted); font-size: .88rem; padding: 5px 0; transition: var(--transition); }
.h-footer-links a:hover { color: var(--accent); transform: translateX(4px); }

.h-footer-bottom { padding: 20px 0; text-align: center; }
.h-footer-bottom p { color: rgba(255,255,255,.3); font-size: .8rem; }


/* ═══════ ENTRANCE ═══════ */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 4;
  opacity: 0; visibility: hidden; transition: all .3s;
}
.nav-overlay.active { opacity: 1; visibility: visible; }


/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
  .h-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .h-hero-visual { order: -1; }
  .h-hero-img-wrap { max-width: 400px; margin: 0 auto; }
  .h-facts-grid { grid-template-columns: 1fr; gap: 40px; }
  .h-why-grid { grid-template-columns: 1fr; gap: 40px; }
  .h-why-visual { order: -1; max-width: 400px; margin: 0 auto; }
  .h-cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .h-products-scroll { grid-template-columns: repeat(2, 1fr); }
  .h-cases-grid { grid-template-columns: repeat(2, 1fr); }
  .h-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .h-mobile-toggle { display: flex; }
  .h-header-actions .h-btn { display: none; }

  .h-nav {
    position: fixed; top: 0; right: -100%; width: 85%; max-width: 380px;
    height: 100vh; background: var(--primary); padding: 90px 28px 40px;
    transition: right .4s; z-index: 5; overflow-y: auto;
  }
  .h-nav.active { right: 0; }
  .h-nav-list { flex-direction: column; gap: 0; }
  .h-nav-link { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1rem; }
  .h-dropdown { position: static; transform: none; opacity: 1; visibility: visible; padding: 0; display: none; }
  .h-has-dropdown.open .h-dropdown { display: block; }
  .h-dropdown-inner { flex-direction: column; gap: 16px; min-width: 0; padding: 12px; background: rgba(255,255,255,.04); border-radius: var(--radius); margin-top: 8px; box-shadow: none; }
  .h-dropdown-col h4 { color: var(--accent); }
  .h-dropdown-col a { color: var(--text-on-dark-muted); }
  .h-dropdown-col a:hover { color: var(--accent); }

  .h-hero { padding: 120px 0 60px; }
  .h-hero-content h1 { font-size: 2rem; }
  .h-hero-trust { flex-direction: column; gap: 8px; }
  .h-section { padding: 60px 0; }
  .h-why-section { padding: 60px 0; }

  .h-benefits-grid { grid-template-columns: 1fr; }
  .h-steps-grid { grid-template-columns: 1fr; }
  .h-products-scroll { grid-template-columns: 1fr; }
  .h-cases-grid { grid-template-columns: 1fr; }
  .h-footer-grid { grid-template-columns: 1fr; }

  .h-section-head { flex-direction: column; gap: 16px; align-items: flex-start; }
  .h-section-head .h-section-title { text-align: left; }
}
