/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
  /* 主色 */
  --color-midnight: #000000;
  --color-cloud:    #f6f5f2;
  --color-accent:   #0066FF;
  --color-accent-light: #E8F0FE;

  /* 中性色 */
  --color-hero-bg:  #b6bab9;
  --color-text:     #141413;
  --color-text-inv: #ffffff;
  --color-muted:    rgba(128, 130, 129, 0.6);

  /* 功能色 */
  --color-surface:  #faf9f5;
  --color-border:   rgba(0,0,0,0.08);

  /* 字体 */
  --font-family: "HarmonyOS Sans", "PingFang SC", system-ui, -apple-system, sans-serif;
  --font-size-s:  12px;
  --font-size-m:  16px;
  --font-size-l:  22px;
  --font-size-xl: 36px;
  --font-size-hero: clamp(60px, 12vw, 140px);

  /* 布局 */
  --site-max-width: 1120px;
  --section-padding: 120px 0;
  --content-padding: 0 24px;
}

/* ================================================
   0. RESET & BASE
   ================================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-m);
  color: var(--color-text);
  background: var(--color-cloud);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ================================================
   1. HEADER
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 77px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
  transition:
    background-color 0.5s linear,
    backdrop-filter 0.3s linear;
}

.header.scrolled {
  background-color: rgba(246, 245, 242, 0.7);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.header.in-dark-section {
  color: var(--color-text-inv);
}

.header.in-dark-section .header-hamburger span {
  background: var(--color-text-inv);
}

.header.in-dark-section.scrolled {
  background-color: rgba(0, 0, 0, 0.5);
}

.header-logo img {
  height: 28px;
}

.header-nav {
  display: flex;
  gap: 32px;
  font-size: var(--font-size-s);
}

.header-nav a {
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.6;
}

.header-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.header-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-midnight);
  transition: transform 0.3s, opacity 0.3s;
}

.header.open-nav .header-hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.header.open-nav .header-hamburger span:nth-child(2) {
  opacity: 0;
}

.header.open-nav .header-hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media only screen and (max-width: 700px) {
  .header-nav {
    display: none;
  }
  .get-started-button {
    display: none;
  }
  .header-hamburger {
    display: flex;
  }
  .header.open-nav .header-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 77px;
    left: 0;
    width: 100%;
    background: var(--color-cloud);
    padding: 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .header.in-dark-section.open-nav .header-nav {
    background: #111;
  }
}

@media only screen and (max-width: 1050px) {
  .header-nav {
    gap: 20px;
  }
}

/* ================================================
   2. BUTTON
   ================================================ */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  color: var(--color-midnight);
  text-align: center;
  border: none;
  border-radius: 100px;
  padding: 20px 36px;
  font-size: 20px;
  line-height: 20px;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(180deg, #f9f7f5 0%, #ecebe9 100%);
  box-shadow:
    #ffffff 0px 2px 0px 0px inset,
    rgba(255,255,255,0.5) 0px 1px 1px 0px inset,
    rgba(0,0,0,0.5) 0px 0px 1px 0px,
    rgba(0,0,0,0.1) 0px 2px 4px 0px,
    rgba(0,0,0,0.1) 0px 12px 30px 0px;
  transition:
    box-shadow 0.15s ease,
    transform 0.15s ease-out;
  will-change: transform, box-shadow;
}

.button:hover {
  box-shadow:
    #ffffff 0px 2px 0px 0px inset,
    rgba(255,255,255,0.5) 0px 1px 1px 0px inset,
    rgba(0,0,0,0.5) 0px 0px 1px 0px,
    rgba(0,0,0,0.12) 0px 4px 8px 0px,
    rgba(0,0,0,0.12) 0px 16px 36px 0px;
}

.button:active {
  transform: translateY(1.5px);
  box-shadow:
    #ffffff 0px 2px 0px 0px inset,
    rgba(255,255,255,0.5) 0px 1px 1px 0px inset,
    rgba(0,0,0,0.5) 0px 0px 1px 0px,
    rgba(0,0,0,0.1) 0px 1px 4px 0px,
    rgba(0,0,0,0.08) 0px 5px 18px 0px;
}

