/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #4CAF50;
  --primary-dark: #388E3C;
  --accent-color: #FF9800;
  --bg-color: #F5F5F5;
  --card-color: #FFFFFF;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-hint: #999999;
  --border-color: #E0E0E0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card-color);
  box-shadow: var(--shadow);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

/* 英雄区 */
.hero {
  padding: 8rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
  min-height: 100vh;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

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

.parrot-mascot {
  font-size: 15rem;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 功能展示 */
.features {
  padding: 6rem 2rem;
  background: white;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 16px;
  transition: all 0.3s;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.feature-list {
  list-style: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.feature-list li {
  padding: 0.25rem 0;
}

/* 小程序展示 */
.miniprogram-showcase {
  padding: 6rem 2rem;
  background: white;
}

.miniprogram-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: start;
}

.phone-mockup {
  display: flex;
  justify-content: center;
}

.phone-screen {
  width: 320px;
  height: 640px;
  background: #F5F5F5;
  border-radius: 40px;
  border: 12px solid #333;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.screen-header {
  background: #4CAF50;
  color: white;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  font-size: 12px;
}

.nav-bar {
  text-align: center;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
}

.screen-content {
  padding: 16px;
  height: calc(100% - 150px);
  overflow-y: auto;
}

.welcome-section {
  margin-bottom: 16px;
}

.welcome-section h3 {
  font-size: 20px;
  margin-bottom: 4px;
}

.welcome-section p {
  font-size: 13px;
  color: var(--text-secondary);
}

.parrot-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.parrot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.parrot-name {
  font-size: 18px;
  font-weight: bold;
}

.tag {
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 12px;
}

.parrot-avatar {
  font-size: 60px;
  text-align: center;
  margin-bottom: 12px;
}

.parrot-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat .number {
  font-size: 18px;
  font-weight: bold;
}

.stat .label {
  font-size: 11px;
  opacity: 0.9;
}

.quick-actions {
  display: flex;
  gap: 12px;
}

.action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: white;
  border-radius: 12px;
  gap: 8px;
}

.action-btn .icon {
  font-size: 32px;
}

.action-btn .label {
  font-size: 13px;
  color: var(--text-secondary);
}

.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #E0E0E0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tab-item .tab-icon {
  font-size: 24px;
}

.tab-item .tab-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.tab-item.active .tab-icon,
.tab-item.active .tab-label {
  color: var(--primary-color);
}

.qr-section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder {
  text-align: center;
  padding: 2rem;
}

.qr-icon {
  font-size: 80px;
  margin-bottom: 1rem;
}

.qr-code {
  margin: 2rem 0;
}

.qr-placeholder-image {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-pattern {
  width: 160px;
  height: 160px;
  background: white;
  border-radius: 8px;
}

.qr-hint {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* 在线体验 */
.demo {
  padding: 6rem 2rem;
  background: var(--bg-color);
}

.demo-container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.demo-tab {
  flex: 1;
  padding: 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.demo-tab:hover {
  background: white;
}

.demo-tab.active {
  background: white;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.demo-content {
  padding: 3rem;
  min-height: 400px;
}

.demo-panel {
  display: none;
}

.demo-panel.active {
  display: block;
}

.demo-placeholder {
  text-align: center;
  padding: 2rem;
}

.placeholder-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
}

.audio-preview,
.guide-preview {
  margin-top: 2rem;
  text-align: left;
}

.audio-item,
.guide-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--bg-color);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.audio-duration,
.guide-stats {
  font-size: 12px;
  color: var(--text-hint);
}

.btn-play {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  font-size: 1rem;
}

.guide-tag {
  padding: 0.25rem 0.75rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.75rem;
  margin-right: 1rem;
}

.guide-tag.danger {
  background: #f44336;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1.5rem;
  justify-content: center;
}

.feature-tag {
  padding: 6px 12px;
  background: #E8F5E9;
  color: var(--primary-color);
  border-radius: 16px;
  font-size: 13px;
}

/* 关于 */
.about {
  padding: 6rem 2rem;
  background: white;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text h3 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: var(--primary-color);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-list {
  list-style: none;
  color: var(--text-secondary);
}

.about-list li {
  padding: 0.5rem 0;
}

.platforms {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.platform-icon {
  font-size: 1.5rem;
}

.about-links {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.link-card {
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: 12px;
}

.link-card h4 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.link-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

/* 页脚 */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-left p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  margin-bottom: 1rem;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 6rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-image {
    order: -1;
  }
  
  .parrot-mascot {
    font-size: 8rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .demo-tabs {
    flex-wrap: wrap;
  }
  
  .demo-tab {
    flex: 1 0 50%;
  }
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.feature-card,
.demo-container {
  animation: fadeIn 0.6s ease-out;
}
