/* ============================================================
   Info 个人静态网站 - 全局样式
   风格: 极简平面 / 直角 / 柔和浅灰背景 / 科技感微动效
   使用前请全局搜索替换占位符: 你的名字、your@email.com 等
   ============================================================ */

:root {
  --bg: #f7f8fa;            /* 页面背景: 柔和浅灰（与交替段同色） */
  --bg-soft: #eef0f3;       /* 次级背景 */
  --bg-faint: #ffffff;      /* 白色: 详情页图文交替段 */
  --card: #ffffff;          /* 卡片背景 */
  --text: #1f2329;          /* 主文字 */
  --text-2: #5a6072;        /* 次级文字 */
  --text-3: #8a90a0;        /* 弱文字 */
  --primary: #2563eb;       /* 主色: 科技蓝 */
  --primary-dark: #1e40af;
  --accent: #06b6d4;        /* 强调色: 青色 */
  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --border: #e3e6ea;
  --radius: 2px;            /* 直角微圆角 */
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 4px 8px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .10);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Courier New", monospace;
}

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

html { scroll-behavior: smooth; }

html, body { min-height: 100vh; }

body {
  font-family: var(--font);
  /* 全站内容区统一浅灰底：取消各页白/灰色段交替 */
  background: var(--bg-faint);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

::selection { background: rgba(37, 99, 235, .18); }

/* ---------- 占位符提示(全局可搜索替换) ---------- */
.ph {
  border-bottom: 2px dashed var(--accent);
  color: var(--primary);
  font-weight: 600;
  cursor: help;
}
.ph:hover::after {
  content: " 待替换";
  font-size: .72em;
  color: var(--text-3);
  font-weight: 400;
}

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 68px;
}
.nav-logo {
  font-size: 24px; font-weight: 800; letter-spacing: .5px;
  color: var(--text); display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-img {
  height: 36px; width: auto; display: block; flex: none;
}
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  color: var(--text-2); padding: 8px 14px; font-size: 16px;
  border-radius: var(--radius); position: relative;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--primary);
}
/* nav-cta 只负责定位，样式完全继承 .btn.btn-primary */
.nav-cta {
  margin-left: 10px; font-size: 16px;
}

