/* ============ 迁然科技 · 公司主页 ============ */

:root {
  --blue: #0077FF;
  --blue-dark: #0056CC;
  --ink: #1a1a1a;
  --ink-2: #5a5a5a;
  --ink-3: #9aa0a6;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --line: #eef1f5;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

/* ============ 导航 ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; }
.logo-text { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--blue); }

/* ============ Hero ============ */
.hero {
  padding: 120px 24px 100px;
  background: linear-gradient(180deg, #f0f6ff 0%, #ffffff 100%);
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero-en {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
}
.hero-sub {
  margin-top: 24px;
  font-size: 18px;
  color: var(--ink-2);
}

/* ============ 通用 section ============ */
.work, .about {
  max-width: 1080px;
  margin: 0 auto;
  padding: 80px 24px;
}
.section-head { margin-bottom: 48px; }
.section-head h2 { font-size: 34px; font-weight: 800; }
.section-sub {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ============ 项目 ============ */
.project { margin-bottom: 88px; }
.project-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 32px;
}
.project-no {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 1px;
  padding-top: 6px;
  min-width: 34px;
}
.project-name { font-size: 28px; font-weight: 800; }
.project-en {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-top: 4px;
}
.project-desc {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 12px;
  max-width: 640px;
  line-height: 1.8;
}
.project-status {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--blue-dark);
  background: #eef5ff;
  border-radius: 999px;
  padding: 4px 14px;
}

/* ============ 截图画廊（横向滚动） ============ */
.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 8px; }
.gallery::-webkit-scrollbar-thumb { background: #d8dde4; border-radius: 4px; }
.gallery::-webkit-scrollbar-track { background: transparent; }

.shot {
  flex-shrink: 0;
  scroll-snap-align: start;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(30, 40, 60, .08);
  object-fit: cover;
  object-position: top center;
}
/* 横屏截图（暖通后台）：固定高度，宽度自适应 */
.shot-wide { height: 320px; width: auto; max-width: none; }
/* 竖屏截图（App/小程序）：固定高度更高 */
.shot-tall { height: 460px; width: auto; max-width: none; }

/* ============ 关于 ============ */
.about { padding-top: 20px; }
.about-text {
  max-width: 720px;
  font-size: 17px;
  color: var(--ink-2);
  line-height: 2;
}

/* ============ 页脚 ============ */
.footer {
  background: #0f1420;
  color: #c7ccd6;
  padding: 64px 24px 40px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}
.footer-brand { font-size: 17px; font-weight: 700; color: #fff; }
.footer-slogan { font-size: 14px; color: #8a93a3; margin-top: 10px; }
.footer-contact { font-size: 14px; margin-top: 20px; }
.footer-icp { font-size: 13px; color: #6a7382; margin-top: 8px; }
.footer-copy { font-size: 13px; color: #6a7382; margin-top: 16px; }
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ============ 响应式 ============ */
@media (max-width: 640px) {
  .hero { padding: 80px 24px 64px; }
  .work, .about { padding: 56px 20px; }
  .shot-wide { height: 200px; }
  .shot-tall { height: 360px; }
}
