/* SiteGo 基础样式 —— 由主题变量驱动，模板可覆盖 */
:root {
  --zw-radius: 16px;
  --zw-max: 1080px;
  --zw-gap: clamp(16px, 3vw, 28px);
  --zw-muted: color-mix(in srgb, var(--zw-fg) 55%, transparent);
  --zw-surface: color-mix(in srgb, var(--zw-fg) 4%, var(--zw-bg));
  --zw-border: color-mix(in srgb, var(--zw-fg) 12%, transparent);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--zw-bg);
  color: var(--zw-fg);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.zw-wrap {
  width: 100%;
  max-width: var(--zw-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* ---------------------------------- 顶栏 ---------------------------------- */

.zw-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--zw-bg) 82%, transparent);
  border-bottom: 1px solid var(--zw-border);
}

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

.zw-brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.zw-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--zw-primary), var(--zw-accent));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.zw-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.zw-nav-links a {
  text-decoration: none;
  color: var(--zw-muted);
  transition: color 0.18s;
}

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

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

/* ---------------------------------- 首屏 ---------------------------------- */

.zw-hero {
  position: relative;
  padding: clamp(64px, 12vw, 132px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}

.zw-hero::before {
  content: '';
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 70%;
  background: radial-gradient(
    50% 60% at 30% 20%,
    color-mix(in srgb, var(--zw-primary) 22%, transparent),
    transparent 70%
  );
  pointer-events: none;
}

.zw-hero-inner {
  position: relative;
  display: grid;
  gap: 22px;
  max-width: 760px;
}

.zw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--zw-primary) 35%, transparent);
  background: color-mix(in srgb, var(--zw-primary) 10%, transparent);
  color: var(--zw-primary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.zw-hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.zw-hero .zw-tagline {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--zw-muted);
  max-width: 620px;
  margin: 0;
}

.zw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.zw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.zw-btn-primary {
  background: var(--zw-primary);
  color: #fff;
  box-shadow: 0 10px 28px -12px color-mix(in srgb, var(--zw-primary) 80%, transparent);
}

.zw-btn-primary:hover {
  transform: translateY(-1px);
}

.zw-btn-ghost {
  border-color: var(--zw-border);
  color: var(--zw-fg);
}

.zw-btn-ghost:hover {
  background: var(--zw-surface);
}

/* ---------------------------------- 区块 ---------------------------------- */

.zw-section {
  padding: clamp(48px, 8vw, 88px) 0;
  border-top: 1px solid var(--zw-border);
}

.zw-sec-first {
  border-top: 0;
}

.zw-sec-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 11vw, 120px) 0 clamp(44px, 7vw, 84px);
}

.zw-sec-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 78%;
  background: radial-gradient(
    46% 58% at 28% 18%,
    color-mix(in srgb, var(--zw-primary) 20%, transparent),
    transparent 72%
  );
  pointer-events: none;
}

.zw-sec-hero > .zw-wrap {
  position: relative;
}

.zw-section-head {
  max-width: 640px;
  margin-bottom: clamp(28px, 5vw, 48px);
}

.zw-section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  letter-spacing: -0.02em;
  font-weight: 750;
}

.zw-section-head p {
  margin: 0;
  color: var(--zw-muted);
}

.zw-body {
  max-width: 680px;
  color: var(--zw-muted);
}

.zw-body p {
  margin: 0 0 1em;
}

/* ---------------------------------- 卡片 ---------------------------------- */

.zw-grid {
  display: grid;
  gap: var(--zw-gap);
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

@media (max-width: 900px) {
  .zw-grid {
    grid-template-columns: repeat(min(var(--cols, 3), 2), minmax(0, 1fr));
  }
}

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

.zw-card {
  padding: 24px;
  border-radius: var(--zw-radius);
  border: 1px solid var(--zw-border);
  background: var(--zw-surface);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.zw-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--zw-primary) 45%, transparent);
}

.zw-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.zw-card p {
  margin: 0;
  color: var(--zw-muted);
  font-size: 0.94rem;
}

.zw-card .zw-meta {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--zw-primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------- 作品集 --------------------------------- */

.zw-gallery {
  display: grid;
  gap: var(--zw-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 700px) {
  .zw-gallery {
    grid-template-columns: 1fr;
  }
}

.zw-shot {
  display: block;
  position: relative;
  border-radius: var(--zw-radius);
  overflow: hidden;
  border: 1px solid var(--zw-border);
  background: var(--zw-surface);
  text-decoration: none;
  aspect-ratio: 4 / 3;
}

.zw-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.zw-shot:hover img {
  transform: scale(1.04);
}

.zw-shot-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--zw-primary) 20%, transparent),
    color-mix(in srgb, var(--zw-accent) 20%, transparent)
  );
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.zw-shot-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.68));
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
}

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

.zw-contact {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.zw-contact-item {
  padding: 20px 22px;
  border-radius: var(--zw-radius);
  border: 1px solid var(--zw-border);
  background: var(--zw-surface);
}

.zw-contact-item span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zw-muted);
  margin-bottom: 6px;
}

.zw-contact-item strong {
  font-weight: 600;
  word-break: break-all;
}

/* --------------------------------- 链接区 --------------------------------- */

.zw-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.zw-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--zw-border);
  background: var(--zw-surface);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.18s, transform 0.18s;
}

.zw-link:hover {
  border-color: color-mix(in srgb, var(--zw-primary) 50%, transparent);
  transform: translateY(-1px);
}

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

.zw-footer {
  padding: 40px 0;
  border-top: 1px solid var(--zw-border);
  color: var(--zw-muted);
  font-size: 0.86rem;
}

.zw-footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

/* --------------------------------- 动效 ---------------------------------- */

.zw-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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