/* ============================================
   mag-style.css — 杂志封面时尚风主样式表
   CSS前缀: mag-
   版本: V7.0-29
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  color: #1A1A1A;
  background-color: #FFFFFF;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: #FF1493; text-decoration: none; transition: color .3s; }
a:hover { color: #00CED1; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Arial Black', sans-serif;
  color: #1A1A1A;
  line-height: 1.3;
}

/* --- Utility --- */
.mag-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mag-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* --- Header --- */
.mag-header {
  position: sticky; top: 0; z-index: 1000;
  background: #FFFFFF;
  transition: box-shadow .3s;
}
.mag-header.mag-header--scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.mag-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.mag-header-logo img { height: 40px; width: auto; }
.mag-nav-main { display: flex; gap: 24px; align-items: center; }
.mag-nav-main a {
  color: #1A1A1A; font-size: 15px; font-weight: 500;
  padding: 8px 0; position: relative; transition: color .3s;
  font-family: 'Noto Sans SC', sans-serif;
}
.mag-nav-main a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: #FF1493; transition: width .3s;
}
.mag-nav-main a:hover, .mag-nav-main a.mag-nav-active {
  color: #FF1493;
}
.mag-nav-main a:hover::after, .mag-nav-main a.mag-nav-active::after { width: 100%; }
.mag-nav-main a.mag-nav-active { font-weight: 700; }

