*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --primary-glow: rgba(124, 58, 237, 0.25);
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #273548;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.2);
  --green: #22c55e;
  --red: #ef4444;
  --blue: #3b82f6;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* 背景网格纹理 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 背景光晕 */
body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* 导航 */
nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
nav .container { display: flex; align-items: center; justify-content: space-between; }
nav .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.5px;
  transition: opacity 0.2s;
}
nav .logo:hover { opacity: 0.85; }
nav .nav-links { display: flex; gap: 28px; }
nav .nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s;
}
nav .nav-links a:hover::after,
nav .nav-links a.active::after { width: 100%; }
nav .nav-links a:hover, nav .nav-links a.active { color: var(--text); }

/* Hero */
.hero {
  text-align: center;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Hero 动态光效 */
.hero::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 60%);
  animation: heroPulse 6s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #fbbf24 40%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  letter-spacing: -0.5px;
}
.hero p {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}
.hero .hero-banner {
  margin-top: 30px;
  border-radius: 16px;
  overflow: hidden;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero .hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* 特性卡片 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 60px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 14px;
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(124,58,237,0.08) 0%, transparent 40%);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover { border-color: rgba(124, 58, 237, 0.3); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.feature-card .icon { font-size: 2.2rem; margin-bottom: 14px; transition: transform 0.3s; display: inline-block; }
.feature-card:hover .icon { transform: scale(1.1); }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* 分区 */
.section { padding: 40px 0; }
.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 1.2em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-title .more { font-size: 0.85rem; font-weight: 400; margin-left: auto; }

/* 攻略卡片 */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 22px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  position: relative;
}
.guide-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: 0 6px 24px rgba(0,0,0,0.2);
  transform: translateY(-3px);
}
.guide-card .tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.tag-boss { background: var(--red); }
.tag-newbie { background: var(--green); }
.tag-train { background: var(--blue); }
.tag-pvp { background: var(--primary); }
.guide-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.guide-card .desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; }

/* 宠物卡片 */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.pet-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 22px 16px;
  text-align: center;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
}
.pet-card:hover {
  border-color: var(--accent-glow);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  transform: translateY(-4px);
}
.pet-card .pet-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  background: rgba(124, 58, 237, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s;
}
.pet-card:hover .pet-img-wrap {
  transform: scale(1.12);
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}
.pet-card .pet-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.pet-card .pet-emoji {
  font-size: 3.2rem;
  line-height: 1;
  transition: transform 0.3s;
}
.pet-card:hover .pet-emoji {
  transform: scale(1.1);
}
.pet-card .pet-emoji.fallback {
  position: absolute;
}
.pet-card h4 { font-size: 1rem; margin-bottom: 4px; font-weight: 700; }
.pet-card .pet-element { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 8px; }
.pet-card .pet-attrs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.pet-card .pet-attr {
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
  font-weight: 500;
}
.pet-card .pet-evo {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.4;
}

/* 文章详情 */
.article { padding: 40px 0; }
.article h1 { font-size: 2rem; margin-bottom: 12px; font-weight: 800; letter-spacing: -0.3px; }
.article .meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 32px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.article h2 {
  font-size: 1.4rem;
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.article h2::before {
  content: '';
  width: 3px;
  height: 1em;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.article h3 { font-size: 1.15rem; margin: 28px 0 10px; font-weight: 600; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 12px 0; padding-left: 24px; }
.article li { margin-bottom: 6px; }
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article th {
  background: rgba(30, 41, 59, 0.8);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 2px solid var(--border);
}
.article td {
  padding: 11px 16px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  font-size: 0.9rem;
}
.article tr:last-child td { border-bottom: none; }
.article tbody tr:hover { background: rgba(124, 58, 237, 0.04); }
.article blockquote {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  margin: 20px 0;
  background: rgba(245, 158, 11, 0.05);
  color: var(--text-muted);
  border-radius: 0 8px 8px 0;
  font-size: 0.93rem;
}
.article code {
  background: rgba(124, 58, 237, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--primary);
}

/* 面包屑 */
.breadcrumb { padding: 20px 0 0; color: var(--text-muted); font-size: 0.85rem; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb span { margin: 0 6px; color: rgba(148, 163, 184, 0.4); }

/* 页脚 */
footer {
  background: var(--bg-card);
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 80px;
}

/* 渐入动画 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* 地图区块样式 */
.map-section {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  transition: border-color 0.3s;
}
.map-section:hover { border-color: rgba(124, 58, 237, 0.2); }
.map-section h3 { margin-bottom: 14px; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }

/* 提示框 */
.tips-box {
  background: rgba(245, 158, 11, 0.05);
  border-left: 4px solid var(--accent);
  padding: 18px 22px;
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
}
.tips-box h3 { color: var(--accent); margin-bottom: 10px; font-size: 1rem; }

/* 稀有度颜色 */
.rare { color: var(--accent); font-weight: 700; }
.legend { color: var(--primary); font-weight: 700; }

/* 地图卡片 */
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 40px 0;
}
.map-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 14px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.map-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}
.map-card .map-thumb {
  width: 100%;
  height: 160px;
  margin: -24px -24px 16px -24px;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}
.map-card .map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.map-card:hover .map-thumb img {
  transform: scale(1.06);
}
.map-card .map-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.map-card .map-icon {
  font-size: 2.2rem;
  width: 56px;
  height: 56px;
  background: rgba(124, 58, 237, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.map-card:hover .map-icon { transform: scale(1.1); }
.map-card .map-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.map-card .map-info .map-region {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 500;
}
.map-card .map-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.map-card .map-section-label {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}
.map-card .map-pets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.map-card .map-pet-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent);
  font-weight: 500;
}
.map-card .map-boss-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.map-card .map-boss-item {
  font-size: 0.8rem;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.06);
  border-left: 3px solid var(--red);
  color: var(--text);
}
.map-card .map-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(51, 65, 85, 0.3);
}

