:root {
  --primary: #d946ef;
  --primary-hover: #c026d3;
  --secondary: #8b5cf6;
  --bg-main: #faf5ff;
  --bg-card: #ffffff;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --border-color: #f3e8ff;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Header & Nav */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; font-weight: bold; font-size: 1.2rem; color: var(--text-dark); }
.logo-wrap img { height: 32px; width: auto; border-radius: 6px; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 0.95rem; color: var(--text-light); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-dark); cursor: pointer; }

/* Hero Section */
.hero {
  padding: 60px 20px;
  background: linear-gradient(135deg, #fdf4ff 0%, #f3e8ff 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.hero h1 { font-size: 2.5rem; line-height: 1.3; margin-bottom: 20px; color: var(--text-dark); }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; }
.download-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-bottom: 40px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 14px rgba(217, 70, 239, 0.3); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background-color: var(--primary); color: white; }

.hero-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  perspective: 1000px;
}
.hero-img {
  width: 180px;
  height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s;
}
.hero-img:nth-child(1) { transform: rotateY(10deg) translateZ(-20px); }
.hero-img:nth-child(2) { transform: translateY(-15px); z-index: 3; }
.hero-img:nth-child(3) { transform: rotateY(-10deg) translateZ(-20px); }
.hero-img:hover { transform: translateY(-20px) scale(1.02); z-index: 10; }

/* Marquee */
.marquee-wrap {
  background: var(--text-dark);
  color: white;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-weight: bold;
  background: linear-gradient(90deg, #f472b6, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.1rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Main Content */
main { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
section { margin-bottom: 80px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2rem; color: var(--text-dark); margin-bottom: 10px; }
.section-title p { color: var(--text-light); }

/* 核心功能 - 卡片网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s;
  border: 1px solid var(--border-color);
}
.feature-card:hover { transform: translateY(-5px); }
.feature-card h3 { color: var(--primary); margin-bottom: 15px; font-size: 1.2rem; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; }

/* 使用教程 - 步骤条 */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.step-item {
  display: flex;
  gap: 20px;
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: flex-start;
}
.step-num {
  background: var(--secondary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}
.step-content h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step-content p { color: var(--text-light); font-size: 0.95rem; }

/* 角色广场 & 个性定制 - 左右结构 */
.split-section {
  display: flex;
  gap: 40px;
  align-items: center;
}
.split-section.reverse { flex-direction: row-reverse; }
.split-img {
  flex: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-content { flex: 1; }
.split-content h2 { font-size: 1.8rem; margin-bottom: 20px; }
.split-content ul { display: flex; flex-direction: column; gap: 12px; }
.split-content li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dark);
  font-size: 1rem;
}
.split-content li::before {
  content: "✦";
  color: var(--primary);
  font-size: 1.2rem;
}

/* AI聊天 - 问答风格 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.faq-item {
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.faq-q {
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a {
  padding: 0 20px 20px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* 隐私安全 - 色块 */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.privacy-item {
  background: #f0fdf4;
  padding: 20px;
  border-radius: var(--radius);
  border-left: 4px solid #22c55e;
}
.privacy-item h3 { font-size: 1.1rem; margin-bottom: 8px; color: #166534; }
.privacy-item p { font-size: 0.9rem; color: #15803d; }

/* 意见反馈 & 常见问题 */
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feedback-card {
  background: #fff7ed;
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
}
.feedback-card h3 { margin-bottom: 10px; color: #c2410c; }

/* 下载专区 */
.download-section {
  background: linear-gradient(135deg, #f3e8ff 0%, #e0e7ff 100%);
  padding: 60px 20px;
  border-radius: var(--radius);
  text-align: center;
}
.download-steps {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.dl-step {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  width: 200px;
  box-shadow: var(--shadow);
}
.dl-step span { display: block; font-size: 2rem; color: var(--primary); font-weight: bold; margin-bottom: 10px; }
.dl-step p { font-size: 0.9rem; color: var(--text-light); }

/* 页脚 */
footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 20px 20px;
  font-size: 0.85rem;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 { color: white; margin-bottom: 15px; font-size: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: white; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #374151;
  font-size: 0.8rem;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: white; }

/* 浮动下载窗口 */
.floating-download {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 20px;
  border-radius: 50px;
  box-shadow: 0 10px 25px rgba(217, 70, 239, 0.4);
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 999;
  border: 1px solid var(--border-color);
}
.floating-download img { width: 40px; height: 40px; border-radius: 8px; }
.floating-info { display: flex; flex-direction: column; }
.floating-info strong { font-size: 0.9rem; color: var(--text-dark); }
.floating-info span { font-size: 0.75rem; color: var(--text-light); }

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: white;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 400px;
  width: 100%;
  text-align: center;
}
.modal-content p { margin-bottom: 20px; font-size: 0.95rem; color: var(--text-dark); }
.modal-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  background: #f9fafb;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: white; padding: 20px; box-shadow: var(--shadow); }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }
  
  .hero h1 { font-size: 1.8rem; }
  .hero-images { flex-direction: column; align-items: center; gap: 10px; perspective: none; }
  .hero-img { width: 100%; max-width: 280px; height: auto; transform: none !important; }
  
  .split-section, .split-section.reverse { flex-direction: column; }
  .privacy-grid { grid-template-columns: 1fr; }
  .download-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  
  .floating-download { bottom: 10px; padding: 8px 15px; gap: 10px; width: calc(100% - 30px); justify-content: center; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-img { width: 140px; height: 250px; }
}