/* CSS Variables */
:root {
  /* Brand Colors - Updated to Professional Blue (Original: Light Purple) */
  --brand-50: #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  
  /* Slate Colors - Updated for better visual hierarchy */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  
  /* Functional Colors - Added for status indicators */
  --success-500: #10b981;
  --warning-500: #f59e0b;
  --error-500: #ef4444;
  
  /* Shadows - Updated for better visual hierarchy */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  
  /* Transitions - Updated for smooth and consistent animations */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  
  /* Animation */
  --animation-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --animation-duration: 0.6s;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: var(--slate-50);
  min-height: 100vh;
  position: relative;
}

/* 灰度图标类 */
.grayscale-icon {
  filter: grayscale(100%) !important;
  -webkit-filter: grayscale(100%) !important;
  -moz-filter: grayscale(100%) !important;
  -ms-filter: grayscale(100%) !important;
  -o-filter: grayscale(100%) !important;
}

/* Typography - Updated for better visual hierarchy */
h1 {
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.2;
  color: var(--slate-900);
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
}

h2 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--slate-900);
}

@media (min-width: 768px) {
  h2 {
    font-size: 1.5rem;
  }
}

h3 {
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.4;
  color: var(--slate-900);
}

p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--slate-600);
}

button {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(241, 64, 75, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateX(30%) translateY(-30%);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  transform: translateX(-30%) translateY(30%);
  pointer-events: none;
  z-index: -1;
}

/* Scrollbar - Updated with brand color */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
  background: var(--slate-300);
  border-radius: 4px;
  transition: background var(--transition-base);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-500);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

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

.text-brand-500 {
  color: #2563eb;
}

.text-brand-600 {
  color: #000000;
}

.text-brand-400 {
  color: #60a5fa;
}

.text-brand-300 {
  color: #93c5fd;
}

.text-brand-200 {
  color: #bfdbfe;
}

.text-brand-100 {
  color: #dbeafe;
}

.text-brand-700 {
  color: #1e40af;
}

.bg-brand-500 {
  background-color: #2563eb;
}

.bg-brand-600 {
  background-color: #1d4ed8;
}

.bg-brand-400 {
  background-color: #60a5fa;
}

.bg-brand-300 {
  background-color: #93c5fd;
}

.bg-brand-200 {
  background-color: #bfdbfe;
}

.bg-brand-100 {
  background-color: #dbeafe;
}

.bg-brand-700 {
  background-color: #1e40af;
}

.bg-brand-50 {
  background-color: #eff6ff;
}

.border-brand-100 {
  border-color: #dbeafe;
}

.border-brand-200 {
  border-color: #bfdbfe;
}

.border-brand-300 {
  border-color: #93c5fd;
}

.shadow-brand-200 {
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1), 0 2px 4px -2px rgba(37, 99, 235, 0.1);
}

.shadow-brand-300 {
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1), 0 4px 6px -4px rgba(37, 99, 235, 0.1);
}

.shadow-brand-100 {
    box-shadow: 0 1px 3px 0 rgba(37, 99, 235, 0.1), 0 1px 2px -1px rgba(37, 99, 235, 0.1);
  }

/* 渐变文字效果 */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
}

.text-transparent {
  color: transparent;
}

.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-brand-400 {
  --tw-gradient-from: #60a5fa;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(96, 165, 250, 0));
}

.from-brand-600 {
  --tw-gradient-from: #1d4ed8;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29, 78, 216, 0));
}

.to-brand-400 {
  --tw-gradient-to: #60a5fa;
}

.to-brand-600 {
  --tw-gradient-to: #1d4ed8;
}

/* 友情链接样式 */
.friend-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: #94a3b8;
  text-decoration: none;
}

.friend-link:hover {
  color: #e2e8f0;
}

.friend-link img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.friend-links-section {
  display: none;
}

/* 卡片悬停效果 */
/* 隐私特性卡片 */
.privacy-grid > div {
  transition: all var(--transition-base);
  will-change: transform, box-shadow;
}

