* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #f6f4ef;
  background-image: repeating-radial-gradient(circle at 20px 20px, rgba(23,21,31,0.05) 0px, rgba(23,21,31,0.05) 1px, transparent 1px, transparent 4px);
  color: #17151f;
  line-height: 1.9;
  font-size: 16px;
}

/* 左侧固定侧栏（桌面） */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 232px;
  height: 100vh;
  background: #17151f;
  color: #f6f4ef;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transition: transform 0.28s ease;
  z-index: 100;
}
.sidebar .site-name {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -1px;
  color: #ff5a36;
  border-bottom: 2px solid #ff5a36;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.sidebar .nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar .nav a {
  color: #f6f4ef;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 0 12px 0 12px;
  font-size: 15px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border: 1px solid transparent;
}
.sidebar .nav a:hover {
  background: #ff5a36;
  color: #17151f;
  transform: translateX(4px);
  border-color: #ff5a36;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 16px;
}
.sidebar-footer a {
  color: #ffd166;
  text-decoration: none;
  font-size: 14px;
}
.sidebar-footer a:hover { color: #19c6c8; }

/* 主内容 */
.content {
  margin-left: 232px;
  max-width: 1080px;
  padding: 40px 48px 80px;
}
.section {
  scroll-margin-top: 24px;
  margin-bottom: 48px;
  padding: 36px 32px;
  background: #ffffff;
  border: 2px solid #17151f;
  border-radius: 0 18px 0 18px;
  box-shadow: 6px 6px 0 rgba(23,21,31,0.14);
}
h1 {
  font-size: 2.4rem;
  color: #17151f;
  border-bottom: 3px solid #ff5a36;
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 8px;
}
h2 {
  font-size: 1.6rem;
  color: #17151f;
  margin-bottom: 12px;
  display: inline-block;
  border-bottom: 2px dashed #19c6c8;
  padding-bottom: 4px;
}
#subtitle {
  font-size: 1.05rem;
  color: #6b6a74;
  margin-bottom: 16px;
}
.section p {
  margin-bottom: 14px;
}
img {
  max-width: 100%;
  height: auto;
  border: 2px solid #17151f;
  box-shadow: 6px 6px 0 rgba(23,21,31,0.14);
  border-radius: 0 10px 0 10px;
  display: block;
  margin: 18px auto;
}
.hero-img { margin-top: 0; }
.block-img { margin-bottom: 20px; }
ul, ol { margin-left: 22px; margin-bottom: 14px; }
li { margin-bottom: 4px; }
.cta { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: #ff5a36;
  color: #fff;
  padding: 10px 22px;
  border-radius: 0 10px 0 10px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid #17151f;
  box-shadow: 4px 4px 0 rgba(23,21,31,0.2);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 rgba(23,21,31,0.2); }
.btn-ghost { background: #fff; color: #17151f; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 16px; margin: 16px 0; }
.step {
  background: #f6f4ef;
  border: 2px solid #17151f;
  border-radius: 0 12px 0 12px;
  padding: 16px;
  position: relative;
}
.step-num {
  font-weight: 900;
  font-size: 1.1rem;
  color: #ff5a36;
  margin-right: 8px;
}
.advantage-list li, .tutorial-list li, .section ul li { margin-bottom: 8px; }
details { margin: 12px 0; padding: 14px; background: #f6f4ef; border: 1px solid #17151f; border-radius: 0 10px 0 10px; }
summary { cursor: pointer; font-weight: 700; color: #17151f; }
.long-tail-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 10px;
  list-style: none;
  margin-left: 0;
}
.long-tail-list a {
  display: block;
  background: #fff;
  border: 1px solid #17151f;
  padding: 8px 12px;
  border-radius: 0 8px 0 8px;
  text-decoration: none;
  color: #17151f;
  transition: background 0.2s, color 0.2s;
  font-size: 0.95rem;
}
.long-tail-list a:hover { background: #19c6c8; color: #17151f; }
.footer-note { margin-top: 16px; padding-top: 16px; border-top: 1px solid #17151f; }
.back-top { display: inline-block; margin-top: 8px; color: #ff5a36; text-decoration: none; font-weight: 700; }
.site-footer { text-align: center; color: #6b6a74; margin-top: 24px; }

/* 汉堡按钮（手机） */
.menu-toggle {
  display: none;
  position: fixed;
  top: 14px; left: 14px;
  z-index: 200;
  background: #ff5a36;
  color: #fff;
  border: 2px solid #17151f;
  border-radius: 0 8px 0 8px;
  padding: 8px 12px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(23,21,31,0.2);
}
.overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(23,21,31,0.4);
  z-index: 150;
}
.overlay.show { display: block; }

/* 手机适配 */
@media (max-width: 768px) {
  body { font-size: 15px; line-height: 1.7; }
  .menu-toggle { display: block; }
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .content {
    margin-left: 0;
    width: 100%;
    padding: 16px;
    overflow-x: hidden;
  }
  .section {
    padding: 20px 16px;
    margin-bottom: 28px;
  }
  img { max-width: 100%; height: auto; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .cta { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .steps { grid-template-columns: 1fr; }
  .long-tail-list { grid-template-columns: 1fr; }
}