.button.small {
  padding: 12px 22px;
  font-size: 16px;
  line-height: 16px;
}

.button.dark {
  color: #ffffff;
  background: var(--color-midnight);
  box-shadow:
    rgba(0,0,0,0.15) 0px 2px 3px 0px,
    rgba(255,255,255,0.1) 0px 2px 0px 0px inset,
    rgba(255,255,255,0.05) 0px 1px 1px 0px inset;
}

.button.dark:hover {
  background: #222;
}

/* ================================================
   3. HERO
   ================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: rgba(182, 186, 185, 1);
  transition: background-color 0.5s linear;
  overflow: hidden;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 30vh;
}

.hero-subtitle {
  font-size: var(--font-size-l);
  opacity: 0.7;
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-desc {
  font-size: 22px;
  max-width: 460px;
  opacity: 0.8;
}

.hero-flare {
  position: absolute;
  inset: 0;
  background: url('images/findings/hero-flare.png') no-repeat center bottom / cover;
  mix-blend-mode: plus-lighter;
  pointer-events: none;
  z-index: 1;
}

.hero-device {
  position: absolute;
  z-index: 3;
  bottom: -5%;
  left: 50%;
  transform: translateX(-50%);
  height: 60vmin;
  pointer-events: none;
}

.hero-device img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

@media only screen and (max-width: 600px) {
  .hero-subtitle {
    font-size: 18px;
  }
  .hero-desc {
    font-size: 18px;
  }
}

/* ================================================
   4. EXPERIENCE — 滚动序列帧
   ================================================ */
.experience {
  position: relative;
  height: 700vh;
  background: #000;
}

.experience-device-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.experience-device-container.show {
  opacity: 1;
}

.experience-device {
  position: relative;
  width: 70vw;
  max-width: 900px;
  aspect-ratio: 1916 / 1080;
}

.image-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.fixed-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.fixed-content.active {
  opacity: 1;
  pointer-events: auto;
}

.fixed-content.at-end {
  opacity: 1;
  pointer-events: auto;
  position: absolute;
  bottom: 0;
  top: initial;
}

.experience-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 0 24px 15vh;
  text-align: center;
  opacity: 0;
  filter: blur(20px);
  pointer-events: none;
  transition:
    opacity 0.8s linear,
    filter 0.5s linear;
  will-change: opacity;
}

.experience-slide.active {
  opacity: 1;
  pointer-events: auto;
  filter: blur(0px);
}

.experience-slide h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  color: #ffffff;
}

.experience-slide p {
  font-size: 16px;
  max-width: 520px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
}

.experience-slide .experience-statement {
  font-size: clamp(28px, 5vw, 48px);
  max-width: 700px;
  line-height: 1.3;
}

.experience-final-bg {
  position: relative;
  height: 200vh;
  background: linear-gradient(180deg, #000000 0%, var(--color-cloud) 100%);
}

.experience.complete {
  background-color: #000000;
}

/* ================================================
   5. SECTION 通用
   ================================================ */
.section-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: var(--section-padding);
  padding-left: 24px;
  padding-right: 24px;
}

.section-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
  opacity: 0.7;
  line-height: 1.7;
}

/* ================================================
   6. S2: 全新方案 — 对比表格
   ================================================ */
