*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #1a1a2e;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(0,0,0,0.08) 2px, rgba(0,0,0,0.08) 4px);
  font-family: 'Microsoft YaHei', 'PingFang SC', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: #e0d8c0;
  overflow-x: hidden;
  padding-top: 60px;
}

.divider-grass {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #5a8f3c 0px, #4a7a2e 8px, #3d6b22 8px, #5a8f3c 16px,
    #4a7a2e 16px, #5a8f3c 24px, #3d6b22 24px, #4a7a2e 32px
  );
}

.divider-stone {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    #6b6b6b 0px, #5a5a5a 8px, #4a4a4a 8px, #6b6b6b 16px,
    #5a5a5a 16px, #6b6b6b 24px, #4a4a4a 24px, #5a5a5a 32px
  );
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
  background: rgba(26, 26, 46, 0.75);
  backdrop-filter: blur(8px);
}

#header.scrolled {
  background: rgba(10, 10, 30, 0.92);
  box-shadow: 0 4px 0 #3d6b22, 0 8px 20px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: #5a8f3c;
  text-decoration: none;
  text-shadow: 2px 2px 0 #2d4a1e;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo:hover {
  color: #7ab84a;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 14px;
  color: #c8c0a8;
  text-decoration: none;
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: #3d3d2e;
  border-color: #5a5a3a;
  color: #e8e0c0;
  outline: none;
}

/* 汉堡菜单按钮 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid #5a5a3a;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #c0b890;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.hero {
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-deco {
  margin-bottom: 24px;
}

/* 像素镠子 */
.pickaxe {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  position: relative;
  animation: float 2s ease-in-out infinite;
}

.pickaxe-body {
  width: 6px;
  height: 56px;
  background: linear-gradient(to bottom, #8b6914, #6b4f12);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 1px 0 0 #a07820, -1px 0 0 #5a3e0e;
}

.pickaxe-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 16px;
  display: flex;
}

.pickaxe-head-left {
  width: 18px;
  height: 16px;
  background: #5a8f3c;
  border: 2px solid #3d6b22;
  border-right: none;
  border-radius: 3px 0 0 3px;
  box-shadow: inset 1px 1px 0 #7ab84a, inset -1px -1px 0 #3d6b22;
}

.pickaxe-head-center {
  width: 16px;
  height: 16px;
  background: #8b6914;
  border-top: 2px solid #a07820;
  border-bottom: 2px solid #5a3e0e;
}

.pickaxe-head-right {
  width: 18px;
  height: 16px;
  background: #6b6b6b;
  border: 2px solid #4a4a4a;
  border-left: none;
  border-radius: 0 3px 3px 0;
  box-shadow: inset 1px 1px 0 #8a8a8a, inset -1px -1px 0 #4a4a4a;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 36px;
  color: #5a8f3c;
  text-shadow:
    3px 3px 0 #2d4a1e,
    -1px -1px 0 #7ab84a;
  margin-bottom: 12px;
  letter-spacing: 3px;
  line-height: 1.6;
}

.hero-subtitle {
  font-size: 16px;
  color: #d0c8a0;
  margin-bottom: 40px;
}

/* CTA 按钮 */
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn {
  display: inline-block;
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  padding: 14px 28px;
  border: 3px solid;
  position: relative;
}

.btn:active {
  transform: translateY(3px);
}

.btn-primary {
  background: #5a8f3c;
  color: #e0d8c0;
  border-color: #3d6b22;
  box-shadow:
    inset 2px 2px 0 #7ab84a,
    inset -2px -2px 0 #2d4a1e,
    0 4px 0 #2d4a1e;
}

.btn-primary:hover {
  background: #6aaf44;
}

.btn-secondary {
  background: #4a4a4a;
  color: #e0d8c0;
  border-color: #2a2a2a;
  box-shadow:
    inset 2px 2px 0 #6b6b6b,
    inset -2px -2px 0 #2a2a2a,
    0 4px 0 #2a2a2a;
}

.btn-secondary:hover {
  background: #5a5a5a;
}

/* 建设进度装饰 */
.hero-build-badge {
  max-width: 320px;
  margin: 0 auto;
}

.progress-bar {
  width: 100%;
  height: 14px;
  background: #2a2a2a;
  border: 2px solid #4a4a4a;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: repeating-linear-gradient(
    90deg,
    #5a8f3c 0px, #4a7a2e 6px, #3d6b22 6px, #5a8f3c 12px
  );
  animation: progress 3s ease-in-out infinite;
}

@keyframes progress {
  0%, 100% { width: 25%; }
  50% { width: 45%; }
}

.build-label {
  display: block;
  font-size: 12px;
  color: #8a8878;
  text-align: center;
  margin-top: 8px;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: #e0d060;
  text-align: center;
  text-shadow: 2px 2px 0 #8a7810;
  margin-bottom: 36px;
  letter-spacing: 2px;
  line-height: 1.6;
}

