@charset "UTF-8";

/* 页面滚动锁定 - 在生成图片时禁用滚动 */
body.scroll-locked {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
  top: 0 !important;
  left: 0 !important;
}

/* 防止iOS Safari的弹性滚动 */
body.scroll-locked {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
}

/* 防止Android Chrome的过度滚动 */
body.scroll-locked {
  overscroll-behavior-y: none;
}

:root {
  /* 现代专业风主色板 - 更加大气自然的配色 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --secondary-gradient: linear-gradient(45deg, #4facfe 0%, #00f2fe 50%, #43e97b 100%);
  --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #f093fb 70%, #4facfe 100%);
  
  /* 单色版本 - 用于需要单色的场景 */
  --primary-blue: #667eea;
  --secondary-blue: #4facfe;
  --accent-purple: #764ba2;
  --accent-pink: #f093fb;
  
  /* 交互与行动色 - 更加自然和谐 */
  --accent-green: #00A896;
  --accent-green-hover: #00C4A7;
  --accent-blue: #667eea;
  --accent-orange: #ff6b6b;
  --accent-gold: #ffd700;
  
  /* 背景与文字色 - 更加柔和自然 */
  --warm-white: #fefefe;
  --pure-white: #ffffff;
  --soft-gray: #f8f9fa;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --text-muted: #95a5a6;
  
  /* 阴影和边框 - 更加精致的层次感 */
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-medium: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.2);
  --border-radius: 24px;
  --border-radius-small: 16px;
  --border-radius-large: 32px;
  --border-color: #e9ecef;
  
  /* 新增：更自然的间距系统 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 24px;
  
  /* 动画时长 */
  --duration-fast: 0.2s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --duration-slower: 0.8s;
}

* {
  box-sizing: border-box;
}

/* 微妙的动画效果 */
@keyframes gentleFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-2px); }
}

@keyframes subtleGlow {
  0%, 100% { box-shadow: var(--shadow-soft); }
  50% { box-shadow: var(--shadow-medium); }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  margin: 0;
  color: var(--text-primary);
  background: #ffffff;
  min-height: 100vh;
  font-weight: 400;
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  padding-top: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  pointer-events: none;
  z-index: -1;
}

/* Top Navigation */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: none;
  padding: 4px 0 !important;
}


/* 简洁导航栏样式 - 按截图设计 */
.top-nav.floating-nav {
  background: #f5f5f5;
  border-radius: 50px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: none;
  margin: 20px auto;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  padding: 4px 24px;
  transition: all 0.3s ease;
  max-width: 1200px;
  width: calc(100% - 40px);
}

.top-nav.floating-nav:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(-2px);
}

.top-nav.homepage-nav {
  background: transparent !important;
  border-bottom: none !important;
  backdrop-filter: none !important;
  left: 0;           /* ensure not centered like floating nav */
  right: 0;
  transform: none;   /* override any translate from floating style */
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.top-nav.homepage-nav .nav-container {
  justify-content: flex-start !important;
  gap: 4px; /* tighter */
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4) !important;
}

.top-nav.homepage-nav .nav-brand {
  margin: 0 !important; /* remove side margins */
  color: #fff;
  display: flex;
  align-items: center;
}

.top-nav.homepage-nav .nav-brand span { color: #fff; }

.top-nav.homepage-nav .nav-brand-icon {
  background: #fff;
  color: #000;
}

.top-nav.homepage-nav .nav-small-title {
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  margin: 0; /* no extra spacing */
}

.top-nav.homepage-nav .nav-desktop {
  gap: 32px;
}

.top-nav.homepage-nav .nav-desktop a {
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.top-nav.homepage-nav .nav-desktop a:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Homepage header: force transparent links (including anchor/hash and active) */
.top-nav.homepage-nav .nav-desktop a[href^="#"] {
  background: transparent !important;
  border: none !important;
}

.top-nav.homepage-nav .nav-desktop a.nav-active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Homepage header: transparent mobile toggle and dropdown */
.top-nav.homepage-nav .menu-toggle {
  background: transparent !important;
  border: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.top-nav.homepage-nav .nav-dropdown .dropdown-menu {
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(102, 126, 234, 0.3) !important;
  backdrop-filter: blur(20px) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15) !important;
}

.top-nav.homepage-nav .nav-dropdown .dropdown-menu a.dropdown-link {
  background: transparent !important;
  border: none !important;
  color: #667eea !important;
}

.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Small title on the left */
.nav-small-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-right: 20px;
  flex-shrink: 0;
}


.nav-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  background: rgba(0, 0, 0, 0.7) !important;
}

/* Small title on the left */
.nav-small-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  margin-right: 20px;
  flex-shrink: 0;
}

/* Brand logo in center */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 40px;
  flex-shrink: 0; /* prevent brand from shrinking */
}

/* Desktop navigation on the right */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
  margin-left: auto; /* push menu to the right */
  width: auto;
}

.nav-brand-icon {
  width: 24px;
  height: 24px;
  background: #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.nav-logo {
  width: 70px;
  height: 60px;
  object-fit: contain;
}

/* 导航链接区域 */
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

/* 右侧按钮区域 */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-cta-button {
  background: white;
  color: #333;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.nav-cta-button:hover {
  background: #f0f0f0;
  color: #000;
}

/* Desktop Navigation - 简洁布局 */
.nav-desktop {
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
}

.nav-desktop a {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 18px;
  padding: 6px 12px;
  text-decoration: none;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.nav-desktop a:hover {
  background: rgba(255, 182, 193, 0.2);
  border-color: rgba(255, 182, 193, 0.5);
  transform: translateY(-1px);
}

.nav-desktop a.nav-active {
  background: var(--primary-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.nav-desktop a.nav-active:hover {
  background: var(--secondary-gradient);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}


/* 简洁导航栏链接样式 */
.top-nav.floating-nav .nav-desktop a {
  background: transparent;
  border: none;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  padding: 6px 20px;
  border-radius: 25px;
  letter-spacing: 0.3px;
}

.top-nav.floating-nav .nav-desktop a:hover {
  background: rgba(0, 0, 0, 0.08);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.top-nav.floating-nav .nav-desktop a.nav-active {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.3);
}

.top-nav.floating-nav .nav-desktop a.nav-active:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* 锚点链接样式 */
.nav-desktop a[href^="#"]:not(.nav-active) {
  background: rgba(102, 126, 234, 0.1);
  border-color: rgba(102, 126, 234, 0.3);
  color: var(--primary-blue);
}

.nav-desktop a[href^="#"]:not(.nav-active):hover {
  background: rgba(102, 126, 234, 0.2);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-1px);
}

/* Mobile Navigation */
.nav-mobile {
  display: none;
  position: relative;
}


.menu-toggle {
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 8px;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 悬浮导航栏中的移动端菜单按钮 - 简化样式 */
.top-nav.floating-nav .menu-toggle {
  background: transparent;
  border: none;
  color: var(--primary-blue);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.top-nav.floating-nav .menu-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: none;
  box-shadow: none;
}

.top-nav.floating-nav .menu-toggle.active {
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary-blue);
  transform: none;
  box-shadow: none;
}

.menu-toggle {
  font-weight: 500;
  color: #2d3436;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.menu-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
}

.menu-toggle.active {
  background: rgba(102, 126, 234, 0.15);
  color: var(--primary-blue);
}

.menu-icon {
  font-size: 16px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 16px;
  padding: 8px;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #2d3436;
  font-size: 14px;
  font-weight: 500;
  border-radius: 12px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255, 182, 193, 0.15);
}

.dropdown-menu a.nav-active {
  background: var(--primary-gradient);
  color: white;
  border-radius: 12px;
}

.dropdown-menu a.nav-active:hover {
  background: var(--secondary-gradient);
}

/* 悬浮导航栏中的下拉菜单样式 */
.top-nav.floating-nav .dropdown-menu {
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
}

.top-nav.floating-nav .dropdown-menu a {
  color: var(--primary-blue);
  font-weight: 500;
  transition: all 0.3s ease;
}

.top-nav.floating-nav .dropdown-menu a:hover {
  background: rgba(102, 126, 234, 0.15);
  transform: translateX(4px);
}

.top-nav.floating-nav .dropdown-menu a.nav-active {
  background: var(--primary-gradient);
  color: white;
}

/* 移动端锚点链接样式 */
.dropdown-menu a[href^="#"]:not(.nav-active) {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary-blue);
}

.dropdown-menu a[href^="#"]:not(.nav-active):hover {
  background: rgba(102, 126, 234, 0.2);
}

/* 移动端小标题样式 - 优化宽度适配 */
@media (max-width: 768px) {
  .nav-small-title {
    font-size: 9px;
    margin-right: 6px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100vw - 100px); /* 确保标题能充分利用屏幕宽度 */
  }
  
  .nav-brand {
    margin: 0;
  }
  
  .nav-desktop {
    display: none;
  }
}

