/* ============================================================
   artcraftdownload.com — design system v2
   Studio style: dark hero band, display typography, letter-marks
   ============================================================ */
:root {
  --ink: #0b1220; --muted: #5c6b84; --line: #e6eaf2; --bg-soft: #f5f7fb;
  --accent: #4f46e5; --accent-2: #06b6d4; --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #06b6d4 100%);
  --amber-bg: #fef3c7; --amber-ink: #92400e; --blue-bg: #dbeafe; --blue-ink: #1e40af;
  --green-bg: #dcfce7; --green-ink: #166534; --gray-bg: #eef1f5; --gray-ink: #475569;
  --d-bg: #0a0f1e; --d-ink: #eef2fa; --d-muted: #9aa7bf; --d-line: rgba(255,255,255,.09);
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,.06);
  --shadow-md: 0 2px 4px rgba(11,18,32,.05), 0 16px 32px -18px rgba(11,18,32,.18);
  --shadow-lg: 0 4px 10px rgba(11,18,32,.06), 0 32px 64px -28px rgba(11,18,32,.28);
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
::selection { background: #c7d2fe; }
a { color: var(--accent); }
a:hover { text-decoration: underline; }
h1, h2, h3, .wordmark { font-family: var(--font-display); letter-spacing: -0.02em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main { padding-bottom: 80px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Header (dark glass) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10,15,30,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--d-line); }
.header-in { display: flex; align-items: center; gap: 22px; height: 64px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.04rem; color: #fff; text-decoration: none; }
.wordmark:hover { text-decoration: none; }
.logo-dot { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); box-shadow: 0 0 18px rgba(99,102,241,.55); display: inline-block; flex: none; }
.site-header nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: #a7b2c9; font-weight: 550; font-size: .92rem; }
.site-header nav a:hover { color: #fff; text-decoration: none; }

/* ---------- Buttons ---------- */
.btn { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 650; font-size: .95rem; font-family: var(--font-body); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px rgba(79,70,229,.65); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(79,70,229,.75); }
.btn-ghost { border-color: rgba(255,255,255,.22); color: #e8edf7; background: rgba(255,255,255,.06); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero .btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.btn-sm { padding: 8px 15px; font-size: .87rem; border-radius: 10px; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }

/* ---------- Hero (dark band with glows) ---------- */
.hero { position: relative; overflow: hidden; background: var(--d-bg); color: #fff; padding: 84px 0 56px; }
.hero::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 340px at 82% -8%, rgba(99,102,241,.38), transparent 62%),
    radial-gradient(640px 320px at 8% 4%, rgba(6,182,212,.22), transparent 58%),
    radial-gradient(900px 460px at 55% 118%, rgba(124,58,237,.16), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 0%, #000 30%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; margin: 12px 0 20px; max-width: 860px; }
.hero .lead { font-size: 1.14rem; color: #b9c4d8; max-width: 780px; margin: 0 0 12px; }
.hero p { color: #aab6cc; max-width: 800px; }
.hero strong { color: #e8edf7; }
.hero a:not(.btn) { color: #8ab4ff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.hero .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #cdd6e6; }
.chip.alpha { background: var(--amber-bg); color: var(--amber-ink); border-color: #fde68a; }
.chip.dev { background: var(--blue-bg); color: var(--blue-ink); border-color: #bfdbfe; }
.chip.ok { background: var(--green-bg); color: var(--green-ink); border-color: #bbf7d0; }
.chip.no { background: var(--gray-bg); color: var(--gray-ink); }
.hero .chip.alpha { background: rgba(251,191,36,.14); color: #fcd34d; border-color: rgba(251,191,36,.35); }
.hero .chip.ok { background: rgba(52,211,153,.13); color: #6ee7b7; border-color: rgba(52,211,153,.35); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 14px; }
.hero .note { color: #8593ab; font-size: .88rem; }

/* ---------- Sections ---------- */
.section { margin-top: 68px; }
h2 { font-size: 1.65rem; margin: 0 0 14px; }
h3 { font-size: 1.1rem; margin: 1.4em 0 .5em; }
.section > p, .prose p { color: #2c3648; max-width: 820px; }
.note { color: var(--muted); font-size: .88rem; }

/* ---------- Letter-mark tiles & cards ---------- */
.appicon { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: 0; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 14px -6px rgba(11,18,32,.35); }
.ic-photocraft { background: linear-gradient(135deg,#6366f1,#8b5cf6); }
.ic-filmcraft { background: linear-gradient(135deg,#f43f5e,#fb923c); }
.ic-lightcraft { background: linear-gradient(135deg,#10b981,#22d3ee); }
.ic-pdfcraft { background: linear-gradient(135deg,#ef4444,#f59e0b); }
.ic-vectorcraft { background: linear-gradient(135deg,#0ea5e9,#6366f1); }
.ic-effectcraft { background: linear-gradient(135deg,#d946ef,#8b5cf6); }
.ic-designcraft { background: linear-gradient(135deg,#f59e0b,#ec4899); }
.ic-wordcraft { background: linear-gradient(135deg,#3b82f6,#06b6d4); }
.ic-deckcraft { background: linear-gradient(135deg,#14b8a6,#22d3ee); }
.ic-ai { background: linear-gradient(135deg,#7c3aed,#06b6d4); }
.ic-suite { background: linear-gradient(135deg,#0f172a,#475569); }
.ic-win, .ic-mac, .ic-linux { background: linear-gradient(135deg,#334155,#64748b); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); margin: 20px 0; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 9px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5dcf0; }
.card h3 { margin: 0; font-size: 1.08rem; }
.card .tag { color: var(--muted); font-size: .85rem; }
.card .meta { color: var(--muted); font-size: .85rem; line-height: 1.6; }
.card .meta strong { color: var(--ink); }
.card .actions { margin-top: auto; padding-top: 8px; font-size: .92rem; }
.card .actions a { font-weight: 650; }
.card.soft { background: var(--bg-soft); box-shadow: none; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 20px 0; box-shadow: var(--shadow-sm); }
table.cmp { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
table.cmp th, table.cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { background: var(--ink); color: #dbe3f2; font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
table.cmp tbody tr:last-child td { border-bottom: none; }
table.cmp tbody tr:hover { background: #f6f8fd; }
table.cmp td strong { color: var(--ink); }

/* ---------- Breadcrumbs & page head ---------- */
.crumbs { font-size: .84rem; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }
.page-head { position: relative; overflow: hidden; border-radius: 20px; padding: 38px 40px 34px; margin-top: 14px; background: #0a0f1e; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow-lg); }
.page-head::before { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(560px 240px at 88% -20%, rgba(99,102,241,.35), transparent 62%),
    radial-gradient(480px 220px at 0% 125%, rgba(6,182,212,.18), transparent 60%); }
.page-head > * { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.8rem, 3.8vw, 2.55rem); line-height: 1.14; letter-spacing: -.025em; margin: 10px 0 16px; color: #fff; }
.page-head .lead { font-size: 1.1rem; color: #b9c4d8; }
.page-head .lead strong, .page-head p strong { color: #eef2fa; }
.page-head .chips { margin: 16px 0 6px; }
.page-head .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #cdd6e6; }
.page-head .chip.alpha { background: rgba(251,191,36,.14); color: #fcd34d; border-color: rgba(251,191,36,.35); }
.page-head .chip.dev { background: rgba(96,165,250,.15); color: #93c5fd; border-color: rgba(96,165,250,.35); }
.page-head .chip.ok { background: rgba(52,211,153,.13); color: #6ee7b7; border-color: rgba(52,211,153,.35); }
.page-head .chip.no { background: rgba(148,163,184,.14); color: #cbd5e1; border-color: rgba(148,163,184,.3); }
.page-head .appicon { margin-bottom: 2px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 24px -8px rgba(0,0,0,.55); }
.crumbs { padding-top: 24px; }
.section ul { list-style: none; padding-left: 0; }
.section ul:not(.link-list) li { position: relative; padding-left: 28px; }
.section ul:not(.link-list) li::before { content: "✓"; position: absolute; left: 0; top: -1px; font-weight: 800; font-size: .95em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card > p { margin: 0; color: #46536b; font-size: .92rem; }

/* ---------- FAQ ---------- */
details.faq { border: 1px solid var(--line); border-radius: 13px; padding: 15px 18px; margin: 10px 0; background: #fff; box-shadow: var(--shadow-sm); transition: border-color .15s ease; }
details.faq[open] { border-color: #c9d2f5; }
details.faq summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .18s ease; margin-top: -4px; }
details.faq[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
details.faq p { margin: 10px 0 2px; color: #2c3648; }

/* ---------- Link list ---------- */
.link-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.link-list li { border: 1px solid var(--line); border-radius: 13px; padding: 14px 18px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .15s ease; }
.link-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.link-list a { font-weight: 650; }
.link-list .desc { color: var(--muted); font-size: .88rem; display: block; }

/* ---------- Video ---------- */
.video { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin: 18px 0; max-width: 820px; box-shadow: var(--shadow-md); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--d-bg); color: var(--d-muted); margin-top: 72px; border-top: none; }
.footer-in { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; padding: 52px 0 32px; }
.site-footer h4 { margin: 0 0 12px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6f7d97; font-family: var(--font-body); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #c3cddf; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand p { color: #8d9ab3; font-size: .9rem; margin: 0; }
.site-footer .footer-brand .wordmark { margin-bottom: 12px; display: inline-flex; }
.footer-base { border-top: 1px solid var(--d-line); padding: 18px 0 30px; color: #6f7d97; font-size: .8rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .header-in { height: auto; padding: 12px 0; flex-wrap: wrap; gap: 12px; }
  .site-header nav { margin-left: 0; width: 100%; order: 3; gap: 14px; }
  .hero { padding: 56px 0 40px; }
  .footer-in { grid-template-columns: 1fr; gap: 24px; }
}

/* 固定列数网格 */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
