:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --text: #f5f5f0;
  --muted: #9a9a92;
  --accent: #f5c518;
  --accent-2: #ffe56a;
  --accent-dim: #b8860b;
  --line: rgba(245, 197, 24, 0.14);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Syne", "Noto Sans SC", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.5rem;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .1em;
  color: var(--accent);
}
.nav-cats {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  justify-content: flex-end;
}
.nav-cats a {
  color: var(--muted);
  font-size: .9rem;
  transition: color .2s ease;
}
.nav-cats a:hover,
.nav-cats a.is-active { color: var(--accent-2); }
.lang-toggle {
  appearance: none;
  border: 1px solid rgba(245, 197, 24, 0.4);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .22rem .55rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lang-toggle:hover {
  background: rgba(245, 197, 24, 0.12);
  border-color: rgba(245, 197, 24, 0.7);
  color: var(--accent-2);
}

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: start;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.72) 55%, #0a0a0a 100%),
    radial-gradient(800px 480px at 70% 0%, rgba(245,197,24,.28), transparent 58%),
    radial-gradient(600px 380px at 10% 40%, rgba(184,134,11,.18), transparent 55%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E"),
    linear-gradient(165deg, #1a1608, #0a0a0a 60%);
  transform: scale(1.02);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.02) translate3d(0,0,0); }
  to { transform: scale(1.05) translate3d(-1.2%, .8%, 0); }
}
.hero-inner {
  position: relative;
  padding: 2rem 1.5rem 2.25rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  animation: rise .85s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.brand-mark {
  font-family: var(--display);
  font-size: clamp(2.8rem, 10vw, 5.4rem);
  font-weight: 800;
  margin: 0;
  letter-spacing: .08em;
  line-height: .95;
  color: var(--accent);
  text-shadow: 0 10px 36px rgba(0,0,0,.45);
}
.hero-slogan {
  margin: 1rem 0 0;
  max-width: 48rem;
  font-family: var(--serif);
  font-size: clamp(1rem, 2.1vw, 1.22rem);
  font-weight: 600;
  line-height: 1.7;
  color: var(--accent-2);
  white-space: normal;
  animation: rise .9s ease .08s both;
}
.hero-lead {
  margin: .75rem 0 0;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1rem;
  animation: rise .9s ease .12s both;
}
.about-inline {
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  max-width: 46rem;
  animation: rise .9s ease .16s both;
}
.about-inline h2 {
  margin: 0 0 .85rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  letter-spacing: .04em;
  color: var(--accent);
}
.about-inline p {
  margin: 0 0 .85rem;
  color: #c8c4b8;
  font-size: .98rem;
  line-height: 1.75;
}
.about-inline p:last-child { margin-bottom: 0; }

.works-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .85rem;
}
.section-title-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
}
.section-title-divider {
  display: block;
  width: 1px;
  height: 1em;
  background: rgba(245, 197, 24, 0.28);
  flex-shrink: 0;
}
.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  white-space: nowrap;
  line-height: 1.2;
}
.works-count {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  flex-shrink: 0;
  white-space: nowrap;
}
.category-filter {
  display: inline-flex;
  align-items: center;
  margin: 0;
  flex-shrink: 1;
  min-width: 0;
}
.category-filter select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%239a9a92' d='M1 1l4 4 4-4' stroke='%239a9a92' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    right .65rem center / .55rem no-repeat,
    transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: .28rem 1.7rem .28rem .45rem;
  cursor: pointer;
  min-width: 4.5rem;
  max-width: 11rem;
  line-height: 1.3;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.category-filter select:hover,
