/* 创意随手记 - 官网落地页样式（响应式，PC + H5 一套代码） */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --text: #2d3748;
  --text-light: #718096;
  --bg: #ffffff;
  --bg-alt: #f7fafc;
}
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===================== 导航栏 ===================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0,0,0,0.05); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 20px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo span { font-size: 22px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-light); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-cta { background: var(--gradient); color: #fff !important; padding: 8px 20px; border-radius: 24px; transition: transform 0.2s; }
.nav-cta:hover { transform: translateY(-2px); }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* ===================== Hero ===================== */
.hero { padding: 140px 0 80px; text-align: center; background: var(--bg); overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; top: -50%; left: -20%; width: 140%; height: 200%; background: radial-gradient(ellipse at center, rgba(102,126,234,0.08) 0%, transparent 70%); pointer-events: none; }
.hero h1 { font-size: 56px; font-weight: 800; margin-bottom: 20px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.hero .subtitle { font-size: 20px; color: var(--text-light); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 32px; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.2s; border: none; text-align: center; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(102,126,234,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(102,126,234,0.45); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Hero 预览图 */
.hero-preview { position: relative; max-width: 320px; margin: 0 auto; }
.phone-frame { width: 280px; height: 560px; background: #1a1a1a; border-radius: 36px; padding: 12px; margin: 0 auto; box-shadow: 0 30px 60px rgba(0,0,0,0.2); position: relative; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(160deg, #667eea 0%, #764ba2 100%); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; padding: 24px; text-align: center; }
.phone-screen h3 { font-size: 18px; margin-bottom: 12px; }
.phone-screen .preview-img { width: 180px; height: 180px; background: rgba(255,255,255,0.2); border-radius: 16px; margin: 16px 0; display: flex; align-items: center; justify-content: center; font-size: 48px; }

/* ===================== 功能特色 ===================== */
.features { padding: 100px 0; background: var(--bg-alt); }
.section-title { text-align: center; font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 16px; margin-bottom: 60px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.feature-card { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.feature-icon { font-size: 40px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 600; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ===================== 使用流程 ===================== */
.how-it-works { padding: 100px 0; }
.steps { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.step { flex: 1; min-width: 240px; text-align: center; position: relative; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient); color: #fff; font-size: 24px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-light); font-size: 14px; }

/* ===================== Demo 展示 ===================== */
.demo-showcase { padding: 100px 0; background: var(--bg-alt); }
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.demo-item { aspect-ratio: 1; border-radius: 16px; overflow: hidden; position: relative; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-size: 56px; transition: transform 0.3s; }
.demo-item:hover { transform: scale(1.03); }
.demo-item::after { content: attr(data-label); position: absolute; bottom: 0; left: 0; right: 0; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,0.6)); color: #fff; font-size: 13px; }

/* ===================== CTA ===================== */
.cta-section { padding: 100px 0; text-align: center; background: var(--gradient); color: #fff; }
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { font-size: 18px; margin-bottom: 40px; opacity: 0.9; }
.cta-section .btn-primary { background: #fff; color: var(--primary); }
.cta-section .btn-primary:hover { background: #f0f0f0; }

/* ===================== Footer ===================== */
.footer { padding: 40px 0; background: #1a202c; color: #a0aec0; text-align: center; font-size: 14px; }
.footer a { color: #a0aec0; margin: 0 12px; transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer .copyright { margin-top: 16px; }

/* ===================== 响应式（H5 适配） ===================== */
@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid #eee; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .menu-toggle { display: block; }

  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 16px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 80%; max-width: 280px; }

  .phone-frame { width: 240px; height: 480px; }

  .section-title { font-size: 28px; }
  .features { padding: 60px 0; }
  .feature-card { padding: 24px; }

  .steps { flex-direction: column; }
  .step { margin-bottom: 32px; }

  .demo-showcase { padding: 60px 0; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-section { padding: 60px 0; }
  .cta-section h2 { font-size: 28px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .demo-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
}
