/* 教程页面样式 */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}


/* 全屏覆盖层 */
#fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* 当覆盖层显示时使用 flex 布局 */
#fullscreen-overlay.show {
  display: flex !important;
}


.overlay-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  margin: 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  line-height: 1.6;
}

#go-on-button {
  background-color: #007AFF;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 20px;
}

#go-on-button:hover {
  background-color: #0056CC;
}

/* 步骤按钮 */
.step-buttons {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 100;
}

.step-buttons a {
  display: block;
  padding: 8px 16px;
  margin: 5px 0;
  text-decoration: none;
  color: #007AFF;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.step-buttons a:hover {
  background-color: #f0f0f0;
}

.hidden-buttons {
  display: none;
}

/* 提示横幅 */
#sticky-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff3cd;
  border-bottom: 1px solid #ffeaa7;
  padding: 15px;
  text-align: center;
  z-index: 200;
}

.img-container-notice img {
  max-width: 30px;
  vertical-align: middle;
  margin-right: 10px;
}

/* 主容器 */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 警告区域 */
.warning {
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
}

.warning p {
  margin-bottom: 10px;
}

.warning p:last-child {
  margin-bottom: 0;
}

/* 高亮文本 */
.highlight {
  color: #e74c3c;
  font-weight: bold;
}

/* 图片容器 */
.img-container {
  text-align: center;
  margin: 20px 0;
}

.img-container img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 步骤样式 */
.step {
  background: white;
  margin: 30px 0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.step h2 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 24px;
}

.step p {
  margin-bottom: 15px;
  line-height: 1.8;
}

/* 账号框 */
.account-box {
  background-color: #e8f4fd;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

/* 复制按钮组 */
.copy-group {
  display: flex;
  align-items: center;
  margin: 15px 0;
  gap: 15px;
}

.copy-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.copy-button:hover {
  background-color: #218838;
}

.copy-button:active {
  background-color: #1e7e34;
}

/* 最终提示 */
.final-tip {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  text-align: center;
}

/* ==============================================
   订单验证系统样式
   ============================================== */

/* 验证覆盖层 */
.verification-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.verification-modal {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.verification-header {
  text-align: center;
  margin-bottom: 30px;
}

.verification-header h2 {
  color: #2c3e50;
  margin-bottom: 10px;
  font-size: 28px;
}

.verification-header p {
  color: #7f8c8d;
  font-size: 16px;
}

/* 验证表单 */
.verification-form {
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2c3e50;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e8ed;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff;
}

.form-input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-hint {
  margin-top: 6px;
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.4;
}

.submit-btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* 消息样式 */
.message {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 14px;
  line-height: 1.4;
}

.error-message {
  background-color: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

.success-message {
  background-color: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

.message-icon {
  font-size: 18px;
  flex-shrink: 0;
}

/* 验证状态指示器 */
.verification-status {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e1e8ed;
}

.status-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-icon {
  color: #27ae60;
  font-size: 16px;
}

.status-text {
  font-weight: 600;
  color: #2c3e50;
  font-size: 14px;
}

.session-timer {
  color: #7f8c8d;
  font-size: 12px;
  margin-left: 5px;
}

.status-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  margin-left: 5px;
}

.status-btn:hover {
  background-color: #f0f0f0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .step {
    padding: 20px;
  }

  .step-buttons {
    position: relative;
    top: auto;
    right: auto;
    margin: 20px 0;
  }

  .copy-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .overlay-content {
    padding: 30px 20px;
    width: 95%;
    max-width: 400px;
  }

  /* 验证覆盖层移动端适配 */
  .verification-modal {
    padding: 30px 20px;
    margin: 20px;
  }

  .verification-header h2 {
    font-size: 24px;
  }

  .verification-status {
    top: 10px;
    right: 10px;
    left: 10px;
    justify-content: center;
  }

  .session-timer {
    display: none;
  }
}