/* 个人智能工具箱 - 自定义样式 */
/* 基于 沙雕动画小助手 设计系统 */

/* ===== 字体引入 ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

:root {
  /* 蓝色系品牌色 */
  --color-primary: #2563EB;
  --color-secondary: #3B82F6;
  --color-accent: #06B6D4;
  --color-dark: #1E3A5F;
  --color-text: #374151;
  --color-text-light: #6B7280;
  --color-text-muted: #9CA3AF;

  /* 渐变 */
  --gradient-hero: linear-gradient(135deg, #1E3A8A 0%, #2563EB 50%, #06B6D4 100%);
  --gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  --gradient-warm: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  --gradient-brand: linear-gradient(135deg, #1E3A8A 0%, #2563EB 40%, #06B6D4 100%);
  --gradient-subtle: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 50%, #F0FDFA 100%);

  /* 圆角 */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  /* 阴影 */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  /* 过渡 */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ===== 全局基础 ===== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
}

/* ===== Hero Section ===== */
.hero-section {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 5rem 2rem;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: hero-float 20s ease-in-out infinite;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 60%);
  animation: hero-float-reverse 25s ease-in-out infinite;
  z-index: 1;
}

.hero-section > * {
  position: relative;
  z-index: 2;
}

@keyframes hero-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-10%, 5%) rotate(120deg); }
  66% { transform: translate(10%, -5%) rotate(240deg); }
}

@keyframes hero-float-reverse {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5%, -8%) rotate(180deg); }
}

.hero-main-title {
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 42rem;
  margin: 0 auto;
}

.hero-helper-text {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.6;
}

/* ===== 按钮样式 ===== */
.btn-primary {
  background: linear-gradient(135deg, #F59E0B 0%, #EF4444 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.125rem;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1.125rem;
  transition: all var(--transition-base);
  display: inline-block;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-outline {
  background: white;
  color: var(--color-primary);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  display: inline-block;
  text-decoration: none;
  border: 2px solid var(--color-primary);
  cursor: pointer;
}

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

/* ===== 视频演示区 ===== */
.video-section {
  padding: 5rem 1rem;
  background: #F9FAFB;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.video-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
  transition: all var(--transition-base);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-secondary);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 等比 */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Section 通用样式 ===== */
.section-container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 1rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #111827;
  text-align: center;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===== 三大核心卖点 ===== */
.pillars-section {
  padding: 4rem 1rem;
  background: white;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 72rem;
  margin: 0 auto;
}

.pillar-card {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--gradient-subtle);
  border: 1px solid #E0F2FE;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pillar-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== 产品介绍区 ===== */
.product-intro-section {
  padding: 5rem 1rem;
  background: #F9FAFB;
}

.product-intro-card {
  max-width: 52rem;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid #E5E7EB;
}

.product-intro-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.product-intro-text {
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 1rem;
}

.product-intro-highlight {
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(to bottom, transparent 60%, rgba(37, 99, 235, 0.12) 60%);
  padding: 0 2px;
}

.product-intro-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--gradient-subtle);
  border-radius: var(--radius-md);
  border: 1px solid #DBEAFE;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.step-arrow {
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

/* ===== 五大功能卖点 ===== */
.features-section {
  padding: 5rem 1rem;
  background: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.features-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}

.feature-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-base);
  border: 1px solid #E5E7EB;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.feature-card-number {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 3rem;
  font-weight: 900;
  color: rgba(37, 99, 235, 0.06);
  line-height: 1;
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.feature-card-text {
  font-size: 0.925rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== 适合谁使用 ===== */
.audience-section {
  padding: 5rem 1rem;
  background: #F9FAFB;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.audience-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition-base);
  border: 1px solid #F3F4F6;
  position: relative;
}

.audience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

.audience-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.audience-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

.audience-desc {
  font-size: 0.875rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ===== 痛点对比区 ===== */
.comparison-section {
  padding: 5rem 1rem;
  background: white;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 60rem;
  margin: 0 auto;
}

.comparison-col {
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.comparison-col-old {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.comparison-col-new {
  background: #F0FDF4;
  border: 2px solid #86EFAC;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.12);
}

.comparison-col-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.comparison-col-old .comparison-col-label {
  color: #DC2626;
}

.comparison-col-new .comparison-col-label {
  color: #16A34A;
}

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

.comparison-list li {
  padding: 0.625rem 0;
  font-size: 0.925rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}

.comparison-col-old .comparison-list li::before {
  content: '✕';
  color: #EF4444;
  font-weight: 700;
  flex-shrink: 0;
}

.comparison-col-new .comparison-list li::before {
  content: '✓';
  color: #22C55E;
  font-weight: 700;
  flex-shrink: 0;
}

.comparison-col-old .comparison-list li {
  color: #7F1D1D;
}

.comparison-col-new .comparison-list li {
  color: #14532D;
}

/* ===== 品牌表达区 ===== */
.brand-section {
  padding: 5rem 1rem;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.brand-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 1;
}

.brand-section > * {
  position: relative;
  z-index: 2;
}

.brand-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.brand-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
}

.brand-text {
  font-size: 1.05rem;
  line-height: 2;
  opacity: 0.9;
}

/* ===== 社会证明区 ===== */
.social-proof-section {
  padding: 4rem 1rem;
  background: #F9FAFB;
}

.social-proof-card {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid #E5E7EB;
}

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

.social-proof-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.75rem;
}

.social-proof-text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.social-proof-sub {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ===== 底部转化 CTA ===== */
.cta-section {
  padding: 5rem 1rem;
  background: white;
}

.cta-card {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  border: 2px solid #DBEAFE;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-text {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.cta-helper {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

/* ===== FAQ 手风琴 ===== */
.faq-section {
  padding: 5rem 1rem;
  background: #F9FAFB;
}

.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid #E5E7EB;
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  transition: color var(--transition-fast);
  font-family: inherit;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.925rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===== 备案信息 ===== */
.beian-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.beian-link:hover {
  color: #ffffff;
}

/* ===== 滚动动画 ===== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* delay utility */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ===== 工具卡片（保留给tools.html） ===== */
.tool-card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid #e5e7eb;
}

.tool-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-secondary);
}

/* ===== 徽章样式 ===== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-primary);
}

/* ===== 工具图标样式（保留给tools.html） ===== */
.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
}

/* ===== VIP弹窗按钮 ===== */
.btn-vip {
  background: white;
  color: #92400E;
  border: 2px solid #F59E0B;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  cursor: pointer;
}

.btn-vip:hover {
  background: #FFFBEB;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

/* ===== 焦点样式 ===== */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

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

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

@media (max-width: 768px) {
  .hero-main-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

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

  .features-grid > :last-child:nth-child(odd) {
    max-width: 100%;
  }

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

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

  .section-title {
    font-size: 1.5rem;
  }

  .product-intro-card {
    padding: 2rem;
  }

  .product-intro-steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .brand-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-outline {
    text-align: center;
  }
}