/* ==========================================================================
   赛隆空间（龙创）官网 · CYLONSPACE
   Design tokens 严格对齐 design_handoff_cylonspace_site/README.md
   ========================================================================== */

:root {
  /* Colors */
  --accent:        #0E7A5A;
  --accent-hover:  #0A5C43;
  --accent-light:  #34A97F;
  --ink:           #123A2C;
  --body:          #4B5F57;
  --muted:         #879A91;
  --border:        #DEEDE4;
  --surface:       #F1FAF5;
  --tint:          #E3F5EB;
  --line:          #BCE0CC;
  --hairline:      #EDF6F1;
  --white:         #FFFFFF;

  /* Shadows */
  --sh-card:       0 2px 12px rgba(18, 58, 44, 0.06);
  --sh-card-hover: 0 8px 28px rgba(18, 148, 107, 0.14);
  --sh-btn:        0 8px 24px rgba(18, 148, 107, 0.2);
  --sh-btn-hero:   0 8px 24px rgba(18, 148, 107, 0.24);

  /* Layout */
  --wrap:          1200px;
  --gutter:        24px;
  --nav-h:         68px;
  --sec-pad:       clamp(56px, 9vw, 120px);
  --intro-gap:     clamp(40px, 5vw, 72px);

  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue",
          "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
}

h1, h2, h3, h4, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .25s ease;
}
a:hover { color: var(--accent-hover); }

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

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ---------- Reveal on scroll（无 JS 时不隐藏内容）---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background-color: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(222, 237, 228, 0);
  transition: background-color .3s ease, border-color .3s ease;
}
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: var(--border);
}

/* 移动端菜单展开时，顶栏同步变为不透明，避免文字压在首屏图上 */
.site-header.is-menu-open {
  background-color: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}

.nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-mark {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.logo-sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
}
.nav-links > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.nav-links > a:hover { color: var(--accent); }

.lang-btn {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: border-color .25s ease, background .25s ease;
}
.lang-btn:hover {
  border-color: var(--accent);
  background: var(--tint);
}

.nav-mobile { display: none; align-items: center; gap: 12px; }
.nav-mobile .lang-btn { padding: 7px 12px; letter-spacing: normal; }

.burger {
  cursor: pointer;
  width: 44px; height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 0;
}
.burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  padding: 8px var(--gutter) 20px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--border);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 14px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:last-child { border-bottom: none; }

@media (max-width: 899px) {
  .nav-links { display: none; }
  .nav-mobile { display: flex; }
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px var(--gutter) 100px;
  overflow: hidden;
  background: var(--white);
}

.hero-bg { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }

.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.80) 45%,
    rgba(241, 250, 245, 0.94) 100%);
}

.hero-content {
  position: relative;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-content h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.18;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--body);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background .25s ease, transform .25s ease, color .25s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--sh-btn-hero);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn-ghost:hover {
  background: var(--tint);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-block { width: 100%; padding: 0 24px; }
.contact-btns .btn-primary { box-shadow: 0 8px 24px rgba(18, 148, 107, 0.22); }
.contact-btns .btn:hover { transform: none; }

.hero-dots {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.hero-dots button {
  cursor: pointer;
  width: 26px; height: 4px;
  border: none;
  padding: 0;
  border-radius: 99px;
  background: var(--line);
  transition: background .3s ease;
}
.hero-dots button.is-active { background: var(--accent); }

.hero-arrow {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 34px;
  display: grid;
  place-content: center;
  animation: cyFloat 2.4s ease-in-out infinite;
}
.hero-arrow span {
  display: block;
  width: 12px; height: 12px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
}
@keyframes cyFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* ==========================================================================
   Sections（通用）
   ========================================================================== */
.section {
  scroll-margin-top: var(--nav-h);
  background: var(--white);
  padding: var(--sec-pad) var(--gutter);
}
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: var(--intro-gap);
}
.section-intro.narrow {
  gap: 24px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.section-intro h2 {
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.24;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.section-intro h2.h2-loose { line-height: 1.28; }

.lead {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.9;
  color: var(--body);
}

.grid { display: grid; gap: 24px; }
.grid-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-260 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-280 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-300 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ---------- 卡片基类 ---------- */
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  box-shadow: var(--sh-card);
  transition: box-shadow .3s ease, transform .3s ease, border-color .3s ease;
}
.card-pad {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card-flat {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}
.card-pad:hover,
.card-media:hover,
.card-model:hover {
  box-shadow: var(--sh-card-hover);
  transform: translateY(-4px);
  border-color: var(--line);
}

/* ==========================================================================
   企业愿景
   ========================================================================== */
.pillars { margin-top: var(--intro-gap); }
.pillar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.pillar-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--tint);
  display: grid;
  place-content: center;
}
.pillar-icon span {
  display: block;
  width: 24px; height: 24px;
  border: 1.5px solid var(--accent);
}
.shape-square  { border-radius: 4px; }
.shape-circle  { border-radius: 50%; }
.shape-diamond { border-radius: 4px; transform: rotate(45deg); }

.pillar h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.pillar p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}

