/* RF ONLINE NEXT Strategy Guide - Shared Styles */

@font-face {
  font-family: 'Tektur';
  src: url('../_shared/fonts/Tektur-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Tektur';
  src: url('../_shared/fonts/Tektur-Medium.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'WorkSans';
  src: url('../_shared/fonts/WorkSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'WorkSans';
  src: url('../_shared/fonts/WorkSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #0a0a12;
  --bg2: #141420;
  --bg3: #1a1a2e;
  --ink: #e8e8f0;
  --muted: #8888a0;
  --rule: #2a2a40;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --gold: #ffb800;
  --gradient-hero: linear-gradient(135deg, #0a0a12 0%, #0d1b2a 40%, #1b0a2e 100%);
  --gradient-card: linear-gradient(180deg, rgba(20,20,40,0.9) 0%, rgba(10,10,18,0.95) 100%);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 30px rgba(0,212,255,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 1200px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'WorkSans', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,18,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.navbar .nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo span { color: var(--ink); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(0,212,255,0.08);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Language Toggle ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 1rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--rule);
  color: var(--muted);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.03em;
}

.lang-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.lang-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }
.lang-btn.active { background: var(--accent); color: #0a0a12; border-color: var(--accent); }
.lang-divider { display: none; }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,18,0.7) 0%, rgba(10,10,18,0.4) 50%, rgba(10,10,18,0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-content h1 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #0098cc);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0,212,255,0.5);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.btn-outline:hover {
  background: var(--accent);
  color: #0a0a12;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #e69900);
  color: #1a1a00;
  box-shadow: 0 4px 16px rgba(255,184,0,0.3);
}

.btn-gold:hover {
  box-shadow: 0 6px 24px rgba(255,184,0,0.5);
  transform: translateY(-2px);
}

/* ===== Page Header (inner pages) ===== */
.page-header {
  position: relative;
  width: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: var(--nav-height);
}

.page-header .hero-bg img { filter: brightness(0.45); }

.page-header .hero-content h1 { font-size: 2.4rem; }

/* ===== Sections ===== */
.section {
  padding: 4rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img { transform: scale(1.05); }

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.card-body p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-body .card-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ===== Info Cards (with icon area) ===== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.info-card .icon-area {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(167,139,250,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.info-card .icon-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.info-card h3 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ===== Feature Row ===== */
.feature-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-bottom: 3rem;
}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-img {
  flex: 1;
  min-width: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.feature-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.feature-text ul {
  list-style: none;
  padding: 0;
}

.feature-text ul li {
  padding: 0.5rem 0;
  color: var(--muted);
  position: relative;
  padding-left: 1.5rem;
}

.feature-text ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ===== Table ===== */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--bg3);
  color: var(--accent);
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem;
  text-align: left;
  border-bottom: 2px solid var(--rule);
}

tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
}

tbody tr:hover { background: rgba(0,212,255,0.03); }

tbody tr:last-child td { border-bottom: none; }

/* ===== Highlight Box ===== */
.highlight-box {
  background: var(--gradient-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
}

.highlight-box.warning {
  border-left-color: var(--accent2);
}

.highlight-box.gold {
  border-left-color: var(--gold);
}

.highlight-box h3 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.highlight-box p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 1rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb span { margin: 0 0.5rem; }

/* ===== Footer ===== */
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--rule);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: left;
}

.footer-col h4 {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10,10,18,0.98);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
  }

  .nav-links.show { display: flex; }

  .menu-toggle { display: block; }

  .hero-content h1 { font-size: 2rem; }
  .page-header .hero-content h1 { font-size: 1.6rem; }
  .hero { min-height: 380px; }
  .page-header { min-height: 240px; }

  .feature-row {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .section { padding: 2.5rem 1rem; }

  .cards-grid { grid-template-columns: 1fr; }
}

/* ===== Animation ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  padding: 2rem;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: 'Tektur', 'Microsoft YaHei', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ===== Tier List ===== */
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tier-row {
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
}

.tier-label {
  width: 50px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 0.5rem;
  flex-shrink: 0;
}

.tier-s { background: #ff4444; color: #fff; }
.tier-a { background: #ff8c00; color: #fff; }
.tier-b { background: #ffb800; color: #1a1a00; }
.tier-c { background: #44aa44; color: #fff; }

.tier-content {
  flex: 1;
  background: var(--bg2);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.tier-content span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ===== Tips List ===== */
.tips-list {
  list-style: none;
  counter-reset: tip-counter;
}

.tips-list li {
  counter-increment: tip-counter;
  padding: 1rem 1rem 1rem 3rem;
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.tips-list li::before {
  content: counter(tip-counter);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent), #0098cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
}