/* =============================================
   Roco Kingdom: World — Global Guide Hub
   Dark Fantasy Theme — 2026
   ============================================= */

:root {
  --primary: #6c5ce7;
  --primary-dark: #4a3db5;
  --primary-light: #a29bfe;
  --accent: #00cec9;
  --accent-glow: rgba(0,206,201,0.3);
  --gold: #fdcb6e;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card-hover: #222240;
  --bg-surface: #16213e;
  --text: #e8e8f0;
  --text-secondary: #a0a0b8;
  --text-muted: #6a6a80;
  --border: #2a2a45;
  --border-light: #3a3a55;
  --danger: #e17055;
  --success: #00b894;
  --warning: #fdcb6e;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
  --glow: 0 0 20px rgba(108,92,231,0.3);
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }

/* Navbar */
.navbar {
  background: rgba(15,15,26,0.95);
  backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 66px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 700; color: #fff; }
.nav-logo .logo-icon { font-size: 1.8rem; }
.nav-logo span { background: linear-gradient(135deg, var(--accent), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--text-secondary); padding: 8px 18px; border-radius: 20px;
  font-size: 0.9rem; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { background: rgba(108,92,231,0.15); color: #fff; }
.nav-links a.active { background: rgba(108,92,231,0.25); }

/* Hero */
.hero {
  background: linear-gradient(170deg, #0f0f1a 0%, #1a1040 30%, #0d1b3e 60%, #0f0f1a 100%);
  padding: 80px 24px 100px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(ellipse at 60% 40%, rgba(108,92,231,0.12) 0%, transparent 50%),
              radial-gradient(ellipse at 30% 60%, rgba(0,206,201,0.08) 0%, transparent 50%);
}
.hero-content { position: relative; z-index: 1; max-width: 750px; margin: 0 auto; }
.hero-badge { display: inline-block; background: rgba(0,206,201,0.15); color: var(--accent); padding: 6px 18px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(0,206,201,0.25); }
.hero h1 { font-size: 3rem; color: #fff; margin-bottom: 16px; line-height: 1.2; }
.hero h1 .gradient { background: linear-gradient(135deg, var(--accent), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { color: var(--text-secondary); font-size: 1.15rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero-stats { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.hero-stat .label { font-size: 0.8rem; color: var(--text-muted); }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 28px; font-size: 1rem; font-weight: 600; transition: var(--transition); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(108,92,231,0.4); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 6px 30px rgba(108,92,231,0.5); }
.btn-accent { background: var(--accent); color: #0f0f1a; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--accent-glow); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.25); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.05); }
.btn-sm { padding: 7px 18px; font-size: 0.85rem; }
.btn-xs { padding: 4px 12px; font-size: 0.75rem; border-radius: 14px; }

/* Container */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.section-title h2 { font-size: 1.6rem; color: #fff; display: flex; align-items: center; gap: 12px; }
.section-title h2::before { content: ''; width: 4px; height: 28px; background: var(--accent); border-radius: 2px; }
.section-title .more-link { color: var(--accent); font-weight: 500; font-size: 0.9rem; }
.section-title .more-link:hover { text-decoration: underline; }

/* Cards Grid */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }

/* Card */
.card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); display: flex; flex-direction: column; }
.card:hover { border-color: var(--border-light); transform: translateY(-4px); box-shadow: var(--shadow-lg), var(--glow); }
.card-img { height: 180px; background: linear-gradient(135deg, #1a1a3e 0%, #16213e 100%); display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; }
.card-img .card-badge { position: absolute; top: 12px; left: 12px; padding: 4px 14px; border-radius: 14px; font-size: 0.75rem; font-weight: 700; }
.badge-new { background: var(--accent); color: #0f0f1a; }
.badge-hot { background: var(--danger); color: #fff; }
.badge-guide { background: var(--primary); color: #fff; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 0.78rem; color: var(--primary-light); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.4; }
.card-body h3 a:hover { color: var(--accent); }
.card-body p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

/* Two Column */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Sidebar */
.sidebar-widget { background: var(--bg-card); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; border: 1px solid var(--border); }
.sidebar-widget h3 { font-size: 1.05rem; color: #fff; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 6px 14px; background: var(--bg-surface); border-radius: 16px; font-size: 0.8rem; color: var(--text-secondary); transition: var(--transition); border: 1px solid transparent; }
.tag:hover, .tag.active { background: rgba(108,92,231,0.2); color: var(--primary-light); border-color: rgba(108,92,231,0.3); }

/* News List */
.news-list .news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); transition: var(--transition); }
.news-list .news-item:hover { padding-left: 6px; }
.news-date { min-width: 56px; text-align: center; background: var(--bg-surface); border-radius: var(--radius-sm); padding: 8px 6px; font-weight: 700; color: var(--accent); font-size: 0.82rem; line-height: 1.3; }
.news-date span { display: block; font-size: 1.2rem; color: var(--gold); }
.news-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.news-info h4 a:hover { color: var(--accent); }
.news-info .news-meta { font-size: 0.78rem; color: var(--text-muted); }

/* Page Header */
.page-header {
  background: linear-gradient(170deg, #1a1040 0%, #0d1b3e 60%, #0f0f1a 100%);
  padding: 52px 24px; text-align: center; border-bottom: 1px solid var(--border);
}
.page-header .breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 10px; }
.page-header .breadcrumb a { color: var(--text-secondary); }
.page-header .breadcrumb a:hover { color: var(--accent); }
.page-header h1 { font-size: 2rem; color: #fff; margin-bottom: 12px; }
.page-header .meta { font-size: 0.9rem; color: var(--text-muted); }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn { padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; transition: var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Search Box */
.search-box { display: flex; max-width: 480px; margin-bottom: 28px; }
.search-box input { flex: 1; padding: 12px 20px; border: 2px solid var(--border); border-radius: 28px 0 0 28px; background: var(--bg-card); color: #fff; font-size: 0.95rem; outline: none; font-family: inherit; }
.search-box input:focus { border-color: var(--primary); }
.search-box input::placeholder { color: var(--text-muted); }
.search-box button { padding: 12px 24px; background: var(--primary); color: #fff; border-radius: 0 28px 28px 0; font-size: 0.95rem; font-weight: 600; }

/* Guide Body */
.guide-body { max-width: 800px; margin: 40px auto; padding: 0 24px; }
.guide-body h2 { font-size: 1.4rem; color: #fff; margin: 36px 0 14px; }
.guide-body h3 { font-size: 1.1rem; color: var(--text); margin: 24px 0 10px; }
.guide-body p { margin-bottom: 16px; color: var(--text-secondary); line-height: 1.8; }
.guide-body blockquote { border-left: 4px solid var(--accent); background: rgba(0,206,201,0.06); padding: 16px 20px; margin: 22px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--accent); }
.guide-body ul, .guide-body ol { margin: 12px 0 12px 24px; }
.guide-body li { margin-bottom: 8px; color: var(--text-secondary); }
.guide-body ul li::before { content: '◆ '; color: var(--accent); font-size: 0.6rem; }
.guide-body table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 20px 0; }
.guide-body th { background: var(--primary); color: #fff; padding: 10px 14px; text-align: left; }
.guide-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.guide-body tr:nth-child(even) td { background: rgba(255,255,255,0.02); }

/* Tier List */
.tier-row { display: flex; align-items: stretch; margin-bottom: 6px; border-radius: var(--radius-sm); overflow: hidden; }
.tier-label { min-width: 64px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: #fff; }
.tier-s { background: #e17055; }
.tier-a { background: #fdcb6e; color: #0f0f1a; }
.tier-b { background: #00b894; }
.tier-c { background: #6c5ce7; }
.tier-d { background: #636e72; }
.tier-pets { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 18px; background: var(--bg-card); flex: 1; border: 1px solid var(--border); border-left: none; }
.tier-pet { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; padding: 8px 10px; border-radius: var(--radius-sm); transition: var(--transition); }
.tier-pet:hover { background: var(--bg-surface); }
.tier-pet .tier-icon { font-size: 2rem; }
.tier-pet .tier-name { font-size: 0.75rem; color: var(--text-secondary); text-align: center; }

/* Pet Card */
.pet-card { background: var(--bg-card); border-radius: var(--radius); text-align: center; padding: 26px 18px; border: 1px solid var(--border); transition: var(--transition); cursor: pointer; }
.pet-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--glow); }
.pet-card .pet-icon { font-size: 3.8rem; margin-bottom: 10px; }
.pet-card .pet-no { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; }
.pet-card h3 { font-size: 1rem; margin-bottom: 8px; color: #fff; }
.pet-card .pet-types { display: flex; gap: 5px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.type-badge { padding: 3px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; color: #fff; }
.type-fire { background: #e74c3c; }
.type-water { background: #3498db; }
.type-grass { background: #27ae60; }
.type-electric { background: #f39c12; }
.type-ice { background: #74b9ff; color: #0f0f1a; }
.type-dragon { background: #6c5ce7; }
.type-dark { background: #2d3436; }
.type-ghost { background: #a29bfe; }
.type-fairy { background: #fd79a8; }
.type-fighting { background: #d63031; }
.type-poison { background: #8e44ad; }
.type-ground { background: #cd853f; }
.type-flying { background: #a1c4fd; color: #0f0f1a; }
.type-rock { background: #8d6e63; }
.type-bug { background: #7cb342; }
.type-psychic { background: #e056a0; }
.type-steel { background: #95a5a6; }
.type-normal { background: #b2bec3; color: #0f0f1a; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 0.9rem; font-weight: 500; transition: var(--transition); }
.pagination button:hover, .pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.75); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.modal-content { background: var(--bg-card); border-radius: var(--radius); max-width: 620px; width: 92%; max-height: 85vh; overflow-y: auto; padding: 36px; position: relative; border: 1px solid var(--border); }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; color: var(--text-muted); font-size: 1.5rem; line-height: 1; transition: var(--transition); }
.modal-close:hover { color: #fff; }

/* Footer */
.footer { background: #0a0a16; border-top: 1px solid var(--border); padding: 48px 24px 24px; margin-top: 64px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px; }
.footer-col h4 { color: #fff; margin-bottom: 16px; font-size: 0.95rem; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: var(--text-muted); font-size: 0.82rem; }
.footer-bottom { max-width: 1240px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--border); text-align: center; font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-disclaimer { max-width: 1240px; margin: 12px auto 0; text-align: center; font-size: 0.72rem; color: rgba(255,255,255,0.2); }

/* Responsive */
@media (max-width: 768px) {
  .nav-links a { padding: 6px 10px; font-size: 0.8rem; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; }
  .guide-body { padding: 0 16px; }
  .tier-label { min-width: 44px; font-size: 1rem; }
}
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