/* Prevent menu from being cut off on small screens */
@media (max-width: 480px) {
  .dropdown-menu {
    right: 0;
    left: auto;
    min-width: 160px;
    max-width: calc(100vw - 20px);
    transform: translateX(0);
  }
  
  .top-nav {
    padding: 8px 0 !important;
  }
  
  .nav-desktop a,
  .menu-toggle {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .nav-container {
    justify-content: space-between;
    padding: 0 8px;
    min-height: 50px;
    align-items: center;
  }
  
  .nav-brand {
    flex-shrink: 0;
  }
  
  .nav-small-title {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    max-width: calc(100vw - 100px); /* 小屏幕下进一步优化宽度 */
  }
  
  .nav-mobile {
    flex-shrink: 0;
    margin-left: 8px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .nav-small-title {
    font-size: 8px;
    max-width: calc(100vw - 70px); /* 超小屏幕下最大化利用空间 */
    margin-right: 4px;
  }
  
  .nav-brand {
    flex-shrink: 0;
  }
  
  .nav-mobile {
    margin-left: 6px;
  }
  
  /* 移动端菜单按钮样式优化 - 简化三横杆样式 */
  .menu-toggle {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    padding: 8px;
    font-size: 18px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    min-width: 40px;
    flex-shrink: 0;
  }
  
  .menu-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
  }
  
  .menu-icon {
    font-size: 20px;
    line-height: 1;
  }
  
  /* Extra small screens - even smaller mood buttons */
  .mood-btn {
    width: 50px;
    height: 70px;
    font-size: 0;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 
                0 2px 4px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .mood-btn img {
    width: 24px;
    height: 24px;
    margin-bottom: 3px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
  }
  
  .mood-label {
    font-size: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6),
                 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
  }
  
  .mood-list {
    gap: 8px;
  }
}

/* Ultra small screens - minimal mood buttons for perfect 4-column fit */
@media (max-width: 360px) {
  .mood-btn {
    width: 45px;
    height: 60px;
    font-size: 0;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px;
    backdrop-filter: blur(20px);
    box-shadow: 0 3px 16px rgba(0, 0, 0, 0.5), 
                0 1px 3px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .mood-btn img {
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
  }
  
  .mood-label {
    font-size: 6px;
    color: #2d1b69;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8),
                 0 0 4px rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    font-weight: 600;
  }
  
  .mood-list {
    gap: 4px;
    padding: 0 2px;
  }
}

/* Mood Button Hover and Active States - Black Glassmorphism Theme */
.mood-btn:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, rgba(168, 85, 247, 0.3) 50%, rgba(192, 132, 252, 0.2) 100%) !important;
  border-color: rgba(139, 92, 246, 0.6) !important;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.4), 
              0 3px 6px rgba(139, 92, 246, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mood-btn:hover img {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.8))
          drop-shadow(0 0 12px rgba(168, 85, 247, 0.6))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mood-btn:hover .mood-label {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(139, 92, 246, 0.9),
               0 0 12px rgba(168, 85, 247, 0.6),
               0 2px 4px rgba(0, 0, 0, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

.mood-btn.active {
  background: rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 
              0 4px 8px rgba(0, 0, 0, 0.5),
              inset 0 2px 0 rgba(255, 255, 255, 0.15),
              0 0 20px rgba(255, 255, 255, 0.3);
}

.mood-btn.active img {
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.7))
          drop-shadow(0 0 16px rgba(255, 255, 255, 0.5))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mood-btn.active .mood-label {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9),
               0 0 16px rgba(255, 255, 255, 0.5),
               0 2px 4px rgba(0, 0, 0, 0.6),
               0 1px 2px rgba(0, 0, 0, 0.4);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md) var(--space-lg) var(--space-md);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}



.hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: var(--space-3xl);
  align-items: start;
  padding: var(--space-xl) 0 var(--space-2xl) 0;
  position: relative;
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 var(--space-lg) 0;
  font-weight: 800;
  line-height: 1.1;
  background: var(--hero-gradient);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: left;
  letter-spacing: -0.02em;
  position: relative;
  animation: gradientShift 8s ease-in-out infinite, fadeInUp 1s ease-out;
}

.hero h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
  opacity: 0.8;
}

.hero-title-mobile {
  display: none;
}

.hero-subtitle-mobile {
  display: none;
}

.hero-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.hero-nav a {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 182, 193, 0.3);
  border-radius: 20px;
  padding: 8px 16px;
  text-decoration: none;
  color: #2d3436;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-nav a:hover {
  background: rgba(255, 182, 193, 0.2);
  border-color: rgba(255, 182, 193, 0.5);
  transform: translateY(-1px);
}

.hero p {
  color: var(--text-secondary);
  margin: 0 0 var(--space-2xl) 0;
  font-size: 20px;
  line-height: 1.7;
  text-align: left;
  font-weight: 400;
  max-width: 600px;
}



input[type="text"], textarea {
  width: 100%;
  padding: var(--space-lg) var(--space-lg);
  border-radius: var(--border-radius-small);
  border: 2px solid var(--border-color);
  font-size: 16px; /* 16px prevents iOS Safari auto-zoom */
  background: var(--pure-white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  min-height: 60px;
  box-sizing: border-box;
  resize: none;
  box-shadow: var(--shadow-soft);
  /* Prevent mobile zoom on focus */
  -webkit-text-size-adjust: 100%;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

input[type="text"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), var(--shadow-medium);
  transform: translateY(-1px);
}

textarea {
  padding-bottom: 32px; /* Extra padding for character counter */
  line-height: 1.5;
  overflow: hidden; /* Hide scrollbar */
  max-height: 300px; /* Maximum height before scrolling */
}


.controls {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
  align-items: center;
}

button {
  background: var(--primary-gradient);
  background-size: 200% 200%;
  backdrop-filter: blur(20px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--border-radius-small);
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  box-shadow: var(--shadow-soft);
  animation: fadeInUp 0.8s ease-out both, gradientShift 6s ease-in-out infinite;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

button:hover::before {
  left: 100%;
}

button:hover {
  background: var(--secondary-gradient);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 255, 255, 0.5);
}

button:active {
  transform: translateY(0) scale(1) !important;
  box-shadow: var(--shadow-soft);
}

button.secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

/* 专门为生成按钮设置绿色样式 */
#generateBtn {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-green-hover) 100%) !important;
  background-size: 200% 200% !important;
  border: 1px solid var(--accent-green) !important;
  color: white !important;
  box-shadow: var(--shadow-medium), 0 0 20px rgba(0, 168, 150, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.4s both, gradientShift 4s ease-in-out infinite !important;
}

#generateBtn::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

#generateBtn:hover {
  background: linear-gradient(135deg, var(--accent-green-hover) 0%, #00E5C4 100%) !important;
  border-color: var(--accent-green-hover) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover), 0 0 30px rgba(0, 168, 150, 0.4);
}

#generateBtn:disabled {
  background: rgba(0, 168, 150, 0.6) !important;
  border-color: rgba(0, 168, 150, 0.6) !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-soft);
}










































/* 移动端适配 */
/* 移动端全局适配 - 防止水平滚动 */
@media (max-width: 768px) {
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  html {
    overflow-x: hidden;
    width: 100%;
  }
  
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    padding-top: 60px;
  }
  
  .container {
    padding: 0 4px 8px 4px;
    margin: 0;
    width: 100%;
    max-width: 100vw;
  }

  /* 确保所有section都能完整显示 */
  section {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }

  /* 确保所有图片都能适配 */
  img {
    max-width: 100%;
    height: auto;
  }

  /* 确保所有按钮都能适配 */
  button {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .app-footer {
    padding: 0.75rem 1rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
  
  .footer-text {
    font-size: 0.8rem;
  }
  
  .footer-links {
    justify-content: center;
    gap: 0.25rem;
  }
  
  .footer-link {
    font-size: 0.8rem;
    padding: 0.2rem 0.4rem;
  }
  
  .footer-separator {
    margin: 0 0.2rem;
  }
  
  .version-indicator {
    bottom: 15px;
    right: 15px;
    font-size: 9px;
    padding: 3px 6px;
  }
  
  /* 移动端功能描述模块统一样式 */
  
  .faq h2, .features h2, .help h2, .guide-section h2, .related-articles h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  
  .faq h3, .features h3, .help h3, .guide-section h3, .related-articles h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .faq p, .features p, .help p, .guide-section p, .related-articles p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  
  .faq ol, .features ol, .help ol, .guide-section ol, .related-articles ol {
    padding-left: 20px;
    margin-bottom: 16px;
  }
  
  .faq li, .features li, .help li, .guide-section li, .related-articles li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
  }
  
  .faq ul, .features ul, .help ul, .guide-section ul, .related-articles ul {
    padding-left: 20px;
    margin-bottom: 16px;
  }
  
  .faq details, .features details, .help details, .guide-section details, .related-articles details {
    margin-bottom: 6px;
  }
  
  .faq summary, .features summary, .help summary, .guide-section summary, .related-articles summary {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    padding: 8px 0;
  }
  
  .faq details p, .features details p, .help details p, .guide-section details p, .related-articles details p {
    font-size: 13px;
    line-height: 1.4;
    margin-top: 8px;
    margin-bottom: 0;
  }
  
  /* 移动端指南步骤样式 */
  .guide-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .guide-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
  }
  
  .step-number {
    width: 32px;
    height: 32px;
    background: var(--accent-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .step-content h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-primary);
  }
  
  .step-content p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 0;
  }
  
  /* 移动端文章网格样式 */
  .articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }
  
  .article-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .article-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .article-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
  }
  
  .article-card h3 a:hover {
    color: var(--accent-blue);
  }
  
  .article-card p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  
  .read-more {
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
  }
  
  .read-more:hover {
    text-decoration: underline;
  }
  
  .view-all-articles {
    text-align: center;
  }
  
  .btn-primary {
    display: inline-block;
    padding: 12px 24px;
    background: var(--accent-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
  }
  
  .btn-primary:hover {
    background: var(--accent-blue-dark);
    transform: translateY(-2px);
  }
  
}

