:root {
  --navy: #0b4e80;
  --blue: #0f6cae;
  --gold: #e8a23a;
  --ink: #16232f;
  --muted: #687684;
  --paper: #f6f8fa;
  --white: #fff;
  --line: #dbe3e9;
  --green: #1f8f63;
  --shadow: 0 12px 35px rgba(11, 78, 128, .12);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.site-top { background: var(--navy); color: #dbeaf3; font-size: 13px; }
.site-top-inner, .nav-inner, .page-shell, footer .footer-inner { max-width: 1180px; margin: 0 auto; }
.site-top-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px; }
.site-header { background: var(--blue); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.nav-inner { min-height: 70px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; }
.brand img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; background: #fff; }
.brand-text small { display: block; font-size: 10px; font-weight: 500; opacity: .82; letter-spacing: .05em; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: #fff; padding: 9px 11px; border-radius: 8px; font-size: 14px; }
.main-nav a:hover { background: rgba(255,255,255,.13); }
.nav-toggle { display: none; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; padding: 7px 10px; }
.page-shell { padding: 18px 22px 60px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; margin: 4px 0 22px; }
.breadcrumbs a:hover { color: var(--blue); }
.hero { text-align: center; padding: 20px 0 8px; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1, h2 { line-height: 1.2; }
h1 { font-size: clamp(32px, 5vw, 48px); margin: 7px 0 12px; letter-spacing: -.03em; }
.hero p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 17px; }
.ad-slot { min-height: 90px; display: flex; align-items: center; justify-content: center; margin: 22px auto; border: 1px dashed #cbd5dc; background: #fff; color: #8a969f; font-size: 11px; max-width: 970px; }
.ad-slot span { opacity: .75; }
.tool-card, .content-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.tool-card { padding: 22px; }
.tool-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; }
.tool-head h2 { margin: 0 0 5px; font-size: 24px; }
.tool-head p { margin: 0; color: var(--muted); font-size: 14px; }
.ghost-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 13px; cursor: pointer; }
.dropzone { min-height: 250px; border: 2px dashed #b7c9d5; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; background: linear-gradient(180deg,#fbfdff,#f5f9fc); cursor: pointer; text-align: center; transition: .2s ease; }
.dropzone.dragover { border-color: var(--blue); background: #eef7fd; transform: translateY(-1px); }
.upload-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #e7f2fa; color: var(--blue); font-size: 28px; }
.dropzone strong { font-size: 18px; }
.dropzone span, .dropzone small { color: var(--muted); }
.status { min-height: 28px; padding-top: 14px; color: var(--muted); font-size: 14px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 12px; }
.result-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; }
.result-card h3 { margin: 0 0 8px; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-box { min-width: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#eef1f4 0 25%, #fff 0 50%) 50% / 18px 18px; }
.preview-box img { width: 100%; height: 220px; object-fit: contain; display: block; }
.preview-label { background: rgba(255,255,255,.92); padding: 5px 8px; font-size: 11px; color: var(--muted); }
.result-actions { display: flex; gap: 8px; margin-top: 10px; }
.download-btn { flex: 1; border: 0; border-radius: 9px; background: var(--blue); color: #fff; padding: 9px 12px; cursor: pointer; }
.content-card { padding: 24px; margin-top: 22px; box-shadow: none; }
.content-card h2 { margin: 0 0 12px; font-size: 24px; }
.content-card h2:not(:first-child) { margin-top: 26px; }
.privacy-note { margin-top: 18px; padding: 13px 15px; border-left: 4px solid var(--green); background: #eef9f4; border-radius: 8px; }
.faq details { border-top: 1px solid var(--line); padding: 13px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 14px; }
.section-title h2 { margin: 4px 0 0; font-size: 26px; }
.view-all { color: var(--blue); font-weight: 700; font-size: 14px; }
.tool-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.tool-links a { border: 1px solid var(--line); background: #fff; padding: 15px; border-radius: 12px; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; transition: .18s; }
.tool-links a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.07); border-color: #b9cbd7; }
.tool-links span { grid-row: span 2; font-size: 23px; }
.tool-links strong { font-size: 14px; }
.tool-links small { color: var(--muted); }
footer { background: #0b2638; color: #cbdbe5; }
.footer-inner { padding: 30px 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner strong { color: #fff; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.error { color: #a33b2e; }
@media (max-width: 820px) {
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 73px; background: var(--blue); padding: 10px 18px 16px; flex-direction: column; align-items: stretch; border-top: 1px solid rgba(255,255,255,.15); }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .results-grid, .tool-links { grid-template-columns: 1fr; }
  .preview-box img { height: 260px; }
}
@media (max-width: 560px) {
  .site-top { display: none; }
  .nav-inner { min-height: 64px; padding: 9px 15px; }
  .brand img { width: 38px; height: 38px; }
  .page-shell { padding: 14px 14px 45px; }
  .tool-card, .content-card { padding: 16px; }
  .tool-head { flex-direction: column; }
  .preview { grid-template-columns: 1fr; }
  .preview-box img { height: 230px; }
  .ad-slot { min-height: 70px; }
}
