/* 4K影视 · 短剧专区 */

:root {
  --ink: #14161a;
  --ink-2: #4a4f57;
  --ink-3: #878d96;
  --line: #e5e6e8;
  --paper: #ffffff;
  --paper-2: #f6f5f3;
  --accent: #6b4c9a;
  --accent-soft: #f2eef8;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.2px;
  margin: 0;
}

.brand span { color: var(--ink-3); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

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

.nav-links a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px 24px 0;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.24;
  letter-spacing: -1px;
  margin: 0 0 22px;
  font-weight: 500;
  max-width: 680px;
}

.lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 0 34px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover { background: var(--accent); }

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: 76px;
}

.meta-item {
  background: var(--paper);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meta-num {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.4px;
}

.meta-label {
  font-size: 12px;
  color: var(--ink-3);
}

/* 区块 */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 92px 24px;
}

.section-alt {
  max-width: 100%;
  background: var(--paper-2);
  padding: 92px 24px;
}

.section-alt > * {
  max-width: calc(var(--max) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.section-head { margin-bottom: 20px; }

.section-head h2 {
  font-size: 30px;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin: 0;
  font-weight: 500;
}

.section-lede {
  font-size: 16px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 0 44px;
}

/* 灰底全宽区块：导语与标题/卡片左缘对齐（避免 600px + margin:auto 贴到视口左边） */
.section-alt > .section-lede {
  max-width: 600px;
  margin-top: 0;
  margin-bottom: 44px;
  margin-right: auto;
  margin-left: max(0px, calc((100% - (var(--max) - 48px)) / 2));
}

/* 网格 */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

/* 卡片 */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.card-num {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0 0 10px;
  letter-spacing: -0.2px;
}

.card p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.75;
}

.card-feature {
  border-color: var(--accent);
  border-width: 1.5px;
  background: var(--accent-soft);
}

.badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}

/* 题材 */
.tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.track {
  background: var(--paper);
  padding: 26px 22px;
}

.track h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 10px;
}

.track p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.7;
}

/* 资质 */
.cred {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.cred h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 16px;
}

.cred ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cred li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 9px 0 9px 20px;
  position: relative;
  border-top: 1px solid var(--line);
}

.cred li:first-child { border-top: none; }

.cred li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

/* CTA */
.cta {
  background: var(--ink);
  color: #fff;
  padding: 84px 24px;
}

.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.cta h2 {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 14px;
  letter-spacing: -0.4px;
}

.cta p {
  color: rgba(255, 255, 255, 0.62);
  margin: 0 0 30px;
  font-size: 16px;
  max-width: 520px;
}

.cta .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta .btn-primary:hover { background: var(--accent-soft); }

/* 页脚 */
.footer {
  border-top: 1px solid var(--line);
  padding: 44px 24px;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-note,
.footer-info p {
  font-size: 12.5px;
  color: var(--ink-3);
  margin: 6px 0 0;
}

.footer-info { text-align: right; }

/* 作品页 */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.work {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}

.work-thumb {
  aspect-ratio: 9 / 16;
  background: var(--ink);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.work-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-info {
  padding: 18px 20px 20px;
}

.work-info h3 {
  font-size: 15.5px;
  font-weight: 500;
  margin: 0 0 6px;
}

.work-info p {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

/* 服务对象 */
.sectors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.sector {
  background: var(--paper);
  padding: 30px 26px;
}

.sector h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
}

.sector-need {
  font-size: 12.5px;
  color: var(--accent);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.sector p:last-child {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.75;
}

/* 案例筛选 */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.chip {
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.18s;
}

.chip:hover {
  border-color: var(--ink-3);
  color: var(--ink);
}

.chip-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* 合作页 */
.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: start;
}

.info-block {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.info-block:first-child { border-top: none; padding-top: 0; }

.info-block h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}

.info-block p {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.8;
}

.qr-box {
  background: var(--paper-2);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
}

.qr-box img {
  width: 180px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  display: block;
  margin: 0 auto 18px;
}

.qr-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.qr-placeholder span {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.6;
}

.qr-box p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
}

.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 0 24px 42px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
}

.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps li::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 30px;
  bottom: 4px;
  width: 1px;
  background: var(--line);
}

.steps li:last-child { padding-bottom: 0; }

.steps li:last-child::after { display: none; }

.steps strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

/* 响应式 */
@media (max-width: 880px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero { padding-top: 56px; }
  .section, .section-alt { padding: 64px 24px; }
  .hero-meta { grid-template-columns: repeat(2, 1fr); margin-top: 48px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-info { text-align: left; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }
  .cta h2 { font-size: 26px; }
  .section-head h2 { font-size: 24px; }
}
