/* 入口首頁數據藝術的樣式（從 app.html 同一段複製，給數據藝廊 40–42 用；改 app.html 那段要同步） */
  /* 入口首頁的數據藝術（2026-10-31，live-ent.js）。底色框裡的內容離每邊至少 8px、上下對稱 */
  .entart { min-width: 0; }
  .dc { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 1100px; }
  .dc svg { width: 100%; height: auto; display: block; }
  .dc-night { fill: rgba(43,58,66,.06); }
  .dc-tick { stroke: var(--ink-muted); stroke-width: 1; opacity: .6; }
  .dc-hr { fill: var(--ink-muted); font-size: 12px; text-anchor: middle; font-family: "IBM Plex Mono", monospace; }
  .dc-track { fill: none; stroke: var(--surface-sunken, #eef2f1); }
  .dc-rl { fill: var(--ink-muted); font-size: 10px; text-anchor: middle; }
  .dc-seg { fill: none; stroke-linecap: round; cursor: pointer; }
  .dc-seg.is-done { opacity: .35; }
  .dc-seg[data-h] { stroke-linecap: butt; }
  .dc-seg.is-sel, .dc-seg:focus { stroke-width: 20px; opacity: 1; outline: none; }
  .is-grow .dc-seg { stroke-dasharray: 400; stroke-dashoffset: 400; animation: dcGrow .7s ease-out forwards; animation-delay: var(--d); }
  @keyframes dcGrow { to { stroke-dashoffset: 0; } }
  .dc-mk { cursor: pointer; } .dc-mk circle { stroke: #fff; stroke-width: 2; }
  .dc-mk .is-sun { fill: #e0a526; } .dc-mk .is-hi { fill: #2f6fb5; } .dc-mk .is-lo { fill: #9fc1e3; }
  .dc-mk.is-sel circle { r: 9; }
  .dc-hand { stroke: #c8532a; stroke-width: 2.5; stroke-linecap: round; } .dc-hub { fill: #c8532a; }
  .dc-now { fill: var(--ink); font: 700 22px "IBM Plex Mono", monospace; text-anchor: middle; }
  .dc-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
  .dc-leg { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-muted); }
  .dc-leg span { display: inline-flex; align-items: center; gap: 6px; } .dc-leg i { width: 12px; height: 12px; border-radius: 50%; }
  .dc-leg i.is-sun { background: #e0a526; } .dc-leg i.is-hi { background: #2f6fb5; } .dc-leg i.is-lo { background: #9fc1e3; }
  .dc-side h4 { margin: 4px 0 0; font-size: 15px; }
  .dc-up { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .dc-up button { width: 100%; display: grid; grid-template-columns: 3.4em 10px minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-raised, #fff); color: var(--ink); font: inherit; cursor: pointer; min-height: 44px; }
  .dc-up button:hover { border-color: var(--ent-c); }
  .dc-up b { font: 700 15px "IBM Plex Mono", monospace; } .dc-up i { width: 10px; height: 10px; border-radius: 50%; }
  .dc-up span { min-width: 0; font-size: 14px; } .dc-up small { display: block; color: var(--ink-muted); font-size: 12px; }
  .dc-none { color: var(--ink-muted); padding: 10px 0; }
  .dc-tip { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken, #eef2f1); font-size: 14px; min-height: 20px; }
  .dc-tip em { color: #b42318; font-style: normal; font-weight: 700; } .dc-tip u { color: var(--ent-t); text-decoration: none; font-weight: 700; }
  @media (max-width: 760px) { .dc { grid-template-columns: 1fr; } .dc svg { max-width: 360px; margin: 0 auto; } }
  .ink { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .ink-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .ink-c { position: relative; border-radius: 12px; overflow: hidden; background: #f7f3ea; border: 1px solid var(--line); }
  .ink-c canvas { display: block; width: 100%; cursor: pointer; }
  .ink-c > b { position: absolute; left: 10px; top: 8px; font-family: var(--font-serif); font-size: 15px; color: #2b2620; }
  .ink-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
  .ink-tip { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-sunken, #eef2f1); font-size: 14px; }
  .ink-pin { margin-left: 8px; font-size: 12px; color: var(--ent-t); }
  .ink-list { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
  .ink-k h5 { margin: 0 0 4px; font-size: 14px; display: flex; gap: 6px; align-items: baseline; } .ink-k h5 small { color: var(--ink-muted); font-weight: 400; }
  .ink-k a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 14px; border-bottom: 1px dashed var(--line); }
  .ink-k a:hover { color: var(--ent-t); }
  @media (max-width: 760px) { .ink { grid-template-columns: 1fr; } }
  @media (max-width: 420px) { .ink-grid { grid-template-columns: 1fr; } }
  .tw { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
  .tw-main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .tw-l, .tw-r { min-width: 0; } .tw-r { display: grid; gap: 10px; } .tw-r .tw-m { font-size: 18px; } .tw-r .tw-act { margin-top: 4px; }
  @media (max-width: 760px) { .tw-main { grid-template-columns: minmax(0, 1fr); } }
  .tw-word { display: flex; gap: 4px; }
  .tw-ch { font-family: var(--font-serif); font-size: 52px; line-height: 1.1; color: var(--ent-t); text-decoration: none; }
  .is-play .tw-ch { opacity: 0; animation: twIn .35s ease-out forwards; animation-delay: var(--d); }
  @keyframes twIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .tw-svg { width: 100%; max-width: 620px; max-height: 210px; height: auto; display: block; margin: 6px 0; }
  .tw-staff { stroke: var(--line); stroke-width: 1; } .tw-lv { fill: var(--ink-muted); font-size: 10px; text-anchor: end; }
  .tw-line { fill: none; stroke: var(--ent-c, #4a3f8f); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
  .is-play .tw-line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: twDraw .7s ease-in-out forwards; animation-delay: var(--d); }
  @keyframes twDraw { to { stroke-dashoffset: 0; } }
  .tw-tn { fill: var(--ink-muted); font-size: 12px; text-anchor: middle; } .tw-py { fill: var(--ink); font-size: 14px; text-anchor: middle; font-family: "IBM Plex Mono", monospace; }
  .tw-m { margin: 0; font-size: 16px; } .tw-m span { display: block; color: var(--ink-muted); font-size: 14px; margin-top: 4px; }
  .tw-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
  .tw-act button { font: inherit; font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ent-c); background: var(--ent-c); color: #fff; cursor: pointer; }
  .tw-act a { color: var(--ent-t); font-weight: 700; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 8px; }
  .tw-ring { position: relative; width: 130px; height: 130px; display: block; color: var(--ink); text-decoration: none; }
  .tw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .tw-rt { fill: none; stroke: var(--surface-sunken, #eef2f1); stroke-width: 10; }
  .tw-rp { fill: none; stroke: var(--ent-c, #4a3f8f); stroke-width: 10; stroke-linecap: round; stroke-dashoffset: var(--off); }
  .is-play .tw-rp { animation: twRing 1.2s ease-out both; } @keyframes twRing { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: var(--off); } }
  .tw-ring span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .tw-ring b { font: 700 30px "IBM Plex Mono", monospace; } .tw-ring small { font-size: 12px; color: var(--ink-muted); }
  @media (max-width: 560px) { .tw { grid-template-columns: 1fr; } .tw-ring { margin: 0 auto; } .tw-ch { font-size: 44px; } }
