/* ============================================================
   金成网络科技官网 — 全站样式
   科技蓝 · 简洁商务风 / 中英双语 / 响应式
   字体规范：英文 Times New Roman，中文 Microsoft YaHei
   ============================================================ */

:root {
  --blue: #0B5FFF;
  --blue-dark: #0A46BE;
  --navy: #0B2A5B;
  --ink: #1F2A3D;
  --muted: #5B6B84;
  --line: #E3E9F2;
  --bg-soft: #F4F7FB;
  --white: #FFFFFF;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(11, 42, 91, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Times New Roman", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 布局容器（全站统一宽度与左右内边距，保证对齐） ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo { width: 34px; height: 34px; flex: 0 0 34px; }

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav > a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  white-space: nowrap;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.main-nav > a:hover { color: var(--blue); }
.main-nav > a.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 6px; }
.lang-switch form { display: inline; }
.lang-sep { color: var(--muted); }
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: var(--muted);
  padding: 4px 6px;
  border-radius: 6px;
}
.lang-btn:hover { color: var(--blue); }
.lang-btn.active { color: var(--blue); font-weight: 700; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0B2A5B 0%, #0B5FFF 78%, #3D7FFF 100%);
  color: var(--white);
  padding: 96px 0 104px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 48px;
}

.hero-badge {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero p.hero-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 380px; height: auto; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 28px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.btn-primary { background: var(--white); color: var(--blue-dark); }
.btn-primary:hover { background: #EAF1FF; }

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.1); }

.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); }

.btn-outline-blue {
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.btn-outline-blue:hover { background: #EAF1FF; }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-kicker {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: 30px;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 卡片网格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}
.section.soft .card { border-color: transparent; box-shadow: var(--shadow); }

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #EAF1FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 28px; height: 28px; }

.card h3 { font-size: 20px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .card-link {
  margin-top: 18px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
}
.card .card-link:hover { color: var(--blue-dark); }

/* ---------- 数据条 ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat-item .stat-num { font-size: 40px; font-weight: 700; color: var(--blue); line-height: 1.2; }
.stat-item .stat-label { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ---------- 项目详情页（Hero-compact） ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 64px 0; }

/* 深色品牌展示 hero（MineralAi 页） */
.page-hero.dark {
  background: linear-gradient(135deg, #0B0918 0%, #14103A 55%, #251457 100%);
  border-bottom: none;
}
.page-hero.dark .page-kicker { color: #8FA8FF; }
.page-hero.dark h1 { color: var(--white); }
.page-hero.dark p.lead { color: rgba(255, 255, 255, 0.82); }
.page-hero.dark .badge-harmony { background: rgba(143, 168, 255, 0.18); color: #AFC3FF; border: 1px solid rgba(143, 168, 255, 0.45); }

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.brand-logo-img {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  border: 1px solid rgba(143, 168, 255, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
}

.page-hero .page-kicker {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-hero h1 { font-size: 36px; color: var(--navy); margin-bottom: 14px; }
.page-hero p.lead { font-size: 17px; color: var(--muted); max-width: 680px; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.feature-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
}
.feature-item h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.feature-item p { color: var(--muted); font-size: 15px; }

.cta-panel {
  background: linear-gradient(135deg, #0B2A5B 0%, #0B5FFF 100%);
  border-radius: var(--radius);
  color: var(--white);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-panel h2 { font-size: 24px; margin-bottom: 6px; }
.cta-panel p { color: rgba(255, 255, 255, 0.85); }

.badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: 10px;
  vertical-align: middle;
}
.badge-live { background: #E6F7EC; color: #1B7F4D; }
.badge-wip { background: #FFF4E0; color: #B26A00; }
.badge-harmony { background: #EAF1FF; color: var(--blue-dark); }

/* CSS 手机示意图（MineralAi 页） */
.phone-mock {
  width: 264px;
  border-radius: 36px;
  background: #0B2A5B;
  padding: 14px;
  box-shadow: var(--shadow);
}
.phone-notch {
  width: 84px;
  height: 16px;
  border-radius: 8px;
  background: #0B2A5B;
  margin: 0 auto 12px;
}
.phone-screen {
  border-radius: 22px;
  background: #F4F7FB;
  padding: 16px 16px 18px;
}
.phone-canvas {
  position: relative;
  border-radius: 14px;
  background: #12101F;
  overflow: hidden;
}
.phone-icon {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.phone-scanline {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 18%;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, transparent, #4FD8FF 30%, #4FD8FF 70%, transparent);
  box-shadow: 0 0 12px rgba(79, 216, 255, 0.9);
}
.phone-line {
  height: 14px;
  border-radius: 7px;
  background: #D9E4F5;
  margin-top: 16px;
}
.phone-line.short { width: 72%; background: #E5ECF8; margin-top: 10px; }
.phone-btn {
  margin-top: 18px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 3px;
  padding: 11px 0;
}

/* 两栏图文（MineralAi 页） */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.split .split-art { display: flex; justify-content: center; }
.split .split-art svg { width: 100%; max-width: 340px; height: auto; }

/* ---------- 信息表（关于我们） ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: top;
}
.info-table th { color: var(--navy); font-weight: 700; white-space: nowrap; width: 180px; }
.info-table td { color: var(--muted); }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0A1F42;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding: 52px 24px 32px;
}
.footer-title { color: var(--white); font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.footer-muted { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .hero-inner, .split { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .header-inner { flex-direction: column; height: auto; padding-top: 14px; padding-bottom: 10px; gap: 10px; }
  .main-nav { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
  .hero { padding: 64px 0 72px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
}
