/* SYLEN 官网样式 — 极简高雅风格，黑白灰无杂色，无多余装饰符号 */

:root {
  --color-bg: #0f1115;
  --color-surface: #161920;
  --color-surface-hover: #1e222b;
  --color-border: #262b35;
  --color-border-subtle: #1c2028;
  --color-text-main: #f0f2f5;
  --color-text-muted: #8b949e;
  --color-accent: #3b82f6;
  --color-accent-hover: #2563eb;

  --font-sans:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', 'PingFang SC',
    'Microsoft YaHei', sans-serif;
  --max-width: 1040px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 顶部导航 */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  text-decoration: none;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
}

.nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav .nav-download {
  color: #fff;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav .nav-download:hover {
  background-color: var(--color-surface-hover);
  border-color: #3b4252;
}

/* 首屏 Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--color-text-main);
  margin-bottom: 1rem;
}

.hero-desc {
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* 下载区 */
.download-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
}

.btn-secondary {
  background-color: var(--color-surface-hover);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.download-meta span {
  white-space: nowrap;
}

.download-meta strong {
  color: var(--color-text-main);
  font-weight: 500;
}

.download-tip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  max-width: 620px;
  line-height: 1.5;
  text-align: left;
}

.download-tip strong {
  color: var(--color-text-main);
  font-weight: 500;
}

/* 通用板块 */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--color-border-subtle);
}

.section-title {
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.section-title p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* 核心功能网格 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.15s ease;
}

.feature-card:hover {
  border-color: #3b4252;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 更新日志 */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.release-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.release-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.release-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.release-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.release-version {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.release-date {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.release-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background-color: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  font-weight: 500;
}

.release-summary {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.release-toggle-hint {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-left: 1.25rem;
}

.release-panel {
  display: none;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border-subtle);
}

.release-card.is-open .release-panel {
  display: block;
}

.release-body {
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.release-items {
  list-style: disc;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* 交流反馈与赞助网格 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.15s ease;
}

.contact-card:hover {
  border-color: #3b4252;
}

.contact-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contact-tag {
  font-size: 0.75rem;
  color: #60a5fa;
  background-color: rgba(59, 130, 246, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

.contact-tag.tag-sponsor {
  color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.12);
}

.contact-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  min-height: 1.6rem;
}

.contact-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  min-height: 2.65rem;
}

.contact-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 0.8rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border-subtle);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.contact-meta-row strong {
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

.btn-copy {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: background-color 0.15s;
}

.btn-copy:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.contact-action {
  margin-top: auto;
  padding-top: 0.25rem;
}

.btn-contact {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: var(--color-surface-hover);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-main);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-contact:hover {
  background-color: #242934;
  border-color: #3b4252;
  color: #ffffff;
}

/* 感谢专区 */
.thanks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.thanks-item {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}

.thanks-item:hover {
  border-color: #3b4252;
}

.thanks-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.thanks-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}

/* 弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-card {
  position: relative;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.modal-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: #60a5fa;
  background-color: rgba(59, 130, 246, 0.12);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-close:hover {
  color: #ffffff;
}

.modal-qr {
  margin: 1.25rem 0;
}

.modal-qr img {
  width: 200px;
  height: 200px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.modal-tip {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* 页脚 */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border-subtle);
  padding: 2.5rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-text-main);
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
  .header-inner {
    height: 56px;
    gap: 0.75rem;
    overflow: hidden;
  }
  .nav {
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.25rem 0;
  }
  .nav::-webkit-scrollbar {
    display: none;
  }
  .nav a {
    font-size: 0.85rem;
  }
  .nav .nav-download {
    padding: 0.35rem 0.75rem;
    font-size: 0.825rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .hero-tagline {
    font-size: 1.15rem;
  }
  .download-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .download-actions .btn {
    width: 100%;
  }
}
