/* ===================== GLOBAL LAYOUT (shared) ===================== */
:root{
  --bg:#0f0c08;
  --panel: rgba(255,255,255,0.05);
  --text:#f2f2f2;
  --muted: rgba(255,255,255,0.72);
  --gold:#dcb361;
  --line: rgba(255,255,255,0.10);
}

body{
  background: var(--bg);
  color: var(--text);
}

/* Container + section */
.container{ width:min(1120px, 92%); margin:0 auto; }
.section{ padding: 56px 0; }
.panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

/* ===================== NAVBAR (Unified) ===================== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-top--grid{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 14px 26px;
}

.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.brand-logo{ height: 34px; width: auto; display:block; }
.brand-text{ font-size: 18px; letter-spacing: .04em; }

.nav-links{
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.nav-links a{
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
}

.nav-links a:hover{ background: rgba(255,255,255,0.10); }
.nav-links a.active{
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* flags */
.lang-flags{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
}

.lang-flags .flag-btn{
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(220,179,97,0.35);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 32px;
  line-height: 0;
}

.lang-flags .flag-btn:hover{
  transform: translateY(-1px) scale(1.10);
  border-color: rgba(220,179,97,0.75);
}

.lang-flags .flag-btn.active{
  border-color: rgba(220,179,97,0.95);
  box-shadow: 0 0 0 3px rgba(220,179,97,0.22);
}

.lang-flags .flag-img{
  width: 32px;
  height: 32px;
  object-fit: cover;
  display: block;
  border-radius: 999px;
}

/* old select keep hidden */
.lang--hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

/* Mobile */
.nav-controls{
  display: none;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
@media (max-width: 900px){
  .nav-desktop{ display:none; }
  .nav-controls{ display:block; }
  .nav-top--grid{ padding: 12px 14px; gap: 12px; }
  .brand-logo{ height: 30px; }
  .brand-text{ font-size: 16px; }
  .lang-flags .flag-btn, .lang-flags .flag-img{ width: 28px; height: 28px; flex: 0 0 28px; }
}
@media (max-width: 480px){
  .brand-text{ display:none; }
}

/* ===================== PAGE HERO (统一每页标题区域) ===================== */
.page-hero{
  padding: 44px 0 18px;
}
.page-title{
  font-size: clamp(26px, 3.2vw, 40px);
  color: rgba(220,179,97,0.95);
  letter-spacing: .08em;
}
.page-subtitle{
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 820px;
}

/* ===================== FOOTER (统一) ===================== */
.footer{
  background: rgba(0,0,0,0.55);
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  padding: 56px 20px 22px;
}
.footer .container{ width:min(1120px, 92%); }
