* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
@view-transition {
  navigation: auto;
}
/* tilt-warp-latin-400-normal */
@font-face {
  font-family: 'Tilt Warp';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/tilt-warp@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/tilt-warp@latest/latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* lexend-deca-latin-400-normal */
@font-face {
  font-family: 'Lexend Deca';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(https://cdn.jsdelivr.net/fontsource/fonts/lexend-deca@latest/latin-400-normal.woff2) format('woff2'), url(https://cdn.jsdelivr.net/fontsource/fonts/lexend-deca@latest/latin-400-normal.woff) format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
body {
  font-family: 'Tilt Warp', sans-serif;
  background: #c2cfe0;
  color: #1e293b;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}
footer {
  width: 100%;
  padding: 10px;
  color: white;
  background-color: #092c49;
  font-size: 14px;
  font-family: 'Lexend Deca', sans-serif;
  text-align: center;
}
footer a {
  color: white;
  text-decoration: none;
}
button {
  font-family: 'Tilt Warp', sans-serif;
}
h1 {
  font-size: 1.8rem;
  line-height: 1.8rem;
  font-weight: 500;
  color: #0f172a;
}
.topbar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 10px;
  background-color: #092c49;
  z-index: 3;
}
.topbar h1 {
  width: fit-content;
  height: fit-content;
  color: white;
  margin-left: 10px;
  user-select: none;
}
.topbar .navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
}
.topbar .navbar a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  transition: 0.4s;
}
.topbar .navbar a:hover {
  color: #c9e2ff;
}
.topbar .description {
  color: white;
  height: fit-content;
  font-size: 14px;
  line-height: 14px;
  margin-left: 10px;
  font-family: 'Lexend Deca', sans-serif;
  user-select: none;
}
.topbar .description a {
  color: white;
  text-decoration: none;
  transition: 0.4s;
  font-family: initial;
  font-family: 'Tilt Warp', sans-serif;
}
.topbar .description a:hover {
  color: #c9e2ff;
}
.hljs-copy-wrapper {
  position: relative;
}
.hljs-copy-wrapper .hljs-copy-container {
  position: absolute;
  z-index: 99;
  display: block;
  left: -56px;
  top: 0;
  width: 56px;
  aspect-ratio: 1/1;
  background-color: #092c49;
  color: white;
  transition: 0.4s;
  text-transform: uppercase;
  text-align: center;
  user-select: none;
  font-family: 'Tilt Warp', sans-serif;
  cursor: pointer;
}
.hljs-copy-wrapper .hljs-copy-container .hljs-copy-button {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: normal;
  line-height: 56px;
  margin: 0;
}
.hljs-copy-wrapper .hljs-copy-container:hover {
  color: #7ab7ef;
  background-color: #0f172a;
}
.normalbox {
  width: 1200px;
  padding: 50px 100px;
  margin: 50px auto;
  background-color: #f8fafc;
}
.normalbox h1 {
  font-size: 40px;
  line-height: 2rem;
  margin-bottom: 40px;
  font-family: 'Lexend Deca', sans-serif;
}
.normalbox h2 {
  font-size: 24px;
  line-height: 2rem;
  margin-bottom: 10px;
  font-family: 'Tilt Warp', sans-serif;
}
.normalbox p {
  font-size: 18px;
  line-height: 2rem;
  font-family: 'Lexend Deca', sans-serif;
  margin-bottom: 10px;
}
.normalbox .ps {
  font-size: 14px;
  line-height: 1rem;
  font-family: 'Lexend Deca', sans-serif;
  margin-top: 10px;
}
.normalbox pre {
  margin-bottom: 20px;
}
.normalbox code {
  font-family: 'consolas', sans-serif;
}
.normalbox ol {
  margin-left: 30px;
}
.normalbox ul {
  margin-left: 30px;
}
.normalbox table {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 30px;
}
.normalbox table tr th {
  font-size: 16px;
  text-align: center;
  border: 1px solid #0f2b40;
  padding: 8px 0;
}
.normalbox table tr td {
  font-size: 16px;
  border: 1px solid #334155;
  border-top: none;
  padding: 12px;
  font-family: 'Lexend Deca', sans-serif;
}
.normalbox table tr td span {
  display: inline-block;
  width: fit-content;
  padding: 0 8px;
  border-radius: 4px;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
}
.normalbox table tr td .error {
  color: #ff0000 !important;
  background-color: rgba(255, 0, 0, 0.2) !important;
}
.normalbox table tr td .warning {
  color: #ffff00 !important;
  background-color: rgba(255, 255, 0, 0.2) !important;
}
.normalbox .config-table td:nth-child(5) {
  text-align: center;
}
.normalbox .hahaha {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 40px;
}
.normalbox .hahaha .logo2 {
  width: 140px;
  aspect-ratio: 1/1;
  background-image: url(favicon.png);
  background-size: contain;
  background-repeat: no-repeat;
}
.normalbox .hahaha h1 {
  font-size: 100px;
  font-family: 'Tilt Warp', sans-serif;
  user-select: none;
}
.normalbox .hahaha p {
  font-size: 32px;
  user-select: none;
  text-wrap: nowrap;
}
.normalbox .hahaha .homenav {
  margin-top: 40px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
}
.normalbox .hahaha .homenav a {
  color: white;
  background-color: #092c49;
  padding: 10px 40px;
  font-size: 30px;
  text-decoration: none;
  transition: 0.4s;
  font-family: 'Lexend Deca', sans-serif;
}
.normalbox .hahaha .homenav a:hover {
  color: #7ab7ef;
  background-color: #0f172a;
}
.example-animate {
  width: 16px;
  height: 16px;
  background-image: url("/example.png");
  background-position: 0 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  animation: exampleanime 1.9s infinite;
}
@keyframes exampleanime {
  0% {
    background-position: 0px 0;
    animation-timing-function: steps(1, end);
  }
  5.263158% {
    background-position: -16px 0;
    animation-timing-function: steps(1, end);
  }
  10.526316% {
    background-position: -32px 0;
    animation-timing-function: steps(1, end);
  }
  15.789474% {
    background-position: -48px 0;
    animation-timing-function: steps(1, end);
  }
  68.421053% {
    background-position: -64px 0;
    animation-timing-function: steps(1, end);
  }
  78.947368% {
    background-position: -80px 0;
    animation-timing-function: steps(1, end);
  }
  89.473684% {
    background-position: -96px 0;
    animation-timing-function: steps(1, end);
  }
  100% {
    background-position: -96px 0;
  }
}
.blanket-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  z-index: 3;
  pointer-events: none;
}
.container {
  width: 400px;
  background: white;
  margin: 10px;
  padding: 1rem;
  pointer-events: all;
}
.logobox {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}
.logo {
  width: 1.8rem;
  aspect-ratio: 1/1;
  background-image: url(favicon.png);
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.sub {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1rem;
}
.form-grid {
  width: 100%;
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.field.full-width {
  grid-column: span 2;
}
label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hint {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
  cursor: default;
}
input,
select {
  background: white;
  border: none;
  background-color: #e1eaf3;
  padding: 0 0.5rem;
  font-size: 16px;
  line-height: 28px;
  transition: border 0.1s;
  font-family: 'Lexend Deca', sans-serif;
}
input:focus,
select:focus {
  outline: none;
  background-color: #d1e0ee;
}
/* 隐藏 Chrome/Safari/Edge 的箭头 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* 隐藏 Firefox 的箭头 */
input[type=number] {
  -moz-appearance: textfield;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1rem;
}
select option {
  background-color: white;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}
.checkbox-field input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0;
  border-radius: 0;
}
.checkbox-field label {
  text-transform: none;
  font-weight: 400;
  margin: 0;
}
.btn {
  display: block;
  background: #c9e2ff;
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0f2b40;
  cursor: pointer;
  transition: background 0.2s;
  margin: 0 auto;
  width: fit-content;
}
.btn:hover {
  background: #b3d6ff;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.output-box {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 1000px;
  height: fit-content;
  padding: 10px 10px 0 0;
  z-index: 3;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  transition: 0.5s ease-in-out;
}
.hide {
  transform: translateX(950px);
}
.output-switch {
  width: 50px;
  height: 50px;
  background-color: white;
  cursor: pointer;
  pointer-events: all;
}
.output-section {
  width: 100%;
  padding: 1rem;
  background: white;
  pointer-events: all;
}
.output-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: #0f172a;
}
.code-container {
  position: relative;
}
.code-container textarea {
  white-space: pre-wrap;
}
.code-container textarea:focus {
  outline: none;
}
.code-box {
  width: 100%;
  font-family: 'consolas', monospace;
  font-size: 14px;
  background: #e1eaf3;
  border: none;
  padding: 12px;
  white-space: pre;
  overflow-x: auto;
  resize: none;
  box-sizing: border-box;
}
.code-box.class {
  height: 150px;
}
.code-box.keyframe {
  height: 300px;
}
.code-box.html {
  height: 120px;
  /* HTML 区域略低 */
}
.code-actions {
  position: absolute;
  top: 0.5rem;
  right: 1.5rem;
  display: flex;
  gap: 8px;
  align-items: center;
}
.code-actions label {
  text-transform: none;
}
.copy-btn {
  padding: 6px 16px;
  font-size: 14px;
  background: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}
