/* Global Styles */
:root {
  --primary-color: #2563eb;
  --secondary-color: #1d4ed8;
  --text-color: #1f2937;
  --light-text: #6b7280;
  --background: #ffffff;
  --light-background: #f3f4f6;

  /* Primary Colors */
  --primary-50: #FDF6EC;
  --primary-100: #FCE8D4;
  --primary-200: #F8D0AA;
  --primary-300: #F3B87F;
  --primary-400: #EEA054;
  --primary-500: #E98829;
  --primary-600: #D97124;
  --primary-700: #B45A1F;
  --primary-800: #8F441A;
  --primary-900: #6A2E15;

  /* Background Colors */
  --bg-deep: #0F1117;
  --bg-base: #161923;
  --bg-surface: #1E2231;
  --bg-elevated: #252B3B;
  --bg-highlight: #2E354A;

  /* Overlay Colors */
  --overlay-light: rgba(255, 255, 255, 0.03);
  --overlay-medium: rgba(255, 255, 255, 0.06);
  --overlay-heavy: rgba(255, 255, 255, 0.12);

  /* Text Colors */
  --text-primary: var(--primary-200);
  --text-secondary: var(--primary-300);
  --text-tertiary: var(--primary-400);
  --text-muted: var(--primary-500);

  /* Animation Variables */
  --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-duration: 0.4s;
  
  /* Transform Variables */
  --hover-scale: 1.03;
  --active-scale: 0.97;
  --hover-y: -6px;
  --active-y: 2px;
  --rotate-deg: 5deg;
  
  /* Shadow Variables */
  --shadow-normal: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  
  /* Color Variables */
  --primary: #E6B17E;
  --primary-light: #F3D5B5;
  --primary-dark: #C98B4F;
  --accent: #7E57C2;
  --bg-primary: #1A1B26;
  --bg-secondary: #24283B;
  --bg-hover: rgba(243, 213, 181, 0.08);
  --bg-card: rgba(36, 40, 59, 0.8);
  --bg-gradient-start: #1A1B26;
  --bg-gradient-mid: #24283B;
  --bg-gradient-end: #1F2335;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.5;
  background-color: var(--background);
  background-image: 
    radial-gradient(circle at 20% 20%, #FFFFFF 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, #F0F2F5 0%, transparent 50%),
    linear-gradient(135deg, #F8FAFC 0%, #F0F2F5 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.gradient-overlay {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.item-left{
  align-items: flex-start !important;
}

.item-right{
  align-items: flex-end;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

/* Enhanced Card Styles */
.card {
  position: relative;
  overflow: hidden;
  background: var(--background);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--transition-bezier), box-shadow 0.3s var(--transition-bezier), border 0.3s;
  will-change: transform;
  perspective: 800px;
}

.card.tilt {
  transition: transform 0.15s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  background: radial-gradient(circle at 60% 40%, var(--card-color, #2563eb) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--transition-bezier);
  z-index: 1;
}

.card:hover::before {
  opacity: 0.18;
}

/* Icon Animation */
.card .icon-wrapper {
  position: relative;
  overflow: visible;
}

.card .icon-glow {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, var(--card-color, #2563eb) 40%, transparent 100%);
  filter: blur(8px);
  opacity: 0.7;
  animation: icon-glow-move 2.2s linear infinite;
}

@keyframes icon-glow-move {
  0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.7; }
}

/* 粒子星光特效 */
.card .card-particles {
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  pointer-events: none;
  z-index: 10;
}

.card .card-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0%, var(--card-color, #2563eb) 80%, transparent 100%);
  opacity: 0.7;
  animation: particle-float 1.2s linear forwards;
}

@keyframes particle-float {
  0% { opacity: 0.7; transform: scale(0.7) translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.2) translateY(-30px); }
}

/* Button Enhanced Hover */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(92deg, #2563eb 0%, #6366f1 100%);
  color: #fff;
  border-radius: 999px;
  border: none;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10), 0 1.5px 4px 0 rgba(99,102,241,0.08);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  transition: 
    background 0.3s var(--transition-bezier),
    color 0.3s var(--transition-bezier),
    box-shadow 0.3s var(--transition-bezier),
    transform 0.18s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
  outline: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(110deg, #2563eb 0%, #818cf8 100%);
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(59,130,246,0.18), 0 0 0 6px #6366f133;
  transform: translateY(-3px) scale(1.04);
}
.btn-primary:active {
  background: linear-gradient(90deg, #1d4ed8 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 2px 8px 0 rgba(59,130,246,0.10);
  transform: scale(0.97) translateY(1px);
}

/* Optional: Ripple effect on card click (simple) */
.card:active {
  transform: scale(0.97) translateY(2px) !important;
  box-shadow: 0 8px 32px -4px var(--card-color, #2563eb), 0 2px 8px -2px rgba(0,0,0,0.12);
}

/* News Items Enhancement */
.news-item {
  background: linear-gradient(to right,
    var(--bg-surface) 0%,
    var(--bg-elevated) 100%);
  border-left: 4px solid var(--primary-400);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 var(--overlay-light);
}

.news-item:hover {
  background: linear-gradient(to right,
    var(--bg-elevated) 0%,
    var(--bg-highlight) 100%);
  border-left-color: var(--primary-300);
  transform: translateX(4px);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 var(--overlay-medium);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-primary:active {
  transform: translateY(1px);
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Quick Access Button */
.group.inline-flex {
  background: linear-gradient(135deg,
    var(--primary-400) 0%,
    var(--primary-500) 100%);
  box-shadow: 
    0 2px 4px rgba(233, 136, 41, 0.2),
    0 1px 2px rgba(233, 136, 41, 0.1);
}

.group.inline-flex:hover {
  background: linear-gradient(135deg,
    var(--primary-300) 0%,
    var(--primary-400) 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(233, 136, 41, 0.3),
    0 2px 4px rgba(233, 136, 41, 0.2);
}

/* Text Styles */
.site-title {
  color: #2D3748;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
}

.site-description {
  color: #4A5568;
}

h3 {
  color: var(--text-primary);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

p {
  color: var(--text-secondary);
}

.date {
  color: var(--text-tertiary);
}

.read-more {
  color: var(--primary-300);
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--primary-200);
}

/* Ambient Light Effects */
.site-title::after {
  content: '';
  position: absolute;
  top: -100%;
  left: -50%;
  width: 200%;
  height: 300%;
  background: radial-gradient(circle,
    var(--overlay-medium) 0%,
    transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Footer Enhancement */
footer {
  color: #718096;
  background: linear-gradient(to top,
    rgba(255, 255, 255, 0.9) 0%,
    transparent 100%);
}

/* Logo Wall Styles */
.logo-wall {
  position: relative;
  width: 300px;
  height: 300px;
  perspective: 1000px;
  margin-right: 40px;
}

.logo-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: rotateWall 30s linear infinite;
  will-change: transform;
}

.logo-item {
  position: absolute;
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.logo-item:hover {
  transform: scale(1.1) translateZ(20px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

@keyframes rotateWall {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}

/* Grid Layout */
.partner-section {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  padding: 20px;
}

.partner-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}

.partner-card {
  max-width: 100%;
  flex: 0 1 260px;
  padding: 1.5rem 1rem;
  flex-direction: column;
  justify-content: stretch;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.partner-card h3 {
  font-size: 1.1rem;
}

.partner-card p {
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Section Container Style */
.section-container {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  margin-bottom: 1.5rem !important;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

.section-title {
  position: relative;
  color: #2D3748;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, 
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0) 100%);
}

/* Carousel Styles */
.carousel {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 1rem;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.carousel-inner {
  position: relative;
  width: 500%;
  height: 100%;
  display: flex;
  animation: slideShow 20s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.carousel-item {
  width: 20%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease-out;
}

.carousel-item:hover img {
  transform: scale(1.1);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent 60%);
  pointer-events: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-item:hover .carousel-overlay {
  opacity: 0.6;
}

/* Animations */
@keyframes slideShow {
  0% { transform: translateX(0); }
  16% { transform: translateX(0); }
  20% { transform: translateX(-20%); }
  36% { transform: translateX(-20%); }
  40% { transform: translateX(-40%); }
  56% { transform: translateX(-40%); }
  60% { transform: translateX(-60%); }
  76% { transform: translateX(-60%); }
  80% { transform: translateX(-80%); }
  96% { transform: translateX(-80%); }
  100% { transform: translateX(0); }
}

/* Responsive Utilities */
.kuai {
  max-width: 90%;
}
@media (max-width: 1080px) {
  .kuai {
    max-width: 100%;
  }
}

/* 3D Sphere Styles */
.sphere-partner-row {
  width: 100%;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 0.2rem;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.gallery-container {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 50%;
}
.partner-cards-group {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
}

.partner-cards-group .card {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  text-align: left;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #eee;
  transition: none;
}

@media (max-width: 900px) {
  .sphere-partner-row {
    flex-direction: column;
    gap: 10px;
    align-items: center;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  .gallery-container, .partner-cards-group {
    max-width: 100%;
    width: 100%;
  }
  .partner-cards-group {
    flex-direction: column;
    gap: 16px;
  }
  
  .partner-cards-group .card {
    width: 100%;
  }
}

/* Logo Item 3D Effects */
.logo-item::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(45deg, 
    rgba(255,255,255,0.1), 
    rgba(255,255,255,0.3)
  );
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.logo-item:hover::before {
  opacity: 1;
}

/* Announcement Section */
.announcement-text {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 1rem;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.announcement-item {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  opacity: 0.9;
  cursor: pointer;
}

.announcement-item:hover {
  background: rgba(59, 130, 246, 0.03);
  transform: translateX(8px);
  opacity: 1;
  padding-left: 2rem;
}

.announcement-item h3 {
  transition: color 0.3s ease;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  pointer-events: none;
}

.announcement-item p {
  line-height: 1.6;
  color: #4B5563;
  font-size: 0.95rem;
  pointer-events: none;
}

.announcement-item:hover h3 {
  color: #2563eb;
}

/* Marquee Animation */
.marquee-container {
  position: relative;
  height: 400px;
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 10%,
    black 90%,
    transparent 100%
  );
}

.marquee-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 0.5rem;
  animation: continuousScroll 20s linear infinite;
}

@keyframes continuousScroll {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-100% + 400px)); }
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Perspective Utilities */
.perspective-1000 {
  perspective: 1000px;
}

.transform-style-3d {
  transform-style: preserve-3d;
}

/* Logo Sphere Animation */
@keyframes rotateSphere {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

#logoSphere {
  perspective: 1000px;
  transform-style: preserve-3d;
  /* animation: rotateSphere 50s linear infinite; */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#logoSphere.dragging {
  cursor: grabbing;
  animation: none;
}

/* Grid Layout */
.grid-container {
  display: grid;
  gap: 2rem;
  padding: 2rem;
}

@media (min-width: 640px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Navigation */
.nav-link {
  color: var(--text-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Section Styles */
.section {
  padding: 4rem 2rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--light-background);
  padding: 3rem 2rem;
  margin-top: 4rem;
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shadow-hover {
  transition: box-shadow 0.2s;
}

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Responsive Design */
@media (max-width: 640px) {
  .section {
    padding: 2rem 1rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.625rem 1.25rem;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #f3f4f6;
    --light-text: #9ca3af;
    --background: #1f2937;
    --light-background: #374151;
  }
  
  .card {
    background: var(--light-background);
  }
}

/* 只保留卡片按钮基础样式，彻底移除所有隐藏/动画/渐显/上移相关样式 */
.card .btn-primary,
.card:hover .btn-primary {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
  transition: none !important;
}

/* 移除卡片内容相关的渐显/上移/动画/过渡样式 */
.card .card-title,
.card p {
  transition: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 按钮水波纹动画 */
.btn-primary:active::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  background: rgba(99,102,241,0.18);
  border-radius: 100%;
  transform: translate(-50%,-50%);
  animation: ripple 0.5s linear;
  pointer-events: none;
  z-index: 2;
}
@keyframes ripple {
  to {
    width: 220%; height: 220%; opacity: 0;
  }
}

/* 移动端动画简化 */
@media (max-width: 640px) {
  .card:hover, .card:active {
    transform: scale(1.01) translateY(-2px) !important;
    box-shadow: 0 6px 12px -2px rgba(0,0,0,0.08);
    border: 1px solid var(--card-color, #2563eb);
  }
  .card:hover .icon-wrapper, .card:active .icon-wrapper {
    animation: none !important;
    transform: none !important;
  }
  .card:hover .card-title,
  .card:hover p,
  .card:hover .btn-primary {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* 边框流动渐变动画 */
@keyframes border-gradient {
  0% { border-image-source: linear-gradient(120deg, var(--card-color, #2563eb), #fffbe6, var(--card-color, #2563eb)); }
  100% { border-image-source: linear-gradient(420deg, var(--card-color, #2563eb), #fffbe6, var(--card-color, #2563eb)); }
}
.card:hover {
  border-width: 2.5px;
  border-style: solid;
  border-image-slice: 1;
  animation: border-gradient 2s linear infinite;
  border-image-width: 2.5px;
}

/* 删除卡片内容弹性抖动动画 */
.card:hover .card-title,
.card:hover p,
.card:hover .btn-primary {
  animation: none !important;
}

/* 下方横向卡片3D悬浮和光晕优化 */
.card.flex-row {
  position: relative;
  overflow: hidden;
  background: var(--background);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--transition-bezier), box-shadow 0.3s var(--transition-bezier), border 0.3s;
  will-change: transform;
  perspective: 800px;
}
.card.flex-row::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
  background: radial-gradient(circle at 60% 40%, var(--card-color, #6366F1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--transition-bezier);
  z-index: 1;
}
.card.flex-row:hover::before {
  opacity: 0.18;
}
.card.flex-row .icon-wrapper {
  position: relative;
  overflow: visible;
  background: var(--card-color, #6366F1) !important;
}
.card.flex-row .icon-glow {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.2) 0%, var(--card-color, #6366F1) 40%, transparent 100%);
  filter: blur(8px);
  opacity: 0.7;
  animation: icon-glow-move 2.2s linear infinite;
}

@keyframes icon-glow-move {
  0% { transform: rotate(0deg) scale(1); opacity: 0.7; }
  50% { transform: rotate(180deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.7; }
}

@media (max-width: 900px) {
  .sphere-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    height: auto;
  }
  .partner-cards-group {
    width: 100%;
  }
}

/* ====== Gallery 横向画廊优化样式 ====== */
.gallery-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}
.gallery-gradient {
  position: absolute;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}
.gallery-gradient-left {
  left: 0;
  background: linear-gradient(to left, rgba(0,0,0,0) 0%, #fff 100%);
}
.gallery-gradient-right {
  right: 0;
  background: linear-gradient(to right, rgba(0,0,0,0) 0%, #fff 100%);
}
.gallery-content {
  overflow-x: auto;
  overflow-y: visible;
  width: 100%;
  padding: 0 2rem;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.gallery-content::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}
.gallery-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-width: max-content;
  padding-bottom: 1rem;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.gallery-item {
  flex: 0 0 auto;
  transition:
    transform 0.35s cubic-bezier(.4,0,.2,1),
    opacity 0.35s cubic-bezier(.4,0,.2,1),
    box-shadow 0.3s;
  filter: blur(0px);
  opacity: 0.5;
  transform: scale(0.92);
}
.gallery-item.is-center {
  position: relative;
  z-index: 999 !important;
  pointer-events: auto;
  opacity: 1;
  transform: scale(1.22) translateY(-12px) !important;
  box-shadow: 0 8px 32px 0 rgba(59,130,246,0.18), 0 0 0 4px rgba(59,130,246,0.08);
  border-radius: 16px;
  background: linear-gradient(120deg, #fff 80%, #e0e7ff 100%);
  filter: none;
}
.gallery-item:hover, .gallery-item:focus-within {
  opacity: 1;
  transform: scale(1.12) translateY(-8px);
  z-index: 10;
  box-shadow: 0 6px 24px rgba(59,130,246,0.18);
}
.gallery-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 2px solid #f3f4f6;
  transition: box-shadow 0.3s;
}
.gallery-item:hover .gallery-img {
  box-shadow: 0 6px 24px rgba(59,130,246,0.18);
}
@media (max-width: 768px) {
  .gallery-img { width: 90px; height: 48px; }
  .gallery-track { gap: 1.2rem; }
  .gallery-item.is-center {
    transform: scale(1.08) translateY(-4px) !important;
    box-shadow: 0 4px 16px 0 rgba(59,130,246,0.12);
  }
}

/* gallery-item中心高亮 */
.gallery-item.is-center {
  position: relative;
  z-index: 20 !important;
  transform: scale(1.22) translateY(-12px) !important;
  opacity: 1;
  filter: none;
  box-shadow: 0 8px 32px rgba(59,130,246,0.18);
}
.gallery-gradient {
  z-index: 10;
}

/* 卡片浮动动画 */
.card-float {
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
}
.card-float:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px 0 rgba(80, 112, 255, 0.10), 0 1.5px 4px 0 rgba(80, 112, 255, 0.08);
}

/* 呼吸动画 */
@keyframes breath {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 16px 8px rgba(59,130,246,0.15); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0.3); }
}
.animate-breath {
  animation: breath 2.2s infinite;
}

/* 分割线 */
.divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa 0%, #a78bfa 100%);
  border-radius: 2px;
  margin: 0.5rem auto;
}

/* 图标发光动画 */
.icon-glow-box {
  position: relative;
}
.icon-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, #93c5fd 0%, #c4b5fd 60%, transparent 100%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  opacity: 0.7;
  filter: blur(2px);
  animation: icon-glow-pulse 2.2s infinite;
}
@keyframes icon-glow-pulse {
  0% { opacity: 0.7; filter: blur(2px); }
  50% { opacity: 1; filter: blur(4px); }
  100% { opacity: 0.7; filter: blur(2px); }
}

/* 优化渐变边框和光晕按钮 */
.gradient-border {
  border: none !important;
  box-shadow: 0 0 12px 0 #6366f133;
  border-radius: 999px;
}
.glow {
  box-shadow: 0 0 16px 4px #6366f133, 0 2px 8px #2563eb22;
  transition: box-shadow 0.3s;
}
.glow:hover, .glow:focus {
  box-shadow: 0 0 32px 8px #6366f155, 0 4px 16px #2563eb33;
}

/* 统一按钮圆角和字体 */
.btn, .btn-primary, .gradient-border {
  border-radius: 999px !important;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* 移动端按钮优化 */
@media (max-width: 640px) {
  .btn-primary {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
  }
}

/* 按钮内容缩放动画 */
.btn-primary .btn-content, .btn-primary span, .btn-primary svg {
  transition: transform 0.18s cubic-bezier(0.4,0,0.2,1);
}
.btn-primary:hover .btn-content, .btn-primary:hover span, .btn-primary:hover svg {
  transform: scale(1.06) translateY(-1px);
}
.btn-primary:active .btn-content, .btn-primary:active span, .btn-primary:active svg {
  transform: scale(0.97) translateY(1px);
}

/* 聚焦高亮外圈 */
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px #818cf8cc, 0 6px 24px 0 rgba(59,130,246,0.18);
}

/* icon渐变色和间距 */
.btn-primary svg {
  margin-left: 0.5rem;
  margin-right: 0;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  transition: background 0.3s;
}
.btn-primary:hover svg {
  background: linear-gradient(90deg, #2563eb 0%, #818cf8 100%);
}

/* 禁用态样式 */
.btn-primary:disabled, .btn-primary[aria-disabled="true"] {
  background: linear-gradient(90deg, #cbd5e1 0%, #e5e7eb 100%);
  color: #a1a1aa;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}
.btn-primary:disabled svg, .btn-primary[aria-disabled="true"] svg {
  background: none;
  color: #a1a1aa;
  -webkit-text-fill-color: #a1a1aa;
  text-fill-color: #a1a1aa;
}

/* 数字圆环立体渐变和高光 */
.step-green {
  background: radial-gradient(circle at 30% 30%, #6ee7b7 60%, #10b981 100%, #059669 120%);
  box-shadow: 0 2px 12px 0 #10b98133, 0 0 0 2px #34d39955 inset;
}
.step-orange {
  background: radial-gradient(circle at 30% 30%, #fdba74 60%, #f59e42 100%, #ea580c 120%);
  box-shadow: 0 2px 12px 0 #f59e4233, 0 0 0 2px #fdba7455 inset;
}
.step-red {
  background: radial-gradient(circle at 30% 30%, #fca5a5 60%, #ef4444 100%, #b91c1c 120%);
  box-shadow: 0 2px 12px 0 #ef444433, 0 0 0 2px #fca5a555 inset;
}
.step-purple {
  background: radial-gradient(circle at 30% 30%, #c4b5fd 60%, #6366f1 100%, #6d28d9 120%);
  box-shadow: 0 2px 12px 0 #6366f133, 0 0 0 2px #a78bfa55 inset;
}
.step-green span, .step-orange span, .step-red span, .step-purple span {
  color: #22292f;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px #fff, 0 1px 2px #0004, 0 0.5px 0.5px #fff;
  -webkit-text-stroke: 0px;
}

/* 箭头渐变色 */
.process-arrow {
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
  stroke: url(#arrow-gradient);
}
.process-arrow:hover {
  transform: translateX(6px) scale(1.12) rotate(8deg);
}

/* 流程卡片背景渐变 */
.process-card {
  background: linear-gradient(120deg, #f0f7ff 60%, #f5f3ff 100%);
  transition: box-shadow 0.3s, transform 0.3s, background 0.3s;
  box-shadow: 0 2px 12px 0 rgba(99,102,241,0.06);
}
.process-card:hover {
  box-shadow: 0 8px 32px 0 rgba(99,102,241,0.13);
  transform: translateY(-4px) scale(1.01);
  background: linear-gradient(120deg, #e0e7ff 60%, #ede9fe 100%);
}

/* 流程线条渐变 */
.process-line {
  height: 4px;
  width: 32px;
  border-radius: 2px;
  background: linear-gradient(90deg, #34d399 0%, #f59e42 33%, #ef4444 66%, #6366f1 100%);
  margin: 0 0.5rem;
  opacity: 0.7;
  display: inline-block;
}

@media (max-width: 900px) {
  .process-card .flex.items-center {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .process-card .process-arrow {
    transform: rotate(90deg);
    margin: 0.5rem 0 !important;
    display: block !important;
  }
  .process-line {
    width: 4px;
    height: 32px;
    background: linear-gradient(180deg, #34d399 0%, #f59e42 33%, #ef4444 66%, #6366f1 100%);
    margin: 0.5rem 0;
  }
}
@media (max-width: 640px) {
  .process-card .process-arrow, .process-line {
    display: none !important;
  }
}

/* 数字圆环交互动效 */
.step-interactive {
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1), box-shadow 0.22s, filter 0.22s;
  cursor: pointer;
}
.step-interactive:hover, .step-interactive:focus-visible {
  transform: scale(1.13) rotate(-4deg);
  box-shadow: 0 0 32px 8px #fff8, 0 2px 16px 0 #6366f1cc;
  filter: brightness(1.08) saturate(1.2);
  z-index: 2;
  animation: step-bounce 0.38s cubic-bezier(0.4,0,0.2,1);
}
@keyframes step-bounce {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(1.18) rotate(-8deg); }
  60% { transform: scale(0.98) rotate(2deg); }
  100% { transform: scale(1.13) rotate(-4deg); }
}
.step-interactive span {
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.step-interactive:hover span, .step-interactive:focus-visible span {
  transform: scale(1.18) rotate(2deg);
}

/* 流程线条流动渐变动画 */
.process-line {
  background-size: 200% 100%;
  background-position: 0% 0%;
  animation: line-flow 2.2s linear infinite;
}
@keyframes line-flow {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 0%; }
}

/* 箭头渐变流动和摆动 */
.process-arrow {
  stroke: url(#arrow-gradient);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), filter 0.3s;
  filter: drop-shadow(0 2px 6px #6366f155);
  animation: arrow-swing 2.2s infinite ease-in-out;
}
.process-arrow:hover, .process-arrow:focus {
  filter: drop-shadow(0 4px 12px #6366f199) brightness(1.2);
  animation: arrow-swing-hover 0.6s;
}
@keyframes arrow-swing {
  0%,100% { transform: none; }
  50% { transform: translateX(4px) rotate(8deg); }
}
@keyframes arrow-swing-hover {
  0% { transform: none; }
  40% { transform: translateX(8px) rotate(12deg); }
  60% { transform: translateX(-2px) rotate(-4deg); }
  100% { transform: translateX(4px) rotate(8deg); }
}

/* 卡片悬停时内部元素同步上浮 */
.process-card:hover .step-interactive, .process-card:hover .process-arrow {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.12) saturate(1.2);
}

/* 移动端动画简化 */
@media (max-width: 640px) {
  .step-interactive, .process-arrow, .process-line {
    animation: none !important;
    transition: none !important;
    filter: none !important;
    transform: none !important;
  }
}

/* 3D Cylinder Gallery Styles */
.cylinder-gallery {
  width: 40%;
  height: 20px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cylinder-track {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}
.cylinder-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 100px;
  margin-left: -50px;
  margin-top: -50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}
.cylinder-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 0.75rem;
}
@media (max-width: 600px) {
  .cylinder-gallery {
    width: 100%;
    height: 120px;
    margin: 1.2rem 0;
  }
  .cylinder-item {
    width: 64px;
    height: 64px;
    margin-left: -32px;
    margin-top: -32px;
  }
  .cylinder-item img {
    width: 58px;
    height: 48px;
  }
  .partner-cards-group {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    max-width: 100%;
    width: 100%;
    margin-top: 1.2rem;
  }
}
@media (max-width: 600px) {
  .partner-cards-group .card {
    padding: 1rem;
  }
}

@media (min-width: 900px) {
  .sphere-partner-row {
    gap: 24px;
  }
}

/* 移除合作伙伴区块三个卡片的悬停交互效果 */
.partner-cards-group .card:hover,
.partner-cards-group .card:focus,
.partner-cards-group .card:active {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
  border: 1px solid #eee !important;
  background: #fff !important;
  color: inherit !important;
  transform: none !important;
}

.btn-blue { background: #3B82F6 !important; }
.btn-blue:hover { background: #2563eb !important; }
.btn-green { background: #10B981 !important; }
.btn-green:hover { background: #059669 !important; }
.btn-purple { background: #6366F1 !important; }
.btn-purple:hover { background: #6D28D9 !important; }
.btn-yellow { background: #F59E0B !important; }
.btn-yellow:hover { background: #D97706 !important; }
.btn-red { background: #f10f0f !important; }
.btn-red:hover { background: #BE123C !important; }
.btn-cyan { background: #0EA5E9 !important; }
.btn-cyan:hover { background: #0369A1 !important; }

/* 页脚铺满屏幕修正 */
.footer-container {
  width: 100vw !important;
  max-width: 100% !important;
  margin: 5px 0 0 0 !important;
  border-radius: 0 !important;
  left: 0; right: 0;
  position: relative;
  padding: 40px 0 18px 0 !important;
  background: linear-gradient(120deg, #f8fafc 60%, #e0e7ef 100%);
  color: #25324B;
  box-shadow: 0 8px 32px 0 rgba(80,112,255,0.10), 0 2px 8px 0 rgba(80,112,255,0.08);
  border-top: 1.5px solid #e3e8f0;
  border-left: none;
  border-right: none;
  border-bottom: none;
  transition: box-shadow 0.2s, background 0.2s;
}
@media (max-width: 900px) {
  .footer-container { padding: 24px 0 12px 0 !important; }
}
@media (max-width: 600px) {
  .footer-container { padding: 20px 0 2px 0 !important; border-radius: 0 !important; }
  .footer-title, .footer-main h3 {
    text-align: center !important;
  }
  .footer-main ul {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 2px 12px;
    padding: 0;
  }
  .footer-main ul li {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
    list-style: none;
  }
  .footer-main {
    gap: 8px !important;
  }
  .footer-main > div {
    margin-bottom: 8px !important;
    padding: 12px 6px 8px 6px !important;
  }
}

.footer-main {
  display: grid;
  grid-template-columns: 40% 20% 20% 20%;
  gap: 20px;
  text-align: left;
}
@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
  }
}
.footer-title, .footer-main h3 {
  background: linear-gradient(90deg, #2563eb 30%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: 19.8px;
}
.footer-main a {
  color: #2563eb;
  position: relative;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-main a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563eb 0%, #6366f1 100%);
  transition: width .3s;
  position: absolute;
  left: 0; bottom: -2px;
}
.footer-main a:hover {
  color: #1d4ed8;
}
.footer-main a:hover::after {
  width: 100%;
}
.footer-desc, .footer-main li, .footer-contact-item, .footer-copyright {
  color: #42506A !important;
}
.footer-copyright {
  color: #a0aec0 !important;
  background: none;
  font-size: 0.95rem !important;
  border-top: 1.5px solid #e3e8f0;
  margin-top: 32px;
  padding-top: 14px;
}
.footer-copyright a {
  color: #2563eb !important;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 0;
}
.footer-contact-item {
  background: #f3f4f6;
  border-radius: 999px;
  padding: 7px 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 1rem;
  color: #2563eb;
  border: 1px solid #e5e7eb;
}
.footer-contact-icon svg {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ef 60%, #f8fafc 100%);
  padding: 3px;
  box-shadow: 0 2px 8px #2563eb11;
}
.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 20px 0 0 0;
  overflow: hidden;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f600;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0);
  transition: background 0.18s, box-shadow 0.18s;
  border: 1px solid #e5e7eb00;
  overflow: hidden;
}
.footer-social img {
  max-width: 28px;
  max-height: 28px;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.2);
  transition: filter 0.18s;
}
.footer-social a:hover {
  box-shadow: 0 0 0 8px #2563eb22, 0 2px 8px #2563eb22;
  background: #2563eb !important;
}
.footer-social a:hover img {
  filter: grayscale(0) brightness(1.25) drop-shadow(0 0 6px #2563eb88);
}
.footer-copyright {
  color: #a0aec0 !important;
  background: none;
  font-size: 0.95rem !important;
  border-top: 1.5px solid #e3e8f0;
  margin-top: 32px;
  padding-top: 14px;
}
.footer-copyright a {
  color: #2563eb !important;
  text-decoration: underline;
}

.footer-inner {
  max-width: 1730px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}
@media (max-width: 1200px) {
  .footer-inner { max-width: 98vw; padding: 0 40px; }
}

.mb-12 { margin-bottom: 1rem !important; }
.mt-12 { margin-top: 1.5rem !important; }
.mb-16 { margin-bottom: 2rem !important; }
.mt-16 { margin-top: 2rem !important; }

/* 移动端优化 */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  .gradient-overlay {
    overflow-x: hidden;
    width: 100%;
  }

  main {
    overflow-x: hidden;
    width: 100%;
  }

  .section-container {
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .carousel {
    width: 100%;
    overflow-x: hidden;
  }

  .announcement-text {
    width: 100%;
    overflow-x: hidden;
  }
}

.yj-2 {
  padding-left: 2rem;
}
.yj-3 {
  padding-left: 3rem;
}
.yj-4 {
  padding-left: 7rem;
}