/* ===== 朵朵AI 首页样式（深度重构版） ===== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 配色升级：深色 + 紫蓝渐变 */
  --home-primary: #3b82f6;
  --home-primary-dark: #1d4ed8;
  --home-secondary: #60a5fa;
  --home-accent: #8b5cf6;
  --home-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --home-bg: linear-gradient(135deg, #0a0e14 0%, #0f172a 50%, #0a0e14 100%);
  --home-bg-glow: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(59, 130, 246, 0.15), transparent 60%);
  --home-panel: rgba(255, 255, 255, 0.04);
  --home-panel-hover: rgba(255, 255, 255, 0.07);
  --home-panel-strong: rgba(17, 24, 39, 0.92);
  --home-text: #f3f4f6;
  --home-muted: #94a3b8;
  --home-muted-light: #cbd5e1;
  --home-border: rgba(148, 163, 184, 0.15);
  --home-border-hover: rgba(59, 130, 246, 0.4);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--home-bg);
  color: var(--home-text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: var(--home-bg-glow);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--home-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--home-secondary);
  text-decoration: underline;
}

/* ===== 动效关键帧 ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header 顶部导航 ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--home-border);
}

.header-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--home-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--home-primary);
  text-decoration: none;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: block;
  object-fit: contain;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--home-muted);
  font-size: 13px;
  white-space: nowrap;
}

.language-selector select {
  height: 34px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  background: var(--home-panel);
  color: var(--home-text);
  font-size: 13px;
  cursor: pointer;
}

.language-selector select:focus {
  outline: 2px solid rgba(59, 130, 246, 0.35);
  outline-offset: 2px;
  border-color: var(--home-primary);
}

.main-nav a {
  color: var(--home-muted-light);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: var(--home-text);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--home-primary);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--home-gradient);
  border-radius: 2px;
}

/* ===== Main 主区域 ===== */
main {
  display: block;
  position: relative;
  z-index: 1;
}

/* ===== Hero 区（左右分栏） ===== */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  animation: fadeUp 0.8s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--home-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: var(--home-text);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--home-muted-light);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--home-muted);
  font-weight: 500;
}

.hero-stats span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--home-gradient);
}

/* Hero 视觉区 */
.hero-visual {
  position: relative;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--home-border);
  animation: floatY 6s ease-in-out infinite;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.hero-float-card {
  position: absolute;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--home-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.hero-float-card.top-right {
  top: 16px;
  right: 16px;
  color: #10b981;
}

.hero-float-card.bottom-left {
  bottom: 16px;
  left: 16px;
  color: var(--home-secondary);
}

/* ===== 按钮 ===== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--home-gradient);
  color: #fff;
  border: none;
  background-size: 200% auto;
}

.btn-primary:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: var(--home-panel);
  color: var(--home-text);
  border: 1px solid var(--home-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--home-primary);
  color: var(--home-primary);
  text-decoration: none;
  transform: translateY(-2px);
  background: var(--home-panel-hover);
}

.btn-watermark {
  background: var(--home-gradient);
  color: #fff;
  border-color: transparent;
  background-size: 200% auto;
}

.btn-watermark:hover {
  background-position: right center;
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.35);
}

/* ===== 区块通用 ===== */
.tools-section,
.selling-points,
.platforms-section,
.faq-section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--home-text);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--home-muted);
  text-align: center;
  margin-bottom: 40px;
}

/* ===== 工具卡片区 ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tool-card {
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
}

.tool-card:hover {
  border-color: var(--home-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3);
}

.tool-screenshot {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
}

.tool-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tool-card:hover .tool-screenshot img {
  transform: scale(1.06);
}

.tool-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--home-text);
  margin-bottom: 10px;
}

.tool-card-desc {
  font-size: 14px;
  color: var(--home-muted-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tool-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--home-secondary);
  font-size: 12px;
  font-weight: 500;
}

.tool-link {
  display: inline-block;
  padding: 11px 22px;
  background: var(--home-gradient);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
  align-self: flex-start;
  background-size: 200% auto;
  margin-top: auto;
}

.tool-link:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ===== 卖点区 ===== */
.selling-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.selling-point-item {
  text-align: center;
  background: var(--home-panel);
  border-radius: 12px;
  padding: 28px 18px;
  border: 1px solid var(--home-border);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}

.selling-point-item:hover {
  border-color: var(--home-border-hover);
  transform: translateY(-3px);
  background: var(--home-panel-hover);
}

.selling-point-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  display: block;
}

.selling-point-item strong {
  display: block;
  color: var(--home-text);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.selling-point-item p {
  margin: 0;
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.6;
}

/* ===== 跨平台支持区 ===== */
.platforms-section {
  text-align: center;
}

.platforms-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.platform-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  padding: 16px 18px;
  min-width: 90px;
  transition: all 0.3s ease;
}

.platform-item:hover {
  border-color: var(--home-border-hover);
  transform: translateY(-2px);
  background: var(--home-panel-hover);
}

.platform-item img {
  width: 32px;
  height: 32px;
}

.platform-item span {
  font-size: 12px;
  color: var(--home-muted);
}

/* ===== FAQ 区（手风琴） ===== */
.faq-list {
  margin-top: 32px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--home-panel);
  border: 1px solid var(--home-border);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: var(--home-border-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--home-text);
  user-select: none;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--home-panel-hover);
}

.faq-toggle {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--home-secondary);
  transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 22px;
  color: var(--home-muted-light);
  font-size: 14px;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 22px 18px;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--home-border);
  background: rgba(10, 14, 20, 0.6);
  backdrop-filter: blur(12px);
  padding: 48px 24px 24px;
  margin-top: 56px;
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--home-text);
}

.footer-logo-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: block;
  object-fit: contain;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--home-muted);
  line-height: 1.6;
}

.footer-title {
  color: var(--home-text);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  padding: 4px 0;
}

.footer-links a {
  color: var(--home-muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--home-primary);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--home-border);
  padding-top: 18px;
  text-align: center;
}

.footer-copyright {
  font-size: 12px;
  color: var(--home-muted);
  margin: 0;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-content {
    max-width: 560px;
    margin: 0 auto;
  }

  .hero-actions,
  .hero-stats {
    justify-content: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 48px 20px 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .selling-points-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .header-container {
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    align-items: flex-start;
  }

  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .header-container {
    padding: 0 16px;
  }

  .hero {
    padding: 32px 16px 28px;
  }

  .hero h1 {
    font-size: 26px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    text-align: center;
  }

  .selling-points-grid {
    grid-template-columns: 1fr;
  }

  .platforms-grid {
    gap: 10px;
  }

  .platform-item {
    min-width: 72px;
    padding: 12px 10px;
  }

  .main-nav {
    gap: 14px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .logo {
    font-size: 18px;
  }

  .header-actions {
    gap: 6px;
  }

  .language-selector span {
    display: none;
  }

  .language-selector select {
    max-width: 112px;
  }
}
