/* Lily Chat 官方落地页 — 与 Lily 主站 (website/public) 视觉一致 */

:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --primary-soft: rgba(0, 102, 255, 0.08);
  --text: #1a1a1a;
  --text-muted: #666666;
  --text-light: #888888;
  --bg: #ffffff;
  --bg-subtle: #f8f9fa;
  --border: #e8eaed;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-lg: 16px;
  --header-h: 70px;
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.site-brand-mark-sm {
  width: 28px;
  height: 28px;
  font-size: 14px;
  border-radius: 8px;
}

.site-brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

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

.site-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s ease;
  position: relative;
}

.site-nav-link:hover {
  color: var(--primary);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.site-link-back {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-link-back:hover {
  color: var(--primary);
}

.site-badge {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(0, 102, 255, 0.15);
}

/* —— Hero —— */
.site-hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: min(520px, 85vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg-subtle);
}

.site-hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}

.site-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(0, 102, 255, 0.07), transparent 60%);
}

.site-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 32px 72px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.site-hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.site-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}

.site-hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 28px;
}

.site-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-hero-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.35);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.btn-block {
  width: 100%;
  margin-top: auto;
}

.btn-disabled {
  display: flex;
  width: 100%;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--bg-subtle);
  color: var(--text-light);
  border: 1px solid var(--border);
  cursor: not-allowed;
  margin-top: auto;
}

/* —— Sections —— */
.site-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.site-section {
  padding: 80px 0;
}

.site-section.site-trust {
  background: var(--bg);
}

.site-section.site-download {
  background: var(--bg-subtle);
}

.site-section.site-changelog {
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text);
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* —— Trust cards —— */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.trust-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* —— Download —— */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.download-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-height: 260px;
}

.download-card-featured {
  border-color: rgba(0, 102, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 102, 255, 0.1);
}

.download-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.download-card-head h3 {
  font-size: 20px;
  font-weight: 600;
}

.download-card-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 2px;
}

.download-card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex: 1;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
  background-size: 24px 24px;
  background-position: center;
  background-repeat: no-repeat;
}

.platform-icon-android {
  background-color: #e8f5e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2334a853'%3E%3Cpath d='M17.6 9.48l1.84-3.18c.16-.31.04-.69-.26-.85a.637.637 0 0 0-.83.22l-1.88 3.24a11.43 11.43 0 0 0-8.94 0L5.65 5.67a.643.643 0 0 0-.87-.2c-.28.18-.37.54-.22.83L6.4 9.48A10.81 10.81 0 0 0 1 14.16v.61c0 .41.34.75.75.75h20.5c.41 0 .75-.34.75-.75v-.61a10.81 10.81 0 0 0-5.4-4.68zM7 16.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5zm10 0a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5z'/%3E%3C/svg%3E");
}

.platform-icon-ios {
  background-color: #f5f5f7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231d1d1f'%3E%3Cpath d='M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z'/%3E%3C/svg%3E");
}

.download-footer-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: stretch;
}

.qr-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.qr-box {
  width: 88px;
  height: 88px;
  border-radius: var(--radius);
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qr-pattern {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background-image:
    linear-gradient(135deg, #1a1a1a 25%, transparent 25%),
    linear-gradient(225deg, #1a1a1a 25%, transparent 25%),
    linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
    linear-gradient(315deg, #1a1a1a 25%, #e8eaed 25%);
  background-size: 12px 12px;
  background-position: 0 0, 6px 0, 6px -6px, 0 6px;
}

.qr-title {
  font-size: 15px;
  font-weight: 600;
}

.qr-sub {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

.notice-panel {
  padding: 24px 28px;
  background: var(--bg);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.notice-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.notice-list li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
  margin-top: 6px;
}

.notice-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

/* —— Changelog —— */
.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.changelog-item {
  padding: 24px 28px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.changelog-item-latest {
  background: var(--bg);
  border-color: rgba(0, 102, 255, 0.3);
  box-shadow: 0 4px 24px rgba(0, 102, 255, 0.08);
}

.changelog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.changelog-version {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.changelog-date {
  font-size: 13px;
  color: var(--text-light);
}

.changelog-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.changelog-tag-new {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(0, 102, 255, 0.2);
}

.changelog-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}

.changelog-bullets li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
  margin-top: 6px;
}

.changelog-bullets li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.site-footer-inner {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.site-footer-dot {
  color: var(--border);
}

.site-footer-tagline {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer-nav {
  display: flex;
  gap: 24px;
}

.site-footer-nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.site-footer-nav a:hover {
  color: var(--primary);
}

.site-footer-copy {
  padding: 14px 0 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .site-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 24px 56px;
  }

  .site-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

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

  .site-hero-visual {
    order: -1;
  }

  .site-hero-svg {
    max-width: 280px;
  }

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

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

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

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }

  .site-header-inner {
    padding: 0 16px;
  }

  .site-container {
    padding: 0 16px;
  }

  .site-section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .site-link-back {
    display: none;
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