@media (max-width: 480px) {
  .app-footer {
    padding: 0.5rem 0.75rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .footer-text {
    font-size: 0.75rem;
    margin: 0;
  }
  
  .footer-links {
    justify-content: center;
    gap: 0.2rem;
  }
  
  .footer-separator {
    margin: 0 0.15rem;
  }
  
  .footer-link {
    font-size: 0.75rem;
    padding: 0.15rem 0.3rem;
  }
  
  /* 超小屏幕功能描述模块样式 */
  .faq, .features, .help, .guide-section, .related-articles {
    padding: 16px 12px;
    margin-top: 24px;
  }
  
  .faq h2, .features h2, .help h2, .guide-section h2, .related-articles h2 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
  }
  
  .faq h3, .features h3, .help h3, .guide-section h3, .related-articles h3 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  
  .faq p, .features p, .help p, .guide-section p, .related-articles p {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
  }
  
  .faq ol, .features ol, .help ol, .guide-section ol, .related-articles ol {
    padding-left: 18px;
    margin-bottom: 12px;
  }
  
  .faq li, .features li, .help li, .guide-section li, .related-articles li {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  
  .faq ul, .features ul, .help ul, .guide-section ul, .related-articles ul {
    padding-left: 18px;
    margin-bottom: 12px;
  }
  
  .faq details, .features details, .help details, .guide-section details, .related-articles details {
    margin-bottom: 5px;
  }
  
  .faq summary, .features summary, .help summary, .guide-section summary, .related-articles summary {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    padding: 6px 0;
  }
  
  .faq details p, .features details p, .help details p, .guide-section details p, .related-articles details p {
    font-size: 20px;
    line-height: 1.3;
    margin-top: 6px;
    margin-bottom: 0;
  }
  
  /* 超小屏幕指南步骤样式 */
  .guide-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .guide-step {
    padding: 12px;
    gap: 8px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
  .step-content h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .step-content p {
    font-size: 20px;
    line-height: 1.3;
  }
  
  /* 超小屏幕文章网格样式 */
  .articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .article-card {
    padding: 12px;
  }
  
  .article-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  
  .article-card p {
    font-size: 20px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .read-more {
    font-size: 20px;
  }
  
  .btn-primary {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  /* 移动端快速链接样式 */
  .quick-links {
    margin-top: 16px;
    padding-top: 16px;
  }
  
  .quick-links h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .quick-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }
  
  .quick-link {
    padding: 12px 8px;
    flex: 0 0 auto;
    min-width: 120px;
  }
  
  .quick-link-icon {
    font-size: 20px;
    margin-bottom: 6px;
  }
  
  .quick-link-text {
    font-size: 20px;
  }
  
}

/* Footer Styles */
.app-footer {
  position: relative;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  backdrop-filter: blur(10px);
  border-top: none;
  box-shadow: 0 -2px 20px rgba(6, 182, 212, 0.15);
  padding: 1.5rem 2rem;
  z-index: 1000;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-text {
  color: hsl(222, 15%, 12%);
  font-size: 0.875rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: hsl(222, 15%, 12%);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}

.footer-link:hover {
  color: hsl(222, 15%, 25%);
  background: rgba(0, 0, 0, 0.05);
}

.footer-separator {
  color: hsl(222, 15%, 30%);
  font-size: 0.875rem;
  margin: 0 0.25rem;
}

.version-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.version-indicator:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}

/* Desktop Quick Links Styles */
.quick-links {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--border-color);
}

.quick-links h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}

.quick-links-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-small);
  padding: 20px 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  flex: 0 0 auto;
  min-width: 140px;
  box-shadow: var(--shadow-soft);
}

.quick-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-blue);
}

.quick-link-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.quick-link-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

.cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-hover);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(20px);
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-primary);
}

.cookie div:first-child {
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.4;
}

.cookie a {
  color: var(--accent-blue) !important;
  text-decoration: none;
  font-weight: 500;
}

.cookie a:hover {
  text-decoration: underline;
}

.cookie button {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie button:hover {
  background: var(--accent-blue-dark, #5a6fd8);
  transform: translateY(-1px);
}

.cookie button.secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--text-secondary);
}

