:root {
  color-scheme: light;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --bg-subtle: #f9fafb;
  --border-subtle: #e5e7eb;
  --border-strong: #d1d5db;
  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --accent: #2563eb;
  --accent-soft: #dbeafe;
  --accent-strong: #1d4ed8;
  --danger: #b91c1c;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* 页面级样式由 v2 yst-theme 统一接管, 这里仅保留工具卡片样式 */

.placard-page-header,
.placard-page-footer { display: none !important; }

.page-main {
  margin: 0;
  padding: 18px 18px 8px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: flex-start;
}

.tool-card,
.preview-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow-soft);
  padding: 20px 20px 18px;
}

.card-header {
  margin-bottom: 14px;
}

.card-title {
  margin: 0 0 4px;
  font-size: 18px;
}

.card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-group {
  margin-top: 10px;
}

.field-label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: #374151;
}

.text-input {
  width: 100%;
  min-height: 104px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.6;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-subtle);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.35);
  background-color: #ffffff;
}

.text-input::placeholder {
  color: var(--text-soft);
}

.preset-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-button {
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background-color: #ffffff;
  padding: 5px 11px;
  font-size: 12px;
  color: #374151;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.chip-button:hover {
  background-color: #f3f4ff;
  border-color: var(--accent);
  transform: translateY(-0.5px);
}

.chip-button:active {
  transform: translateY(0);
}

.action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

.primary-button {
  background-color: var(--accent);
  color: #f9fafb;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.35);
}

.primary-button:hover {
  background-color: var(--accent-strong);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.45);
  transform: translateY(-0.5px);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}

.secondary-button {
  background-color: #111827;
  color: #f9fafb;
}

.secondary-button:hover {
  background-color: #020617;
}

.ghost-button {
  background-color: transparent;
  border: 1px solid var(--border-strong);
  color: #111827;
}

.ghost-button:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.shortcut-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-soft);
}

kbd {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  font-size: 11px;
  font-family: var(--font-sans);
}

.canvas-wrapper {
  margin-top: 8px;
  border-radius: 18px;
  background: radial-gradient(circle at top left, #eef2ff 0, #f9fafb 45%, #e5e7eb 100%);
  padding: 16px 12px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 300px;
}

.placeholder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sign-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  background-color: #f5f5f8;
  border: 1px solid rgba(148, 163, 184, 0.45);
  object-fit: contain;
}

.download-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hint-text {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--text-soft);
}

.message-bar {
  margin-top: 8px;
  min-height: 0;
  font-size: 12px;
  color: #065f46;
  background-color: #ecfdf5;
  border-radius: 10px;
  border: 1px solid #a7f3d0;
  padding: 6px 9px;
  display: none;
}

.message-bar.is-visible {
  display: block;
}

.message-bar.is-error {
  color: #991b1b;
  background-color: #fef2f2;
  border-color: #fecaca;
}

.section-title {
  margin: 0 0 6px;
  font-size: 17px;
}

.section-desc {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.steps-section {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
}

.steps-list {
  margin: 4px 0 0 18px;
  padding: 0;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}

.steps-list li + li {
  margin-top: 2px;
}

.info-section {
  margin-top: 26px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.info-grid > div {
  min-width: 0;
}

.scene-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: #374151;
  line-height: 1.7;
}

.scene-list li + li {
  margin-top: 4px;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 6px;
  background-color: #f9fafb;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.example-table th,
.example-table td {
  padding: 7px 9px;
  text-align: left;
}

.example-table thead {
  background-color: #e5edff;
}

.example-table tbody tr:nth-child(even) {
  background-color: #f3f4ff;
}

.example-table tbody tr:nth-child(odd) {
  background-color: #f9fafb;
}

.faq-section {
  margin-top: 24px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background-color: #f9fafb;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.faq-list {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  padding: 8px 10px 6px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
}

.faq-question {
  margin: 0 0 4px;
  font-size: 14px;
}

.faq-answer {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

/* page-footer 已在 v2 shell 隐藏, 不再需要样式 */

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-card {
    order: -1;
  }

  .tool-card,
  .preview-card {
    padding: 16px 14px 14px;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .action-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-row {
    flex-direction: column;
  }
}


