/* ============================================================
   styles.css — 医療意見書作成支援システム v3
   PDF→HTML + WYSIWYG編集 + DeepSeek変数埋入 + PDF生成
   ============================================================ */

/* --- カスタムプロパティ ----------------------------------- */
:root {
  --app-bg: #eef2f4;
  --panel-bg: #f8faf9;
  --panel-line: #c9d1d3;
  --ink: #17212b;
  --muted: #66757d;
  --accent: #215f71;
  --accent-dark: #174756;
  --medical-green: #5d7b65;
  --admin-blue: #2e557c;
  --paper-tint: #f5f8f9;
  --amber: #a26a21;
  --danger: #b5332a;
  --paper: #ffffff;
  --shadow: 0 18px 54px rgba(38, 53, 65, 0.18);
  --ui-font: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --doc-font: "Yu Mincho", "Hiragino Mincho ProN", "MS Mincho", serif;
  --page-scale: 1;
}

/* --- リセット --------------------------------------------- */
* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #edf3f4 0%, #f8fafb 48%, #e9f0f2 100%);
  font-family: var(--ui-font);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.45; }

/* --- アプリシェル ----------------------------------------- */
.app-shell {
  display: grid;
  grid-template-columns: minmax(360px, 420px) 1fr;
  min-height: 100vh;
}

/* --- 左側コントロールパネル ------------------------------ */
.control-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  padding: 24px 24px 32px;
  background: rgba(248, 250, 249, 0.94);
  border-right: 1px solid rgba(201, 209, 211, 0.72);
  box-shadow: 14px 0 42px rgba(33, 54, 67, 0.10);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-header { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-lockup { display: flex; align-items: center; gap: 3px; }
.brand-mark { width: 76px; height: 36px; overflow: visible; }
.brand-name { margin: 0; color: var(--ink); font-size: 24px; line-height: 1; font-weight: 800; letter-spacing: .08em; }
.brand-domain { margin: 5px 0 0; color: var(--accent); font: 11px/1 "JetBrains Mono", Consolas, monospace; letter-spacing: .06em; }
.brand-language { color: var(--accent); font: 10px/1.35 "JetBrains Mono", Consolas, monospace; text-align: right; white-space: nowrap; }
.brand-language span { color: var(--muted); }
.panel-header .eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin: 0 0 2px;
}
.panel-header h1 { font-size: 20px; font-weight: 700; margin: 0; color: var(--ink); }