.mag-header-actions { display: flex; align-items: center; gap: 16px; }
.mag-btn-cta {
  background: #FF1493; color: #fff; padding: 10px 24px;
  border: none; cursor: pointer; font-size: 14px; font-weight: 600;
  transition: background .3s, transform .2s;
}
.mag-btn-cta:hover { background: #e0117f; transform: translateY(-2px); color: #fff; }

/* Mobile Nav */
.mag-nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.mag-nav-toggle span {
  display: block; width: 24px; height: 2px; background: #1A1A1A;
  position: absolute; left: 4px; transition: .3s;
}
.mag-nav-toggle span:nth-child(1) { top: 8px; }
.mag-nav-toggle span:nth-child(2) { top: 15px; }
.mag-nav-toggle span:nth-child(3) { top: 22px; }
.mag-nav-mobile {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
  background: #1A1A1A; z-index: 2000; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px;
}
.mag-nav-mobile.mag-nav-open { display: flex; }
.mag-nav-mobile a {
  color: #fff; font-size: 20px; font-weight: 500;
  padding: 12px 0; transition: color .3s;
}
.mag-nav-mobile a:hover { color: #FF1493; }
.mag-nav-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff; font-size: 32px; cursor: pointer;
}

/* --- Breadcrumb --- */
.mag-breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  font-size: 13px; color: #666;
}
.mag-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; }
.mag-breadcrumb li::after { content: ' > '; margin: 0 4px; color: #999; }
.mag-breadcrumb li:last-child::after { content: ''; }
.mag-breadcrumb a { color: #666; }
.mag-breadcrumb a:hover { color: #FF1493; }

/* --- Hero Module 1 --- */
.mag-module-1 {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #1A1A1A;
}
.mag-module-1 .mag-hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center;
  opacity: .6; transform: translateZ(0);
}
.mag-module-1 .mag-hero-content {
  position: relative; z-index: 2; text-align: center;
  max-width: 800px; padding: 60px 24px;
}
.mag-module-1 h1 {
  color: #fff; font-size: 48px; margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.mag-module-1 h1 span { color: #FF1493; }
.mag-module-1 .mag-hero-tagline {
  color: rgba(255,255,255,.85); font-size: 20px; margin-bottom: 32px;
  font-family: 'Noto Sans SC', sans-serif;
}
.mag-module-1 .mag-btn-cta { font-size: 16px; padding: 14px 40px; }

/* --- Module Common --- */
.mag-section {
  padding: 80px 0;
}
.mag-section-title {
  font-size: 36px; text-align: center; margin-bottom: 16px;
  color: #1A1A1A;
}
.mag-section-title span { color: #FF1493; }
.mag-section-subtitle {
  text-align: center; color: #666; font-size: 16px;
  margin-bottom: 48px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- Module 2: Nav Cards --- */
.mag-module-2 .mag-nav-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.mag-card-nav {
  background: #fff; border: 2px solid #FF1493; padding: 32px 24px;
  text-align: center; transition: transform .3s, box-shadow .3s;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mag-card-nav:hover { transform: translateY(-8px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.mag-card-nav .mag-card-icon { font-size: 40px; margin-bottom: 16px; }
.mag-card-nav h3 { font-size: 20px; margin-bottom: 8px; }
.mag-card-nav p { color: #666; font-size: 14px; }

/* --- Module 3: Hot Picks --- */
.mag-module-3 .mag-hot-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.mag-card-article {
  background: #fff; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transition: transform .3s, box-shadow .3s;
}
.mag-card-article:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,.15); }
.mag-card-article .mag-card-img {
  width: 100%; height: 200px; object-fit: cover;
}
.mag-card-article .mag-card-body { padding: 20px; }
.mag-card-article h3 { font-size: 18px; margin-bottom: 8px; }
.mag-card-article h3 a { color: #1A1A1A; }
.mag-card-article h3 a:hover { color: #FF1493; }
.mag-card-article .mag-card-meta { color: #666; font-size: 13px; margin-bottom: 8px; }
.mag-card-article .mag-card-excerpt { color: #666; font-size: 14px; line-height: 1.6; }

/* --- Module 4: News Timeline --- */
.mag-module-4 { background: #FAFAFA; }
.mag-timeline { max-width: 800px; margin: 0 auto; position: relative; }
.mag-timeline::before {
  content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 2px; background: #FF1493;
}
.mag-timeline-item {
  padding-left: 56px; margin-bottom: 32px; position: relative;
}
.mag-timeline-item::before {
  content: ''; position: absolute; left: 14px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #FF1493; border: 3px solid #fff;
  box-shadow: 0 0 0 2px #FF1493;
}
.mag-timeline-item .mag-timeline-date {
  color: #FF1493; font-size: 13px; font-weight: 600; margin-bottom: 4px;
}
.mag-timeline-item h3 { font-size: 18px; margin-bottom: 6px; }
.mag-timeline-item p { color: #666; font-size: 14px; }

/* --- Module 5: Data Stats --- */
.mag-module-5 .mag-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.mag-stat-card {
  text-align: center; padding: 40px 20px;
  background: #1A1A1A; color: #fff;
}
.mag-stat-card .mag-stat-number {
  font-size: 48px; font-weight: 700; color: #FF1493;
  font-family: 'Playfair Display', serif;
}
.mag-stat-card .mag-stat-label { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 8px; }

/* --- Module 6: Video --- */
.mag-module-6 .mag-video-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.mag-video-wrapper {
  position: relative; background: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mag-video-player { width: 100%; display: block; }
.mag-video-caption { padding: 12px 16px; color: #666; font-size: 13px; background: #fff; }

/* --- Module 7: Reviews --- */
.mag-module-7 { background: #FAFAFA; }
.mag-reviews-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.mag-review-card {
  background: #fff; padding: 32px; box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mag-review-card .mag-review-stars { color: #FF1493; font-size: 18px; margin-bottom: 12px; }
.mag-review-card .mag-review-text { color: #666; font-size: 14px; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.mag-review-card .mag-review-author { font-weight: 600; font-size: 14px; }

/* --- Module 8: Partners --- */
.mag-module-8 .mag-partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: center;
}
.mag-partner-logo {
  width: 120px; height: 60px; object-fit: contain;
  filter: grayscale(100%); opacity: .6;
  transition: filter .3s, opacity .3s;
}
.mag-partner-logo:hover { filter: grayscale(0); opacity: 1; }

/* --- Module 9: FAQ Accordion --- */
.mag-module-9 .mag-faq-list { max-width: 800px; margin: 0 auto; }
.mag-faq-item {
  border-bottom: 1px solid #eee; padding: 20px 0;
}
.mag-faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-size: 17px; font-weight: 600;
  color: #1A1A1A; transition: color .3s;
}
.mag-faq-question:hover { color: #FF1493; }
.mag-faq-question .mag-faq-icon {
  font-size: 24px; transition: transform .3s; color: #FF1493;
}
.mag-faq-item.mag-faq-open .mag-faq-icon { transform: rotate(45deg); }
.mag-faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s;
  color: #666; font-size: 15px; line-height: 1.7;
}
.mag-faq-item.mag-faq-open .mag-faq-answer {
  max-height: 500px; padding-top: 12px;
}

/* --- Module 10: Bottom CTA --- */
.mag-module-10 {
  background: #1A1A1A; text-align: center; padding: 80px 24px;
}
.mag-module-10 h2 { color: #fff; font-size: 36px; margin-bottom: 16px; }
.mag-module-10 h2 span { color: #FF1493; }
.mag-module-10 p { color: rgba(255,255,255,.7); font-size: 16px; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.mag-module-10 .mag-trust-badges { display: flex; justify-content: center; gap: 24px; margin-top: 32px; }
.mag-module-10 .mag-trust-badge { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid #FF1493; }

/* --- Category Page --- */
.mag-category-banner {
  height: 280px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background: #1A1A1A;
}
.mag-category-banner .mag-banner-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .5;
}
.mag-category-banner h1 {
  position: relative; z-index: 2; color: #fff; font-size: 42px;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.mag-content-layout {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px;
  max-width: 1200px; margin: 0 auto; padding: 40px 24px;
}
.mag-article-list { display: flex; flex-direction: column; gap: 24px; }
.mag-list-card {
  display: flex; gap: 20px; background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  transition: transform .3s;
}
.mag-list-card:hover { transform: translateY(-4px); }
.mag-list-card .mag-list-img { width: 240px; min-height: 160px; object-fit: cover; flex-shrink: 0; }
.mag-list-card .mag-list-body { padding: 20px; flex: 1; }
.mag-list-card h3 { font-size: 18px; margin-bottom: 8px; }
.mag-list-card h3 a { color: #1A1A1A; }
.mag-list-card h3 a:hover { color: #FF1493; }
.mag-list-card .mag-list-meta { color: #666; font-size: 13px; margin-bottom: 8px; }
.mag-list-card .mag-list-excerpt { color: #666; font-size: 14px; line-height: 1.6; }

/* --- Sidebar --- */
.mag-sidebar { display: flex; flex-direction: column; gap: 32px; }
.mag-sidebar-widget {
  background: #fff; padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.mag-sidebar-widget h3 {
  font-size: 18px; margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid #FF1493;
}
.mag-sidebar-widget ul { display: flex; flex-direction: column; gap: 10px; }
.mag-sidebar-widget li a { color: #1A1A1A; font-size: 14px; display: block; padding: 4px 0; }
.mag-sidebar-widget li a:hover { color: #FF1493; padding-left: 8px; transition: .3s; }
.mag-sidebar-search input {
  width: 100%; padding: 12px 16px; border: 2px solid #eee;
  font-size: 14px; transition: border-color .3s;
}
.mag-sidebar-search input:focus { border-color: #FF1493; outline: none; }

/* --- Article Page --- */
.mag-article-header { margin-bottom: 32px; }
.mag-article-header h1 { font-size: 36px; margin-bottom: 16px; }
.mag-article-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
  color: #666; font-size: 13px; margin-bottom: 24px;
}
.mag-article-meta span { display: flex; align-items: center; gap: 4px; }
.mag-article-content { font-size: 16px; line-height: 1.9; }
.mag-article-content h2 { font-size: 28px; margin: 40px 0 16px; color: #1A1A1A; }
.mag-article-content h3 { font-size: 22px; margin: 32px 0 12px; color: #1A1A1A; }
.mag-article-content h4 { font-size: 18px; margin: 24px 0 10px; color: #1A1A1A; }
.mag-article-content p { margin-bottom: 20px; }
.mag-article-content img { margin: 24px 0; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.mag-article-content table {
  width: 100%; border-collapse: collapse; margin: 24px 0;
}
.mag-article-content table th,
.mag-article-content table td {
  padding: 12px 16px; border: 1px solid #eee; text-align: left; font-size: 14px;
}
.mag-article-content table th { background: #1A1A1A; color: #fff; }
.mag-article-content ul, .mag-article-content ol {
  margin: 16px 0; padding-left: 24px;
}
.mag-article-content ul { list-style: disc; }
.mag-article-content ol { list-style: decimal; }
.mag-article-content li { margin-bottom: 8px; }
.mag-article-content blockquote {
  border-left: 4px solid #FF1493; padding: 16px 24px;
  margin: 24px 0; background: #FAFAFA; font-style: italic; color: #666;
}

/* --- Related Articles --- */
.mag-related-articles { margin-top: 48px; padding-top: 32px; border-top: 2px solid #eee; }
.mag-related-articles h3 { font-size: 24px; margin-bottom: 20px; }
.mag-related-articles ul { display: flex; flex-direction: column; gap: 12px; }
.mag-related-articles li a { color: #1A1A1A; font-size: 15px; }
.mag-related-articles li a:hover { color: #FF1493; }

/* --- Pagination --- */
.mag-pagination {
  display: flex; justify-content: center; gap: 8px; margin-top: 40px;
}
.mag-pagination a, .mag-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 14px;
  border: 1px solid #eee; color: #1A1A1A; transition: .3s;
}
.mag-pagination a:hover, .mag-pagination .mag-page-active {
  background: #FF1493; color: #fff; border-color: #FF1493;
}

/* --- Game Scoreboard --- */
.mag-scoreboard { max-width: 900px; margin: 0 auto; }
.mag-scoreboard-table { width: 100%; border-collapse: collapse; }
.mag-scoreboard-table th {
  background: #1A1A1A; color: #fff; padding: 14px 16px;
  text-align: left; font-size: 14px;
}
.mag-scoreboard-table td {
  padding: 14px 16px; border-bottom: 1px solid #eee; font-size: 14px;
}
.mag-scoreboard-table tr:hover { background: #FFF0F5; }
.mag-star-rating { color: #FF1493; }
.mag-score-bar {
  width: 100px; height: 8px; background: #eee; display: inline-block; vertical-align: middle;
}
.mag-score-bar-fill { height: 100%; background: #FF1493; }

/* --- Footer --- */
.mag-footer {
  background: #1A1A1A; color: rgba(255,255,255,.7); padding: 60px 0 0;
}
.mag-footer-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
.mag-footer-col h4 {
  color: #fff; font-size: 16px; margin-bottom: 20px;
  padding-bottom: 12px; border-bottom: 2px solid #FF1493;
  font-family: 'Noto Sans SC', sans-serif;
}
.mag-footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.mag-footer-col a { color: rgba(255,255,255,.7); font-size: 14px; transition: color .3s; }
.mag-footer-col a:hover { color: #FF1493; }
.mag-footer-seo {
  max-width: 1200px; margin: 40px auto 0; padding: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12px; color: #666; line-height: 1.6;
}
.mag-footer-bottom {
  max-width: 1200px; margin: 0 auto; padding: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.mag-footer-bottom p { font-size: 12px; }
.mag-footer-badges { display: flex; gap: 12px; align-items: center; }
.mag-footer-badges img {
  width: 80px; height: 80px; object-fit: cover; border-radius: 50%;
  filter: grayscale(100%); transition: filter .3s;
}
.mag-footer-badges img:hover { filter: grayscale(0); }

/* --- Responsive --- */
@media (max-width: 1023px) {
  .mag-nav-main { display: none; }
  .mag-nav-toggle { display: block; }
  .mag-module-2 .mag-nav-cards { grid-template-columns: repeat(2, 1fr); }
  .mag-module-3 .mag-hot-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-module-5 .mag-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-module-6 .mag-video-grid { grid-template-columns: 1fr; }
  .mag-reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-content-layout { grid-template-columns: 1fr; }
  .mag-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .mag-module-1 h1 { font-size: 36px; }
}
@media (max-width: 767px) {
  .mag-module-1 { min-height: 50vh; }
  .mag-module-1 h1 { font-size: 28px; }
  .mag-module-1 .mag-hero-tagline { font-size: 16px; }
  .mag-module-2 .mag-nav-cards { grid-template-columns: 1fr; }
  .mag-module-3 .mag-hot-grid { grid-template-columns: 1fr; }
  .mag-module-5 .mag-stats-grid { grid-template-columns: 1fr; }
  .mag-reviews-grid { grid-template-columns: 1fr; }
  .mag-footer-grid { grid-template-columns: 1fr; }
  .mag-list-card { flex-direction: column; }
  .mag-list-card .mag-list-img { width: 100%; height: 200px; }
  .mag-section { padding: 48px 0; }
  .mag-section-title { font-size: 28px; }
  .mag-category-banner { height: 200px; }
  .mag-category-banner h1 { font-size: 28px; }
  .mag-article-header h1 { font-size: 26px; }
  .mag-footer-bottom { flex-direction: column; text-align: center; }
}

/* --- Animations --- */
@keyframes mag-fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.mag-animate { opacity: 0; }
.mag-animate.mag-visible { animation: mag-fadeInUp .5s ease forwards; }

/* --- Star Animation --- */
@keyframes mag-starPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.mag-star-animated { display: inline-block; animation: mag-starPulse 2s infinite; }

/* --- Tag Cloud --- */
.mag-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.mag-tag {
  padding: 6px 14px; background: #FAFAFA; border: 1px solid #eee;
  font-size: 13px; color: #666; transition: .3s;
}
.mag-tag:hover { background: #FF1493; color: #fff; border-color: #FF1493; }

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
