@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');



/* 位置级图片约束：针对本站各区域差异化设置，不依赖全局 img 规则 */
.site-header img,
.qr-wall img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --rage-red: #DC2626;
  --steel-black: #1F2937;
  --lightning-gold: #FACC15;
  --abyss-black: #0a0a0a;
  --ash-gray: #9CA3AF;
  --bone-white: #F3F4F6;
  --flame-orange: #EA580C;
  --shadow-red: rgba(220, 38, 38, 0.35);
  --shadow-gold: rgba(250, 204, 21, 0.25);
  --font-display: 'Ma Shan Zheng', cursive;
  --font-body: 'Noto Sans SC', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { font-family: var(--font-body); background-color: var(--abyss-black); color: var(--bone-white); line-height: 1.7; overflow-x: hidden; }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 10, 10, 0.92); border-bottom: 1px solid rgba(220, 38, 38, 0.25); backdrop-filter: blur(12px); }
.nav-link { position: relative; color: var(--bone-white); font-weight: 500; text-decoration: none; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--lightning-gold); transition: width 0.3s ease; box-shadow: 0 0 8px var(--shadow-gold); }
.nav-link:hover { color: var(--lightning-gold); }
.nav-link:hover::after { width: 100%; }
.site-footer { background: #050505; border-top: 1px solid rgba(220, 38, 38, 0.2); padding: 2.5rem 0; text-align: center; color: var(--ash-gray); font-size: 0.875rem; }

.title-deco-skew { display: inline-block; position: relative; padding-left: 1.25rem; padding-right: 1.5rem; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--bone-white); text-shadow: 0 0 20px var(--shadow-red); }
.title-deco-skew::before { content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 6px; background: linear-gradient(180deg, var(--lightning-gold), var(--rage-red)); border-radius: 3px; box-shadow: 0 0 12px var(--lightning-gold); }
.title-deco-skew::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(220, 38, 38, 0.12) 50%, transparent 70%); transform: skewX(-12deg); z-index: -1; pointer-events: none; }

.title-deco-underline { display: inline-flex; align-items: center; gap: 0.75rem; position: relative; font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--bone-white); padding-bottom: 0.6rem; }
.title-deco-underline::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--rage-red), var(--lightning-gold), var(--rage-red)); border-radius: 2px; box-shadow: 0 0 10px var(--shadow-gold); }
.title-deco-underline i { color: var(--lightning-gold); font-size: 0.8em; text-shadow: 0 0 10px var(--shadow-gold); }

