:root {
  --bg: #080808;
  --bg2: #101010;
  --bg3: #181818;
  --panel: #1f1f1f;
  --text: #f5f2ee;
  --muted: #8c8a86;
  --muted2: #575450;
  --accent: #e8401c;
  --accent-soft: rgba(232, 64, 28, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --ok: #59c67b;
  --danger: #ff5c52;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(8, 8, 8, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  letter-spacing: 0.18em;
  font-weight: 800;
}

.brand strong {
  font-size: 24px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

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

.nav-cta,
.btn-primary,
.btn-secondary,
.btn-danger,
.icon-btn {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.nav-cta,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 24px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.btn-danger {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 92, 82, 0.16);
  border: 1px solid rgba(255, 92, 82, 0.45);
}

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 130px 48px 80px;
  background:
    radial-gradient(ellipse 60% 80% at 72% 28%, rgba(232, 64, 28, 0.24), transparent 58%),
    radial-gradient(ellipse 48% 55% at 16% 72%, rgba(34, 110, 180, 0.22), transparent 62%),
    linear-gradient(135deg, #050505 0%, #13080a 44%, #050505 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 12% 8%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(232, 64, 28, 0.18) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(232, 64, 28, 0.13) 50%, transparent 50.2%);
  opacity: 0.32;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  font-size: clamp(82px, 15vw, 210px);
  line-height: 0.86;
  letter-spacing: 0.01em;
}

.hero-tagline {
  max-width: 960px;
  margin: 22px 0 0;
  color: rgba(245, 242, 238, 0.5);
  font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: clamp(18px, 2.35vw, 32px);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.35;
}

.hero-copy {
  max-width: 420px;
  justify-self: end;
  color: rgba(245, 242, 238, 0.62);
  line-height: 1.75;
  text-align: right;
}

.hero-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 92px 48px 34px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: 0.06em;
}

.section-head h2 span {
  margin-left: 14px;
  color: var(--muted);
  font-family: "Songti SC", serif;
  font-size: 0.5em;
  font-weight: 300;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 0 48px 30px;
}

.tab {
  border: 0;
  min-height: 38px;
  padding: 0 20px;
  background: var(--bg3);
  color: var(--muted);
  cursor: pointer;
}

.tab.active,
.tab:hover {
  background: var(--accent);
  color: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 0 48px 86px;
}

.work-card {
  min-width: 0;
  background: var(--bg2);
  cursor: pointer;
}

.work-card.featured {
  grid-column: span 2;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 58% 40%, rgba(232, 64, 28, 0.26), transparent 58%),
    linear-gradient(135deg, #101010, #050505);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.work-card:hover .thumb img {
  transform: scale(1.045);
}

.thumb-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(32px, 7vw, 90px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.08);
}

.play::before {
  content: "";
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 50%;
}

.play::after {
  content: "";
  position: absolute;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
  transform: translateX(3px);
}

.work-meta {
  padding: 18px 20px 22px;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.badge {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.duration,
.year {
  color: var(--muted2);
  font-size: 12px;
}

.work-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.45;
}

.services {
  background: var(--bg2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 48px 90px;
  background: var(--line);
}

.service {
  min-height: 220px;
  padding: 36px 28px;
  background: var(--bg2);
}

.service strong {
  display: block;
  margin-bottom: 10px;
  font-size: 20px;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 96px 48px;
}

.about h2 {
  margin: 0 0 28px;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.94;
}

.about p {
  max-width: 650px;
  color: var(--muted);
  line-height: 2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
}

.stat {
  background: var(--bg3);
  padding: 24px 18px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 42px;
}

.stat span {
  color: var(--muted2);
  font-size: 12px;
}

.about-panel {
  display: grid;
  place-items: center;
  min-height: 360px;
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 30% 36%, rgba(232, 64, 28, 0.12), transparent 58%),
    radial-gradient(ellipse at 76% 72%, rgba(46, 132, 184, 0.11), transparent 60%),
    var(--bg3);
}

.about-panel strong {
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: 0.18em;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: 100px 48px;
  text-align: center;
  background: var(--bg2);
}

.contact h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 5vw, 58px);
  font-family: "Songti SC", serif;
  font-weight: 300;
  letter-spacing: 0.1em;
}

.contact p {
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--muted);
  line-height: 2;
}

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-line {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 46px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 48px;
  color: var(--muted2);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.92);
}

.modal.open {
  display: grid;
}

.modal-box {
  width: min(1120px, 94vw);
}

.modal-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 24px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: var(--bg3);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.video-empty {
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
}

.modal-info {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.modal-info h3 {
  margin: 0;
}

.admin-body {
  min-height: 100vh;
  background: #0b0b0b;
}

.admin-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 48px);
}

.admin-header p {
  margin: 0;
  color: var(--muted);
}

.login-card,
.admin-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 26px;
}

.login-card {
  max-width: 430px;
  margin: 12vh auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--text);
  background: #0c0c0c;
  border: 1px solid var(--line);
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.checkline input {
  width: 18px;
  height: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.admin-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
}

.admin-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg3);
  overflow: hidden;
}

.admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-meta h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.admin-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status {
  margin-top: 14px;
  color: var(--muted);
  min-height: 22px;
}

.status.ok {
  color: var(--ok);
}

.status.bad {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .site-nav {
    height: auto;
    padding: 16px 22px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 110px 24px 56px;
  }

  .hero h1 {
    font-size: clamp(54px, 18vw, 92px);
  }

  .hero-tagline {
    margin-top: 18px;
    font-size: clamp(18px, 5.8vw, 24px);
    letter-spacing: 0.04em;
  }

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

  .hero-copy {
    justify-self: start;
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .section-head,
  .tabs,
  .works-grid,
  .about,
  .contact,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .works-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .work-card.featured {
    grid-column: span 1;
  }

  .service-grid {
    margin-left: 24px;
    margin-right: 24px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .form-grid,
  .admin-item {
    grid-template-columns: 1fr;
  }

  footer {
    flex-direction: column;
  }
}


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

footer a:hover {
  color: var(--text);
}
