/* ============================================================
   AOrigin — Design System
   Light, tech-focused. Blue accent. Responsive.
   ============================================================ */

:root {
  --bg: #f4f7fb;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #94a3b8;
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --accent-glow: rgba(37, 99, 235, 0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--relative { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-bright); transform: translateY(-2px); }
.btn--ghost {
  background: rgba(15,23,42,0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(15,23,42,0.06); border-color: var(--accent); }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
}
.nav__logo-img { height: 36px; width: auto; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 0.92rem;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}
.nav__link:hover, .nav__link.active { color: var(--text); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav__cta {
  padding: 8px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text);
  transition: all 0.25s var(--ease);
}
.nav__cta:hover { border-color: var(--accent); background: var(--accent); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__toggle span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg);
  overflow: hidden;
}
.hero__overlay {
  display: none;
}
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.hero__particles canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.hero__eyebrow {
  font-size: 0.85rem;
  color: var(--accent-bright);
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
}
.hero__title span {
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  color: var(--text-dim);
  font-style: italic;
  margin-bottom: 14px;
}
.hero__desc {
  font-size: 1.02rem;
  color: var(--text-faint);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  z-index: 2;
}
.hero__scroll span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent-bright);
  border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translate(-50%, 14px); }
  100% { opacity: 0; }
}

/* ============================================================
   Sections
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--bg { overflow: hidden; }


.section__head { max-width: 720px; margin-bottom: 56px; }
.section__tag {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  color: var(--accent-bright);
  margin-bottom: 14px;
  font-weight: 600;
}
.section__title {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section__lead { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Vision cards ---------- */
.vision__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.vision__card {
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.vision__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.vision__icon {
  width: 40px; height: 40px;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.vision__card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.vision__card p { color: var(--text-dim); font-size: 0.98rem; }

/* ---------- Business cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.card {
  position: relative;
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-6px); background: var(--surface-2); }
.card:hover::before { transform: scaleX(1); }
.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.card__icon { width: 40px; height: 40px; color: var(--accent-bright); }
.card__index { font-size: 2.2rem; font-weight: 800; color: rgba(15,23,42,0.07); line-height: 1; }
.card__title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.card__title small { font-size: 0.85rem; font-weight: 400; color: var(--text-faint); }
.card__desc { color: var(--text-dim); margin-bottom: 20px; font-size: 0.98rem; }
.card__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.card__list li {
  position: relative;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Tech layers ---------- */
.layers { display: flex; flex-direction: column; gap: 16px; }
.layer {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.layer:hover { border-color: var(--accent); transform: translateX(6px); }
.layer__num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  min-width: 48px;
}
.layer__body h3 { font-size: 1.15rem; margin-bottom: 4px; display: flex; align-items: baseline; gap: 8px; }
.layer__body h3 small { font-size: 0.78rem; font-weight: 400; color: var(--text-faint); }
.layer__body p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Business model ---------- */
.model {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.model__step {
  flex: 1;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.model__step:hover { border-color: var(--accent); transform: translateY(-4px); }
.model__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 auto 18px;
  box-shadow: 0 0 0 6px rgba(59,130,246,0.15);
}
.model__step h3 { font-size: 1.25rem; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; justify-content: center; }
.model__step h3 small { font-size: 0.78rem; font-weight: 400; color: var(--text-faint); }
.model__step p { color: var(--text-dim); font-size: 0.95rem; }
.model__arrow {
  display: flex;
  align-items: center;
  color: var(--text-faint);
}
.model__arrow svg { width: 28px; height: 28px; }

/* ---------- Roadmap ---------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.phase {
  padding: 30px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.phase:hover { border-color: var(--accent); transform: translateY(-4px); }
.phase__tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-bright);
  padding: 4px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  margin-bottom: 16px;
}
.phase__time { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 10px; }
.phase h3 { font-size: 1.12rem; margin-bottom: 10px; }
.phase p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- Team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team__card {
  padding: 36px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.team__card:hover { border-color: var(--accent); transform: translateY(-4px); }
.team__icon { width: 36px; height: 36px; color: var(--accent-bright); margin-bottom: 18px; }
.team__card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.team__card p { color: var(--text-dim); font-size: 0.96rem; }

/* ---------- Contact / 留资表单 ---------- */
.section--contact { padding: 90px 0; }
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 48px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
}
.contact__info .section__tag { margin-bottom: 18px; }
.contact__title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; line-height: 1.2; margin-bottom: 16px; }
.contact__desc { color: var(--text-dim); font-size: 1rem; max-width: 420px; margin-bottom: 26px; }

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.86rem; color: var(--text-dim); }
.field .req { color: var(--accent-bright); }
.field input,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.field textarea { resize: vertical; }
.contact__submit { width: 100%; margin-top: 4px; }
.contact__success {
  text-align: center;
  color: var(--accent-bright);
  font-size: 0.92rem;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: rgba(59,130,246,0.08);
}

