/* ============================================================
   祺航软件官网 · 全局样式
   品牌：祺航软件 Qihang Software
   软件区：科技蓝 / 好物区：暖色
   ============================================================ */
:root {
  /* 声明仅支持浅色模式，避免浏览器深色/夜间模式自动把页面反色成黑色 */
  color-scheme: light;
  --blue: #165DFF;
  --blue-dark: #0E42D2;
  --blue-light: #E8F0FF;
  --blue-gradient: linear-gradient(135deg, #165DFF 0%, #0E42D2 100%);
  --orange: #FF7D00;
  --orange-dark: #D25F00;
  --orange-light: #FFF3E8;
  --green: #00B42A;
  --green-light: #E8FFEA;
  --bg: #F7F8FA;
  --card: #FFFFFF;
  --text: #1D2129;
  --text-2: #4E5969;
  --text-3: #86909C;
  --border: #E5E6EB;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.06);
  --shadow-hover: 0 10px 28px rgba(0,0,0,.13);
  --container: 1180px;
  --header-h: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.text-center { text-align: center; }

/* ---------- 头部导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--blue-gradient);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.logo-sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-top: -4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 15px; transition: all .2s;
}
.nav a:hover { color: var(--blue); background: var(--blue-light); }
.nav a.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.nav .btn { margin-left: 8px; }
/* 导航按钮颜色修正：确保按钮文字为白色，不被 .nav a 的颜色覆盖 */
.nav a.btn-primary { color: #fff; }
.nav a.btn-primary:hover { color: #fff; background: var(--blue-dark); box-shadow: 0 4px 14px rgba(22,93,255,.3); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border);
  border-radius: 8px; width: 40px; height: 40px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all .2s; white-space: nowrap;
}
.btn-primary { background: var(--blue-gradient); color: #fff; box-shadow: 0 4px 14px rgba(22,93,255,.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(22,93,255,.4); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-white { background: #fff; color: var(--blue); }
.btn-white:hover { background: var(--blue-light); }
.btn-ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost-white:hover { background: rgba(255,255,255,.15); }
.btn-warm { background: linear-gradient(135deg, #FF7D00 0%, #F56C00 100%); color: #fff; box-shadow: 0 4px 14px rgba(255,125,0,.3); }
.btn-warm:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,125,0,.4); }

/* ---------- Hero ---------- */
.hero {
  background: var(--blue-gradient); color: #fff;
  padding: 88px 0 72px; position: relative; overflow: hidden;
}
.hero.hero-warm { background: linear-gradient(135deg, #FF8A00 0%, #F56C00 55%, #E8590C 100%); }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08);
}
.hero::before { width: 420px; height: 420px; top: -160px; right: -80px; }
.hero::after { width: 260px; height: 260px; bottom: -120px; left: 10%; }
.hero-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.hero .hero-sub { font-size: 19px; opacity: .92; margin-top: 14px; max-width: 640px; }
.hero .hero-meta { margin-top: 8px; font-size: 15px; opacity: .78; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.hero-badges span {
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28);
  padding: 5px 14px; border-radius: 20px; font-size: 13px;
}

/* ---------- 区块标题 ---------- */
.sec-head { margin-bottom: 36px; }
.sec-head h2 { font-size: 30px; font-weight: 700; }
.sec-head .sec-sub { color: var(--text-2); margin-top: 8px; font-size: 15px; }
.sec-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--blue);
  background: var(--blue-light); padding: 3px 12px; border-radius: 20px; margin-bottom: 12px;
}
.sec-eyebrow.warm { color: var(--orange); background: var(--orange-light); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 产品卡片 ---------- */
.prod-card { display: flex; flex-direction: column; gap: 12px; }
.prod-icon {
  width: 54px; height: 54px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0;
}
.prod-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prod-card .prod-desc { color: var(--text-2); font-size: 14px; flex: 1; }
.prod-card .prod-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.prod-card .prod-platform { font-size: 13px; color: var(--text-3); }
.prod-card .btn { padding: 7px 16px; font-size: 13px; }

/* ---------- 状态角标 ---------- */
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 2px 10px; border-radius: 20px; white-space: nowrap;
}
.badge.live { color: var(--green); background: var(--green-light); }
.badge.dev { color: var(--orange); background: var(--orange-light); }
.badge.plan { color: var(--text-3); background: #F2F3F5; }
.badge.blue { color: var(--blue); background: var(--blue-light); }

/* ---------- 信任区 ---------- */
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; }
.trust-item {
  flex: 1; min-width: 220px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px;
}
.trust-item .num { font-size: 26px; font-weight: 800; color: var(--blue); }
.trust-item.warm .num { color: var(--orange); }
.trust-item .label { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* ---------- 引流区 ---------- */
.cta-band {
  background: var(--blue-gradient); color: #fff; border-radius: var(--radius);
  padding: 40px; display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
  justify-content: space-between;
}
.cta-band.warm { background: linear-gradient(135deg, #FF8A00 0%, #E8590C 100%); }
.cta-band h3 { font-size: 24px; }
.cta-band p { opacity: .9; margin-top: 6px; }
.qr-box {
  width: 128px; height: 128px; border-radius: 12px;
  background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
  color: var(--text-3); font-size: 12px; flex-shrink: 0;
}
.qr-box .qr-ph {
  width: 88px; height: 88px; border: 1px dashed #C9CDD4;
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 12px; text-align: center; background: #FAFAFA;
}
.qr-box .qr-cap { font-size: 11px; }

/* ---------- 页面次级 Hero ---------- */
.page-hero { background: var(--blue-gradient); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-hero.warm { background: linear-gradient(135deg, #FF8A00 0%, #E8590C 100%); }
.page-hero .crumb { font-size: 13px; opacity: .8; margin-bottom: 12px; }
.page-hero .crumb a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 34px; }
.page-hero p { opacity: .9; margin-top: 10px; max-width: 640px; }

/* ---------- 详情页 ---------- */
.detail-hero { background: var(--blue-gradient); color: #fff; padding: 64px 0; }
.detail-hero .plat-tags { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.detail-hero .plat-tags span { background: rgba(255,255,255,.16); padding: 3px 12px; border-radius: 16px; font-size: 13px; }
.feat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.feat-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.feat-item h3 { font-size: 17px; margin-bottom: 8px; }
.feat-item p { color: var(--text-2); font-size: 14px; }
.screenshot-ph {
  height: 260px; border-radius: var(--radius); border: 2px dashed #C9CDD4;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-3); background: #FAFAFA; font-size: 14px;
}

/* ---------- 产品简介 ---------- */
.prod-intro-sec { padding-top: 48px; }
.prod-intro {
  color: var(--text-2); font-size: 16px; line-height: 1.95;
  background: var(--card); border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 24px 28px;
}

/* ---------- 界面展示（截图画廊） ---------- */
.shot-gallery {
  display: grid; gap: 22px;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px; margin: 12px auto 0;
}
.shot-item { display: flex; flex-direction: column; gap: 12px; }
.shot-frame {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  transition: transform .25s, box-shadow .25s;
}
.shot-frame:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0,0,0,.18); }
.shot-frame img { width: 100%; height: auto; display: block; cursor: zoom-in; }
.shot-cap { text-align: center; font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ---------- 截图灯箱（点击放大） ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.82);
  display: none; align-items: center; justify-content: center;
  padding: 32px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%; max-height: 100%;
  border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: default;
}
.lightbox-close {
  position: absolute; top: 18px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.16); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,.3); }
.timeline { border-left: 2px solid var(--blue-light); margin: 12px 0 0 8px; padding-left: 24px; display: flex; flex-direction: column; gap: 22px; }
.timeline .tl-item { position: relative; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -31px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}
.timeline .tl-item .tl-title { font-weight: 700; }
.timeline .tl-item .tl-date { font-size: 13px; color: var(--text-3); margin-top: 2px; }
.timeline .tl-item p { color: var(--text-2); font-size: 14px; margin-top: 6px; }

/* ---------- 好物卡片 ---------- */
.goods-card { text-align: center; padding: 30px 24px; }
.goods-card .goods-emoji { font-size: 46px; line-height: 1; }
.goods-card h3 { font-size: 19px; margin-top: 14px; }
.goods-card p { color: var(--text-2); font-size: 14px; margin-top: 8px; }
.goods-card .badge { margin-top: 14px; }

/* ---------- 联系卡片 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card { text-align: center; padding: 30px 22px; }
.contact-card .icon { font-size: 30px; }
.contact-card h3 { margin: 12px 0 6px; font-size: 17px; }
.contact-card p { color: var(--text-2); font-size: 14px; }

/* ---------- 页脚 ---------- */
.footer { background: #141414; color: #B7B9BE; margin-top: 40px; padding: 40px 0 28px; }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 0 20px; display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer .logo { color: #fff; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; padding: 4px 0; font-size: 14px; color: #B7B9BE; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--container); margin: 28px auto 0; padding: 20px 20px 0;
  border-top: 1px solid #2A2A2A; font-size: 13px; color: #7A7C82;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4, .feat-list, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .shot-gallery { grid-template-columns: repeat(2, 1fr); max-width: 560px; }
}
@media (max-width: 680px) {
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 30px; }
  .hero .hero-sub { font-size: 16px; }
  .section { padding: 44px 0; }
  .sec-head h2 { font-size: 24px; }
  .grid-2, .grid-3, .grid-4, .feat-list, .contact-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px; gap: 4px; border-bottom: 1px solid var(--border);
    display: none; box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .cta-band { padding: 28px 24px; }
  .shot-gallery { gap: 14px; max-width: 100%; }
  .prod-intro { padding: 20px; font-size: 15px; }
}