.category-filter select:focus {
  color: var(--accent-2);
  border-color: rgba(245, 197, 24, 0.35);
  background-color: rgba(245, 197, 24, 0.06);
  outline: none;
}
.category-filter select option {
  background: var(--bg-2);
  color: var(--text);
}
.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;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.35rem;
}
.work-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.45);
}
.work-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0d1014;
}
.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.work-card:hover .work-cover img { transform: scale(1.04); }
.cover-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2.5rem;
  color: var(--accent-2);
  background: linear-gradient(145deg, #1c1808, #0a0a0a);
}
.work-meta { padding: 1rem 1.05rem 1.2rem; }
.tag {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .4rem;
}
.work-meta h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  font-weight: 650;
}
.work-meta p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: min(62vh, 560px);
  overflow: hidden;
}
.detail-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-cover.placeholder {
  background: linear-gradient(145deg, #1c1808, #0a0a0a);
}
.detail-overlay {
  position: relative;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 3rem 1.5rem 2.25rem;
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent 20%, rgba(10,10,10,.9) 78%);
  animation: rise .7s ease both;
}
.back-link {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .75rem;
  width: fit-content;
}
.detail-overlay h1 {
  margin: .35rem 0 .5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.1;
}
.detail-summary {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: #d5d0c6;
}
.detail-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.detail-block { margin-bottom: 2.25rem; }
.detail-block h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .55rem;
}
.prose {
  color: #d8d3ca;
  white-space: normal;
  max-width: 46rem;
}
.gallery {
  display: grid;
  gap: 1.25rem;
}
.gallery figure { margin: 0; }
.gallery img {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d1014;
}
.gallery figcaption {
  margin-top: .45rem;
  color: var(--muted);
  font-size: .88rem;
}

.detail-links { margin-top: 2.5rem; }
.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 46rem;
}
.info-item {
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
}
.info-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .3rem;
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
}
.copy-icon {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  vertical-align: middle;
  transition: color .15s ease, background .15s ease;
}
.copy-icon:hover {
  color: var(--accent-2);
  background: rgba(245, 197, 24, 0.12);
}
.copy-icon.is-copied { color: var(--accent); }
.info-value {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  word-break: break-all;
  line-height: 1.5;
}
.info-value.is-link {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-color: rgba(245, 197, 24, 0.45);
}
.info-value.is-link:hover {
  color: #ffe56a;
  text-decoration-color: rgba(255, 229, 106, 0.8);
}
.muted { color: var(--muted); font-size: .85rem; word-break: break-all; }

.empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
}
.empty a { color: var(--accent-2); }