/* 完整世界地图展示 */
.full-map-section {
  margin: 30px 0 40px;
}
.full-map-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.full-map-card {
  background: var(--bg-card);
  border: 1px solid rgba(51, 65, 85, 0.5);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.full-map-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.full-map-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s;
}
.full-map-card:hover img {
  transform: scale(1.03);
}
.full-map-card.full-map-wide {
  grid-column: 1 / -1;
}
.full-map-label {
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(51, 65, 85, 0.3);
  letter-spacing: 0.3px;
}

/* 地图区域分组 */
.map-region-group {
  margin: 30px 0;
}
.map-region-group .region-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 滚动条 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (max-width: 768px) {
  .hero { padding: 60px 0 40px; }
  .hero h1 { font-size: 2rem; }
  .hero::before { width: 300px; height: 300px; }
  .guide-grid { grid-template-columns: 1fr; }
  .pet-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr 1fr; }
  nav .nav-links { gap: 16px; }
  .full-map-gallery { grid-template-columns: 1fr; }
  .full-map-card.full-map-wide { grid-column: 1; }
  .map-grid { grid-template-columns: 1fr; }
}

/* 广告位 */
.ad-banner-horizontal {
  margin: 16px 0 32px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.ad-banner-horizontal .ad-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.6rem;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(0,0,0,0.5);
  color: rgba(255,255,255,0.6);
  z-index: 2;
  pointer-events: none;
}
.ad-banner-horizontal .ad-slot {
  min-height: 90px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}
.ad-banner-horizontal .ad-slot:hover { border-color: var(--primary); }
.ad-banner-horizontal .ad-placeholder {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 24px;
}
.ad-banner-horizontal.ad-bottom { margin: 40px 0 0; }

/* 侧边广告 */
.ad-sidebar-card {
  position: relative;
  min-height: 250px;
}
.ad-sidebar-card .side-label {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
}
.ad-sidebar-card .ad-slot {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder-small {
  font-size: 0.8rem;
  padding: 30px;
}

/* ====== 社区板块 ====== */
.community-section {
  position: relative;
  margin: 40px -20px 0;
  padding: 60px 20px 70px;
  overflow: hidden;
}
.community-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, rgba(15,23,42,0.95) 40%, rgba(15,23,42,0.95) 100%);
  z-index: 1;
}
.community-bg-imgs {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  opacity: 0.25;
}
.community-bg-imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  filter: blur(2px) brightness(0.6);
}
.community-section .container { position: relative; z-index: 2; }
.community-card {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.community-left { text-align: center; }
.community-left .community-icon { font-size: 3.5rem; margin-bottom: 8px; }
.community-left h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), #fbbf24, var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.community-left .community-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}
.qq-info-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 14px;
  padding: 16px 22px;
  margin-bottom: 18px;
}
.qq-info-box .qq-icon { font-size: 2.2rem; }
.qq-info-box .qq-label { font-size: 0.75rem; color: var(--text-muted); }
.qq-info-box .qq-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.5px;
  font-family: 'Courier New', monospace;
}
.btn-copy-qq {
  margin-left: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(124,58,237,0.1);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-copy-qq:hover { border-color: var(--primary); background: rgba(124,58,237,0.2); }
.btn-join-qq {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, #12b7f5, #0d8ed9);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 18px rgba(18,183,245,0.3);
}
.btn-join-qq:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(18,183,245,0.45);
  color: #fff;
}
.join-tip {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.8;
}
.community-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.com-feat {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.1);
  font-size: 0.88rem;
  text-align: center;
  color: var(--text);
  transition: all 0.25s;
}
.com-feat:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
  transform: translateY(-2px);
}