.section-solution {
  background: var(--color-cloud);
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.comparison-col {
  border-radius: 20px;
  padding: 40px 32px;
}

.comparison-old {
  background: rgba(0,0,0,0.04);
}

.comparison-new {
  background: #000000;
  color: #ffffff;
}

.comparison-col h3 {
  font-size: 22px;
  margin-bottom: 24px;
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-col li {
  font-size: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(128,128,128,0.15);
}

.comparison-new li {
  border-bottom-color: rgba(255,255,255,0.1);
}

@media only screen and (max-width: 600px) {
  .comparison-table {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   7. S4: 指标参数
   ================================================ */
.section-specs {
  background: var(--color-cloud);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.stat-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow:
    rgba(0,0,0,0.04) 0px 2px 8px,
    rgba(0,0,0,0.02) 0px 8px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow:
    rgba(0,0,0,0.06) 0px 4px 12px,
    rgba(0,0,0,0.04) 0px 12px 36px;
}

.stat-value {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  opacity: 0.6;
}

@media only screen and (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 400px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media only screen and (max-width: 800px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media only screen and (max-width: 500px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.metric-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease;
}

.metric-item:hover {
  transform: translateY(-2px);
}

.metric-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.metric-item p {
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.5;
}

/* ================================================
   8. S5: 产品细节
   ================================================ */
.section-details {
  background: var(--color-surface);
  overflow: hidden;
}

.section-details .section-inner {
  padding-bottom: 8px;
}

.details-body {
  will-change: transform;
}

.detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-item:nth-child(even) {
  direction: rtl;
}

.detail-item:nth-child(even) > * {
  direction: ltr;
}

.detail-item img {
  border-radius: 16px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e8e7e4;
}

.detail-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.detail-text p {
  font-size: 16px;
  opacity: 0.7;
  line-height: 1.7;
}

@media only screen and (max-width: 700px) {
  .detail-item {
    grid-template-columns: 1fr;
  }
  .detail-item:nth-child(even) {
    direction: ltr;
  }
}

/* ================================================
   9. S6: 使用流程
   ================================================ */
.section-workflow {
  background: var(--color-cloud);
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.workflow-step {
  text-align: center;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.workflow-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-midnight);
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
}

.workflow-step img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #e8e7e4;
}

.workflow-step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.workflow-step p {
  font-size: 14px;
  opacity: 0.65;
  line-height: 1.6;
}

@media only screen and (max-width: 800px) {
  .workflow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (max-width: 500px) {
  .workflow-steps {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   10. S7: 应用场景
   ================================================ */
.section-scenes {
  background: var(--color-surface);
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.scene-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.04) 0px 4px 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-6px);
  box-shadow: rgba(0,0,0,0.08) 0px 8px 32px;
}

.scene-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: #e8e7e4;
}

.scene-card h3 {
  font-size: 20px;
  font-weight: 600;
  padding: 24px 24px 8px;
}

.scene-card p {
  font-size: 15px;
  opacity: 0.65;
  line-height: 1.6;
  padding: 0 24px 28px;
}

@media only screen and (max-width: 600px) {
  .scenes-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   11. S8: 数据安全
   ================================================ */
.section-security {
  background: var(--color-midnight);
  color: var(--color-text-inv);
}

.section-security .section-title {
  color: #ffffff;
}

.section-security .section-subtitle {
  color: rgba(255,255,255,0.65);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.security-item img {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
}

.security-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.security-item p {
  font-size: 15px;
  opacity: 0.65;
  line-height: 1.6;
}

@media only screen and (max-width: 600px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   12. FAQ
   ================================================ */
.section-faq {
  background: var(--color-cloud);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  color: var(--color-text);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 16px;
  opacity: 0.7;
  line-height: 1.7;
}

/* ================================================
   13. CTA
   ================================================ */
.section-cta {
  background: var(--color-cloud);
  text-align: center;
  padding: 120px 24px;
}

.section-cta h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-cta p {
  font-size: 16px;
  opacity: 0.6;
  margin-bottom: 40px;
}

/* ================================================
   14. FOOTER
   ================================================ */
.site-footer {
  background: var(--color-midnight);
  color: var(--color-text-inv);
  padding: 80px 24px 40px;
}

.footer-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
}

.footer-brand img {
  height: 28px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  opacity: 0.5;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  opacity: 0.4;
}

.footer-meta a:hover {
  opacity: 1;
}

/* ================================================
   15. 装饰动画
   ================================================ */
@keyframes lineHorizontal {
  0%   { background-position: -100% 0; }
  100% { background-position:  100% 0; }
}

@keyframes lineVertical {
  0%   { background-position: 0 -100%; }
  100% { background-position: 0  100%; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.05); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 滚动显示动画通用类 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