.news {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #3a3a3a;
  padding: 24px 20px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  border-color: #5a8f3c;
}

.news-card a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-date {
  display: block;
  font-size: 12px;
  color: #8a8878;
  margin-bottom: 10px;
}

.news-card h3 {
  font-family: 'Press Start 2P', 'Microsoft YaHei', 'PingFang SC', monospace;
  font-size: 11px;
  color: #e0d060;
  margin-bottom: 10px;
  line-height: 2;
}

.news-card p {
  font-size: 14px;
  color: #c8c0a8;
  line-height: 1.8;
  flex: 1;
}

.news-source {
  display: block;
  font-size: 11px;
  color: #6a6858;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #3a3a3a;
}

/* 新闻状态（加载/错误） */
.news-status {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #a09880;
  font-size: 14px;
}

.news-status-icon {
  display: block;
  font-size: 36px;
  margin-bottom: 12px;
  animation: float 2s ease-in-out infinite;
}

.news-status.error .news-status-icon {
  animation: none;
}

.news-status.error {
  color: #c08080;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.pagination-btn,
.pagination-page {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13px;
  font-family: 'Microsoft YaHei', 'PingFang SC', system-ui, sans-serif;
  color: #c8c0a8;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #3a3a3a;
  transition: all 0.2s;
}

.pagination-btn:hover,
.pagination-page:hover {
  border-color: #5a8f3c;
  color: #e8e0c0;
  background: rgba(0, 0, 0, 0.55);
}

.pagination-page.active {
  background: #5a8f3c;
  color: #e0d8c0;
  border-color: #3d6b22;
  cursor: default;
}

.pagination-ellipsis {
  display: inline-block;
  padding: 8px 6px;
  font-size: 13px;
  color: #6a6858;
}

#footer {
  text-align: center;
  padding: 40px 20px 28px;
  font-size: 14px;
  color: #8a8878;
  background: rgba(0, 0, 0, 0.25);
  border-top: 2px solid #2a2a2a;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a,
#footer a {
  color: #a0a088;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
#footer a:hover {
  color: #d0c8a0;
}

.footer-copy {
  margin-bottom: 8px;
}

.footer-icp {
  font-size: 12px;
  margin-top: 14px;
}

/* 免责声明 */
.footer-disclaimer {
  margin: 16px auto 0;
  max-width: 600px;
  padding: 14px 20px;
  font-size: 12px;
  color: #6a6858;
  line-height: 1.8;
  border-top: 1px dashed #3a3a3a;
  border-bottom: 1px dashed #3a3a3a;
}

.footer-disclaimer p {
  margin: 4px 0;
}

.footer-disclaimer-en {
  margin-top: 8px;
  color: #5a5850;
  font-size: 11px;
}

/* 文章内容 */
.page-article {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px;
  font-size: 16px;
  color: #c8c0a8;
  line-height: 2;
}

.page-article p {
  margin-bottom: 16px;
}

.page-article h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: #e0d060;
  margin: 28px 0 12px;
  text-shadow: 1px 1px 0 #8a7810;
  letter-spacing: 1px;
}

.page-article ul {
  list-style: none;
  margin-bottom: 16px;
  padding-left: 4px;
}

.page-article li {
  padding: 6px 0 6px 20px;
  position: relative;
}

.page-article li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: #5a8f3c;
}

.page-article li strong {
  color: #e0d8c0;
}

.page-article a {
  color: #7ab84a;
  text-decoration: none;
}

.page-article a:hover {
  color: #5a8f3c;
  text-decoration: underline;
}

/* 资源页 */
.resource-section {
  max-width: 800px;
  margin: 0 auto 32px;
  padding: 0 16px;
}

.resource-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: #e0d060;
  margin-bottom: 16px;
  padding-left: 8px;
  border-left: 3px solid #5a8f3c;
  letter-spacing: 1px;
  text-shadow: 1px 1px 0 #8a7810;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid #3a3a3a;
  text-decoration: none;
  transition: all 0.2s;
}

.resource-card:hover {
  border-color: #5a8f3c;
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-2px);
}

.resource-icon {
  font-size: 22px;
  margin-bottom: 4px;
}

.resource-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: #e8e0c8;
  letter-spacing: 1px;
}

.resource-desc {
  font-size: 13px;
  color: #8a8878;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ≤768px */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 30, 0.96);
    backdrop-filter: blur(12px);
    padding: 16px 0;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s;
    border-bottom: 4px solid #3d6b22;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px dashed #3a3a3a;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: 15px;
  }
}

/* ≤480px */
@media (max-width: 480px) {
  body {
    padding-top: 52px;
  }

  .navbar {
    height: 48px;
    padding: 0 14px;
  }

  .logo {
    font-size: 11px;
  }

  .hero {
    padding: 50px 16px 40px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-subtitle {
    font-size: 13px;
  }

  .btn {
    font-size: 10px;
    padding: 12px 20px;
  }

  .section-title {
    font-size: 13px;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