@media (max-width: 900px) {
  .contact { grid-template-columns: 1fr; gap: 36px; padding: 40px 28px; }
}
@media (max-width: 600px) {
  .contact { padding: 32px 20px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 0 0; }
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__logo { margin-bottom: 10px; display: inline-flex; align-items: center; } .footer__logo-img { height: 36px; width: auto; }
.footer__brand p { color: var(--text-faint); font-size: 0.88rem; }
.footer__cols { display: flex; gap: 60px; }
.footer__col h4 { font-size: 0.8rem; letter-spacing: 1px; color: var(--text); margin-bottom: 14px; text-transform: uppercase; }
.footer__col a { display: block; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 8px; transition: color 0.2s; }
.footer__col a:hover { color: var(--accent-bright); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 24px;
  text-align: center;
}
.footer__bottom p { color: var(--text-faint); font-size: 0.82rem; }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .vision__grid, .team { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; }
  .footer__cols { gap: 40px; }
}

@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 75%;
    max-width: 320px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 28px 28px;
    gap: 8px;
    background: var(--bg-alt);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 99;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 1.05rem; padding: 10px 0; width: 100%; }
  .nav__link.active::after { display: none; }
  .nav__cta { margin-top: 10px; }
  .nav__toggle { display: flex; z-index: 101; }

  .section { padding: 76px 0; }
  .section__head { margin-bottom: 40px; }
  .cards { grid-template-columns: 1fr; }
  .layer { flex-direction: row; gap: 16px; padding: 20px; }
  .layer__num { font-size: 1.3rem; min-width: 36px; }
  .model { flex-direction: column; }
  .model__arrow { transform: rotate(90deg); justify-content: center; padding: 4px 0; }
  .roadmap { grid-template-columns: 1fr; }
  .cta { padding: 50px 24px; }
  .hero__actions .btn { flex: 1; min-width: 140px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .card, .vision__card, .team__card, .phase { padding: 26px 22px; }
  .footer__cols { flex-direction: column; gap: 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
/* ============================================================
   Card sub-link (二级菜单入口)
   ============================================================ */
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-bright);
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}
.card__more svg { width: 16px; height: 16px; }
.card__more:hover { gap: 10px; color: var(--accent); }

/* ============================================================
   Cloud / resources sub-page
   ============================================================ */
.pagehero {
  padding: 140px 0 40px;
  border-bottom: 1px solid var(--border);
}
.backlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  transition: color 0.2s, gap 0.2s var(--ease);
}
.backlink svg { width: 16px; height: 16px; }
.backlink:hover { color: var(--accent-bright); gap: 10px; }
.pagehero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 10px 0 16px;
}
.pagehero__desc { color: var(--text-dim); max-width: 620px; font-size: 1.05rem; }

.res__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.res {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.res:hover { border-color: var(--accent); transform: translateY(-4px); }
.res__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.res__chip {
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.res__badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-bright);
  background: rgba(59,130,246,0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.res__name {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.res__sub { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 20px; }
.res__specs { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.res__specs li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.res__specs li:last-child { border-bottom: none; padding-bottom: 0; }
.res__specs span { color: var(--text-faint); }
.res__specs b { color: var(--text); font-weight: 600; text-align: right; }

.res__cta {
  margin-top: 44px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.res__cta p { color: var(--text-dim); font-size: 0.96rem; }

@media (max-width: 900px) {
  .res__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .res__grid { grid-template-columns: 1fr; }
  .res__cta { flex-direction: column; align-items: flex-start; }
}
