:root {
  --g: #48c32d;
  --l: #9ef357;
  --g-glow: rgba(72, 195, 45, 0.4);
  --ink: #101915;
  --p: #f5f3ec;
  --card-bg: #ffffff;
  --m: #66736a;
  --line: #d8e0d4;
  --dark: #121c16;
  --dark-strip: #17241c;
  --dark-card: #1c2b21;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--p);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 导航栏 */
.nav {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5vw;
  background: rgba(16, 25, 21, 0.88);
  color: white;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s;
}

.brand {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.brand span,
.kicker {
  color: var(--l);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.navlinks a {
  position: relative;
  padding: 6px 2px;
  color: #d1ddd4;
  transition: color 0.2s;
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--l);
}

.navlinks a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--l);
  border-radius: 2px;
}

.menu {
  display: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Hero 主视觉区 - 各页面差异化 */
.hero,
.page-hero {
  position: relative;
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 首页 Hero: 唯美紫罗兰花海与热气球 */
.hero.hero-home {
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 130px 6vw 80px;
  background-image: linear-gradient(90deg, rgba(13, 24, 19, 0.92) 0%, rgba(13, 24, 19, 0.55) 60%, rgba(13, 24, 19, 0.3) 100%),
    url('picture/minecraft14.png');
}

/* 探索世界 Hero: 4K 电影级光追传送门 */
.page-hero.hero-world {
  padding: 160px 6vw 90px;
  background-image: linear-gradient(90deg, rgba(16, 25, 21, 0.9) 0%, rgba(16, 25, 21, 0.6) 100%),
    url('picture/minecraft17.png');
}

/* 玩法福利 Hero: 经典原版野外冒险与探矿 */
.page-hero.hero-play {
  padding: 160px 6vw 90px;
  background-image: linear-gradient(90deg, rgba(16, 25, 21, 0.9) 0%, rgba(16, 25, 21, 0.62) 100%),
    url('picture/minecraft12.png');
}

/* 新手指南 Hero: 附魔台与高级科技工具 */
.page-hero.hero-guide {
  padding: 160px 6vw 90px;
  background-image: linear-gradient(90deg, rgba(16, 25, 21, 0.92) 0%, rgba(16, 25, 21, 0.65) 100%),
    url('picture/minecraft10.jpg');
}

/* 玩家公约 Hero: 1.21 试炼大厅深邃石砖 */
.page-hero.hero-rules {
  padding: 160px 6vw 90px;
  background-image: linear-gradient(90deg, rgba(16, 25, 21, 0.93) 0%, rgba(16, 25, 21, 0.68) 100%),
    url('picture/minecraft2.jpg');
}

/* 加入我们 Hero: 欢快起舞的村民与玩家 */
.page-hero.hero-join {
  padding: 160px 6vw 90px;
  background-image: linear-gradient(90deg, rgba(16, 25, 21, 0.92) 0%, rgba(16, 25, 21, 0.65) 100%),
    url('picture/minecraft16.png');
}

.hero-inner {
  max-width: 860px;
}

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(38px, 6.5vw, 84px);
  line-height: 1.05;
  margin: 12px 0 20px;
  font-weight: 900;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.hero p,
.page-hero p {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 660px;
  color: #e4eee5;
  line-height: 1.7;
  margin-bottom: 24px;
}

/* 实时服务器状态徽章 */
.server-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 25, 21, 0.75);
  border: 1px solid rgba(184, 243, 106, 0.3);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: #e1f5d8;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.status-dot {
  width: 9px;
  height: 9px;
  background: #50e336;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #50e336;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px #50e336; }
  50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 12px #50e336; }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 4px #50e336; }
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  padding: 13px 24px;
  background: var(--g);
  color: #0b1a0d;
  font-weight: 800;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(72, 195, 45, 0.35);
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--l);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(72, 195, 45, 0.5);
}

.btn.alt {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn.alt:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
}

/* 内容板块 */
.section {
  padding: 80px 6vw;
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 16px;
}

.section h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin: 6px 0 0;
  letter-spacing: -0.01em;
}

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

/* 公告提示栏 (Notice Bar) */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #15241b;
  border: 1px solid rgba(184, 243, 106, 0.3);
  border-radius: 10px;
  padding: 14px 20px;
  color: #e5eee6;
  font-size: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.notice-badge {
  background: var(--g);
  color: #0b180e;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  flex-shrink: 0;
}

