/* 每日大赛 DAILY PAGEANT - Official Stylesheet */
/* Black-Gold Stage Visual System */

:root {
  --bg-main: #050505;
  --bg-deep: #090909;
  --bg-content: #10100F;
  --bg-secondary: #171611;
  --bg-hover: #201E18;
  --title: #FFF9E9;
  --text: #E5DDCA;
  --text-secondary: #AAA18D;
  --text-muted: #7C7467;
  --gold: #D6AE55;
  --gold-highlight: #F4D77F;
  --gold-light: #FFE7A4;
  --gold-deep: #9C722A;
  --gold-dark: #5D4116;
  --border: rgba(214,174,85,0.18);
  --border-focus: rgba(244,215,127,0.48);
  --shadow: 0 18px 50px rgba(0,0,0,0.48);
  --gold-glow: 0 18px 48px rgba(214,174,85,0.18);
  --footer-bg: #030303;
  --max-width: 1320px;
  --nav-height: 76px;
  --radius: 6px;
  --radius-sm: 2px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a:hover {
  color: var(--gold-highlight);
}

a:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--title);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  margin-bottom: 0.8rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.gold {
  color: var(--gold);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
}

/* ========== Header & Navigation ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gold);
  transition: border-color 0.2s, background 0.2s;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 36px;
  width: auto;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--title);
  letter-spacing: 0.06em;
}

.logo-text span {
  display: block;
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
  padding: 0 20px;
}

.desktop-nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 8px 14px;
  position: relative;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.desktop-nav a:hover {
  color: var(--title);
}

.desktop-nav a.active {
  color: var(--title);
  border-bottom-color: var(--gold);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--gold);
}

.search-btn:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: linear-gradient(135deg, #FFE7A4 0%, #D6AE55 50%, #90651C 100%);
  color: #181107;
  font-weight: 600;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--gold-glow);
  text-decoration: none;
  min-height: 44px;
}

.btn-primary:hover {
  opacity: 0.92;
  color: #181107;
  transform: translateY(-1px);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 3px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border: 1px solid var(--border-focus);
  color: var(--gold-light);
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  min-height: 44px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-outline:hover {
  background: var(--bg-hover);
  border-color: var(--gold);
  color: var(--title);
}

/* Mobile header adjustments */
.mobile-participate {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .search-btn {
    display: none;
  }
  .header-right .btn-primary {
    display: none;
  }
  .mobile-participate {
    display: inline-flex;
    padding: 8px 14px;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
}

/* ========== Side Menu Panel ========== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1100;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.menu-overlay.open {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
}

.side-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(460px, 88vw);
  background: var(--bg-deep);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.side-menu.open {
  transform: translateX(0);
}

.side-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.side-menu-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-menu-brand img {
  height: 32px;
}

.side-menu-brand-text strong {
  display: block;
  color: var(--title);
  font-size: 1.05rem;
}

.side-menu-brand-text span {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}

.menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gold);
  cursor: pointer;
}

.menu-close:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
}

.side-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0 40px;
  -webkit-overflow-scrolling: touch;
}

.menu-group {
  padding: 12px 22px 8px;
}

.menu-group-title {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-left: 4px;
}

.menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 2px;
  transition: background 0.2s;
}

.menu-link:hover {
  background: var(--bg-hover);
}

.menu-link-name {
  display: block;
  color: var(--title);
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.menu-link-desc {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
}

body.menu-open {
  overflow: hidden;
}

/* ========== Mobile Bottom Nav ========== */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(3, 3, 3, 0.97);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}

.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  color: var(--text-muted);
  font-size: 0.7rem;
  gap: 2px;
  padding: 4px 8px;
}

.mobile-bottom-nav a.active {
  color: var(--gold);
}

.mobile-bottom-nav a svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1024px) {
  .mobile-bottom-nav {
    display: flex;
  }
  body {
    padding-bottom: 64px;
  }
}

/* ========== Main Content ========== */
main {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--border);
}

.page-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 20px 40px;
}

.page-hero h1 {
  margin-bottom: 0.6rem;
}

.page-hero .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  line-height: 1.75;
}

.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-content);
}

