/* ============================================
   作品集网站 — 药剂房美学 + Museumcore v2
   字体: Cormorant Garamond / EB Garamond
   质感: 暖奶油底色 + 纸张纤维纹理
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #fffef2;
  color: #333333;
  font-family: 'EB Garamond', 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  position: relative;
}

/* 纸张纤维纹理 */
.paper-texture {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 512px 512px;
}

/* ---------- Typography ---------- */
h1, h2, h3, .section-title, .hero-title, .entry-title, .nav-logo {
  font-family: 'Cormorant Garamond', 'Georgia', 'Times New Roman', serif;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #333333;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.4s ease;
}

a:hover {
  color: #945c26;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px 48px;
  mix-blend-mode: difference;
  color: #fffef2;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, color 0.3s ease, border-bottom 0.3s ease, box-shadow 0.3s ease;
}

.nav.scrolled {
  background: rgba(255, 254, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #333333;
  mix-blend-mode: normal;
  border-bottom: 1px solid rgba(51, 51, 51, 0.08);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.nav-logo {
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: inherit;
}

.nav-logo:hover {
  color: inherit;
  opacity: 0.7;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* 仅在滚动后高亮当前板块 */
.nav.scrolled .nav-links a.active {
  opacity: 1;
  color: #945c26;
}

.nav-divider {
  width: 12px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

/* ---------- Hero — 不对称布局 ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  background: #2a2520;
  color: #fffef2;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    #2a2520 0%,
    #3a3228 30%,
    #2a2520 60%,
    #1a1510 100%
  );
  z-index: 0;
}

/* 胶片噪点纹理 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
}

/* FOLIO 背后的弥散渐变椭圆 */
.hero-folio-bg {
  position: absolute;
  z-index: 0;
  width: 580px;
  height: 280px;
  bottom: 14%;
  right: 4%;
  background: radial-gradient(ellipse at center, rgba(255, 254, 242, 0.18) 0%, rgba(255, 254, 242, 0.05) 40%, transparent 68%);
  filter: blur(32px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 120px 72px 100px;
  opacity: 0;
  animation: heroFadeIn 1.6s ease forwards;
  animation-delay: 0.3s;
}

.hero-port-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.hero-port {
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #fffef2;
  line-height: 0.9;
}

.hero-line {
  width: 200px;
  height: 1px;
  background: #fffef2;
  opacity: 0.35;
  margin: 20px 0 16px 4px;
}

.hero-sub {
  font-size: 1.15rem;
  letter-spacing: 0.18em;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-weight: 400;
  color: #fffef2;
  opacity: 0.5;
  text-transform: lowercase;
  margin-left: 4px;
}

.hero-folio-group {
  padding-bottom: 8px;
}

.hero-folio {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 254, 242, 0.55);
  text-stroke: 1px rgba(255, 254, 242, 0.55);
  line-height: 0.9;
  position: relative;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease infinite;
}

.scroll-arrow {
  display: block;
  width: 1px;
  height: 30px;
  background: #fffef2;
  opacity: 0.3;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 6px;
  height: 6px;
  border-right: 1px solid #fffef2;
  border-bottom: 1px solid #fffef2;
  transform: translateX(-50%) rotate(45deg);
  opacity: 0.3;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- Entries ---------- */
.entries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 280px;
  border-bottom: 1px solid rgba(51, 51, 51, 0.12);
}

.entry-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px;
  text-align: center;
  transition: background 0.5s ease;
  border-right: 1px solid rgba(51, 51, 51, 0.08);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.entry-card:last-child { border-right: none; }

.entry-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(148, 92, 38, 0.06) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.entry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.entry-photo::after {
  background: radial-gradient(ellipse at 30% 50%, rgba(148, 92, 38, 0.5) 0%, transparent 70%);
}

.entry-film::after {
  background: radial-gradient(ellipse at 30% 50%, rgba(100, 110, 130, 0.5) 0%, transparent 70%);
}

.entry-ai::after {
  background: radial-gradient(ellipse at 30% 50%, rgba(130, 100, 160, 0.5) 0%, transparent 70%);
}

.entry-card:hover::before {
  opacity: 1;
}

.entry-card:hover::after {
  opacity: 0.08;
}

.entry-card:hover {
  background: rgba(148, 92, 38, 0.03);
  color: #333333;
}

.entry-label {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #945c26;
  margin-bottom: 16px;
  opacity: 0.7;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.entry-card:hover .entry-label {
  transform: translateY(-4px);
  opacity: 1;
}

.entry-title {
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: #333333;
  transition: transform 0.4s ease;
}

.entry-card:hover .entry-title {
  transform: translateY(-2px);
}

.entry-line {
  width: 20px;
  height: 1px;
  background: #945c26;
  transition: width 0.4s ease;
}

.entry-card:hover .entry-line { width: 40px; }

/* ---------- Sections ---------- */
.section {
  padding: 120px 48px;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.section + .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148, 92, 38, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.6s ease;
}

.section + .section.revealed::before {
  opacity: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-num {
  display: block;
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: #945c26;
  margin-bottom: 16px;
  opacity: 0.6;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.section-line {
  width: 30px;
  height: 1px;
  background: #945c26;
  margin: 0 auto;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-tag {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  padding: 8px 20px;
  border: 1px solid rgba(51, 51, 51, 0.15);
  border-radius: 0;
  background: transparent;
  color: #666666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-tag:hover {
  color: #945c26;
  border-color: #945c26;
}

.filter-tag.active {
  background: #945c26;
  color: #fffef2;
  border-color: #945c26;
}

/* ---------- Film Grid ---------- */
.film-grid {
  display: grid;
  gap: 2px;
  background: rgba(51, 51, 51, 0.06);
}

.film-grid-vertical {
  grid-template-columns: repeat(4, 1fr);
}

.film-item {
  background: #fffef2;
  transition: background 0.4s ease;
}

.film-item:hover {
  background: rgba(148, 92, 38, 0.03);
}

.film-thumb {
  aspect-ratio: 9 / 16;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  transition: transform 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

.film-item:hover .film-thumb {
  transform: scale(1.01);
}

.film-thumb video,
.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-placeholder-text {
  text-align: center;
  padding: 20px;
  opacity: 0.5;
  line-height: 1.5;
}

.film-info {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.film-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.film-tag {
  font-size: 0.65rem;
  color: #945c26;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- Photo Masonry ---------- */
.photo-masonry {
  columns: 3;
  column-gap: 2px;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 2px;
  background: #fffef2;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.photo-item.filtered-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.photo-item:hover {
  background: rgba(148, 92, 38, 0.03);
}

.photo-placeholder {
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  transition: transform 0.4s ease;
  cursor: pointer;
  overflow: hidden;
  line-height: 0;
}

.photo-item:hover .photo-placeholder {
  transform: scale(1.01);
}

.photo-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-info {
  padding: 14px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.photo-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.photo-tag {
  font-size: 0.65rem;
  color: #945c26;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- AI Grid (2 列居中) ---------- */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(51, 51, 51, 0.06);
  max-width: 50%;
  margin: 0 auto;
}

.ai-item {
  background: #fffef2;
  transition: background 0.4s ease;
}

.ai-item:hover {
  background: rgba(148, 92, 38, 0.03);
}

.ai-thumb {
  aspect-ratio: 9 / 16;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  transition: transform 0.4s ease;
  cursor: pointer;
  overflow: hidden;
}

.ai-item:hover .ai-thumb {
  transform: scale(1.01);
}

.ai-thumb img,
.ai-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ai-placeholder-text {
  text-align: center;
  padding: 20px;
  opacity: 0.5;
}

.ai-info {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.ai-tag {
  font-size: 0.65rem;
  color: #945c26;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

/* ---------- About ---------- */
.about {
  border-top: 1px solid rgba(51, 51, 51, 0.12);
}

.about-content {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.4rem;
  line-height: 1.8;
  margin-bottom: 12px;
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-style: italic;
  letter-spacing: 0.06em;
  color: #333333;
}

.about-text-secondary {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 40px;
}

.about-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding-top: 20px;
  position: relative;
}

.contact-divider {
  width: 24px;
  height: 1px;
  background: rgba(51, 51, 51, 0.12);
  margin: 0 16px;
}

.contact-link {
  display: inline-block;
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 24px 12px;
  border: 1px solid #945c26;
  color: #945c26;
  transition: all 0.4s ease;
  border-radius: 0;
  cursor: pointer;
  background: none;
}

.contact-link:hover {
  background: #945c26;
  color: #fffef2;
}

/* 微信按钮 */
.wechat-btn {
  position: relative;
}

.wechat-tooltip {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: #945c26;
  opacity: 0;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  pointer-events: none;
}

.wechat-tooltip.show {
  opacity: 1;
}

/* ---------- 微信弹窗 ---------- */
.wechat-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.wechat-modal.active {
  display: flex;
}

.wechat-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(42, 37, 32, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.wechat-modal-card {
  position: relative;
  background: #fffef2;
  border: 1px solid rgba(148, 92, 38, 0.2);
  padding: 48px 40px 36px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  animation: wechatFadeIn 0.4s ease;
}

@keyframes wechatFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wechat-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: rgba(42, 37, 32, 0.35);
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
  padding: 4px;
}

.wechat-modal-close:hover {
  color: #945c26;
}

.wechat-modal-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border: 1px solid rgba(148, 92, 38, 0.15);
  padding: 8px;
  background: #fff;
}

.wechat-modal-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.wechat-modal-id {
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: #2a2520;
  margin: 0 0 8px;
}

.wechat-modal-hint {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(42, 37, 32, 0.4);
  margin: 0;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px;
  background: #2a2520;
  color: rgba(255, 254, 242, 0.4);
  text-align: center;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  font-family: 'EB Garamond', 'Georgia', serif;
}

.footer-divider { opacity: 0.3; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(42, 37, 32, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 48px;
  background: none;
  border: none;
  color: #fffef2;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  font-family: inherit;
  line-height: 1;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fffef2;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 1001;
  opacity: 0.4;
  transition: opacity 0.3s ease;
  padding: 20px;
  font-family: inherit;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

.lightbox-content {
  max-width: 85vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-caption {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 254, 242, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
}

/* 灯箱计数器 */
.lightbox-counter {
  position: fixed;
  top: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 254, 242, 0.35);
  font-family: 'EB Garamond', 'Georgia', serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  z-index: 1001;
  pointer-events: none;
}

/* 灯箱缩略图导航条 */
.lightbox-thumbs {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 1001;
  max-width: 80vw;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.lightbox-thumbs::-webkit-scrollbar {
  display: none;
}

.lightbox-thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 254, 242, 0.15);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  opacity: 0.4;
  background: rgba(42, 37, 32, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-thumb:hover {
  border-color: rgba(255, 254, 242, 0.4);
  opacity: 0.7;
}

.lightbox-thumb.active {
  border-color: #945c26;
  opacity: 1;
}

.lightbox-thumb img,
.lightbox-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .entries {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .entry-card {
    border-right: none;
    border-bottom: 1px solid rgba(51, 51, 51, 0.08);
    padding: 60px 40px;
  }

  .hero-content {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 80px 40px 60px;
  }

  /* PORT + FOLIO 紧挨，line+cll 放下面 */
  .hero-port-group {
    display: contents;
  }

  .hero-port {
    order: 1;
  }

  .hero-folio-group {
    order: 2;
    padding-bottom: 0;
  }

  .hero-line {
    order: 3;
    margin: 16px 0 12px 0;
  }

  .hero-sub {
    order: 4;
    margin-left: 0;
  }

  .hero-folio-bg {
    width: 380px;
    height: 180px;
    bottom: 22%;
    right: 50%;
    transform: translateX(50%);
  }

  .film-grid-vertical {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-masonry {
    columns: 2;
  }

  .ai-grid {
    max-width: 100%;
  }

  .section {
    padding: 80px 32px;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.68rem;
  }

  .nav-divider { width: 6px; }

  .hero-content {
    padding: 60px 24px 40px;
    gap: 0;
  }

  .hero-port {
    font-size: 3rem;
    order: 1;
  }

  .hero-folio {
    font-size: 2.5rem;
  }

  .hero-folio-group {
    order: 2;
  }

  .hero-line {
    order: 3;
    width: 120px;
  }

  .hero-sub {
    order: 4;
    font-size: 0.9rem;
  }

  .hero-folio-bg {
    width: 260px;
    height: 120px;
  }

  .film-grid-vertical {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-masonry {
    columns: 1;
  }

  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .filter-bar {
    gap: 8px;
  }

  .filter-tag {
    font-size: 0.7rem;
    padding: 6px 14px;
  }

  .about-contact {
    flex-direction: column;
    gap: 12px;
  }

  .contact-divider {
    width: 20px;
    height: 1px;
    margin: 4px 0;
  }

  /* 灯箱移动端 */
  .lightbox-close {
    top: 20px;
    right: 24px;
    font-size: 1.6rem;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 12px;
    font-size: 1.2rem;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-content {
    max-width: 92vw;
    max-height: 70vh;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-height: 70vh;
  }

  .lightbox-counter {
    top: 24px;
    font-size: 0.65rem;
  }

  .lightbox-caption {
    bottom: 90px;
    font-size: 0.7rem;
  }

  .lightbox-thumbs {
    bottom: 20px;
    gap: 4px;
  }

  .lightbox-thumb {
    width: 36px;
    height: 36px;
  }
}

/* ---------- 手机竖屏 (≤480px) ---------- */
@media (max-width: 480px) {
  .nav {
    padding: 16px 16px;
  }

  .nav-logo {
    font-size: 1.1rem;
  }

  .nav-links {
    gap: 6px;
    font-size: 0.6rem;
  }

  .nav-divider {
    width: 4px;
    margin: 0 2px;
  }

  .hero {
    min-height: 500px;
  }

  .hero-content {
    padding: 40px 20px 30px;
    gap: 0;
  }

  .hero-port {
    font-size: 2.4rem;
    letter-spacing: 0.12em;
    order: 1;
  }

  .hero-folio-group {
    order: 2;
  }

  .hero-folio {
    font-size: 2rem;
    letter-spacing: 0.12em;
    -webkit-text-stroke: 0.8px rgba(255, 254, 242, 0.5);
  }

  .hero-folio-bg {
    width: 200px;
    height: 100px;
    bottom: 26%;
    filter: blur(24px);
  }

  .hero-line {
    width: 80px;
    margin: 10px 0 8px 0;
    order: 3;
  }

  .hero-sub {
    font-size: 0.8rem;
    order: 4;
  }

  .hero-scroll-hint {
    bottom: 24px;
  }

  .scroll-arrow {
    height: 22px;
  }

  .entries {
    min-height: auto;
  }

  .entry-card {
    padding: 40px 24px;
  }

  .entry-label {
    font-size: 0.65rem;
    margin-bottom: 10px;
  }

  .entry-title {
    font-size: 1.3rem;
    margin-bottom: 16px;
  }

  .section {
    padding: 48px 16px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-num {
    font-size: 0.65rem;
    margin-bottom: 10px;
  }

  .filter-bar {
    gap: 6px;
    margin-bottom: 32px;
  }

  .filter-tag {
    font-size: 0.65rem;
    padding: 5px 12px;
  }

  .film-grid-vertical {
    grid-template-columns: repeat(2, 1fr);
  }

  .film-info {
    padding: 10px 8px;
  }

  .film-title {
    font-size: 0.75rem;
  }

  .film-tag {
    font-size: 0.6rem;
  }

  .photo-masonry {
    columns: 1;
  }

  .photo-info {
    padding: 10px 8px;
  }

  .photo-title {
    font-size: 0.75rem;
  }

  .photo-tag {
    font-size: 0.6rem;
  }

  .ai-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .ai-info {
    padding: 10px 8px;
  }

  .ai-title {
    font-size: 0.75rem;
  }

  .about-content {
    max-width: 100%;
    padding: 0 8px;
  }

  .about-text {
    font-size: 1.15rem;
  }

  .about-text-secondary {
    font-size: 0.75rem;
    margin-bottom: 28px;
  }

  .about-contact {
    flex-direction: column;
    gap: 10px;
    padding-top: 12px;
  }

  .contact-divider {
    display: none;
  }

  .wechat-modal-card {
    padding: 36px 24px 28px;
    max-width: 300px;
  }

  .wechat-modal-qr {
    width: 150px;
    height: 150px;
    margin-bottom: 18px;
  }

  .wechat-modal-id {
    font-size: 0.85rem;
  }

  .contact-link {
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    padding: 11px 20px;
  }

  .footer {
    padding: 32px 16px;
  }

  .footer-inner {
    font-size: 0.65rem;
    gap: 8px;
  }

  /* 灯箱极致小屏 */
  .lightbox-close {
    top: 16px;
    right: 16px;
    font-size: 1.4rem;
  }

  .lightbox-prev,
  .lightbox-next {
    padding: 8px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }

  .lightbox-content {
    max-width: 94vw;
    max-height: 65vh;
  }

  .lightbox-content img,
  .lightbox-content video {
    max-height: 65vh;
  }

  .lightbox-counter {
    top: 20px;
    font-size: 0.6rem;
  }

  .lightbox-caption {
    bottom: 78px;
    font-size: 0.65rem;
  }

  .lightbox-thumbs {
    bottom: 16px;
    gap: 3px;
  }

  .lightbox-thumb {
    width: 30px;
    height: 30px;
  }
}