/* ============================================
   Gitmm 官网样式 - 黄土色主题，参考 AudioSplit 交互
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: #2C1F14;
  background: #FAF7F2;
  overflow-x: hidden;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #2C1F14;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.navbar .logo img {
  width: 32px;
  height: 32px;
}

.navbar .nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navbar .nav-links a {
  color: #8B7355;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar .nav-links a:hover {
  color: #C4956A;
}

.navbar .nav-links .nav-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #D5C8B5;
  border-radius: 6px;
  color: #8B7355;
  transition: all 0.3s;
}

.navbar .nav-links .nav-github:hover {
  border-color: #C4956A;
  color: #C4956A;
  background: rgba(196, 149, 106, 0.06);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2C1F14;
  transition: all 0.3s ease;
  position: absolute;
}

.hamburger span:nth-child(1) { transform: translateY(-7px); }
.hamburger span:nth-child(2) { opacity: 1; }
.hamburger span:nth-child(3) { transform: translateY(7px); }

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 24px;
  z-index: 999;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.mobile-menu-section {
  text-align: center;
}

.mobile-menu-section h4 {
  font-size: 12px;
  font-weight: 600;
  color: #2C1F14;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mobile-menu-section a {
  display: block;
  color: #8B7355;
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s;
}

.mobile-menu-section a:hover {
  color: #C4956A;
}

/* ========== Hero 区域 ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAF7F2;
  padding: 80px 48px 60px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(196, 149, 106, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  color: #2C1F14;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-content .subtitle {
  font-size: 18px;
  color: #8B7355;
  margin-bottom: 40px;
  line-height: 1.8;
  max-width: 520px;
}

.hero-content .cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-content .cta-btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-content .cta-btn.primary {
  background: #C4956A;
  color: #fff;
}

.hero-content .cta-btn.primary:hover {
  background: #A67B5B;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 149, 106, 0.25);
}

.hero-content .cta-btn.secondary {
  background: transparent;
  color: #8B7355;
  border: 1px solid #D5C8B5;
}

.hero-content .cta-btn.secondary:hover {
  border-color: #C4956A;
  color: #C4956A;
  background: rgba(196, 149, 106, 0.04);
}

.hero-meta {
  font-size: 14px;
  color: #A09080;
  margin-bottom: 20px;
}

.hero-meta .sep {
  margin: 0 6px;
  color: #D5C8B5;
}

.hero-meta a {
  color: #C4956A;
  text-decoration: none;
  font-weight: 500;
}

.hero-meta a:hover {
  color: #8B6914;
}

/* 软件界面模拟 */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-frame {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid #E0D5C5;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.window-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #F8F4EF;
  border-bottom: 1px solid #E0D5C5;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.window-dot.red { background: #FF5F57; }
.window-dot.yellow { background: #FFBD2E; }
.window-dot.green { background: #28CA42; }

.window-title {
  margin-left: 12px;
  font-size: 13px;
  color: #A09080;
  font-weight: 600;
}

.window-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 340px;
}

.repo-list {
  background: #F8F4EF;
  border-right: 1px solid #E0D5C5;
  padding: 12px;
}

.repo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #8B7355;
}

.repo-item:hover {
  background: #EDE5D8;
}

.repo-item.active {
  background: #F5EDE0;
  color: #2C1F14;
}

.repo-icon {
  font-size: 18px;
}

.repo-name {
  font-size: 13px;
  font-weight: 600;
}

.repo-meta {
  font-size: 11px;
  color: #A09080;
}

.repo-detail {
  padding: 16px;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.branch-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(196, 149, 106, 0.1);
  color: #C4956A;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.sync-status {
  font-size: 12px;
  color: #22c55e;
  font-weight: 600;
}

.file-list {
  margin-bottom: 20px;
}

.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #EDE5D8;
  font-size: 13px;
  color: #8B7355;
}

