/* FreeTools Hub family theme - WatermarkFree */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #1d4ed8; --purple: #7c3aed; --ink: #1e293b; --muted: #64748b;
  --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff; --ok: #16a34a;
  --warn: #d97706; --bad: #dc2626;
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; }

#siteHeader { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; padding: 26px 0 0; }
.header-inner { display: flex; align-items: center; }
.brand { display: flex; gap: 14px; align-items: center; }
.hub-link { color: #fff; text-decoration: none; font-size: .85rem; opacity: .85; display: block; margin-bottom: 2px; }
.hub-link:hover { opacity: 1; text-decoration: underline; }
.brand-name { font-size: 1.7rem; line-height: 1.1; }
.brand-tag { opacity: .9; font-size: .9rem; }
.free-banner { text-align: center; font-size: .82rem; padding: 10px 16px 14px; opacity: .95; }

#main { padding: 30px 0 10px; }
.intro h2 { font-size: 1.5rem; margin-bottom: 6px; }
.intro { margin-bottom: 20px; }
.engine-note { margin-top: 10px; padding: 10px 14px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; display: inline-block; }
.engine-note.ready { background: #f0fdf4; border-color: #bbf7d0; }
.engine-note.fail { background: #fef2f2; border-color: #fecaca; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.card h3 { margin-bottom: 6px; font-size: 1.1rem; }
.step2 { margin-top: 20px; }

.drop { border: 2px dashed var(--line); border-radius: 14px; padding: 30px 16px; text-align: center; cursor: pointer; display: block; transition: border-color .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: #f5f8ff; }
.drop-hint { display: block; font-size: 1rem; font-weight: 600; }
.drop-file { display: block; margin-top: 8px; word-break: break-all; }

.canvas-wrap { position: relative; margin: 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0f172a; line-height: 0; display: flex; justify-content: center; }
#stage { position: relative; display: inline-block; line-height: 0; }
.canvas-wrap canvas { max-width: 100%; height: auto; display: block; margin: 0 auto; }
#paint-canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }

.toolbar { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.toolbar label { font-size: .9rem; font-weight: 600; flex: 1; min-width: 200px; }
.toolbar input[type="range"] { width: 100%; margin-top: 6px; accent-color: var(--blue); }
.tool-btns { display: flex; gap: 10px; }

.btn { border: none; border-radius: 10px; padding: 11px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; width: 100%; margin-top: 6px; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #eef2ff; color: var(--blue); }
.btn-ghost:hover { background: #e0e7ff; }
.dl-row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.dl-row .btn-primary { width: auto; flex: 1; min-width: 220px; margin-top: 0; }

.honesty { margin: 34px 0 8px; }
.honesty h2 { margin-bottom: 10px; font-size: 1.25rem; }
.honesty p { color: #475569; margin-bottom: 10px; }
.faq-sec { margin: 34px 0 40px; }
.faq-sec h2 { margin-bottom: 14px; font-size: 1.3rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--blue); font-weight: 700; }
.faq[open] summary::before { content: "− "; }
.faq p { padding: 0 18px 16px; color: #475569; }

.site-footer { border-top: 1px solid var(--line); padding: 22px 0 34px; margin-top: 10px; }
.site-footer a { color: var(--blue); }
