/* ============================================================
   荣飞影院官网 - 免费高清视频网
   风格: 深色影院风 + 渐变光效 + 毛玻璃卡片
   响应式: PC + 移动端自适应
   性能: 全部内联CSS, 无外部依赖
   ============================================================ */

/* ---------- CSS变量 & 暗色模式 ---------- */
:root {
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --secondary: #fd79a8;
  --accent: #00cec9;
  --gradient-main: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --gradient-banner: linear-gradient(120deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  --bg-body: #0a0e17;
  --bg-section: rgba(20, 25, 40, 0.6);
  --bg-card: rgba(30, 35, 55, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.12);
  --text-main: #e8ecf4;
  --text-sub: #9aa5b8;
  --text-muted: #6b7a90;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 30px rgba(108, 92, 231, 0.25);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

/* 暗色模式 (默认即暗色, 同时支持系统偏好) */
@media (prefers-color-scheme: light) {
  :root {
    --bg-body: #f0f2f8;
    --bg-section: rgba(255, 255, 255, 0.8);
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.6);
    --border-glass: rgba(0, 0, 0, 0.08);
    --text-main: #1a2233;
    --text-sub: #455066;
    --text-muted: #6b7a90;
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.12);
    --gradient-main: linear-gradient(135deg, #e8eaf6, #c5cae9);
    --gradient-banner: linear-gradient(120deg, #dde1ff, #c8d0ff);
    --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(240,242,255,0.6));
  }
}

/* ---------- 基础重置 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.5s ease, color 0.3s ease;
  background-image: radial-gradient(ellipse at 20% 0%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
                    radial-gradient(ellipse at 80% 100%, rgba(0, 206, 201, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius-md);
  object-fit: cover;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

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

a:hover {
  color: var(--secondary);
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  background: linear-gradient(135deg, #ffffff, #a29bfe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.8rem;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  animation: lineGrow 1s ease forwards;
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  transition: var(--transition);
}

p {
  margin-bottom: 0.6rem;
  color: var(--text-sub);
  font-size: 0.95rem;
}

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

@keyframes lineGrow {
  from { width: 0; }
  to { width: 60px; }
}

@keyframes floatGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.2); }
  50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.5); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.section {
  animation: fadeInUp 0.8s ease both;
}

/* ---------- 头部区域 ---------- */
header {
  background: var(--gradient-banner);
  padding: 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-glass);
}

header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, transparent 70%);
  animation: floatGlow 6s ease-in-out infinite;
  pointer-events: none;
}

.top-bar {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 2rem;
}

.top-bar nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.top-bar nav ul li a {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.03em;
}

.top-bar nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
  border-radius: 2px;
}

.top-bar nav ul li a:hover {
  background: rgba(108, 92, 231, 0.15);
  color: var(--primary-light);
}

.top-bar nav ul li a:hover::after {
  width: 70%;
}

.logo-area {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  position: relative;
  z-index: 1;
}

.logo-area p {
  font-size: 1.1rem;
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.05em;
}

/* ---------- 主内容区 ---------- */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  position: relative;
}

/* 主内容 (左侧) */
main > section {
  min-width: 0;
}

/* ---------- 区块通用 ---------- */
.section {
  margin-bottom: 3.5rem;
  padding: 2.5rem;
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), transparent);
  opacity: 0.7;
}

.section:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

/* ---------- 电影网格 ---------- */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem;
}

.movie-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease both;
  animation-delay: calc(var(--i, 0) * 0.05s);
}

.movie-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-color: rgba(108, 92, 231, 0.4);
  background: rgba(40, 45, 70, 0.85);
}

.movie-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.movie-item:hover img {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.3);
}

.movie-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.movie-item p {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.movie-item p:last-child {
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--accent);
  font-weight: 500;
}

/* ---------- 精品推荐 ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.featured-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.featured-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(253, 121, 168, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.featured-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(253, 121, 168, 0.3);
}

.featured-item:hover::after {
  transform: scale(2.5);
}

.featured-item img {
  height: 220px;
  width: 100%;
  margin-bottom: 1.2rem;
}

.featured-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.featured-item p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.featured-item p:last-child {
  color: var(--text-sub);
  font-size: 0.88rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-glass);
  margin-top: 0.8rem;
  line-height: 1.8;
}

/* ---------- 影视详细介绍 ---------- */
.detail-article {
  padding: 1.5rem 0;
}

