/* ===================== 全局重置 ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===================== 容器 ===================== */
.container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: #fff;
}

/* ===================== 导航栏 ===================== */
.navbar {
  background-color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-title {
  font-size: 17px;
  font-weight: 600;
  color: #333;
}

.navbar-back {
  position: absolute;
  left: 16px;
  font-size: 16px;
  color: #3589FF;
  cursor: pointer;
}

/* ===================== Banner ===================== */
.banner {
  width: 100%;
  display: block;
}

/* ===================== 模式卡片 ===================== */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 40px 20px;
}

.mode-card {
  flex: 1;
  max-width: 180px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.mode-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 12px rgba(53, 137, 255, 0.2);
}

.card-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: block;
}

.card-desc {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
  display: block;
}

/* ===================== 按钮 ===================== */
.btn {
  display: block;
  width: calc(100% - 40px);
  margin: 12px 20px;
  padding: 14px 16px;
  border: none;
  border-radius: 23px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.8;
}

.btn-primary {
  background: #3589FF;
  color: #fff;
}

.btn-secondary {
  background: #E9E9EA;
  color: #3589FF;
}

.btn-danger {
  background: #ff4d4f;
  color: #fff;
}

.btn-small {
  width: auto;
  display: inline-block;
  padding: 8px 20px;
  font-size: 13px;
  margin: 4px;
}

/* ===================== 体验模式按钮组 ===================== */
.style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px;
}

.style-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.style-card:active {
  box-shadow: 0 2px 8px rgba(53, 137, 255, 0.15);
}

.style-card-title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.style-card-desc {
  font-size: 11px;
  color: #999;
}

/* ===================== 日志区域 ===================== */
.log-section {
  padding: 16px 20px;
}

.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.log-header-title {
  font-size: 15px;
  font-weight: 600;
}

.log-list {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 12px;
  max-height: 400px;
  overflow-y: auto;
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.8;
}

.log-item {
  padding: 4px 0;
  border-bottom: 1px solid #eee;
  word-break: break-all;
}

.log-item:last-child {
  border-bottom: none;
}

.log-time {
  color: #999;
  margin-right: 8px;
}

.log-success {
  color: #52c41a;
}

.log-error {
  color: #ff4d4f;
}

.log-info {
  color: #3589FF;
}

/* ===================== 步骤区域 ===================== */
.step-section {
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-badge {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: #3589FF;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.step-desc {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
}

.step-result {
  margin-top: 12px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 6px;
  font-size: 12px;
  word-break: break-all;
  font-family: 'Menlo', 'Courier New', monospace;
  display: none;
}

.step-result.visible {
  display: block;
}

/* ===================== 结果页 ===================== */
.result-section {
  padding: 40px 20px;
  text-align: center;
}

.result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
}

.result-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.result-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.result-detail {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  font-size: 13px;
  word-break: break-all;
  font-family: 'Menlo', 'Courier New', monospace;
  line-height: 1.8;
}

.result-label {
  color: #999;
  margin-right: 8px;
}

.result-value {
  color: #333;
}

/* ===================== 环境信息 ===================== */
.env-info {
  padding: 12px 20px;
  text-align: center;
  font-size: 12px;
  color: #999;
}

.env-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #e6f7ff;
  color: #1890ff;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 4px;
}

/* ===================== 协议弹窗 ===================== */
.agree-prompt-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agree-prompt-content {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  width: 80%;
  max-width: 320px;
  text-align: center;
}

.agree-prompt-text {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

.agree-prompt-btns {
  display: flex;
  gap: 12px;
}

.agree-prompt-btns .btn {
  flex: 1;
  margin: 0;
  width: auto;
}
