/* Yanten备忘录小程序官网 */
:root {
  --primary: #FF85A2;
  --primary-dark: #E66B8A;
  --accent: #4ECDC4;
  --bg: #1A1A2E;
  --bg-light: #16213E;
  --card: rgba(255,255,255,0.08);
  --text: #FFFFFF;
  --text-muted: rgba(255,255,255,0.6);
  --border: rgba(255,255,255,0.1);
  --success: #22C55E;
  --gradient: linear-gradient(135deg, #FF85A2 0%, #4ECDC4 100%);
}

/* 浅色模式 */
[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-light: #F8F9FA;
  --card: rgba(0,0,0,0.04);
  --text: #1A1A2E;
  --text-muted: rgba(0,0,0,0.6);
  --border: rgba(0,0,0,0.1);
}

[data-theme="light"] .nav {
  background: rgba(255,255,255,0.9);
}

[data-theme="light"] .phone-mockup {
  background: #fff;
  border-color: #ddd;
}

[data-theme="light"] .mock-shopping,
[data-theme="light"] .mock-todo,
[data-theme="light"] .mock-calendar {
  background: rgba(0,0,0,0.03);
}

[data-theme="light"] .mock-item {
  background: rgba(0,0,0,0.05);
  color: #333;
}

[data-theme="light"] .cal-day {
  background: rgba(0,0,0,0.03);
  color: #333;
}

[data-theme="light"] .event-item {
  color: #333;
}

[data-theme="light"] .mock-header {
  color: #1A1A2E;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* 导航 */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26,26,46,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; text-decoration: none; }
.logo-icon { font-size: 24px; }
.logo-text { color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-menu { display: flex; gap: 32px; }
.nav-menu a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.3s; }
.nav-menu a:hover { color: var(--primary); }

/* 主题切换按钮 */
.theme-toggle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s;
}
.theme-toggle:hover {
  border-color: var(--primary);
  transform: rotate(15deg);
}

/* 汉堡菜单按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: radial-gradient(circle at 30% 40%, rgba(255,133,162,0.15) 0%, transparent 40%), radial-gradient(circle at 70% 60%, rgba(78,205,196,0.1) 0%, transparent 40%);
}

.hero-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

.hero-badge { display: inline-block; padding: 8px 16px; background: var(--card); border-radius: 20px; font-size: 14px; color: var(--accent); margin-bottom: 20px; }
.hero-title { font-size: 56px; font-weight: 700; margin-bottom: 12px; }
.hero-subtitle { font-size: 24px; color: var(--primary); margin-bottom: 24px; }
.hero-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: all 0.3s; }
.btn-primary { background: var(--gradient); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,133,162,0.3); }

/* 手机模型 */
.phone-mockup { width: 280px; height: 500px; background: #0f0f1a; border-radius: 40px; padding: 12px; border: 4px solid #333; box-shadow: 0 40px 80px rgba(0,0,0,0.4); margin-left: auto; }
.phone-screen { background: linear-gradient(180deg, #FF85A2 0%, #1A1A2E 100%); border-radius: 28px; height: 100%; overflow: hidden; }
.app-header { padding: 24px 20px; text-align: center; font-weight: 700; color: white; }
.app-content { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.app-card { background: rgba(255,255,255,0.95); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 12px; }
.card-icon { font-size: 24px; }
.card-count { margin-left: auto; font-size: 12px; color: var(--primary); font-weight: 500; }

/* Section */
.section-container { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.section-title { text-align: center; font-size: 40px; font-weight: 700; margin-bottom: 60px; }

/* 功能 */
.features { background: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 32px 24px; transition: all 0.3s; }
.feature-card:hover { border-color: var(--primary); transform: translateY(-5px); }

.feature-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 20px; }
.feature-icon.shopping { background: linear-gradient(135deg, #FF85A2, #FFA07A); }
.feature-icon.todo { background: linear-gradient(135deg, #4ECDC4, #44A08D); }
.feature-icon.calendar { background: linear-gradient(135deg, #667eea, #764ba2); }
.feature-icon.family { background: linear-gradient(135deg, #f093fb, #f5576c); }

.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.feature-card ul { list-style: none; }
.feature-card li { color: var(--text-muted); font-size: 14px; padding: 4px 0; }
.feature-card li::before { content: '✓ '; color: var(--accent); }

/* 功能预览 */
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.preview-item { text-align: center; }
.preview-image { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin-bottom: 16px; }

.mock-shopping, .mock-todo, .mock-calendar { background: rgba(255,255,255,0.95); border-radius: 12px; padding: 16px; min-height: 180px; }
.mock-header { font-weight: 600; margin-bottom: 12px; color: #333; }
.mock-list { display: flex; flex-direction: column; gap: 8px; }
.mock-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 6px; background: rgba(0,0,0,0.05); font-size: 14px; color: #333; }
.mock-item.done { opacity: 0.5; }
.mock-item.done .check { color: var(--success); }
.mock-item .check { color: #ccc; font-size: 16px; }
.mock-item .priority { color: #ccc; }
.mock-item.urgent .priority { color: #ef4444; }
.mock-item .assign { margin-left: auto; background: var(--primary); color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }

.mock-calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.cal-day { background: rgba(0,0,0,0.05); padding: 8px 4px; text-align: center; border-radius: 4px; font-size: 12px; color: #333; }
.cal-day.highlight { background: var(--primary); color: white; }
.cal-day .event { display: block; margin-top: 4px; }
.mock-event-list { display: flex; flex-direction: column; gap: 6px; }
.event-item { font-size: 14px; color: #333; }

.preview-item h3 { font-size: 20px; margin-bottom: 8px; }
.preview-item p { color: var(--text-muted); font-size: 15px; }

/* 下载 */
.download { background: var(--bg-light); }
.download-content { display: flex; flex-direction: column; align-items: center; gap: 40px; }

.download-qr { display: flex; justify-content: center; }
.qr-box { 
  background: linear-gradient(135deg, rgba(255,133,162,0.2) 0%, rgba(78,205,196,0.1) 100%);
  border: 2px solid var(--primary); 
  border-radius: 24px; 
  padding: 24px 28px;
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center; 
  text-align: center; 
  gap: 16px;
  box-shadow: 0 10px 40px rgba(255,133,162,0.15);
}
.qr-box img { 
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.qr-label { 
  font-size: 15px; 
  color: var(--primary); 
  font-weight: 500;
}

.download-info { text-align: center; max-width: 400px; }
.download-info h3 { font-size: 24px; margin-bottom: 24px; }
.download-ways { display: flex; flex-direction: column; gap: 20px; }
.way-item { display: flex; align-items: center; gap: 16px; background: var(--card); padding: 16px 24px; border-radius: 12px; }
.way-icon { font-size: 32px; }
.way-text { display: flex; flex-direction: column; gap: 4px; }
.way-title { font-weight: 600; }
.way-desc { color: var(--text-muted); font-size: 14px; }

/* 开发者 */
.developer-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; display: flex; gap: 32px; align-items: center; max-width: 800px; margin: 0 auto; }
.developer-avatar { width: 120px; height: 120px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary); }
.developer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.developer-info { flex: 1; }
.developer-info h3 { font-size: 28px; margin-bottom: 8px; }
.developer-title { color: var(--primary); font-size: 16px; margin-bottom: 16px; }
.developer-desc { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.developer-links { display: flex; gap: 16px; }
.developer-links a { display: flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; color: var(--text); text-decoration: none; transition: all 0.3s; }
.developer-links a:hover { border-color: var(--primary); }

/* 页脚 */
.footer { padding: 40px 24px; border-top: 1px solid var(--border); }
.footer-container { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-copyright { color: var(--text-muted); font-size: 14px; }

/* 备案号样式 */
.footer-beian {
  margin-top: 12px;
  font-size: 13px;
  color: #999;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-beian a {
  color: #999 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.footer-beian a:hover {
  color: #666;
}
.footer-beian .beian-divider {
  color: #ccc;
  margin: 0 4px;
}
.footer-beian .police-icon {
  width: 14px;
  height: 14px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 20px rgba(255,133,162,0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255,133,162,0.5);
}

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* 汉堡菜单 */
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    display: none;
  }
  .nav-menu.active { display: flex; }
  .nav-menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-menu a:last-child { border-bottom: none; }
  .nav-right { gap: 12px; }
  
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-title { font-size: 40px; }
  .hero-desc { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .phone-mockup { margin: 0 auto; transform: scale(0.85); }
  .features-grid { grid-template-columns: 1fr; }
  .developer-card { flex-direction: column; text-align: center; padding: 24px; }
  .developer-links { justify-content: center; flex-wrap: wrap; }
  .section-title { font-size: 32px; }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .hero-subtitle { font-size: 18px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .phone-mockup { transform: scale(0.75); }
  .footer-beian { flex-direction: column; gap: 8px; }
  .footer-beian .beian-divider { display: none; }
}