/* ---------- 透明导航（首页叠加在 banner 背景图上） ---------- */
.nav--overlay {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent; backdrop-filter: none; border-bottom: none;
}
.nav--overlay .nav-logo { color: #fff; }
.nav--overlay .nav-links a { color: rgba(255, 255, 255, .85); }
.nav--overlay .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav--overlay .nav-links a.active { color: #fff; }
.nav--overlay .nav-links a.active::after { background: #fff; }
/* 滚动后切换深蓝底，与 hero 颜色一致 */
.nav--overlay.scrolled {
  background: #09182c; backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav--overlay.scrolled .nav-logo { color: #fff; }
.nav--overlay.scrolled .nav-links a { color: rgba(255, 255, 255, .85); }
.nav--overlay.scrolled .nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav--overlay.scrolled .nav-links a.active { color: #fff; }
.nav--overlay.scrolled .nav-links a.active::after { background: #fff; }
/* 确保透明导航下 nav-cta（支持作者按钮）样式与 btn-primary 完全一致，不被 overlay 选择器覆盖 */
.nav--overlay .nav-cta,
.nav--overlay.scrolled .nav-cta { color: #fff !important; }
.nav--overlay .nav-cta:hover,
.nav--overlay.scrolled .nav-cta:hover {
  background: var(--primary-dark) !important; color: #fff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .28) !important;
}

/* ---------- 布局容器 ---------- */
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  /* 默认: 首页 hero(左右分栏, 内容较多) */
  padding: 108px 0 64px;
  position: relative; overflow: hidden;
  color: #fff;
  /* banner 背景图（可替换 assets/img/banner.jpg 为任意宽幅图） */
  background:
    linear-gradient(180deg, rgba(10, 20, 40, .60), rgba(10, 20, 40, .35)),
    url("../img/banner.jpg") center 20% / cover no-repeat;
}
/* 次页 hero(works/donate/contact, 内容少): 与首页视觉对齐, 高度更紧凑统一 */
.hero--page {
  /* 固定 banner 高度 + 垂直居中：三页高度一致，不随 desc 折行数变化 */
  padding: 0;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.hero--page .container { width: 100%; }
.hero--page .section-head { margin-bottom: 0; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 260px at 12% -10%, rgba(6, 182, 212, .16), transparent 60%),
    radial-gradient(700px 300px at 90% 0%, rgba(37, 99, 235, .18), transparent 60%);
}
.hero-inner { position: relative; display: flex; gap: 48px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hero-content { flex: 1 1 46%; min-width: 300px; text-align: left; }
.hero-slideshow {
  flex: 0 0 46%; max-width: 520px; min-width: 300px;
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  grid-template-rows: 1fr auto;
  gap: 0 10px;
  align-items: center;
}
.slideshow-track {
  grid-column: 2; grid-row: 1;
  position: relative; width: 100%;
  aspect-ratio: 3/2;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,20,40,.45);
}
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-arrow {
  grid-row: 1;
  width: 36px; height: 36px; border: none; border-radius: var(--radius);
  background: rgba(255,255,255,.18); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transition: opacity .2s, background .2s;
  position: static; transform: none;
}
.hero-slideshow:hover .slide-arrow { opacity: 1; }
.slide-arrow:hover { background: rgba(255,255,255,.32); }
.slide-arrow.prev { grid-column: 1; justify-self: center; }
.slide-arrow.next { grid-column: 3; justify-self: center; }
.slide-dots {
  grid-column: 2; grid-row: 2;
  display: flex; gap: 8px;
  justify-content: center;
  margin-top: 12px;
  position: static; transform: none;
}
.slide-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s;
}
.slide-dots button.active { background: #fff; }
.hero h1 {
  font-size: 36px; font-weight: 500; line-height: 1.35; letter-spacing: .5px;
  white-space: nowrap;
}
.hero .tagline {
  margin-top: 12px; font-size: 18px; color: rgba(255, 255, 255, .88);
  border-left: 3px solid var(--accent); padding-left: 12px;
}
.hero-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block; padding: 4px 12px; font-size: 13px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  color: rgba(255, 255, 255, .9); border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.tag.hl { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); color: #fff; }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
/* 非首页 hero 内的 section-head 文字颜色适配深色背景 */
.hero .section-head .kicker { color: var(--accent); }
.hero .section-head h2,
.hero .section-head h1 { color: #fff; }
.hero .section-head .desc { color: rgba(255, 255, 255, .82); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px; font-size: 15px; font-weight: 600;
  border-radius: var(--radius); cursor: pointer; border: 1px solid transparent;
  transition: all .2s; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, .28); }
.btn-ghost { background: var(--card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #0891b2; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(6, 182, 212, .28); }

/* ---------- 区块 ---------- */
.section { padding: 64px 0; background: var(--bg-faint); }
.section-head { margin-bottom: 36px; }
.section-head .kicker {
  font-family: var(--mono); font-size: 13px; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
}
.section-head h2 { margin-top: 6px; font-size: 28px; font-weight: 800; }
.section-head .desc { margin-top: 10px; color: var(--text-2); max-width: 620px; }
.section.alt { background: var(--bg-faint); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---------- 作品网格 ---------- */
.grid-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.work-card-link {
  display: flex; flex-direction: column; flex: 1;
  color: inherit; text-decoration: none;
}
.work-card-link:hover { color: inherit; }
.work-card-link:hover h3 { color: var(--primary); }
.work-card-link:hover .work-links span { color: var(--primary); }
.work-thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 44px; color: #fff; position: relative;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}
.work-thumb .thumb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.work-thumb .logo-thumb {
  object-fit: contain; padding: 30px;
}
.work-thumb.t2 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.work-thumb.t3 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.work-thumb.t4 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.work-thumb .platform {
  position: absolute; right: 10px; bottom: 10px;
  font-size: 11px; font-family: var(--mono);
  background: rgba(0,0,0,.35); padding: 2px 8px; border-radius: var(--radius);
}
.work-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 15px; font-weight: 700; white-space: nowrap; }
.work-body p { margin-top: 8px; color: var(--text-2); font-size: 14px; flex: 1; }
.work-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-tags span {
  font-size: 12px; padding: 2px 10px; background: var(--bg-soft);
  color: var(--text-2); border-radius: var(--radius); font-family: var(--mono);
}
.work-links { margin-top: 16px; display: flex; justify-content: center; gap: 16px; font-size: 14px; font-weight: 600; }
.work-links a,
.work-links span { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); }
.work-links a:hover { color: var(--accent); }

/* ---------- 核心能力 / 适用场景 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.feature-card h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.feature-card h3::before { content: ''; width: 4px; height: 16px; background: var(--primary); border-radius: 2px; flex: none; }
.feature-card p { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.feature-list { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 32px; }
.feature-list li { list-style: none; position: relative; padding-left: 20px; color: var(--text-2); font-size: 15px; }
.feature-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); }

/* ---------- 赞助区块 ---------- */
.donate-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.donate-card { padding: 28px 24px; text-align: center; }
.donate-card .icon { font-size: 36px; }
.donate-card h3 { margin-top: 12px; font-size: 17px; font-weight: 700; }
.donate-card p { margin-top: 8px; color: var(--text-2); font-size: 14px; min-height: 44px; }
.qr-box {
  width: 180px; height: 180px; margin: 18px auto 0;
  border: 2px dashed var(--border); background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 13px; border-radius: var(--radius);
  transition: border-color .2s;
}
.qr-box:hover { border-color: var(--primary); color: var(--primary); }
.donate-note {
  margin-top: 28px; padding: 16px 20px;
  background: rgba(6, 182, 212, .07); border-left: 3px solid var(--accent);
  font-size: 13.5px; color: var(--text-2); border-radius: 0 var(--radius) var(--radius) 0;
}

/* ---------- 联系方式：单卡片 ---------- */
.contact-card { padding: 44px; }
.contact-card-inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 860px) { .contact-card-inner { grid-template-columns: 1fr; } }
.contact-card-items { display: flex; flex-direction: column; gap: 16px; }
.contact-card-qr { text-align: center; border-left: 1px solid var(--border); padding-left: 44px; }
@media (max-width: 860px) {
  .contact-card-qr {
    border-left: none; padding-left: 0;
    border-top: 1px solid var(--border); padding-top: 28px;
  }
}
.contact-card-qr h3 { font-size: 16px; font-weight: 700; }
.contact-card-qr img {
  width: 200px; height: 200px; margin: 16px auto 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 6px;
}
.contact-item {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 18px 22px; border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.contact-item:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: var(--primary); }
.contact-item .ci-icon {
  flex: none; width: 46px; height: 46px; font-size: 22px;
  background: var(--card); display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); border: 1px solid var(--border);
}
.contact-item .ci-label { font-size: 12px; color: var(--text-3); }
.contact-item .ci-value { font-size: 15px; font-weight: 600; color: var(--text); word-break: break-all; }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  border-radius: var(--radius); color: #fff;
  padding: 44px 48px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-lg);
}
.cta-banner h2 { font-size: 24px; font-weight: 800; }
.cta-banner p { margin-top: 6px; opacity: .9; font-size: 14.5px; }
.btn-white {
  background: #fff; color: var(--primary) !important; padding: 12px 28px;
  font-weight: 700; border-radius: var(--radius);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }

/* ---------- 页脚 ---------- */
.footer { margin-top: auto; border-top: none; background: #e5e7eb; padding: 18px 0 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .brand { font-weight: 800; display: flex; align-items: center; gap: 8px; }
.footer .brand .footer-logo-img { height: 24px; width: auto; }
.footer .brand .logo-dot { width: 8px; height: 8px; background: var(--primary); box-shadow: 6px 0 0 -2px var(--accent); }
.donate-card img.qr-img { width: 180px; height: 180px; margin: 18px auto 0; display: block; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 6px; object-fit: contain; }
.donate-msg-btn { margin: 16px auto 0; display: inline-flex; padding: 8px 20px; font-size: 14px; }
.footer .copy { font-size: 13px; color: var(--text-3); }
.footer .links { display: flex; gap: 16px; font-size: 13px; }
.footer .links a { color: var(--text-3); }
.footer .links a:hover { color: var(--primary); }

/* ---------- 作品详情页：图文交替块 ---------- */
.work-block { padding: 64px 0; }
.work-block--white { background: var(--bg-faint); }
.work-block--gray { background: var(--bg-faint); }
.work-block-inner { max-width: 100%; }
.work-block-inner p, .work-block-inner ul, .work-block-inner .notice { max-width: 100%; }
.work-block h2 { font-size: 21px; font-weight: 800; margin-top: 28px; }
.work-block h2:first-child { margin-top: 0; }
.work-block p,
.work-block ul { margin-top: 12px; color: var(--text-2); font-size: 15px; line-height: 1.9; }
.work-block ul { padding-left: 20px; }
.work-block li { margin-top: 8px; }
.work-block li b { color: var(--text); }
.work-block-media img {
  width: 100%; max-width: 760px; margin: 0 auto; display: block;
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); background: #fff;
}
.work-block-media img.logo-media {
  max-width: 320px; padding: 36px; object-fit: contain;
}

/* ---------- 提示条 ---------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: none;
  border-left: 3px solid var(--primary);
  background: transparent;
  padding: 4px 0 4px 16px;
  border-radius: 0;
  margin: 14px 0;
}
.notice-label {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(59, 130, 246, .08);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 0;
  margin-top: 1px;
}
.notice p {
  flex: 1 1 auto;
  margin: 0 !important;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.work-block-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.work-block-tags span {
  font-size: 12px; padding: 3px 12px; background: #fff;
  color: var(--text-2); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--mono);
}
.work-block-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }
.work-block-actions .btn { padding: 10px 22px; font-size: 14px; }

/* ---------- 滚动渐入动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 空状态 / 提示 ---------- */
/* .notice 样式已统一在上方「提示条」section 定义，此处保留 .notice.info 备用 */
.notice.info { background: rgba(37, 99, 235, .06); border-color: rgba(37, 99, 235, .25); color: var(--primary-dark); }

/* ---------- 图片灯箱 Lightbox ---------- */
/* 包裹层：宽度由 JS 同步为图片实际渲染宽度，保证遮罩/图标精确贴合 */
.zoomable {
  position: relative;
  display: block;
  margin: 0 auto;
  line-height: 0;
  cursor: pointer;
}
.zoomable > img {
  pointer-events: none;
}

/* 悬停半透明遮罩 */
.zoomable::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(16, 24, 40, .30);
  border-radius: var(--radius);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none;
}
/* 悬停放大图标 */
.zoomable::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f2329' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20.5 20.5L16.7 16.7'/%3E%3Cpath d='M11 8.2v5.6'/%3E%3Cpath d='M8.2 11h5.6'/%3E%3C/svg%3E")
    center / 26px 26px no-repeat;
  box-shadow: 0 2px 12px rgba(16, 24, 40, .28);
  opacity: 0; transform: scale(.82);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none; z-index: 2;
}
.zoomable:hover::after, .zoomable:focus-visible::after { opacity: 1; }
.zoomable:hover::before, .zoomable:focus-visible::before { opacity: 1; transform: scale(1); }

/* 灯箱遮罩层 */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  display: none; align-items: center; justify-content: center;
  padding: 40px;
  background: rgba(16, 24, 40, .86);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .22s ease;
}
.lightbox.open { display: flex; }
.lightbox.visible { opacity: 1; }
.lightbox .lb-img {
  max-width: 96vw; max-height: 88vh;
  width: auto; height: auto;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .2s ease;
}
.lightbox .lb-img.ready { opacity: 1; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 22px;
  width: 40px; height: 40px; line-height: 38px;
  text-align: center; font-size: 26px;
  color: #fff; background: rgba(255, 255, 255, .12);
  border: none; border-radius: 50%; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .26); transform: rotate(90deg); }