.privacy-grid > div:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 10px 10px -5px rgba(99, 102, 241, 0.04);
  border-color: var(--brand-300);
}

/* 导航网站卡片 */
#navigation .grid > div {
  transition: all var(--transition-base);
  will-change: transform, box-shadow, border-color;
}

#navigation .grid > div:hover {
  transform: scale(1.05) translateY(-4px);
  border-color: var(--brand-300);
}

/* Navigation links hover effect */
nav a {
  transition: color var(--transition-base);
}

nav a:hover {
  color: var(--brand-500);
}

/* Button link with white text that stays white on hover */
nav a.btn-white-text {
  color: white !important;
}

nav a.btn-white-text:hover {
  color: white !important;
}

/* QingTab 组件卡片 */
#qingtab .grid > div {
  transition: all var(--transition-base);
  will-change: transform, box-shadow;
}

#qingtab .grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 友情链接标题与内容间距 */
.friend-links-section .text-sm.font-medium {
  margin-bottom: 12px;
}

/* 页脚布局优化 */
footer .container {
  max-width: 1200px;
  text-align: center;
}

footer .flex-wrap {
  justify-content: center;
}

/* 文字元素动画效果 */
.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--animation-duration) var(--animation-ease), transform var(--animation-duration) var(--animation-ease);
  will-change: opacity, transform;
}

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

/* 淡入动画 */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-in-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-in-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-in-out forwards;
}

/* Scroll animation */
.scroll-animate {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  will-change: opacity, transform;
}

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

/* 打字机效果 */
.typewriter {
  overflow: hidden;
  border-right: 0.15em solid var(--brand-500);
  white-space: nowrap;
  margin: 0 auto;
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--brand-500); }
}

/* 文字悬停效果 */
h1, h2, h3, h4, h5, h6,
p, span, a {
  transition: color var(--transition-base), transform var(--transition-base);
}

/* 标题悬停效果 */
h1:hover, h2:hover, h3:hover {
  transform: translateY(-2px);
}



/* 确保所有链接水平居中 */
footer a {
  display: inline-block;
}

/* Global hover states for interactive elements */
.interactive {
  transition: all var(--transition-base);
  cursor: pointer;
}

.interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 按钮动画效果 */
/* 通用按钮样式 */
button {
  transition: all var(--transition-base);
  will-change: transform, box-shadow, background-color;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* 按钮悬停效果 */
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 按钮点击反馈 */
button:active {
  transform: translateY(0) scale(0.98);
  transition: transform var(--transition-fast);
}

/* 按钮波纹效果 */
button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width var(--transition-slow), height var(--transition-slow);
  pointer-events: none;
}

button:active::after {
  width: 300px;
  height: 300px;
}

/* 主按钮样式增强 */
.bg-brand-500 {
  transition: all var(--transition-base);
  background: #000000;
}

.bg-brand-500:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.2);
}

/* 次要按钮样式增强 */
.bg-white {
  transition: all var(--transition-base);
}

.bg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Banner buttons */
.banner-button-primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
  color: white;
  font-weight: 600;
  transition: all var(--transition-base);
}

.banner-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3), 0 4px 6px -2px rgba(37, 99, 235, 0.2);
}

.banner-button-secondary {
  background: white;
  color: var(--brand-500);
  border: 1px solid var(--brand-300);
  font-weight: 600;
  transition: all var(--transition-base);
}

.banner-button-secondary:hover {
  background: var(--brand-50);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 版权信息间距 */
footer .text-xs {
  padding-top: 8px;
}

.swiper-container-wrapper {
  width: 98%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 600px;
}

/* 主轮播图和分页指示器容器 */
.swiper-with-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 1000px;
}

/* 轮播图固定高度 */
.swiper.banner {
  width: 100%;
  height: 500px;
  position: relative;
  z-index: 1;
}

