/* ==========================================================
   gptimage.top — GPT Image 在线生成中文站
   深色科技风 · 纯静态 · 无外部资源依赖
   ========================================================== */

:root {
  --bg: #070b16;
  --bg-2: #0b1124;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef2ff;
  --muted: #9aa7c7;
  --brand-1: #6d7cff;
  --brand-2: #b45cff;
  --brand-3: #ff6ec7;
  --grad: linear-gradient(135deg, #6d7cff 0%, #b45cff 55%, #ff6ec7 100%);
  --radius: 18px;
  --maxw: 1160px;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: hidden;
}

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

h1, h2, h3 { text-wrap: balance; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7, 11, 22, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
}
.logo .dot { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-links a { transition: color 0.2s; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff !important;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s;
}
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 108px 0 64px;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px 320px at 18% 12%, rgba(109, 124, 255, 0.22), transparent 65%),
    radial-gradient(560px 300px at 82% 8%, rgba(180, 92, 255, 0.18), transparent 65%),
    radial-gradient(700px 420px at 50% 108%, rgba(255, 110, 199, 0.12), transparent 70%),
    linear-gradient(180deg, #0a1024 0%, var(--bg) 90%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(720px 420px at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(720px 420px at 50% 20%, #000 30%, transparent 75%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(180, 92, 255, 0.35);
  background: rgba(180, 92, 255, 0.1);
  color: #d7c3ff;
  font-size: 0.86rem;
  letter-spacing: 1px;
}
.eyebrow .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
  box-shadow: 0 0 10px var(--brand-2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.hero h1 {
  margin: 20px auto 14px;
  font-size: clamp(2.1rem, 5.4vw, 3.5rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.5px;
  max-width: 820px;
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  max-width: 640px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.08rem;
}
.cta-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 30px rgba(140, 100, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 38px rgba(140, 100, 255, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }

/* 提示词轮播 */
.prompt-bar {
  margin: 30px auto 0;
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 0.94rem;
  color: var(--muted);
  text-align: left;
}
.prompt-bar .icon { flex: none; color: var(--brand-2); }
#rotating-prompt { color: #cfd8f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 数据栏 */
.stats {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.stat {
  padding: 20px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.88rem; color: var(--muted); }

/* ---------- 通用 Section ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--brand-2);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 14px;
}
.section-head p { color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(180, 92, 255, 0.35); }
.card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.18), rgba(255, 110, 199, 0.18));
  color: #b9a6ff;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 0.94rem; }

/* ---------- 三步流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative;
  padding: 34px 28px 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  background: var(--grad);
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(140, 100, 255, 0.35);
}
.step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.94rem; }
.step-arrow {
  position: absolute;
  right: -22px; top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

/* ---------- 模型介绍 ---------- */
.model-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.model-split h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 18px; line-height: 1.4; }
.model-split .def { color: var(--text); margin-bottom: 14px; }
.model-split .desc { color: var(--muted); margin-bottom: 24px; }
.model-split .def strong { color: #c9b8ff; }
.cap-list { display: grid; gap: 12px; margin-bottom: 28px; }
.cap-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #cfd8f5;
  font-size: 0.97rem;
}
.cap-list .check {
  flex: none;
  margin-top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(109, 124, 255, 0.2);
  color: #9fb0ff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-card {
  padding: 34px 30px;
  border-radius: 22px;
  border: 1px solid rgba(180, 92, 255, 0.3);
  background: linear-gradient(160deg, rgba(109, 124, 255, 0.1), rgba(255, 110, 199, 0.07));
  position: relative;
  overflow: hidden;
}
.model-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 92, 255, 0.35), transparent 70%);
}
.model-card .tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: #d7c3ff;
  margin-bottom: 16px;
}
.model-card h3 { font-size: 1.4rem; margin-bottom: 8px; }
.model-card .model-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec-row span { color: var(--muted); }
.spec-row b { color: #e4e9ff; font-weight: 700; }
.model-card .btn { width: 100%; margin-top: 24px; }

/* ---------- 应用场景 ---------- */
.case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.case-card:hover { transform: translateY(-4px); border-color: rgba(109, 124, 255, 0.4); background: var(--card-hover); }
.case-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.18), rgba(255, 110, 199, 0.18));
  color: #b9a6ff;
}
.case-card h3 { font-size: 1.05rem; }
.case-card p { color: var(--muted); font-size: 0.9rem; }

