/* ============================================================
   A研所 · 官网应用  —  严格还原 Ardot 设计稿
   配色 / 圆角 / 间距 / 字阶 均来自画布实测参数
   ============================================================ */

:root {
  /* 画布与面板 */
  --bg: #030014;            /* 主画布 rgb(3,0,20) */
  --bg-footer: #050510;     /* Footer rgb(5,5,16) */
  --panel: #0A0A1A;         /* 深色面板（Hero 视觉 / V-Score / 输入框） */

  /* 玻璃拟态 */
  --glass: rgba(255, 255, 255, 0.04);
  --glass-stroke: rgba(255, 255, 255, 0.10);
  --glass-stroke-soft: rgba(255, 255, 255, 0.08);
  --glass-stroke-2: rgba(255, 255, 255, 0.15);

  /* 强调色 */
  --cyan: #2EA7FF;          /* 青 rgb(46,167,255) */
  --cyan-green: #13DDC4;    /* 青绿 rgb(19,221,196) */
  --purple: #9381FF;        /* 紫 rgb(147,129,255) */
  --orange: #FFB454;        /* 电商/零售图标 rgb(255,180,84) */

  /* 文字 */
  --text: #FFFFFF;
  --text-2: #AEB4C2;        /* 次级正文 rgb(174,180,194) */
  --text-3: #6E7689;        /* 弱化 rgb(110,118,137) */

  /* 几何 */
  --radius-card: 24px;
  --radius-pill: 99px;
  --radius-input: 12px;
  --section-pad: 120px;
  --maxw: 1440px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------------- 极光背景（精确还原三层辉光） ---------------- */
.page {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
}
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow { position: absolute; border-radius: 50%; }
.glow-cyan {
  width: 1000px; height: 1000px; left: -260px; top: -200px;
  background: radial-gradient(circle, rgba(46,167,255,0.5), rgba(46,167,255,0) 70%);
}
.glow-purple {
  width: 840px; height: 840px; left: 900px; top: 1600px;
  background: radial-gradient(circle, rgba(147,129,255,0.4), rgba(147,129,255,0) 70%);
}
.glow-cyangreen {
  width: 1100px; height: 1100px; left: -220px; top: 3800px;
  background: radial-gradient(circle, rgba(19,221,196,0.4), rgba(19,221,196,0) 70%);
}

/* ---------------- 通用区块 ---------------- */
.section {
  position: relative;
  z-index: 1;
  padding: var(--section-pad);
}
.container { max-width: 1200px; margin: 0 auto; }

.sec-head { margin-bottom: 48px; }
.kicker {
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--cyan-green);
  margin: 0 0 12px;
}
.section-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 12px;
  letter-spacing: 0;
}
.section-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-2);
  line-height: 30px;
  max-width: 760px;
  margin: 0;
}

/* 通用卡片 */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-card);
}

/* 图标颜色类 */
.ic-cyan { color: var(--cyan); }
.ic-cyangreen { color: var(--cyan-green); }
.ic-purple { color: var(--purple); }
.ic-orange { color: var(--orange); }

/* ---------------- Header ---------------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 120px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--glass-stroke-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background .3s ease;
}
header.site.scrolled { background: rgba(3, 0, 20, 0.82); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .brand-icon {
  width: 36px; height: 36px; display: block;
  background: #fff; border-radius: 50%;
  padding: 3px; object-fit: contain;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.brand .brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand .name { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; }
.brand .tag {
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 10px; font-weight: 500; letter-spacing: 1px; color: var(--text-3);
}

nav.main { display: flex; align-items: center; gap: 32px; }
nav.main a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: color .2s ease;
}
nav.main a:hover { color: #fff; }

.btn-cta {
  background: var(--cyan); color: #fff; text-decoration: none;
  border-radius: var(--radius-pill); padding: 10px 22px;
  font-size: 14px; font-weight: 700; white-space: nowrap;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(46,167,255,0.35); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
}
.menu-toggle span {
  display: block; width: 22px; height: 2px; background: #fff; margin: 5px auto;
  transition: .3s ease;
}

/* ---------------- Hero ---------------- */
.hero { padding-top: 120px; padding-bottom: 100px; }
.eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12px; font-weight: 500; letter-spacing: .5px;
  color: var(--cyan-green);
  margin-bottom: 36px;
}
.hero h1 {
  font-size: 72px; font-weight: 800; line-height: 78px; letter-spacing: -1px;
  margin: 0 0 32px;
}
.hero h1 .grad { color: var(--cyan); }
.hero .sub {
  font-size: 19px; color: var(--text-2); line-height: 32px;
  max-width: 720px; margin: 0 0 36px;
}
.cta-row { display: flex; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.btn {
  border-radius: var(--radius-pill);
  padding: 14px 28px; font-size: 15px; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, background .25s ease;
}
.btn-primary { background: var(--cyan); color: #fff; font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46,167,255,0.4); }
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-stroke-2);
  color: var(--cyan); font-weight: 500;
}
.btn-secondary:hover { transform: translateY(-2px); background: rgba(255,255,255,0.08); }
.btn-green { background: var(--cyan-green); color: var(--bg); font-weight: 700; }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(19,221,196,0.4); }

