/* ==========================================================
   gemmacoo-home.css
   鲸麦科技官网单页版式样式（导航 / Hero / 区块 / 页脚）
   所有类名以 gm- 前缀作用域，避免影响后台与其他页面
   ========================================================== */

:root {
  --gm-navy: #0a2540;
  --gm-navy-2: #103a63;
  --gm-blue: #1f6feb;
  --gm-cyan: #2bb3c0;
  --gm-text: #24344d;
  --gm-text-light: #5a6b84;
  --gm-bg: #f5f8fc;
  --gm-line: #e4eaf2;
  --gm-radius: 16px;
  --gm-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --gm-shadow-hover: 0 18px 44px rgba(10, 37, 64, 0.14);
}

html {
  scroll-behavior: smooth;
}

body.gm-page {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--gm-text);
  background: #fff;
  /* 覆盖 frontend.css 的 body{padding-top:60px}，首页 Hero 需要顶到页面最上方 */
  padding-top: 0;
}

body.gm-page main.content {
  padding: 0;
}

/* 非首页（登录/注册/用户中心等共用布局的子页）保留固定导航的避让高度 */
body.gm-page.gm-subpage main.content {
  padding: 80px 15px 20px;
}

/* ---------- 顶部导航 ---------- */
.gm-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  background: transparent;
}

.gm-nav .gm-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-nav .gm-nav-logo img {
  display: block;
  height: 34px;
  width: auto;
}

/* 滚动后 / 非首页时导航solid态 */
.gm-nav.gm-nav-solid {
  background: rgba(10, 37, 64, 0.96);
  box-shadow: 0 4px 18px rgba(10, 37, 64, 0.25);
}

/* ---------- Hero ---------- */
.gm-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 82% 18%, rgba(43, 179, 192, 0.28), transparent 60%),
    radial-gradient(700px 420px at 12% 88%, rgba(31, 111, 235, 0.30), transparent 62%),
    linear-gradient(135deg, #081e35 0%, var(--gm-navy) 42%, var(--gm-navy-2) 100%);
  color: #fff;
  padding: 140px 24px 90px;
}

.gm-hero::before {
  /* 装饰性波纹线条 */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 480px at 68% 34%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 480px at 68% 34%, #000 20%, transparent 75%);
  pointer-events: none;
}

.gm-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.gm-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 28px;
}

.gm-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
  color: #fff;
}

.gm-hero h1 .gm-hero-sub {
  display: block;
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 14px;
  letter-spacing: 1px;
}

.gm-hero-desc {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.72);
  margin: 22px 0 38px;
}

.gm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gm-btn {
  display: inline-block;
  border-radius: 999px;
  padding: 13px 34px;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: all 0.25s ease;
}

.gm-btn-primary {
  background: var(--gm-blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(31, 111, 235, 0.4);
}

.gm-btn-primary:hover {
  background: #3583f4;
  color: #fff;
  transform: translateY(-2px);
}

.gm-btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.gm-btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.gm-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.gm-hero-tags span {
  font-size: 14px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- 通用区块 ---------- */
.gm-section {
  padding: 92px 24px;
}

.gm-section.gm-alt {
  background: var(--gm-bg);
}

.gm-container {
  max-width: 1180px;
  margin: 0 auto;
}

.gm-section-head {
  text-align: center;
  margin-bottom: 56px;
}

.gm-section-head .gm-section-en {
  display: block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gm-blue);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gm-section-head h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--gm-navy);
  margin: 0 0 16px;
}

.gm-section-head p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.9;
  color: var(--gm-text-light);
}

/* ---------- 关于我们 ---------- */
.gm-about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.gm-about-text p {
  font-size: 15.5px;
  line-height: 2;
  color: var(--gm-text-light);
  margin: 0 0 18px;
}

.gm-about-points {
  display: grid;
  gap: 16px;
}

.gm-about-point {
  background: #fff;
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.gm-about-point i {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gm-blue), var(--gm-cyan));
}

.gm-about-point i svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gm-about-point h4 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--gm-navy);
}

.gm-about-point p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gm-text-light);
}

/* ---------- 卡片网格（业务 / 优势） ---------- */
.gm-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.gm-card-grid.gm-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.gm-card {
  background: #fff;
  border: 1px solid var(--gm-line);
  border-radius: var(--gm-radius);
  box-shadow: var(--gm-shadow);
  padding: 34px 28px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gm-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gm-shadow-hover);
}

.gm-card .gm-card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 111, 235, 0.12), rgba(43, 179, 192, 0.16));
  margin-bottom: 20px;
}

.gm-card .gm-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--gm-blue);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gm-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gm-navy);
  margin: 0 0 6px;
}

.gm-card .gm-card-tag {
  display: block;
  font-size: 13px;
  color: var(--gm-cyan);
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.gm-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--gm-text-light);
  margin: 0;
}

/* ---------- 联系我们 ---------- */
.gm-contact {
  background:
    radial-gradient(720px 400px at 88% 12%, rgba(43, 179, 192, 0.22), transparent 60%),
    linear-gradient(135deg, #081e35 0%, var(--gm-navy) 55%, var(--gm-navy-2) 100%);
  color: #fff;
}

.gm-contact .gm-section-head h2 {
  color: #fff;
}

.gm-contact .gm-section-head p {
  color: rgba(255, 255, 255, 0.7);
}

.gm-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}

.gm-contact-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--gm-radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 32px 30px;
  text-align: center;
  transition: background 0.25s ease;
}

.gm-contact-card:hover {
  background: rgba(255, 255, 255, 0.11);
}

.gm-contact-card svg {
  width: 30px;
  height: 30px;
  stroke: var(--gm-cyan);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}

.gm-contact-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.gm-contact-card p,
.gm-contact-card a {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  word-break: break-all;
  text-decoration: none;
}

.gm-contact-card a:hover {
  color: #fff;
}

/* ---------- 页脚 ---------- */
.gm-footer {
  background: #071b30;
  color: rgba(255, 255, 255, 0.6);
  padding: 46px 24px 30px;
  font-size: 13.5px;
}

.gm-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.gm-footer .gm-footer-brand img {
  height: 30px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

.gm-footer .gm-footer-info p {
  margin: 0 0 6px;
}

.gm-footer .gm-footer-copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.gm-footer .gm-footer-copy a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.gm-footer .gm-footer-copy a:hover {
  color: #fff;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .gm-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gm-card-grid.gm-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .gm-about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  body.gm-page.gm-subpage main.content {
    padding: 70px 15px 15px;
  }

  .gm-section {
    padding: 64px 20px;
  }

  .gm-hero {
    min-height: auto;
    padding: 130px 20px 64px;
  }

  .gm-card-grid,
  .gm-card-grid.gm-cols-3,
  .gm-contact-grid {
    grid-template-columns: 1fr;
  }

  .gm-footer-inner {
    flex-direction: column;
  }
}