.btn-rage { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2rem; font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); color: #fff; background: linear-gradient(135deg, var(--rage-red), var(--flame-orange)); border: 2px solid var(--lightning-gold); border-radius: 0.5rem; box-shadow: 0 0 20px var(--shadow-red); transition: all 0.3s ease; cursor: pointer; text-decoration: none; }
.btn-rage:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 8px 30px var(--shadow-red), 0 0 25px var(--shadow-gold); }
.btn-steel { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.875rem 2rem; font-weight: 700; font-size: clamp(1rem, 2vw, 1.25rem); color: var(--bone-white); background: linear-gradient(135deg, #111827, var(--steel-black)); border: 2px solid var(--rage-red); border-radius: 0.5rem; transition: all 0.3s ease; cursor: pointer; text-decoration: none; }
.btn-steel:hover { background: linear-gradient(135deg, var(--steel-black), #111827); border-color: var(--lightning-gold); color: var(--lightning-gold); box-shadow: 0 0 20px var(--shadow-red); }

.page-hero { position: relative; padding: 9rem 0 4rem; text-align: center; background: radial-gradient(circle at 50% 20%, rgba(220, 38, 38, 0.16) 0%, transparent 55%); border-bottom: 1px solid rgba(220, 38, 38, 0.15); }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); color: #fff; text-shadow: 0 0 30px var(--shadow-red); margin-bottom: 1rem; }
.page-hero h1 span { color: var(--lightning-gold); }
.page-hero p { color: var(--ash-gray); font-size: clamp(1rem, 2vw, 1.25rem); max-width: 680px; margin: 0 auto; }

/* 杂志式错落排版 */
.magazine-section { padding: 4rem 0; }
.magazine-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.5rem; }
.article-card {
  position: relative; border-radius: 1rem; overflow: hidden;
  background: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.35s ease; display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-6px); border-color: rgba(250, 204, 21, 0.35); box-shadow: 0 16px 45px rgba(0,0,0,0.45), 0 0 25px var(--shadow-red); }
.article-card.featured { grid-column: span 7; grid-row: span 2; }
.article-card.side { grid-column: span 5; }
.article-card.wide { grid-column: span 8; }
.article-card.narrow { grid-column: span 4; }
.article-image { position: relative; overflow: hidden; }
.article-card.featured .article-image { height: 320px; }
.article-card.side .article-image { height: 180px; }
.article-card.wide .article-image { height: 200px; }
.article-card.narrow .article-image { height: 180px; }
.article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-image img { transform: scale(1.08); }
.article-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85) 100%); }
.article-tag { position: absolute; top: 1rem; left: 1rem; padding: 0.35rem 0.85rem; background: var(--rage-red); color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 9999px; z-index: 2; }
.article-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.article-body h3 { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.75rem); color: var(--bone-white); margin-bottom: 0.5rem; line-height: 1.3; }
.article-body p { color: var(--ash-gray); font-size: 0.95rem; margin-bottom: 1rem; flex: 1; }
.article-meta { display: flex; align-items: center; justify-content: space-between; color: var(--ash-gray); font-size: 0.8rem; }
.article-meta a { color: var(--lightning-gold); text-decoration: none; font-weight: 700; }
.article-meta a:hover { text-decoration: underline; }

/* 分类筛选 */
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-bottom: 2.5rem; }
.filter-btn { padding: 0.6rem 1.25rem; background: rgba(31, 41, 55, 0.5); border: 1px solid rgba(220, 38, 38, 0.2); border-radius: 9999px; color: var(--ash-gray); font-weight: 500; cursor: pointer; transition: all 0.3s ease; }
.filter-btn.active, .filter-btn:hover { background: rgba(220, 38, 38, 0.15); border-color: var(--rage-red); color: var(--lightning-gold); box-shadow: 0 0 12px var(--shadow-red); }

/* 图片约束防御：防止网格/弹性容器被图片撑大 */
.magazine-grid,
.article-card,
.article-image,
.article-image img {
  min-width: 0;
  max-width: 100%;
}

/* 友情链接 */
.friend-links-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--abyss-black), #111111);
  border-top: 1px solid rgba(220, 38, 38, 0.15);
}

.friend-links-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

.friend-links-wrap a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-radius: 0.5rem;
  color: var(--bone-white);
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  word-break: keep-all;
  white-space: nowrap;
}

.friend-links-wrap a:hover {
  border-color: var(--lightning-gold);
  color: var(--lightning-gold);
  box-shadow: 0 0 15px var(--shadow-gold);
  transform: translateY(-2px);
}

/* 移动端菜单 */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: rgba(10, 10, 10, 0.98); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; transform: translateX(100%); transition: transform 0.35s ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; color: var(--bone-white); text-decoration: none; }
.mobile-menu a:hover { color: var(--lightning-gold); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger span { display: block; width: 28px; height: 3px; background: var(--bone-white); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .desktop-nav { display: none; }
  .page-hero { padding-top: 7rem; }
  .magazine-grid { display: flex; flex-direction: column; }
  .article-card.featured .article-image, .article-card.side .article-image, .article-card.wide .article-image, .article-card.narrow .article-image { height: 200px; }

  .friend-links-wrap {
    gap: 0.5rem;
  }

  .friend-links-wrap a {
    padding: 0.5rem 0.85rem;
    font-size: 0.875rem;
  }
}
@media (min-width: 768px) {
  .mobile-menu, .mobile-menu.open { display: none; }
}