.hero .tags {
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px; font-weight: 500; letter-spacing: .5px;
  color: var(--cyan-green);
}

/* ---------------- About ---------------- */
.about-body { display: flex; gap: 48px; align-items: flex-start; }
.about-left { flex: 0 0 480px; }
.about-left .intro { font-size: 16px; color: var(--text-2); line-height: 28px; margin: 0 0 20px; }
.about-left .quote { font-size: 20px; font-weight: 500; line-height: 32px; color: #fff; margin: 0; }
.about-right { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.principle { padding: 24px; }
.principle h4 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.principle p { font-size: 14px; color: var(--text-2); line-height: 22px; margin: 0; }
.t-cyan { color: var(--cyan); }
.t-cyangreen { color: var(--cyan-green); }
.t-purple { color: var(--purple); }

/* ---------------- Research Fields ---------------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.research-grid .card {
  padding: 28px;
  min-height: 340px;            /* 设计稿为 426px 高瘦条，这里收紧至 340 以保持视觉平衡 */
  display: flex; flex-direction: column; gap: 16px;
  align-items: flex-start;
}
.research-grid .card .icon { margin-bottom: 4px; }
.research-grid .card h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 0; }
.research-grid .card-icon { width: 32px; height: 32px; }

/* ---------------- Capabilities ---------------- */
.cap-list { display: flex; flex-direction: column; gap: 20px; }
.cap-card {
  display: flex; gap: 24px; align-items: center;
  padding: 32px;
}
.cap-card .icon { flex: 0 0 auto; width: 40px; height: 40px; }
.cap-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.cap-card p { font-size: 14px; color: var(--text-2); line-height: 22px; margin: 0; }

/* ---------------- Product ---------------- */
.product-body { display: flex; gap: 48px; align-items: stretch; }
.product-left { flex: 0 0 520px; }
.product-left .desc { font-size: 16px; color: var(--text-2); line-height: 28px; margin: 0 0 20px; }
.product-left ul { list-style: none; padding: 0; margin: 0 0 24px; }
.product-left li { font-size: 15px; color: #fff; line-height: 24px; margin-bottom: 10px; position: relative; padding-left: 18px; }
.product-left li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-green);
}
.vscore-panel {
  flex: 1; background: var(--panel);
  border: 1px solid var(--glass-stroke); border-radius: var(--radius-card);
  padding: 32px;
}
.vscore-panel h3 { font-size: 20px; font-weight: 700; color: var(--cyan); margin: 0 0 16px; }
.vscore-panel .row { font-size: 14px; color: var(--text-2); line-height: 22px; margin-bottom: 12px; }

