/* =============== PREMIUM VISUAL ELEMENTS =============== */

/* 高级装饰元素 */
.premium-decoration {
  position: absolute;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
}

.decoration-dots {
  background-image: radial-gradient(var(--premium-gray) 1px, transparent 1px);
  background-size: 20px 20px;
}

.decoration-lines {
  background-image: linear-gradient(to right, var(--premium-gray-light) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* 高级分隔线 */
.premium-divider {
  height: 3px;
  width: 80px;
  margin: 30px auto;
  background: linear-gradient(to right, var(--premium-primary), var(--premium-gold));
  border-radius: 3px;
}

.premium-divider.left {
  margin-left: 0;
}

.premium-divider.right {
  margin-right: 0;
}

/* 数字计数器 */
.counter-section {
  padding: 80px 0;
  background-color: var(--premium-white);
  position: relative;
  overflow: hidden;
}

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

.counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.counter-item {
  text-align: center;
  padding: 30px;
  background-color: var(--premium-white);
  border-radius: 10px;
  box-shadow: var(--premium-shadow);
  transition: var(--premium-transition);
  position: relative;
  overflow: hidden;
}

.counter-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--premium-shadow-lg);
}

.counter-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--premium-primary), var(--premium-gold));
}

.counter-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--premium-primary);
  margin-bottom: 10px;
  background: linear-gradient(to right, var(--premium-primary), var(--premium-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.counter-label {
  font-size: 16px;
  color: var(--premium-gray-dark);
  font-weight: 500;
}

/* 精美卡片悬停效果 */
.premium-card {
  position: relative;
  background-color: var(--premium-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--premium-shadow);
  transition: var(--premium-transition);
  z-index: 1;
}

.premium-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--premium-shadow-xl);
}

.premium-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--premium-primary), var(--premium-gold));
  z-index: 2;
}

.premium-card-content {
  padding: 30px;
  position: relative;
  z-index: 2;
}

/* 3D转换效果 */
.premium-3d-effect {
  transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.premium-3d-effect:hover {
  transform: rotateX(5deg) rotateY(5deg);
}

/* 高级按钮效果 */
.premium-btn {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(to right, var(--premium-primary), var(--premium-primary-dark));
  color: white;
  font-weight: 600;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
  transition: var(--premium-transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.premium-btn::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.7s;
  z-index: -1;
}

.premium-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0, 86, 179, 0.3);
}

.premium-btn:hover::before {
  left: 100%;
}

