/* EchoMory 中国官网样式（深色高端风，纯静态，无外部资源） */

:root {
  --font-sans: system-ui, -apple-system, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;

  --bg: #0f0f1a;
  --bg-soft: #131325;
  --surface: #1a1a2e;
  --card: #151528;
  --fg: #e8e8ed;
  --muted: #9e9eb0;
  --subtle: #6e6e80;
  --brand: #8b5cf6;
  --brand-bright: #a78bfa;
  --brand-deep: #5b21b6;
  --brand-subtle: #2d1f5e;
  --border: #252540;
  --border-strong: #2d2d44;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --glow: 0 0 0 1px rgba(139, 92, 246, 0.35), 0 16px 48px rgba(139, 92, 246, 0.22);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* 滚动渐显 */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 15, 26, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.4), 0 0 18px rgba(139, 92, 246, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
  transition: box-shadow 0.25s, transform 0.25s;
}

.nav-cta:hover {
  box-shadow: 0 6px 26px rgba(139, 92, 246, 0.55);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 104px 0 84px;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.22), transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 220px;
  right: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(91, 33, 182, 0.25), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: var(--brand-bright);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 10px var(--brand-bright);
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.hero h1 .grad {
  background: linear-gradient(120deg, #c4b5fd 0%, #8b5cf6 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .subtitle {
  max-width: 620px;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(139, 92, 246, 0.6);
  transform: translateY(-2px);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--fg);
  background: rgba(26, 26, 46, 0.5);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-bright);
}

.hero-media {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}

.hero-media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--glow);
}

.hero-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(21, 21, 40, 0.92);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
  font-size: 13px;
  color: var(--fg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 12px var(--brand);
  flex-shrink: 0;
}

.hero-badge.b1 {
  top: -22px;
  left: 4%;
}

.hero-badge.b2 {
  bottom: -20px;
  right: 5%;
}

@media (max-width: 640px) {
  .hero-badge {
    display: none;
  }
}

/* ---------- 通用 section ---------- */

.section {
  padding: 92px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

/* ---------- 品牌故事 ---------- */

.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.story-media {
  position: relative;
}

.story-media::before {
  content: '';
  position: absolute;
  inset: -8%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.18), transparent 70%);
  pointer-events: none;
}

.story-media img {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card);
}

.story h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 18px;
}

.story h2 .grad {
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.story p {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 15.5px;
}

.story-points {
  list-style: none;
  margin-top: 8px;
}

.story-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--fg);
}

.story-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-bright);
  font-weight: 700;
}

@media (max-width: 860px) {
  .story {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---------- 定制服务 / 贺卡款式 ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.cards-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.28), rgba(91, 33, 182, 0.38));
  border: 1px solid rgba(139, 92, 246, 0.45);
  font-size: 22px;
  margin-bottom: 18px;
}

.card-media--square {
  aspect-ratio: 1 / 1;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.55);
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card-media img {
  transform: scale(1.06);
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(21, 21, 40, 0.9));
}

.card-body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card-body > p {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 16px;
}

.card-body ul {
  list-style: none;
  margin-top: auto;
}

.card-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 7px;
}

.card-body ul li::before {
  content: '·';
  position: absolute;
  left: 6px;
  color: var(--brand-bright);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  top: 2px;
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }
  .cards-grid--4 {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

@media (max-width: 540px) {
  .cards-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 定制流程 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

.step {
  text-align: center;
  padding: 0 10px;
  position: relative;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid rgba(139, 92, 246, 0.55);
  color: var(--brand-bright);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  box-shadow: 0 0 0 5px var(--bg), 0 0 24px rgba(139, 92, 246, 0.3);
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  font-size: 13.5px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 36px;
  }
  .steps::before {
    display: none;
  }
}

@media (max-width: 540px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* ---------- FAQ ---------- */

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

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-item[open] {
  border-color: rgba(139, 92, 246, 0.5);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 24px;
  font-size: 15.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-item summary:hover {
  color: var(--brand-bright);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--brand-bright);
  font-weight: 400;
  transition: transform 0.25s;
}

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

.faq-item .faq-body {
  padding: 0 24px 20px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 联系我们 CTA ---------- */

.cta-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6d28d9 0%, #4c1d95 60%, #3b0764 100%);
  border: 1px solid rgba(167, 139, 250, 0.4);
  border-radius: 26px;
  padding: 72px 40px;
  text-align: center;
  color: #fff;
}

.cta-panel::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 380px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.18), transparent 65%);
  pointer-events: none;
}

.cta-panel h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-panel p {
  opacity: 0.9;
  font-size: 16px;
  margin-bottom: 34px;
}

.cta-panel .btn {
  background: #fff;
  color: var(--brand-deep);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
}

.cta-panel .btn:hover {
  transform: translateY(-2px);
}

.contact-line {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 36px;
  font-size: 15px;
  opacity: 0.95;
}

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 60px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--fg);
}

.footer-brand p,
.footer-grid a,
.footer-grid li {
  font-size: 14px;
  color: var(--muted);
}

.footer-brand p {
  margin-top: 12px;
  max-width: 340px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid ul li {
  margin-bottom: 10px;
  line-height: 1.65;
}

.footer-grid a:hover {
  color: var(--brand-bright);
}

.footer-bottom {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--subtle);
}

.footer-bottom p {
  margin-bottom: 4px;
}

.footer-bottom a {
  color: var(--subtle);
}

.footer-bottom a:hover {
  color: var(--muted);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- 法律文档页 ---------- */

.legal {
  padding: 64px 0 96px;
}

.legal-paper {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 56px 48px;
  box-shadow: var(--shadow-card);
}

.legal-paper h1 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

.legal-meta {
  text-align: center;
  font-size: 13.5px;
  color: var(--subtle);
  margin-bottom: 36px;
}

.legal-paper h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 30px 0 12px;
  color: var(--brand-bright);
}

.legal-paper p,
.legal-paper li {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 10px;
}

.legal-paper strong {
  color: var(--fg);
}

.legal-paper ol,
.legal-paper ul {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-paper .doc-end {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--subtle);
  text-align: right;
}

@media (max-width: 640px) {
  .legal-paper {
    padding: 32px 22px;
  }
}

/* ---------- 404 ---------- */

.notfound {
  padding: 140px 0;
  text-align: center;
}

.notfound h1 {
  font-size: 72px;
  font-weight: 700;
  background: linear-gradient(120deg, #c4b5fd, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

.notfound p {
  color: var(--muted);
  margin-bottom: 30px;
}
