:root {
  --bg: #08080a;
  --panel: rgba(21, 21, 25, 0.72);
  --line: rgba(129, 103, 255, 0.2);
  --text: #f5f3f8;
  --muted: #9b98a3;
  --purple: #5b39ff;
  --pink: #b52af4;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 38%, rgba(74, 32, 125, 0.09), transparent 34%),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.text-gradient {
  color: transparent;
  background: linear-gradient(135deg, #6945ff, #b52af4);
  background-clip: text;
  -webkit-background-clip: text;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 65px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 8, 10, 0.88);
  border-bottom: 1px solid rgba(116, 89, 255, 0.16);
  backdrop-filter: blur(20px);
}
.brand { font-weight: 800; font-size: 19px; letter-spacing: .02em; }
.site-nav { display: flex; gap: 36px; }
.site-nav a { color: #b4b1bb; font-size: 14px; transition: .25s; }
.site-nav a:hover, .site-nav a.active { color: #6643ff; }
.menu-toggle { display: none; padding: 8px; border: 0; background: none; }
.menu-toggle span { display: block; width: 20px; height: 1px; margin: 5px; background: #b6b2bc; }

.hero {
  min-height: 720px;
  height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 40px;
  background: linear-gradient(180deg, #07070c 0%, #0c0716 35%, #120924 70%, #050507 100%);
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .92; }
.hero-glow {
  position: absolute;
  width: 760px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 47, 255, .23), rgba(95, 33, 255, .05) 55%, transparent 72%);
  filter: blur(8px);
}
.hero-content { position: relative; z-index: 2; text-align: center; transform: translateY(-4px); }
.eyebrow-pill {
  width: fit-content;
  margin: 0 auto 34px;
  padding: 8px 18px;
  color: #c5c1cd;
  border: 1px solid rgba(143, 112, 255, .2);
  border-radius: 999px;
  background: rgba(20, 18, 29, .72);
  backdrop-filter: blur(16px);
  font-size: 14px;
}
.eyebrow-pill span { color: #7250ff; margin-right: 8px; }
.hero h1 {
  margin: 0;
  font-size: clamp(58px, 6vw, 80px);
  line-height: 1.1;
  letter-spacing: .01em;
  color: transparent;
  background: linear-gradient(135deg, #c8b7ff, #e6ccff 50%, #e7b6ff);
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 28px rgba(141, 85, 237, .34));
}
.hero h2 { margin: 28px 0 22px; font-size: 24px; letter-spacing: .06em; }
.hero p { color: #827d8b; font-size: 16px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; margin-top: 42px; }
.button {
  min-width: 132px;
  height: 76px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.button:hover { transform: translateY(-3px); }
.button-primary { background: linear-gradient(135deg, #5435f4, #643cff); box-shadow: 0 16px 50px rgba(70, 37, 220, .22); }
.button-secondary { border: 1px solid rgba(151, 121, 255, .2); background: rgba(14, 12, 20, .5); }

.section { position: relative; padding: 112px 0; scroll-margin-top: 64px; }
.portfolio-section { background: rgba(0,0,0,.15); }
.section-head { max-width: 850px; margin-bottom: 62px; }
.section-kicker { color: #6342ff; font-size: 13px; letter-spacing: .08em; margin-bottom: 14px; }
.section-head h2 { margin: 0 0 20px; font-size: clamp(32px, 3vw, 42px); line-height: 1.25; }
.section-head p { margin: 0; color: var(--muted); font-size: 16px; }
.glass-card, .brand-case, .work-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015), 0 20px 45px rgba(0,0,0,.08);
}
.glass-card { transition: transform .3s, border-color .3s, box-shadow .3s; }
.glass-card:hover { transform: translateY(-5px); border-color: rgba(117, 82, 255, .48); box-shadow: 0 16px 50px rgba(55, 31, 140, .11); }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.centered { min-height: 235px; padding: 32px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.icon-box {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  color: #6844ff;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(88,56,250,.2), rgba(175,37,244,.1));
  box-shadow: 0 0 25px rgba(78,47,212,.12);
  font-size: 23px;
}
.centered h3, .service-card h3 { margin: 20px 0 10px; color: #9e8aff; font-size: 21px; }
.centered p, .service-card p { margin: 0; color: #a29fa9; font-size: 14px; }
.stats { margin-top: 48px; padding: 44px 30px; display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 38px; line-height: 1.15; color: transparent; background: linear-gradient(135deg,#5838fa,#af25f4); background-clip: text; -webkit-background-clip: text; }
.stats span { color: #aaa6b0; margin-top: 8px; font-size: 14px; }

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card { min-height: 238px; padding: 25px 24px; }
.service-card h3 { margin-top: 18px; font-size: 18px; }
.service-card p { font-size: 14px; }

.brand-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.brand-case { overflow: hidden; transition: transform .3s, border-color .3s; }
.brand-case:hover { transform: translateY(-5px); border-color: rgba(117,82,255,.5); }
.brand-case, .work-card, .team-card { cursor: pointer; }
.brand-case:focus-visible, .work-card:focus-visible, .team-card:focus-visible {
  outline: 2px solid #7453ff;
  outline-offset: 4px;
}
.case-cover { position: relative; height: 190px; background-position: center; background-size: cover; }
.case-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 42%, #111114 100%); }
.case-cover.light::after { background: linear-gradient(transparent 30%, rgba(17,17,20,.8) 100%); }
.case-cover.logo-cover::after { background: linear-gradient(rgba(0,0,0,.18), rgba(17,17,20,.55)); }
.case-logo {
  position: absolute;
  z-index: 1;
  inset: 50% auto auto 50%;
  width: 150px;
  height: 96px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .5s;
}
.brand-case:hover .case-logo { transform: translate(-50%, -50%) scale(1.08); }
.case-cover > span, .work-image > span {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 16px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(17,17,21,.75);
  color: #fff;
  font-size: 12px;
}
.case-body { padding: 0 24px 24px; min-height: 230px; }
.case-title { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.case-title h3 { margin: 10px 0 12px; font-size: 21px; }
.case-title b { padding: 2px 8px; color: #7555ff; background: rgba(91,57,255,.1); border-radius: 10px; font-size: 11px; white-space: nowrap; }
.case-body p { color: #b0acb5; font-size: 13px; min-height: 84px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tags span { padding: 4px 10px; border: 1px solid #333239; border-radius: 999px; color: #85828c; font-size: 11px; }
.client-strip { margin-top: 85px; overflow: hidden; text-align: center; }
.client-strip h3 { color: transparent; background: linear-gradient(90deg,#244af5,#7551ff); background-clip: text; -webkit-background-clip: text; font-size: 28px; }
.logo-track { margin-top: 28px; overflow: hidden; }
.logo-row { --logo-shift-fix: 9px; display: flex; width: max-content; gap: 18px; animation: logo-marquee 52s linear infinite; will-change: transform; }
.logo-row span { flex: 0 0 150px; width: 150px; height: 76px; display: grid; place-items: center; overflow: hidden; padding: 12px 18px; border-radius: 12px; background: #fff; }
.logo-row img { display: block; width: auto; height: auto; max-width: 100%; max-height: 52px; object-fit: contain; object-position: center; }

@keyframes logo-marquee {
  to { transform: translateX(calc(-50% - var(--logo-shift-fix))); }
}

.portfolio-label { text-align: center; margin: 0 0 22px; font-size: 28px; color: #8c78ff; }
.filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: max-content;
  max-width: 100%;
  gap: 6px;
  margin: 0 auto 48px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.filters button, .more-button {
  padding: 9px 8px;
  color: #6d4dff;
  border: 1px solid #5538dc;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: .25s;
  font-size: 12px;
}
.filters button:hover, .filters button.active { color: #fff; background: #5838fa; }
.filter-select-wrap { display: none; }
.filter-select-wrap label {
  display: block;
  margin-bottom: 9px;
  color: #96919e;
  font-size: 12px;
}
.filter-select-control { position: relative; }
.filter-select-control::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8b72ff;
  border-bottom: 2px solid #8b72ff;
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}
.filter-select-control select {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 17px;
  appearance: none;
  color: #fff;
  border: 1px solid rgba(112,78,255,.75);
  border-radius: 14px;
  outline: none;
  background: linear-gradient(135deg, rgba(34,27,57,.92), rgba(15,14,20,.96));
  box-shadow: 0 10px 30px rgba(48,27,118,.16);
  font: inherit;
  font-size: 14px;
}
.filter-select-control select:focus {
  border-color: #8a70ff;
  box-shadow: 0 0 0 3px rgba(112,78,255,.16);
}
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work-card { overflow: hidden; transition: transform .3s, opacity .25s; }
.work-card:hover { transform: translateY(-4px); }
.work-card.filtered-out { display: none; }
.work-image { height: 194px; position: relative; overflow: hidden; }
.work-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 20%, rgba(0,0,0,.78)); }
.work-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.work-image.poster-contain { background: radial-gradient(circle at 50% 40%, #282331, #08080b 72%); }
.work-image.poster-contain img { object-fit: contain; object-position: center; }
.work-card:hover img { transform: scale(1.04); }
.work-image i {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: rgba(91,57,255,.9);
  box-shadow: 0 8px 30px rgba(65,30,220,.35);
  font-style: normal;
  font-size: 22px;
}
.work-image h4 { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; margin: 0; font-size: 16px; }
.work-body { padding: 18px 20px; }
.work-body p { color: #a5a1ab; font-size: 13px; min-height: 42px; margin: 0 0 12px; }
.work-meta { display: flex; justify-content: space-between; color: #5f43da; font-size: 11px; }
.work-meta b { font-weight: 500; }
.more-button { display: block; margin: 34px auto 0; min-width: 120px; }
.more-button[hidden] { display: none; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { min-height: 210px; padding: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.team-card img { width: 112px; height: 112px; object-fit: cover; object-position: center top; border: 2px solid rgba(92,57,255,.35); border-radius: 50%; filter: grayscale(1); }
.team-card img[alt="刘啸天"], .team-detail img[alt="刘啸天"] { object-position: center 35%; }
.team-card h3 { margin: 15px 0 1px; font-size: 17px; }
.team-card p { margin: 0; color: #5838fa; font-size: 12px; }

.contact-section { padding-bottom: 124px; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { min-height: 92px; padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.contact-card h3 { margin: 0 0 1px; font-size: 14px; }
.contact-card p { margin: 0; color: #aaa6af; font-size: 12px; }
footer { padding: 45px 32px; border-top: 1px solid #222126; display: flex; justify-content: space-between; align-items: center; color: #77737e; font-size: 13px; }
footer strong { font-size: 20px; margin-right: 8px; }

.detail-dialog {
  width: min(900px, calc(100% - 32px));
  max-height: 90vh;
  margin: auto;
  padding: 0;
  color: var(--text);
  border: 1px solid rgba(129,103,255,.28);
  border-radius: 18px;
  background: #0c0c10;
  box-shadow: 0 28px 100px rgba(0,0,0,.72);
  overflow: auto;
}
.detail-dialog::backdrop {
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(8px);
}
.dialog-shell { position: relative; }
.dialog-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(0,0,0,.58);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
.detail-hero { position: relative; height: 250px; overflow: hidden; }
.detail-cover { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-shade { position: absolute; inset: 0; background: linear-gradient(transparent, rgba(12,12,16,.9) 74%, #0c0c10); }
.detail-title { position: absolute; left: 32px; right: 70px; bottom: 24px; }
.detail-title span, .video-client, .team-role { color: #7656ff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.detail-title h2, .video-dialog-head h2, .team-detail h2 { margin: 5px 0 0; font-size: 36px; line-height: 1.2; }
.detail-content { padding: 14px 32px 34px; }
.detail-intro { color: #cbc7d0; font-size: 17px; }
.detail-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0; }
.detail-stat { padding: 15px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.detail-stat span { display: block; color: #77737e; font-size: 11px; }
.detail-stat strong { display: block; color: #7656ff; margin-top: 3px; font-size: 23px; }
.detail-section-title { margin: 28px 0 16px; font-size: 19px; }
.detail-highlights { display: grid; gap: 14px; }
.detail-highlight { padding: 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.035); }
.detail-highlight h4 { margin: 0 0 9px; }
.detail-highlight ul { margin: 0; padding-left: 20px; color: #aba7b1; font-size: 13px; }
.detail-highlight li::marker { color: #6846ff; }

.video-dialog { width: min(960px, calc(100% - 32px)); }
.video-dialog .dialog-shell { padding: 26px; }
.video-dialog-head { padding-right: 52px; margin-bottom: 18px; }
.video-dialog-head h2 { font-size: 27px; }
.video-dialog-head p { margin: 8px 0 0; color: #9d99a4; font-size: 13px; }
.video-dialog video { width: 100%; max-height: 68vh; display: block; border-radius: 12px; background: #000; }
.video-dialog-meta { padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.video-dialog-meta strong { color: #7656ff; font-size: 12px; }

.team-dialog { width: min(760px, calc(100% - 32px)); }
.team-detail { display: grid; grid-template-columns: 210px 1fr; gap: 30px; padding: 38px; }
.team-detail > img { width: 210px; height: 280px; border-radius: 14px; object-fit: cover; object-position: center top; filter: grayscale(1); }
.team-detail h2 { font-size: 32px; }
.team-bio { color: #b5b1ba; font-size: 14px; }
.team-detail h3 { margin: 24px 0 10px; font-size: 16px; }
.team-works { display: flex; flex-wrap: wrap; gap: 8px; }
.team-works span { padding: 5px 10px; color: #a99aff; border: 1px solid rgba(117,82,255,.26); border-radius: 999px; background: rgba(91,57,255,.08); font-size: 11px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-case-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--max)); }
  .site-header { height: 65px; padding: 0 16px; }
  .brand { font-size: 19px; }
  .menu-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    padding: 26px;
    display: grid;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    background: rgba(8,8,10,.97);
    border-bottom: 1px solid var(--line);
    transition: .25s;
  }
  .menu-open .site-nav { opacity: 1; pointer-events: auto; transform: none; }
  .site-nav a { padding: 11px 8px; text-align: center; }
  .hero { min-height: 844px; height: 100svh; padding: 84px 24px 34px; }
  .hero-glow { width: 520px; height: 470px; }
  .hero-content { width: 100%; transform: none; }
  .eyebrow-pill { font-size: 13px; margin-bottom: 38px; padding: 7px 14px; }
  .hero h1 { font-size: 37px; letter-spacing: .03em; white-space: nowrap; }
  .hero h2 { font-size: 20px; margin: 24px 0 26px; }
  .hero p { font-size: 13px; color: #77717f; }
  .hero-actions {
    width: min(100%, 280px);
    display: grid;
    gap: 16px;
    margin: 44px auto 0;
  }
  .hero-actions .button { width: 280px; max-width: 100%; height: 72px; }
  .section { padding: 82px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 31px; }
  .section-head p { font-size: 14px; }
  .about-grid, .service-grid, .brand-case-grid, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 35px 10px; }
  .service-card { min-height: 200px; }
  .case-cover { height: 205px; }
  .case-body { min-height: 0; }
  .case-body p { min-height: 0; }
  .logo-row { --logo-shift-fix: 6px; gap: 12px; }
  .logo-row span { flex-basis: 126px; width: 126px; height: 64px; padding: 10px 14px; }
  .logo-row img { max-height: 42px; }
  .portfolio-label { margin-bottom: 18px; font-size: 24px; }
  .filters { display: none; }
  .filter-select-wrap { display: block; margin-bottom: 34px; }
  .work-image { height: 205px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .team-card { min-height: 190px; padding: 14px 8px; }
  .team-card img { width: 92px; height: 92px; }
  .detail-dialog { width: calc(100% - 20px); max-height: 94vh; border-radius: 14px; }
  .detail-hero { height: 190px; }
  .detail-title { left: 20px; bottom: 18px; }
  .detail-title h2 { font-size: 28px; }
  .detail-content { padding: 10px 20px 24px; }
  .detail-intro { font-size: 14px; }
  .detail-stats { grid-template-columns: repeat(2, 1fr); }
  .video-dialog .dialog-shell { padding: 18px; }
  .video-dialog-head h2 { font-size: 21px; }
  .video-dialog-meta { align-items: flex-start; flex-direction: column; gap: 10px; }
  .team-detail { grid-template-columns: 1fr; padding: 26px 20px; text-align: center; }
  .team-detail > img { width: 132px; height: 170px; margin: 0 auto; }
  .team-works { justify-content: center; }
  footer { padding: 35px 18px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

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