.cookie button.secondary:hover {
  background: var(--text-secondary);
  color: white;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.modal.show {
  display: flex;
}

.modal .box {
  background: var(--pure-white);
  padding: 24px;
  border-radius: var(--border-radius);
  max-width: 1000px;
  width: 100%;
  box-shadow: var(--shadow-hover);
}

/* 拟态风格弹窗 */
.neumorphism-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(10px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.neumorphism-modal.show {
  display: flex;
  opacity: 1;
}

.neumorphism-box {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  border-radius: 20px;
  padding: 32px;
  max-width: 400px;
  width: 100%;
  box-shadow: 
    20px 20px 60px #d9d9d9,
    -20px -20px 60px #ffffff,
    inset 0px 1px 0px rgba(255,255,255,0.8),
    inset 0px -1px 0px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  text-align: center;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.neumorphism-modal.show .neumorphism-box {
  transform: scale(1);
}

.neumorphism-box h3 {
  margin: 0 0 16px 0;
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 600;
}

.neumorphism-box p {
  margin: 0 0 24px 0;
  color: var(--text-secondary);
  line-height: 1.5;
  font-size: 16px;
}

.neumorphism-box .icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.neumorphism-box .buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.neumorphism-btn {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 
    8px 8px 16px #d9d9d9,
    -8px -8px 16px #ffffff;
  transition: all 0.2s ease;
  min-width: 80px;
}

.neumorphism-btn:hover {
  box-shadow: 
    4px 4px 8px #d9d9d9,
    -4px -4px 8px #ffffff;
  transform: translateY(-1px);
}

.neumorphism-btn:active {
  box-shadow: 
    inset 4px 4px 8px #d9d9d9,
    inset -4px -4px 8px #ffffff;
  transform: translateY(0);
}

/* 图片展示模态框样式 */
.image-display-box {
  max-width: 90vw !important;
  max-height: 90vh !important;
  padding: 24px !important;
  overflow: hidden;
}

.image-display-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.image-display-header h3 {
  margin: 0 !important;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: rgba(0,0,0,0.1);
  color: var(--text-primary);
}

.image-display-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.image-container img {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  object-fit: contain;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .image-display-box {
    max-width: 95vw !important;
    max-height: 95vh !important;
    padding: 16px !important;
  }
  
  .image-display-header h3 {
    font-size: 16px;
  }
  
  .image-container img {
    max-height: 50vh;
  }
  
  .result-actions.modal-floating {
    flex-direction: column;
    width: 100%;
  }
  
  .result-actions.modal-floating button {
    width: 100%;
  }
}

.neumorphism-btn.primary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.1);
}

.neumorphism-btn.primary:hover {
  background: linear-gradient(135deg, #00C4A7 0%, #00E5C4 100%);
  border-color: rgba(0, 196, 167, 0.4);
  color: #000000;
  box-shadow: 
    4px 4px 8px rgba(0, 196, 167, 0.3),
    -4px -4px 8px rgba(0, 196, 167, 0.1);
}

.neumorphism-btn.danger {
  background: linear-gradient(145deg, #ff6b6b, #ff5252);
  color: white;
  box-shadow: 
    8px 8px 16px rgba(255, 107, 107, 0.3),
    -8px -8px 16px rgba(255, 107, 107, 0.1);
}

.neumorphism-btn.danger:hover {
  box-shadow: 
    4px 4px 8px rgba(255, 107, 107, 0.3),
    -4px -4px 8px rgba(255, 107, 107, 0.1);
}

/* Share Platform Buttons */
.share-platform-btn {
  background: linear-gradient(145deg, #f0f0f0, #ffffff);
  border: none;
  border-radius: 16px;
  padding: 16px 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 
    8px 8px 16px #d9d9d9,
    -8px -8px 16px #ffffff;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 80px;
  text-align: center;
}

.share-platform-btn:hover {
  box-shadow: 
    4px 4px 8px #d9d9d9,
    -4px -4px 8px #ffffff;
  transform: translateY(-2px);
}

.share-platform-btn:active {
  box-shadow: 
    inset 4px 4px 8px #d9d9d9,
    inset -4px -4px 8px #ffffff;
  transform: translateY(0);
}

.platform-icon {
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.platform-name {
  font-size: 20px;
  font-weight: 600;
  margin-top: 4px;
}

/* Mobile responsive for share modal */
@media (max-width: 768px) {
  .share-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .share-platform-btn {
    padding: 0px 0px !important;
    min-height: 0px !important;
  }
  
  .platform-icon {
    font-size: 20px !important;
  }
  
  .platform-name {
    font-size: 11px !important;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.generator, .preview, .faq, .features, .help {
  animation: fadeInUp 0.6s ease-out;
}

/* SEO优化：提高可读性和对比度 */
.hero {
  background: #ffffff;
  border-radius: var(--border-radius);
  padding: 40px 40px 20px 40px;
  margin-bottom: 0;
}

.generator {
  background: var(--pure-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-soft);
}

/* 移动端优先响应式设计 */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav-desktop {
    display: none;
  }
  
  /* 隐藏菜单文字，只显示图标 */
  .menu-text {
    display: none;
  }
  
  .nav-mobile {
    display: block;
  }
  
  .top-nav {
    padding: 8px 0 !important;
  }
  
  
  /* 移动端悬浮导航栏 */
  .top-nav.floating-nav {
    margin: 10px auto;
    padding: 6px 16px;
    border-radius: 25px;
    width: calc(100% - 20px);
    max-width: 600px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  /* 移动端导航布局 */
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-brand {
    font-size: 14px;
  }
  
  .nav-brand-icon {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }
  
  
  .nav-links {
    display: none;
  }
  
  .nav-actions {
    gap: 4px;
  }
  
  .nav-cta-button {
    padding: 6px 12px;
    font-size: 20px;
  }
  
  .nav-mobile {
    display: block;
  }
  
  /* 移动端：菜单分组样式 - 正能量温暖配色 */
  .top-nav.homepage-nav .menu-section {
    margin-bottom: 16px;
  }
  
  .top-nav.homepage-nav .menu-section:last-child {
    margin-bottom: 0;
  }
  
  /* 分组标题样式 - 使用正能量渐变 */
  .top-nav.homepage-nav .menu-section-title {
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px 12px;
    margin-bottom: 4px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    background-color: rgba(255, 215, 0, 0.08); /* 金色背景 */
    border-radius: 8px 8px 0 0;
    position: relative;
    overflow: hidden;
  }
  
  /* 分组标题的温暖光晕效果 */
  .top-nav.homepage-nav .menu-section-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    animation: shimmer 3s ease-in-out infinite;
  }
  
  @keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
  }
  
  /* 移动端：菜单项样式优化 - 温暖配色 */
  .top-nav.homepage-nav .dropdown-menu a {
    padding: 8px 16px;
    margin: 1px 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 6px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  /* 菜单项悬停效果 - 正能量渐变 */
  .top-nav.homepage-nav .dropdown-menu a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 50%, rgba(240, 147, 251, 0.1) 100%);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
  }
  
  /* 菜单项激活状态 - 温暖金色 */
  .top-nav.homepage-nav .dropdown-menu a:active {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.15) 100%);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateX(2px) scale(0.98);
  }

  .container {
    padding: 0 4px 8px 4px;
  }
  
  .hero {
    padding: calc(20px + 40px) 20px 20px;
    margin-bottom: 20px;
  }
  
  /* Mobile mood buttons - keep 4 columns but smaller */
  .mood-list {
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
    padding: 0 4px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .mood-btn {
    width: 60px;
    height: 75px;
    font-size: 0;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 
                0 2px 6px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .mood-btn img {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
  }
  
  .mood-label {
    font-size: 9px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6),
                 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
  }

  
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: calc(20px + 40px) 16px 20px;
    margin: 0 8px 20px;
    max-width: calc(100vw - 16px);
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .hero-title-desktop {
    display: none;
  }
  
  .hero-subtitle-desktop {
    display: none;
  }
  
  .hero-title-mobile {
    display: block;
    font-size: 28px;
    line-height: 1.3;
    margin-top: 20px;
    margin-bottom: 8px;
    text-align: left;
    font-weight: 700;
    background: var(--primary-gradient);  /* 使用新的品牌渐变色 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle-mobile {
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
    text-align: left;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.4;
  }

  /* 确保生成器在移动端完全适配 */
  .generator {
    width: 100%;
    max-width: 100%;
    padding: 20px 16px;
    margin: 0;
    box-sizing: border-box;
  }

  /* 确保预览区域在移动端完全适配 */
  .preview {
    width: 100%;
    max-width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  /* 确保aside区域不超出屏幕 */
  aside {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  .hero-nav {
    margin-top: 16px;
    margin-bottom: 24px;
    gap: 8px;
  }
  
  .hero-nav a {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 16px;
  }
  
  .generator {
    padding: 12px;
    margin: 0;
  }
  
  .mood-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 24px;
    padding: 0 4px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .mood-btn {
    width: 55px;
    height: 70px;
    font-size: 0;
    background: transparent !important;
  }
  
  .mood-btn img {
    width: 28px;
    height: 28px;
    margin-bottom: 3px;
  }
  
  .mood-label {
    font-size: 8px;
  }
  
  .input-actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .input-actions input {
    min-width: auto;
  }
  
  .input-actions button {
    min-width: auto;
    width: 100%;
  }
  
  .controls {
    margin-top: 20px;
  }
  
  .controls > div {
    flex-direction: column;
    gap: 10px;
  }
  
  .controls > div button {
    min-width: auto;
    width: 100%;
  }
  
  .preview {
    display: none !important;
  }
  
  .result-actions {
    display: none !important;
  }
  
  /* 但在模态框中显示下载和分享按钮 */
  .result-actions.modal-floating {
    display: flex !important;
  }
  
  /* 移动端 Cookie 弹窗优化 */
  .cookie {
    left: 4px;
    right: 4px;
    bottom: 4px;
    padding: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-radius: 16px;
  }
  
  .cookie > div:first-child {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .cookie > div:last-child {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  
  .cookie button {
    flex: 1;
    padding: 10px 16px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 12px;
  }
}

@media (max-width: 480px) {
  .cookie {
    left: 2px;
    right: 2px;
    bottom: 2px;
    padding: 12px;
    gap: 10px;
  }
  
  .cookie > div:first-child {
    font-size: 13px;
  }
  
  .cookie button {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 2px 4px 2px;
  }
  

  
  .hero h1 {
    font-size: 24px;
  }
  
  .generator {
    padding: 8px;
  }
  
  .mood-btn {
    width: 50px;
    height: 65px;
    font-size: 0;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 
                0 2px 4px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
  }
  
  .mood-btn img {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 1;
  }
  
  .mood-label {
    font-size: 7px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6),
                 0 1px 2px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
  }
  
  button {
    font-size: 15px;
    padding: 14px 20px;
    min-height: 52px;
  }
  
  input[type="text"], textarea {
    padding: 16px 18px;
    font-size: 16px;
    min-height: 52px;
  }
}

@media (min-width: 769px) {
  .container {
    padding: 0 12px 20px 12px;
  }
  
  .hero {
    grid-template-columns: 1fr 480px;
    gap: 40px;
  }
  
  .hero-title-desktop {
    display: block !important;
    margin-top: 20px;
  }
  
  .hero-subtitle-desktop {
    display: block !important;
  }
  
  .hero-title-mobile {
    display: none !important;
  }
  
  .hero-subtitle-mobile {
    display: none !important;
  }

  .mood-list {
    grid-template-columns: repeat(5, 1fr);
  }

  .preview {
    height: 360px;
    margin-top: 140px;/* add breathing room above preview area */
  }

  .result-actions:not(.modal-floating) {
    display: none !important; /* 隐藏历史图片上方的按钮，但保留模态框中的按钮 */
  }

  .result-actions button,
  .result-actions a {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* 超大屏幕优化 */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
    padding: 0 16px 24px 16px;
  }
  
  .hero {
    grid-template-columns: 1fr 520px;
    gap: 60px;
  }
  
  .generator {
    padding: 40px;
  }
}

/* Floating inside image modal */
.result-actions.modal-floating {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 500px;
  z-index: 10002;
  background: rgba(255,255,255,0.1);
  padding: 12px 16px;
  backdrop-filter: blur(20px);
  border-radius: var(--border-radius);
}

.result-actions.modal-floating button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  min-height: 60px; /* 确保所有按钮都有相同的最小高度 */
  justify-content: center; /* 垂直居中对齐内容 */
  white-space: normal;
}

.result-actions.modal-floating button .btn-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0; /* 防止图标被压缩 */
}

.result-actions.modal-floating button span {
  font-size: 20px;
  font-weight: 600;
  white-space: normal;
}

.result-actions.modal-floating button:active {
  transform: translateY(0) scale(1) !important;
  box-shadow: var(--shadow-soft);
}

/* My History Section */
.my-history {
  background: transparent;
  padding: 40px 32px;
  margin: 40px 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.my-history h2 {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-align: left;
  display: flex;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.my-history h2 img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .my-history {
    padding: 24px 16px;
    background: transparent;
    margin: 20px 8px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
  }
  
  .my-history h2 {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
  }
}

/* Today's Picks Section */
.todays-picks {
  background: transparent;
  padding: 40px 32px;
  margin: 40px 0;
  display: none; /* 默认隐藏，只有有历史记录时才显示 */
}

.todays-picks h2 {
  font-size: 18px;
  font-weight: 700;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #ffffff;
  margin: 0 0 16px 0;
  text-align: left;
  display: flex;
  align-items: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 1;
}

.picks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.pick-item {
  position: relative;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  background: var(--soft-gray);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pick-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.pick-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pick-loading {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@media (max-width: 768px) {
  .todays-picks {
    padding: 24px 16px;
    background: transparent;
    margin: 20px 8px;
    max-width: calc(100vw - 16px);
    box-sizing: border-box;
  }
  
  .todays-picks h2 {
    font-size: 18px;
    font-weight: 700;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    margin-bottom: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
  }
  
  .picks-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
  }
  
  .pick-item {
    min-height: 200px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ======= 生成进度展示框样式 ======= */
.generation-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.generation-modal.show {
  display: flex;
  opacity: 1;
}

.generation-box {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 400px;
  width: 90%;
  margin: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  text-align: center;
  position: relative;
  animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.progress-circle {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
}

.progress-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.progress-circle .progress-bg {
  fill: none;
  stroke: #e8f5e8;
  stroke-width: 8;
}

.progress-circle .progress-bar {
  fill: none;
  stroke: #4ecdc4;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.generation-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.generation-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.generation-step {
  display: flex;
  align-items: center;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.generation-step.completed {
  color: #27ae60;
}

.generation-step.active {
  color: var(--text-primary);
  font-weight: 500;
}

.step-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.generation-step.completed .step-icon {
  background: #27ae60;
  color: white;
}

.generation-step.active .step-icon {
  background: #4ecdc4;
  color: white;
  animation: pulse 1.5s infinite;
}

.generation-step:not(.completed):not(.active) .step-icon {
  background: #e8f5e8;
  color: #ffffff;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.testimonial-card {
  background: linear-gradient(135deg, #fff5f5 0%, #f0f8ff 100%);
  border-radius: 16px;
  padding: 20px;
  margin-top: 32px;
  position: relative;
}

/* 专门为generation-modal内的testimonial-card移除绿色边框 */
.generation-modal .testimonial-card {
  border-left: none !important;
}

.stars {
  color: #ffd700;
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-style: italic;
}

.dots-indicator {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.3s ease;
}

.dot.active {
  background: #4ecdc4;
}

/* 统一标题和图标样式 */
label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  display: block;
  text-align: left;
}

label strong {
  font-weight: 700;
  font-size: inherit;
}

/* 统一所有标题的图标大小 */
label img, h2 img, h4 img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ======= 页面特定样式 ======= */

/* Quotes Page Styles */
.quotes-categories {
  margin: var(--space-3xl) 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.category-card {
  background: var(--pure-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.category-card h3 {
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 var(--space-md) 0;
  font-style: italic;
}

.category-card .author {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* Category Card Links */
.category-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.3s ease;
}

.category-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.category-card-link:hover .category-card {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Category Stats */
.category-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-color);
}

.quote-count {
  background: var(--primary-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.read-time {
  color: var(--text-muted);
  font-size: 20px;
  font-weight: 500;
}

/* Featured Quotes Section */
.featured-quotes {
  background: var(--bg-secondary);
  padding: var(--space-3xl) 0;
  margin: var(--space-3xl) 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.featured-quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.featured-quote-card {
  background: var(--pure-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.featured-quote-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.featured-quote-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.featured-quote-card blockquote {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--space-md) 0;
  line-height: 1.5;
  font-style: italic;
}

.featured-quote-card cite {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  display: block;
  margin-bottom: var(--space-sm);
}

.quote-category {
  background: var(--primary-gradient);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.featured-quotes-cta {
  text-align: center;
}

/* Mobile Responsive Styles for Quotes */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .featured-quotes-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .featured-quote-card {
    padding: var(--space-lg);
  }
  
  .featured-quote-card blockquote {
    font-size: 1.1rem;
  }
  
  .category-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .quote-count {
    font-size: 11px;
    padding: 3px 10px;
  }
}

/* Articles Page Styles */
.articles-section {
  margin: var(--space-3xl) 0;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: var(--space-xl);
}

.article-card {
  background: var(--pure-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.article-card.featured {
  grid-column: span 2;
}

/* 首页文章卡片样式 - 直接子元素居中 */
.article-card > h3 {
  text-align: center !important;
}

.article-card > p {
  text-align: center !important;
}

.article-card > .read-more {
  text-align: center !important;
  display: block;
  margin: 0 auto;
}

.article-card .article-content {
  text-align: center;
}

.article-card .article-content h3 {
  text-align: center !important;
}

.article-card .article-content p {
  text-align: center !important;
}

.article-card .article-meta {
  justify-content: center;
}

.article-card .article-link {
  display: inline-flex;
  text-align: center;
}

.article-card.featured .article-content {
  text-align: center;
}

.article-card.featured .article-content h3 {
  text-align: center !important;
}

.article-card.featured .article-content p {
  text-align: center !important;
}

.article-card.featured .article-meta {
  justify-content: center;
}

.article-card.featured .article-link {
  display: inline-flex;
  text-align: center;
}

.article-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.article-image {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-card:hover .article-image img {
  transform: scale(1.08);
}

.article-content {
  padding: 20px;
}

.article-content h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.article-content p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0;
  transition: color 0.3s ease;
}

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 8px;
  justify-content: center;
}

.read-time {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  background: rgba(102, 126, 234, 0.1);
  padding: 3px 10px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.category {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  transition: all 0.3s ease;
}

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 12px;
  background: transparent;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
  border: 1.5px solid #e0e7ff;
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.article-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.article-link:hover {
  transform: translateY(-1px);
  background: #667eea;
  color: white;
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.article-link:hover::before {
  left: 100%;
}

.article-link::after {
  content: '→';
  font-size: 20px;
  transition: transform 0.3s ease;
}

.article-card:hover .article-content h3 {
  color: #667eea;
}

.article-card:hover .read-time {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.article-card:hover .category {
  background: rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
  transform: scale(1.02);
}

/* 整个卡片点击效果 */
.article-card:active {
  transform: translateY(-4px) scale(0.98);
  transition: transform 0.1s ease;
}

/* Newsletter Section */
.newsletter-section {
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  padding: var(--space-3xl);
  margin: var(--space-3xl) 0;
  text-align: center;
  color: white;
}

.newsletter-content h2 {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
}

.newsletter-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin: 0 0 var(--space-xl) 0;
}

.newsletter-form {
  display: flex;
  gap: var(--space-md);
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: var(--space-lg);
  border: none;
  border-radius: var(--border-radius-small);
  font-size: 16px;
}

.newsletter-form button {
  background: white;
  color: var(--primary-blue);
  border: none;
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--border-radius-small);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--soft-gray);
  transform: translateY(-2px);
}

/* Guide Page Styles */
.toc-section {
  margin: var(--space-3xl) 0;
}

.toc-section h2 {
  text-align: center;
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 var(--space-2xl) 0;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.toc-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--pure-white);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.toc-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.toc-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.toc-number {
  background: var(--primary-gradient);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.toc-content h3 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
}

.toc-content p {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0;
}

/* Chapter Sections */
.chapter-section {
  margin: var(--space-3xl) 0;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border-color);
}

.chapter-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.chapter-number {
  background: var(--primary-gradient);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: var(--space-md);
}

.chapter-header h2 {
  color: var(--text-primary);
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
}

.chapter-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  margin: 0;
}

.chapter-content {
  max-width: 800px;
  margin: 0 auto;
}

.content-block {
  background: var(--pure-white);
  border-radius: var(--border-radius);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

.content-block h3 {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 var(--space-lg) 0;
}

.content-block p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 var(--space-lg) 0;
}

.key-points {
  background: var(--soft-gray);
  border-radius: var(--border-radius-small);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.key-points h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-md) 0;
}

.key-points ul {
  margin: 0;
  padding-left: var(--space-lg);
}

.key-points li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.practice-box {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
  border: 1px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--border-radius-small);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.practice-box h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-md) 0;
}

.practice-box ol {
  margin: 0;
  padding-left: var(--space-lg);
}

.practice-box li {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.gratitude-exercises {
  margin-top: var(--space-lg);
}

.gratitude-exercises h4 {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-lg) 0;
}

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.exercise-card {
  background: var(--soft-gray);
  border-radius: var(--border-radius-small);
  padding: var(--space-lg);
  text-align: center;
}

.exercise-card h5 {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
}

.exercise-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Quick Start Section */
.quick-start-section {
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  padding: var(--space-3xl);
  margin: var(--space-3xl) 0;
  text-align: center;
  color: white;
}

.quick-start-content h2 {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
}

.quick-start-content > p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin: 0 0 var(--space-2xl) 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-2xl) 0;
}

.step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
  background: white;
  color: var(--primary-blue);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto var(--space-md) auto;
}

.step-item h3 {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 var(--space-sm) 0;
}

.step-item p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--border-radius-small);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cta-button.primary {
  background: white;
  color: var(--primary-blue);
}

.cta-button.primary:hover {
  background: var(--soft-gray);
  transform: translateY(-2px);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-button.secondary:hover {
  background: white;
  color: var(--primary-blue);
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  padding: var(--space-3xl);
  margin: var(--space-3xl) 0;
  text-align: center;
  color: white;
}

.cta-content h2 {
  color: white;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin: 0 0 var(--space-xl) 0;
}

/* 移动端适配 */
@media (max-width: 1200px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .category-grid,
  .articles-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .article-card.featured {
    grid-column: span 1;
  }
  
  .toc-grid {
    grid-template-columns: 1fr;
  }
  
  .toc-item {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .chapter-header h2 {
    font-size: 28px;
  }
  
  .content-block {
    padding: var(--space-lg);
  }
}

/* 移动端适配 */
@media (max-width: 480px) {
  .generation-box {
    padding: 32px 24px;
    margin: 16px;
  }
  
  .progress-circle {
    width: 100px;
    height: 100px;
    margin-bottom: 24px;
  }
  
  .progress-percentage {
    font-size: 24px;
  }
  
  .generation-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .generation-step {
    font-size: 14px;
    padding: 10px 0;
  }
  
  .testimonial-card {
    padding: 16px;
    margin-top: 24px;
  }
}

/* ======= History Gallery Styles ======= */
.history-gallery {
  margin-top: 0;
  width: 100%;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
  padding: 0;
  background: transparent;
  border-radius: var(--border-radius-small);
  backdrop-filter: blur(5px);
  border: none;
  display: none; /* 默认隐藏，只有当有历史记录时才显示 */
}

.history-gallery h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  text-align: left;
  opacity: 1;
}

.history-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  text-align: center;
  opacity: 0.8;
}

.history-grid {
  display: flex;
  flex-direction: row;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.history-item {
  position: relative;
  border-radius: var(--border-radius-small);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  flex: 0 0 auto;
  width: 84px;
  height: 105px;
  aspect-ratio: 4/5;
}

.history-item:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent-green);
}

.history-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.history-item:hover img {
  transform: scale(1.05);
}

.history-item .history-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 4px;
}

.history-item:hover .history-overlay {
  opacity: 1;
}

.history-time {
  color: white;
  font-size: 8px;
  font-weight: 500;
  opacity: 0.9;
}

.history-delete {
  position: absolute;
  top: 3px;
  right: 3px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 10px;
  cursor: pointer;
  display: none; /* 隐藏删除按钮 */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.history-item:hover .history-delete {
  opacity: 1;
}

.history-delete:hover {
  background: rgba(255, 59, 48, 0.8);
  transform: scale(1.1);
}

/* 空状态样式 */
.history-empty {
  text-align: center;
  padding: 20px 8px;
  color: var(--text-secondary);
  font-size: 10px;
  opacity: 0.6;
  line-height: 1.4;
}

/* 移除原有的响应式尺寸类，因为现在都是固定大小 */
.history-item.three-items,
.history-item.two-items,
.history-item.one-item {
  flex: 0 0 auto;
  width: 84px;
  height: 105px;
  aspect-ratio: 4/5;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .history-gallery {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    border: none;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .history-gallery h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: left;
  }
  
  .history-title {
    font-size: 16px;
    margin-bottom: 16px;
    font-weight: 700;
  }
  
  .history-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
  }
  
  .history-item {
    border-radius: 12px;
    width: 100%;
    min-height: 120px;
    max-height: 140px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    max-width: 100%;
    overflow: hidden;
  }
  
  .history-time {
    font-size: 10px;
  }
  
  .history-delete {
    width: 18px;
    height: 18px;
    font-size: 10px;
    top: 6px;
    right: 6px;
  }
  
  .history-empty {
    padding: 40px 20px;
    font-size: 14px;
    grid-column: 1 / -1;
    text-align: center;
  }
  
  /* 移动端模态框中的下载分享按钮优化 */
  .result-actions.modal-floating {
    bottom: 20px;
    width: 95%;
    max-width: none;
    padding: 12px;
    flex-direction: row;
    gap: 8px; /* 减少间距，给按钮更多空间 */
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(30px);
  }
  
  .result-actions.modal-floating button {
    flex: 1;
    padding: 12px 10px;
    font-size: 15px;
    font-weight: 600;
    white-space: normal;
    flex-direction: column;
    gap: 5px;
    min-height: 55px; /* 增加高度以容纳两行文本 */
    justify-content: center; /* 垂直居中对齐内容 */
    min-width: 100px; /* 增加最小宽度以支持文本换行 */
  }
  
  .result-actions.modal-floating button .btn-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0; /* 防止图标被压缩 */
  }
  
  .result-actions.modal-floating button span {
    font-size: 11px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
  
  .result-actions.modal-floating button:active {
    transform: translateY(0) scale(1) !important;
    box-shadow: var(--shadow-soft);
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .history-gallery {
    padding: 0;
  }
  
  .history-grid {
    gap: 6px;
  }
  
  .history-item {
    border-radius: 8px;
    min-height: 100px;
    max-height: 120px;
  }
  
  .history-gallery h4 {
    font-size: 16px;
    margin-bottom: 12px;
  }
}

/* ========================================
   ARTICLE TEMPLATE STYLES
   ======================================== */

/* Article Header */
.article-header {
  background: var(--hero-gradient);
  padding: var(--space-3xl) 0 var(--space-2xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.article-breadcrumb {
  margin-bottom: var(--space-lg);
  font-size: 14px;
  opacity: 0.9;
  margin-top: 0px; /* 为导航栏留出空间 */
  padding-right: 200px; /* 为右侧导航留出空间 */
}

.article-breadcrumb a {
  color: white;
  text-decoration: none;
  transition: opacity var(--duration-normal);
}

.article-breadcrumb a:hover {
  opacity: 0.8;
}

.breadcrumb-separator {
  margin: 0 var(--space-sm);
  opacity: 0.7;
}

.breadcrumb-current {
  opacity: 0.8;
}

.article-title-section {
  position: relative;
  z-index: 1;
}

.article-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin: 0 0 var(--space-lg);
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  font-size: 14px;
  opacity: 0.9;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.article-excerpt {
  font-size: 1.25rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 800px;
  margin: 0;
}

/* Article Content */
.article-content {
  padding: calc(var(--space-3xl) / 2) 0;
  background: var(--warm-white);
}

.article-content .container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-3xl);
  align-items: start;
}

.article-body {
  background: white;
  padding: var(--space-3xl);
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-soft);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: var(--space-3xl) 0 var(--space-lg);
  color: var(--text-primary);
  position: relative;
  padding-left: var(--space-lg);
}

.article-body h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 2rem;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.article-body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--text-primary);
}

.article-body p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.article-body ul, .article-body ol {
  margin: var(--space-lg) 0;
  padding-left: var(--space-xl);
}

.article-body li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

/* Quote Styles */
.quote-highlight {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 4px solid var(--accent-blue);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  border-radius: var(--border-radius);
  position: relative;
}

.quote-highlight::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-lg);
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0.3;
  font-family: serif;
}

.quote-highlight blockquote {
  font-size: 1.3rem;
  font-style: italic;
  margin: 0 0 var(--space-md);
  color: var(--text-primary);
  line-height: 1.6;
}

.quote-highlight cite {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.quote-list {
  margin: var(--space-2xl) 0;
}

.quote-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  transition: all var(--duration-normal);
  position: relative;
  overflow: hidden;
}

.quote-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--secondary-gradient);
  transition: width var(--duration-normal);
}

.quote-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.quote-item:hover::before {
  width: 8px;
}

.quote-item blockquote {
  font-size: 1.2rem;
  font-style: italic;
  margin: 0 0 var(--space-md);
  color: var(--text-primary);
  line-height: 1.6;
}

.quote-item cite {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: var(--space-xl);
}

.sidebar-widget {
  background: white;
  border-radius: var(--border-radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-soft);
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 var(--space-lg);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.related-articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: var(--space-md);
}

.related-articles a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color var(--duration-normal);
  display: block;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-color);
}

