* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  background-color: #f0f2f5;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 加载动画覆盖层 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
  opacity: 1;
  visibility: visible;
}

.loading-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
}

.loader {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  border-top-color: #3b82f6;
  animation: spin 1s linear infinite, pulse-glow 2s ease-in-out infinite;
}

.loading-text {
  margin-top: 20px;
  color: #f1f5f9;
  font-size: 16px;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
  50% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8);
  }
  100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
  }
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* 内容容器 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  gap: 20px;
  padding-bottom: 40px;
}

.content-loaded {
  opacity: 1;
}

/* 块状项目共享样式 */
.block-item {
  background: white;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(50px);
  will-change: transform, opacity;
  overflow: hidden;
}

/* 块状项目动画 */
.content-loaded .block-item {
  animation: slideInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.content-loaded .block-score {
  animation-delay: 0s;
}

.content-loaded .block-warning {
  animation-delay: 0.15s;
}

.content-loaded .block-engine {
  animation-delay: 0.3s;
}

.content-loaded .block-features {
  animation-delay: 0.45s;
}

.content-loaded .block-details {
  animation-delay: 0.6s;
}

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

/* 分数包装器 */
.score-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 10px;
}

/* 分数部分 */
.score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0;
  position: relative;
  margin-bottom: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.block-item.score-section {
  background: transparent;
  box-shadow: none;
  padding: 63px 0 48px;
  overflow: visible;
}

.score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  margin-top: 20px;
  z-index: 1;
}

.score {
  font-size: 86px;
  font-weight: bold;
  margin-bottom: -8px;
  transition: color 0.5s ease;
  position: relative;
  text-align: center;
  min-width: 150px;
}

.score-green {
  color: #22c55e;
}

.score-yellow {
  color: #eab308;
}

.score-orange {
  color: #f97316;
}

.score-red {
  color: #ef4444;
}

.score-text {
  font-size: 18px;
  color: #64748b;
}

/* 动画容器 */
.animation-container {
  position: absolute;
  width: 250px;
  height: 250px;
  z-index: 0;
}

.circle-loader {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.2;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.2;
  }
}

/* 警告块 */
.block-warning {
  background-color: #fffbeb;
  border-left: 5px solid #f59e0b;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.warning-icon {
  font-size: 24px;
  color: #f59e0b;
}

.warning-content h3 {
  color: #b45309;
  margin: 0 0 8px 0;
  font-size: 16px;
}

.warning-content p {
  color: #92400e;
  font-size: 14px;
  margin: 0;
}

/* 浏览器内核信息 */
.block-engine {
  background-color: #f8fafc;
}

.block-engine h3 {
  margin-top: 0;
  color: #0f172a;
  font-size: 18px;
  margin-bottom: 16px;
}

.browser-info p {
  margin-top: 5px;
  margin-bottom: 5px;
  font-size: 15px;
  line-height: 1.6;
}

.engine-recommendation {
  margin: 16px 0;
  padding: 12px 16px;
  background: #e0f2fe;
  border-radius: 8px;
  font-size: 14px;
  color: #075985;
}

.user-agent {
  font-size: 12px !important;
  color: #64748b;
  word-break: break-all;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* 特性支持块 */
.block-features {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.block-features h3 {
  margin-top: 0;
  color: #0f172a;
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-item {
  flex: 1;
  text-align: center;
  background: white;
  border-radius: 12px;
  padding: 16px 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #334155;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: #64748b;
}

/* 移动设备检测提示 */
.mobile-notice {
  background-color: #f0f9ff;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
}

.features-recommendation {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-top: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.features-recommendation p {
  margin: 0;
  color: #334155;
  font-size: 14px;
}

/* 详细检测结果块 */
.block-details {
  padding-bottom: 10px;
}

.block-details h3 {
  margin-top: 0;
  color: #0f172a;
  font-size: 18px;
  margin-bottom: 16px;
}

.detail-items-container {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}

.detail-items-container::-webkit-scrollbar {
  width: 6px;
}

.detail-items-container::-webkit-scrollbar-track {
  background: transparent;
}

.detail-items-container::-webkit-scrollbar-thumb {
  background-color: #e2e8f0;
  border-radius: 3px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  align-items: center;
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
}

.content-loaded .detail-item {
  animation-name: fadeIn;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.detail-name {
  color: #475569;
  flex: 1;
  padding-right: 10px;
}

.detail-status {
  font-weight: 500;
  border-radius: 4px;
  padding: 4px 10px;
  background-color: #fee2e2;
  color: #ef4444;
  white-space: nowrap;
  font-size: 13px;
}

.detail-status.supported {
  background-color: #dcfce7;
  color: #22c55e;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .score {
    font-size: 72px;
  }
  
  .block-item.score-section {
    padding: 60px 0 43px;
  }
  
  .animation-container {
    width: 200px;
    height: 200px;
  }
  
  .block-warning {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }
  
  .detail-item {
    flex-wrap: wrap;
  }
  
  .detail-name {
    width: 100%;
    margin-bottom: 5px;
    padding-right: 0;
  }
  
  .detail-status {
    margin-left: auto;
  }
  
  .container {
    padding: 12px;
  }
  
  .block-item {
    padding: 16px;
  }
}

@media (max-width: 440px) {
  .score {
    font-size: 60px;
  }
  
  .block-item.score-section {
    padding: 55px 0 33px;
  }
  
  .feature-stats {
    flex-direction: column;
    gap: 8px;
  }

  .animation-container {
    width: 180px;
    height: 180px;
  }
} 