/* ============================================================
   蓝莓视频 · 蓝莓影视在线观看_免费电影电视剧综艺
   完整样式表 — 响应式 / 暗色模式 / 动画 / 渐变 / 毛玻璃
   域名: nxzjob.cn  |  版本: 1.0
   ============================================================ */

/* ---------- CSS变量 & 基础重置 ---------- */
:root {
  --primary: #2a3eb1;
  --primary-light: #4f6ef2;
  --primary-dark: #1a2a7a;
  --accent: #6c5ce7;
  --accent-2: #e84393;
  --gradient-hero: linear-gradient(145deg, #ffffff 0%, #eef2ff 100%);
  --gradient-btn: linear-gradient(135deg, #2a3eb1 0%, #6c5ce7 100%);
  --gradient-card: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(240,244,255,0.9) 100%);
  --bg-body: #f4f6fb;
  --bg-card: #ffffff;
  --bg-header: rgba(255,255,255,0.92);
  --bg-footer: #111827;
  --bg-howto: #eef2ff;
  --bg-badge: #f0f3ff;
  --text-primary: #1e1e2f;
  --text-secondary: #3a4a6b;
  --text-muted: #6b7c99;
  --border-color: #e6e9f0;
  --border-light: #cdd4e0;
  --shadow-card: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-hover: 0 12px 28px rgba(42,62,177,0.12);
  --shadow-hero: 0 20px 30px -10px rgba(0,20,80,0.15);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-main: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 暗色模式变量 */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6b7fff;
    --primary-light: #8fa0ff;
    --primary-dark: #3d4fd1;
    --accent: #9b8cff;
    --accent-2: #ff7ab6;
    --gradient-hero: linear-gradient(145deg, #1a1a2e 0%, #16213e 100%);
    --gradient-btn: linear-gradient(135deg, #4f6ef2 0%, #9b8cff 100%);
    --gradient-card: linear-gradient(145deg, rgba(30,30,47,0.9) 0%, rgba(30,40,70,0.85) 100%);
    --bg-body: #0b0e14;
    --bg-card: #1f2937;
    --bg-header: rgba(15, 20, 30, 0.92);
    --bg-footer: #0a0e17;
    --bg-howto: #1a2438;
    --bg-badge: #1f2a4a;
    --text-primary: #e5e7eb;
    --text-secondary: #a5b4cb;
    --text-muted: #8a99b3;
    --border-color: #2d3748;
    --border-light: #3a4a6b;
    --shadow-card: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 28px rgba(0,0,0,0.5);
    --shadow-hero: 0 20px 30px -10px rgba(0,0,0,0.5);
  }
}

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

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

body {
  font-family: var(--font-main);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

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

a { color: var(--primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-2); }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- 滚动条美化 ---------- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ============================================================
   导航栏 (毛玻璃吸顶)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg-header);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.site-header:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
  gap: 20px;
}

.logo a {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}

.logo a:hover { transform: scale(1.03); color: var(--primary); }

.logo svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 4px rgba(42,62,177,0.3)); }

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.search-box {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 40px;
  padding: 4px 10px 4px 16px;
  align-items: center;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42,62,177,0.15);
}

.search-box input {
  border: none;
  outline: none;
  width: 160px;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.search-box input::placeholder { color: var(--text-muted); }

.btn-search {
  background: var(--gradient-btn);
  color: #fff;
  border-radius: 30px;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-search:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(42,62,177,0.3);
}

.btn-search:active { transform: scale(0.95); }

/* ============================================================
   首屏 Hero (渐变Banner + 轮播)
   ============================================================ */
.hero-section {
  background: var(--gradient-hero);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

/* 背景装饰光斑 */
.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.hero-section::before {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -80px;
  right: -50px;
}

.hero-section::after {
  width: 200px;
  height: 200px;
  background: var(--accent-2);
  bottom: -60px;
  left: 20%;
  opacity: 0.3;
}

.hero-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.hero-text { flex: 1; min-width: 280px; }

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 16px;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-text .highlight {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  background: var(--bg-badge);
  padding: 8px 18px;
  border-radius: 40px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 18px;
  border: 1px solid rgba(42,62,177,0.15);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #fff;
  border: none;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 20px rgba(42,62,177,0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(42,62,177,0.35);
}

.btn-primary:active { transform: translateY(0); }

.banner-slider {
  flex: 1;
  min-width: 300px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hero);
  position: relative;
}

.slide-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide { min-width: 100%; }

.slide svg { width: 100%; height: auto; }

/* ============================================================
   通用区块标题
   ============================================================ */
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  margin: 60px 0 30px;
  color: var(--text-primary);
  border-left: 6px solid var(--primary);
  padding-left: 18px;
  line-height: 1.3;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: var(--gradient-btn);
  border-radius: 3px;
}

/* ============================================================
   卡片网格 (圆角卡片 + 毛玻璃)
   ============================================================ */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-btn);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.card:hover::before { transform: scaleX(1); }

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
  position: relative;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============================================================
   文章列表
   ============================================================ */
.article-list { display: flex; flex-direction: column; gap: 0; }

