:root {
  --primary-gradient: linear-gradient(135deg, #042c89, #431989);
  --button-gradient-start: #fff082d1!important ;
  --button-gradient-mid: #e2ff4fb3!important ;
  --button-gradient-end: #ff0707!important ;
  --danger-color: #dc3825;
  --success-color: #1dbf60;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.3);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

.btn-modern{
  background: linear-gradient(180deg,
    var(--button-gradient-start) 0%,
    var(--button-gradient-mid) 50%,
    var(--button-gradient-end) 100%
  );
  border: none;
  border-radius: 39px;
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.1);
  width: 90%;
  height: 78px;
  line-height: 78px;
  margin: 20px auto;
  font-size: 36px;
  cursor: pointer;
  text-align: center;
  color: #030a3d;
  font-weight: bold;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(0,0,0,0.15);
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.15),
    inset 0 1px 2px rgba(0,0,0,0.2);
}

@keyframes pulse-enhanced {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      var(--shadow-md),
      0 0 0 0 rgba(255, 235, 59, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow:
      var(--shadow-lg),
      0 0 20px 10px rgba(255, 235, 59, 0);
  }
}

.btn-modern.pulse {
  animation: pulse-enhanced 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.arrow-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 44px;
  position: relative;
  transition: transform var(--transition-normal);
}

.arrow-up {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 20px solid var(--danger-color);
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.arrow-up::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 20px;
  width: 10px;
  height: 24px;
  background: var(--danger-color);
  border-radius: 0 0 2px 2px;
}

.arrow-down {
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 20px solid var(--success-color);
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.arrow-down::after {
  content: '';
  position: absolute;
  left: -5px;
  bottom: 20px;
  width: 10px;
  height: 24px;
  background: var(--success-color);
  border-radius: 2px 2px 0 0;
}

.arrow-icon:hover {
  transform: scale(1.1);
}

.dialog-modern {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  width: 90%;
  max-width: 680px;
  height: auto;
  max-height: 85vh;
  overflow-y: auto;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: var(--shadow-xl);
  z-index: 1000;
  display: none;
  margin: 0;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dialog-modern::before,
.dialog-modern::after {
  content: '';
  position: absolute;
  top: 80px;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #4a90e2, #4a90e2, transparent);
}

.dialog-modern::before {
  left: 30px;
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

.dialog-modern::after {
  right: 30px;
  animation: slideInRight 0.6s ease-out 0.2s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.close-btn {
  width: 49px;
  height: 49px;
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.close-btn::before,
.close-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
}

.close-btn::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-btn::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-btn:hover {
  transform: scale(1.1) rotate(90deg);
  background: rgba(220, 56, 37, 0.9);
}

.close-btn:hover::before,
.close-btn:hover::after {
  background: #fff;
}

.table-modern {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%),
    linear-gradient(to bottom, #fff9e6, #ffffff);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 235, 59, 0.2);
}

.table-modern thead th {
  background: linear-gradient(180deg, #FFE082, #FFD54F);
  padding: 12px;
  font-weight: bold;
  color: #030a3d;
  border-bottom: 2px solid #FFC107;
}

.table-modern tbody tr {
  transition: all var(--transition-fast);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.table-modern tbody tr:hover {
  background: rgba(255, 235, 59, 0.1);
  transform: translateX(5px);
  box-shadow: -4px 0 8px rgba(255, 193, 7, 0.3);
}

.progress-container {
  margin: 15px 0;
}

.progress-bar-wrapper {
  position: relative;
  width: 100%;
  height: 35px;
  background: rgba(0,0,0,0.1);
  border-radius: 100px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  position: relative;
  transition: width 0.3s ease;
  background: linear-gradient(90deg, #FFD54F, #FFC107);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.3), transparent);
  border-radius: 100px 100px 0 0;
}

.progress-bar.market-analysis {
  background: linear-gradient(90deg, #FFD54F, #FF9800);
}

.progress-bar.chart-analysis {
  background: linear-gradient(90deg, #FF7F50, #FF6347);
}

.progress-bar.news-analysis {
  background: linear-gradient(90deg, #87CEFA, #4A90E2);
}

.report-icons {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin: 20px auto;
  gap: 8px;
  max-width: 100%;
  padding: 0 10px;
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  min-width: 0;
  animation: fadeInUp 0.6s ease-out forwards;  /* 改 backwards 为 forwards */
  opacity: 1;  /* 添加这一行,确保最终状态是可见的 */
}


.icon-item:nth-child(1) { animation-delay: 0.1s; }
.icon-item:nth-child(2) { animation-delay: 0.2s; }
.icon-item:nth-child(3) { animation-delay: 0.3s; }
.icon-item:nth-child(4) { animation-delay: 0.4s; }
.icon-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.folder-icon {
  width: 70px;
  height: 70px;
  min-height: 70px;
  margin-bottom: 8px;
  transition: transform var(--transition-normal);
  display: block;
}

.folder-icon:hover {
  transform: scale(1.1) translateY(-5px);
}

.icon-label {
  display: block;
  width: 100%;
  padding: 6px 4px;
  background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
  border-radius: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #1976D2;
  text-align: center;
  box-shadow: var(--shadow-sm);
  line-height: 1.3;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.data-bg-modern {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), transparent),
    linear-gradient(180deg, rgba(4,44,137,0.9), rgba(67,25,137,0.8));
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading-shimmer {
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 50%,
    transparent 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

@media (max-width: 768px) {
  .btn-modern {
    height: 64px;
    line-height: 64px;
    font-size: 28px;
  }

  .dialog-modern {
    width: 85%;
    max-width: none;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .report-icons {
    flex-wrap: wrap;
  }

  .icon-item {
    flex: 0 0 calc(50% - 8px);
  }
}
