/* 网易云音乐官网 - 全局样式（移动端优先） */
:root {
  --primary: #052953;
  --primary-light: #007cc2;
  --accent: #f60;
  --text: #1a1a1a;
  --text-soft: #666;
  --text-mute: #999;
  --bg: #fff;
  --bg-alt: #f5f7fa;
  --radius-card: 12px;
  --radius-btn: 8px;
  --shadow: 0 2px 12px rgba(5, 41, 83, .06);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

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

h1, h2, h3 { margin: 0; line-height: 1.3; }
h1 { font-size: 28px; font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; }

p { margin: 0; }

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

.section { padding: 48px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 28px; }
.section-head h2 { color: var(--primary); }
.section-head p { margin-top: 10px; color: var(--text-soft); font-size: 14px; }

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e25a00; color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-outline { background: #fff; color: var(--primary); border-color: #cbd6e2; }
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

/* ============ 顶部导航 ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #eef1f5;
}
.site-header.is-scrolled { box-shadow: 0 2px 10px rgba(5, 41, 83, .08); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  min-height: 58px;
  position: relative;
}

.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; font-size: 17px; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand:hover { color: var(--primary); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--primary); border-radius: 2px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  display: block;
  padding: 8px 0;
  color: #000;
  font-size: 15px;
  font-weight: 700;
}
.nav-list a:hover { color: var(--primary); }

.nav-cta { display: none; }

/* 无 JS 时导航保持展开可见 */
.js .nav-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid #eef1f5;
  box-shadow: 0 8px 16px rgba(5, 41, 83, .08);
  padding: 8px 16px 16px;
}
.js .nav-list.is-open { display: block; }
.js .nav-list a { padding: 12px 0; border-bottom: 1px solid #f1f4f8; }

/* ============ Hero ============ */
.hero {
  background: linear-gradient(160deg, #052953 0%, #0b3a70 55%, #007cc2 140%);
  color: #fff;
  padding: 48px 0;
}
.hero-grid { display: grid; gap: 32px; }
.hero h1 { font-size: 28px; color: #fff; }
.hero h1 span { color: #ffb27a; }
.hero-sub { margin-top: 14px; color: rgba(255, 255, 255, .82); font-size: 15px; }
.hero-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.hero-stats li { border-left: 2px solid rgba(255, 255, 255, .25); padding-left: 12px; }
.hero-stats strong { display: block; font-size: 20px; color: #fff; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* 播放器模拟 UI */
.player-card {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-card);
  padding: 18px;
  backdrop-filter: blur(6px);
}
.player-top { display: flex; gap: 14px; align-items: center; }
.cover {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff8a3d, #f60 60%, #a83100);
  position: relative;
  overflow: hidden;
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
}
.player-meta strong { display: block; font-size: 15px; color: #fff; }
.player-meta span { font-size: 12px; color: rgba(255, 255, 255, .7); }

.player-progress {
  margin-top: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  overflow: hidden;
}
.player-progress i { display: block; width: 38%; height: 100%; background: var(--accent); border-radius: 999px; }
.player-times {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, .62);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.player-icons { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .85); font-size: 15px; }
.player-icons .play {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  font-size: 13px;
  border: 0;
  cursor: pointer;
}
.player-icons .icon-btn { background: none; border: 0; color: inherit; padding: 0; cursor: pointer; font-size: 15px; }
.player-icons .icon-btn:hover { color: var(--accent); }
.volume { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.volume-track { width: 52px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .25); }
.volume-track i { display: block; width: 62%; height: 100%; border-radius: 999px; background: #fff; }

.playlist-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.tab-btn {
  flex: 1;
  padding: 8px 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
  background: rgba(255, 255, 255, .08);
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  cursor: pointer;
}
.tab-btn.is-active { color: #fff; background: var(--accent); }

.tab-panel { display: none; margin-top: 14px; }
.tab-panel.is-active { display: block; }
.track { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: rgba(255, 255, 255, .86); }
.track .idx { width: 16px; color: rgba(255, 255, 255, .5); font-size: 12px; }
.track .name { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.track .dur { font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ============ 公告栏 ============ */
.notice { background: rgba(5, 41, 83, .06); border-left: 4px solid var(--accent); }
.notice-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text);
}
.notice-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.notice a { margin-left: auto; font-weight: 700; }

/* ============ 功能卡片 ============ */
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: #fff;
  border: 1px solid #eef1f5;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow);
}
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 20px;
}
.card h3 { color: var(--text); }
.card p { margin-top: 8px; font-size: 14px; color: var(--text-soft); }
.card-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--primary-light); }
.card-link:hover { color: var(--accent); }

/* ============ 对比表 ============ */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #eef1f5;
  border-radius: var(--radius-card);
  background: #fff;
}
table.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 14px;
}
table.compare th,
table.compare td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid #eef1f5;
  white-space: nowrap;
}
table.compare thead th { background: var(--primary); color: #fff; font-weight: 700; }
table.compare thead th:first-child,
table.compare tbody th { text-align: left; }
table.compare tbody th {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 600;
  position: sticky;
  left: 0;
  z-index: 1;
}
table.compare tbody tr:nth-child(even) td { background: #fafbfd; }
table.compare td em { font-style: normal; color: var(--accent); font-weight: 700; }
.table-hint { margin-top: 10px; font-size: 12px; color: var(--text-mute); }

/* ============ 资讯 ============ */
.news-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #052953, #007cc2);
  position: relative;
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
}
.thumb.t2 { background: linear-gradient(135deg, #f60, #ffb27a); }
.thumb.t3 { background: linear-gradient(135deg, #1a1a1a, #666); }
.news-body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.news-body p { flex: 1; }
.news-meta { font-size: 12px; color: var(--text-mute); }

/* ============ 评价 ============ */
.review-card { display: flex; flex-direction: column; }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 15px; }
.review-card blockquote { margin: 12px 0 16px; font-size: 14px; color: var(--text-soft); line-height: 1.8; }
.reviewer { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.reviewer strong { display: block; font-size: 14px; }
.reviewer span { font-size: 12px; color: var(--text-mute); }

/* ============ FAQ ============ */
.faq { max-width: 840px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #e8edf3; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-q::after { content: "+"; font-size: 20px; color: var(--primary-light); line-height: 1; }
.faq-item.is-open .faq-q::after { content: "\2212"; }
.faq-a { padding: 0 0 16px; font-size: 14px; color: var(--text-soft); }
.js .faq-a { display: none; }
.js .faq-item.is-open .faq-a { display: block; }

/* ============ CTA ============ */
.cta {
  background: linear-gradient(120deg, #052953, #007cc2);
  color: #fff;
  padding: 48px 0;
}
.cta-grid { display: grid; gap: 24px; }
.cta h2 { color: #fff; }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Footer ============ */
.site-footer { background: var(--primary); color: rgba(255, 255, 255, .72); padding: 40px 0 20px; font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
.site-footer .brand { color: #fff; }
.site-footer .brand:hover { color: #fff; }
.footer-slogan { margin-top: 10px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.footer-col h3 { font-size: 15px; color: #fff; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.social { display: flex; gap: 10px; }
.social span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 13px;
  color: #fff;
}
.copyright {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .55);
  text-align: center;
}

/* ============ 子页面 ============ */
.page-head {
  background: linear-gradient(160deg, #052953, #007cc2);
  color: #fff;
  padding: 40px 0;
}
.page-head h1 { color: #fff; font-size: 26px; }
.page-head p { margin-top: 10px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.breadcrumb { margin-bottom: 10px; font-size: 12.5px; color: rgba(255, 255, 255, .7); }
.breadcrumb a { color: rgba(255, 255, 255, .9); }

.article { max-width: 800px; margin: 0 auto; }
.article h2 { margin-top: 32px; font-size: 20px; color: var(--primary); }
.article h3 { margin-top: 22px; font-size: 17px; }
.article p { margin-top: 12px; color: #333; }
.article ul { margin: 12px 0 0; padding-left: 20px; color: #333; }
.article li { margin-bottom: 6px; }
.article-meta { margin-top: 10px; font-size: 13px; color: var(--text-mute); }
.article-note {
  margin-top: 24px;
  padding: 16px;
  border-radius: var(--radius-card);
  background: var(--bg-alt);
  font-size: 14px;
  color: var(--text-soft);
}

.list-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid #eef1f5;
  border-radius: var(--radius-card);
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow);
}
.list-item:hover { border-color: #d7e3ef; color: var(--text); }
.list-item h3 { font-size: 17px; }
.list-item p { margin-top: 6px; font-size: 14px; color: var(--text-soft); }
.list-item span { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--primary-light); font-weight: 700; }
.list-item .news-meta { margin-top: 6px; }

/* ============ 平板 ============ */
@media (min-width: 768px) {
  body { font-size: 16px; }
  h1 { font-size: 34px; }
  h2 { font-size: 25px; }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .hero { padding: 72px 0; }
  .hero h1 { font-size: 34px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cta-grid { grid-template-columns: 1.2fr .8fr; align-items: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .card { padding: 24px; }
  .nav-toggle { display: none; }
  .nav-list { display: flex; gap: 4px; }
  .js .nav-list {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .js .nav-list a { padding: 8px 10px; border: 0; }
  .js .nav-list.is-open { display: flex; }
}

/* ============ 桌面 ============ */
@media (min-width: 1024px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .section { padding: 88px 0; }
  .hero { padding: 100px 0; }
  .hero-grid { grid-template-columns: 57% 1fr; align-items: center; gap: 48px; }
  .hero h1 { font-size: 40px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .nav-toggle { display: none; }
  .nav-container { gap: 24px; height: 64px; }
  .nav-list a { font-size: 15.5px; padding: 8px 10px; }
  .nav-cta { display: inline-block; padding: 8px 20px; font-size: 14px; }
  .notice-inner { padding: 16px 24px; }
  .cta { padding: 72px 0; }
  .page-head { padding: 56px 0; }
  .page-head h1 { font-size: 32px; }
}
