/* ==========================================
   传媒公司官网 - 高端现代化UI设计
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 主色调 - 高级蓝紫渐变 */
  --primary-start: #6366f1;
  --primary-end: #8b5cf6;
  --secondary-start: #06b6d4;
  --secondary-end: #3b82f6;
  
  /* 辅助色 */
  --accent: #f43f5e;
  --success: #10b981;
  --warning: #f59e0b;
  
  /* 背景色 */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #0f172a;
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  
  /* 文字颜色 */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  
  /* 边框和阴影 */
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-colored: 0 20px 40px -12px rgba(99, 102, 241, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  font-size: 16px;
  background: var(--bg-secondary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   导航栏 - 玻璃态效果
   ========================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  letter-spacing: 0.3px;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-start);
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
  transform: translateX(-50%) scaleX(1);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* ==========================================
   轮播图 - 史诗级视觉效果
   ========================================== */

.banner-section {
  position: relative;
  height: 700px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.4) 0%, 
    rgba(139, 92, 246, 0.4) 50%,
    rgba(6, 182, 212, 0.3) 100%
  );
  z-index: 1;
}

.banner-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  z-index: 2;
}

.banner-slide.active {
  display: block;
  animation: bannerZoom 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.banner-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  z-index: 3;
  width: 85%;
  max-width: 900px;
}

.banner-content h1 {
  font-size: 72px;
  font-weight: 900;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  letter-spacing: -2px;
  line-height: 1.1;
}

.banner-content p {
  font-size: 20px;
  opacity: 0.95;
  animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.banner-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.dot.active {
  background: #fff;
  width: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.4);
}

/* ==========================================
   区块标题 - 精致设计
   ========================================== */

.section {
  padding: 120px 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}

.section-title h2 {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
}

.section-title h2::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  border-radius: 2px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ==========================================
   服务卡片 - 3D悬浮效果
   ========================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--bg-primary);
  border-radius: 24px;
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-start), var(--primary-end));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.05) 0%, 
    rgba(139, 92, 246, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.5s;
}

.service-card:hover {
  transform: translateY(-16px) scale(1.02);
  box-shadow: var(--shadow-colored);
  border-color: rgba(99, 102, 241, 0.2);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  font-size: 72px;
  margin-bottom: 28px;
  display: inline-block;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.2));
}

.service-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

/* ==========================================
   案例卡片 - 杂志风格
   ========================================== */

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 40px;
}

.case-card {
  background: var(--bg-primary);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.case-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-2xl);
}

.case-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.case-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
  opacity: 0;
  transition: opacity 0.5s;
}

.case-card:hover .case-image::after {
  opacity: 1;
}

.case-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover .case-image img {
  transform: scale(1.15);
}

.case-info {
  padding: 32px;
  position: relative;
}

.case-category {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.case-info h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.4;
}

.case-info p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ==========================================
   新闻列表 - 时尚卡片
   ========================================== */

.news-list {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.news-item {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-md);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
}

.news-item:hover {
  box-shadow: var(--shadow-xl);
  transform: translateX(8px);
  border-left-color: var(--primary-start);
}

.news-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.news-item h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.4;
  transition: color 0.3s;
}

.news-item:hover h3 {
  color: var(--primary-start);
}

.news-item p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-start);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s;
}

.read-more:hover {
  gap: 12px;
}

/* ==========================================
   按钮 - 渐变魔法
   ========================================== */

.btn {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 25px rgba(99, 102, 241, 0.6);
}

.btn:hover::before {
  left: 100%;
}

/* ==========================================
   页脚 - 现代化设计
   ========================================== */

.footer {
  background: var(--bg-dark);
  color: #fff;
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
}

.footer-section h3 {
  font-size: 20px;
  margin-bottom: 24px;
  font-weight: 700;
  color: #fff;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  line-height: 2.2;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* ==========================================
   联系表单 - 优雅设计
   ========================================== */

.contact-section {
  background: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.info-item {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-item i {
  font-size: 24px;
  color: var(--primary-start);
}

.contact-form {
  background: var(--bg-primary);
  padding: 48px;
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s;
  background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-start);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==========================================
   详情页
   ========================================== */

.detail-header {
  background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.detail-header h1 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.detail-meta {
  font-size: 15px;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.detail-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px;
  background: var(--bg-primary);
}

.detail-content img {
  margin: 40px 0;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.detail-content p {
  line-height: 2;
  margin-bottom: 24px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* 富文本内容样式 */
.rich-text-content {
  line-height: 2;
  font-size: 17px;
  color: var(--text-secondary);
}

.rich-text-content p {
  margin-bottom: 24px;
}

.rich-text-content img,
.rich-text-content video {
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3 {
  margin: 48px 0 24px;
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.rich-text-content ul,
.rich-text-content ol {
  padding-left: 32px;
  margin-bottom: 24px;
}

.rich-text-content li {
  margin-bottom: 12px;
}

.rich-text-content blockquote {
  border-left: 4px solid var(--primary-start);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--text-secondary);
  font-style: italic;
  background: var(--bg-secondary);
  padding: 20px 24px;
  border-radius: 8px;
}

.rich-text-content code {
  background: var(--bg-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: var(--accent);
}

.rich-text-content pre {
  background: var(--bg-dark);
  color: #fff;
  padding: 24px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 32px 0;
}

.rich-text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  border-radius: 12px;
  overflow: hidden;
}

.rich-text-content table th,
.rich-text-content table td {
  border: 1px solid var(--border-color);
  padding: 14px;
  text-align: left;
}

.rich-text-content table th {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff;
  font-weight: 600;
}

/* ==========================================
   分页
   ========================================== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
}

.pagination a,
.pagination span {
  padding: 10px 18px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.3s;
  font-weight: 600;
  min-width: 45px;
  text-align: center;
}

.pagination a:hover {
  background: var(--primary-start);
  color: #fff;
  border-color: var(--primary-start);
  transform: translateY(-2px);
}

.pagination span.active {
  background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-colored);
}

/* ==========================================
   动画
   ========================================== */

@keyframes bannerZoom {
  from {
    transform: scale(1.1);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ==========================================
   响应式设计
   ========================================== */

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu a {
    display: block;
    padding: 16px 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .banner-section {
    height: 500px;
  }

  .banner-content h1 {
    font-size: 42px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title h2 {
    font-size: 36px;
  }

  .services-grid,
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .detail-header h1 {
    font-size: 32px;
  }
}
