/* =========================================================
   红茶影视 - 全站样式表
   主题：深色影院风格
   ========================================================= */

:root {
  --bg-primary: #0b0f17;
  --bg-secondary: #121826;
  --bg-card: #1a2233;
  --bg-card-hover: #202b42;
  --accent: #e50914;
  --accent-light: #ff4d57;
  --accent-gold: #f5b301;
  --text-primary: #f2f4f8;
  --text-secondary: #a3adc2;
  --text-muted: #6b7689;
  --border: #232e45;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-accent: 0 8px 24px rgba(229, 9, 20, 0.35);
  --font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* ---------- 导航栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 1.15rem;
  box-shadow: var(--shadow-accent);
}

.brand .brand-text {
  color: #fff;
}

.brand .brand-text em {
  font-style: normal;
  color: var(--accent-light);
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(229, 9, 20, 0.18);
}

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-light)) !important;
  color: #fff !important;
  box-shadow: var(--shadow-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 0 70px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(229, 9, 20, 0.22), transparent 55%),
    radial-gradient(ellipse at 80% 85%, rgba(245, 179, 1, 0.14), transparent 50%),
    linear-gradient(180deg, #0b0f17 0%, #10182a 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://picsum.photos/seed/hongcha-hero-bg/1600/900');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  animation: heroZoom 16s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  animation: fadeUp 0.9s ease both;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  background: linear-gradient(120deg, #ffffff 30%, var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero .hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 30px 0 34px;
  flex-wrap: wrap;
}

.hero-stats .stat {
  text-align: center;
}

.hero-stats .stat b {
  display: block;
  font-size: 1.7rem;
  color: var(--accent-gold);
  font-weight: 800;
}

.hero-stats .stat span {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(229, 9, 20, 0.45);
}

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

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  transform: translateY(-3px);
}

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

/* ---------- Section 通用 ---------- */
.section {
  padding: 84px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head .tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.12);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}

.section-head p {
  color: var(--text-secondary);
  margin-top: 12px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 核心特性 ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s ease;
}

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

.feature-card:hover::after {
  transform: scaleX(1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(229, 9, 20, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #fff;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
}

/* ---------- 服务介绍 ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: linear-gradient(160deg, var(--bg-card), #151d2e);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(229, 9, 20, 0.5);
}

.service-card .thumb {
  height: 190px;
  overflow: hidden;
}

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

.service-card:hover .thumb img {
  transform: scale(1.07);
}

.service-body {
  padding: 22px;
}

.service-body h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.service-body p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 14px;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- 详细内容区 ---------- */
.content-section {
  background: var(--bg-secondary);
}

.content-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}

.content-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}

.content-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.content-card ul {
  padding-left: 20px;
  list-style: disc;
}

.content-card li {
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.sidebar {
  position: sticky;
  top: 90px;
}

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

.side-card h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.hot-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(35, 46, 69, 0.6);
}

.hot-list li:last-child {
  border-bottom: none;
}

.hot-list .rank {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hot-list .rank.top {
  background: var(--accent);
  color: #fff;
}

.hot-list a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-list a:hover {
  color: var(--accent-light);
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(ellipse at center, rgba(229, 9, 20, 0.28), transparent 60%),
    var(--bg-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #fff;
  margin-bottom: 14px;
}

.cta p {
  color: var(--text-secondary);
  margin-bottom: 26px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

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

.faq-item summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--accent-light);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  background: rgba(229, 9, 20, 0.1);
}

.faq-item .faq-answer {
  padding: 0 22px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ---------- 页脚 ---------- */
.site-footer {
  background: #080b12;
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 34px;
  padding-bottom: 40px;
}

.footer-col h3 {
  color: #fff;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-col li {
  margin-bottom: 9px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom strong {
  color: var(--text-secondary);
}

/* ---------- 列表 / 筛选 ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  justify-content: center;
}

.filter-bar a {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.filter-bar a:hover,
.filter-bar a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- 内容网格 ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all var(--transition);
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(229, 9, 20, 0.4);
}

.video-card .poster {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.video-card .poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .poster img {
  transform: scale(1.06);
}

.video-card .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
}

.video-card .badge.gold {
  background: var(--accent-gold);
  color: #111;
}

.video-info {
  padding: 13px;
}

.video-info h3 {
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 5px;
}

.video-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---------- 文章 / 新闻 ---------- */
.news-list {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.news-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

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

.news-item .news-thumb {
  height: 100%;
  min-height: 190px;
  overflow: hidden;
}

.news-item .news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-thumb img {
  transform: scale(1.05);
}

.news-body {
  padding: 24px;
}

.news-body h2 {
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 10px;
}

.news-body h2 a:hover {
  color: var(--accent-light);
}

.news-body p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 14px;
}

.news-meta {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- 文章详情 ---------- */
.article {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.article-header {
  margin-bottom: 26px;
}

.article-header h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: #fff;
  line-height: 1.4;
  margin-bottom: 12px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.article figure {
  margin: 24px 0;
}

.article figure img {
  border-radius: var(--radius);
  width: 100%;
  object-fit: cover;
  max-height: 460px;
}

.article figcaption {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

.article-content h2 {
  color: #fff;
  font-size: 1.35rem;
  margin: 28px 0 14px;
}

.article-content h3 {
  color: #fff;
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: 14px;
  font-size: 0.98rem;
}

.article-content ul {
  padding-left: 20px;
  list-style: disc;
  margin-bottom: 14px;
}

.article-content li {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* ---------- 关于 / 联系页 ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-intro img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-text h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.value-card h3 {
  color: #fff;
  margin-bottom: 10px;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* 联系表单 */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

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

.form-group label {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 7px;
}

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

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

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
}

.contact-info-card li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.contact-info-card li:last-child {
  border-bottom: none;
}

.contact-info-card .c-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  color: #fff;
  font-size: 0.98rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

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

.fade-in {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .about-intro,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .news-item {
    grid-template-columns: 1fr;
  }
  .news-item .news-thumb {
    min-height: 0;
    height: 220px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    right: -110%;
    width: 78%;
    max-width: 320px;
    height: calc(100vh - 68px);
    flex-direction: column;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    padding: 30px 20px;
    gap: 14px;
    transition: right 0.35s ease;
  }
  .nav-links.open {
    right: 0;
  }
  .nav-links a {
    width: 100%;
    text-align: center;
  }
  .nav-toggle {
    display: block;
  }
  .hero {
    min-height: 60vh;
  }
  .article {
    padding: 24px 18px;
  }
}