/* 指令卡片网格 (Command Grid) */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cmd-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border-color: #b5c7b3;
}

.cmd-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cmd-code {
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 700;
  font-size: 15px;
  color: #1f6e16;
  background: #edf7e9;
  padding: 4px 10px;
  border-radius: 6px;
  display: inline-block;
}

.cmd-tag {
  font-size: 12px;
  color: var(--m);
  font-weight: 600;
}

.cmd-desc {
  margin: 0;
  font-size: 13px;
  color: #556259;
  line-height: 1.5;
}

/* 核心坐标卡片 (Coordinate Grid) */
.coord-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.coord-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s ease;
}

.coord-card:hover {
  transform: translateY(-3px);
}

.coord-card h4 {
  margin: 0 0 6px;
  font-size: 17px;
}

.coord-card p {
  margin: 0 0 12px;
  font-size: 13px;
}

.coord-pos {
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 700;
  color: var(--l);
  background: #111a14;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  font-size: 13px;
}

/* 守则与 Mod 政策表格 (Mod Table) */
.policy-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.policy-table th,
.policy-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.policy-table th {
  background: #f8faf6;
  font-weight: 800;
  color: var(--ink);
}

.tag-allow {
  display: inline-block;
  background: #e7f7e2;
  color: #247718;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
}

.tag-ban {
  display: inline-block;
  background: #fee7e7;
  color: #b71c1c;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
}

/* 卡片网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: #b5c7b3;
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.card:hover .card-img {
  transform: scale(1.04);
}

.card-img-wrap {
  overflow: hidden;
  position: relative;
}

.card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #2b7a1e;
  background: #e8f8dc;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 800;
}

.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* 深色沉浸条带 (Strip) */
.strip {
  background: var(--dark-strip);
  color: white;
}

.strip .muted {
  color: #b6c4b8;
}

.strip .section-head h2 {
  color: white;
}

/* 世界画廊网格 */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 0.92;
}

.gallery-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.featured img {
  height: 476px;
}

.gallery-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px 16px 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
  color: white;
  pointer-events: none;
  transform: translateY(4px);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-info {
  transform: translateY(0);
}

.gallery-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
}

.gallery-info span {
  font-size: 12px;
  color: var(--l);
  font-weight: 600;
}

/* 复制地址模块 */
.cta-box {
  background: var(--dark-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 42px 6vw;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-box h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 8px 0;
}

.copybox {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #0d1510;
  border: 1px solid rgba(184, 243, 106, 0.3);
  color: var(--l);
  padding: 12px 18px;
  border-radius: 8px;
  font: 700 18px "Consolas", "Courier New", monospace;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.copybox button {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 6px;
}

/* 入职指南 (Join 页布局) */
.join-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.poster-frame {
  position: relative;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.poster-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.poster-tip {
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #2b7a1e;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.step {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
}

.step b {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  background: var(--g);
  color: #0b1a0d;
  font-size: 20px;
  font-weight: 900;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(72, 195, 45, 0.3);
}

.step h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step p {
  margin: 0;
  font-size: 14px;
}

/* FAQ 常见问答 */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 22px;
  transition: border-color 0.2s;
}

.faq details[open] {
  border-color: #8edc6b;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-size: 22px;
  color: #66736a;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  content: "−";
  color: var(--g);
}

.faq p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

/* 页脚 */
footer {
  padding: 36px 6vw;
  background: var(--dark);
  color: #a4b4a7;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

footer a:hover {
  color: var(--l);
}

/* 升级版大图灯箱 Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 12, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.25s ease;
}

.lightbox-modal.active .lightbox-img {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 16px;
  color: #edf5ee;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  max-width: 800px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 24px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

/* 响应式适配 */
@media (max-width: 1080px) {
  .navlinks {
    gap: 14px;
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.featured {
    grid-column: span 2;
    grid-row: auto;
  }
  .gallery-item.featured img {
    height: 300px;
  }
  .join-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .navlinks {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #101915;
    padding: 20px 6vw;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navlinks.open {
    display: flex;
  }
  .menu {
    display: block;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery-item img,
  .gallery-item.featured img {
    height: 220px;
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .copybox {
    width: 100%;
    font-size: 15px;
    flex-wrap: wrap;
  }
  .copybox button {
    margin-left: 0;
    width: 100%;
  }
}