.copy-btn:hover {
  background: #45a049;
}
.copy-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
.minify-checkbox {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #4CAF50;
  color: white;
  padding: 6px 16px;
  font-size: 14px;
  line-height: normal;
  cursor: pointer;
  user-select: none;
}
.minify-checkbox:hover {
  background: #45a049;
}
.minify-checkbox input {
  margin: 0;
  width: 14px;
  height: 14px;
}
.preview-section {
  position: absolute;
  top: 0;
  max-width: 100%;
  height: 100%;
  padding: 10px 70px 10px 420px;
  z-index: 1;
  pointer-events: none;
}
.preview-box {
  position: relative;
  top: 0;
  width: 100%;
  height: 100%;
}
/* 预览区 */
.preview-area {
  display: block;
  max-width: 100%;
  max-height: 100%;
  position: relative;
  overflow: auto;
  background: #f1f5f9;
  background-image: linear-gradient(45deg, #0000003f 25%, transparent 0, transparent 75%, #0000003f 0), linear-gradient(45deg, #0000003f 25%, transparent 0, transparent 75%, #0000003f 0);
  background-position: 0 0, 50px 50px;
  background-size: 100px 100px;
  pointer-events: all;
}
.preview-animation {
  background-repeat: no-repeat;
  background-position: 0 0;
}
.preview-placeholder {
  color: #64748b;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}
.preview-note {
  color: #334155;
  font-size: 0.9rem;
  background: #f8fafc;
  border-left: 3px solid #7ab7ef;
  padding: 0.5rem 1rem;
}
hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.5rem 0;
}
/* 图片上传组件样式 */
.image-field-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.image-field-group input {
  flex: 1;
}
.small-btn {
  height: 28px;
  padding: 4px 12px;
  background: #d8d8d8;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.small-btn:hover {
  background: #e2e2e2;
}
.drop-zone {
  border: 2px dashed #aaa;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
  margin-top: 8px;
}
.drop-zone.dragover {
  background: #e0f0ff;
  border-color: #2196F3;
}
.upload-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-preview img {
  max-width: 80px;
  max-height: 80px;
  border: 1px solid #ddd;
  border-radius: 4px;
}
/* 错误提示样式 */
.field-error {
  color: #d32f2f;
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
}
.preview-error {
  color: #d32f2f;
  font-size: 14px;
  margin-top: 8px;
}
.home-page .home-hero {
  background: white;
  padding: 60px 20px;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
.home-page .home-hero .home-hero-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.home-page .home-hero .ef-sprite {
  width: 378px;
  height: 365px;
}
.home-page .home-hero .home-hero-text {
  max-width: 600px;
}
.home-page .home-hero .home-logo2 {
  width: 80px;
  height: 80px;
  background-image: url(favicon.png);
  background-size: contain;
  background-repeat: no-repeat;
  margin-bottom: 20px;
}
.home-page .home-hero .home-hero-title {
  font-size: 60px;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #0f172a;
}
.home-page .home-hero .home-hero-tagline {
  font-size: 24px;
  color: #475569;
  margin-bottom: 20px;
  font-family: 'Lexend Deca', sans-serif;
}
.home-page .home-hero .home-hero-description {
  font-size: 18px;
  color: #334155;
  margin-bottom: 30px;
  font-family: 'Lexend Deca', sans-serif;
}
.home-page .home-hero .home-hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.home-page .home-hero .home-hero-buttons .home-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 18px;
  text-decoration: none;
  transition: 0.3s;
  font-family: 'Tilt Warp', sans-serif;
}
.home-page .home-hero .home-hero-buttons .home-btn.home-btn-primary {
  background: #092c49;
  color: white;
}
.home-page .home-hero .home-hero-buttons .home-btn.home-btn-primary:hover {
  background: #0f172a;
}
.home-page .home-hero .home-hero-buttons .home-btn.home-btn-secondary {
  background: #c9e2ff;
  color: #0f2b40;
}
.home-page .home-hero .home-hero-buttons .home-btn.home-btn-secondary:hover {
  background: #b3d6ff;
}
.home-page .home-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.home-page .home-section .home-section-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: #0f172a;
}
.home-page .home-section .home-section-text {
  font-size: 18px;
  line-height: 1.8;
  font-family: 'Lexend Deca', sans-serif;
  color: #334155;
}
.home-page .home-section .home-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.home-page .home-section .home-container.home-container-narrow {
  max-width: 800px;
}
.home-page .home-section code {
  background: #e1eaf3;
  padding: 2px 6px;
  font-family: 'consolas', monospace;
}
.home-page .home-section pre {
  background: #1e293b;
  color: #f8fafc;
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}
.home-page .home-section pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.home-page .home-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}
.home-page .home-feature-card {
  background: white;
  padding: 30px 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.home-page .home-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.home-page .home-feature-card .home-feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}
.home-page .home-feature-card .home-feature-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: #0f172a;
}
.home-page .home-feature-card .home-feature-desc {
  font-size: 16px;
  color: #475569;
  line-height: 1.6;
  font-family: 'Lexend Deca', sans-serif;
}
.home-page .home-feature-card code {
  background: #e1eaf3;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 14px;
}
.home-page .home-quickstart,
.home-page .home-example {
  background: #f8fafc;
}
