/* ============================
   塞尔达传说 · 全站公共样式
   ============================ */

/* 字体与重置 */
@import url('https://fonts.googleapis.cnpmjs.org/css2?family=Cinzel:wght@400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gold: #c9a227;
  --gold-light: #f0c040;
  --green: #2d6a4f;
  --dark: #0d1117;
  --dark2: #161b22;
  --dark3: #21262d;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --red: #f85149;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', '微软雅黑', 'PingFang SC', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 39, 0.3);
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 20px rgba(201, 162, 39, 0.6);
}

.triforce {
  font-size: 1.4rem;
  color: var(--gold-light);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

.nav-links .nav-highlight {
  color: var(--gold);
  border: 1px solid rgba(201, 162, 39, 0.4);
}

.nav-links .nav-highlight:hover {
  background: rgba(201, 162, 39, 0.2);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.3);
}

/* ===== Hero 区域 ===== */
.hero {
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 30%, #1a2744 0%, #0d1117 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(45, 106, 79, 0.05) 0%, transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.hero-logo {
  margin-bottom: 2rem;
}

.triforce-big {
  display: inline-block;
  color: var(--gold);
  font-size: 2.5rem;
  line-height: 1;
  animation: triforceGlow 3s ease-in-out infinite;
}

.triforce-big .tri-top {
  text-align: center;
  margin-bottom: -0.3em;
}

.triforce-big .tri-bottom {
  display: flex;
  gap: 0.1em;
}

@keyframes triforceGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(201,162,39,0.5), 0 0 40px rgba(201,162,39,0.3); }
  50% { text-shadow: 0 0 40px rgba(201,162,39,0.9), 0 0 80px rgba(201,162,39,0.5); }
}

.hero-title {
  font-family: 'Cinzel', 'Georgia', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,162,39,0.4);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.2em;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background: linear-gradient(135deg, var(--gold), #a07820);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201,162,39,0.6);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ===== Section 通用 ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold);
  font-family: 'Cinzel', serif;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 1rem;
}

/* ===== 游戏卡片 ===== */
.game-card {
  background: var(--dark2);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201,162,39,0.5);
  box-shadow: 0 12px 40px rgba(201,162,39,0.2);
}

.card-cover {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
  z-index: 1;
}

.card-cover-img {
  padding: 0;
  background: var(--dark3) !important;
}

.card-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.game-card:hover .card-cover-img img {
  transform: scale(1.05);
}

.cover-icon {
  font-size: 3rem;
  color: rgba(201,162,39,0.3);
  position: relative;
  z-index: 2;
}

.cover-year {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,0.45);
  font-family: 'Cinzel', serif;
  z-index: 2;
}
}

.botw-cover {
  background: linear-gradient(135deg, #1a3a4a 0%, #2d6a4f 50%, #1a4a2a 100%), url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cpath fill=%22rgba(201,162,39,0.15)%22 d=%22M20 70 L30 55 L40 60 L55 45 L70 55 L80 50 L90 65 L90 85 L20 85 Z%22/%3E%3Ccircle fill=%22rgba(201,162,39,0.12)%22 cx=%2275%22 cy=%2230%22 r=%225%22/%3E%3C/svg%3E') center/contain no-repeat;
}

.totk-cover {
  background: linear-gradient(135deg, #2a1040 0%, #4a1570 50%, #1a0830 100%), url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cellipse fill=%22rgba(201,162,39,0.12)%22 cx=%2230%22 cy=%2235%22 rx=%2215%22 ry=%228%22/%3E%3Cellipse fill=%22rgba(201,162,39,0.1)%22 cx=%2270%22 cy=%2225%22 rx=%2212%22 ry=%226%22/%3E%3Cellipse fill=%22rgba(201,162,39,0.08)%22 cx=%2250%22 cy=%2255%22 rx=%228%22 ry=%224%22/%3E%3C/svg%3E') center/contain no-repeat;
}

.echoes-cover {
  background: linear-gradient(135deg, #0a2a4a 0%, #1560a0 50%, #0a1a3a 100%), url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22%3E%3Cpath fill=%22rgba(201,162,39,0.15)%22 d=%22M50 20 L55 45 L80 40 L60 60 L70 85 L50 70 L30 85 L40 60 L20 40 L45 45 Z%22/%3E%3Ccircle fill=%22rgba(201,162,39,0.12)%22 cx=%2225%22 cy=%2230%22 r=%228%22/%3E%3Ccircle fill=%22rgba(201,162,39,0.1)%22 cx=%2275%22 cy=%2235%22 r=%226%22/%3E%3C/svg%3E') center/contain no-repeat;
}

.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--gold);
  color: #1a1a1a;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 3;
  letter-spacing: 0.05em;
}

.card-info {
  padding: 1.2rem;
}

.card-info h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}