.lightbox .lb-cap {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; font-size: 13px; color: rgba(255, 255, 255, .72);
  pointer-events: none; padding: 0 24px;
}
.lightbox .lb-loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, .8); font-size: 14px; letter-spacing: .05em;
}
body.lb-open { overflow: hidden; }

/* ---------- 响应式 ---------- */
@media (max-width: 720px) {
  .hero { padding: 96px 0 56px; }
  .hero--page { padding: 0; min-height: 260px; }
  .work-block { padding: 44px 0; }
  .contact-card { padding: 28px; }
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-content, .hero-slideshow { flex: 1 1 100%; max-width: none; }
  .hero-slideshow { order: -1; margin-bottom: 24px; }
  .hero .tagline { border-left: none; padding-left: 0; }
  .hero-tags, .hero-actions { justify-content: center; }
  .hero h1 { font-size: 24px; white-space: normal; }
  .nav-links a { padding: 8px 10px; font-size: 14px; }
  .nav-logo { font-size: 20px; }
  .nav-logo .logo-img { height: 30px; }
  .nav-cta { padding: 8px 12px !important; font-size: 14px; }
  .cta-banner { padding: 32px 24px; justify-content: center; text-align: center; }
  .lightbox { padding: 14px; }
  .lightbox .lb-img { max-width: 97vw; max-height: 82vh; }
  .lightbox .lb-close { top: 10px; right: 12px; }
}
