/* ============ 格美虹官网 - 浅色清爽版 ============ */
:root {
  --bg: #f7f9fd;
  --bg-2: #eef2f9;
  --panel: #ffffff;
  --panel-border: rgba(15, 23, 42, 0.08);
  --text: #1c2436;
  --text-dim: #5b6578;
  --c1: #0891b2; /* cyan-600 */
  --c2: #7c3aed; /* violet-600 */
  --c3: #db2777; /* pink-600 */
  --grad: linear-gradient(90deg, #06b6d4, #7c3aed, #ec4899);
  --radius: 14px;
  --shadow: 0 2px 10px rgba(28, 36, 54, 0.06);
  --shadow-hover: 0 12px 30px rgba(124, 58, 237, 0.16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 背景光效（浅色柔和） ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, #fdfdff 0%, var(--bg) 40%, #f2f5fb 100%); }
.orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.22; }
.orb-1 { width: 480px; height: 480px; background: #a5b4fc; top: -160px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.orb-2 { width: 420px; height: 420px; background: #a5f3fc; top: 30%; right: -150px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 380px; height: 380px; background: #fbcfe8; bottom: -140px; left: 30%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(28,36,54,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(28,36,54,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* ---------- 顶部导航 ---------- */
#siteHeader {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--panel-border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo img, .brand-logo { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.brand-name { font-weight: 700; font-size: 17px; letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 15px; color: var(--text-dim);
  transition: all 0.25s; position: relative;
}
.main-nav a:hover { color: var(--c2); background: #f1edfd; }
.main-nav a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35); }
.main-nav a.active::after { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--panel-border); border-radius: 8px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- 通用 section ---------- */
#app { padding-top: 68px; min-height: calc(100vh - 220px); }
.section { max-width: 1280px; margin: 0 auto; padding: 72px 24px; }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 {
  font-size: 30px; font-weight: 700; display: inline-block;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head .bar { width: 64px; height: 3px; background: var(--grad); margin: 14px auto 0; border-radius: 3px; }
.sec-head p { color: var(--text-dim); margin-top: 12px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 68px); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 60px 24px;
  position: relative;
}
.hero h1 {
  font-size: clamp(32px, 5.6vw, 58px); font-weight: 800; line-height: 1.25; letter-spacing: 1px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .sub { margin-top: 18px; font-size: clamp(15px, 2.2vw, 20px); color: var(--text-dim); }
.hero .tags { margin-top: 10px; font-size: 14px; color: var(--c1); letter-spacing: 2px; }
.hero .btn {
  margin-top: 38px; display: inline-block; padding: 13px 42px; border-radius: 999px;
  font-size: 16px; color: #fff; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 8px 26px rgba(124, 58, 237, 0.35);
  transition: all 0.3s;
}
.hero .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(124, 58, 237, 0.5); background-position: 100% 0; }
.hero-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.16; z-index: -1; border-radius: 0 0 30px 30px; }

/* 首页横幅轮播背景 */
.hero-slides { position: absolute; inset: 0; overflow: hidden; z-index: -1; border-radius: 0 0 30px 30px; }
.hero-slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; transform: scale(1.03);
}
.hero-slide.active { opacity: 1; animation: heroZoom 7s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.03); } to { transform: scale(1.12); } }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(248, 250, 255, 0.82), rgba(248, 250, 255, 0.62) 55%, rgba(248, 250, 255, 0.78)); }
.hero-dots { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots span { width: 8px; height: 8px; border-radius: 4px; background: rgba(28, 36, 54, 0.22); transition: all 0.35s; }
.hero-dots span.active { width: 24px; background: linear-gradient(90deg, #22d3ee, #a78bfa, #f472b6); }

/* ---------- 数据统计 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat {
  text-align: center; padding: 34px 12px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow);
  transition: all 0.3s;
}
.stat:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(124,58,237,0.25); }
.stat .num {
  font-size: 38px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { color: var(--text-dim); margin-top: 6px; font-size: 14px; }

/* ---------- 卡片 ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s; position: relative; box-shadow: var(--shadow);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(6,182,212,0.35); }
.card .thumb { height: 180px; background: linear-gradient(135deg, #cffafe, #ede9fe, #fce7f3); display: flex; align-items: center; justify-content: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .ph { font-size: 40px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.9; }
.card .body { padding: 20px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 14px; }

/* ---------- 图文段落 ---------- */
.rich { max-width: 900px; margin: 0 auto; }
.rich p { color: #3d475e; margin-bottom: 16px; text-indent: 2em; font-size: 15.5px; }
.rich p:first-of-type { text-indent: 0; color: var(--text); font-size: 17px; }

/* ---------- 时间线 ---------- */
.timeline { max-width: 860px; margin: 0 auto; position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--grad); }
.tl-item { position: relative; padding: 0 0 34px 26px; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid #8b5cf6; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}
.tl-item .year { font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tl-item h3 { font-size: 16px; margin: 4px 0 6px; }
.tl-item p { color: var(--text-dim); font-size: 14.5px; }

/* ---------- 画廊（案例） ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.g-item {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-border);
  background: var(--panel); transition: all 0.3s; box-shadow: var(--shadow);
}
.g-item:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(219, 39, 119, 0.16); border-color: rgba(236,72,153,0.35); }
.g-item .img { height: 170px; background: linear-gradient(135deg, #cffafe, #ede9fe, #fce7f3); display: flex; align-items: center; justify-content: center; }
.g-item .img img { width: 100%; height: 100%; object-fit: cover; }
.g-item .cap { padding: 14px 16px; }
.g-item .cap h4 { font-size: 15px; }
.g-item .cap p { font-size: 13px; color: var(--text-dim); margin-top: 3px; }

/* ---------- 品牌墙 chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 980px; margin: 0 auto; }
.chip {
  padding: 10px 24px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border);
  color: #3d475e; font-size: 14.5px; transition: all 0.25s; box-shadow: var(--shadow);
}
.chip:hover { border-color: rgba(124,58,237,0.4); color: var(--c2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ---------- 联系我们 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; }
.c-item {
  padding: 30px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--panel-border);
  text-align: center; transition: all 0.3s; box-shadow: var(--shadow);
}
.c-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(6,182,212,0.35); }
.c-item .ico { font-size: 26px; margin-bottom: 10px; }
.c-item .k { color: var(--text-dim); font-size: 13px; }
.c-item .v { font-size: 16px; margin-top: 4px; word-break: break-all; }

/* ---------- 页头（非首页） ---------- */
.page-hero { padding: 84px 24px 10px; text-align: center; }
.page-hero h1 {
  font-size: clamp(26px, 4vw, 40px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- 页脚 ---------- */
#siteFooter { border-top: 1px solid var(--panel-border); background: #ffffff; margin-top: 60px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 44px 24px 30px; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-brand .brand-name { font-size: 18px; font-weight: 700; color: var(--text); }
.footer-slogan { color: var(--text-dim); font-size: 14px; margin-top: 8px; }
.footer-contact { color: var(--text-dim); font-size: 14px; line-height: 2; text-align: right; }
.footer-bottom {
  border-top: 1px solid var(--panel-border); padding: 16px 24px; text-align: center;
  color: #8b93a5; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; background: rgba(255, 255, 255, 0.98); padding: 12px 16px 18px;
    border-bottom: 1px solid var(--panel-border); gap: 4px;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-contact { text-align: left; }
  .section { padding: 52px 18px; }
}