/* ==========================================================================
   核心产品与服务
   ========================================================================== */
.layers {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 5vw, 80px);
}
.layer {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.layer-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}
.layer-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.layer-head h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  color: var(--ink);
}
.layer-note {
  font-size: 14px;
  color: var(--muted);
}

.card-media { overflow: hidden; }
.card-figure {
  height: 190px;
  background-color: var(--surface);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--border);
}
.card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.card-body h4 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.card-kicker {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.card p,
.card li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}
.h4-sm {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.h4-lg {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}
.arrow-ne {
  display: inline-block;
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.card-model {
  background: var(--surface);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bullets li {
  display: flex;
  gap: 12px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--body);
}
.dot {
  flex: none;
  margin-top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   技术能力 · 架构图
   ========================================================================== */
.arch {
  max-width: 680px;
  margin: 0 auto;
}
.arch-block {
  border-radius: 12px;
  padding: 22px;
  text-align: center;
}
.arch-solid {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--sh-btn);
}
.arch-tint {
  background: var(--tint);
  color: var(--ink);
}
.arch-outline {
  background: var(--white);
  border: 1.5px solid var(--accent);
  color: var(--ink);
}
.arch-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.arch-title.sm { font-size: 18px; letter-spacing: normal; }
.arch-desc {
  font-size: 14px;
  opacity: 0.88;
  margin-top: 6px;
}
.arch-desc.dark { color: var(--body); opacity: 1; }

.arch-legs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.arch-legs > div {
  height: 20px;
  display: flex;
  justify-content: center;
}
.arch-legs i {
  width: 1.5px;
  height: 100%;
  background: var(--line);
}
.arch-hline {
  height: 1.5px;
  width: 50%;
  margin: 0 auto;
  background: var(--line);
}
.arch-vline {
  width: 1.5px;
  height: 20px;
  margin: 0 auto;
  background: var(--line);
}

.tech-cards { margin-top: var(--intro-gap); }

/* ==========================================================================
   公司团队
   ========================================================================== */
.group-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 28px;
}
.group-title-2 { margin-top: var(--intro-gap); }

.card-person {
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.card-person:hover {
  box-shadow: var(--sh-card-hover);
  border-color: var(--line);
}
.card-person-flat {
  background: var(--surface);
  box-shadow: none;
}
.card-person-flat:hover {
  box-shadow: none;
  border-color: var(--border);
}

.avatar {
  position: relative;
  flex: none;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--tint);
  overflow: hidden;
  display: grid;
  place-content: center;
}
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.avatar-initials {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.person-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.person-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}
.person-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.5;
}
.person-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.team-note {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 32px;
  text-align: center;
}

/* ==========================================================================
   联系我们
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: clamp(32px, 4vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.contact-left {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.h2-contact {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.24;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.contact-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--body);
}
.contact-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}
.contact-label {
  font-size: 14px;
  color: var(--muted);
  min-width: 64px;
}
.contact-value {
  font-size: 17px;
  color: var(--ink);
}
.contact-mail {
  font-weight: 600;
  color: var(--accent);
}

.contact-card {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: start;
}
.contact-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qr-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.qr-row img {
  width: 168px; height: 168px;
  flex: none;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
}
.qr-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qr-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.qr-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 48px var(--gutter) 40px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: baseline;
}
.footer-mark { font-size: 17px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 28px);
}
.footer-links a {
  font-size: 14px;
  color: var(--body);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a {
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--accent); }
.beian-gongan {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ==========================================================================
   动效偏好
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}
