/* ============ 基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #faf9f7;
  --bg-alt: #f3f2ef;
  --card: #ffffff;
  --border: #e3e1dc;
  --border-hover: #cfccc5;
  --text: #1a1a1a;
  --text-body: #3d3d3d;
  --text-dim: #8a8780;
  --accent: #2b2b2b;
  --accent-hover: #1a1a1a;
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ============ 光标 ============ */
h1, h2, h3, span, div { cursor: default; user-select: none; }
p { cursor: text; user-select: text; }
a, button, .btn, .project-card, .community-card, .hero-img { cursor: pointer; }

/* ============ 入场动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1);
}
.reveal.on { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ============ 导航 ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-menu a:hover { color: var(--text); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
}

.hero-content {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  padding-bottom: 20px;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 700;
  letter-spacing: -2.5px;
  margin-bottom: 24px;
  color: var(--text);
}

.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ============ Hero 右侧宣传图 ============ */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  display: block;
}

.hero-img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
  border-color: var(--border-hover);
}

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #faf9f7; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  color: var(--text-body);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(0, 0, 0, 0.02);
  transform: translateY(-2px);
}

/* ============ 区块 ============ */
.section { padding: 100px 32px; }
.section-alt { background: var(--bg-alt); }
.container { max-width: 1100px; margin: 0 auto; }

.section h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  color: var(--text);
}

.section-desc {
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 48px;
}

/* ============ 项目卡片（极简） ============ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-card {
  padding: 32px 28px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.project-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.project-card a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.project-card a:hover { color: var(--text); }

/* ============ 社区卡片 ============ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.community-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.community-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  flex-shrink: 0;
}

.community-body { flex-grow: 1; }
.community-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text);
}
.community-body p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

.community-card .arrow {
  color: var(--text-dim);
  font-size: 16px;
  transition: transform 0.25s, color 0.25s;
}

.community-card:hover .arrow {
  transform: translateX(4px);
  color: var(--text);
}

.community-card.sponsor .community-icon {
  background: #fdecec;
  color: #c0392b;
  border-color: #f5d2d2;
}

/* ============ 页脚 ============ */
.footer {
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual { order: -1; }
  .hero-img { max-width: 100%; }
}

@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav-menu { gap: 18px; }
  .nav-menu a { font-size: 13px; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { letter-spacing: -1.5px; }
  .hero-actions { margin-top: 20px; }
  .section { padding: 70px 20px; }
}

/* ============ 追加：仅用于 EixClient 文案结构（沿用原站色板与卡片质感） ============ */

/* Hero 单栏（去掉宣传图后） */
.hero--text .hero-content { grid-template-columns: 1fr; }
.hero .hero-lead { max-width: 640px; margin-bottom: 28px; font-size: 17px; color: var(--text-dim); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin: 8px 0 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -1px; }
.hero-stats span { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

/* 模块胶囊标签 */
.project-card .count { float: right; font-size: 13px; font-weight: 500; color: var(--text-dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips span {
  font-size: 12.5px; color: var(--text-body);
  padding: 6px 11px; border-radius: 7px;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.chips span:hover { border-color: var(--border-hover); }

/* 技术规格网格 */
.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 48px; }
.spec { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.spec-k { font-size: 11px; letter-spacing: 1.5px; color: var(--text-dim); font-weight: 600; }
.spec-v { font-size: 15px; font-weight: 600; color: var(--text); }

/* 代码块（沿用浅色卡片基调） */
.code-block { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 8px; }
.code-block pre { padding: 20px; overflow-x: auto; }
.code-block code { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13.5px; color: var(--text-body); line-height: 1.7; }
.code-note { padding: 12px 20px 18px; font-size: 13.5px; color: var(--text-dim); border-top: 1px solid var(--border); }
.code-note code, .faq-a code, .dl-info code { background: var(--card); color: var(--text-body); padding: 1px 7px; border-radius: 5px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* 音乐系统列表 */
.music-list { list-style: none; display: grid; gap: 14px; margin-bottom: 48px; }
.music-list li { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px 22px; }
.ml-num { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.music-list h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.music-list p { font-size: 14px; color: var(--text-dim); }

/* 版本历程时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl-ver { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--bg-alt); border: 1px solid var(--border); padding: 3px 11px; border-radius: 999px; margin-bottom: 8px; }
.tl-body h4 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tl-body p { font-size: 14.5px; color: var(--text-dim); max-width: 820px; }

/* FAQ 手风琴 */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; padding: 17px 22px; font-size: 15px; font-weight: 500; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-dim); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-dim); }

/* 下载说明 */
.dl-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.dl-info-item { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.dl-info-item h4 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.dl-info-item p { font-size: 14px; color: var(--text-dim); }
.footer-note { font-size: 13px; color: var(--text-dim); margin-top: 8px; }

/* 响应式补充 */
@media (max-width: 900px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .dl-info { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-stats { gap: 22px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
}