/* 轮播图幻灯片固定高度 */
.swiper.banner .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 轮播图内容容器固定尺寸 */
.swiper-slide .slide-content {
  width: 95%;
  height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 轮播图图片固定尺寸 */
.swiper-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 分页指示器样式 */
.swiper-pagination {
  position: relative !important;
  margin-top: 20px;
  bottom: auto !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center;
  z-index: 10;
  width: 100%;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .side-preview {
    width: 250px;
  }
  
  .swiper-with-pagination {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .side-preview {
    display: none;
  }
  
  .swiper-container-wrapper {
    padding: 20px 15px;
    gap: 20px;
  }
  
  .swiper-with-pagination {
    max-width: 100%;
  }
  
  .swiper {
    max-width: 100%;
  }
  
  .swiper-slide .slide-content {
    width: 95%;
    height: 95%;
  }
  
  .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
  }
  
  .swiper-pagination {
    margin-top: 15px;
  }
}

@media (max-width: 480px) {
  .swiper-container-wrapper {
    padding: 15px 10px;
  }
  
  .swiper-slide .slide-content {
    width: 98%;
    height: 98%;
  }
  
  .swiper-pagination {
    margin-top: 10px;
  }
  
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
  
  .swiper-pagination-bullet-active {
    width: 16px;
  }
}

/* 左右小图预览区域 */
.side-preview {
  width: 320px;
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.side-preview:hover {
  opacity: 1;
  transform: translateY(-8px);
}

.side-preview-img {
  width: 100%;
  height: 100%;
  display: block;
  background-color: transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-preview.switching {
  transform: scale(0.95);
  opacity: 0.6;
}

.side-preview.switching .side-preview-img {
  filter: blur(2px);
}

/* 左右小图进入退出动画 */
@keyframes slideInFromRight {
  from {
    transform: translateX(50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 0.8;
  }
}

@keyframes slideOutToLeft {
  from {
    transform: translateX(0);
    opacity: 0.8;
  }
  to {
    transform: translateX(-50px);
    opacity: 0;
  }
}

@keyframes slideOutToBottom {
  from {
    transform: translateY(0);
    opacity: 0.8;
  }
  to {
    transform: translateY(40px);
    opacity: 0;
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.8;
  }
}

.left-preview {
  order: -1;
  margin-right: -40px;
}

.left-preview.entering {
  animation: slideInFromRight 0.3s ease forwards;
}

.left-preview.exiting {
  animation: slideOutToBottom 0.3s ease forwards;
}

.right-preview {
  order: 1;
  margin-left: -40px;
}

.right-preview.entering {
  animation: slideInFromBottom 0.3s ease forwards;
}

.right-preview.exiting {
  animation: slideOutToLeft 0.3s ease forwards;
}

.swiper-container {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding-bottom: 45%;
}

.swiper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* 修复移动端两侧边距不一致的问题 */
@media (max-width: 768px) {
  .swiper-container-wrapper {
    justify-content: center;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .swiper-with-pagination {
    width: 100%;
    max-width: 100%;
  }
  
  .swiper {
    width: 100%;
    max-width: 100%;
  }
  
  .swiper-slide {
    width: 100%;
  }
  
  .swiper-slide .slide-content {
    width: 100%;
    height: 100%;
    padding: 0;
  }
  
  .swiper-slide img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
}

.swiper-container {
  width: 100%;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding-bottom: 45%;
}

.swiper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
}

.swiper-slide {
  position: relative;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.swiper-slide .bg-blur {
  display: none;
}

.swiper-slide .slide-content {
  position: relative;
  z-index: 2;
  width: 90%;
  height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-text {
  font-size: 24px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.swiper-slide img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.swiper-pagination {
  bottom: 20px !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
  color: #000;
  opacity: 1;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
  color: #fff;
  background: #2563eb;
  width: 24px;
}

@media (max-width: 768px) {
  .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
  }

  .swiper-pagination-bullet-active {
    width: 20px;
  }
}

@media (max-width: 480px) {
  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }

  .swiper-pagination-bullet-active {
    width: 16px;
  }
}

@media (max-width: 320px) {
}

.bg-blur-image {
  background-size: cover;
  background-position: center;
}

.bg-blur-daiban {
  background-image: url('../images/daiban.png');
}

.bg-blur-countdown {
  background-image: url('../images/countdown.png');
}

.bg-blur-hotsearch {
  background-image: url('../images/hotSearch.png');
}

.bg-blur-calendar {
  background-image: url('../images/calendar.png');
}

.bg-blur-weather {
  background-image: url('../images/weather.png');
}

.bg-blur-note {
  background-image: url('../images/note.png');
}

.progress-bar {
  width: 60%;
}

.privacy-section {
  padding: 130px 0;
  background-color: var(--slate-50);
}

.privacy-container {
  padding-bottom: 0;
}

.privacy-grid {
  margin-top: 48px;
  justify-items: center;
}

/* Privacy section cards */
.privacy-grid > div {
  background-color: white;
  border-radius: 12px;
  transition: all var(--transition-base);
}

.privacy-grid > div:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-300);
}
.back-to-top-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  z-index: 999999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.pulse-animation {
  animation-delay: 1s;
}

/* 背景壁纸模块样式 */
.wallpaper-module {
  position: relative;
  width: 100%;
  min-height: 600px;
  padding: 60px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.wallpaper-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/2.webp');
  background-size: cover;
  background-position: center;
  filter: blur(12px);
  opacity: 0.35;
  z-index: 0;
  transition: background-image 0.5s ease;
}

.wallpaper-text {
  position: absolute;
  top: 20px;
  left: 60px;
  color: black;
  z-index: 10;
  animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateX(-30px);
}

.wallpaper-text h2 {
  animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  opacity: 0;
  transform: translateX(-20px);
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wallpaper-text h2 img {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.wallpaper-text p {
  animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  opacity: 0;
  transform: translateX(-20px);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  white-space: nowrap;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.preview-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.preview-container {
  width: 85%;
  max-width: 1000px;
  min-width: 280px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.preview-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 2px solid rgb(90 166 255 / 0.8);
  border-radius: 50%;
  background: transparent;
  color: rgb(90 166 255 / 0.8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 20;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgb(70 125 191);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: -20px;
}

.next-btn {
  right: -20px;
}

.thumbnails {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  z-index: 10;
}

.thumb-item {
  width: 120px;
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 3px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.thumb-item:hover {
  transform: translateY(-3px);
}

.thumb-item.active {
  border-color: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
}

.thumb-item img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 2px;
  display: block;
}

.thumb-item span {
  display: block;
  text-align: center;
  color: white;
  margin-top: 4px;
  font-size: 10px;
}

/* 轮播图区域 */
.s5 {
  padding: 130px 0;
}

/* 轮播图标题动画 */
.s5-1 h2 {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

.s5-1 h2 div {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(20px);
}

.s5-1 h2 div:first-child {
  animation-delay: 0.2s;
}

.s5-1 h2 div:last-child {
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .wallpaper-text {
    top: 15px;
    left: 20px;
  }

  .wallpaper-text h2 {
    font-size: 20px;
  }

  .preview-container {
    width: 85%;
  }

  .nav-btn {
    width: 36px;
    height: 36px;
  }

  .prev-btn {
    left: -15px;
  }

  .next-btn {
    right: -15px;
  }

  .thumbnails {
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .thumb-item {
    width: 120px;
  }

  .thumb-item img {
    height: 70px;
  }

  .s5-1 h2 {
    font-size: 1.25rem !important;
  }
}

@media (max-width: 480px) {
  .s5-1 h2 {
    font-size: 1rem !important;
  }
  
  /* 整体缩放效果 */
  body {
    font-size: 14px;
  }
  
  /* 调整容器宽度和内边距 */
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
  
  /* 调整头部 */
  header {
    padding: 10px 0;
  }
  
  /* 调整轮播图 */
  .swiper-container-wrapper {
    padding: 10px 10px;
  }
  
  /* 调整背景壁纸模块 */
  .wallpaper-module {
    padding: 30px 0;
  }
  
  /* 调整QingTab模块 */
  #qingtab {
    padding: 40px 0;
  }
  
  /* 调整标题大小 */
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
  
  h3 {
    font-size: 1.1rem;
  }
  
  /* 调整按钮大小 */
  button {
    padding: 8px 16px;
    font-size: 14px;
  }
  
  /* 调整图片大小 */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* 调整间距 */
  .space-y-4 {
    gap: 1rem;
  }
  
  .space-y-6 {
    gap: 1.5rem;
  }
  
  .space-y-8 {
    gap: 2rem;
  }
}

/* 针对小屏幕设备的额外调整 */
@media (max-width: 320px) {
  body {
    font-size: 12px;
  }
  
  h1 {
    font-size: 1.25rem;
  }
  
  h2 {
    font-size: 1.1rem;
  }
  
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* 调整移动端容器内文字大小和边距 */
@media (max-width: 768px) {
  .bg-gradient-to-r.from-brand-500 {
    padding: 16px;
  }
  
  .bg-gradient-to-r.from-brand-500 h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
  
  .bg-gradient-to-r.from-brand-500 p {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .bg-gradient-to-r.from-brand-500 .text-sm {
    font-size: 12px;
  }
  
  .bg-gradient-to-r.from-brand-500 button {
    padding: 12px 24px;
    font-size: 14px;
  }
  
  .bg-gradient-to-r.from-brand-500 .inline-flex {
    padding: 8px 12px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .bg-gradient-to-r.from-brand-500 {
    padding: 12px;
  }
  
  .bg-gradient-to-r.from-brand-500 h2 {
    font-size: 1.25rem;
  }
  
  .bg-gradient-to-r.from-brand-500 p {
    font-size: 13px;
  }
  
  .bg-gradient-to-r.from-brand-500 button {
    padding: 10px 20px;
    font-size: 13px;
  }
  
  .bg-gradient-to-r.from-brand-500 .flex.flex-col {
    gap: 12px;
  }
  
  .bg-gradient-to-r.from-brand-500 .space-y-8 {
    gap: 16px;
  }
  
  .bg-gradient-to-r.from-brand-500 .mb-8 {
    margin-bottom: 12px;
  }
  
  .bg-gradient-to-r.from-brand-500 .mb-6 {
    margin-bottom: 8px;
  }
  
  .bg-gradient-to-r.from-brand-500 .mb-10 {
    margin-bottom: 12px;
  }
}

@media (max-width: 320px) {
  .bg-gradient-to-r.from-brand-500 {
    padding: 10px;
  }
  
  .bg-gradient-to-r.from-brand-500 h2 {
    font-size: 1.1rem;
  }
  
  .bg-gradient-to-r.from-brand-500 p {
    font-size: 12px;
  }
  
  .bg-gradient-to-r.from-brand-500 button {
    padding: 8px 16px;
    font-size: 12px;
  }
  
  .bg-gradient-to-r.from-brand-500 .inline-flex {
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .bg-gradient-to-r.from-brand-500 .flex.flex-wrap {
    gap: 8px;
  }
  
  .bg-gradient-to-r.from-brand-500 .flex.items-center {
    gap: 4px;
  }
}

/* QingTab 模块 */
#qingtab {
  padding: 100px 0;
  min-height: 500px;
  display: flex;
  align-items: center;
}

#qingtab .container {
  width: 100%;
}

/* QingTab 动画效果 */
#qingtab .flex {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

#qingtab .md\:w-1\/2:first-child {
  animation: fadeInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
  opacity: 0;
  transform: translateX(-30px);
}

#qingtab .md\:w-1\/2:last-child {
  animation: fadeInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
  opacity: 0;
  transform: translateX(30px);
}

#qingtab h2 {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
  opacity: 0;
  transform: translateY(20px);
}

#qingtab p {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  opacity: 0;
  transform: translateY(20px);
}

#qingtab .space-y-2 {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
  opacity: 0;
  transform: translateY(20px);
}

#qingtab .grid {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 1.2s forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Main section with relative class */
main > section.relative {
  height: 720px;
}

/* Mobile responsive height */
@media screen and (max-width: 640px) {
  main > section.relative {
    height: auto;
    padding-bottom: 40px;
  }
  
  /* Mobile main buttons width */
  .mobile-main-buttons {
    width: 280px;
    margin: 0 auto;
  }
}

/* Blue SVG icon */
.svg-blue {
  filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(190deg) brightness(118%) contrast(119%);
}

/* Custom image replacement */
.custom-image-replacement {
  position: relative;
}

.custom-image-replacement .globe-icon {
  display: none;
}

.custom-image-replacement::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  background-image: url('https://tab.qingdaohang.cn/images/2026/04/13/0fa7bb21850a08ca7725b8681da23aa9.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}



/* Mobile button width */
@media screen and (max-width: 640px) {
  .mobile-button-width {
    width: 200px;
    height: 64px;
    font-size: 18px !important;
  }
}

/* Website name font size */
#navigation .grid .group span {
  font-size: 12px !important;
}

/* Icon container size */
#navigation .grid .group div {
  width: 50px !important;
  height: 50px !important;
  transition: all 300ms !important;
}

/* Icon container hover effects */
#navigation .grid .group div:hover {
  border-color: var(--brand-300) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
  transform: scale(1.05) !important;
}

/* Fix link styles */
#navigation .grid .group {
  text-decoration: none !important;
  color: inherit !important;
}

/* Section 3 - 多种卡片一键添加 */
.s3 {
  /* 设置宽度为浏览器宽度 */
  width: 100%;
  height: 730px;
  overflow: hidden;
  position: relative;
  /* background-image: linear-gradient(45deg, rgb(51, 9, 103), rgb(48, 205, 207)); */
}

.s3>.s3-1 {
  position: relative;
  max-width: 1400px;
  margin: auto
}

.s3>.s3-1>h2 {
  padding-top: 40px;
  font-size: 1.875remx;
  font-weight: 400;
  text-align: center;
  color: rgb(15 23 42/var(--tw-text-opacity));
  font-weight: 700
}

.s3>.s3-1 .s3-1-1 {
  margin: auto;
  margin-top: 40px;
  max-width: 1000px;
  margin-bottom: 40px;
}

.s3>.s3-1 .s3-1-1>p {
  text-align: center;
  font-size: 20px;
  font-weight: 400;
  color: #383838
  /* color: #afd8cf */
}

.s3-images {
  display: flex;
  width: 580px;
  height: 220px;
  animation: rolling 20s linear infinite forwards;
  animation-play-state: running;
  margin: 0 auto;
}

/* 当鼠标悬停时暂停动画 */
.s3-images:hover {
  animation-play-state: paused;
}

.s3-images img {
  flex: 0 0 auto;
  margin-right: 30px; 
  box-shadow:  4px 4px 10px rgba(0,0,0,0.2);
  border-radius: 22px;
}

/* 持续滚动不停 */
@keyframes rolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-3500px);
  }
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .s3 {
    height: auto; /* 自适应高度 */
    padding: 20px 5px; /* 调整内边距 */
  }

  .s3>.s3-1 {
    position: static; 
    max-width: auto;
    margin: auto
  }

  .s3>.s3-1>h2 {
    font-size: 40px
  }
  
  .s3>.s3-1 .s3-1-1>p {
    font-size: 16px
  }

  .s3-images {
    width: 280px;
    height: 135px;
    margin-bottom: 50px;
  }

  .s3-images img {
    margin-right: 10px; 
  }

  /* 持续滚动不停 */
  @keyframes rolling {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-1450px);
    }
  }
}