/* ---------- 作品画廊 ---------- */
.art-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.art-card:hover { transform: translateY(-5px); border-color: rgba(180, 92, 255, 0.4); }
.art-card .art { aspect-ratio: 4 / 3; overflow: hidden; }
.art-card .art svg, .art-card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.art-card:hover .art svg, .art-card:hover .art img { transform: scale(1.05); }
.art-card .cap { padding: 16px 18px; }
.art-card .cap .cap-tag { font-size: 0.76rem; color: var(--brand-2); letter-spacing: 1px; }
.art-card .cap p { margin-top: 5px; font-size: 0.88rem; color: #cfd8f5; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(180, 92, 255, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 19px 52px 19px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-2);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-a { padding: 0 22px 20px; color: var(--muted); font-size: 0.96rem; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  position: relative;
  text-align: center;
  padding: 76px 30px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(109, 124, 255, 0.22), rgba(180, 92, 255, 0.18) 50%, rgba(255, 110, 199, 0.16));
  border: 1px solid rgba(180, 92, 255, 0.3);
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 200px at 50% 0%, rgba(180, 92, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { color: #c3cdec; max-width: 560px; margin: 0 auto 30px; }

/* ---------- 子页面头部 ---------- */
.page-hero {
  position: relative;
  padding: 128px 0 44px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(560px 280px at 20% 0%, rgba(109, 124, 255, 0.18), transparent 65%),
    radial-gradient(560px 280px at 80% 0%, rgba(255, 110, 199, 0.12), transparent 65%),
    linear-gradient(180deg, #0a1024, var(--bg));
}
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.5; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.page-hero .sub { max-width: 660px; margin: 0 auto; color: var(--muted); font-size: 1.04rem; }

/* ---------- 正文排版(教程/关于) ---------- */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 48px 0 16px; padding-top: 8px; }
.prose h3 { font-size: 1.18rem; margin: 30px 0 12px; }
.prose p { color: #c3cdec; margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 4px; display: grid; gap: 8px; }
.prose ul li { padding-left: 22px; position: relative; color: #c3cdec; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 12px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.prose ol { counter-reset: li; }
.prose ol li { padding-left: 30px; position: relative; color: #c3cdec; counter-increment: li; }
.prose ol li::before {
  content: counter(li);
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--grad);
}
.prose strong { color: #e4e9ff; }
.prose a { color: #a9b7ff; border-bottom: 1px dashed rgba(169, 183, 255, 0.5); }
.prose a:hover { color: #fff; border-bottom-color: #fff; }
.tip-box {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(109, 124, 255, 0.3);
  background: rgba(109, 124, 255, 0.08);
  font-size: 0.95rem;
  color: #cfd8f5;
}
.tip-box b { color: #b9c6ff; }

/* ---------- 表格 ---------- */
.table-wrap {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
}
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
.compare-table th, .compare-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare-table thead th {
  background: rgba(109, 124, 255, 0.12);
  font-weight: 700;
  color: #d7c3ff;
  white-space: nowrap;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.compare-table td:first-child { color: var(--muted); white-space: nowrap; }
.compare-table .yes { color: #7ce7b2; }
.compare-table .no { color: #ff8fa8; }

/* ---------- 提示词卡片 ---------- */
.prompt-group { margin-bottom: 44px; }
.prompt-group > h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prompt-group > .group-desc { color: var(--muted); font-size: 0.93rem; margin-bottom: 18px; }
.prompt-card {
  position: relative;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 12px;
  transition: border-color 0.25s, background 0.25s;
}
.prompt-card:hover { border-color: rgba(180, 92, 255, 0.4); background: var(--card-hover); }
.prompt-card code {
  display: block;
  font-family: inherit;
  font-size: 0.95rem;
  color: #d9e0fa;
  line-height: 1.7;
  word-break: break-all;
  padding-right: 66px;
}
.copy-btn {
  position: absolute;
  right: 14px; top: 14px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-btn:hover { color: #fff; border-color: rgba(180, 92, 255, 0.5); }
.copy-btn.copied { color: #7ce7b2; border-color: rgba(124, 231, 178, 0.5); }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #060a14;
  padding: 64px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 18px; color: #dfe6fb; }
.footer-col ul { display: grid; gap: 11px; font-size: 0.9rem; color: var(--muted); }
.footer-col a:hover { color: #fff; }
.hot-keywords {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
}
.hot-keywords b { color: #a9b7d8; margin-right: 6px; font-weight: 600; }
.hot-keywords a { color: var(--muted); }
.hot-keywords a:hover { color: #b9a6ff; }
.copyright {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-align: center;
  font-size: 0.84rem;
  color: #67759c;
}
.copyright a { color: #67759c; }
.copyright a:hover { color: var(--muted); }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 60px; }
.error-page .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.1; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .model-split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 68px 0; }
  .hero { padding: 104px 0 52px; }
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .nav .nav-cta { display: inline-flex; }
  .grid-4, .grid-3, .grid-6 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .prompt-bar { border-radius: 18px; flex-wrap: wrap; }
  #rotating-prompt { white-space: normal; }
  .cta-row .btn { width: 100%; max-width: 320px; }
  .faq-item summary { padding: 16px 44px 16px 16px; font-size: 0.97rem; }
  .faq-item .faq-a { padding: 0 16px 18px; }
}

/* ==========================================================
   提示词案例画廊(gallery.html)
   ========================================================== */
.gal-section { padding: 40px 0 96px; }

/* 工具栏 */
.gal-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.gal-search-wrap {
  flex: 1 1 320px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  transition: border-color 0.2s;
}
.gal-search-wrap:focus-within { border-color: rgba(180, 92, 255, 0.5); }
.gal-search-wrap input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.gal-search-wrap input::placeholder { color: #67759c; }
.gal-count { font-size: 0.88rem; color: var(--muted); white-space: nowrap; }
.gal-size {
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}

/* 卡片网格 */
.gal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gal-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.gal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(180, 92, 255, 0.45);
  background: var(--card-hover);
}
.gal-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-2);
}
.gal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gal-card:hover .gal-cover img { transform: scale(1.05); }
.gal-badge {
  position: absolute;
  top: 12px; right: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  color: #fff;
  background: rgba(7, 11, 22, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}
.gal-open {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: rgba(7, 11, 22, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.gal-card:hover .gal-open { opacity: 1; }
.gal-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 20px 16px;
  flex: 1;
}
.gal-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gal-desc, .gal-excerpt {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--muted);
}
.gal-desc, .gal-excerpt .clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gal-excerpt .clamp { color: #b9c6ff; }
.gal-excerpt {
  background: rgba(109, 124, 255, 0.07);
  border: 1px dashed rgba(109, 124, 255, 0.25);
  border-radius: 10px;
  padding: 9px 12px;
}
.gal-foot {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.gal-meta {
  font-size: 0.78rem;
  color: #67759c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gal-acts { display: flex; gap: 8px; flex: none; }
.gal-btn {
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.gal-btn:hover { color: #fff; border-color: rgba(180, 92, 255, 0.5); }
.gal-btn.copied { color: #7ce7b2; border-color: rgba(124, 231, 178, 0.5); }
.gal-btn-primary {
  background: var(--grad);
  border: none;
  color: #fff;
  font-weight: 600;
}

/* 分页 */
.gal-pager {
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.gal-pg {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: #c3cdec;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.gal-pg:hover:not(:disabled) { border-color: rgba(180, 92, 255, 0.5); color: #fff; }
.gal-pg.on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
}
.gal-pg:disabled { opacity: 0.35; cursor: default; }
.gal-dots { color: #67759c; padding: 0 2px; }

/* 空态 */
.gal-empty { text-align: center; padding: 70px 0; color: var(--muted); }

/* ---------- 详情弹窗 ---------- */
.gal-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.gal-modal.open { display: flex; align-items: center; justify-content: center; padding: 24px; }
.gal-m-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.gal-m-dialog {
  position: relative;
  width: min(1020px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border-radius: 22px;
  border: 1px solid rgba(180, 92, 255, 0.3);
  background: var(--bg-2);
  overflow: hidden;
}
.gal-m-close {
  position: absolute;
  top: 12px; right: 14px;
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(7, 11, 22, 0.6);
  color: #c3cdec;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s;
}
.gal-m-close:hover { color: #fff; border-color: rgba(180, 92, 255, 0.6); }
.gal-m-media {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #05080f;
  min-height: 0;
}
.gal-m-media > img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: contain;
}
.gal-m-count {
  position: absolute;
  top: 14px; left: 14px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(7, 11, 22, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.gal-m-strip {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
}
.gal-m-strip img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  flex: none;
  opacity: 0.6;
  transition: opacity 0.2s, border-color 0.2s;
}
.gal-m-strip img.on, .gal-m-strip img:hover { opacity: 1; border-color: var(--brand-2); }
.gal-m-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px 22px;
  overflow-y: auto;
  min-height: 0;
}
.gal-m-info h3 { font-size: 1.28rem; line-height: 1.45; padding-right: 40px; }
.gal-m-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
  color: var(--muted);
}
.gal-m-meta a { color: #a9b7ff; border-bottom: 1px dashed rgba(169, 183, 255, 0.5); }
.gal-m-meta a:hover { color: #fff; }
.gal-m-prompt-wrap { display: flex; flex-direction: column; gap: 10px; }
.gal-m-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gal-m-prompt-head b { font-size: 0.92rem; color: #d7c3ff; }
.gal-m-prompt {
  margin: 0;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(109, 124, 255, 0.06);
  color: #d9e0fa;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 38vh;
  overflow-y: auto;
}
.gal-m-ref { font-size: 0.86rem; color: #e8c9a0; }
.gal-m-ref b { font-weight: 600; }
.gal-refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gal-refs img {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.gal-m-nav {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- 画廊响应式 ---------- */
@media (max-width: 1024px) {
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .gal-m-dialog { grid-template-columns: 1fr; overflow-y: auto; }
  .gal-m-media > img { max-height: 52vh; }
  .gal-m-info { overflow: visible; }
}
@media (max-width: 640px) {
  .gal-section { padding: 28px 0 68px; }
  .gal-grid { grid-template-columns: 1fr; gap: 18px; }
  .gal-toolbar { gap: 10px; }
  .gal-search-wrap { flex-basis: 100%; }
  .gal-count { flex-basis: 100%; order: 3; }
  .gal-m-dialog { max-height: calc(100vh - 24px); border-radius: 16px; }
  .gal-modal.open { padding: 12px; }
  .gal-m-info { padding: 20px 16px 16px; }
  .gal-m-prompt { max-height: 30vh; }
}

/* ---------- 移动端汉堡菜单 ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #cfd8f5;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .site-header .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 18px;
    background: #0a0f1e;
    border-bottom: 1px solid var(--line);
  }
  .site-header .nav-links.open { display: flex; }
  .site-header .nav-links a { padding: 9px 0; font-size: 1rem; width: 100%; }
  .site-header .nav-links a.nav-cta {
    margin-top: 8px;
    padding: 12px 18px;
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 首屏效果图横滑带 ---------- */
.hero-showcase {
  margin: 30px auto 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.hs-track {
  display: flex;
  width: max-content;
  animation: hs-scroll 42s linear infinite;
}
.hero-showcase:hover .hs-track { animation-play-state: paused; }
.hs-group { display: flex; gap: 14px; padding-right: 14px; }
.hs-group img {
  height: 124px;
  width: 186px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  flex: none;
}
@keyframes hs-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .hs-track { animation: none; }
}
@media (max-width: 640px) {
  .hs-group img { height: 92px; width: 136px; border-radius: 10px; }
  .hero-showcase { margin-top: 22px; }
}