.related-articles a:hover {
  color: var(--accent-blue);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.article-tags .tag {
  background: var(--soft-gray);
  color: var(--text-secondary);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--border-radius-small);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--duration-normal);
}

.article-tags .tag:hover {
  background: var(--accent-blue);
  color: white;
}

.quick-quote {
  text-align: center;
}

.quick-quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin: 0 0 var(--space-md);
  color: var(--text-primary);
  line-height: 1.5;
}

.quick-quote cite {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 600;
}

.refresh-quote-btn {
  background: var(--accent-blue);
  color: white;
  border: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--duration-normal);
}

.refresh-quote-btn:hover {
  background: var(--accent-green);
  transform: translateY(-1px);
}

.generate-image-btn {
  display: inline-block;
  background: var(--primary-blue);
  color: white;
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius-small);
  font-size: 0.9rem;
  margin-top: var(--space-sm);
  transition: all var(--duration-normal);
  font-weight: 600;
}

.generate-image-btn:hover {
  background: var(--accent-purple);
  transform: translateY(-1px);
  color: white;
}

/* Article CTA */
.article-cta {
  background: var(--hero-gradient);
  padding: var(--space-3xl) 0;
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-lg);
}

.cta-content p {
  font-size: 1.2rem;
  margin: 0 0 var(--space-2xl);
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all var(--duration-normal);
  border: 2px solid transparent;
}