.status {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.status.staged { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.status.modified { background: rgba(250, 204, 21, 0.15); color: #ca8a04; }
.status.untracked { background: rgba(99, 102, 241, 0.12); color: #6366f1; }

.commit-box {
  margin-top: 20px;
}

.commit-input {
  padding: 10px 12px;
  background: #FAF7F2;
  border: 1px solid #E0D5C5;
  border-radius: 8px;
  font-size: 13px;
  color: #8B7355;
  margin-bottom: 10px;
}

.commit-btn {
  width: 100%;
  padding: 10px;
  background: #C4956A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
}

.commit-btn:hover {
  background: #A67B5B;
}

/* ========== 流式终端动画 ========== */
.terminal-line {
  opacity: 0;
  transform: translateY(10px);
  animation: streamIn 0.5s ease forwards;
}

@keyframes streamIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 功能特性区域 ========== */
.features {
  padding: 120px 48px;
  background: #fff;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.features-header {
  text-align: center;
  margin-bottom: 80px;
}

.features-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #2C1F14;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.features-header p {
  color: #A09080;
  font-size: 18px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: #FAF7F2;
  border: 1px solid #E0D5C5;
  padding: 40px 32px;
  border-radius: 16px;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.hidden {
  opacity: 0;
  transform: translateY(30px);
}

/* 滚动动画通用类 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.hidden {
  opacity: 0;
  transform: translateY(30px);
}

.feature-card:hover {
  border-color: rgba(196, 149, 106, 0.3);
  background: #fff;
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: rgba(196, 149, 106, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card .icon svg {
  width: 24px;
  height: 24px;
  color: #C4956A;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2C1F14;
}

.feature-card p {
  color: #8B7355;
  font-size: 14px;
  line-height: 1.7;
}

/* 功能详情展示 */
.feature-showcase {
  padding: 120px 48px;
  background: #FAF7F2;
  position: relative;
}

.feature-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.feature-block {
  max-width: 900px;
  margin: 0 auto 40px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-text h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #2C1F14;
}

.feature-text p {
  font-size: 17px;
  color: #8B7355;
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-text ul {
  list-style: none;
}

.feature-text li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: #8B7355;
}

.feature-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* ========== 对比表 ========== */
.compare {
  padding: 120px 48px;
  background: #fff;
  position: relative;
}

.compare::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #E0D5C5;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #EDE5D8;
  color: #8B7355;
}

.compare-table thead th {
  background: #F8F4EF;
  font-weight: 600;
  color: #2C1F14;
  font-size: 14px;
}

.compare-table thead th:first-child,
.compare-table td:first-child {
  text-align: left;
}

.compare-table .check {
  color: #22c55e;
  font-weight: 700;
  font-size: 16px;
}

.compare-table th.highlight,
.compare-table td.highlight {
  background: rgba(196, 149, 106, 0.06);
  color: #C4956A;
  font-weight: 700;
  text-align: center;
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: #F8F4EF;
}

.compare-table tbody tr:hover td.highlight {
  background: rgba(196, 149, 106, 0.1);
}

/* ========== 下载区域 ========== */
.download-section {
  padding: 120px 48px;
  background: #FAF7F2;
  border-top: 1px solid #E0D5C5;
}

.download-header {
  text-align: center;
  margin-bottom: 60px;
}

.download-header h2 {
  font-size: 40px;
  font-weight: 700;
  color: #2C1F14;
  margin-bottom: 16px;
}

.download-header p {
  color: #A09080;
  font-size: 18px;
}

.download-card {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #E0D5C5;
  border-radius: 16px;
  padding: 64px;
  text-align: center;
  transition: all 0.4s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.download-card:hover {
  border-color: rgba(196, 149, 106, 0.2);
  box-shadow: 0 12px 40px rgba(196, 149, 106, 0.08);
}

.download-card h2 {
  font-size: 36px;
  margin-bottom: 12px;
  color: #2C1F14;
}

.download-desc {
  color: #8B7355;
  font-size: 17px;
  margin-bottom: 32px;
}

/* Windows 平台标识 */
.download-platform {
  margin-bottom: 28px;
}

.download-platform svg {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.download-platform h3 {
  font-size: 24px;
  color: #2C1F14;
  font-weight: 600;
}

/* 下载链接按钮 - 参考 AudioSplit */
.download-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.download-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: rgba(196, 149, 106, 0.08);
  border: 1px solid rgba(196, 149, 106, 0.2);
  border-radius: 10px;
  color: #C4956A;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
}

.download-link-btn:hover {
  background: #C4956A;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 149, 106, 0.2);
}

.download-link-btn svg {
  flex-shrink: 0;
}

.system-requirements {
  text-align: left;
  background: #F8F4EF;
  border-radius: 8px;
  padding: 24px;
  margin-top: 32px;
}

.system-requirements h4 {
  font-size: 15px;
  margin-bottom: 12px;
  color: #2C1F14;
}

.system-requirements ul {
  list-style: none;
}

.system-requirements li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 14px;
  color: #8B7355;
}

.system-requirements li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #C4956A;
  font-weight: 700;
}

/* ========== FAQ ========== */
.faq {
  padding: 120px 48px;
  background: #fff;
  position: relative;
}

.faq::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #E0D5C5;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  background: none;
  border: none;
  font-size: 17px;
  font-weight: 600;
  color: #2C1F14;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}

.faq-question:hover {
  color: #C4956A;
}

.faq-icon {
  transition: transform 0.3s;
  flex-shrink: 0;
  color: #A09080;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #C4956A;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: #8B7355;
  line-height: 1.7;
}

/* ========== 页脚 ========== */
.footer {
  background: #FAF7F2;
  border-top: 1px solid #E0D5C5;
  padding: 60px 48px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  justify-items: center;
}

.footer-section {
  text-align: center;
}

.footer-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #2C1F14;
}

.footer-section a {
  display: block;
  color: #8B7355;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: #C4956A;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid #E0D5C5;
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: #A09080;
  font-size: 14px;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-content .cta-buttons {
    justify-content: center;
  }

  .feature-block {
    margin-bottom: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 36px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .navbar .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding: 80px 24px 40px;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content .subtitle {
    font-size: 16px;
  }

  .features,
  .feature-showcase,
  .compare,
  .download-section,
  .faq {
    padding: 80px 24px;
  }

  .features-header h2,
  .download-header h2 {
    font-size: 28px;
  }

  .window-body {
    grid-template-columns: 1fr;
  }

  .repo-list {
    display: none;
  }

  .download-card {
    padding: 40px 24px;
  }

  .download-options {
    grid-template-columns: 1fr;
  }
}
