/* =============================================
   网易云音乐 - 全局样式
   NetEase Cloud Music Template Stylesheet
   ============================================= */

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

:root {
  --primary-red: #e0001b;
  --dark-red: #c20c0c;
  --hero-bg-start: #1a0000;
  --hero-bg-end: #3d0000;
  --text-dark: #1a1a1a;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-light: #f5f5f5;
  --bg-white: #ffffff;
  --border-color: #ebebeb;
  --card-radius: 12px;
  --transition: 0.25s ease;
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-red);
}

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

ul, ol {
  list-style: none;
}

/* =============================================
   顶部导航栏
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(20, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-logo .logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--transition);
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: #ffffff;
  background: rgba(224,0,27,0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-login {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  transition: all var(--transition);
}

.btn-login:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
}

.btn-download-header {
  background: var(--primary-red);
  color: #ffffff !important;
  font-size: 14px;
  padding: 7px 20px;
  border-radius: 20px;
  font-weight: 600;
  transition: all var(--transition);
}

.btn-download-header:hover {
  background: #c0001a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224,0,27,0.4);
}

/* =============================================
   面包屑导航
   ============================================= */
.breadcrumb-wrap {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  margin-top: 64px;
}

.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-gray);
}

.breadcrumb a {
  color: var(--text-gray);
}

.breadcrumb a:hover {
  color: var(--primary-red);
}

.breadcrumb .sep {
  color: #ccc;
}

.breadcrumb .current {
  color: var(--text-dark);
}

/* =============================================
   Hero 区域
   ============================================= */
.hero-section {
  background: linear-gradient(160deg, #1a0000 0%, #3d0000 40%, #1a0000 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(200,0,20,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 2px;
  margin-bottom: 16px;
  line-height: 1.2;
  position: relative;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 20px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
  position: relative;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 40px;
  transition: all var(--transition);
  border: 2px solid var(--primary-red);
}

.btn-hero-primary:hover {
  background: #c0001a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(224,0,27,0.5);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: all var(--transition);
}

.btn-hero-secondary:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.hero-mockup {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.hero-mockup img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
}

/* =============================================
   通用容器
   ============================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   区块标题
   ============================================= */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  background: rgba(224,0,27,0.08);
  color: var(--primary-red);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-desc {
  font-size: 16px;
  color: var(--text-gray);
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   特性卡片
   ============================================= */
.features-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-red);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(224,0,27,0.2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(224,0,27,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 24px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* =============================================
   文章列表
   ============================================= */
.article-list-section {
  padding: 60px 0;
  background: var(--bg-light);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

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

.article-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.article-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.article-card-body {
  padding: 20px;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.article-card-meta .tag {
  background: rgba(224,0,27,0.08);
  color: var(--primary-red);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.article-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card p {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more {
  font-size: 13px;
  color: var(--primary-red);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* =============================================
   下载区域
   ============================================= */
.download-section {
  padding: 80px 0;
  background: var(--bg-white);
}

.platform-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.platform-tab {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-white);
  color: var(--text-gray);
}

.platform-tab:hover,
.platform-tab.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.download-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.download-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px;
  transition: all var(--transition);
}

.download-card:hover {
  border-color: rgba(224,0,27,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.download-card-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.download-card-header span {
  font-size: 12px;
  color: var(--text-light);
}

.download-card-features {
  margin-bottom: 20px;
}

.download-card-features li {
  font-size: 13px;
  color: var(--text-gray);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-card-features li::before {
  content: '✓';
  color: var(--primary-red);
  font-weight: 700;
  font-size: 12px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--primary-red);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: #c0001a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(224,0,27,0.4);
}

.btn-download-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: var(--primary-red);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 30px;
  border: 2px solid var(--primary-red);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-download-outline:hover {
  background: var(--primary-red);
  color: #ffffff;
}

/* =============================================
   统计数据
   ============================================= */
.stats-section {
  background: linear-gradient(135deg, #1a0000 0%, #3d0000 100%);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-item h3 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

/* =============================================
   轮播图
   ============================================= */
.slider-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
}

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

.slider-item {
  min-width: 100%;
  position: relative;
}

.slider-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.slider-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
}

.slider-caption h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.slider-caption p {
  font-size: 14px;
  opacity: 0.8;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.slider-dot.active {
  background: var(--primary-red);
  width: 24px;
  border-radius: 4px;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.4);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
}

.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-prev:hover,
.slider-next:hover {
  background: rgba(224,0,27,0.7);
}

/* =============================================
   内容页样式
   ============================================= */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  padding: 40px 0 60px;
}

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

.article-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 14px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  flex-wrap: wrap;
}

.article-meta .tag {
  background: rgba(224,0,27,0.08);
  color: var(--primary-red);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.article-body {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 32px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--primary-red);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body img {
  border-radius: 10px;
  margin: 20px 0;
  width: 100%;
}

.article-body ul, .article-body ol {
  margin: 16px 0 16px 20px;
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: 8px;
}

.article-body blockquote {
  border-left: 4px solid var(--primary-red);
  padding: 14px 20px;
  background: rgba(224,0,27,0.04);
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-gray);
}

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

.sidebar-widget {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 24px;
}

.sidebar-widget h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-red);
}

.sidebar-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.sidebar-list a {
  font-size: 14px;
  color: var(--text-dark);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.sidebar-list a:hover {
  color: var(--primary-red);
}

.sidebar-list .num {
  min-width: 20px;
  height: 20px;
  background: var(--bg-light);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  margin-top: 1px;
}

.sidebar-list li:nth-child(1) .num,
.sidebar-list li:nth-child(2) .num,
.sidebar-list li:nth-child(3) .num {
  background: var(--primary-red);
  color: #fff;
}

/* =============================================
   分页
   ============================================= */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: #111111;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

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

.footer-brand .site-logo {
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 16px;
}

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

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.35);
  font-size: 12px;
}

.footer-links a:hover {
  color: rgba(255,255,255,0.7);
}

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

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .hero-section {
    padding: 90px 20px 50px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .article-main {
    padding: 24px 18px;
  }
  .slider-item img {
    height: 240px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   工具类
   ============================================= */
.text-red { color: var(--primary-red); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.py-60 { padding: 60px 0; }
.py-80 { padding: 80px 0; }
.bg-light { background: var(--bg-light); }
.bg-white { background: var(--bg-white); }

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

.animate-fade-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
