/* =====================================================
   酷狗音乐官网模板 - 全局样式
   符合谷歌SEO/GEO标准
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "WenQuanYi Micro Hei", Arial, sans-serif;
  color: #333;
  background: #f5f5f5;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: #1db8f2; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.clearfix::after { content: ""; display: table; clear: both; }

/* =====================================================
   HEADER / TOP NAV
   ===================================================== */
.site-header {
  background: linear-gradient(90deg, #0a5fa8 0%, #1db8f2 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 20px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.header-logo .brand-name {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}
.header-search {
  flex: 1;
  max-width: 420px;
  margin: 0 30px;
  position: relative;
}
.header-search input {
  width: 100%;
  height: 34px;
  border-radius: 17px;
  border: none;
  padding: 0 40px 0 16px;
  font-size: 13px;
  outline: none;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.header-search input::placeholder { color: rgba(255,255,255,.7); }
.header-search input:focus { background: rgba(255,255,255,.28); }
.header-search .search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 13px;
}
.header-actions a { color: #fff; opacity: .9; }
.header-actions a:hover { opacity: 1; color: #fff; }
.btn-login {
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 16px;
  padding: 4px 16px;
  font-size: 13px;
  color: #fff !important;
  transition: background .2s;
}
.btn-login:hover { background: rgba(255,255,255,.2); }

/* ---- Main Nav ---- */
.main-nav {
  background: rgba(0,0,0,.08);
  border-top: 1px solid rgba(255,255,255,.12);
}
.main-nav ul {
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.main-nav ul li a {
  display: block;
  padding: 10px 22px;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  transition: background .2s, color .2s;
  border-bottom: 3px solid transparent;
}
.main-nav ul li a:hover,
.main-nav ul li.active a {
  color: #fff;
  background: rgba(255,255,255,.1);
  border-bottom-color: #fff;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 10px 0;
  font-size: 13px;
  color: #999;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumb ol li { display: flex; align-items: center; gap: 4px; }
.breadcrumb ol li + li::before { content: ">"; color: #ccc; }
.breadcrumb ol li a { color: #666; }
.breadcrumb ol li a:hover { color: #1db8f2; }
.breadcrumb ol li span { color: #333; }

/* =====================================================
   BANNER / CAROUSEL
   ===================================================== */
.banner-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0a5fa8 0%, #1db8f2 100%);
}
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.carousel-slide {
  min-width: 100%;
  position: relative;
}
.carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 40px;
  background: linear-gradient(transparent, rgba(0,0,0,.5));
  color: #fff;
}
.carousel-caption h2 { font-size: 28px; font-weight: 700; margin-bottom: 6px; }
.carousel-caption p { font-size: 15px; opacity: .9; }
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover { background: rgba(0,0,0,.6); }
.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.carousel-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dots span.active { background: #fff; transform: scale(1.3); }

/* ---- Download Bar (below banner) ---- */
.download-bar {
  background: #fff;
  padding: 18px 0;
  border-bottom: 1px solid #e8e8e8;
}
.download-bar .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  border: none;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.btn-download.pc {
  background: linear-gradient(90deg, #1db8f2, #0a7fc2);
  color: #fff;
}
.btn-download.ios {
  background: #222;
  color: #fff;
}
.btn-download.android {
  background: linear-gradient(90deg, #3ddc84, #1a9c57);
  color: #fff;
}
.btn-download svg, .btn-download i { font-size: 18px; }

/* =====================================================
   SECTION COMMON
   ===================================================== */
.section { padding: 32px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: linear-gradient(#1db8f2, #0a5fa8);
  border-radius: 2px;
}
.section-more {
  font-size: 13px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: #1db8f2; }

/* =====================================================
   CARD GRID
   ===================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-5 { grid-template-columns: repeat(5, 1fr); }
.card-grid-6 { grid-template-columns: repeat(6, 1fr); }

.music-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.music-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.music-card .cover {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.music-card .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.music-card:hover .cover img { transform: scale(1.05); }
.music-card .cover .play-count {
  position: absolute;
  bottom: 6px;
  right: 8px;
  color: #fff;
  font-size: 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,.6);
}
.music-card .cover .play-icon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  background: rgba(29,184,242,.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s;
}
.music-card:hover .cover .play-icon { opacity: 1; }
.music-card .info {
  padding: 10px 12px 12px;
}
.music-card .info .title {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}
.music-card .info .meta {
  font-size: 12px;
  color: #999;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =====================================================
   RANK LIST
   ===================================================== */
.rank-block {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.rank-block .rank-header {
  padding: 14px 16px;
  background: linear-gradient(90deg, #0a5fa8, #1db8f2);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rank-block .rank-list { padding: 8px 0; }
.rank-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
  transition: background .15s;
}
.rank-item:hover { background: #f5f9ff; }
.rank-item .rank-num {
  width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: #ccc;
  flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-num { color: #f5a623; }
.rank-item:nth-child(2) .rank-num { color: #9b9b9b; }
.rank-item:nth-child(3) .rank-num { color: #c0714f; }
.rank-item .rank-cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.rank-item .rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-item .rank-info { flex: 1; overflow: hidden; }
.rank-item .rank-info .song { font-size: 13px; color: #222; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-item .rank-info .artist { font-size: 12px; color: #999; }

/* =====================================================
   ARTICLE LIST (list.html)
   ===================================================== */
.article-list { background: #fff; border-radius: 10px; overflow: hidden; }
.article-item {
  display: flex;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s;
}
.article-item:last-child { border-bottom: none; }
.article-item:hover { background: #f8fbff; }
.article-item .thumb {
  width: 120px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.article-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-item .content { flex: 1; }
.article-item .content h3 {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.article-item .content h3 a:hover { color: #1db8f2; }
.article-item .content .desc {
  font-size: 13px;
  color: #777;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
}
.article-item .content .meta {
  font-size: 12px;
  color: #bbb;
  display: flex;
  gap: 12px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #555;
  transition: all .15s;
}
.pagination a:hover { border-color: #1db8f2; color: #1db8f2; }
.pagination .current { background: #1db8f2; color: #fff; border-color: #1db8f2; }
.pagination .prev, .pagination .next { width: auto; padding: 0 14px; }

/* =====================================================
   ARTICLE DETAIL (show.html)
   ===================================================== */
.article-detail {
  background: #fff;
  border-radius: 10px;
  padding: 30px 36px;
}
.article-detail h1 {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin-bottom: 12px;
}
.article-detail .article-meta {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 16px;
}
.article-detail .article-body {
  font-size: 15px;
  line-height: 1.85;
  color: #444;
}
.article-detail .article-body h2 { font-size: 20px; color: #222; margin: 24px 0 12px; }
.article-detail .article-body h3 { font-size: 17px; color: #333; margin: 20px 0 10px; }
.article-detail .article-body p { margin-bottom: 16px; }
.article-detail .article-body img { border-radius: 8px; margin: 16px 0; }
.article-detail .article-body ul, .article-detail .article-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.article-detail .article-body ul li { list-style: disc; margin-bottom: 6px; }
.article-detail .article-body ol li { list-style: decimal; margin-bottom: 6px; }

/* =====================================================
   DOWNLOAD PAGE (download.html)
   ===================================================== */
.download-hero {
  background: linear-gradient(135deg, #0a5fa8 0%, #1db8f2 60%, #00c8ff 100%);
  padding: 60px 0 50px;
  text-align: center;
  color: #fff;
}
.download-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.download-hero p {
  font-size: 17px;
  opacity: .9;
  margin-bottom: 32px;
}
.download-hero .hero-img {
  max-width: 680px;
  margin: 0 auto 36px;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.download-btns {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.download-btns .btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s;
}
.download-btns .btn-dl:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.download-btns .btn-dl.primary { background: #fff; color: #0a5fa8; }
.download-btns .btn-dl.secondary { background: rgba(255,255,255,.15); color: #fff; border: 2px solid rgba(255,255,255,.6); }

.features-section { padding: 48px 0; background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 32px;
}
.feature-item {
  text-align: center;
  padding: 28px 20px;
  border-radius: 12px;
  background: #f8fbff;
  transition: transform .2s, box-shadow .2s;
}
.feature-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(29,184,242,.15); }
.feature-item .icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1db8f2, #0a5fa8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  color: #fff;
}
.feature-item h3 { font-size: 17px; font-weight: 700; color: #222; margin-bottom: 8px; }
.feature-item p { font-size: 13px; color: #777; line-height: 1.6; }

/* =====================================================
   SIDEBAR
   ===================================================== */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-block {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.sidebar-block .sidebar-title {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-block .sidebar-title::before {
  content: "";
  width: 4px;
  height: 16px;
  background: linear-gradient(#1db8f2, #0a5fa8);
  border-radius: 2px;
}
.sidebar-list { padding: 8px 0; }
.sidebar-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13px;
  color: #555;
  transition: background .15s, color .15s;
}
.sidebar-list li a:hover { background: #f5f9ff; color: #1db8f2; }
.sidebar-list li a .num {
  margin-left: auto;
  font-size: 12px;
  color: #bbb;
}

/* =====================================================
   TAGS
   ===================================================== */
.tag-cloud { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  background: #f0f7ff;
  color: #1db8f2;
  border: 1px solid #cce8fb;
  transition: all .15s;
}
.tag:hover { background: #1db8f2; color: #fff; border-color: #1db8f2; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #1a1a2e;
  color: #aaa;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-bottom: 24px;
}
.footer-links a {
  font-size: 13px;
  color: #888;
  transition: color .15s;
}
.footer-links a:hover { color: #1db8f2; }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.08);
  margin: 16px 0;
}
.footer-info {
  text-align: center;
  font-size: 12px;
  color: #666;
  line-height: 2;
}
.footer-info a { color: #666; }
.footer-info a:hover { color: #1db8f2; }
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo img { width: 32px; height: 32px; border-radius: 6px; }
.footer-logo span { color: #ccc; font-size: 16px; font-weight: 700; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .card-grid-5 { grid-template-columns: repeat(4, 1fr); }
  .card-grid-6 { grid-template-columns: repeat(4, 1fr); }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .card-grid-4, .card-grid-5, .card-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .carousel-slide img { height: 220px; }
  .download-hero h1 { font-size: 24px; }
  .article-detail { padding: 20px 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .main-nav ul { overflow-x: auto; }
  .main-nav ul li a { padding: 10px 14px; white-space: nowrap; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .download-btns { flex-direction: column; align-items: center; }
}

/* =====================================================
   UTILITY
   ===================================================== */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.bg-white { background: #fff; }
.rounded { border-radius: 10px; }
.shadow { box-shadow: 0 2px 12px rgba(0,0,0,.08); }
.hidden { display: none; }
