:root {
  --bg: #0b0b10;
  --bg-soft: #12121a;
  --card: #14141d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9e7e0;
  --muted: #9a97a5;
  --gold: #d9a441;
  --gold-soft: rgba(217, 164, 65, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
}

.container {
  width: min(1180px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--gold);
}

.nav-xpc {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}

.nav-xpc:hover {
  border-color: var(--gold);
}

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

.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -10%, rgba(217, 164, 65, 0.14), transparent 62%),
    radial-gradient(900px 600px at 85% 110%, rgba(80, 90, 180, 0.16), transparent 60%),
    var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 4rem 0;
}

.hero-kicker {
  color: var(--gold);
  letter-spacing: 0.42em;
  font-size: 0.82rem;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.hero-tagline {
  margin: 1.6rem auto 2.4rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: #14120b;
  font-weight: 600;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(217, 164, 65, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: none;
}

/* ---------- Sections ---------- */

.works-section,
.about-section,
.contact-section {
  padding: 5.5rem 0;
}

.works-section {
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}

h2 {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.14em;
  position: relative;
  padding-left: 0.9rem;
}

h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  bottom: 0.35em;
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ---------- Filters ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.filter-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #14120b;
  font-weight: 600;
}

/* ---------- Works grid ---------- */

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem;
}

.empty-note {
  color: var(--muted);
  text-align: center;
  padding: 4rem 0;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.empty-note[hidden] {
  display: none;
}

.work-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.work-card.revealed {
  opacity: 1;
  transform: none;
}

.work-card-btn {
  display: block;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.work-card-btn:hover {
  border-color: rgba(217, 164, 65, 0.55);
  transform: translateY(-4px);
}

.work-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(150deg, #1c1c2a, #0f0f18);
}

.work-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.work-card-btn:hover .work-poster img {
  transform: scale(1.05);
}

.work-poster[data-category="广告片"] {
  background:
    radial-gradient(320px 180px at 20% 15%, rgba(96, 108, 220, 0.4), transparent 65%),
    linear-gradient(150deg, #17172a, #0d0d16);
}

.work-poster[data-category="短片"] {
  background:
    radial-gradient(320px 180px at 20% 15%, rgba(50, 180, 150, 0.35), transparent 65%),
    linear-gradient(150deg, #10251f, #0c1512);
}

.work-poster[data-category="宣传片"] {
  background:
    radial-gradient(320px 180px at 20% 15%, rgba(217, 164, 65, 0.32), transparent 65%),
    linear-gradient(150deg, #2a2013, #17110a);
}

.work-poster[data-category="车拍案例"] {
  background:
    radial-gradient(320px 180px at 20% 15%, rgba(200, 70, 60, 0.32), transparent 65%),
    linear-gradient(150deg, #261417, #140b0c);
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.play-badge::before {
  content: "";
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(11, 11, 16, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  transition: background 0.25s ease, transform 0.25s ease;
}

.play-badge::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  margin-left: 5px;
  transition: transform 0.25s ease;
}

.work-card-btn:hover .play-badge::before {
  background: rgba(217, 164, 65, 0.9);
  transform: scale(1.08);
}

.work-card-btn:hover .play-badge::after {
  transform: scale(1.1);
}

.wait-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(11, 11, 16, 0.7);
  border: 1px solid rgba(217, 164, 65, 0.6);
  color: var(--gold);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.work-meta {
  padding: 0.95rem 1.05rem 1.05rem;
}

.work-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-info {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- About ---------- */

.about-section {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.about-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text {
  margin-top: 1.3rem;
  color: var(--muted);
  max-width: 42rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.about-stats div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}

.about-stats dt {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.about-stats dd {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 0.15rem;
}

/* ---------- Contact ---------- */

.contact-section {
  border-top: 1px solid var(--line);
}

.contact-inner {
  text-align: center;
}

.contact-inner h2 {
  display: inline-block;
}

.contact-sub {
  color: var(--muted);
  margin: 1rem 0 1.8rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.qr-block {
  margin-top: 2.2rem;
  text-align: center;
}

.qr-plate {
  display: inline-block;
  vertical-align: top;
  width: 176px;
  background: #fff;
  border-radius: 16px;
  padding: 9px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.qr-plate:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.qr-plate img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

.qr-caption {
  display: block;
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-align: center;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 9, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(960px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem;
  animation: modal-in 0.28s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
  padding-right: 3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-stage {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.modal-frame,
.modal-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.modal-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--muted);
  border: 1px dashed rgba(217, 164, 65, 0.45);
  border-radius: 10px;
}

.ph-title {
  color: var(--gold);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.ph-steps {
  margin-top: 0.8rem;
  text-align: left;
  font-size: 0.88rem;
}

.ph-steps li {
  margin-bottom: 0.35rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: #fff;
  border-color: var(--gold);
  transform: rotate(90deg);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .works-section,
  .about-section,
  .contact-section {
    padding: 3.5rem 0;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    width: 100%;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .site-nav {
    gap: 0.9rem;
    font-size: 0.84rem;
  }

  .brand {
    font-size: 1rem;
  }

  .modal-panel {
    padding: 0.9rem;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