.year-tag {
  background: rgba(201,162,39,0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(201,162,39,0.3);
}

.platform-tag {
  background: rgba(88,166,255,0.1);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid rgba(88,166,255,0.2);
}

.new-tag {
  background: var(--gold);
  color: #1a1a1a;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* 展开详情 */
.card-detail {
  display: none;
  padding: 1rem 1.2rem 1.2rem;
  border-top: 1px solid rgba(201,162,39,0.15);
  background: rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

.card-detail.open {
  display: block;
}

.card-detail h4 {
  color: var(--gold);
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.card-detail p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}

.card-detail p strong {
  color: var(--text);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.detail-btn {
  display: inline-block;
  margin-top: 0.7rem;
  padding: 0.4rem 1rem;
  background: linear-gradient(135deg, var(--gold), #a07820);
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}

.detail-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201,162,39,0.4);
}

/* ===== 重点作品大卡片 ===== */
.featured-section {
  padding: 5rem 2rem;
  background: var(--dark2);
}

.featured-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.featured-big-card {
  height: 400px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.featured-big-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.botw-card {
  background: linear-gradient(135deg, #0d3320 0%, #1a6640 50%, #2d8855 100%);
}

.totk-card {
  background: linear-gradient(135deg, #1a0830 0%, #3d0d70 50%, #5c1aaa 100%);
}

.echoes-card {
  background: linear-gradient(135deg, #001830 0%, #003d80 50%, #0066cc 100%);
}

.fbcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.fbcard-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1;
}

.fbcard-year {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.fbcard-content h3 {
  font-size: 1.8rem;
  color: #fff;
  font-weight: 900;
  margin-bottom: 0.2rem;
  font-family: 'Cinzel', serif;
}

.fbcard-content p {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.8rem;
}

.fbcard-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.fbcard-tags span {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}

.fbcard-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(201,162,39,0.9);
  color: #1a1a1a;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s;
}

.featured-big-card:hover .fbcard-btn {
  background: var(--gold);
  box-shadow: 0 4px 20px rgba(201,162,39,0.5);
}

/* ===== 统计区域 ===== */
.stats-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #0d1117, #1a2030);
}

.stats-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  font-family: 'Cinzel', serif;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(201,162,39,0.4);
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== 分页控件 ===== */
.pagination {
  margin: 1.5rem 0 0.5rem;
}

.pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.page-btn {
  background: var(--dark3);
  border: 1px solid rgba(201,162,39,0.2);
  color: var(--text-muted);
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s;
}

.page-btn:hover:not([disabled]) {
  background: rgba(201,162,39,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.page-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1a1a;
  font-weight: 700;
}

.page-btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
}

.page-ellipsis {
  color: var(--text-muted);
  padding: 0 0.2rem;
}

.page-info {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
}

/* 呀哈哈卡片类型徽章 */
.korok-type-badge {
  margin-top: 4px;
}

/* ===== 页脚 ===== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--dark);
  border-top: 1px solid rgba(201,162,39,0.15);
}

.footer-triforce {
  font-size: 1.5rem;
  color: rgba(201,162,39,0.3);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.footer-sub {
  font-size: 0.75rem !important;
  color: rgba(139,148,158,0.5) !important;
}

/* ===== 参考资料链接 ===== */
.footer a {
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-big-card { height: 300px; }
}

/* ===== 通用工具类 ===== */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-gold { background: rgba(201,162,39,0.15); color: var(--gold); border: 1px solid rgba(201,162,39,0.3); }
.badge-blue { background: rgba(88,166,255,0.1); color: var(--accent); border: 1px solid rgba(88,166,255,0.2); }
.badge-green { background: rgba(45,106,79,0.2); color: #4caf7d; border: 1px solid rgba(45,106,79,0.3); }

/* ===== 详情页通用 ===== */
.detail-hero {
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.detail-hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 40px rgba(201,162,39,0.5);
}

.detail-hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.detail-hero .tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.detail-nav {
  background: var(--dark2);
  border-bottom: 1px solid rgba(201,162,39,0.15);
  padding: 0 2rem;
  position: sticky;
  top: 60px;
  z-index: 100;
  overflow-x: auto;
}

.detail-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.detail-nav a {
  display: block;
  padding: 0.8rem 1.2rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.detail-nav a:hover,
.detail-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.detail-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.content-section {
  margin-bottom: 4rem;
}

.content-section h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201,162,39,0.2);
}

.content-section h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.8rem;
}

.content-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* 神庙列表表格 */
.shrine-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0;
}

.shrine-table th {
  background: rgba(201,162,39,0.15);
  color: var(--gold);
  padding: 0.7rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(201,162,39,0.3);
  font-size: 0.8rem;
  font-weight: 600;
}

.shrine-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  vertical-align: top;
}

.shrine-table tr:hover td {
  background: rgba(201,162,39,0.05);
  color: var(--text);
}

.shrine-table td:first-child {
  color: var(--text);
  font-weight: 500;
}

.coord {
  font-family: 'Consolas', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
}

/* 攻略步骤 */
.walkthrough-step {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}

.walkthrough-step .step-num {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.walkthrough-step h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.walkthrough-step p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin: 0;
}

/* 呀哈哈卡片 */
.korok-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.korok-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.8rem;
}

.korok-card .korok-name {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.korok-card .korok-area {
  color: var(--gold);
  font-size: 0.72rem;
  margin-bottom: 0.3rem;
}

.korok-card .korok-coord {
  font-family: 'Consolas', monospace;
  color: var(--accent);
  font-size: 0.72rem;
}

.korok-card .korok-hint {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* 信息框 */
.info-box {
  background: rgba(88,166,255,0.08);
  border: 1px solid rgba(88,166,255,0.2);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
}

.info-box.gold {
  background: rgba(201,162,39,0.08);
  border-color: rgba(201,162,39,0.2);
}

.info-box.green {
  background: rgba(45,106,79,0.15);
  border-color: rgba(45,106,79,0.3);
}

.info-box p {
  margin: 0;
  font-size: 0.85rem;
}

/* 返回按钮 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
  margin-bottom: 1rem;
}

.back-btn:hover { color: var(--gold); }

/* 区域标签列表 */
.area-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.area-tag {
  background: var(--dark2);
  border: 1px solid rgba(201,162,39,0.15);
  border-radius: 6px;
  padding: 0.5rem 0.8rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.area-tag:hover,
.area-tag.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,162,39,0.1);
}

/* Tab 切换 */
.tab-nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* 搜索框 */
.search-bar {
  width: 100%;
  padding: 0.7rem 1.2rem;
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.search-bar:focus {
  border-color: rgba(201,162,39,0.5);
}

.search-bar::placeholder {
  color: var(--text-muted);
}

/* ===== 龙的轨迹卡片 ===== */
.dragon-cards-container { margin-top: 1rem; }

.dragon-card {
  background: var(--dark2);
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.dragon-header {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
}
.dragon-icon { font-size: 2rem; }
.dragon-section {
  background: rgba(255,255,255,0.03);
  border-radius: 8px; padding: 0.8rem 1.2rem; margin-bottom: 0.8rem;
}
.dragon-section p { margin: 4px 0; }
.dragon-mat-table {
  width: 100%; font-size: 0.82rem; margin-top: 6px; border-collapse: collapse;
}
.dragon-mat-table th {
  background: rgba(201,162,39,0.12); color: var(--gold); padding: 5px 8px;
  text-align: left; font-size: 0.78rem; border-bottom: 1px solid rgba(201,162,39,0.25);
}
.dragon-mat-table td { padding: 5px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-muted); }
.dragon-tips {
  margin: 0; padding-left: 1.2rem; list-style-type: disc; font-size: 0.85rem; line-height: 1.7;
}
.dragon-tips li { color: var(--text-muted); }

/* ===== 贤者卡片 ===== */
.sage-cards-container { margin-top: 1rem; }
.sage-card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem;
}
.sage-header {
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem;
}
.sage-icon { font-size: 2rem; }
.sage-ability-desc {
  background: rgba(45,106,79,0.1); border: 1px solid rgba(45,106,79,0.3);
  border-radius: 8px; padding: 0.8rem 1.2rem; margin-bottom: 0.8rem;
}
.sage-ability-desc p { margin: 0; color: var(--text); font-size: 0.9rem; line-height: 1.7; }
.sage-location {
  background: rgba(88,166,255,0.08); border-radius: 8px; padding: 0.6rem 1rem; margin-bottom: 0.8rem; font-size: 0.85rem; }
.sage-steps-container { margin-bottom: 0.8rem; }
.sage-steps {
  margin: 0; padding-left: 1.5rem; font-size: 0.85rem; line-height: 1.8;
}
.sage-steps li { color: var(--text-muted); cursor: pointer; transition: color 0.2s; margin-bottom: 0.3rem; }
.sage-steps li:hover { color: var(--gold); }
.sage-reward {
  background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.2);
  border-radius: 8px; padding: 0.8rem 1.2rem; font-size: 0.85rem;
}
.sage-reward b { color: var(--gold); }

/* ===== 四神兽卡片（野炊）===== */
.beast-cards-container { margin-top: 1rem; }
.beast-card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid; border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem;
}
.beast-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.beast-icon { font-size: 2rem; }
.beast-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.8rem; }
.beast-meta span { margin-right: 0.5rem; }
.beast-details { margin-bottom: 0.6rem; }
.beast-details summary {
  cursor: pointer; color: var(--text); font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 0; user-select: none;
}
.beast-details summary:hover { color: var(--gold); }
.beast-details ul { margin: 0.5rem 0 0 1.5rem; font-size: 0.85rem; line-height: 1.7; }
.beast-details li { color: var(--text-muted); }
.beast-reward {
  background: rgba(201,162,39,0.08); border: 1px solid rgba(201,162,39,0.2);
  border-radius: 8px; padding: 1rem 1.2rem; display: flex; gap: 1rem; align-items: start;
}
.beast-reward .reward-icon { font-size: 2.5rem; }

/* ===== 摩托车卡片（野炊）===== */
.moto-card {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid #ff6633; border-radius: var(--radius); padding: 1.5rem;
}
.moto-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.moto-icon { font-size: 2rem; }
.moto-specs { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.moto-phase { margin-bottom: 1rem; }
.moto-phase h4 { color: var(--gold); font-size: 0.95rem; margin-bottom: 0.4rem; }
.moto-steps { margin: 0; padding-left: 1.5rem; font-size: 0.85rem; line-height: 1.8; }
.moto-steps li { color: var(--text-muted); }
.moto-tips { margin-top: 1rem; }
.moto-tips ul { margin: 0.3rem 0 0 1.2rem; list-style-type: disc; }
.moto-tips li { color: var(--text-muted); font-size: 0.85rem; }
