/* 全局变量：统一暗色调配色 */
:root {
  --bg: #0b1016;
  --bg-2: #121a24;
  --panel: #151f2b;
  --panel-border: #283548;
  --text: #e6edf6;
  --muted: #a7b4c6;
  --accent: #37c37b;
  --accent-2: #ef4444;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, "Noto Naskh Arabic", "Microsoft JhengHei", sans-serif;
  background: radial-gradient(circle at 10% 0%, #1a2431 0, var(--bg) 45%), var(--bg);
  color: var(--text);
  line-height: 1.85;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--panel-border);
  background: rgba(10, 15, 22, 0.86);
  backdrop-filter: blur(6px);
}

.brand {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

.lang-btn {
  border: 1px solid #3a4d65;
  border-radius: 999px;
  padding: 8px 14px;
  background: #1c2938;
  color: #e9f1ff;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover {
  background: #27394f;
}

.container {
  width: min(1100px, 94vw);
  margin: 18px auto 36px;
}

.hero {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.flag {
  display: block;
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 9, 14, 0.78), rgba(6, 9, 14, 0.1));
}

.hero-content {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 24px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(36px, 8vw, 78px);
  line-height: 1.05;
}

.hero-content p {
  margin: 10px 0 0;
  font-size: clamp(15px, 2.4vw, 22px);
  color: #f1f5fc;
}

.card {
  background: linear-gradient(180deg, #172231 0%, #141c29 100%);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
  padding: 18px 20px;
  margin-bottom: 14px;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.card p,
.card li {
  color: var(--text);
}

.card ul {
  margin: 8px 0 0;
  padding-inline-start: 22px;
}

.anthem-btn {
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--accent), #2da368);
  color: #082012;
  font-weight: 700;
  cursor: pointer;
}

.anthem-btn:hover {
  filter: brightness(1.05);
}

.lang-zh {
  display: none;
}

body.lang-zh {
  direction: ltr;
}

body.lang-zh .lang-fa {
  display: none !important;
}

body.lang-zh .lang-zh {
  display: block;
}

@media (max-width: 768px) {
  .flag {
    min-height: 250px;
  }

  .card h2 {
    font-size: 24px;
  }
}