/* ============================================
   君一影业（西安）有限公司 官网样式
   深色电影质感主题
   ============================================ */

:root {
  --bg: #0b0c10;
  --bg-soft: #111318;
  --bg-card: #171a21;
  --gold: #c9a45c;
  --gold-light: #e2c486;
  --text: #e8e6e1;
  --text-dim: #9a9ea8;
  --text-muted: #8b8f98;
  --line: rgba(201, 164, 92, 0.25);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 导航栏 ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.navbar.scrolled {
  background: rgba(11, 12, 16, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; line-height: 1.2; }
.logo-img {
  height: 104px;
  width: auto;
  filter: invert(1) brightness(1.15);
  transition: opacity 0.25s;
  animation: logoGlow 3.5s ease-in-out infinite;
}
@keyframes logoGlow {
  0%, 100% { filter: invert(1) brightness(1.15); }
  50%      { filter: invert(1) brightness(1.15) drop-shadow(0 0 16px rgba(226, 196, 134, 0.5)); }
}
.logo:hover .logo-img { opacity: 0.85; }
.logo-sub { display: none; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 15px;
  color: var(--text);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(201, 164, 92, 0.18), transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(30, 34, 45, 0.9), transparent),
    linear-gradient(180deg, #0b0c10 0%, #12141b 55%, #0b0c10 100%);
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 164, 92, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 164, 92, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; max-width: 760px; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: 4px;
  line-height: 1.25;
  margin-bottom: 26px;
  background: linear-gradient(110deg,
    #f5ead0 15%, var(--gold) 35%, #fffdf2 50%, var(--gold) 65%, #f5ead0 85%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 5s linear infinite;
}
@keyframes titleShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.hero-desc {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 38px;
  font-size: 15px;
  letter-spacing: 2px;
  border-radius: 2px;
  transition: all 0.3s;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold), #a8823f);
  color: #14100a;
  font-weight: 600;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -90%;
  width: 55%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s ease;
  pointer-events: none;
}
.btn-primary:hover::before { left: 135%; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201, 164, 92, 0.35); }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-scroll {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hero-scroll span {
  position: absolute;
  top: 8px; left: 50%;
  width: 3px; height: 8px;
  margin-left: -1.5px;
  background: var(--gold);
  border-radius: 2px;
  animation: scrollHint 1.8s infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ---------- 通用 Section ---------- */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 3px;
}
.section-title::after {
  content: "";
  display: block;
  width: 72px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg,
    transparent, var(--gold), var(--gold-light), var(--gold), transparent);
  background-size: 200% 100%;
  margin: 18px auto 0;
  animation: lineFlow 2.8s linear infinite;
}
@keyframes lineFlow {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 关于我们 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: center;
}
.about-text p { color: var(--text-muted); margin-bottom: 18px; font-size: 15.5px; }
.about-timeline {
  list-style: none;
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-timeline li {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.about-timeline li:last-child { border-bottom: none; }
.about-timeline time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  white-space: nowrap;
  min-width: 110px;
}
.about-timeline span { color: var(--text-muted); font-size: 14.5px; }

.film-reel {
  position: relative;
  width: 300px; height: 300px;
  margin: 0 auto;
}
.reel-circle {
  position: absolute;
  inset: 0;
  border: 2px dashed var(--line);
  border-radius: 50%;
  animation: spin 24s linear infinite;
}
.reel-circle::before,
.reel-circle::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.reel-circle::before { inset: 12%; }
.reel-circle::after { inset: 30%; border-style: dashed; }
.reel-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120px; height: 120px;
  background: linear-gradient(135deg, #1c1f28, #14161d);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
.reel-core .reel-logo {
  width: 68%;
  height: auto;
  filter: invert(1) brightness(1.15);
  opacity: 0.95;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 业务版块 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 34px 26px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(226, 196, 134, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 3;
}
.service-card:hover::before { left: 135%; }
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.service-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 {
  font-size: 17px;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--gold-light);
}
.service-card p { font-size: 13.5px; color: var(--text-muted); }

/* ---------- 作品展示 ---------- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.work-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(226, 196, 134, 0.2), transparent);
  transform: skewX(-18deg);
  transition: left 0.7s ease;
  pointer-events: none;
  z-index: 3;
}
.work-card:hover::before { left: 135%; }
.work-card:hover { transform: translateY(-6px); border-color: var(--line); }
.work-thumb {
  height: 190px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 14px;
  position: relative;
}
.work-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 12, 16, 0.85));
}
.thumb-a {
  background-image: url('assets/poster-qiao.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-b {
  background-image: url('assets/poster-liuqing.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-c {
  background-image: url('assets/poster-calm.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-d {
  background-image: url('assets/poster-sister.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-e {
  background-image: url('assets/poster-sandadui.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-f {
  background-image: url('assets/poster-farewell.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-g {
  background-image: url('assets/poster-dad.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-h {
  background-image: url('assets/poster-bound.webp');
  background-size: cover;
  background-position: center;
}
.thumb-i {
  background-image: url('assets/stills/still-14.jpg');
  background-size: cover;
  background-position: center;
}
.thumb-j {
  background-image: url('assets/poster-puppy.jpg');
  background-size: cover;
  background-position: center;
}
.work-tag {
  position: relative;
  z-index: 1;
  font-size: 12px;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}
.work-card h3 {
  padding: 16px 18px 4px;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--gold-light);
}
.work-card p { padding: 0 18px 20px; font-size: 13px; color: var(--text-muted); }
.works-note {
  margin-top: 32px;
  text-align: center;
  font-size: 12.5px;
  color: #6b7078;
}

/* 花絮剧照灯箱触发按钮 */
.work-card.gallery-trigger {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  background: var(--bg-card);
}
.work-card.gallery-trigger:hover { transform: translateY(-6px); border-color: var(--line); }

/* ---------- 灯箱 ---------- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 9, 12, 0.96);
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.lightbox.active { display: flex; }
.lightbox-stage {
  position: relative;
  max-width: 1100px;
  max-height: 85vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-stage img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox-counter {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 1px;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 12px;
  font-size: 32px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }
.lightbox-close { top: 16px; right: 24px; font-size: 40px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .lightbox { padding: 20px; }
  .lightbox-stage { max-height: 75vh; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ---------- 加入我们 ---------- */
.join-intro {
  max-width: 620px;
  margin: -36px auto 44px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.9;
}
.join-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.join-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 26px 24px;
  transition: border-color 0.25s, transform 0.25s;
}
.join-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.join-card h3 {
  font-size: 16.5px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--gold-light);
}
.join-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.75; }
.join-note {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.join-note a {
  color: var(--gold);
  border-bottom: 1px dashed var(--gold);
}

/* ---------- 联系我们 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.contact-item {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
}
.contact-item h4 {
  font-size: 15px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}
.contact-item p { font-size: 14.5px; color: var(--text-muted); }

/* ---------- 页脚 ---------- */
.footer {
  background: #08090c;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-copy { font-size: 13px; color: #6b7078; }
.footer-beian {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.footer-beian a {
  color: #6b7078;
  transition: color 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-beian a:hover { color: var(--gold-light); }
.beian-divider {
  width: 1px; height: 14px;
  background: #2a2d35;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .services-grid, .works-grid { grid-template-columns: repeat(2, 1fr); }
  .join-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 32px; }
  .about-timeline time { min-width: 90px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 0; right: -260px;
    width: 260px; height: 100vh;
    background: rgba(11, 12, 16, 0.97);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 100px 36px 0;
    gap: 28px;
    transition: right 0.35s ease;
  }
  .nav-links.open { right: 0; }
  .nav-toggle { display: block; position: relative; z-index: 101; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .services-grid, .works-grid { grid-template-columns: 1fr; }
  .join-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .about-stats { flex-wrap: wrap; gap: 24px 40px; }
  .about-timeline li { flex-direction: column; gap: 6px; }
}

/* ---------- 流光动效无障碍适配 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .section-title::after,
  .logo-img { animation: none; }
  .work-card::before,
  .service-card::before,
  .btn-primary::before { display: none; }
}
