/* 主页 - 现代简洁风格 */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
  color: #1e293b;
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

.home-page .home-footer {
  margin-top: auto;
}

/* 顶部导航 */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.home-nav .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  transition: opacity .2s;
}
.home-nav .logo:hover {
  opacity: .85;
}
.home-nav .logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.home-nav .nav-center {
  display: flex;
  gap: 32px;
  align-items: center;
}
.home-nav .nav-link {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.home-nav .nav-link:hover {
  color: #0f172a;
}
.home-nav .nav-link.active {
  color: #6366f1;
}
.home-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.home-nav .welcome {
  font-size: 14px;
  color: #64748b;
}
.home-nav .btn-logout {
  padding: 8px 20px;
  background: #fee2e2;
  color: #b91c1c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.home-nav .btn-logout:hover {
  background: #fecaca;
}
.home-nav .btn-register {
  padding: 10px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
  transition: transform .2s, box-shadow .2s;
}
.home-nav .btn-register:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,.4);
}

/* Hero 区域 */
.home-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 100px;
}
.hero-content {
  flex: 1;
  max-width: 500px;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(99,102,241,.1);
  color: #6366f1;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-content .hero-sub {
  font-size: 17px;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 16px;
}
.btn-primary-hero {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,.45);
}
.btn-secondary-hero {
  display: inline-block;
  padding: 14px 28px;
  background: #fff;
  color: #475569;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: border-color .2s, background .2s;
}
.btn-secondary-hero:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

/* 应用窗口预览 */
.hero-app-window {
  flex-shrink: 0;
  width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.15), 0 0 0 1px rgba(0,0,0,.05);
  overflow: hidden;
}
.app-window-bar {
  padding: 14px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}
.app-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.app-dot:first-child { background: #94a3b8; }
.app-window-body {
  padding: 20px;
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.app-header .app-title {
  font-size: 15px;
  font-weight: 600;
  color: #334155;
}
.app-header .app-status {
  font-size: 12px;
  color: #94a3b8;
}
.app-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.app-actions .btn-new {
  flex: 1;
  padding: 10px 14px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
  transition: opacity .2s;
}
.app-actions .btn-new:hover {
  opacity: .92;
}
.app-actions .btn-import {
  flex: 1;
  padding: 10px 14px;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: background .2s;
}
.app-actions .btn-import:hover {
  background: #e2e8f0;
}
.app-preview-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  transition: background .2s;
}
.app-preview-item:hover {
  background: #f1f5f9;
}
.app-preview-item .item-arrow {
  color: #94a3b8;
  font-size: 12px;
}

/* 产品功能 */
.home-features {
  padding: 80px 48px 100px;
  background: #fff;
}
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  font-size: 16px;
  color: #64748b;
  margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 32px 24px;
  border: 1px solid #e2e8f0;
  transition: all .25s;
}
.feature-card:hover {
  background: #fff;
  border-color: rgba(99,102,241,.2);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
  transform: translateY(-4px);
}
.feature-icon-wrap {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon {
  font-size: 26px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: #64748b;
  line-height: 1.65;
}

/* 页脚 */
.home-footer {
  padding: 32px 48px;
  text-align: center;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}
.home-footer p {
  font-size: 14px;
  color: #94a3b8;
}
.home-footer-icp {
  margin-top: 10px;
  margin-bottom: 0;
}
.home-footer-icp a {
  color: #94a3b8;
  text-decoration: none;
}
.home-footer-icp a:hover {
  color: #64748b;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .home-hero {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding: 60px 24px 80px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-content h1 {
    font-size: 34px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-badge {
    margin-bottom: 16px;
  }
  .hero-app-window {
    width: 100%;
    max-width: 400px;
  }
  .home-nav .nav-center {
    display: none;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-features {
    padding: 60px 24px 80px;
  }
}

@media (max-width: 768px) {
  .home-nav {
    padding: 14px 24px;
  }
  .home-hero {
    padding: 48px 20px 64px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-actions {
    flex-direction: column;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .home-features {
    padding: 48px 20px 64px;
  }
  .section-title {
    font-size: 26px;
  }
}
