/* 基础样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* 容器样式 */
.container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f0f2f5;
  padding: 20px;
}

/* 加载动画 */
.loader {
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #2196F3;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 平台卡片样式 */
.platform-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

h1 {
  color: #1a1a1a;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.status-text {
  color: #666;
  margin-bottom: 20px;
}

.status-text span {
  color: #2196F3;
  font-weight: bold;
}

.fallback-link {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.fallback-link a {
  display: inline-block;
  background: #2196F3;
  color: white !important;
  padding: 10px 25px;
  border-radius: 25px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.fallback-link a:hover {
  opacity: 0.9;
}

/* 按钮组样式 */
.button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}

.platform-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s;
}

.platform-btn:hover {
  transform: translateY(-2px);
}

.web { background: #2196F3; }
.mini-program { background: #4CAF50; }
.douyin { background: #FF0050; }
.kuaishou { background: #FF6600; }

:root {
  font-size: 16px;
}

/* 移动端适配 */
@media (max-width: 480px) {
  .platform-card {
    padding: 1.25rem;
  }
  .button-group {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  h1 {
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .platform-card {
    padding: 1rem;
  }
  .button-group {
    gap: 0.5rem;
  }
  h1 {
    font-size: 1rem;
  }
  .platform-btn {
    min-width: 9rem;
    padding: 0.75rem 1rem;
  }
}