.premium-btn-gold {
  background: linear-gradient(to right, var(--premium-gold), var(--premium-gold-light));
  color: var(--premium-dark);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

.premium-btn-gold:hover {
  box-shadow: 0 12px 25px rgba(212, 175, 55, 0.3);
}

/* 高级徽章 */
.premium-badge {
  display: inline-block;
  padding: 5px 15px;
  background: linear-gradient(to right, var(--premium-gold), var(--premium-gold-light));
  color: var(--premium-dark);
  font-weight: 600;
  font-size: 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
  margin-bottom: 20px;
}

/* 高级图标容器 */
.premium-icon-box {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--premium-primary), var(--premium-primary-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 28px;
  box-shadow: 0 8px 20px rgba(0, 86, 179, 0.2);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.premium-icon-box.square {
  border-radius: 10px;
}

.premium-icon-box.circle {
  border-radius: 50%;
}

.premium-icon-box.gold {
  background: linear-gradient(135deg, var(--premium-gold), var(--premium-gold-light));
  color: var(--premium-dark);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
}

/* 高级动画类 */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 1s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1s; }

/* 动画关键帧 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes fadeInLeft {
  from { 
    opacity: 0;
    transform: translateX(-30px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* 高级滚动触发动画 */
.premium-theme .scroll-animation {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.premium-theme .scroll-animation.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 精美引用样式 */
.premium-quote {
  position: relative;
  padding: 30px 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: var(--premium-shadow);
  margin: 40px 0;
}

.premium-quote::before {
  content: """;
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 80px;
  color: var(--premium-gold);
  font-family: Georgia, serif;
  line-height: 1;
}

.premium-quote p {
  font-style: italic;
  color: var(--premium-gray-dark);
  margin-bottom: 15px;
}

.premium-quote-author {
  font-weight: 600;
  color: var(--premium-primary);
  font-size: 14px;
  text-align: right;
}

/* 世界级标志徽章 */
.world-class-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(to right, var(--premium-gold), var(--premium-gold-light));
  color: var(--premium-dark);
  font-weight: 700;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
  z-index: 10;
}

.world-class-badge::before {
  content: "★";
  margin-right: 5px;
}

/* 全息卡片效果 */
.holographic-card {
  position: relative;
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--premium-shadow);
  transition: var(--premium-transition);
  z-index: 1;
}

.holographic-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.2) 25%,
    rgba(0, 86, 179, 0.1) 50%,
    rgba(212, 175, 55, 0.1) 75%,
    rgba(255, 255, 255, 0.1) 100%
  );
  transform: translateY(100%);
  transition: transform 0.6s ease;
  z-index: 1;
}

.holographic-card:hover::before {
  transform: translateY(0);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .counter-value {
    font-size: 36px;
  }
  
  .counter-item {
    padding: 20px;
  }
  
  .premium-card-content {
    padding: 20px;
  }
  
  .premium-btn {
    padding: 12px 25px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .counter-grid {
    gap: 20px;
  }
  
  .premium-divider {
    margin: 20px auto;
  }
  
  .premium-icon-box {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
}

/* 翻转卡片基础样式 */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
  height: 100%;
  margin-bottom: 20px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}

/* 悬停时翻转效果 */
.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* 卡片正面和背面的公共样式 */
.flip-card-front, 
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
}

/* 卡片正面样式 */
.flip-card-front {
  background-color: rgba(30, 30, 45, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(100, 120, 200, 0.2);
}

/* 卡片背面样式 */
.flip-card-back {
  transform: rotateY(180deg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(100, 120, 200, 0.2);
}

/* 卡片背面内容区域 - 毛玻璃效果 */
.flip-card-content {
  background: rgba(20, 20, 35, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 25px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flip-card-content h3 {
  color: var(--premium-gold);
  margin-bottom: 15px;
  font-size: 1.4rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  position: relative;
}

.flip-card-content h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--premium-gold);
}

.flip-card-content p {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 90%;
  margin: 0 auto;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 确保特性卡片的基础样式适应翻转功能 */
.premium-theme .feature.flip-card {
  height: 100%;
  min-height: 280px;
  padding: 0;
  overflow: visible;
  margin-bottom: 20px;
}

.premium-theme .feature.flip-card::before {
  display: none;
}

/* 图标在翻转卡片中的特殊样式 */
.flip-card-front .feature-icon {
  margin-bottom: 20px;
}

/* 触摸屏设备支持 */
@media (hover: none) {
  .flip-card-inner {
    transition: none;
  }
  
  .flip-card:active .flip-card-inner {
    transform: rotateY(180deg);
  }
}

/* RTL支持 */
[dir="rtl"] .flip-card:hover .flip-card-inner {
  transform: rotateY(-180deg);
}

[dir="rtl"] .flip-card-back {
  transform: rotateY(-180deg);
}

[dir="rtl"] .flip-card-content h3:after {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* 移动设备响应式调整 */
@media (max-width: 768px) {
  .flip-card-inner {
    min-height: 250px;
  }
  
  .flip-card-content h3 {
    font-size: 1.2rem;
  }
  
  .flip-card-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .flip-card-inner {
    min-height: 220px;
  }
  
  .flip-card-content {
    padding: 20px 15px;
  }
  
  .flip-card-content h3 {
    font-size: 1.1rem;
  }
  
  .flip-card-content p {
    font-size: 0.85rem;
    line-height: 1.5;
  }
}

/* 工具区域入场动画 */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 10px 30px rgba(0, 86, 179, 0.2);
  }
  50% {
    box-shadow: 0 15px 40px rgba(0, 86, 179, 0.4);
  }
}

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

@keyframes rotateIn {
  0% {
    opacity: 0;
    transform: rotateY(90deg) scale(0.7);
  }
  100% {
    opacity: 1;
    transform: rotateY(0) scale(1);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  70% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-60px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 工具标题动画 */
.tools h2 {
  position: relative;
  animation: none;
  opacity: 0;
}

.tools h2.animate {
  animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.tools h2::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--premium-gold), var(--premium-gold-light));
  transform: translateX(-50%);
  transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.5s;
}

.tools h2.animate::after {
  width: 80px;
}

/* 工具卡片动画 */
.glass-panel-wrap {
  opacity: 0;
  transform: translateY(60px);
  transition: none;
  perspective: 1000px;
}

.glass-panel-wrap.animate {
  animation: floatIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.glass-panel-wrap.animate:nth-child(1) {
  animation-delay: 0.3s;
}

.glass-panel-wrap.animate:nth-child(2) {
  animation-delay: 0.5s;
}

.glass-panel-wrap.animate:nth-child(3) {
  animation-delay: 0.7s;
}

.glass-panel {
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  will-change: transform;
}

.glass-panel-wrap:hover .glass-panel {
  transform: translateY(-10px);
}

/* 工具图标动画 */
.tool-icon {
  position: relative;
  opacity: 0;
}

.glass-panel-wrap.animate .tool-icon {
  animation: popIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 0.9s;
}

.tool-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, rgba(102, 126, 234, 0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  transition: width 0.5s ease, height 0.5s ease;
}

.glass-panel-wrap.animate .tool-icon::after {
  width: 100px;
  height: 100px;
  transition-delay: 1.2s;
}

/* 工具标题和描述动画 */
.glass-panel-title, .tool-content p {
  opacity: 0;
}

.glass-panel-wrap.animate .glass-panel-title {
  animation: slideInRight 0.7s ease forwards;
  animation-delay: 0.8s;
}

.glass-panel-wrap.animate .tool-content p {
  animation: slideInLeft 0.7s ease forwards;
  animation-delay: 0.9s;
}

/* 按钮动画 */
.glass-button-container {
  opacity: 0;
}

.glass-panel-wrap.animate .glass-button-container {
  animation: popIn 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  animation-delay: 1s;
}

/* 闪光效果 */
.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.2) 50%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.glass-panel-wrap.animate .glass-panel::before {
  opacity: 1;
  animation: shineEffect 1.5s ease-in-out;
  animation-delay: 1.5s;
}

/* 背景形状动画 */
.tools-bg-shape {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s ease, transform 1.5s ease;
}

.tools-bg-shape.animate {
  opacity: 0.6;
  transform: scale(1);
}

.tools-bg-shape-1.animate {
  transition-delay: 0.2s;
}

.tools-bg-shape-2.animate {
  transition-delay: 0.4s;
}

.tools-bg-shape-3.animate {
  transition-delay: 0.6s;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .glass-panel-wrap.animate {
    animation-delay: 0.3s !important;
  }
  
  .glass-panel-wrap.animate:nth-child(2) {
    animation-delay: 0.4s !important;
  }
  
  .glass-panel-wrap.animate:nth-child(3) {
    animation-delay: 0.5s !important;
  }
} 