/* ==========================================
 * SimuBBS - 深海冰蓝主题 (Deep Ocean Blue)
 * ========================================== */
:root {
  --color-bg: #030a11;
  --color-bg-light: #0d1b2a;
  --color-primary: #00b4d8;
  --color-primary-hover: #48cae4;
  --color-text-main: #e0e1dd;
  --color-text-muted: #778da9;
  
  --glass-bg: rgba(13, 27, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --glass-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  
  --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.2s; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* 玻璃质感组件 */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--glass-shadow);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 50px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.3s;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: 0 0 15px rgba(0, 180, 216, 0.4); }

.reveal { opacity: 0; transform: translateY(20px); transition: all 0.6s ease-out; }
.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;
}
.site-header.scrolled {
  background: rgba(3, 10, 17, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border); padding: 10px 0;
}
.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: bold; color: #fff; letter-spacing: 0.5px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { color: var(--color-text-muted); font-size: 15px; }
.main-nav a:hover, .main-nav a.active { color: #fff; }

.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: #fff; 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(--glass-border); }
.hero-bg-glow {
  position: absolute; top: 30%; left: 50%; width: 80vw; height: 80vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 60%);
  filter: blur(80px); z-index: -1; pointer-events: none;
}
.hero-content { text-align: center; max-width: 800px; margin: 0 auto; }
.hero-tags {
  display: inline-block; padding: 4px 14px; border: 1px solid var(--color-primary);
  color: var(--color-primary); border-radius: 20px; font-size: 13px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(28px, 4vw, 48px); margin-bottom: 15px; color: #fff; }
.hero-sub { font-size: 15px; 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: 20px; display: flex; flex-direction: row; align-items: center; gap: 20px; width: auto; min-width: 300px;}
.qr-wrapper { width: 90px; height: 90px; background: #fff; padding: 6px; border-radius: 8px; flex-shrink: 0;}
.dl-qr { width: 100%; height: 100%; object-fit: cover; }
.dl-card .btn { flex-grow: 1; padding: 12px 15px; gap: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.05); }
.dl-card .btn:hover { background: rgba(255,255,255,0.1); 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; }

/* 论坛主体布局 (左边帖子流，右边侧边栏) */
.forum-container {
  display: flex; gap: 40px; padding: 60px 20px; align-items: flex-start;
}
.forum-main { flex: 1; min-width: 0; }
.forum-sidebar { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 30px; }

/* 版块与帖子流 */
.board-section { margin-bottom: 50px; }
.board-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 20px; border-bottom: 2px solid rgba(255,255,255,0.05); padding-bottom: 10px;}
.board-title { font-size: 22px; color: #fff; position: relative; padding-left: 15px;}
.board-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--color-primary); border-radius: 2px;}
.board-more { font-size: 13px; color: var(--color-text-muted); }
.board-more:hover { color: var(--color-primary); }

.post-list { display: flex; flex-direction: column; gap: 15px; }
.post-item {
  padding: 18px 20px; background: rgba(13, 27, 42, 0.4); border: 1px solid var(--glass-border);
  border-radius: 8px; transition: background 0.2s; display: flex; flex-direction: column; gap: 8px;
}
.post-item:hover { background: rgba(13, 27, 42, 0.8); border-color: rgba(0, 180, 216, 0.3); }
.post-link { font-size: 16px; color: #e0e1dd; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-link:hover { color: var(--color-primary-hover); }
.post-meta { display: flex; gap: 15px; font-size: 12px; color: var(--color-text-muted); }

/* 侧边栏 Widget */
.widget { padding: 25px; }
.widget-title { font-size: 16px; color: #fff; margin-bottom: 20px; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 10px;}
.widget-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.widget-tags span { background: rgba(0, 180, 216, 0.1); color: var(--color-primary); padding: 4px 10px; border-radius: 4px; font-size: 12px; cursor: pointer;}
.widget-tags span:hover { background: var(--color-primary); color: #fff; }

.widget-list { display: flex; flex-direction: column; gap: 12px; }
.widget-list li { position: relative; padding-left: 15px; }
.widget-list li::before { content: "•"; position: absolute; left: 0; color: var(--color-primary); }
.widget-list a { font-size: 14px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;}
.widget-list a:hover { color: #fff; }

/* 底部密文堆砌区 (SEO 专用) */
.seo-footer-text { padding: 40px 0; background: rgba(0,0,0,0.3); font-size: 12px; color: rgba(119, 141, 169, 0.5); text-align: justify; line-height: 1.8;}
.seo-footer-text h3 { font-size: 13px; margin-bottom: 10px; opacity: 0.7;}

/* 页脚 */
.site-footer { border-top: 1px solid var(--glass-border); padding: 50px 0 20px; background: #010408; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 30px; }
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--color-primary); font-size: 20px; font-weight: bold; margin-bottom: 10px;}
.footer-slogan { color: var(--color-text-muted); font-size: 13px;}
.footer-notice { max-width: 400px; }
.footer-notice h3 { margin-bottom: 10px; font-size: 15px; }
.notice-text { font-size: 12px; color: var(--color-text-muted); line-height: 1.8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; display: flex; justify-content: space-between; font-size: 12px; color: #555; }

/* 移动端适配 */
@media (max-width: 860px) {
  .forum-container { flex-direction: column; }
  .forum-sidebar { width: 100%; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(3, 10, 17, 0.98); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-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; }

  .dl-card { flex-direction: column; width: 100%; }
}