.detail-article img {
  float: left;
  margin: 0 2rem 1rem 0;
  width: 280px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.detail-article img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(108, 92, 231, 0.4);
}

.detail-article h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-article p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: justify;
}

.detail-article p:last-child {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  color: var(--text-main);
  font-weight: 500;
}

/* ---------- 演员介绍 ---------- */
.actor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
}

.actor-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.actor-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(0, 206, 201, 0.3);
}

.actor-item img {
  width: 120px;
  height: 150px;
  object-fit: cover;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid var(--primary);
  transition: var(--transition);
}

.actor-item:hover img {
  border-color: var(--secondary);
  transform: scale(1.05);
}

.actor-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.actor-item p {
  font-size: 0.82rem;
  margin-bottom: 0.3rem;
}

/* ---------- 平台介绍 ---------- */
#platform-intro p {
  margin-bottom: 1.2rem;
  line-height: 2;
  font-size: 0.95rem;
}

#platform-intro p:first-of-type {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 500;
  padding: 1.2rem;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}

/* ---------- APP下载 ---------- */
#app-download {
  text-align: center;
}

#app-download h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

#app-download p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#app-download ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  max-width: 800px;
  text-align: left;
}

#app-download ul li {
  background: var(--bg-glass);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#app-download ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
}

#app-download ul li:hover {
  background: rgba(108, 92, 231, 0.1);
  transform: translateX(5px);
  border-color: var(--primary);
}

.download-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.download-buttons button {
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.05em;
  box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.download-buttons button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.download-buttons button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 40px rgba(108, 92, 231, 0.4);
}

.download-buttons button:hover::after {
  left: 100%;
}