.cta-button.primary {
  background: white;
  color: var(--accent-blue);
}

.cta-button.primary:hover {
  background: var(--soft-gray);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.cta-button.secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-button.secondary:hover {
  background: white;
  color: var(--accent-blue);
  transform: translateY(-2px);
}

/* Content Sections */
.content-section {
  margin: var(--space-2xl) 0;
}

.content-section h2:first-child {
  margin-top: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .article-content .container {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .article-body {
    order: 0;
  }
  
  .article-sidebar {
    position: static;
    order: 1;
  }
  
  .sidebar-widget {
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 768px) {
  .article-header {
    padding: calc(var(--space-2xl) + 40px) 0 var(--space-xl);
  }
  
  .article-breadcrumb {
    margin-top: 0px; /* 移动端极小的顶部间距 */
    padding-right: 0; /* 移动端不需要右侧间距 */
  }
  
  .article-title {
    font-size: 2.5rem;
  }
  
  .article-meta {
    flex-direction: column;
    gap: var(--space-sm);
  }
  
  .article-body {
    padding: var(--space-xl);
  }
  
  .article-body h2 {
    font-size: 1.75rem;
    padding-left: var(--space-md);
  }
  
  .article-body h2::before {
    width: 3px;
    height: 1.5rem;
  }
  
  .quote-highlight {
    padding: var(--space-lg);
  }
  
  .quote-highlight::before {
    font-size: 3rem;
    left: var(--space-md);
  }
  
  .quote-item {
    padding: var(--space-lg);
  }
  
  .sidebar-widget {
    padding: var(--space-lg);
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

/* ===== 情绪圆圈显示样式 ===== */
.mood-circle-display {
  position: fixed;
  top: 100px;
  right: 200px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  transition: all 0.3s ease;
}

.mood-circle-display:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.mood-circle-display img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.mood-label-text {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mood-circle-display {
    width: 60px;
    height: 60px;
    top: 80px;
    right: 20px;
  }
  
  .mood-circle-display img {
    width: 35px;
    height: 35px;
  }
  
  .mood-label-text {
    font-size: 10px;
    bottom: -20px;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .mood-circle-display {
    width: 50px;
    height: 50px;
    top: 70px;
    right: 15px;
  }
  
  .mood-circle-display img {
    width: 30px;
    height: 30px;
  }
  
  .mood-label-text {
    font-size: 9px;
    bottom: -18px;
    padding: 1px 3px;
  }
}

/* ===== 换一批按钮样式 ===== */
.refresh-batch-wrapper {
  position: fixed;
  top: 210px;
  right: 200px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.refresh-batch-btn {
  width: 80px;
  height: 80px;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.refresh-batch-btn .refresh-icon {
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
  object-fit: contain;
  display: block;
}

.refresh-batch-wrapper .refresh-text {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  color: #333;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  pointer-events: none;
}

.refresh-batch-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.refresh-batch-btn:hover .refresh-icon {
  transform: rotate(180deg);
}

.refresh-batch-btn:active {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .refresh-batch-wrapper {
    top: 160px;
    right: 20px;
  }
  
  .refresh-batch-btn {
    width: 60px;
    height: 60px;
  }
  
  .refresh-batch-btn .refresh-icon {
    width: 30px;
    height: 30px;
  }
  
  .refresh-batch-wrapper .refresh-text {
    font-size: 10px;
    bottom: -20px;
    padding: 1px 4px;
  }
}

@media (max-width: 480px) {
  .refresh-batch-wrapper {
    top: 140px;
    right: 15px;
  }
  
  .refresh-batch-btn {
    width: 50px;
    height: 50px;
  }
  
  .refresh-batch-btn .refresh-icon {
    width: 25px;
    height: 25px;
  }
  
  .refresh-batch-wrapper .refresh-text {
    font-size: 9px;
    bottom: -18px;
    padding: 1px 3px;
  }
}

/* ===== 情绪选择弹窗样式 ===== */
.mood-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mood-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mood-modal {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: none;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s ease;
}

.mood-modal-overlay.show .mood-modal {
  transform: scale(1) translateY(0);
}



.mood-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  position: absolute;
  top: 15px;
  right: 15px;
}

.mood-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mood-modal-content {
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  position: relative;
}

.mood-modal-content h3 {
  margin: 0 0 20px 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: white;
  text-align: center;
}

.mood-list-modal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
}

.mood-btn-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  flex: 1;
  min-width: 0;
}

.mood-btn-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.2);
}

.mood-btn-modal.active {
  background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 25%, #C084FC 50%, #DDD6FE 75%, #F3E8FF 100%);
  color: #4C1D95;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
  transform: scale(1.05);
}

.mood-btn-modal img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 50%;
  transition: filter 0.3s ease;
}

.mood-btn-modal.active img {
  filter: brightness(1.1) contrast(1.1);
}

.mood-btn-modal .mood-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mood-modal {
    width: 95%;
    margin: 20px;
  }
  
  
  
  .mood-modal-content {
    padding: 25px;
  }
  
  .mood-modal-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
  }
  
  .mood-list-modal {
    gap: 10px;
    padding: 0 15px;
  }
  
  .mood-btn-modal {
    padding: 15px 10px;
  }
  
  .mood-btn-modal img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .mood-list-modal {
    gap: 8px;
    padding: 0 10px;
  }
  
  .mood-btn-modal {
    padding: 12px 6px;
  }
  
  .mood-btn-modal img {
    width: 30px;
    height: 30px;
  }
  
  .mood-btn-modal .mood-label {
    font-size: 0.8rem;
  }
}

