/* 全局样式 */
:root {
  --primary-color: #2e5df7;
  --secondary-color: #1a1f2e;
  --text-color: #ffffff;
  --light-text: #e0e0e0;
  --background: #181a21;
  --warning-color: #ff4d4f;
  --success-color: #52c41a;
  --white: #ffffff;
}

body {
  background-color: var(--background);
  color: var(--text-color);
  line-height: 1.6;
}

/* 按钮样式 */
button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

button:hover {
  background: #1e4ad4;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(46, 93, 247, 0.2);
}

/* 教程卡片样式增强 */
.tutorial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tutorial-card h2 {
  color: #1a1f2e;
  margin-bottom: 16px;
  font-size: 24px;
  font-weight: 600;
}

.tutorial-card p {
  color: #333333;
  margin-bottom: 20px;
  opacity: 0.9;
  font-size: 16px;
  line-height: 1.6;
}

/* 教程卡片按钮样式 */
.tutorial-card button {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(46, 93, 247, 0.2);
}

.tutorial-card button:hover {
  background: #1e45d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 93, 247, 0.3);
}

/* 页头样式增强 */
.tutorial-header {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--secondary-color);
  color: white;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.tutorial-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('https://pic1.imgdb.cn/item/67c0571fd0e0a243d4074465.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  z-index: 1;
}

.tutorial-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26, 31, 46, 0.4), rgba(46, 93, 247, 0.1));
  z-index: 2;
}

.tutorial-header h1,
.tutorial-header p {
  position: relative;
  z-index: 3;
}

.tutorial-header h1 {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 600;
}

.tutorial-header p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* 教程内容样式 */
.tutorial-content {
  background: #1a1f2e;
  border-radius: 12px;
  padding: 30px;
  margin: 40px auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tutorial-section {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.section-title {
  color: var(--primary-color);
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.tutorial-step {
  margin-bottom: 40px;
}

.tutorial-step h3 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 25px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 步骤项样式 */
.step-item {
  margin-bottom: 40px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-item p {
  color: #ffffff;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 图片样式 */
.tutorial-image {
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  margin: 25px 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-image:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.emphasis {
  color: #60a5fa;
  font-weight: 600;
  margin: 15px 0;
  font-size: 17px;
  letter-spacing: 0.3px;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.warning {
  color: #ff8585;
  font-weight: 600;
  margin: 15px 0;
  font-size: 17px;
  letter-spacing: 0.3px;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.action-links {
  margin: 20px 0;
}

.tutorial-link {
  display: block;
  color: #60a5fa;
  text-decoration: none;
  margin: 10px 0;
  transition: color 0.3s ease;
  opacity: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.tutorial-link:hover {
  color: #93c5fd;
  opacity: 1;
}

.warning-text {
  background: rgba(255, 133, 133, 0.15);
  border-left: 4px solid #ff8585;
  padding: 20px;
  margin: 25px 0;
  color: #ff8585;
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 15px;
  }

  .tutorial-header {
    padding: 30px 15px;
  }

  .tutorial-header h1 {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .tutorial-header p {
    font-size: 16px;
    padding: 0 10px;
  }

  .tutorial-content {
    padding: 20px;
    margin: 20px 10px;
    width: auto;
  }

  .section-title {
    font-size: 24px;
  }

  .tutorial-step h3 {
    font-size: 22px;
  }

  .step-item {
    padding: 15px;
    margin-bottom: 20px;
  }

  .tutorial-image {
    margin: 15px 0;
    border-width: 1px;
  }

  .step-item p,
  .emphasis,
  .warning {
    font-size: 15px;
  }

  /* 图片预览移动端优化 */
  .image-preview-overlay img {
    max-width: 95%;
    max-height: 85vh;
  }
}

/* 基础响应式设置 */
:root {
  --primary-color: #2e5df7;
  --secondary-color: #1a1f2e;
  --text-color: #333;
  --white: #ffffff;
}

/* 响应式图片 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* iframe响应式容器 */
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 比例 */
  height: 0;
  overflow: hidden;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
}

/* 下载按钮样式 */
.download-button {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  margin: 10px 0;
  word-break: keep-all;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

/* 下载按钮容器（用于多个按钮并排/换行） */
.download-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-buttons .download-button {
  margin: 0;
}

.download-button:hover {
  background: #1e45d6;
  transform: translateY(-2px);
}

.download-button svg {
  min-width: 20px;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  flex-shrink: 0;
}

/* 教程卡片响应式优化 */
.tutorial-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px;
}

.tutorial-card button {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.tutorial-card button:hover {
  background: #1e45d6;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .tutorial-grid {
    grid-template-columns: 1fr;
    padding: 20px 10px;
  }

  .tutorial-header {
    padding: 20px 10px;
  }

  .tutorial-header h1 {
    font-size: 24px;
  }

  .tutorial-card {
    min-height: 180px;
    padding: 16px;
  }

  .download-button {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
    white-space: normal;
    text-align: center;
    min-height: 48px;
  }

  .download-button svg {
    width: 16px;
    height: 16px;
    margin-right: 6px;
  }
}

@media (max-width: 360px) {
  .download-button {
    font-size: 13px;
    padding: 12px 14px;
  }
  
  .download-button svg {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }
}

/* 触摸设备优化 */
@media (hover: none) {
  .tutorial-card:hover {
    transform: none;
  }
  
  .download-button:hover {
    transform: none;
  }
}

/* 图片预览样式 */
.image-preview-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;  /* 提高层级 */
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.image-preview-overlay.active {
  display: flex;
}

.image-preview-overlay img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10000;  /* 确保图片在最上层 */
}

/* 返回官网按钮样式 */
.back-to-home {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
}

.back-button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(46, 93, 247, 0.2);
}

.back-button:hover {
  background: #1e4ad4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 93, 247, 0.3);
}

.back-button svg {
  transition: transform 0.3s ease;
}

.back-button:hover svg {
  transform: translateX(-2px);
}

@media (max-width: 768px) {
  .back-to-home {
    top: 10px;
    left: 10px;
  }
  
  .back-button {
    padding: 8px 16px;
    font-size: 14px;
  }
} 