*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #ffffff;
  --bg2: #f4f5f7;
  --text: #1a1a18;
  --text2: #6b6b68;
  --border: rgba(0,0,0,0.12);
  --radius: 9px;
  --radius-lg: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1b1e;
    --bg2: #242529;
    --text: #e9eaee;
    --text2: #9a9a96;
    --border: rgba(255,255,255,0.1);
  }
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}

.tp-logo {
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}
.tp-logo span {
  background: linear-gradient(135deg,#f97316,#ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tp-back {
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
}
.tp-back:hover { color: var(--text); }

.tp-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 60px;
  text-align: center;
}

.tp-icon { font-size: 44px; margin-bottom: 12px; }

.tp-main h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.tp-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 28px;
}

.tp-cta {
  display: inline-block;
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px -8px rgba(249,115,22,0.5);
}

.tp-how {
  margin-top: 48px;
  text-align: left;
}
.tp-how h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; text-align: center; }
.tp-how-list { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.tp-how-list li {
  counter-increment: step;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px 12px 42px;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}
.tp-how-list li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg,#f97316,#ea580c);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tp-example {
  margin-top: 40px;
  text-align: left;
}
.tp-example h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; text-align: center; }
.tp-example-code {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid #f97316;
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text2);
  white-space: pre-wrap;
}

.tp-related {
  margin-top: 48px;
  text-align: left;
}
.tp-related h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; text-align: center; }
.tp-related-list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tp-related-item {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.tp-related-item:hover { border-color: #f97316; color: #f97316; }

.tp-faq {
  margin-top: 56px;
  text-align: left;
}

.tp-faq h2 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}

.tp-faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}

.tp-faq-item h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.tp-faq-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text2);
}

.tp-footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text2);
}

.tp-footer a {
  color: var(--text2);
  text-decoration: none;
  font-weight: 700;
}