.download-buttons button:nth-child(2) {
  background: linear-gradient(135deg, #fd79a8, #e84393);
  box-shadow: 0 8px 25px rgba(253, 121, 168, 0.3);
}

.download-buttons button:nth-child(3) {
  background: linear-gradient(135deg, #00cec9, #00b894);
  box-shadow: 0 8px 25px rgba(0, 206, 201, 0.3);
}

/* ---------- 用户评论 ---------- */
.review-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.review-item {
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}

.review-item::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.2;
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  font-family: Georgia, serif;
  line-height: 1;
}

.review-item:hover {
  background: rgba(108, 92, 231, 0.08);
  transform: translateY(-3px);
  border-color: rgba(108, 92, 231, 0.3);
}

.review-item p:first-child {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.review-item p:nth-child(2) {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.review-item p:last-child {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-main);
  font-style: italic;
}

/* ---------- 侧边栏 ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.widget {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  animation: fadeInUp 0.6s ease both;
}

.widget:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow);
}

.widget h2 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget h2::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: inline-block;
}

.widget ul li {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  transition: var(--transition);
  color: var(--text-sub);
  cursor: default;
}

.widget ul li:hover {
  color: var(--primary-light);
  background: rgba(108, 92, 231, 0.05);
  padding-left: 1rem;
  border-radius: var(--radius-sm);
}

.widget ul li:last-child {
  border-bottom: none;
}

/* ---------- 页脚 ---------- */
footer {
  background: var(--gradient-banner);
  margin-top: 3rem;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--border-glass);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  opacity: 0.5;
}

.footer-links {
  max-width: 1200px;
  margin: 0 auto 2rem;
  text-align: center;
}

.footer-links h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links ul li a {
  color: var(--text-sub);
  font-size: 0.9rem;
  padding: 0.4rem 1rem;
  border-radius: 30px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: white;
  background: rgba(108, 92, 231, 0.3);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.footer-info {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-glass);
}

.footer-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-info p:last-child {
  margin-top: 1rem;
}

.footer-info p a {
  color: var(--text-sub);
  margin: 0 0.8rem;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.footer-info p a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- 响应式布局 ---------- */
@media (max-width: 1200px) {
  main {
    grid-template-columns: 1fr 280px;
    padding: 1.5rem;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
  }
}

@media (max-width: 992px) {
  main {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
  }

  .detail-article img {
    width: 220px;
    height: 320px;
  }
}

@media (max-width: 768px) {
  .top-bar {
    padding: 0.6rem 0.8rem;
    overflow-x: auto;
  }

  .top-bar nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.3rem;
  }

  .top-bar nav ul li a {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    white-space: nowrap;
  }

  .logo-area {
    padding: 2.5rem 1rem 2rem;
  }

  .section {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
  }

  .movie-item {
    padding: 0.8rem;
  }

  .movie-item img {
    height: 180px;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .detail-article img {
    float: none;
    width: 100%;
    height: auto;
    margin: 0 0 1.5rem 0;
  }

  .actor-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .actor-item img {
    width: 90px;
    height: 110px;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-buttons button {
    width: 100%;
    max-width: 300px;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: flex;
  }

  main {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .movie-item {
    padding: 0.6rem;
  }

  .movie-item img {
    height: 150px;
  }

  .movie-item h3 {
    font-size: 0.9rem;
  }

  .movie-item p {
    font-size: 0.75rem;
  }

  .section {
    padding: 1rem;
    border-radius: var(--radius-md);
  }

  h2 {
    font-size: 1.2rem;
  }

  .logo-area h1 {
    font-size: 1.4rem;
  }

  .logo-area p {
    font-size: 0.9rem;
  }
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
}

/* ---------- 选中文本样式 ---------- */
::selection {
  background: rgba(108, 92, 231, 0.4);
  color: white;
}

/* ---------- 无障碍与焦点样式 ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- 卡片悬浮光效 ---------- */
.movie-item, .featured-item, .actor-item, .review-item {
  position: relative;
  overflow: hidden;
}

.movie-item::before, .featured-item::before, .actor-item::before, .review-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transition: left 0.8s ease;
  pointer-events: none;
  z-index: 1;
}

.movie-item:hover::before, .featured-item:hover::before, .actor-item:hover::before, .review-item:hover::before {
  left: 100%;
}

/* ---------- 图片骨架屏效果 ---------- */
img {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

img.loaded {
  animation: none;
  background: none;
}

/* ---------- 打印样式 ---------- */
@media print {
  .top-bar, .sidebar, .download-buttons, footer {
    display: none;
  }

  main {
    display: block;
  }

  .section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  body {
    background: white;
    color: black;
  }
}

/* ---------- 动画延迟辅助 ---------- */
.movie-item:nth-child(1) { --i: 0; }
.movie-item:nth-child(2) { --i: 0.05; }
.movie-item:nth-child(3) { --i: 0.1; }
.movie-item:nth-child(4) { --i: 0.15; }
.movie-item:nth-child(5) { --i: 0.2; }
.movie-item:nth-child(6) { --i: 0.25; }
.movie-item:nth-child(7) { --i: 0.3; }
.movie-item:nth-child(8) { --i: 0.35; }
.movie-item:nth-child(9) { --i: 0.4; }
.movie-item:nth-child(10) { --i: 0.45; }
.movie-item:nth-child(11) { --i: 0.5; }
.movie-item:nth-child(12) { --i: 0.55; }
.movie-item:nth-child(13) { --i: 0.6; }
.movie-item:nth-child(14) { --i: 0.65; }
.movie-item:nth-child(15) { --i: 0.7; }
.movie-item:nth-child(16) { --i: 0.75; }

/* ---------- 暗色模式下的细节优化 ---------- */
@media (prefers-color-scheme: dark) {
  .movie-item p:last-child {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .widget ul li {
    border-bottom-color: rgba(255, 255, 255, 0.06);
  }

  .detail-article p:last-child {
    background: rgba(108, 92, 231, 0.1);
  }
}

/* ---------- 动画性能优化 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 高对比度模式支持 ---------- */
@media (forced-colors: active) {
  .movie-item, .featured-item, .actor-item, .review-item {
    border: 2px solid CanvasText;
  }
}

/* ---------- 最终优化 ---------- */
main::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(108, 92, 231, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(0, 206, 201, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* 确保所有内容在暗色下可读 */
@media (prefers-color-scheme: dark) {
  .footer-info p a {
    color: #a29bfe;
  }
  
  .footer-links ul li a {
    color: var(--text-sub);
  }
  
  .footer-links ul li a:hover {
    color: white;
  }
}

/* 移动端触摸优化 */
@media (hover: none) {
  .movie-item:hover, .featured-item:hover, .actor-item:hover, .review-item:hover {
    transform: none;
  }
  
  .movie-item:active, .featured-item:active {
    transform: scale(0.98);
  }
  
  .download-buttons button:active {
    transform: scale(0.95);
  }
}

/* 完成 - 荣飞影院官网样式表 */