/* 移动端一行展示 */
@media (max-width: 768px) {
  .mood-list-modal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    padding: 0 10px;
  }
  
  .mood-btn-modal {
    flex: 0 0 auto;
    padding: 10px 8px;
    min-width: 60px;
  }
  
  .mood-btn-modal img {
    width: 30px;
    height: 30px;
  }
  
  .mood-btn-modal .mood-label {
    font-size: 0.7rem;
    margin-top: 4px;
  }
}

@media (max-width: 480px) {
  .mood-list-modal {
    gap: 4px;
    justify-content: space-between;
    padding: 0 8px;
  }
  
  .mood-btn-modal {
    padding: 8px 6px;
    min-width: 50px;
  }
  
  .mood-btn-modal img {
    width: 25px;
    height: 25px;
  }
  
  .mood-btn-modal .mood-label {
    font-size: 0.6rem;
  }
}

/* ======= 功能选择模态框样式 (手机模式) ======= */
.function-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.function-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.function-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid #e0e0e0;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow: hidden;
  transform: scale(0.8) translateY(20px);
  transition: all 0.3s ease;
}

.function-modal-overlay.show .function-modal {
  transform: scale(1) translateY(0);
}

.function-modal-header {
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.function-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.function-modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.function-modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.function-modal-content {
  padding: 20px;
}

.function-list-modal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.function-btn-modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.function-btn-modal:hover {
  border-color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.1);
}

