* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #0f172a;
  color: #f8fafc;
  line-height: 1.6;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 48px; }
nav.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1e293b;
}
.brand { font-size: 18px; font-weight: 800; color: #38bdf8; text-decoration: none; }
.nav-links { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: #cbd5e1; text-decoration: none; font-size: 13px; }
.nav-links a:hover { color: #38bdf8; }
.lang-btn {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 12px;
}
.hero { margin: 22px 0 18px; }
.hero h1 { font-size: 28px; margin: 0 0 8px; line-height: 1.25; }
.hero p { margin: 0; color: #94a3b8; font-size: 15px; }
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  align-items: center;
}
.btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f8fafc;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { border-color: #38bdf8; }
.btn.primary {
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  border: 0;
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }
.pane {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-height: 430px;
}
.pane-hdr {
  padding: 9px 14px;
  border-bottom: 1px solid #334155;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}
textarea#md-input {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 14px;
  font-family: Consolas, "PingFang SC", monospace;
  font-size: 13.5px;
  resize: vertical;
  outline: none;
}
.preview-box {
  flex: 1;
  padding: 16px;
  background: #ffffff;
  color: #0f172a;
  border-radius: 0 0 10px 10px;
  overflow-y: auto;
  max-height: 520px;
}
.preview-box table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13px; }
.preview-box th, .preview-box td { border: 1px solid #cbd5e1; padding: 6px 10px; text-align: left; }
.preview-box th { background: #f1f5f9; }
.preview-box pre { background: #f8fafc; border: 1px solid #cbd5e1; padding: 10px; border-radius: 6px; overflow-x: auto; }
.cta-banner {
  margin-top: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #0c4a6e, #1e293b);
  border: 1px solid #0284c7;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.faq { margin-top: 28px; color: #cbd5e1; font-size: 14px; }
.faq h2 { font-size: 18px; color: #f8fafc; }
.faq details { background: #1e293b; border: 1px solid #334155; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
footer { margin-top: 32px; font-size: 12px; color: #64748b; text-align: center; }