.hero-copy {
  margin: 0 0 16px;
  padding: 18px 18px 17px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #2c3e50 0%, #245b74 100%);
  box-shadow: 0 12px 26px rgba(44, 62, 80, .18);
}
.hero-copy .eyebrow { margin: 0 0 8px; color: #9ed8f5; font: 11px/1 "JetBrains Mono", Consolas, monospace; letter-spacing: .12em; }
.hero-copy h1 { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -.03em; }
.hero-copy h1 em { color: #7dd3fc; font-style: normal; }
.hero-copy > p:not(.eyebrow) { margin: 11px 0 14px; color: #d8e6eb; font-size: 12px; line-height: 1.65; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 5px; }
.hero-facts span { padding: 5px 7px; border: 1px solid rgba(157, 220, 246, .34); border-radius: 999px; color: #e3f5fb; font-size: 10px; }

/* --- ステップインジケーター ------------------------------ */
.process-strip {
  display: flex; gap: 0; margin-bottom: 14px;
  border: 1px solid #cbdcdf; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 9px rgba(33,54,67,.05);
}
.process-step {
  flex: 1; padding: 10px 5px; text-align: center; background: rgba(255,255,255,.82);
  border-right: 1px solid var(--panel-line); transition: background 0.2s;
}
.process-step:last-child { border-right: 0; }
.process-step span { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.process-step strong { font-size: 13px; font-weight: 600; }
.process-step strong { white-space: nowrap; font-size: 11px; }
.process-step.is-active { background: var(--accent); color: #fff; }
.process-step.is-active span { color: rgba(255,255,255,0.8); }
.process-step.is-active strong { color: #fff; }

/* --- パネルセクション ------------------------------------ */
.panel-section { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--panel-line); }
.panel-section:last-of-type { border-bottom: 0; }
.section-title-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.section-title-row h2 { font-size: 14px; font-weight: 700; margin: 0; }
.section-code {
  font-size: 11px; color: var(--muted); background: #e9ecee;
  padding: 2px 8px; border-radius: 4px; font-family: monospace;
}

.mode-section {
  padding: 14px 15px 13px;
  border: 1px solid #cbdcdf;
  border-radius: 12px;
  background: linear-gradient(145deg, #f4fafb, #eaf3f4);
  box-shadow: 0 5px 16px rgba(33, 95, 113, 0.07);
}
.mode-section .section-title-row { margin-bottom: 10px; }
.mode-section h2 { color: var(--accent-dark); }
.mode-select {
  width: 100%; min-height: 42px; padding: 9px 36px 9px 12px;
  border: 1px solid #8fb2bc; border-radius: 9px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 700;
  box-shadow: 0 2px 5px rgba(23, 71, 86, 0.06);
}
.mode-select:focus { outline: 3px solid rgba(33, 95, 113, 0.15); border-color: var(--accent); }
.mode-hint { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

/* --- アップロードゾーン ---------------------------------- */
.upload-zone { position: relative; }
.file-picker {
  display: flex; flex-direction: column; align-items: center; padding: 16px 12px;
  border: 2px dashed #a9c1c8; border-radius: 14px; cursor: pointer;
  background: rgba(255,255,255,.58);
  transition: border-color 0.2s, background 0.2s;
}
.file-picker:hover { border-color: var(--accent); background: #f0f6f8; }
.file-picker input { display: none; }
.file-picker-main { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.file-picker-sub { font-size: 12px; color: var(--muted); }
.upload-hint { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }

.pdf-picker { border-color: var(--admin-blue); }
.pdf-picker:hover { border-color: var(--accent); background: #f0f4f8; }

.import-meter { height: 3px; background: #e0e4e7; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.import-meter span { display: block; height: 100%; width: 0%; background: var(--medical-green); transition: width 0.4s ease; }

/* --- ダウンロードリンク ---------------------------------- */
.download-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--panel-line);
}
.dl-link {
  display: block;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--panel-line);
  transition: all 0.15s;
}
.dl-html { color: var(--medical-green); background: #e8f4ea; }
.dl-edit-link { color: var(--accent); background: #e3f0f4; }
.dl-report-link { color: var(--amber); background: #fdf6e8; }
.dl-link:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

/* --- フォーム --------------------------------------------- */
.form-placeholder {
  text-align: center;
  padding: 24px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  background: #fafbfb;
  border: 2px dashed var(--panel-line);
  border-radius: 8px;
}

.json-form { display: flex; flex-direction: column; gap: 8px; }
.json-form label { display: flex; flex-direction: column; gap: 3px; }
.json-form label > span {
  font-size: 12px; font-weight: 600; color: var(--muted);
  display: flex; justify-content: space-between;
}
.json-form input, .json-form textarea {
  padding: 7px 10px; border: 1px solid var(--panel-line); border-radius: 6px;
  font-size: 14px; background: #fff; transition: border-color 0.15s; width: 100%;
}
.json-form input:focus, .json-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,95,113,0.1);
}
.json-form textarea { resize: vertical; min-height: 44px; }

[data-field].updated { background: rgba(33,95,113,0.06); transition: background 0.3s; }

/* --- アクションボタン ------------------------------------ */
.actions-section { border-bottom: 0; }
.primary-button {
  width: 100%; padding: 12px 20px; border: none; border-radius: 8px;
  font-size: 14px; font-weight: 700; color: #fff; background: #2563eb;
  transition: background 0.2s, transform 0.1s;
}
.primary-button:hover:not(:disabled) { background: #1d4ed8; transform: translateY(-1px); }
.primary-button:active:not(:disabled) { transform: translateY(0); }

.brand-trust {
  margin: 2px 0 12px;
  padding: 12px 13px;
  border: 1px solid #d8e2e3;
  border-radius: 11px;
  background: rgba(255,255,255,.62);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.trust-line { display: flex; align-items: baseline; gap: 7px; margin: 3px 0; }
.trust-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #10b981; }
.brand-trust a { color: var(--accent); font-weight: 700; text-decoration: none; }
.brand-trust a:hover { text-decoration: underline; }
.brand-trust p { margin: 9px 0 0; color: #89969b; font-size: 9px; }

/* --- ステータス / 警告 ----------------------------------- */
.status-box { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-top: 6px; display: none; }
.status-box.success { display: block; background: #e6f4ea; color: #1e6b3b; }
.status-box.error   { display: block; background: #fde8e5; color: var(--danger); }
.status-box.loading { display: block; background: #fff8e1; color: var(--amber); }
.warning-box { padding: 10px 12px; border-radius: 6px; font-size: 12px; margin-top: 4px; background: #fff3cd; color: #856404; }

/* --- 指令入力 --------------------------------------------- */
.command-section { border-bottom: 0; }
.json-preview {
  max-height: 180px;
  overflow: auto;
  margin: 10px 0 0;
  padding: 8px;
  background: #f6f8fa;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
}
.command-input-row { display: flex; gap: 6px; }
.command-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.15s;
  resize: vertical;
  font-family: inherit;
  line-height: 1.4;
}
.command-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(33,95,113,0.1); }
.command-input:disabled { background: #f0f2f3; }
.command-btn { flex-shrink: 0; padding: 8px 14px; align-self: flex-end; }
.command-hint {
  padding: 4px 10px;
  font-size: 11px; border-radius: 4px;
  display: none;
  background: #fff; border: 1px solid var(--panel-line);
  white-space: nowrap;
}
.command-hint.success { display: inline-block; color: #1e6b3b; border-color: #b8d4bd; }
.command-hint.error   { display: inline-block; color: var(--danger); border-color: #e8c4c0; }
.command-hint.info    { display: inline-block; color: var(--amber); border-color: #e8d4a0; }

/* --- ログコンソール -------------------------------------- */
.log-console {
  margin-top: 8px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  overflow: hidden;
  background: #1a1e23;
  flex-shrink: 0;
}
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #252830;
  color: #8899aa;
  font-size: 11px;
  font-weight: 600;
  border-bottom: 1px solid #333;
}
.log-clear-btn {
  background: none;
  border: none;
  color: #667;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
}
.log-clear-btn:hover { color: #ccc; }
.log-lines {
  max-height: 160px;
  overflow-y: auto;
  padding: 6px 0;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 11px;
  line-height: 1.5;
}
.log-line {
  padding: 2px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.log-line.info  { color: #a0b4c0; }
.log-line.vlm   { color: #ffd54f; }
.log-line.error { color: #ef6c6c; }
.log-line.warn  { color: #ffa726; }
.log-line.stage { color: #4fc3f7; font-weight: 600; }

/* ============================================================
   右側プレビュー ツールバー
   ============================================================ */
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid #d7e0e2;
  background: rgba(250, 252, 252, 0.92);
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

/* --- バージョンタブ -------------------------------------- */
.version-tabs {
  display: flex;
  gap: 0;
  border: 1px solid #cbdcdf;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(33, 54, 67, 0.07);
  overflow: hidden;
}
.version-tab {
  padding: 9px 20px;
  border: none;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  border-right: 1px solid var(--panel-line);
  white-space: nowrap;
}
.version-tab:last-child { border-right: 0; }
.version-tab:hover:not(:disabled):not(.active) {
  background: #f0f4f6;
  color: var(--ink);
}
.version-tab.active {
  background: var(--accent);
  color: #fff;
}
.version-tab:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.version-tab.available {
  background: #e6f4ea;
  color: var(--medical-green);
  border-color: #b8d4bd;
  cursor: pointer;
}
.version-tab.available.active {
  background: var(--accent);
  color: #fff;
}

/* --- 編集操作ボタン -------------------------------------- */
.edit-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 編集モードトグル */
.edit-toggle-label {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 5px 10px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
  user-select: none;
}
.edit-toggle-label:hover { border-color: var(--accent); }
.edit-toggle-label input { display: none; }
.edit-toggle-label:has(input:checked) {
  background: #e3f0f4;
  border-color: var(--accent);
  color: var(--accent-dark);
}
.edit-toggle-text { pointer-events: none; }

/* ツールバーボタン */
.toolbar-btn {
  padding: 6px 14px;
  border: 1px solid var(--panel-line);
  border-radius: 6px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.toolbar-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.save-btn { color: var(--medical-green); border-color: #b8d4bd; }
.save-btn:hover:not(:disabled) { background: #e8f4ea; }
.ai-btn { color: var(--accent); border-color: #b8c9d4; }
.ai-btn:hover:not(:disabled) { background: #e3f0f4; }

/* ============================================================
   右側プレビュー
   ============================================================ */
.preview-workspace {
  padding: 0;
  overflow: auto;
  background: #f4f7f8;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100vh;
}

/* --- プロパティパネル（親フレーム） --- */
.props-panel {
  position: fixed; top: 44px; right: 12px; z-index: 25;
  background: #fff; border: 1px solid var(--panel-line);
  border-radius: 6px; padding: 8px 10px;
  font-size: 11px; box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-width: 170px;
}
.props-row { display: flex; align-items: center; gap: 4px; margin-bottom: 3px; }
.props-row label { width: 55px; text-align: right; color: #888; font-size: 10px; flex-shrink: 0; }
.props-row input, .props-row select {
  flex: 1; background: #f8f8f8; border: 1px solid #ccc;
  color: #333; border-radius: 3px; padding: 2px 4px; font-size: 11px; min-width: 0;
}
.props-row select { cursor: pointer; }

/* --- 浮动操作按钮 --------------------------------------- */
.floating-actions {
  position: fixed;
  top: 54px;
  right: 12px;
  z-index: 20;
  display: flex;
  gap: 1px;
}
.fab {
  width: 22px; height: 22px;
  border: none;
  border-radius: 4px;
  background: rgba(0,0,0,0.06);
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
  color: #888;
}
.fab:hover {
  background: rgba(0,0,0,0.15);
  color: #333;
}

/* --- プレビューコンテナ ---------------------------------- */
.preview-container {
  flex: 1;
  overflow: visible;
  padding: 18px 22px 28px;
  background: #f4f7f8;
  position: relative;
}

.preview-welcome {
  position: absolute; inset: 18px 22px 28px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 420px; text-align: center; color: var(--ink);
  border: 1px dashed #c7d8dc; border-radius: 14px;
  background: radial-gradient(circle at 50% 36%, #fff 0, #f5fafb 52%, #edf4f5 100%);
}
.preview-welcome[hidden] { display: none; }
.welcome-orbit {
  width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 18px;
  border: 2px solid #3498db; border-radius: 50%; color: #3498db;
  font: 700 25px/1 "JetBrains Mono", Consolas, monospace;
  box-shadow: 0 0 0 10px rgba(52,152,219,.06), 0 0 0 20px rgba(52,152,219,.03);
}
.welcome-kicker { margin: 0 0 7px; color: #3498db; font: 11px/1 "JetBrains Mono", Consolas, monospace; letter-spacing: .15em; }
.preview-welcome h2 { margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.04em; }
.preview-welcome > p:not(.welcome-kicker) { margin: 10px 0 20px; color: var(--muted); font-size: 14px; }
.welcome-flow { display: flex; align-items: center; gap: 14px; color: #2c3e50; font: 700 12px/1 "JetBrains Mono", Consolas, monospace; }
.welcome-flow i { color: #3498db; letter-spacing: 5px; font-style: normal; }
.welcome-flow strong { color: #3498db; }
.preview-welcome small { margin-top: 25px; color: #8b9aa0; font-size: 11px; }


/* --- iframe プレビュー ----------------------------------- */
.html-preview {
  width: 100%;
  min-height: 100%;
  border: none;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(38, 53, 65, 0.12);
  display: block;
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .control-panel { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .preview-workspace { min-height: 60vh; }
  .html-preview { height: 60vh; }
  .preview-toolbar { flex-wrap: wrap; }
}

@media print {
  body { background: #fff; }
  .control-panel, .floating-actions, .preview-toolbar { display: none; }
  .app-shell { display: block; }
  .preview-workspace { padding: 0; }
}

/* ============================================================
   零感极简主题：白、灰、单一品牌蓝
   ============================================================ */
:root {
  --panel-bg: #fff;
  --panel-line: #e5e7eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --medical-green: #059669;
  --admin-blue: #2563eb;
  --paper-tint: #f8fafc;
  --amber: #6b7280;
  --danger: #2563eb;
  --shadow: 0 8px 24px rgba(15, 23, 42, .06);
}
body { background: #fff; }
.control-panel { background: #fff; border-right-color: #e5e7eb; box-shadow: none; }
.hero-copy { color: var(--ink); background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: none; }
.hero-copy .eyebrow { color: var(--accent); }
.hero-copy h1 em { color: var(--accent); }
.hero-copy > p:not(.eyebrow) { color: var(--muted); }
.hero-facts span { color: var(--accent-dark); background: #eff6ff; border-color: #dbeafe; }
.process-strip { border-color: #e5e7eb; box-shadow: none; }
.process-step { background: #fff; }
.mode-section { border-color: #e5e7eb; border-radius: 10px; background: #fff; box-shadow: none; }
.mode-section h2 { color: var(--ink); }
.mode-select { border-color: #d1d5db; border-radius: 7px; box-shadow: none; }
.file-picker { background: #fff; border-color: #d1d5db; border-radius: 10px; }
.file-picker:hover { background: #f8fafc; }
.primary-button { background: #2563eb; }
.primary-button:hover:not(:disabled) { background: #1d4ed8; }
.secondary-button { width:100%; padding:10px 16px; border:1px solid #cbd5e1; border-radius:8px; color:#2563eb; background:#fff; font-size:13px; font-weight:700; transition:background .2s,border-color .2s; }
.secondary-button:hover:not(:disabled) { background:#eff6ff; border-color:#93c5fd; }
.pipeline-reopen-button { margin-top:8px; }
.brand-trust { background: #fff; border-color: #e5e7eb; }
.preview-workspace, .preview-container { background: #f8fafc; }
.preview-toolbar { background: #fff; border-bottom-color: #e5e7eb; }
.version-tabs { border-color: #e5e7eb; box-shadow: none; }
.preview-welcome { background: #fff; border-color: #d1d5db; border-radius: 10px; }
.html-preview { border-radius: 6px; box-shadow: none; }
.artifact-link { background: #2563eb; }

/* pdfze 独立产品首页；转换工作台继续使用上面的旧样式。 */
.pdfze-home { --home-blue:#2563eb; --home-ink:#1f2937; --home-muted:#64748b; --home-line:#e2e8f0; min-height:100vh; background:#f8fafc; color:var(--home-ink); font-family:Inter,"Noto Sans SC","Microsoft YaHei",sans-serif; }
.pdfze-home * { box-sizing:border-box; }.pdfze-home a { color:inherit; }.home-header { max-width:1180px; height:76px; margin:auto; padding:0 28px; display:flex; align-items:center; justify-content:space-between; }.home-brand { display:inline-flex; align-items:center; gap:10px; text-decoration:none; }.home-brand strong { display:block; font-size:20px; letter-spacing:.12em; }.home-brand small { display:block; margin-top:2px; color:var(--home-muted); font:11px/1 JetBrains Mono,monospace; letter-spacing:.08em; }.home-mark { display:inline-flex; align-items:flex-end; gap:3px; width:25px; height:25px; }.home-mark i { width:5px; border-radius:5px; background:var(--home-blue); }.home-mark i:nth-child(1){height:10px;opacity:.45}.home-mark i:nth-child(2){height:17px;opacity:.7}.home-mark i:nth-child(3){height:25px}.home-header nav,.home-footer nav { display:flex; align-items:center; gap:24px; font-size:13px; color:var(--home-muted); }.home-header nav a,.home-footer nav a { text-decoration:none; }.home-header nav a:hover,.home-footer nav a:hover { color:var(--home-blue); }.nav-cta,.hero-cta { color:#fff!important; background:var(--home-blue); border-radius:9px; font-weight:700; }.nav-cta { padding:10px 16px; }
.home-hero { max-width:1180px; margin:auto; padding:86px 28px 96px; display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:72px; }.home-eyebrow { color:var(--home-blue); font:700 11px/1.2 JetBrains Mono,monospace; letter-spacing:.14em; }.hero-copy h1 { max-width:620px; margin:18px 0 20px; font-size:clamp(38px,5vw,64px); line-height:1.12; letter-spacing:-.055em; }.hero-copy h1 em { color:var(--home-blue); font-style:normal; }.hero-copy>p { max-width:540px; color:var(--home-muted); font-size:17px; line-height:1.8; }.hero-status { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:28px 0; font-size:14px; }.pill,.card-status { display:inline-block; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:700; }.pill-blue,.card-status.blue { color:#fff; background:var(--home-blue); }.pill-gray,.card-status.gray { color:#475569; background:#e2e8f0; }.hero-cta { display:inline-flex; align-items:center; gap:22px; padding:14px 19px; text-decoration:none; }.hero-cta span { font-size:20px; }.hero-note { margin-top:16px!important; color:#94a3b8!important; font-size:12px!important; }
.hero-visual { min-height:360px; display:flex; align-items:center; justify-content:center; gap:22px; transform:rotate(2deg); }.visual-pdf,.visual-template { width:205px; height:275px; padding:22px; border:1px solid var(--home-line); border-radius:8px; background:#fff; box-shadow:0 20px 45px rgba(15,23,42,.09); }.visual-pdf>span,.visual-template>span { display:block; color:#94a3b8; font:11px JetBrains Mono,monospace; }.visual-pdf>i { display:block; width:75%; height:6px; margin-top:18px; border-radius:5px; background:#dbeafe; }.visual-table { display:grid; grid-template-columns:repeat(2,1fr); gap:5px; margin-top:28px; }.visual-table b { height:30px; border:1px solid #bfdbfe; background:#eff6ff; }.visual-arrow { color:var(--home-blue); font-size:32px; }.visual-template { border-color:#bfdbfe; background:#eff6ff; }.visual-template code { display:block; margin:40px 0; color:#1d4ed8; font:13px/2 JetBrains Mono,monospace; }
.home-section { max-width:1180px; margin:auto; padding:88px 28px; }.home-heading { max-width:640px; margin-bottom:35px; }.home-heading h2 { margin:11px 0 10px; font-size:34px; letter-spacing:-.04em; }.home-heading p { margin:0; color:var(--home-muted); line-height:1.7; }.support-home,.examples-home { border-top:1px solid var(--home-line); }.home-cards,.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }.home-cards article { min-height:190px; padding:26px; border:1px solid var(--home-line); border-radius:12px; background:#fff; }.home-cards h3,.steps h3 { margin:16px 0 8px; font-size:19px; }.home-cards p,.steps p { margin:0; color:var(--home-muted); font-size:14px; line-height:1.7; }.home-cards a { display:inline-block; margin-top:14px; color:var(--home-blue); font-size:13px; font-weight:700; }.card-symbol { color:var(--home-blue); font-size:20px; font-weight:800; }.steps article { padding:25px 0; border-top:2px solid var(--home-blue); }.steps b { color:var(--home-blue); font:13px JetBrains Mono,monospace; }.capabilities-home { max-width:none; padding-left:max(28px,calc((100% - 1124px)/2)); padding-right:max(28px,calc((100% - 1124px)/2)); background:#fff; }.capability-list { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }.capability-list div { padding:22px 0; border-top:1px solid var(--home-line); }.capability-list strong,.capability-list span { display:block; }.capability-list span { margin-top:10px; color:var(--home-muted); font-size:14px; line-height:1.6; }.capability-list code { color:#1d4ed8; font:12px JetBrains Mono,monospace; }
.comparison { display:grid; grid-template-columns:1fr 50px 1fr; align-items:center; gap:22px; }.fake-page,.fake-code { min-height:230px; padding:22px; border:1px solid var(--home-line); border-radius:12px; background:#fff; }.fake-page span,.fake-code span { color:var(--home-muted); font-size:12px; }.fake-page>i { display:block; width:60%; height:7px; margin-top:20px; background:#cbd5e1; border-radius:5px; }.fake-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin-top:25px; }.fake-grid b { height:38px; background:#eff6ff; border:1px solid #bfdbfe; }.comparison>strong { color:var(--home-blue); font-size:28px; text-align:center; }.fake-code { background:#0f172a; border-color:#0f172a; }.fake-code span { color:#94a3b8; }.fake-code code { display:block; margin-top:25px; color:#bfdbfe; font:14px/1.8 JetBrains Mono,monospace; }.faq-list { display:grid; grid-template-columns:1fr 1fr; column-gap:36px; }.faq-list details { padding:19px 0; border-top:1px solid var(--home-line); }.faq-list summary { cursor:pointer; font-weight:700; }.faq-list p { color:var(--home-muted); font-size:14px; line-height:1.7; }.home-footer { display:grid; grid-template-columns:1fr auto; gap:16px 40px; max-width:1180px; margin:auto; padding:40px 28px 50px; border-top:1px solid var(--home-line); color:var(--home-muted); font-size:12px; }.home-footer strong,.home-footer span { display:block; }.home-footer strong { margin-bottom:6px; color:var(--home-ink); font-size:16px; }.home-footer p { grid-column:1/-1; margin:10px 0 0; line-height:1.7; }
@media (max-width:760px) { .home-header { height:68px; padding:0 18px; }.home-header nav { gap:12px; font-size:12px; }.home-header nav a:not(.nav-cta) { display:none; }.home-hero { padding:54px 18px 65px; grid-template-columns:1fr; gap:42px; }.hero-copy h1 { font-size:42px; }.hero-copy>p { font-size:15px; }.hero-visual { min-height:270px; gap:10px; }.visual-pdf,.visual-template { width:145px; height:205px; padding:15px; }.visual-template code { margin:25px 0; font-size:10px; }.home-section { padding:62px 18px; }.home-heading h2 { font-size:28px; }.home-cards,.steps,.capability-list,.faq-list { grid-template-columns:1fr; }.comparison { grid-template-columns:1fr; }.comparison>strong { transform:rotate(90deg); }.home-footer { grid-template-columns:1fr; padding:32px 18px; }.home-footer p { grid-column:auto; } }

/* 公共导航：用于产品首页与转换工作台。 */
.language-picker { display:inline-flex; align-items:center; gap:6px; color:#64748b; font-size:12px; }
.language-picker select { min-width:78px; padding:6px 22px 6px 8px; border:1px solid #dbe3ea; border-radius:7px; background:#fff; color:#334155; font-size:12px; }
.workbench-header { height:68px; display:flex; align-items:center; justify-content:space-between; padding:0 28px; background:#fff; border-bottom:1px solid #e5e7eb; position:relative; z-index:2; }
.workbench-brand { display:inline-flex; align-items:center; gap:9px; color:#1f2937; text-decoration:none; }.workbench-brand strong { display:block; font-size:18px; letter-spacing:.1em; }.workbench-brand small { display:block; margin-top:2px; color:#64748b; font:10px/1 JetBrains Mono,monospace; }.workbench-mark { display:inline-flex; align-items:flex-end; gap:3px; width:22px; height:22px; }.workbench-mark i { width:4px; border-radius:4px; background:#2563eb; }.workbench-mark i:nth-child(1){height:9px;opacity:.45}.workbench-mark i:nth-child(2){height:15px;opacity:.7}.workbench-mark i:nth-child(3){height:22px}.workbench-header nav { display:flex; align-items:center; gap:18px; }.workbench-home { color:#2563eb; font-size:13px; font-weight:700; text-decoration:none; }.workbench-home:hover { text-decoration:underline; }.workbench-header + .app-shell .control-panel { top:68px; height:calc(100vh - 68px); }
@media (max-width:600px) { .workbench-header { padding:0 16px; }.workbench-header .language-picker span { display:none; }.workbench-header nav { gap:10px; }.workbench-home { font-size:12px; } }

/* Revised public homepage */
.pdfze-home .home-hero-revised { padding-top:72px; padding-bottom:78px; }
.pdfze-home .home-hero-revised .hero-copy { background:transparent; color:var(--home-ink); box-shadow:none; padding:0; }
.pdfze-home .home-hero-revised .hero-copy h1 { max-width:650px; color:#0f172a; }
.pdfze-home .home-hero-revised .hero-copy > p { color:var(--home-muted); }
.hero-badges { display:flex; flex-wrap:wrap; gap:8px; margin:25px 0 28px; }
.hero-badges span { padding:7px 11px; border:1px solid #bfdbfe; border-radius:999px; color:#1d4ed8; background:#eff6ff; font-size:12px; font-weight:700; }
.hero-badges span:first-child { color:#166534; border-color:#bbf7d0; background:#f0fdf4; }
.hero-visual-revised { transform:rotate(1deg); }
.formats-home { border-top:1px solid var(--home-line); }
.format-cards { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.format-card { padding:30px; border:1px solid var(--home-line); border-radius:16px; background:#fff; box-shadow:0 14px 35px rgba(15,23,42,.05); }
.format-card-primary { border-color:#93c5fd; box-shadow:0 16px 38px rgba(37,99,235,.10); }
.format-icon { display:inline-block; padding:6px 9px; border-radius:6px; color:#1d4ed8; background:#dbeafe; font:700 11px/1 JetBrains Mono,monospace; letter-spacing:.05em; }
.format-card h3 { margin:18px 0 10px; font-size:23px; }
.format-card p { min-height:68px; margin:0 0 18px; color:var(--home-muted); line-height:1.7; }
.format-card strong { display:block; color:#334155; font-size:13px; }
.format-card a { display:inline-block; margin-top:22px; color:var(--home-blue); font-size:13px; font-weight:700; text-decoration:none; }
.audience-home { border-top:1px solid var(--home-line); }
.audience-list { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.audience-list div { padding:22px 0; border-top:2px solid #bfdbfe; }
.audience-list strong,.audience-list span { display:block; }.audience-list strong { font-size:16px; }.audience-list span { margin-top:9px; color:var(--home-muted); font-size:14px; line-height:1.6; }
.home-final-cta { margin:12px auto 0; padding:72px 28px 84px; text-align:center; background:#eff6ff; }
.home-final-cta h2 { max-width:680px; margin:12px auto 25px; color:#0f172a; font-size:clamp(28px,4vw,45px); line-height:1.15; letter-spacing:-.04em; }
.home-final-cta .hero-cta { display:inline-flex; }
@media (max-width:760px) { .format-cards,.audience-list { grid-template-columns:1fr; }.format-card p { min-height:0; }.pdfze-home .home-hero-revised { padding-top:50px; } }
