/* ==========================================
 * ChatSM - 亚文化暗夜鎏金主题 (Dark Crimson)
 * ========================================== */
 :root {
  --color-bg: #0a0a0c;
  --color-bg-light: #16161a;
  --color-primary: #e63946;
  --color-primary-hover: #ff4d5a;
  --color-text-main: #f5f5f5;
  --color-text-muted: #949499;
  
  --glass-bg: rgba(22, 22, 26, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
  
  --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; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
 * 通用组件
 * ========================================== */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.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(10, 10, 12, 0.9);
  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: 700;
  color: #fff;
  letter-spacing: 1px;
}
.main-nav ul {
  display: flex;
  gap: 30px;
}
.main-nav a {
  color: var(--color-text-muted);
  font-size: 15px;
  transition: color 0.3s;
}
.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)
 * ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: 60vw; height: 60vw;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(230,57,70,0.15) 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;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 25px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.3;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-muted);
  margin-bottom: 50px;
  line-height: 1.8;
}

/* 下载区块 */
.hero-download-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.dl-card {
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 240px;
}
.qr-wrapper {
  width: 120px; height: 120px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}
.dl-qr {
  width: 100%; height: 100%;
  object-fit: cover;
}
.dl-card .btn {
  width: 100%;
  padding: 12px 0;
  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; }

/* ==========================================
 * 内容区块 (功能/文化)
 * ========================================== */
.section { padding: 100px 0; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 32px; margin-bottom: 15px; }
.section-desc { color: var(--color-text-muted); font-size: 16px; }

.grid { display: grid; gap: 30px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.feature-card {
  padding: 40px 30px;
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card .icon {
  font-size: 24px; font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 20px;
  opacity: 0.5;
}
.feature-card h3 { margin-bottom: 15px; font-size: 20px; }
.feature-card p { color: var(--color-text-muted); font-size: 14px; }

/* 文章卡片 */
.article-card .card-body { padding: 30px; }
.card-meta .tag {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 15px;
}
.article-card h2 { font-size: 18px; margin-bottom: 15px; line-height: 1.5; }
.article-card p { font-size: 14px; color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* 价值观 */
.mt-4 { margin-top: 40px; }
.text-center { text-align: center; }
.value-item h3 { color: var(--color-primary); font-size: 22px; margin-bottom: 10px; }
.value-item p { color: var(--color-text-muted); font-size: 15px; }

/* ==========================================
 * 页脚
 * ========================================== */
.site-footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  background: #050505;
}
.footer-grid {
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; color: var(--color-primary); font-size: 20px; font-weight: bold; margin-bottom: 15px;}
.footer-slogan { color: var(--color-text-muted); font-size: 14px;}
.footer-notice { max-width: 500px; }
.footer-notice h3 { margin-bottom: 15px; font-size: 16px; }
.notice-text { font-size: 13px; 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: #666;
}

/* ==========================================
 * 移动端适配
 * ========================================== */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav {
    position: absolute; top: 100%; left: 0; width: 100%;
    background: rgba(10, 10, 12, 0.95);
    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; }

  .hero-download-grid { flex-direction: column; align-items: center; }
  .dl-card { width: 100%; max-width: 320px; flex-direction: row; }
  .qr-wrapper { width: 80px; height: 80px; flex-shrink: 0; }
}