/* ==================================================
   阿青Ai定制 · 作品集样式
   深色科技风 / 蓝紫渐变主题 / 手机优先适配
   ================================================== */

:root {
  --bg: #0a0a14;
  --bg-alt: #0d0d1a;
  --card: #131322;
  --card-hover: #17172a;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(124, 140, 255, 0.45);
  --text: #f5f6fa;
  --text-dim: rgba(230, 234, 250, 0.6);
  --text-soft: #cfd3e4;
  --accent: #7c9aff;
  --grad: linear-gradient(135deg, #4f8cff 0%, #8b5cf6 100%);
  --nav-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 10px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(124, 140, 255, 0.4); }

ul { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ---------- 通用 ---------- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.section { padding: 88px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-head { text-align: center; margin-bottom: 52px; }
.eyebrow {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.55rem, 4.5vw, 2.2rem); font-weight: 700; }
.section-head p { color: var(--text-dim); margin-top: 10px; font-size: 0.95rem; }

/* ---------- 滚动淡入动画（.visible 由 JS 添加） ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* 网格里子项依次淡入的延迟（只在未显示时生效，不影响之后的悬停手感） */
.stagger > .reveal:nth-child(2):not(.visible),
.stagger > .reveal:nth-child(4):not(.visible) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3):not(.visible),
.stagger > .reveal:nth-child(5):not(.visible) { transition-delay: 0.16s; }
.stagger > .reveal:nth-child(6):not(.visible) { transition-delay: 0.24s; }

/* ---------- 1. 顶部导航 ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled {
  background: rgba(10, 10, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 20px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.05rem; color: var(--text);
}
.logo-dot {
  width: 11px; height: 11px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(124, 92, 255, 0.9);
  transform: rotate(45deg);
}
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  display: block; padding: 6px 13px; border-radius: 9px;
  font-size: 0.95rem; color: var(--text-dim);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: rgba(255, 255, 255, 0.07); }

/* ---------- 2. 首屏大图区 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 90px 20px 70px;
  background: radial-gradient(ellipse 70% 55% at 50% 112%, rgba(88, 70, 246, 0.16), transparent 70%);
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.38; pointer-events: none;
  animation: float 10s ease-in-out infinite;
}
.orb-blue { width: 430px; height: 430px; background: #2f5cff; top: -130px; left: -110px; }
.orb-purple {
  width: 400px; height: 400px; background: #7b2ff7;
  bottom: -140px; right: -100px;
  animation-delay: -5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero h1 {
  font-size: clamp(2.15rem, 7vw, 3.8rem);
  font-weight: 800; line-height: 1.28; letter-spacing: 0.015em;
}
.gradient-text {
  background: linear-gradient(120deg, #5b8cff 10%, #a06bff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero-subtitle {
  margin-top: 20px;
  color: var(--text-dim);
  font-size: clamp(0.98rem, 2.6vw, 1.18rem);
  letter-spacing: 0.08em;
}
.btn-primary {
  display: inline-block; margin-top: 40px;
  padding: 15px 46px; border-radius: 999px;
  background: var(--grad); color: #fff;
  font-size: 1.05rem; font-weight: 600;
  box-shadow: 0 10px 34px rgba(99, 102, 241, 0.38);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(99, 102, 241, 0.5);
}

/* ---------- 3. 作品展示区 ---------- */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.45s ease, opacity 0.7s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.work-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.13), transparent 46%);
}
/* 换成真图后：图片自动填满卡片图区，裁剪不变形 */
.work-thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-thumb:has(img)::before { display: none; }
.thumb-1 { background: linear-gradient(135deg, #16224d, #2b2a6b); }
.thumb-2 { background: linear-gradient(135deg, #1a1f4d, #46306e); }
.thumb-3 { background: linear-gradient(135deg, #131b3f, #33305f); }
.thumb-4 { background: linear-gradient(135deg, #1d2352, #3d2a63); }
.thumb-5 { background: linear-gradient(135deg, #151d46, #42296b); }
.thumb-6 { background: linear-gradient(135deg, #182748, #2e2a72); }
.work-icon {
  font-size: 3.4rem;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
  transition: transform 0.45s ease;
}
.work-card:hover .work-icon { transform: scale(1.14); }
.work-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-size: 0.74rem; padding: 4px 11px; border-radius: 999px;
  color: #e8ecff;
  background: rgba(10, 10, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.work-card figcaption { padding: 16px 18px 18px; }
.work-card figcaption h3 { font-size: 1.02rem; font-weight: 600; }
.work-card figcaption p { margin-top: 4px; font-size: 0.85rem; color: var(--text-dim); }

/* ---------- 4. 服务与价格区 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 30px 24px 26px;
  display: flex; flex-direction: column;
  transition: transform 0.45s ease, opacity 0.7s ease,
    border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: var(--card-hover);
  border-color: var(--border-glow);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  background: rgba(124, 140, 255, 0.12);
  border: 1px solid rgba(124, 140, 255, 0.28);
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.12rem; font-weight: 700; }
.service-price { margin: 12px 0 20px; display: flex; align-items: baseline; gap: 6px; }
.service-price em {
  font-style: normal; font-size: 1.7rem; font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #6d9bff, #a78bff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.service-price span { font-size: 0.85rem; color: var(--text-dim); }
.feature-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.feature-list li { position: relative; padding-left: 22px; font-size: 0.92rem; color: var(--text-soft); }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}
.service-cta {
  margin-top: auto;
  text-align: center; padding: 11px; border-radius: 11px;
  border: 1px solid rgba(124, 140, 255, 0.35);
  color: #aebcff; font-size: 0.9rem;
  transition: background 0.25s ease, color 0.25s ease;
}
.service-cta:hover { background: rgba(124, 140, 255, 0.14); color: #d3ddff; }

/* ---------- 5. 客户评价区 ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.45s ease, opacity 0.7s ease, border-color 0.3s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: rgba(124, 140, 255, 0.3); }
.stars { color: #ffc861; letter-spacing: 4px; font-size: 0.95rem; }
.review-text { font-size: 0.94rem; color: var(--text-soft); }
.reviewer { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); color: #fff;
  font-size: 0.92rem; font-weight: 700; flex: none;
}
.reviewer-name { font-size: 0.9rem; color: var(--text-dim); }

/* ---------- 6. 底部联系区 ---------- */
.contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 44px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 42px 40px;
}
.contact-item {
  display: flex; align-items: center; gap: 15px;
  padding: 15px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.contact-item:last-of-type { border-bottom: none; }
.contact-icon {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  background: rgba(124, 140, 255, 0.12);
  border: 1px solid rgba(124, 140, 255, 0.28);
}
.contact-label { font-size: 0.78rem; color: var(--text-dim); }
.contact-value { font-size: 1.06rem; font-weight: 600; word-break: break-all; }
.copy-btn {
  margin-left: auto; flex: none;
  padding: 8px 18px; border-radius: 9px;
  border: 1px solid rgba(124, 140, 255, 0.4);
  background: transparent; color: #aebcff;
  font-size: 0.85rem; cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}
.copy-btn:hover { background: rgba(124, 140, 255, 0.15); color: #d3ddff; }
.contact-tip { margin-top: 16px; font-size: 0.87rem; color: var(--text-dim); }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qr-code {
  width: 172px; height: 172px;
  background: #fff; border-radius: 16px; padding: 15px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}
.qr-code svg { width: 100%; height: 100%; }
.qr-caption { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- 7. 页脚 ---------- */
.footer {
  background: #08080f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- 复制成功提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 9%;
  transform: translate(-50%, 12px);
  background: #1d1d33;
  border: 1px solid rgba(124, 140, 255, 0.45);
  color: #fff; padding: 10px 24px; border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 40px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 34px; padding: 32px 26px; }
  .qr-box { margin: 0 auto; }
}

@media (max-width: 540px) {
  .works-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .btn-primary { padding: 14px 40px; }
}

@media (max-width: 430px) {
  .nav-inner { padding: 0 14px; }
  .logo { font-size: 0.98rem; }
  .nav-links a { padding: 5px 8px; font-size: 0.88rem; }
}

/* 尊重系统“减少动态效果”设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
