/* ===== 基础 ===== */
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #f6f8fb;
  color: #111;
  transition: background .3s, color .3s;
}

.dark-theme {
  background: #181820;
  color: #e6e6eb;
}

h1, h2 {
  margin-bottom: 0.8rem;
}

.section {
  max-width: 1100px;
  margin: auto;
  padding: 2.2rem 1.2rem;
}

/* ===== 顶栏 ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.92),
    rgba(235,242,255,0.92)
  );
  border-bottom: 1px solid #ddd;
}

.dark-theme .topbar {
  background: linear-gradient(
    to right,
    rgba(24,24,32,0.95),
    rgba(32,32,48,0.95)
  );
  border-color: #333;
}

.topbar-inner {
  max-width: 1200px;
  margin: auto;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b3c5d;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(0,120,255,0.25);
}

.dark-theme .logo {
  color: #66cfff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.dark-theme .nav {
  background: rgba(255,255,255,0.06);
}

/* 导航整体 */
.nav {
  display: flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.04);
}

/* 导航按钮 */
.nav a {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.95rem;
  transition: background .2s, color .2s;
}

.nav a:hover {
  background: rgba(0,120,255,0.18);
  color: #0078ff;
}

.nav-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
  background: transparent;
  /* background: rgba(0,120,255,0.15); */
  /* color: #0078ff; */
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.nav-btn:hover {
  color: #0078ff;
  background: rgba(0,120,255,0.25);
  transform: translateY(-1px);
}

/* ===== 主题切换按钮 ===== */
.theme-switch {
  margin-left: 0.6rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,120,255,0.15);
  color: #0078ff;
  cursor: pointer;
  transition: transform .15s, background .2s;
}

.theme-switch:hover {
  transform: rotate(10deg);
  background: rgba(0,120,255,0.25);
}

.hero {
  position: relative;
  min-height: 80vh;
  background:
    url("/pictures/Survivalcraft-Dawnlight.png") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* 白色渐变遮挡层 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #f6f8fb2c,
    #f6f8fb42,
    #f6f8fbb5,
    #f6f8fb
  );
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  color: #111;
}

.dark-theme .hero::before {
  background: linear-gradient(
    to bottom,
    rgba(24,24,32,0.2),
    rgba(24,24,32,0.7),
    rgba(24,24,32,0.95)
  );
}

.dark-theme .hero-inner {
  color: #fff;
}


.hero-inner h1 {
  font-size: 2.6rem;
}

/* ===== 按钮 ===== */
.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin: 0.4rem;
  display: inline-block;
}

.btn.primary {
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  color: #fff;
}

.btn.primary:hover {
  box-shadow: 0 10px 26px rgba(0,120,255,0.5);
}

.btn.outline {
  border: 2px solid #0078ff;
  color: #0078ff;
}

/* ===== 内容容器 ===== */
.content-box {
  background: rgba(255,255,255,0.85);
  border: 1px solid #e0e6ed;
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
  margin: 1.2rem 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.dark-theme .content-box {
  background: rgba(32,32,44,0.85);
  border-color: #2f3440;
}


/* ===== 强调 ===== */
.keyword {
  color: #0078ff;
  font-weight: 600;
  background: rgba(0,120,255,0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}




.showcase {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1.6rem;
}

/* 公共图片卡片 */
.showcase img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

/* 左小 + 右大 */
.showcase-overlap {
  position: relative;
  height: 260px;
}

.showcase-overlap .img-large {
  height: 100%;
  object-fit: cover;
}

.showcase-overlap .img-small {
  position: absolute;
  width: 38%;
  left: -20px;
  bottom: -20px;
  border-radius: 12px;
  z-index: 2;
}

/* 单图 */
.showcase-single img {
  height: 320px;
  object-fit: cover;
}

/* 双图 */
.showcase-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.showcase-pair img {
  height: 220px;
  object-fit: cover;
}








/* ===== 行内分点 ===== */
.inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.inline-point {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(0,120,255,0.08);
}

/* ===== 版本 ===== */
.version-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.download-btn {
  background: #0078ff;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.download-btn:hover {
  background: #005fcc;
  box-shadow: 0 6px 16px rgba(0,120,255,0.45);
}

/* ===== 子块 ===== */
.sub-block {
  border-left: 4px solid #0078ff;
  background: rgba(0,120,255,0.05);
  padding: 0.6rem 0.9rem;
  margin: 0.7rem 0;
  border-radius: 6px;
}


/* 代码块 */
pre {
  background: rgba(0,0,0,0.85);
  color: #e6e6eb;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  overflow-x: auto;
  margin: 0.6rem 0;
  font-size: 0.9rem;
}

/* 外部链接 */
.ext-link {
  margin-left: 0.4rem;
  color: #0078ff;
  font-weight: 600;
  text-decoration: none;
}

.ext-link:hover {
  text-decoration: underline;
}

/* 下拉框 */
.install-more {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(0,120,255,0.06);
}

.install-more summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 0.6rem;
}


/* ===== 动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
  opacity: 0.8;
}








/* .team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.2rem;
} */

/* .team-grid.fixed-5 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.4rem;
  padding: 0 2rem; 
}

.team-grid.fixed-5 .team-card:nth-child(1),
.team-grid.fixed-5 .team-card:nth-child(2) {
  grid-column: span 3;
}

.team-grid.fixed-5 .team-card:nth-child(n+3) {
  grid-column: span 2;
}

.team-card {
  min-height: 220px;
} */

.team-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* 公共行样式 */
.team-row {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  padding: 0 2rem; /* 左右留白 */
}

/* 控制整体宽度（关键） */
.team-row.row-2 {
  max-width: 520px;
  margin: 0 auto;
}

.team-row.row-3 {
  max-width: 720px;
  margin: 0 auto;
}

/* 卡片统一尺寸 */
.team-card {
  width: 220px;
  flex-shrink: 0;
}


.team-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid #e0e6ed;
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
  transition: transform .25s, box-shadow .25s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,120,255,0.25);
}

.dark-theme .team-card {
  background: rgba(32,32,44,0.9);
  border-color: #2f3440;
}

.avatar {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.6rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #0078ff, #00c6ff);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}



















/* Window */
/* ===== 遮罩层 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* ===== 弹窗主体 ===== */
.modal {
  width: 90%;
  max-width: 700px;
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 1.8rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  animation: modalPop .25s ease;
}

.dark-theme .modal {
  background: rgba(32,32,44,0.95);
}

/* 弹窗动画 */
@keyframes modalPop {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Header */
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  border: none;
  background: none;
  font-size: 1.3rem;
  cursor: pointer;
}

/* 展开按钮 */
.expand-btn {
  margin: 1.2rem 0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: none;
  background: #0078ff;
  color: #fff;
  cursor: pointer;
}

/* 默认隐藏列表 */
.mods-list {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
}

/* 模组条目 */
.mod-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: rgba(0,120,255,0.08);
  font-size: 0.9rem;
}
