/* 魅影AI工作室 — 新拟物主义主题 */
:root {
  color-scheme: light;
  --color-primary: #7c5cff;
  --color-background: #e9edf3;
  --color-surface: #edf0f6;
  --color-muted-text: #7a8394;
  --color-border: #d4dae4;
  --color-bg: #e9edf3;
  --color-surface-strong: #f2f5fa;
  --color-text: #333a48;
  --color-muted: #7a8394;
  --color-brand: #7c5cff;
  --color-brand-2: #b18cff;
  --color-gradient: linear-gradient(135deg, #7c5cff 0%, #a97fff 60%, #c9a8ff 100%);
  --color-focus: #7c5cff;
  --shadow-raised:
    8px 8px 18px rgba(151, 166, 190, 0.55),
    -8px -8px 18px rgba(255, 255, 255, 0.92);
  --shadow-raised-sm:
    4px 4px 10px rgba(151, 166, 190, 0.45),
    -4px -4px 10px rgba(255, 255, 255, 0.85);
  --shadow-pressed:
    inset 5px 5px 10px rgba(151, 166, 190, 0.5),
    inset -5px -5px 10px rgba(255, 255, 255, 0.95);
  --shadow-brand:
    6px 6px 14px rgba(124, 92, 255, 0.35),
    -4px -4px 12px rgba(255, 255, 255, 0.9);
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    ui-sans-serif, system-ui, sans-serif;
  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei",
    ui-sans-serif, system-ui, sans-serif;
  --radius-sm: 0.75rem;
  --radius-md: 1.1rem;
  --radius-lg: 1.6rem;
  --radius-pill: 3rem;
  --content-width: 68rem;
  --space-unit: 0.25rem;
  --header-height: 4.5rem;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  line-height: 1.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  left: 1rem;
  position: fixed;
  top: 1rem;
  transform: translateY(-200%);
  z-index: 100;
  background: var(--color-surface-strong);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-raised-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- 共享壳层 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 237, 243, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 0.94rem;
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  color: var(--color-text);
  background: var(--color-surface);
  box-shadow: var(--shadow-raised-sm);
}

.nav-toggle {
  display: none;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-raised);
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .nav-links a {
    display: block;
    padding: 0.65rem 1rem;
  }

  .nav-toggle {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface);
    box-shadow: var(--shadow-raised-sm);
    cursor: pointer;
    color: var(--color-text);
    font-size: 1.15rem;
    line-height: 1;
  }

  .nav-open .nav-links {
    display: flex;
  }
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 5rem 1.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.1), rgba(177, 140, 255, 0.14));
  padding: 0.3rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 0.8rem;
  letter-spacing: 0.01em;
}

.section-sub {
  color: var(--color-muted);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.02rem;
}

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

.hero {
  min-height: calc(100dvh - var(--header-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.1) 0%, transparent 65%);
  top: -8rem;
  right: -6rem;
  pointer-events: none;
}

.hero-logo {
  width: clamp(9rem, 22vw, 13rem);
  height: auto;
  margin-bottom: 1.8rem;
  filter: drop-shadow(0 10px 24px rgba(124, 92, 255, 0.28));
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--color-muted);
  max-width: 40rem;
  margin: 0 auto 2.2rem;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.6rem;
}

.hero-tags span {
  background: var(--color-surface);
  box-shadow: var(--shadow-raised-sm);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: var(--color-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.9rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary {
  background: var(--color-gradient);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 8px 10px 18px rgba(124, 92, 255, 0.42), -4px -4px 12px rgba(255, 255, 255, 0.9);
}

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-raised);
}

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

/* ---------- 业务范围卡片 ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 2rem 1.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow:
    12px 12px 24px rgba(151, 166, 190, 0.6),
    -10px -10px 22px rgba(255, 255, 255, 0.95);
}

.service-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  background: var(--color-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-brand);
  margin-bottom: 0.3rem;
}

.service-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
}

.service-desc {
  color: var(--color-muted);
  font-size: 0.96rem;
  margin: 0;
  flex: 1;
}

.service-note {
  font-size: 0.85rem;
  color: var(--color-brand);
  font-weight: 600;
}

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

/* ---------- 关于 ---------- */

.about-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.4rem;
  align-items: stretch;
}

.about-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 2.2rem;
}

.about-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.about-card p {
  color: var(--color-muted);
  margin: 0 0 1rem;
}

.about-card p:last-child {
  margin-bottom: 0;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.stat {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pressed);
  text-align: center;
  padding: 1.1rem 0.6rem;
}

.stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  font-size: 0.82rem;
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- 联系 ---------- */

.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 2.6rem;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-brand);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  background: var(--color-surface-strong);
  box-shadow: var(--shadow-pressed);
  margin: 1.2rem 0 1rem;
  word-break: break-all;
}

.contact-mail:hover {
  box-shadow: var(--shadow-raised-sm);
}

.contact-tip {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem 1.5rem 2.6rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.6rem;
}

.footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

/* ---------- 核心优势 ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-sm);
  padding: 1.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card b {
  font-size: 1.02rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- 技能方向 ---------- */

.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.direction-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pressed);
  padding: 1.6rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.direction-icon {
  flex: none;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.85rem;
  background: var(--color-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: var(--shadow-brand);
}

.direction-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.direction-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .directions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- 服务流程 ---------- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: process;
}

.process-step {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised-sm);
  padding: 1.6rem 1.4rem;
  position: relative;
}

.process-step::before {
  counter-increment: process;
  content: "0" counter(process);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  background: var(--color-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-brand);
  margin-bottom: 0.9rem;
}

.process-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.process-step p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- 可访问性与动效 ---------- */

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