/* CursorUT.com — 浅色默认，可切换深色（与桌面端配色一致） */
:root {
  --bg: #e8ebf3;
  --bg-2: #dce1ed;
  --panel: #ffffff;
  --panel-2: #eef0f6;
  --border: #cdd2df;
  --text: #1a1f2e;
  --muted: #5c6478;
  --accent: #6366f1;
  --accent-2: #4f46e5;
  --accent-soft: #e2e5fc;
  --ok: #16a34a;
  --shadow: 0 24px 80px rgba(23, 38, 80, 0.14);
  --nav-bg: rgba(232, 235, 243, 0.9);
  --nav-border: rgba(205, 210, 223, 0.95);
  --grid-color: rgba(99, 102, 241, 0.09);
  --glow-color: rgba(99, 102, 241, 0.2);
  --hero-gradient: linear-gradient(135deg, #4f46e5 0%, var(--accent) 50%, #818cf8 100%);
  --radius: 14px;
  --max: 1120px;
}

:root[data-theme='dark'] {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --panel: #161a23;
  --panel-2: #1c212c;
  --border: #262c39;
  --text: #e6e9ef;
  --muted: #8b93a7;
  --accent: #818cf8;
  --accent-2: #6366f1;
  --accent-soft: rgba(129, 140, 248, 0.14);
  --ok: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(11, 13, 18, 0.82);
  --nav-border: rgba(38, 44, 57, 0.8);
  --grid-color: rgba(129, 140, 248, 0.04);
  --glow-color: rgba(99, 102, 241, 0.22);
  --hero-gradient: linear-gradient(135deg, #c7d2fe 0%, var(--accent) 50%, #a5b4fc 100%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(1200px 600px at 20% -10%, var(--bg-2) 0%, var(--bg) 55%);
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}

html:not([data-theme='dark']) body {
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
    radial-gradient(800px 420px at 92% 8%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
    linear-gradient(168deg, #dfe3ef 0%, var(--bg) 42%, #e2e6f0 100%);
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* 背景网格 */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.bg-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse, var(--glow-color) 0%, transparent 65%);
  pointer-events: none;
}

/* 导航 */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--nav-border);
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-lead em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--border);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-sun {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: block;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.15s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  background: var(--accent-2);
  color: #fff !important;
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
}

.nav-cta:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero h1 span {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

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

.btn-primary:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--panel);
  border-color: #38415a;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

:root[data-theme='dark'] .hero-pill {
  box-shadow: none;
}

.hero-pill:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.1);
  transform: translateY(-1px);
}

.hero-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-pill-icon svg {
  width: 18px;
  height: 18px;
}

.hero-pill-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.hero-pill-text strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
}

.hero-pill-text span {
  font-size: 0.75rem;
  color: var(--muted);
}

/* App 预览 mockup */
.mockup {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3a4252;
}

.mockup-dot:nth-child(1) {
  background: #ef4444;
}
.mockup-dot:nth-child(2) {
  background: #f59e0b;
}
.mockup-dot:nth-child(3) {
  background: #22c55e;
}

.mockup-title {
  margin-left: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.mockup-body {
  display: flex;
  min-height: 320px;
}

.mock-sidebar {
  width: 148px;
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  background: var(--bg-2);
}

.mock-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
}

.mock-logo img {
  width: 22px;
  height: 22px;
  border-radius: 5px;
}

.mock-nav-item {
  padding: 7px 10px;
  margin-bottom: 4px;
  border-radius: 8px;
  font-size: 0.72rem;
  color: var(--muted);
}

.mock-nav-item.on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.mock-main {
  flex: 1;
  padding: 14px 16px;
}

.mock-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.mock-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--panel-2);
}

.mock-icon.primary {
  background: var(--accent-soft);
  border-color: transparent;
}

.mock-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.68rem;
}

.mock-row {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.5fr;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.mock-row:last-child {
  border-bottom: none;
}

.mock-row.head {
  background: var(--bg-2);
  color: var(--muted);
  font-weight: 600;
}

.mock-acct {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mock-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), #a78bfa);
  flex-shrink: 0;
}

.mock-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 600;
}

.mock-float {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
}

/* Sections */
section {
  padding: 80px 0;
}

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

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.features {
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: #a5aec4;
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 28px 20px;
}

.step-num {
  width: 36px;
  height: 36px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Privacy */
.privacy-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-2) 100%);
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.privacy-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

.privacy-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Download */
.download-section {
  text-align: center;
}

.download-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 48px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--panel);
  margin-top: 8px;
}

.download-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.platform-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-tag {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.platform-tag.on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.download-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

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

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

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-icp {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .privacy-box {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .mockup {
    order: -1;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }
}
