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

body {
  font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  background-color: #242628;
  color: #ffffff;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  width: 100%;
  min-height: 100vh;
  background-image: url(./assets/world.svg);
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: 70px;
  background-origin: padding-box;
}

/* 头部区域 */
.header {
  text-align: center;
  margin-bottom: 50px;
}

.logo-img {
  width: 200px;
  height: auto;
  margin-bottom: 30px;
}

.main-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 20px;
  color: #ff9e40;
  margin-bottom: 20px;
  font-weight: 500;
}

.description {
  font-size: 16px;
  color: #aaaaaa;
  line-height: 1.6;
}

/* 测速区域 */
.speed-test-section {
  width: 100%;
  max-width: 500px;
  margin-bottom: 40px;
}

.test-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.test-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #666;
}

.status-indicator.loading {
  background: #ff9e40;
  animation: pulse-dot 1s infinite;
}

.status-indicator.complete {
  background: #00ff88;
}

.status-indicator.error {
  background: #ff4444;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.status-text {
  font-size: 16px;
  color: #ffffff;
  font-weight: 600;
}

/* 圆形进度条 */
.progress-area {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.progress-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.progress-circle svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-circle circle {
  fill: none;
  stroke-width: 8;
}

.progress-bg {
  stroke: rgba(255, 255, 255, 0.1);
}

.progress-bar {
  stroke: url(#gradient);
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.1s;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.progress-text .percent {
  font-size: 48px;
  font-weight: 700;
  color: #ff9e40;
}

.progress-text .unit {
  font-size: 20px;
  color: #888;
}

/* 速度显示 */
.speed-display {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
}

.speed-item {
  text-align: center;
}

.speed-label {
  display: block;
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.speed-value {
  font-size: 32px;
  font-weight: 700;
  color: #00ff88;
  font-family: 'Courier New', monospace;
}

.speed-unit {
  font-size: 14px;
  color: #666;
  margin-left: 4px;
}

/* 测试信息 */
.test-info {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #888;
}

.test-info strong {
  color: #ffffff;
}

/* 结果区域（整合在黑卡片中） */
.result-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.result-summary {
  margin-bottom: 20px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
}

.result-row.highlight {
  background: rgba(0, 255, 136, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin: 10px 0;
}

.result-row.highlight .result-label {
  color: #00ff88;
}

.result-row.highlight .result-value {
  color: #00ff88;
  font-size: 20px;
  font-weight: 700;
}

.result-row .result-label {
  color: #888;
}

.result-row .result-value {
  color: #ffffff;
  font-weight: 600;
}

/* 按钮区域 */
.button-area {
  margin-top: 20px;
}

.test-btn {
  width: 100%;
  background: linear-gradient(135deg, #f6821f, #ff9e40);
  color: #ffffff;
  border: none;
  padding: 15px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 30px;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(246, 130, 31, 0.4);
}

.test-btn {
  background: linear-gradient(135deg, #f6821f, #ff9e40);
  cursor: pointer;
  opacity: 1;
}

/* 下载区域 */
.download-section {
  width: 100%;
  max-width: 800px;
  margin-bottom: 50px;
}

.compare-btn-area {
  text-align: center;
  margin-bottom: 25px;
}

.compare-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #9c27b0, #2196f3);
  color: #ffffff;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
}

.compare-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(156, 39, 176, 0.5);
}

.compare-icon {
  font-size: 24px;
}

.compare-text {
  text-align: left;
  line-height: 1.3;
}

.compare-text small {
  font-size: 12px;
  opacity: 0.8;
  font-weight: 400;
}

.download-section h3 {
  text-align: center;
  font-size: 20px;
  color: #ff9e40;
  margin-bottom: 25px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.download-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #f6821f;
  transform: translateY(-5px);
}

.download-card.featured {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.2), rgba(121, 40, 202, 0.2));
  border-color: #ff0080;
  position: relative;
}

.download-card.featured:hover {
  box-shadow: 0 10px 30px rgba(255, 0, 128, 0.3);
}

.file-size {
  font-size: 24px;
  font-weight: 700;
  color: #ff9e40;
}

.file-desc {
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}

.file-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: linear-gradient(135deg, #ff0080, #7928ca);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
}

/* 页脚 */
.footer {
  text-align: center;
  margin-top: auto;
  padding-top: 40px;
}

.footer img {
  width: 150px;
  margin-bottom: 15px;
}

.footer-text {
  font-size: 14px;
  color: #666;
}

/* 页面信息 */
.page-info {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #ff9e40;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 12px;
  font-family: monospace;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 158, 64, 0.3);
}

/* 响应式 */
@media screen and (max-width: 600px) {
  .main-title {
    font-size: 28px;
  }
  
  .progress-circle {
    width: 150px;
    height: 150px;
  }
  
  .progress-text .percent {
    font-size: 36px;
  }
  
  .speed-value {
    font-size: 24px;
  }
  
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
