:root {
  --color-bg: #0d0d0d;
  --color-panel: #1a1a1a;
  --color-primary: #d4af37;
  --color-primary-hover: #f1c40f;
  --color-text-main: #e0e0e0;
  --color-text-muted: #888888;
  --color-border: #2a2a2a;
  --shadow-base: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 8px 30px rgba(212, 175, 55, 0.15);
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-stack);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.card-shadow {
  background: var(--color-panel);
  border-radius: 12px;
  box-shadow: var(--shadow-base);
  border: 1px solid var(--color-border);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 6px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary { background: var(--color-primary); color: #000; }
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-2px); }

.reveal { opacity: 1; transform: translateY(0); transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }

.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000; padding: 15px 0; transition: all 0.3s ease;
  background: rgba(13, 13, 13, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-primary); }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: 1px; color: #fff;}
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--color-text-muted); font-size: 15px; font-weight: 500;}
.main-nav a:hover, .main-nav a.active { color: var(--color-primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--color-primary); position: absolute; transition: all 0.3s; }
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.hero { position: relative; padding: 120px 0 60px; overflow: hidden; border-bottom: 1px solid var(--color-border);}
.hero-bg-glow {
  position: absolute; top: -20%; left: 50%; width: 80vw; height: 80vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  filter: blur(60px); z-index: -1; pointer-events: none;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-tags {
  display: inline-block; padding: 6px 16px; background: rgba(212,175,55,0.1);
  color: var(--color-primary); border-radius: 4px; font-size: 13px; margin-bottom: 25px;
  border: 1px solid rgba(212,175,55,0.3);
}
.hero-title { font-size: clamp(30px, 5vw, 46px); margin-bottom: 20px; color: #fff; font-weight: 800; letter-spacing: 2px;}
.hero-sub { font-size: 16px; color: var(--color-text-muted); margin-bottom: 40px; line-height: 1.8; }

.hero-download-grid { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.dl-card { padding: 25px; display: flex; flex-direction: column; align-items: center; gap: 20px; width: 260px; }
.qr-wrapper { width: 130px; height: 130px; padding: 10px; background: #fff; border-radius: 8px; display: flex; justify-content: center; align-items: center;}
.dl-qr { width: 100%; height: 100%; object-fit: cover; }
.dl-card .btn { width: 100%; padding: 12px 0; gap: 10px; background: #222; border: 1px solid #333; color: #eee; }
.dl-card .btn:hover { background: var(--color-primary); color: #000; border-color: var(--color-primary); }
.btn-text { display: flex; flex-direction: column; text-align: left; }
.st-top { font-size: 11px; opacity: 0.7; }
.st-main { font-size: 15px; font-weight: bold; }

.section-spacing { margin-bottom: 50px; margin-top: 50px; }

.horizontal-widget { padding: 40px; text-align: center; }
.horizontal-title { font-size: 20px; color: #fff; margin-bottom: 25px; letter-spacing: 1px;}

.tag-cloud-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tag-cloud-row span { background: #1a1a1a; border: 1px solid var(--color-border); padding: 8px 18px; border-radius: 4px; font-size: 14px; cursor: pointer; transition: all 0.2s; color: var(--color-text-main); }
.tag-cloud-row span:hover { background: var(--color-primary); color: #000; border-color: var(--color-primary);}

.forum-layout { display: flex; gap: 30px; padding: 40px 20px; align-items: flex-start; }
.forum-main { flex: 1; min-width: 0; }
.forum-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; border-bottom: 2px solid var(--color-border); padding-bottom: 15px;}
.feed-title { font-size: 22px; color: #fff; position: relative;}
.feed-title span { font-size: 14px; color: var(--color-primary); font-weight: normal; margin-left: 10px;}
.forum-tabs { display: flex; gap: 20px; font-size: 15px;}
.forum-tabs span { cursor: pointer; color: var(--color-text-muted); transition: color 0.2s;}
.forum-tabs span:hover, .forum-tabs span.active { color: var(--color-primary); font-weight: bold;}

.thread-list { display: flex; flex-direction: column; }
.thread-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--color-border);
  background: var(--color-panel); transition: background 0.2s;
}
.thread-item:first-child { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.thread-item:last-child { border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; border-bottom: none;}
.thread-item:hover { background: #222; }

.thread-main-col { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding-right: 20px;}
.t-tag { font-size: 12px; padding: 3px 8px; border-radius: 3px; font-weight: 600; flex-shrink: 0;}
.tag-story { background: rgba(212, 175, 55, 0.15); color: var(--color-primary); }
.tag-discuss { background: rgba(52, 152, 219, 0.15); color: #3498db; }
.tag-guide { background: rgba(46, 204, 113, 0.15); color: #2ecc71; }
.tag-ask { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.t-title { font-size: 16px; color: #eee; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500;}
.t-title:hover { color: var(--color-primary); text-decoration: underline;}

.thread-meta { display: flex; gap: 25px; font-size: 13px; color: var(--color-text-muted); flex-shrink: 0; align-items: center;}
.t-author { width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.t-stats { width: 110px; text-align: right;}
.t-time { width: 70px; text-align: right;}

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 30px; padding: 20px 0;}
.pagination a, .pagination span { padding: 8px 14px; background: var(--color-panel); border: 1px solid var(--color-border); border-radius: 4px; color: var(--color-text-main); font-size: 14px;}
.pagination a:hover { background: var(--color-primary); color: #000; border-color: var(--color-primary);}
.pagination .page-current { background: var(--color-primary); color: #000; border-color: var(--color-primary); font-weight: bold;}

.forum-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }
.widget { padding: 20px; }
.widget-title { font-size: 16px; color: #fff; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--color-border);}
.hot-list { display: flex; flex-direction: column; gap: 15px;}
.hot-list li { display: flex; align-items: center; gap: 12px;}
.rank { width: 20px; height: 20px; background: #333; color: #999; border-radius: 3px; display: flex; justify-content: center; align-items: center; font-size: 12px; font-weight: bold; flex-shrink: 0;}
.r1 { background: #e74c3c; color: #fff;}
.r2 { background: #e67e22; color: #fff;}
.r3 { background: #f1c40f; color: #fff;}
.hot-list a { font-size: 14px; color: #ccc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.hot-list a:hover { color: var(--color-primary);}

.mt-30 { margin-top: 10px;}
.board-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px;}
.board-nav a { display: block; text-align: center; padding: 10px; background: #222; border-radius: 4px; font-size: 14px; color: #bbb; border: 1px solid #2a2a2a;}
.board-nav a:hover { background: rgba(212,175,55,0.1); color: var(--color-primary); border-color: rgba(212,175,55,0.3);}

.seo-footer-archive { padding: 60px 0; background: #111; border-top: 1px solid var(--color-border); margin-top: 20px;}
.archive-title { text-align: center; font-size: 20px; color: #fff; margin-bottom: 40px; letter-spacing: 1px;}
.archive-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.archive-columns ul { display: flex; flex-direction: column; gap: 10px; }
.archive-columns li { font-size: 13px; color: #777; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; list-style-type: square; margin-left: 15px;}
.archive-columns li:hover { color: var(--color-primary); cursor: pointer; }

.site-footer { padding: 40px 0 20px; background: #0a0a0a; border-top: 1px solid #1a1a1a;}
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 30px; }
.footer-logo { display: flex; align-items: center; gap: 8px; color: var(--color-primary); font-size: 22px; font-weight: bold; margin-bottom: 12px;}
.footer-slogan { color: #666; font-size: 13px;}
.footer-notice { max-width: 450px; }
.footer-notice h3 { margin-bottom: 12px; font-size: 15px; color: #ccc;}
.notice-text { font-size: 13px; color: #666; line-height: 1.8; }
.footer-bottom { border-top: 1px solid #1a1a1a; padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #555; }

@media (max-width: 900px) {
  .forum-layout { flex-direction: column; }
  .forum-sidebar { width: 100%; }
  .archive-columns { grid-template-columns: repeat(2, 1fr); }
  .thread-meta { gap: 15px; }
  .t-stats { display: none; }
}
@media (max-width: 768px) {
  .archive-columns { grid-template-columns: 1fr; }
  .t-time { display: none; }
  
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: #111;
    border-bottom: 1px solid var(--color-border); padding: 20px 0;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transition: all 0.3s ease;
  }
  .main-nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .main-nav ul { flex-direction: column; align-items: center; gap: 20px; }
  
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg); top: 9px; }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg); top: 9px; }

  .hero-download-grid { flex-direction: column; align-items: center;}
  .dl-card { flex-direction: row; width: 100%; max-width: 400px;}
  .qr-wrapper { width: 80px; height: 80px; flex-shrink: 0;}
}