/* ============================================================
   火龙果影视 - 全局样式
   深色影院风格 + 火龙果红橙渐变强调色
   ============================================================ */
:root {
  --bg-dark: #0d0f14;
  --bg-body: #12141c;
  --bg-card: #1b1f2b;
  --bg-card-hover: #232838;
  --bg-nav: rgba(13, 15, 20, 0.92);
  --accent-1: #ff4d5a;
  --accent-2: #ff7a2f;
  --accent-grad: linear-gradient(135deg, #ff4d5a 0%, #ff7a2f 100%);
  --text-main: #f2f4f8;
  --text-sub: #a7adc0;
  --text-dim: #6f7688;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ---------- 布局容器 ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 84px 0;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}

.brand .brand-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(255, 77, 90, 0.35);
}

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

.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-sub);
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: var(--accent-grad);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Hero 主视觉 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 140px;
  text-align: center;
  background:
    radial-gradient(900px 420px at 18% 12%, rgba(255, 77, 90, 0.22), transparent 60%),
    radial-gradient(800px 400px at 82% 20%, rgba(255, 122, 47, 0.18), transparent 60%),
    linear-gradient(180deg, #10131c 0%, #12141c 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 30%, #000 30%, transparent 72%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #fff 30%, #ffb199 55%, #ff4d5a 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-sub {
  max-width: 760px;
  margin: 0 auto 32px;
  color: var(--text-sub);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 77, 90, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(255, 77, 90, 0.45);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-stats .stat-num {
  font-size: 34px;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat-label {
  color: var(--text-dim);
  font-size: 14px;
}

/* ---------- 区块标题 ---------- */
.section-head {
  text-align: center;
  margin-bottom: 46px;
}

.section-head .section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--accent-2);
  border: 1px solid rgba(255, 122, 47, 0.4);
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-sub);
  max-width: 620px;
  margin: 0 auto;
}

/* ---------- 核心特性 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(255, 77, 90, 0.3);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ---------- 服务介绍 / 内容分区 ---------- */
.content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.content-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}

.content-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.content-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.content-card .card-body {
  padding: 18px 18px 22px;
}

.content-card .card-tag {
  display: inline-block;
  font-size: 12px;
  color: var(--accent-2);
  background: rgba(255, 122, 47, 0.12);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.content-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.content-card p {
  color: var(--text-sub);
  font-size: 14px;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffb199;
}

.card-link:hover {
  color: var(--accent-1);
}

/* ---------- 影视列表（products） ---------- */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.movie-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.movie-card .poster {
  position: relative;
  overflow: hidden;
}

.movie-card .poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.movie-card .poster .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: var(--accent-grad);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.movie-card .poster .hover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 15, 20, 0.6);
  opacity: 0;
  transition: opacity var(--transition);
  font-size: 34px;
}

.movie-card:hover .poster .hover-play {
  opacity: 1;
}

.movie-card .meta {
  padding: 14px 16px 18px;
}

.movie-card .meta h3 {
  font-size: 16px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card .meta .desc {
  color: var(--text-sub);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 新闻列表 ---------- */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.news-item {
  display: flex;
  gap: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.news-item img {
  width: 260px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.news-item h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.news-item h3 a:hover {
  color: var(--accent-2);
}

.news-item .news-meta {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 10px;
}

.news-item p {
  color: var(--text-sub);
  font-size: 15px;
}

/* ---------- 新闻详情 ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
}

.article-main .article-title {
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 14px;
}

.article-main .article-meta {
  color: var(--text-dim);
  font-size: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.article-main .article-cover {
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-main h2 {
  font-size: 22px;
  margin: 28px 0 14px;
}

.article-main h3 {
  font-size: 18px;
  margin: 22px 0 10px;
}

.article-main p {
  color: var(--text-sub);
  margin-bottom: 14px;
}

.article-aside .side-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 22px;
}

.article-aside .side-card h3 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.article-aside .side-card li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.article-aside .side-card li:last-child {
  border-bottom: none;
}

.article-aside .side-card li a:hover {
  color: var(--accent-2);
}

/* ---------- 常见问题 FAQ ---------- */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(255, 77, 90, 0.5);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  padding: 18px 22px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq-q .faq-icon {
  flex-shrink: 0;
  color: var(--accent-2);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-sub);
  font-size: 15px;
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(255, 77, 90, 0.2), transparent 65%),
    var(--bg-body);
  border-top: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 14px;
}

.cta p {
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--line);
  padding: 64px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-grid h4 {
  font-size: 16px;
  margin-bottom: 16px;
}

.footer-grid p,
.footer-grid li {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-grid li a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- 表单 ---------- */
.form-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-2);
}

/* ---------- 关于页 ---------- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.about-block img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ---------- 通用工具类 ---------- */
.text-center {
  text-align: center;
}

.mt-40 {
  margin-top: 40px;
}

/* ---------- 动画 ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

.animate-delay-1 { animation-delay: 0.12s; }
.animate-delay-2 { animation-delay: 0.24s; }
.animate-delay-3 { animation-delay: 0.36s; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-floating {
  animation: heroFloat 5s ease-in-out infinite;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-pad {
    padding: 56px 0;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-nav);
    backdrop-filter: blur(12px);
    padding: 16px 24px 24px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
  }

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

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

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-item {
    flex-direction: column;
  }

  .news-item img {
    width: 100%;
  }

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

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

  .hero-stats {
    gap: 26px;
  }

  .article-main {
    padding: 26px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---------- 可访问性与滚动条 ---------- */
:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
  background: #2c3342;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-1);
}

/* ---------- 减少动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate {
    animation: none;
    opacity: 1;
  }
  .hero-floating {
    animation: none;
  }
}