.function-btn-modal.active {
  border-color: #000000;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: white;
}

.function-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.function-text {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

/* 手机模式下的响应式调整 */
@media (max-width: 768px) {
  .function-modal {
    width: 95%;
    margin: 20px;
  }
  
  .function-list-modal {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .function-btn-modal {
    padding: 15px 10px;
  }
  
  .function-icon {
    width: 35px;
    height: 35px;
  }
  
  .function-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .function-list-modal {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .function-btn-modal {
    padding: 12px 8px;
  }
  
  .function-icon {
    width: 30px;
    height: 30px;
  }
  
  .function-text {
    font-size: 11px;
  }
}

/* ===== 隐藏原有浮动情绪选择器 ===== */
.floating-mood-selector {
  display: none !important;
}

/* ===== 图片画廊背景样式 ===== */
.image-gallery-section {
  padding: 0 0 60px 0;
  background: var(--soft-gray, #f8f9fa);
  position: relative;
  overflow: hidden;
  z-index: 1;
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  margin-top: -40px;
  padding-top: 0px;
}

/* ===== 浮动心情选择器样式 ===== */
.floating-mood-selector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: 100%;
  max-width: 700px;
  padding: 0 20px;
}

.floating-mood-selector .generator {
  background: rgba(0, 0, 0, 0.75);
  border-radius: 20px;
  padding: 30px 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.floating-mood-selector label {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.floating-mood-selector .mood-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  background: transparent;
}

.floating-mood-selector .mood-btn,
.floating-mood-selector .mood-list .mood-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  min-width: 110px !important;
  max-width: 120px !important;
  position: relative !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  font-size: inherit !important;
}

.floating-mood-selector .mood-btn:hover,
.floating-mood-selector .mood-list .mood-btn:hover {
  background: transparent !important;
  transform: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.floating-mood-selector .mood-btn.active,
.floating-mood-selector .mood-list .mood-btn.active {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  border-color: transparent !important;
  transform: none !important;
}

.floating-mood-selector .mood-btn img,
.floating-mood-selector .mood-list .mood-btn img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: none !important;
}

.floating-mood-selector .mood-label,
.floating-mood-selector .mood-list .mood-label {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: color 0.3s ease;
}

.floating-mood-selector .controls {
  margin-top: 20px;
}

.floating-mood-selector #generateBtn {
  width: 60%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #20bf6b 0%, #26de81 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(32, 191, 107, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 auto;
}

.floating-mood-selector #generateBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(32, 191, 107, 0.4);
  background: linear-gradient(135deg, #26de81 0%, #20bf6b 100%);
}

.floating-mood-selector #generateBtn:active {
  transform: translateY(0);
}

/* PC端保持一行显示 */
@media (min-width: 769px) {
  .floating-mood-selector .mood-list {
    flex-wrap: nowrap;
    gap: 8px;
  }
  
  .floating-mood-selector .mood-btn,
  .floating-mood-selector .mood-list .mood-btn {
    flex: 1;
    min-width: 80px;
    max-width: 90px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .floating-mood-selector {
    top: 25%;
    padding: 0 15px;
    width: 95%;
    max-width: 420px;
    transform: translate(-50%, -50%) scale(0.9);
  }
  
  .floating-mood-selector .generator {
    padding: 15px;
  }
  
  .floating-mood-selector .mood-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    justify-items: center;
  }
  
  .floating-mood-selector .mood-btn,
  .floating-mood-selector .mood-list .mood-btn {
    width: 70px;
    height: 90px;
    padding: 8px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .floating-mood-selector .mood-btn img {
    width: 45px;
    height: 45px;
    object-fit: contain;
  }
  
  .floating-mood-selector .mood-label {
    font-size: 10px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 4px;
  }
  
  .floating-mood-selector #generateBtn {
    width: 60%;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .floating-mood-selector {
    top: 30%;
    width: 95%;
    max-width: 380px;
    transform: translate(-50%, -50%) scale(0.85);
  }
  
  .floating-mood-selector .generator {
    padding: 12px;
  }
  
  .floating-mood-selector .mood-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 12px;
    justify-items: center;
  }
  
  .floating-mood-selector .mood-btn,
  .floating-mood-selector .mood-list .mood-btn {
    width: 60px;
    height: 80px;
    padding: 6px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .floating-mood-selector .mood-btn img {
    width: 40px;
    height: 40px;
    object-fit: contain;
  }
  
  .floating-mood-selector .mood-label {
    font-size: 9px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 3px;
  }
  
  .floating-mood-selector #generateBtn {
    width: 60%;
    padding: 10px 14px;
    font-size: 20px;
    border-radius: 14px;
  }
}

/* 确保360px断点下浮动情绪选择器没有边框 */
@media (max-width: 360px) {
  .floating-mood-selector {
    top: 30%;
    width: 95%;
    max-width: 340px;
    transform: translate(-50%, -50%) scale(0.8);
  }
  
  .floating-mood-selector .generator {
    padding: 10px;
  }
  
  .floating-mood-selector .mood-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 10px;
    justify-items: center;
  }
  
  .floating-mood-selector .mood-btn,
  .floating-mood-selector .mood-list .mood-btn {
    width: 50px;
    height: 70px;
    padding: 4px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .floating-mood-selector .mood-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
  }
  
  .floating-mood-selector .mood-label {
    font-size: 8px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-top: 2px;
  }
  
  .floating-mood-selector #generateBtn {
    width: 60%;
    padding: 8px 12px;
    font-size: 11px;
    border-radius: 12px;
  }
}

.image-gallery-section .container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0 10px;
}

/* 移动端响应式调整 */
@media (max-width: 768px) {
  .image-gallery-section {
    margin-top: -40px;
    padding-top: 0;
  }
  
  .image-gallery-section .container {
    padding: 0 15px;
  }
}


.image-column {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 0px;
}

.image-column:nth-child(1) {
  transform: translateY(0px);
}

.image-column:nth-child(2) {
  transform: translateY(50px);
}

.image-column:nth-child(3) {
  transform: translateY(0px);
}

.image-column:nth-child(4) {
  transform: translateY(50px);
}

.image-column:nth-child(5) {
  transform: translateY(0px);
}

.image-column:nth-child(6) {
  transform: translateY(50px);
}

.image-column img {
  width: 100%;
  aspect-ratio: 3/5;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

.image-column img:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  filter: brightness(0.6) !important;
}


/* 响应式设计 */
@media (max-width: 1400px) {
  .image-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1200px) {
  .image-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .image-column img {
    aspect-ratio: 2/3;
  }
}

@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .image-column img {
    aspect-ratio: 2/3;
  }
}

@media (max-width: 600px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .image-column img {
    aspect-ratio: 2/3;
  }
}

@media (max-width: 480px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .image-column img {
    aspect-ratio: 2/3;
  }
}

/* Overrides: remove background and borders from nav-desktop */
.nav-desktop a {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  text-decoration: none;
}

/* Override: ensure nav-small-title is white */
.nav-small-title {
  color: #fff !important;
}

.nav-desktop a:hover,
.nav-desktop a.nav-active,
.nav-desktop a.nav-active:hover,
.top-nav.floating-nav .nav-desktop a,
.top-nav.floating-nav .nav-desktop a:hover,
.top-nav.floating-nav .nav-desktop a.nav-active,
.top-nav.floating-nav .nav-desktop a.nav-active:hover,
.nav-desktop a[href^="#"]:not(.nav-active),
.nav-desktop a[href^="#"]:not(.nav-active):hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
}

/* Mobile overrides: remove all spacing inside HERO */
@media (max-width: 768px) {
  .container {
    padding: 0 !important;
  }
  .hero {
    padding: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
  }
  .hero > div,
  .hero aside,
  .hero .result-actions {
    padding: 0 !important;
    margin: 0 !important;
  }
}

/* ===== 防止移动设备输入框自动缩放 ===== */
/* 确保所有输入框在移动设备上不会触发自动缩放 */
input, textarea, select {
  font-size: 16px !important; /* 16px是防止iOS Safari自动缩放的最小字体大小 */
  -webkit-text-size-adjust: 100% !important;
  -webkit-appearance: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 特别针对小屏幕设备 */
@media screen and (max-width: 768px) {
  input, textarea, select {
    font-size: 16px !important;
    -webkit-text-size-adjust: none !important;
  }
}
