﻿/* ============================================================
   边境远征合约生存服 — 官网样式表
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.7;
  color: #1e1e1e;
  background: #f7f7f5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Colors ---------- */
:root {
  --green: #2f6f3e;
  --green-light: #488f5a;
  --green-pale: #e8f3ea;
  --green-dark: #1d4a28;
  --blue: #1f4e79;
  --blue-light: #3a7ab5;
  --blue-pale: #e6eef7;
  --brown: #8b4513;
  --brown-light: #a0622e;
  --gold: #b8860b;
  --gold-light: #daa520;
  --gray: #6b7280;
  --gray-light: #e5e7eb;
  --gray-dark: #1f2937;
  --bg-dark: #1a2530;
  --bg-card: #ffffff;
  --text: #1e1e1e;
  --text-light: #4b5563;
  --border: #d1d5db;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.10);
  --transition: 0.25s ease;
}

::selection { background: var(--green); color: #fff; }

img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,37,48,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.nav-logo:hover { color: var(--gold-light); }
.logo-icon { flex-shrink: 0; }
.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
}
.nav-links a {
  color: rgba(255,255,255,0.75);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.10);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 800px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(26,37,48,0.97);
    flex-direction: column;
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.nav-open { display: flex; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, #0b1a2e 0%, #1f3a5f 40%, #2a4a3a 70%, #1a2f1e 100%);
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(100,180,120,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(60,120,200,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(20,40,30,0.5) 0%, transparent 80%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.35) 0%, transparent 40%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 20px 80px;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-sub {
  font-size: clamp(16px, 2.5vw, 22px);
  color: rgba(255,255,255,0.8);
  margin-top: 16px;
  font-weight: 300;
  letter-spacing: 1px;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.hero-tags .tag {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.85);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: fadeInUp 1s ease 0.5s both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Hero IP Card & Copy ---------- */
.hero-ip-card {
  margin: 28px auto 0;
  max-width: 380px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 22px 12px;
  text-align: left;
  transition: var(--transition);
}
.hero-ip-card:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.20); }
.hero-ip-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }
.hero-ip-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.hero-ip-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  cursor: pointer;
  user-select: all;
  flex: 1;
  transition: var(--transition);
}
.hero-ip-text:hover { opacity: 0.85; }
.hero-ip-hint { font-size: 11px; color: rgba(255,255,255,0.35); margin-top: 4px; }
.ip-copy-btn {
  position: relative;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: rgba(255,255,255,0.7);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.ip-copy-btn:hover { background: rgba(255,255,255,0.18); color: #fff; }
.ip-copy-btn.copied { background: var(--green); border-color: var(--green); color: #fff; }
.ip-copy-feedback {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ip-copy-feedback.show { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  border: 2px solid var(--green);
}
.btn-primary:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(47,111,62,0.30);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--bg-dark);
  color: #fff;
  border: none;
}
.btn-dark:hover {
  background: #243546;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,37,48,0.25);
}

/* ---------- Sections ---------- */
.section {
  padding: 80px 20px;
}
.section-dark {
  background: var(--bg-dark);
  color: #e5e7eb;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-desc { color: #9ca3af; }
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  color: var(--gray-dark);
  margin-bottom: 8px;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 14px auto 20px;
  border-radius: 3px;
}
.section-desc {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 16px;
  color: var(--text-light);
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 12px;
}
.about-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px 20px 28px;
  text-align: center;
  transition: var(--transition);
}
.section-dark .about-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.12);
}
.about-icon { margin-bottom: 16px; opacity: 0.85; }
.about-card h3 { font-size: 17px; margin-bottom: 8px; color: #e5e7eb; }
.about-card p { font-size: 14px; color: #9ca3af; line-height: 1.6; }

/* ---------- Features ---------- */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  gap: 20px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--green);
}
.feature-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.feature-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.feature-item h3 { font-size: 16px; margin-bottom: 4px; color: var(--gray-dark); }
.feature-item p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ---------- Core Loop ---------- */
.loop-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}
.loop-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  min-width: 160px;
  flex: 1 1 160px;
}
.step-num {
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 10px;
}
.loop-step h3 { font-size: 15px; color: #e5e7eb; margin-bottom: 4px; }
.loop-step p { font-size: 13px; color: #9ca3af; }
.loop-arrow { color: var(--green-light); flex-shrink: 0; }
@media (max-width: 700px) {
  .loop-arrow { transform: rotate(90deg); margin: 0; }
}

/* ---------- Worlds ---------- */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.world-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--green);
}
.world-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.world-card.world-resource { border-top-color: var(--brown); }
.world-card.world-event { border-top-color: #7c3aed; }
.world-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 2px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.world-badge-orange { background: var(--brown); }
.world-badge-purple { background: #7c3aed; }
.world-card h3 { font-size: 17px; margin-bottom: 6px; color: var(--gray-dark); }
.world-card p { font-size: 13px; color: var(--text-light); margin-bottom: 12px; }
.world-card ul { list-style: none; font-size: 13px; color: var(--text-light); }
.world-card ul li::before { content: '> '; color: var(--green); font-weight: bold; }

/* ---------- Expedition ---------- */
.exped-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}
.exped-tab {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px 20px;
  color: #9ca3af;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  transition: var(--transition);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.exped-tab:hover { background: rgba(255,255,255,0.08); color: #e5e7eb; }
.exped-tab.active { background: rgba(47,111,62,0.20); border-color: var(--green); color: #b3d9b3; }
.exped-tab-dot { width: 8px; height: 8px; border-radius: 50%; }
.exped-tab-dot.active-dot { background: #22c55e; }
.exped-tab-dot.completed-dot { background: var(--gold-light); }
.exped-tab-dot.upcoming-dot { background: #6b7280; }
.exped-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 32px;
  animation: fadeInUp 0.35s ease;
}
.exped-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.exped-card-title { font-size: 20px; color: var(--gold-light); font-weight: 600; }
.exped-card-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
}
.exped-status-active { background: rgba(34,197,94,0.15); color: #4ade80; border: 1px solid rgba(34,197,94,0.30); }
.exped-status-completed { background: rgba(218,165,32,0.15); color: var(--gold-light); border: 1px solid rgba(218,165,32,0.30); }
.exped-status-upcoming { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.30); }
.exped-card-desc { font-size: 14px; color: #9ca3af; line-height: 1.7; }
.phase-section-title { font-size: 16px; color: #e5e7eb; margin: 28px 0 16px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.phase-list { display: flex; flex-direction: column; gap: 10px; }
.phase-item {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  transition: var(--transition);
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}
.phase-item:hover { border-color: rgba(255,255,255,0.10); }
.phase-item.phase-active { border-left: 3px solid #22c55e; }
.phase-item.phase-completed { border-left: 3px solid var(--gold-light); opacity: 0.7; }
.phase-item.phase-locked { border-left: 3px solid #6b7280; opacity: 0.5; }
.phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: default;
}
.phase-num-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px;
  border-radius: 4px;
  font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.phase-num-badge.pbg-active { background: rgba(34,197,94,0.15); color: #4ade80; }
.phase-num-badge.pbg-completed { background: rgba(218,165,32,0.15); color: var(--gold-light); }
.phase-num-badge.pbg-locked { background: rgba(107,114,128,0.15); color: #9ca3af; }
.phase-name { font-weight: 600; font-size: 15px; color: #e5e7eb; flex: 1; }
.phase-status-tag {
  font-size: 12px; padding: 2px 10px; border-radius: 12px; white-space: nowrap;
}
.phase-status-tag.pst-active { background: rgba(34,197,94,0.12); color: #4ade80; }
.phase-status-tag.pst-completed { background: rgba(218,165,32,0.12); color: var(--gold-light); }
.phase-status-tag.pst-locked { background: rgba(107,114,128,0.12); color: #6b7280; }
.phase-body {
  padding: 0 18px 14px;
  margin-top: -4px;
}
.phase-body p { font-size: 13px; color: #9ca3af; margin: 4px 0; }
.phase-unlock-text { color: var(--gold-light) !important; font-weight: 500; margin-top: 6px !important; }
.phase-orders { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.order-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.order-name { color: #b3b3b3; min-width: 72px; }
.order-bar-wrapper { flex: 1; height: 6px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.order-bar-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.order-bar-fill.complete { background: var(--gold-light); }
.order-bar-fill.partial { background: #22c55e; }
.order-fraction { color: #9ca3af; min-width: 80px; text-align: right; font-size: 12px; }
.reward-section-title { font-size: 16px; color: #e5e7eb; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
.reward-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}
.reward-rank { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.reward-req { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.reward-prize { font-size: 13px; color: #b3d9b3; font-weight: 500; }

@media (max-width: 600px) {
  .exped-card { padding: 20px 16px; }
  .exped-card-header { flex-direction: column; }
  .phase-header { flex-wrap: wrap; }
  .reward-grid { grid-template-columns: 1fr 1fr; }
  .order-row { flex-wrap: wrap; }
}

/* ---------- Rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.rule-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 22px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  padding-left: 66px;
}
.rule-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.rule-card-num {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 32px;
  height: 32px;
  background: var(--green-pale);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.rule-card h3 { font-size: 15px; margin-bottom: 4px; color: var(--gray-dark); }
.rule-card p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* ---------- Commands ---------- */
.cmd-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 12px;
}
.cmd-group {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
}
.cmd-group h3 {
  font-size: 14px;
  color: var(--gold-light);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.cmd-row code {
  background: rgba(255,255,255,0.06);
  color: #b3d9b3;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: nowrap;
}
.cmd-row span { color: #9ca3af; font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray-dark);
  transition: var(--transition);
  font-family: inherit;
}
.faq-question:hover { background: #f9fafb; }
.faq-arrow {
  font-size: 20px;
  font-weight: 300;
  transition: var(--transition);
  color: var(--gray);
}
.faq-item.faq-open .faq-arrow { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.faq-open .faq-answer {
  max-height: 300px;
  padding: 0 20px 16px;
}
.faq-answer p { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.faq-answer code {
  background: var(--green-pale);
  color: var(--green-dark);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

/* ---------- CTA ---------- */
.section-cta {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1f3a5f 100%);
  text-align: center;
  color: #fff;
}
.section-cta h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; }
.section-cta p { margin-top: 12px; font-size: 16px; color: rgba(255,255,255,0.75); }
.cta-sub { color: rgba(255,255,255,0.5) !important; font-size: 14px !important; }
.cta-links { display: flex; gap: 14px; justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  background: #111820;
  color: #9ca3af;
  padding: 48px 20px 24px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer h4 { color: #e5e7eb; font-size: 15px; margin-bottom: 12px; }
.footer-about p { font-size: 13px; line-height: 1.7; }
.footer-links ul, .footer-rules ul { list-style: none; }
.footer-links li, .footer-rules li { margin-bottom: 6px; }
.footer-links a, .footer-rules a { color: #9ca3af; font-size: 13px; }
.footer-links a:hover, .footer-rules a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding-top: 20px; font-size: 13px; }

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .rules-grid { grid-template-columns: 1fr; }
  .cmd-groups { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }

/* ---------- Homepage Expedition Summary ---------- */
.home-exped-list { display: flex; flex-direction: column; gap: 16px; }
.home-exped-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: var(--transition);
}
.home-exped-item:hover { border-color: rgba(255,255,255,0.12); }
.home-exped-active { border-color: rgba(34,197,94,0.3); border-width: 2px; }
.home-exped-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.home-exped-title { font-size: 17px; font-weight: 600; color: var(--gold-light); flex: 1; }
.home-exped-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
}
.home-exped-desc { font-size: 14px; color: #9ca3af; line-height: 1.6; margin-bottom: 14px; }
.home-exped-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.home-exped-progress-bar { flex: 1; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.home-exped-progress-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #22c55e, var(--gold-light)); transition: width 1s ease; }
.home-exped-progress-text { font-size: 13px; color: #9ca3af; min-width: 80px; text-align: right; font-weight: 500; }
.home-exped-phases { display: flex; gap: 6px; align-items: center; }
.hphase-dot { width: 12px; height: 12px; border-radius: 50%; cursor: help; }
.hphase-dot-active { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.hphase-dot-completed { background: var(--gold-light); }
.hphase-dot-locked { background: #6b7280; opacity: 0.5; }




/* ---------- Commands Cards ---------- */
.cmd-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.cmd-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: var(--transition);
}
.cmd-card:hover { border-color: rgba(255,255,255,0.12); }
.cmd-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cmd-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 13px;
  gap: 8px;
}
.cmd-row code {
  background: rgba(255,255,255,0.06);
  color: #b3d9b3;
  padding: 2px 10px;
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cmd-row span { color: #9ca3af; text-align: right; flex-shrink: 0; }

@media (max-width: 820px) {
  .cmd-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .cmd-cards { grid-template-columns: 1fr; }
  .cmd-row { flex-wrap: wrap; }
  .cmd-row code { white-space: normal; word-break: break-all; }
}