/* ========================================
   厦门寰商科技有限公司 - 官网样式
   科技蓝主题
   ======================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #333; background: #fff; line-height: 1.7; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color .3s; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.section-title {
  text-align: center; font-size: 2rem; font-weight: 700;
  margin-bottom: 15px; color: #0D47A1;
}
.section-subtitle {
  text-align: center; font-size: 1.05rem; color: #888;
  margin-bottom: 60px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block; padding: 14px 36px; border-radius: 50px;
  font-size: 1rem; font-weight: 600; cursor: pointer; border: none;
  transition: all .3s ease; letter-spacing: .5px;
}
.btn-primary {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  color: #fff; box-shadow: 0 4px 15px rgba(13,71,161,.3);
}
.btn-primary:hover {
  transform: translateY(-2px); box-shadow: 0 8px 25px rgba(13,71,161,.4);
}
.btn-outline {
  background: transparent; color: #1565C0; border: 2px solid #1565C0;
}
.btn-outline:hover { background: #1565C0; color: #fff; }
.btn-white {
  background: #fff; color: #0D47A1; box-shadow: 0 4px 15px rgba(0,0,0,.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }

/* ========================================
   Navbar
   ======================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 18px 0; transition: all .4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97); box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: 10px 0;
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.navbar .logo {
  font-size: 1.5rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.navbar .logo span.hl { color: #64B5F6; }
.navbar.scrolled .logo { color: #0D47A1; }
.navbar.scrolled .logo span.hl { color: #1565C0; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0;
  height: 2px; background: #64B5F6; transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }
.navbar.scrolled .nav-links a { color: #444; }
.navbar.scrolled .nav-links a:hover { color: #0D47A1; }
.navbar.scrolled .nav-links a::after { background: #0D47A1; }

.mobile-toggle {
  display: none; flex-direction: column; cursor: pointer; gap: 5px;
  background: none; border: none; padding: 5px;
}
.mobile-toggle span {
  width: 28px; height: 3px; background: #fff; border-radius: 3px;
  transition: all .3s;
}
.navbar.scrolled .mobile-toggle span { background: #0D47A1; }

/* ========================================
   Hero
   ======================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D1B2A 0%, #0D47A1 50%, #1565C0 100%);
  display: flex; align-items: flex-start; position: relative; overflow: hidden;
  padding: 110px 0 60px; box-sizing: border-box;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(100,181,246,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(66,165,245,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; text-align: center; width: 100%; margin: auto; }
.hero h1 {
  font-size: 3.2rem; font-weight: 800; color: #fff; margin-bottom: 20px;
  line-height: 1.25;
}
.hero h1 .accent { color: #64B5F6; }
.hero p {
  font-size: 1.2rem; color: rgba(255,255,255,.7);
  max-width: 650px; margin: 0 auto 40px; line-height: 1.8;
}
.hero .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Hero Stats */
.hero-stats {
  display: flex; justify-content: center; gap: 60px; margin-top: 60px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2.4rem; font-weight: 800; color: #64B5F6; display: block;
}
.hero-stat .label { font-size: .9rem; color: rgba(255,255,255,.6); }

/* ========================================
   Agent CTA Banner
   ======================================== */
