/* ============================================================
   ExifTool 推广官网 — 全局样式
   配色源自 logo：黑白灰单色体系，扁平、现代、专业
   ============================================================ */

:root {
  --ink: #101216;         /* 主黑（logo 主色） */
  --ink-2: #171a20;       /* 深色区块背景 */
  --ink-3: #1f232b;       /* 深色卡片 */
  --paper: #ffffff;       /* 白 */
  --mist: #f4f5f7;        /* 浅灰区块 */
  --mist-2: #eceef1;      /* 浅灰 hover */
  --line: #e4e6ea;        /* 分隔线 */
  --muted: #6b7280;       /* 次级文字 */
  --faint: #9aa1ab;       /* 弱化文字 */
  --shadow-sm: 0 1px 2px rgba(16, 18, 22, .06);
  --shadow-md: 0 10px 30px rgba(16, 18, 22, .08);
  --shadow-lg: 0 24px 60px rgba(16, 18, 22, .16);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1160px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas,
    "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--ink); color: #fff; }

/* ---------- 布局工具 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: #fff; }
.section--tight { padding: 64px 0; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head--left { margin: 0 0 40px; text-align: left; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #aab0bb; }
.section-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.section-desc { margin-top: 16px; font-size: 17px; color: var(--muted); }
.section--dark .section-desc { color: #b6bcc6; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; gap: 32px; height: 68px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; overflow: hidden;
}
.brand-logo img { width: 26px; height: 26px; object-fit: contain; }
.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.brand-name span { font-weight: 400; color: var(--muted); font-size: 14px; margin-left: 6px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: 8px; font-size: 15px; font-weight: 500;
  color: var(--ink); transition: background .16s ease, color .16s ease;
}
.nav-links a:hover { background: var(--mist); }
.nav-links a.active { background: var(--ink); color: #fff; }

.nav-links .nav-cta {
  margin-left: 6px; padding: 8px 14px; font-size: 15px; border-radius: 8px;
}
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); place-items: center; margin-left: auto;
}
.nav-toggle svg { display: block; }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 10px; }
  .nav-links .nav-cta { margin: 8px 0 0; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: 12px; font-size: 15.5px; font-weight: 600;
  line-height: 1.7; text-align: center;
  letter-spacing: .01em; transition: transform .12s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: #000; box-shadow: var(--shadow-md); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--light:hover { background: #f2f3f5; box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: #c9cdd3; background: var(--mist); }
.btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.btn--ghost-light:hover { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.btn--lg { padding: 16px 32px; font-size: 16.5px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(255,255,255,.07), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(255,255,255,.05), transparent 60%);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 56px; align-items: center; padding: 96px 24px 84px; max-width: var(--maxw); margin: 0 auto;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600;
  padding: 7px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  color: #cfd3da; margin-bottom: 22px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.hero-title { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.hero-title .accent { color: #9aa3af; }
.hero-sub { margin-top: 22px; font-size: 18px; color: #b9bfc9; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: #7e8691; }

/* 终端卡片 */
.terminal {
  background: #0b0d11; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.terminal-bar .t-dot { width: 11px; height: 11px; border-radius: 50%; background: #2b2f37; }
.terminal-bar .t-dot:first-child { background: #e26d5a; }
.terminal-bar .t-dot:nth-child(2) { background: #e0b34c; }
.terminal-bar .t-dot:nth-child(3) { background: #6fb46a; }
.terminal-bar .t-title { margin-left: 8px; font-size: 12.5px; color: #7e8691; font-family: var(--font-mono); }
.terminal-body { padding: 18px 20px 22px; font-family: var(--font-mono); font-size: 13px; line-height: 1.75; color: #c9ced6; overflow-x: auto; }
.terminal-body .cmd { color: #fff; font-weight: 600; }
.terminal-body .prompt { color: #6fb46a; }
.terminal-body .k { color: #7cc0d8; }
.terminal-body .v { color: #d6b88c; }

/* ---------- 数据条 ---------- */
.stats { border-top: 1px solid rgba(255,255,255,.1); }
.stats-inner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
}
.stat { text-align: center; padding: 34px 12px; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 4px; font-size: 13.5px; color: #8d949e; }
@media (max-width: 720px) { .stats-inner { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3d6db; }
.card--dark { background: var(--ink-3); border-color: rgba(255,255,255,.08); }
.card--dark:hover { border-color: rgba(255,255,255,.2); }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--mist); color: var(--ink); margin-bottom: 18px;
}
.card--dark .card-icon { background: rgba(255,255,255,.08); color: #fff; }
.card h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card--dark h3 { color: #fff; }
.card p { font-size: 14.5px; color: var(--muted); }
.card--dark p { color: #aab0bb; }

/* ---------- 特性列表 ---------- */
.feature-list { display: grid; gap: 16px; }
.feature-item {
  display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.feature-item .check {
  flex: none; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--ink); color: #fff; display: grid; place-items: center;
}
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.feature-item p { font-size: 14.5px; color: var(--muted); }

/* ---------- 格式云 ---------- */
.format-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
}
.chip:hover { border-color: #c9cdd3; background: var(--mist); }
.section--dark .chip { background: var(--ink-3); border-color: rgba(255,255,255,.12); color: #d5d9df; }
.section--dark .chip:hover { border-color: rgba(255,255,255,.3); }

/* ---------- 引语 ---------- */
.quotes { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.quote-mark { font-family: Georgia, serif; font-size: 46px; line-height: 1; color: var(--ink); height: 26px; }
.quote p { font-size: 15px; line-height: 1.7; color: #2b2f36; }
.quote cite { font-size: 13px; color: var(--muted); font-style: normal; margin-top: auto; }

/* ---------- CTA 横幅 ---------- */
.cta-band { background: var(--ink); color: #fff; text-align: center; }
.cta-band .section-title { max-width: 20em; margin: 0 auto; }
.cta-band .section-desc { color: #b6bcc6; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #0c0e12; color: #aab0bb; padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.footer-brand .brand-logo { background: #fff; border-color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-about { font-size: 14px; line-height: 1.8; color: #848b96; max-width: 34em; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #8d949e; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 12.5px; color: #5f6670;
}
.footer-bottom a { color: #848b96; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 面包屑 ---------- */
.breadcrumb { padding: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--faint); }

/* ---------- 页头标题（内页） ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 72px 0; }
.page-hero--tight { padding: 56px 0; }
.page-hero .section-title { max-width: 22em; }
.page-hero .section-desc { max-width: 46em; color: #b6bcc6; }

/* ---------- 下载页 ---------- */
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; gap: 22px; align-items: flex-start; transition: box-shadow .18s, transform .18s;
}
.dl-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.dl-os {
  flex: none; width: 54px; height: 54px; border-radius: 14px; background: var(--ink);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.dl-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.dl-meta { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.dl-meta code { font-family: var(--font-mono); background: var(--mist); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.dl-card .btn { margin-top: 12px; }
.dl-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--mist); color: var(--muted); margin-left: 8px; }

.note-box {
  border: 1px solid var(--line); background: var(--mist); border-radius: var(--radius);
  padding: 20px 24px; font-size: 14.5px; color: #4a4f57;
}
.note-box strong { color: var(--ink); }

/* ---------- 弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 14, 18, .62); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative; width: 100%; max-width: 520px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 36px 34px 30px;
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--mist); color: var(--ink); }
.modal-title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.modal-sub { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
@media (max-width: 460px) { .qr-grid { grid-template-columns: 1fr; } }
.qr-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 18px; text-align: center; }
.qr-card .qr { width: 100%; max-width: 168px; margin: 0 auto; }
.qr-card .qr svg { width: 100%; height: auto; display: block; }
.qr-label { margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.qr-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.modal-links { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.modal-links a { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.modal-links a:hover { text-decoration: underline; }
.modal-links a.muted { color: var(--muted); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; padding: 20px 24px; font-size: 16px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink);
}
.faq-q .ind { flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--mist); display: grid; place-items: center; transition: transform .18s; }
.faq-item.open .faq-q .ind { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 22px; font-size: 15px; color: #3a3f46; }
.faq-item.open .faq-a { display: block; }
.faq-a code { font-family: var(--font-mono); background: var(--mist); padding: 2px 7px; border-radius: 6px; font-size: 13.5px; color: var(--ink); }

/* ---------- 代码块（about/features 内嵌） ---------- */
.codeblock {
  background: #0b0d11; color: #c9ced6; border-radius: var(--radius); overflow: hidden;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.8;
}
.codeblock .cb-bar { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.08); color: #7e8691; font-size: 12px; display: flex; gap: 7px; align-items: center; }
.codeblock pre { padding: 16px 18px; overflow-x: auto; }
.codeblock .c-cmd { color: #fff; }
.codeblock .c-cmt { color: #6a7280; }

/* ---------- 辅助 ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
a.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 300; border-radius: 0 0 8px 0; }
a.skip:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