.section-title {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-intro {
  color: var(--text-secondary);
  max-width: 780px;
  margin-bottom: 2rem;
  font-size: 1.02rem;
}

/* Cards & Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--border-focus);
  background: var(--bg-hover);
  box-shadow: var(--shadow);
}

.card-title {
  color: var(--title);
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--gold-light);
  border-bottom: 1px solid transparent;
}

.card-link:hover {
  border-bottom-color: var(--gold);
}

/* Index specific */
.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-banner img {
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: cover;
  object-position: center top;
}

.hero-info-bar {
  background: linear-gradient(180deg, #0a0907 0%, #050505 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.hero-info-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-info-left {
  flex: 1;
  min-width: 280px;
  max-width: 720px;
}

.hero-brand {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}

.hero-info-left h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: 12px;
}

.hero-info-left p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-keywords {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.hero-keywords span {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}

.hero-keywords span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

/* Index track strip */
.track-strip {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  background: var(--bg-content);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.track-strip a {
  flex-shrink: 0;
  padding: 14px 22px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  position: relative;
}

.track-strip a:hover {
  color: var(--title);
}

.track-strip a.active {
  color: var(--title);
  border-bottom-color: var(--gold);
}

.track-strip a.active::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}

/* Focus + news layout */
.editorial-focus {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 900px) {
  .editorial-focus {
    grid-template-columns: 1fr;
  }
}

.focus-main {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.focus-main h2 {
  font-size: 1.55rem;
  margin-bottom: 1rem;
}

.focus-main p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.news-item:hover {
  border-color: var(--border-focus);
}

.news-item h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.news-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.news-item a {
  font-size: 0.88rem;
}

/* Stage steps / roadmap */
.stage-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  counter-reset: step;
}

.stage-step {
  flex: 1;
  min-width: 160px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  border-right: none;
  background: var(--bg-secondary);
  position: relative;
}

.stage-step:last-child {
  border-right: 1px solid var(--border);
}

.stage-step-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.stage-step h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.stage-step p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .stage-steps {
    flex-direction: column;
  }
  .stage-step {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
  .stage-step:last-child {
    border-bottom: 1px solid var(--border);
  }
}

/* Criteria numbers */
.criteria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .criteria-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .criteria-grid {
    grid-template-columns: 1fr;
  }
}

.criteria-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  padding: 28px 22px;
  border-radius: var(--radius);
}

.criteria-num {
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

/* Status bars */
.status-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  gap: 16px;
  flex-wrap: wrap;
}

.status-label {
  color: var(--title);
  font-weight: 500;
}

.status-badge {
  font-size: 0.82rem;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 2px;
}

/* Archive placeholders */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.archive-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
}

.archive-num {
  font-size: 1.6rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.archive-card h3 {
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.archive-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Fashion / magazine style */
.magazine-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
  align-items: center;
}

.magazine-row.reverse {
  direction: rtl;
}

.magazine-row.reverse > * {
  direction: ltr;
}

@media (max-width: 800px) {
  .magazine-row,
  .magazine-row.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* Challenge numbers */
.challenge-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.challenge-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  align-items: start;
}

.challenge-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-dark);
  line-height: 1;
}

@media (max-width: 560px) {
  .challenge-item {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list details {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-list summary {
  padding: 16px 20px;
  cursor: pointer;
  color: var(--title);
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--gold);
  font-size: 1.2rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Participate box */
.participate-box {
  background: var(--bg-deep);
  border: 1px solid var(--border-focus);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.participate-box h2 {
  margin-bottom: 1rem;
}

.participate-box p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 14px;
}

.footer-brand strong {
  display: block;
  color: var(--title);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.footer-brand .en {
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  flex: 2;
}

.footer-col h4 {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 5px 0;
}

.footer-col a:hover {
  color: var(--title);
}

.footer-notice {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 900px;
  margin-bottom: 24px;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* Utility */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Content images */
.content-img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 1.2rem 0;
}

.img-placeholder {
  background: var(--bg-secondary);
  border: 1px dashed var(--border);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: var(--radius);
}

/* Page specific spacing */
.page-content {
  padding-bottom: 40px;
}

/* Handbook chapters */
.chapter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.chapter-nav a {
  font-size: 0.88rem;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.chapter-nav a:hover {
  border-color: var(--gold);
  color: var(--title);
}

/* Results board */
.result-board {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.result-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.result-status span {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 0.88rem;
  color: var(--gold);
  border-radius: 2px;
}

/* Studio magazine */
.studio-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

@media (max-width: 800px) {
  .studio-feature {
    grid-template-columns: 1fr;
  }
}

/* Protection checklist */
.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* About values */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 700px) {
  .value-grid {
    grid-template-columns: 1fr;
  }
}

.value-item {
  padding: 24px;
  background: var(--bg-secondary);
  border-left: 3px solid var(--gold-deep);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Search panel (simple) */
.search-panel {
  display: none;
  position: absolute;
  top: 100%;
  right: 20px;
  width: min(360px, 90vw);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  z-index: 1050;
  box-shadow: var(--shadow);
}

.search-panel.open {
  display: block;
}

.search-panel input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-content);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--title);
  font-size: 0.95rem;
}

.search-panel input:focus {
  outline: none;
  border-color: var(--border-focus);
}

.search-panel p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 0;
}

/* Ensure no horizontal scroll */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Focus visible for accessibility */
:focus-visible {
  outline: 2px solid var(--gold-highlight);
  outline-offset: 3px;
}

button:focus:not(:focus-visible) {
  outline: none;
}