.agent-banner {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  padding: 55px 0;
}
.agent-banner-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.agent-banner-text h3 {
  color: #fff; font-size: 1.5rem; font-weight: 800; margin-bottom: 8px;
}
.agent-banner-text p { color: rgba(255,255,255,.75); font-size: 1rem; }
.agent-banner-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-agent-login {
  background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6);
}
.btn-agent-login:hover { border-color: #fff; background: rgba(255,255,255,.12); color: #fff; }

/* ========================================
   Products
   ======================================== */
.products { background: #F8FAFE; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}
.product-card {
  background: #fff; border-radius: 16px; padding: 35px 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,.06); transition: all .3s;
  border: 1px solid rgba(0,0,0,.04);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(13,71,161,.12);
  border-color: rgba(13,71,161,.1);
}
.product-card .icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.6rem;
}
.product-card h3 { font-size: 1.2rem; color: #0D47A1; margin-bottom: 12px; }
.product-card p { font-size: .92rem; color: #666; line-height: 1.7; }

/* Product Screenshots */
.products-showcase { margin-top: 80px; }
.products-showcase h3 {
  text-align: center; font-size: 1.5rem; color: #0D47A1;
  margin-bottom: 40px;
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
}
.showcase-item {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); transition: all .3s;
  border: 1px solid #eee; background: #fff;
}
.showcase-item:hover { box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.showcase-item img { width: 100%; display: block; }
.showcase-item .caption {
  padding: 16px 20px; font-size: .9rem; color: #555;
  text-align: center; font-weight: 500;
}

/* ========================================
   About
   ======================================== */
.about {
  background: linear-gradient(135deg, #0D1B2A, #0D47A1);
  color: #fff;
}
.about-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: 2rem; margin-bottom: 25px; color: #fff; }
.about-text h2 .accent { color: #64B5F6; }
.about-text p { color: rgba(255,255,255,.75); margin-bottom: 20px; line-height: 1.9; }
.about-features { margin-top: 30px; }
.about-features li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 18px; color: rgba(255,255,255,.8);
}
.about-features li .check {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(100,181,246,.2); color: #64B5F6;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .8rem; margin-top: 2px;
}
.about-values {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.value-card {
  background: rgba(255,255,255,.06); border-radius: 12px;
  padding: 28px; border: 1px solid rgba(255,255,255,.08);
  transition: all .3s;
}
.value-card:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.value-card h4 { font-size: 1.1rem; color: #64B5F6; margin-bottom: 10px; }
.value-card p { font-size: .9rem; color: rgba(255,255,255,.65); line-height: 1.7; }

/* ========================================
   Cases
   ======================================== */
.cases { background: #F8FAFE; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}
.case-card {
  background: #fff; border-radius: 16px; padding: 35px 30px;
  box-shadow: 0 2px 15px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.04); transition: all .3s;
}
.case-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(13,71,161,.1);
}
.case-card .company {
  font-size: .8rem; color: #1565C0; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.case-card h3 { font-size: 1.15rem; color: #333; margin-bottom: 12px; }
.case-card p { font-size: .92rem; color: #666; line-height: 1.7; margin-bottom: 16px; }
.case-card .tag {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: .8rem; font-weight: 500; margin-right: 6px; margin-bottom: 6px;
}
.tag-blue { background: #E3F2FD; color: #1565C0; }
.tag-green { background: #E8F5E9; color: #2E7D32; }
.tag-orange { background: #FFF3E0; color: #E65100; }

/* ========================================
   Contact
   ======================================== */
.contact { background: #fff; }
.contact-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.contact-info h3 {
  font-size: 1.5rem; color: #0D47A1; margin-bottom: 20px;
}
.contact-info p { color: #666; line-height: 1.8; margin-bottom: 30px; }
.contact-info .item {
  display: flex; align-items: flex-start; gap: 15px; margin-bottom: 20px;
}
.contact-info .item .icn {
  width: 44px; height: 44px; border-radius: 12px;
  background: #E3F2FD; color: #0D47A1;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.1rem;
}
.contact-info .item h4 { font-size: .95rem; color: #333; margin-bottom: 4px; }
.contact-info .item p { font-size: .9rem; color: #666; margin-bottom: 0; }

.contact-form .form-group { margin-bottom: 20px; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 14px 18px; border: 2px solid #E0E0E0;
  border-radius: 10px; font-size: .95rem; font-family: inherit;
  transition: border-color .3s; outline: none; background: #FAFAFA;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #1565C0; background: #fff; }
.contact-form textarea { height: 140px; resize: vertical; }
.contact-form .btn { width: 100%; }

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #0D1B2A; color: rgba(255,255,255,.6); padding: 50px 0 30px;
}
.footer-content {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer .logo { font-size: 1.2rem; font-weight: 700; color: #fff; }
.footer .logo span { color: #64B5F6; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: rgba(255,255,255,.5); font-size: .9rem; }
.footer-links a:hover { color: #64B5F6; }
.footer-bottom {
  margin-top: 30px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center; font-size: .85rem; color: rgba(255,255,255,.4);
}

/* ========================================
   Responsive
   ======================================== */
/* ========================================
   🛡️ 防跑位安全规则（任何时候缩放都不重叠）
   ======================================== */

/* 所有图片：最大不超容器宽度，高度自适应，不脱离文档流 */
img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  position: static !important;  /* 防止意外 absolute */
}

/* 背景图统一用 cover/center，不用 <img> 标签时 */
[class*="bg-image"], .has-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 所有区块：内容撑开高度，不用固定 height（hero 除外——它需要 100vh 全屏首屏） */
.section, [class*="section"] {
  height: auto;
  min-height: 0;  /* 允许内容决定高度 */
}

/* 容器溢出控制 */
.container, .row, [class*="wrapper"], [class*="content"] {
  overflow: visible;
}

/* 模块间间距由 padding 控制，不用 margin 负值 */
.section + .section {
  margin-top: 0;  /* 防止负 margin 导致重叠 */
}

@media (max-width: 968px) {
  .about-content { grid-template-columns: 1fr; gap: 40px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.4rem; }
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1); gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: #333 !important; }
  .nav-links a::after { background: #0D47A1 !important; }

  .section { padding: 60px 0; }
  .hero { min-height: 90vh; }
  .hero h1 { font-size: 1.8rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { gap: 30px; }
  .hero-stat .num { font-size: 1.8rem; }

  .products-grid, .cases-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
  .about-values { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
}