/* 社区独立页 */
.community-page-hero {
  text-align: center;
  padding: 50px 20px 20px;
  position: relative;
}
.community-page-hero h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}
.community-page-hero .com-hero-banner {
  margin: 20px auto 0;
  max-width: 900px;
  border-radius: 16px;
  overflow: hidden;
}
.community-page-hero .com-hero-banner img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .community-card { grid-template-columns: 1fr; gap: 24px; }
  .community-section { margin: 30px -12px 0; padding: 40px 12px 50px; }
  .community-left h2 { font-size: 1.3rem; }
  .qq-info-box { flex-wrap: wrap; justify-content: center; }
  .btn-copy-qq { margin-left: 0; }
  .community-bg-imgs { grid-template-columns: 1fr; }
  .community-bg-imgs img:nth-child(2),
  .community-bg-imgs img:nth-child(3) { display: none; }
}

/* 首页特定 */
.capture-table td:first-child { white-space: nowrap; font-weight: 600; }

/* ====== 登录/注册/头像 ====== */
.nav-user-area {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(51,65,85,0.4);
}
.nav-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #a78bfa);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.nav-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  inset: 0;
}
.nav-avatar-fallback {
  font-size: 0.85rem;
  color: #fff;
  font-weight: 700;
}
.nav-username {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout-btn {
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-logout-btn:hover { color: var(--red); background: rgba(239,68,68,0.08); }
.nav-login-btn, .nav-reg-btn {
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-login-btn {
  color: var(--primary);
  border: 1px solid rgba(124,58,237,0.3);
}
.nav-login-btn:hover { background: rgba(124,58,237,0.1); }
.nav-reg-btn {
  color: var(--accent);
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
}
.nav-reg-btn:hover { background: rgba(245,158,11,0.2); }

.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  max-width: 400px;
  width: 90%;
  position: relative;
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(51,65,85,0.4);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.auth-close:hover { background: var(--red); }
.auth-card h3 { font-size: 1.25rem; margin-bottom: 4px; text-align: center; }
.auth-sub { color: var(--text-muted); font-size: 0.82rem; text-align: center; margin-bottom: 20px; }
.auth-form label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  margin-top: 12px;
}
.auth-form input[type="text"],
.auth-form input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.93rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus { border-color: var(--primary); }
.auth-submit-btn {
  width: 100%;
  margin-top: 18px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
}
.auth-submit-btn:hover { opacity: 0.92; }
.auth-submit-btn:active { transform: scale(0.97); }
.auth-switch {
  text-align: center;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.auth-switch a { color: var(--primary); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.avatar-upload-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px dashed var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}
.avatar-upload-btn:hover { border-color: var(--primary); color: var(--primary); }

.auth-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 10px;
  font-size: 0.88rem;
  z-index: 2000;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.2s forwards;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(-10px); } }

@media (max-width: 768px) {
  .nav-user-area { margin-left: 0; padding-left: 0; border-left: none; }
  .nav-username { display: none; }
}

/* 打赏浮动按钮 */
.donate-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(245,158,11,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.donate-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(245,158,11,0.5);
}
.donate-fab .pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(245,158,11,0.4);
  animation: donatePulse 2s ease-out infinite;
}
@keyframes donatePulse {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* 打赏弹窗 */
.donate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.25s;
}
.donate-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
}
.donate-card .donate-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(51,65,85,0.4);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.donate-card .donate-close:hover { background: var(--red); }
.donate-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.donate-card .donate-sub { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.donate-card .qr-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 16px;
}
.donate-card .qr-item {
  flex: 1;
  max-width: 150px;
}
.donate-card .qr-box {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.donate-card .qr-box .qr-placeholder {
  width: 80%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  opacity: 0.5;
}
.donate-card .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.donate-card .qr-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.donate-card .donate-msg {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(245,158,11,0.06);
  line-height: 1.6;
}
.donate-card .donate-hint {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
}

@media (max-width: 768px) {
  .donate-fab { bottom: 18px; right: 18px; width: 44px; height: 44px; font-size: 1.1rem; }
}