.article-item {
  background: var(--bg-card);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.article-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.article-item > span {
  background: var(--gradient-btn);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.article-item h3 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  transition: color 0.2s ease;
}

.article-item:hover h3 { color: var(--primary); }

.article-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.article-item a {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.article-item a:hover { gap: 8px; color: var(--accent-2); }

/* ============================================================
   FAQ 手风琴
   ============================================================ */
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover { border-color: var(--primary-light); box-shadow: 0 4px 16px rgba(0,0,0,0.05); }

.faq-q {
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-size: 1.05rem;
  user-select: none;
}

.faq-q span {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

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

.faq-a {
  display: none;
  padding-top: 12px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-top: 1px dashed var(--border-color);
  margin-top: 12px;
}

/* ============================================================
   HowTo 教程区
   ============================================================ */
.howto-box {
  background: var(--bg-howto);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.howto-box::after {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(42,62,177,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.howto-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.howto-box ol {
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  z-index: 1;
}

.howto-box li { padding-left: 8px; }

.howto-box li::marker { color: var(--primary); font-weight: 700; }

.howto-box strong { color: var(--primary); }

/* ============================================================
   面包屑导航
   ============================================================ */
nav[aria-label="面包屑"] {
  background: var(--bg-card);
  padding: 14px 20px;
  margin: 20px 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-muted);
}

nav[aria-label="面包屑"] a { color: var(--primary); }
nav[aria-label="面包屑"] a:hover { color: var(--accent-2); }
nav[aria-label="面包屑"] span { color: var(--text-secondary); font-weight: 500; }

/* ============================================================
   页脚
   ============================================================ */
.footer {
  background: var(--bg-footer);
  color: #d1d5db;
  padding: 50px 0;
  margin-top: 60px;
  border-top: 3px solid var(--primary);
}

.footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 14px;
  position: relative;
  padding-bottom: 8px;
}

.footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-light);
}

.footer p { font-size: 0.9rem; line-height: 1.8; color: #9ca3af; }

.footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer a:hover { color: #fff; padding-left: 4px; }

/* ============================================================
   返回顶部按钮
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient-btn);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  box-shadow: 0 8px 20px rgba(42,62,177,0.3);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.back-to-top:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 28px rgba(42,62,177,0.4);
  opacity: 1;
}

.back-to-top:active { transform: scale(0.9); }

/* ============================================================
   滚动进入动画
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* 卡片交错延迟 */
.card:nth-child(1) { transition-delay: 0.05s; }
.card:nth-child(2) { transition-delay: 0.1s; }
.card:nth-child(3) { transition-delay: 0.15s; }
.card:nth-child(4) { transition-delay: 0.2s; }

/* ============================================================
   响应式布局 (PC + 手机自适应)
   ============================================================ */
@media (max-width: 1024px) {
  .container { padding: 0 16px; }
  .nav-wrap { gap: 12px; }
  .search-box input { width: 120px; }
}

@media (max-width: 768px) {
  body { font-size: 15px; }

  .nav-wrap {
    height: auto;
    flex-wrap: wrap;
    padding: 12px 0;
    gap: 10px;
  }

  .logo a { font-size: 1.4rem; }
  .logo svg { width: 28px; height: 28px; }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    font-size: 0.9rem;
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
  }

  .search-box {
    order: 2;
    flex: 1;
    max-width: 200px;
  }

  .search-box input { width: 100%; }

  .hero-section { padding: 40px 0; }

  .hero-grid { gap: 24px; }

  .hero-text h1 { font-size: 1.8rem; }

  .hero-text p { font-size: 1rem; }

  .hero-badge { font-size: 0.8rem; }

  .btn-primary { padding: 12px 28px; font-size: 1rem; }

  .banner-slider { min-width: 100%; }

  .section-title { margin: 40px 0 24px; font-size: 1.6rem; }

  .grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }

  .card { padding: 20px; }

  .article-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }

  .article-item > span { align-self: flex-start; }

  .howto-box { padding: 24px 20px; }

  .howto-box ol { padding-left: 20px; font-size: 0.95rem; }

  .footer .container { flex-direction: column; gap: 24px; }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 12px; }

  .nav-links { gap: 12px; font-size: 0.85rem; }

  .search-box { max-width: 160px; }

  .search-box input { font-size: 0.85rem; }

  .btn-search { padding: 6px 14px; font-size: 0.85rem; }

  .hero-text h1 { font-size: 1.5rem; }

  .hero-text p { font-size: 0.9rem; }

  .btn-primary { padding: 10px 24px; font-size: 0.95rem; }

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

  .section-title { font-size: 1.4rem; }

  .faq-q { font-size: 0.95rem; }

  .footer h4 { font-size: 1rem; }
}

/* ============================================================
   无障碍 & 细节优化
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

::selection {
  background: var(--primary);
  color: #fff;
}

:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 隐藏SVG符号库 */
svg[style*="display:none"] { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 企业解决方案区块 */
.container > div[style*="background:#e9edf5"],
.container > div[style*="background: #e9edf5"] {
  background: var(--bg-howto) !important;
  border-radius: var(--radius-lg);
  padding: 30px;
  margin: 40px 0;
  border: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.container > div[style*="background:#e9edf5"] h3,
.container > div[style*="background: #e9edf5"] h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.container > div[style*="background:#e9edf5"] p,
.container > div[style*="background: #e9edf5"] p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* 暗色模式下的内联样式覆盖 */
@media (prefers-color-scheme: dark) {
  .container > div[style*="background:#e9edf5"],
  .container > div[style*="background: #e9edf5"] {
    background: var(--bg-howto) !important;
  }
}

/* 轮播文字可读性优化 */
.slide text {
  font-family: var(--font-main);
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 打印样式 */
@media print {
  .site-header, .back-to-top, .search-box, .btn-primary, .banner-slider { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .faq-item, .article-item { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}