/* 战魔（冰雪传奇高爆）官网 - 文章详情页样式 */

:root {
  --primary: #0EA5E9;
  --secondary: #0284C7;
  --accent: #38BDF8;
  --bg-dark: #0b1220;
  --bg-light: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-ice: rgba(56, 189, 248, 0.28);
  --glow: rgba(14, 165, 233, 0.45);
  --radius: 1rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 92%; max-width: 860px; margin: 0 auto; }

/* 导航栏 */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(11, 18, 32, 0.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border-ice); }
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.5rem); letter-spacing: 0.04em; color: var(--text-main); }
.nav-brand img { width: 46px; height: 46px; border-radius: 12px; box-shadow: 0 0 18px var(--glow); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.95rem; color: var(--text-muted); transition: color 0.25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-links a::after { content: ""; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 0.55rem 1.2rem; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff !important; font-weight: 700; box-shadow: 0 0 20px var(--glow); }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--accent); transition: all 0.3s; }

/* 移动端抽屉 */
.mobile-drawer { position: fixed; top: 0; right: -280px; width: 280px; height: 100vh; background: rgba(11, 18, 32, 0.96); backdrop-filter: blur(18px); z-index: 1100; display: flex; flex-direction: column; padding: 6rem 1.5rem 2rem; gap: 1.25rem; border-left: 1px solid var(--border-ice); transition: right 0.35s ease; visibility: hidden; }
.mobile-drawer.active { right: 0; visibility: visible; }
.mobile-drawer a { font-size: 1.1rem; color: var(--text-muted); padding: 0.5rem 0; border-bottom: 1px solid rgba(56, 189, 248, 0.12); }
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--accent); }
.mobile-cta { margin-top: 1rem; text-align: center; padding: 0.75rem; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 700; }
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.overlay.active { opacity: 1; pointer-events: auto; }

/* 文章详情 */
.article-detail { padding-top: 120px; padding-bottom: 4rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--primary); }

.article-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-ice);
}
.article-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: 0.9rem; }
.article-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.article-meta .category { color: var(--accent); }

.article-cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-ice);
  margin-bottom: 2rem;
  box-shadow: 0 12px 34px rgba(14, 165, 233, 0.12);
}

.article-body {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
}
.article-body h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--primary);
}
.article-body h3 {
  font-size: 1.15rem;
  color: var(--text-main);
  margin: 1.5rem 0 0.75rem;
}
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text-main); }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-body img { border-radius: 0.75rem; margin: 1.25rem 0; border: 1px solid var(--border-ice); }

/* 提示框 */
.tip-box {
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-ice);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
}
.tip-box h4 { color: var(--accent); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
.tip-box p { margin: 0; }

/* 表格 */
.data-table-wrap { overflow-x: auto; margin: 1.5rem 0; border-radius: var(--radius); border: 1px solid var(--border-ice); }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid rgba(56, 189, 248, 0.12); }
.data-table th { background: rgba(14, 165, 233, 0.14); color: var(--accent); font-weight: 700; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(56, 189, 248, 0.06); }

/* 相关推荐 */
.related-section { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-ice); }
.related-section h3 { font-size: 1.25rem; color: var(--accent); margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-ice);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(14, 165, 233, 0.16); }
.related-card .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.related-card h4 { font-size: 1.05rem; color: var(--text-main); margin-bottom: 0.4rem; }
.related-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* 页脚 */
.footer { position: relative; padding: 3rem 0 2rem; background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.06)); border-top: 1px solid var(--border-ice); }
.footer-content { text-align: center; }
.footer-logo { font-size: 1.6rem; font-weight: 900; color: var(--accent); margin-bottom: 1rem; text-shadow: 0 0 20px var(--glow); }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 1.25rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { color: var(--text-muted); font-size: 0.85rem; line-height: 1.8; }

/* 悬浮联系入口 */
.floating-contact { position: fixed; right: 1.25rem; bottom: 1.5rem; z-index: 999; }
.floating-toggle { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; border: none; font-size: 1.4rem; cursor: pointer; box-shadow: 0 0 24px var(--glow); transition: transform 0.25s; }
.floating-toggle:hover { transform: scale(1.08); }
.floating-menu { position: absolute; right: 0; bottom: 70px; display: flex; flex-direction: column; gap: 0.65rem; opacity: 0; transform: translateY(10px); pointer-events: none; transition: all 0.3s; }
.floating-menu.active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-menu a { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border-ice); color: var(--text-main); font-size: 0.9rem; white-space: nowrap; backdrop-filter: blur(10px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.floating-menu a:hover { background: rgba(14, 165, 233, 0.2); color: var(--accent); }

.section-friends {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(14, 165, 233, 0.06) 100%);
  border-top: 1px solid var(--border-ice);
}

.section-friends .container {
  width: 92%;
  max-width: 1000px;
}

.friends-card {
  background: var(--bg-card);
  border: 1px solid var(--border-ice);
  border-radius: var(--radius);
  padding: 1.75rem;
  backdrop-filter: blur(10px);
}

.friends-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.friends-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.friends-list a {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid var(--border-ice);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s;
  max-width: 100%;
  word-break: break-word;
}

.friends-list a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--glow);
}

/* 响应式 */
@media (max-width: 768px) {
  .section-friends { padding: 2.5rem 0; }
  .friends-card { padding: 1.25rem; }
  .friends-list { gap: 0.5rem; }
  .friends-list a { padding: 0.5rem 0.85rem; font-size: 0.85rem; }

  .nav-links { display: none; }
  .hamburger { display: flex; }
  .article-detail { padding-top: 100px; }
  .article-cover { height: 200px; }
  .related-grid { grid-template-columns: 1fr; }
  .data-table-wrap { margin: 1.5rem -4vw; width: calc(100% + 8vw); border-radius: 0; }
}
