/* ============================================================
   秦旅软件 · PC 端设计系统
   ============================================================ */

:root {
  /* 品牌色板 */
  --navy: #0b1f3a;        /* 主深蓝 */
  --navy-2: #122a4d;      /* 深蓝渐变 */
  --blue: #0090ff;        /* 品牌强调蓝 */
  --blue-dark: #0073d1;
  --cyan: #4cc2ff;

  /* 中性色 */
  --ink: #17273d;         /* 主文字 */
  --body: #4a5870;        /* 正文 */
  --muted: #8b96a9;       /* 弱文字 */
  --line: #e7ecf3;        /* 分割线 */
  --bg: #f4f7fb;          /* 浅背景 */
  --white: #ffffff;

  /* 阴影 */
  --shadow-sm: 0 2px 10px rgba(12, 32, 62, .06);
  --shadow-md: 0 12px 34px rgba(12, 32, 62, .10);
  --shadow-lg: 0 26px 60px rgba(12, 32, 62, .16);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   通用按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  border: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 144, 255, .28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 144, 255, .36);
}
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
  transform: translateY(-2px);
}

/* ============================================================
   顶部导航
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .3s;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
}
.brand img {
  height: 34px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  border-radius: 8px;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover,
.nav-link.active,
.nav-dropdown.active .nav-link {
  color: var(--blue);
}
.nav-link:hover::after,
.nav-link.active::after,
.nav-dropdown.active .nav-link::after {
  transform: scaleX(1);
}
.caret {
  font-size: 10px;
  transition: transform .25s;
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown:hover .caret {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--body);
  transition: background .2s, color .2s;
}
.dropdown-menu a:hover {
  background: var(--bg);
  color: var(--blue);
}

/* ============================================================
   首页 Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: var(--header-h);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(0, 144, 255, .22), transparent 60%),
    radial-gradient(700px 480px at -10% 20%, rgba(76, 194, 255, .16), transparent 55%),
    linear-gradient(135deg, #0b1f3a 0%, #122a4d 55%, #12335e 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
  padding: 72px 24px 88px;
}
.hero-copy {
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--cyan);
  background: rgba(255, 255, 255, .05);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}
.hero-title {
  margin: 24px 0 18px;
  font-size: 52px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 1px;
}
.hero-title .accent {
  background: linear-gradient(120deg, var(--cyan), #6fd2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 520px;
  font-size: 17px;
  color: rgba(255, 255, 255, .78);
  line-height: 1.9;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 34px;
}
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 46px;
}
.hero-stat b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
}
.hero-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
}
.hero-visual {
  position: relative;
}
.hero-visual .visual-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
  border: 1px solid rgba(255, 255, 255, .12);
}
.hero-visual .visual-card img {
  width: 100%;
  height: auto;
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: -20% -30%;
  background: radial-gradient(circle, rgba(76, 194, 255, .18), transparent 60%);
  pointer-events: none;
}

/* ============================================================
   区块通用
   ============================================================ */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg);
}
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 36px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--navy);
}
.section-head p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
}

/* ============================================================
   电子手绘图（特色区块）
   ============================================================ */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-copy .kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}
.feature-copy h2 {
  font-size: 34px;
  line-height: 1.32;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 18px;
}
.feature-copy p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: 14px;
}
.feature-points {
  display: grid;
  gap: 12px;
  margin: 24px 0 30px;
}
.feature-points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--body);
}
.feature-points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 144, 255, .14);
}
.feature-visual {
  position: relative;
}
.feature-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.feature-visual::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 60%;
  height: 60%;
  border: 2px solid rgba(0, 144, 255, .28);
  border-radius: var(--radius);
  z-index: -1;
}

/* ============================================================
   应用场景（轮播）
   ============================================================ */
.carousel {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0b1f3a;
}
.carousel-track {
  position: relative;
  height: 460px;
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s var(--ease), visibility .7s;
}
.carousel-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 44px;
  background: linear-gradient(180deg, rgba(6, 16, 33, .05) 0%, rgba(6, 16, 33, .86) 100%);
}
.slide-copy {
  max-width: 560px;
  color: #fff;
}
.slide-copy h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
}
.slide-copy p {
  font-size: 15px;
  color: rgba(255, 255, 255, .82);
}
.carousel-dots {
  position: absolute;
  right: 44px;
  bottom: 40px;
  display: flex;
  gap: 8px;
  z-index: 3;
}
.carousel-dots button {
  width: 28px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .3s, width .3s;
}
.carousel-dots button.is-active {
  background: #fff;
  width: 44px;
}
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .25s;
  z-index: 3;
}
.carousel-nav:hover {
  background: rgba(255, 255, 255, .26);
}
.carousel-nav.prev { left: 22px; }
.carousel-nav.next { right: 22px; }

/* ============================================================
   其他产品
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.product-card .thumb {
  flex: none;
  width: 168px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef4fb, #e0ecf7);
  padding: 16px;
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .5s var(--ease);
}
.product-card:hover .thumb img {
  transform: scale(1.07);
}
.product-card .product-body {
  flex: 1;
  min-width: 0;
}
.product-card .product-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.product-card .product-body p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.product-card .product-body .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
}
.product-card .product-body .go span {
  transition: transform .25s;
}
.product-card:hover .product-body .go span {
  transform: translateX(4px);
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, #0d2240, #09182e);
  color: #fff;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr 1fr;
  gap: 40px;
  padding: 72px 24px 56px;
}
.footer-brand img {
  height: 34px;
  margin-bottom: 18px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, .6);
  max-width: 280px;
}
.footer-col h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
  color: #fff;
}
.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, .62);
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover {
  color: var(--cyan);
}
.footer-qr img {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
}
.footer-qr span {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 22px 24px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom a {
  color: rgba(255, 255, 255, .7);
}

/* ============================================================
   内页
   ============================================================ */
.page-banner {
  padding-top: var(--header-h);
  background:
    radial-gradient(700px 360px at 80% -20%, rgba(0, 144, 255, .25), transparent 60%),
    linear-gradient(135deg, #0b1f3a, #122a4d);
  color: #fff;
  text-align: center;
}
.page-banner .banner-inner {
  padding: 72px 24px;
}
.page-banner h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 1px;
}
.page-banner .sub {
  margin-top: 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, .72);
}
.page-content {
  padding: 72px 0 96px;
  background: var(--bg);
}
/* 产品预览（设备模拟框） */
.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.device {
  width: 100%;
  max-width: 400px;
  border-radius: 38px;
  background: linear-gradient(160deg, #0b1f3a, #122a4d);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, .08);
}
.device--wide {
  max-width: 760px;
}
.device .notch {
  width: 110px;
  height: 22px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: #050f1e;
}
.device-screen {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  max-height: 72vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.device-screen img {
  width: 100%;
  height: auto;
  display: block;
}
.showcase-hint {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.showcase-hint::before {
  content: "";
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b96a9' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12l7 7 7-7'/%3E%3C/svg%3E") center/contain no-repeat;
  animation: hint-bounce 1.6s infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================================
   滚动出现动效
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ============================================================
   响应式兜底（窄屏折叠为单列）
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .feature { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { height: 380px; }
}
@media (max-width: 640px) {
  .products-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 34px; }
  .section { padding: 64px 0; }
  .carousel-track { height: 320px; }
}