/* ---------------- Product QR ---------------- */
.product-qr {
  display: flex; gap: 48px; align-items: center;
  margin-top: 48px; padding: 32px;
  background: var(--glass); border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-card);
}
.qr-info { flex: 1; }
.qr-info h3 { font-size: 22px; font-weight: 700; color: #fff; margin: 0 0 12px; }
.qr-info p { font-size: 15px; color: var(--text-2); line-height: 26px; margin: 0 0 12px; }
.qr-info .qr-tip {
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 13px;
  color: var(--cyan-green); margin: 0 0 20px;
}
.qr-card {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: #fff; border-radius: var(--radius-input);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.qr-card img { display: block; width: 172px; height: 172px; border-radius: 8px; }
.qr-card span { font-size: 13px; color: var(--bg); font-weight: 500; }

/* ---------------- Solutions ---------------- */
.sol-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sol-card { padding: 32px; }
.sol-card .icon { width: 36px; height: 36px; margin-bottom: 16px; }
.sol-card h3 { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 8px; }
.sol-card p { font-size: 14px; color: var(--text-2); line-height: 22px; margin: 0; }

/* ---------------- Insights ---------------- */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ins-card { padding: 28px; }
.ins-card .tag {
  font-family: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", Menlo, monospace; font-size: 12px; font-weight: 500;
  letter-spacing: .5px; color: var(--cyan-green); margin: 0 0 12px;
}
.ins-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 10px; line-height: 1.4; }
.ins-card p { font-size: 14px; color: var(--text-2); line-height: 22px; margin: 0; }
.ins-note { font-size: 14px; color: var(--text-3); margin-top: 24px; }

/* ---------------- Contact ---------------- */
.contact-body { display: flex; gap: 48px; align-items: flex-start; }
.contact-left { flex: 0 0 420px; }
.contact-left .company { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.contact-left p { font-size: 14px; color: var(--text-2); line-height: 22px; margin: 0 0 10px; }
.contact-left a { color: var(--cyan); text-decoration: none; }
.contact-left a:hover { text-decoration: underline; }
.contact-form .form-ok { font-size: 13px; color: var(--text-3); margin-top: 12px; min-height: 18px; }
.contact-form {
  flex: 1; background: var(--glass); border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-card); padding: 32px;
}
.contact-form h3 { font-size: 18px; font-weight: 700; color: #fff; margin: 0 0 16px; }
.field {
  width: 100%; height: 48px; background: var(--panel);
  border: 1px solid var(--glass-stroke); border-radius: var(--radius-input);
  padding: 0 16px; color: #fff; font-size: 14px; font-family: inherit;
  margin-bottom: 16px; outline: none; transition: border-color .2s ease;
}
.field::placeholder { color: var(--text-3); }
.field:focus { border-color: var(--cyan); }
textarea.field { height: auto; min-height: 96px; padding: 12px 16px; resize: vertical; }
.submit-btn {
  width: 100%; height: 48px; background: var(--cyan); color: #fff;
  border: none; border-radius: var(--radius-input);
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46,167,255,0.4); }
.form-ok { font-size: 14px; color: var(--cyan-green); margin-top: 12px; min-height: 18px; }

/* ---------------- Footer ---------------- */
footer.site {
  position: relative; z-index: 1;
  background: var(--bg-footer);
  border-top: 1px solid var(--glass-stroke-soft);
  padding: 60px 120px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; margin-bottom: 40px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-icon { width: 34px; height: 34px; padding: 2px; }
.footer-brand .name { font-size: 20px; font-weight: 700; color: #fff; line-height: 1; }
.footer-brand .tag { font-size: 12px; color: var(--text-3); }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-nav a { font-size: 14px; font-weight: 500; color: var(--text-2); text-decoration: none; transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px;
  font-size: 13px; color: var(--text-3); flex-wrap: wrap;
}
.footer-bottom .filings { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom .filings a { color: var(--text-2); text-decoration: none; transition: color .2s ease; display: inline-flex; align-items: center; gap: 5px; }
.footer-bottom .filings a:hover { color: var(--cyan); }
.footer-bottom .filings .gongan-shield { color: var(--cyan); flex: none; transform: translateY(.5px); }
.footer-bottom .filings a:hover .gongan-shield { color: var(--cyan-green); }

/* ---------------- 进场动效（不改动静态视觉） ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .node { animation: none; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1199px) {
  .section { padding: 90px 64px; }
  header.site { padding: 0 64px; }
  footer.site { padding: 50px 64px; }
  .hero h1 { font-size: 60px; line-height: 66px; }
  .research-grid { grid-template-columns: repeat(3, 1fr); }
  .research-grid .card { min-height: 280px; }
  .ins-grid { grid-template-columns: repeat(2, 1fr); }
  .about-body, .product-body, .contact-body { flex-direction: column; }
  .about-left, .product-left, .contact-left { flex: none; width: 100%; }
  .product-qr { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) {
  nav.main, .btn-cta { display: none; }
  .menu-toggle { display: block; }
  header.site.open nav.main {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 80px; left: 0; right: 0;
    padding: 24px 64px; background: rgba(3,0,20,0.96);
    border-bottom: 1px solid var(--glass-stroke-soft); backdrop-filter: blur(18px);
  }
  header.site.open .btn-cta { display: inline-block; position: absolute; top: 18px; right: 64px; }
}

@media (max-width: 767px) {
  :root { --section-pad: 56px; }
  .section { padding: 56px 24px; }
  header.site { padding: 0 24px; }
  footer.site { padding: 40px 24px; }
  header.site.open nav.main { padding: 24px; }
  .hero { padding-top: 64px; padding-bottom: 56px; }
  .hero h1 { font-size: 40px; line-height: 46px; }
  .section-title { font-size: 34px; }
  .section-sub { font-size: 16px; }
  .research-grid { grid-template-columns: repeat(2, 1fr); }
  .research-grid .card { min-height: 260px; padding: 22px; }
  .sol-grid, .ins-grid { grid-template-columns: 1fr; }
  .cap-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