/* —— 全站页脚客服（对齐 TG背靠背） —— */
.site-footer {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 2rem;
  color: var(--muted);
  font-size: .88rem;
}
.site-footer.is-empty { margin-top: 1.5rem; }
.site-footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  padding: 1.15rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(245, 197, 24, 0.18);
  background:
    linear-gradient(135deg, rgba(20, 20, 20, 0.96), rgba(12, 12, 12, 0.94)),
    radial-gradient(420px 160px at 0% 0%, rgba(245, 197, 24, 0.12), transparent 70%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.site-footer-copy { min-width: 8rem; }
.site-footer-kicker {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .9;
}
.site-footer-lead {
  margin: .2rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
}
.site-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  justify-content: flex-end;
  flex: 1 1 auto;
}
.support-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: .55rem .7rem .55rem .6rem;
  min-width: min(248px, 100%);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.support-btn-tg {
  background: linear-gradient(160deg, rgba(14, 116, 144, 0.28), rgba(8, 14, 20, 0.55));
  border-color: rgba(56, 189, 248, 0.28);
  box-shadow: 0 6px 16px rgba(14, 116, 144, 0.14);
}
.support-btn-wa {
  background: linear-gradient(160deg, rgba(22, 163, 74, 0.26), rgba(8, 14, 20, 0.55));
  border-color: rgba(74, 222, 128, 0.26);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.12);
}
.support-btn:hover { transform: translateY(-2px); }
.support-btn-tg:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 22px rgba(14, 116, 144, 0.22);
}
.support-btn-wa:hover {
  border-color: rgba(74, 222, 128, 0.48);
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.2);
}
.support-btn:active { transform: translateY(0); }
.support-btn-icon {
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.support-btn-tg .support-btn-icon {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
}
.support-btn-wa .support-btn-icon {
  background: linear-gradient(145deg, #4ade80, #16a34a);
}
.support-btn-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .08rem;
}
.support-btn-name {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.support-btn-tg .support-btn-name { color: #7dd3fc; }
.support-btn-wa .support-btn-name { color: #86efac; }
.support-btn-num {
  font-family: var(--display);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: -.01em;
  word-break: break-all;
  line-height: 1.25;
  color: var(--text);
}
.support-btn-cta {
  flex: 0 0 auto;
  align-self: center;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  padding: .28rem .5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}
.support-btn:hover .support-btn-cta {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}
.support-toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%) translateY(8px);
  z-index: 50;
  background: rgba(20, 33, 43, 0.92);
  color: #fff;
  padding: .6rem 1.05rem;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 12px 32px rgba(20, 33, 43, 0.24);
  pointer-events: none;
  animation: toast-in .25s ease both;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(14px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.footer-meta {
  display: none;
}

/* —— 平板 —— */
@media (max-width: 960px) {
  .site-header {
    padding: .75rem 1.1rem;
    gap: .75rem;
  }
  .hero-inner,
  .works-section,
  .detail-body,
  .detail-overlay,
  .site-footer {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
  .work-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .detail-hero {
    min-height: min(48vh, 420px);
  }
}

/* —— 手机 —— */
@media (max-width: 720px) {
  body {
    -webkit-text-size-adjust: 100%;
  }
  .site-header {
    flex-wrap: wrap;
    align-items: center;
    padding: .7rem .9rem;
    gap: .55rem .75rem;
  }
  .brand {
    font-size: 1.05rem;
    letter-spacing: .06em;
  }
  .nav-cats {
    width: 100%;
    justify-content: flex-start;
    gap: .35rem .65rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .15rem;
    scrollbar-width: none;
  }
  .nav-cats::-webkit-scrollbar { display: none; }
  .nav-cats a,
  .lang-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: .85rem;
  }
  .lang-toggle {
    margin-left: auto;
  }

  .hero-inner {
    padding: 1.35rem .9rem 1.6rem;
  }
  .brand-mark {
    font-size: clamp(2.2rem, 14vw, 3.2rem);
    letter-spacing: .04em;
  }
  .hero-slogan {
    margin-top: .75rem;
    font-size: .95rem;
    line-height: 1.65;
  }
  .hero-lead {
    font-size: .92rem;
  }
  .about-inline {
    margin-top: 1.25rem;
    padding-top: 1.1rem;
  }
  .about-inline p {
    font-size: .92rem;
    line-height: 1.7;
  }

  .works-section {
    padding: 1.5rem .9rem 2.5rem;
  }
  .section-head {
    flex-wrap: nowrap;
    gap: .65rem;
    margin-bottom: 1rem;
  }
  .section-title-row {
    gap: .55rem;
    overflow: hidden;
  }
  .section-head h2 { font-size: 1.15rem; }
  .category-filter select {
    font-size: .8rem;
    min-width: 0;
    max-width: 7.5rem;
    padding: .22rem 1.5rem .22rem .35rem;
  }
  .works-count { font-size: .82rem; }
  .work-grid {
    grid-template-columns: 1fr;
    gap: .9rem;
  }
  .work-meta { padding: .9rem .95rem 1.05rem; }
  .work-card:hover { transform: none; }

  .detail-hero {
    min-height: min(42vh, 320px);
  }
  .detail-overlay {
    padding: 2rem .9rem 1.35rem;
  }
  .detail-overlay h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .detail-body {
    padding: 1.35rem .9rem 2.5rem;
  }
  .detail-block h2 { font-size: 1.05rem; }
  .info-value { font-size: .85rem; }

  .site-footer {
    margin-top: 1.5rem;
    padding: 0 .9rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
  .site-footer-bar {
    flex-direction: column;
    align-items: stretch;
    padding: .95rem;
    gap: .85rem;
    border-radius: 14px;
  }
  .site-footer-actions {
    justify-content: stretch;
    flex-direction: column;
  }
  .support-btn {
    min-width: 0;
    width: 100%;
    padding: .55rem .55rem .55rem .5rem;
    gap: .55rem;
  }
  .support-btn-cta {
    font-size: .68rem;
    padding: .25rem .4rem;
  }
  .support-btn-num {
    font-size: .9rem;
  }
  .support-toast {
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    transform: none;
    text-align: center;
    max-width: none;
    width: auto;
  }
  @keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* —— 超小屏 —— */
@media (max-width: 380px) {
  .support-btn {
    flex-wrap: wrap;
  }
  .support-btn-cta {
    width: 100%;
    text-align: center;
    margin-top: .15rem;
  }
  .brand-mark {
    font-size: 2rem;
  }
}
