/* ============================================
   简饰空间设计 — Dark Premium Design System
   JianShi Space Design Studio Official Website
   ============================================ */

/* ---------- Font Import ---------- */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;600;700&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Background — 暗黑高级主题 */
  --bg-primary: #141414;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #1e1e1e;
  --bg-glass: rgba(20, 20, 20, 0.6);
  --bg-glass-strong: rgba(10, 10, 10, 0.88);

  /* Text — 暖白 */
  --text-primary: #e8e4df;
  --text-secondary: #a0a0a0;
  --text-tertiary: #6b6b6b;
  --text-inverse: #0a0a0a;

  /* Accent — 暖金 */
  --accent: #c9a96e;
  --accent-hover: #d4b87a;
  --accent-dark: #a88a4e;
  --accent-light: #2a2520;
  --accent-glow: rgba(201, 169, 110, 0.12);

  /* Border — 深色分隔线 */
  --border: #2a2a2a;
  --border-light: #1d1d1d;
  --border-strong: #3a3a3a;

  /* Shadow — 深色环境影 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.7);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Typography */
  --font-heading: 'Noto Serif SC', 'STSongti-SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', monospace;
  --font-interiors: 'Corbel', 'Segoe UI', 'Noto Sans SC', sans-serif;

  /* Transition */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --navbar-height: 72px;
  --max-width: 1280px;
  --content-padding: clamp(1rem, 5vw, 3rem);
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;   /* 兜底：老旧浏览器不支持 clip 时回退为 hidden */
  overflow-x: clip;     /* 关键修复：clip 不会创建滚动容器，避免破坏 position: sticky 子元素（编辑页吸顶工具栏） */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { border: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.display-xl { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 1.1; }
.display-lg { font-size: clamp(2rem, 4.5vw, 3.5rem); }
.display-md { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.heading-lg { font-size: clamp(1.25rem, 2.5vw, 2rem); }
.heading-md { font-size: clamp(1.1rem, 2vw, 1.5rem); }
.heading-sm { font-size: 1rem; }
.text-lg { font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.8; }
.text-md { font-size: 0.95rem; line-height: 1.7; }
.text-sm { font-size: 0.85rem; line-height: 1.6; }
.text-xs { font-size: 0.75rem; letter-spacing: 0.02em; }
.text-muted { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.font-heading { font-family: var(--font-heading); }

.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 50%, var(--text-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.container-narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section-sm { padding: clamp(2rem, 5vw, 4rem) 0; }

.section-header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border-width: 0;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--navbar-height);
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.navbar--scrolled {
  background: var(--bg-primary);
  box-shadow: none;
  border-bottom: none;
}

.navbar--hidden { transform: translateY(-100%); }

/* 实底色导航栏：用于顶部非全屏图的页面，底色跟随日夜模式主题变量 */
.navbar--solid {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 0 var(--content-padding);
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  z-index: 1001;
}

.navbar__logo-icon {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-inverse);
  font-size: 1rem;
  font-weight: 700;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar__link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
  transition: background var(--transition-fast);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute; left: 0;
  width: 20px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

.menu-toggle--active span { background: transparent; }
.menu-toggle--active span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle--active span::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  padding: calc(var(--navbar-height) + 2rem) var(--content-padding) 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.5rem;
  font-family: var(--font-heading);
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition-fast), padding var(--transition-spring);
}

.mobile-nav__link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-spring);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--outline {
  border: 1.5px solid var(--border-strong);
  color: var(--text-primary);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.btn--ghost {
  color: var(--text-secondary);
}

.btn--ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn--sm { padding: 0.5rem 1.25rem; font-size: 0.8rem; }

/* 卡片：暗色背景 + 边框 + 圆角 */
.card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-spring);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.card__image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
}

.card__image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  z-index: 0;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
  pointer-events: none;
}

.card__image img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.card:hover .card__image img {
  transform: scale(1.03);
}

.card__image-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.55), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.card:hover .card__image-overlay {
  opacity: 1;
}

/* 预览图上的标签文字去掉底色：透明背景 + 白色描边 + 投影，压在照片上仍清晰可读 */
.card__image-overlay .btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
  box-shadow: none;
}
.card__image-overlay .btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.card__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
}

.card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.card:hover .card__title {
  color: var(--accent);
}

.card__concept {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__location {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* 保留旧的两行描述样式，用于暂无项目/后台预览等兜底场景 */
.card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.card__meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }

/* ---------- 首页精选作品：全宽横扁 banner 列表（1280x215 拼接图） ---------- */
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.featured-list { display: flex; flex-direction: column; gap: 1rem; }
/* 横幅容器：无卡片背景，标题显示在上方 */
.featured-row {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.featured-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* 标题区（卡片上方） */
.featured-row__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.featured-row__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
}
.featured-row__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  text-align: left;
}
.featured-row__subtitle {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-tertiary);
  letter-spacing: 0.01em;
  text-align: left;
}

/* 横幅图片容器：无缩略图时用内部多图拼接裁剪（flex 横排，每张 object-fit:cover） */
.featured-row__banner {
  position: relative;
  display: flex;
  width: 100%;
  aspect-ratio: 1280 / 215;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--bg-subtle, rgba(128,128,128,0.06));
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s ease;
}
.featured-row__banner-img,
.featured-row__collage-img {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-row__collage-img + .featured-row__collage-img {
  border-left: 2px solid rgba(255,255,255,0.55);
}
.featured-row__banner--empty {
  background: repeating-linear-gradient(45deg, rgba(128,128,128,0.05), rgba(128,128,128,0.05) 12px, rgba(128,128,128,0.09) 12px, rgba(128,128,128,0.09) 24px);
}
.featured-row__banner:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.featured-row__banner:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.featured-row__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,16,0.74) 0%, rgba(20,18,16,0.46) 46%, rgba(20,18,16,0.12) 100%);
}
.featured-row__stats {
  display: flex; align-items: center; gap: 1.1rem; flex-shrink: 0;
  color: var(--text-secondary); font-variant-numeric: tabular-nums;
  font-size: 0.85rem; line-height: 1;
}
.featured-row__stats span, .featured-row__stats button { white-space: nowrap; }
.featured-row__views { display: inline-flex; align-items: center; }
.featured-row__like-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.32rem 0.75rem; border-radius: 999px;
  background: var(--bg-subtle, rgba(128,128,128,0.06));
  border: 1px solid var(--border-light, rgba(0,0,0,0.12));
  color: var(--text-secondary); cursor: pointer; font-size: 0.82rem; line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.featured-row__like-btn:hover { background: rgba(229,72,77,0.08); border-color: rgba(229,72,77,0.4); color: #e5484d; }
.featured-row__like-btn.is-liked { background: rgba(229,72,77,0.12); border-color: rgba(229,72,77,0.55); color: #e5484d; font-weight: 600; }
.featured-row__like-btn:active { transform: scale(0.94); }

/* 未设置精选项目时的占位 */
.featured-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 180px;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border-light);
  border-radius: 12px;
  background: var(--bg-subtle, rgba(128,128,128,0.04));
  color: var(--text-tertiary);
}
.featured-empty__icon {
  font-size: 1.6rem;
  line-height: 1;
  opacity: 0.65;
}
.featured-empty__text {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.18em;
  font-weight: 500;
}

/* 后台编辑页：精选横幅实时预览 */
.banner-preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 215;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  background-color: var(--bg-subtle, rgba(128,128,128,0.06));
  background-size: cover;
  background-position: center;
}
.banner-preview__bg { position: absolute; inset: 0; display: flex; overflow: hidden; background-size: cover; background-position: center; background-color: rgba(128,128,128,0.08); }
.banner-preview__bg img { flex: 1 1 0; min-width: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-preview__bg img + img { border-left: 2px solid rgba(255,255,255,0.5); }
.banner-preview::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,18,16,0.74) 0%, rgba(20,18,16,0.46) 46%, rgba(20,18,16,0.12) 100%);
}
.banner-preview__inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.1rem 1.4rem;
}
.banner-preview__text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.banner-preview__title { font-size: 1.05rem; font-weight: 600; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,0.4); }
.banner-preview__subtitle { font-size: 0.8rem; color: rgba(255,255,255,0.86); }
.banner-preview__stats { display: flex; gap: 1rem; color: #fff; font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.banner-preview .preview-empty { z-index: 2; }
.banner-preview--off .banner-preview__inner { display: none; }
.banner-preview--off::after { display: none; }
.banner-preview--off { display: flex; align-items: center; justify-content: center; }

/* 后台编辑页：精选编辑区子字段 */
.premium-banner-fields {
  margin-top: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
  display: flex; flex-direction: column; gap: 0.85rem;
}
.premium-base-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.premium-base-row label { flex: 1; min-width: 140px; }
.premium-base-row input { width: 100%; }

/* 预览模式里的精选横幅提示 */
.preview-banner-tip {
  margin: 0.6rem 0 1.4rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-align: left;
}

/* ---------- 作品集网格（定宽居中，随 .container 1280px） ---------- */
#portfolioGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.2vw, 2rem);
  margin-top: 2.5rem;
}
@media (max-width: 960px)  { #portfolioGrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { #portfolioGrid { grid-template-columns: 1fr; } }

/* 预览图去圆角（直角、硬边画廊感） */
#portfolioGrid .card,
#portfolioGrid .card__image {
  border-radius: 0;
}

/* 文字区域背景改成透明：去掉卡片底色 + 外框线，文字直接落在页面背景上 */
#portfolioGrid .card {
  background: transparent;
  border: none;
}

/* 预览图比例：3:4（竖版，较之前更高、整体更大） */
#portfolioGrid .card__image {
  aspect-ratio: 3 / 4;
}

/* 图下三行说明：项目名称 + 设计理念 + 项目地址 */
#portfolioGrid .card__body {
  padding: 1.1rem 0 0;
}
#portfolioGrid .card__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  margin-bottom: calc(0.4rem + 2px);
}

/* 作品集卡片悬浮：INTERIORS 居中，hover 时 10% 黑色遮罩 + 文字从上方滑入 */
#portfolioGrid .card__image-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  opacity: 1;
  padding: 0;
  transition: background 0.45s ease;
  pointer-events: none;
}
#portfolioGrid .card:hover .card__image-overlay {
  background: rgba(0, 0, 0, 0.1);
}
#portfolioGrid .card__interiors {
  font-family: var(--font-interiors);
  font-size: 1.5rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  transform: translateY(-28px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
#portfolioGrid .card:hover .card__interiors {
  transform: translateY(0);
  opacity: 1;
}
#portfolioGrid .card__image img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
#portfolioGrid .card:hover .card__image img {
  transform: scale(1.03);
}
#portfolioGrid .card__concept {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-bottom: calc(0.3rem + 2px);
}
#portfolioGrid .card__location {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}
#portfolioGrid .card__desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 取消预览图下方文字区域的「背景指向」hover 动画：整卡不再上浮+阴影，标题不再变金色。
   图片本身的缩放 / INTERIORS 滑入按需求保留。 */
#portfolioGrid .card:hover {
  transform: none;
  box-shadow: none;
}
#portfolioGrid .card:hover .card__title {
  color: var(--text-primary);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #0a0a0a;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(168, 130, 74, 0.05), transparent),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(168, 130, 74, 0.03), transparent),
    rgba(10, 10, 10, 0.55);
}

.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.03;
  animation: floatShape 20s infinite ease-in-out;
}

.hero__shape--1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 350px; height: 350px;
  bottom: 10%; left: -100px;
  animation-delay: -7s;
}

.hero__shape--3 {
  width: 200px; height: 200px;
  top: 35%; right: 20%;
  animation-delay: -14s;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 var(--content-padding);
  margin-top: 25vh;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__title .line {
  display: block;
}

.hero__title .line-spacer {
  display: inline-block;
  width: 3rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

/* Hero 文案固定为夜景配色：不随日/夜切换改变，始终以浅色显示于深色遮罩上 */
.hero__title,
.hero__subtitle {
  color: #e8e4df;
}
.hero__subtitle {
  color: #a0a0a0;
}
[data-theme="light"] .hero__title,
[data-theme="light"] .hero__subtitle {
  color: #e8e4df;
}
[data-theme="light"] .hero__subtitle {
  color: #a0a0a0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- Stats Strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: 2rem;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------- Philosophy Section ---------- */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
}

.philosophy-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-spring);
}

.philosophy-item:hover {
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.philosophy-icon {
  width: 64px; height: 64px;
  margin: 0 auto 1.5rem;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.philosophy-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.philosophy-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Filter Tabs ---------- */
/* 第一层筛选：暗色胶囊 */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid transparent;
  background: transparent;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.filter-tab--active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent);
}

/* 第二层筛选：一体式分段控件（无圆角、无间隙、暗色底） */
.filter-tabs--sm {
  position: relative;
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0.75rem auto 2.5rem;
  padding: 0;
  gap: 8px;
  border-radius: 0;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.filter-tabs--sm .filter-tab {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-width: 0;
  padding: 2px 4px;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.filter-tabs--sm .filter-tab:hover {
  color: var(--text-primary);
}

.filter-tabs--sm .filter-tab--active {
  color: #0a0a0a;
  background: transparent;
}

/* 金色滑动色块：宽度跟随当前激活标签（背景比文字大 2px） */
.filter-tabs__slider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100%;
  width: auto;
  background: var(--accent);
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, width;
}

/* ---------- About Page ---------- */
.about-hero {
  padding: calc(var(--navbar-height) + 4rem) 0 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-visual {
  aspect-ratio: 4 / 3;
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-visual__inner {
  text-align: center;
  color: var(--text-tertiary);
}

.about-visual__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

/* 后台可上传的图片/视频形象层（默认空，有媒体时铺满并隐藏占位） */
.about-visual__media {
  position: absolute;
  inset: 0;
}
.about-visual__media img,
.about-visual__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
}
.about-visual.has-media .about-visual__inner { display: none; }

.about-text h1 {
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.9;
}

/* Contact Card */
.contact-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
}

.contact-item + .contact-item {
  border-top: 1px solid var(--border-light);
}

.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--accent-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-item__info h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-item__info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.qr-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
}

.qr-code {
  display: inline-block;
  background: white;
  padding: 1rem;
  border-radius: var(--radius-md);
}

.qr-code img {
  width: 160px; height: 160px;
}

.qr-label {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 二维码网格（关于页联系方式右侧，2×2，图片与名称后台可改；卡片背景已上移到 .qr-section 与左侧一致） */
.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);   /* 间距不变 */
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  align-self: stretch;               /* 填满卡片高度 → 上/下边对齐左侧文字 */
}
.qr-card {
  margin: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;   /* 图贴顶·名贴底 → 上下边对齐左侧文字 */
  height: 100%;
  min-height: 0;
}
.qr-card__img {
  width: 100%;
  max-width: 130px;                 /* 等比例放大（原 60px，随卡片高度自适应，上限 130px） */
  aspect-ratio: 1 / 1;
  max-height: calc(100% - 2.2rem);  /* 预留名称空间，避免溢出 */
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}
.qr-card__img img { width: 100%; height: 100%; object-fit: contain; }
.qr-card__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.78rem;
}
.qr-card__name {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-secondary);
}

.form-group textarea {
  min-height: 120px;
}

/* 留言提交状态 */
.contact-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  text-align: center;
  animation: contactFadeIn 0.3s ease;
}
.contact-status--ok {
  color: #2ea043;
  background: rgba(46, 160, 67, 0.08);
  border: 1px solid rgba(46, 160, 67, 0.3);
}
.contact-status--err {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.3);
}
.contact-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
@keyframes contactFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Panorama Styles ---------- */
.panorama-page {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.panorama-container {
  position: fixed;
  inset: 0;
  z-index: 1;
}
/* 原 equirectangular 球体极区暗角：已换 Krpano + cubemap 无极区拉伸，删除 */
/*
.panorama-container::after {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 100;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.18) 75%, rgba(0,0,0,0.45) 100%);
}
*/

.panorama-canvas {
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
}

.panorama-canvas:active,
.panorama-canvas--grabbing {
  cursor: grabbing !important;
}

/* Panorama Top Bar */
.panorama-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--content-padding);
  background: transparent;
  pointer-events: none;
  /* 顶栏右侧控件（浏览/点赞胶囊 与 返回按钮）统一高度，保证视觉一致 */
  --topbar-ctrl-h: 36px;
}

.panorama-topbar > * { pointer-events: auto; }

.panorama-topbar__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  margin-left: 10px;
}

.panorama-topbar__left-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panorama-topbar__back {
  width: var(--topbar-ctrl-h); height: var(--topbar-ctrl-h);
  border-radius: var(--radius-full);
  background: rgba(10,10,10,0.55);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

.panorama-topbar__logo {
  display: flex;
  align-items: center;
  margin: 0;
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.panorama-topbar__logo:hover {
  opacity: 1;
}

.panorama-topbar__logo-img {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.panorama-topbar__back:hover {
  background: rgba(25,25,25,0.72);
}

.panorama-topbar__title {
  color: white;
  font-family: var(--font-heading);
  font-size: 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Panorama Project Info（前台/后台顶栏共用：与 LOGO 同行居中对齐） */
.panorama-project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 0;
  margin-left: 0;
}

.panorama-project-info__name {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.65);
  line-height: 1.2;
}

.panorama-project-info__subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 0.75rem;
  font-weight: 400;
  text-shadow: 0 1px 5px rgba(0,0,0,0.55);
  line-height: 1.3;
}

/* Top-Right Stats (Views & Likes) */
.panorama-topbar__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pano-stats {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: var(--topbar-ctrl-h);
  background: rgba(10,10,10,0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
  padding: 0 0.85rem;
  box-shadow: var(--shadow-md);
}

.pano-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transition: color var(--transition-fast);
}

.pano-stats__item--like {
  cursor: pointer;
}

.pano-stats__item--like:hover {
  color: var(--accent);
}

.pano-stats__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--transition-spring);
}

.eye-icon {
  fill: currentColor;
}

.heart-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill var(--transition-fast), transform var(--transition-spring);
}

.pano-stats__item--like:hover .heart-icon {
  transform: scale(1.15);
}

.pano-stats__icon--active,
.pano-stats__item--like.is-active {
  color: var(--accent);
}

.pano-stats__icon--active.heart-icon,
.heart-icon--active {
  fill: currentColor;
  stroke: currentColor;
}

/* Panorama Hotspots */
.panorama-hotspot {
  position: absolute;
  z-index: 5;
  pointer-events: auto;
}

.panorama-hotspot__dot {
  width: 24px; height: 24px;
  background: var(--accent);
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  transition: transform var(--transition-spring);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.panorama-hotspot__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  animation: hotspotPulse 2s infinite ease-out;
}

.panorama-hotspot:hover .panorama-hotspot__dot {
  transform: scale(1.3);
}

.panorama-hotspot__tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.panorama-hotspot__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0,0,0,0.85);
}

.panorama-hotspot:hover .panorama-hotspot__tooltip {
  opacity: 1;
}

/* Panorama Side Controls (Right side) */
.pano-side-controls {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 8px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0.5;
  transition: opacity var(--transition-fast);
}

.pano-side-controls:hover {
  opacity: 1;
}

.pano-side-controls .pano-ctrl-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
  font-size: 0;
}

.pano-side-controls .pano-ctrl-btn svg {
  flex-shrink: 0;
}

.pano-side-controls .pano-ctrl-btn:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

/* 左侧 tooltip */
.pano-side-controls .pano-ctrl-btn::after {
  content: attr(aria-label);
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.pano-side-controls .pano-ctrl-btn:hover::after,
.pano-side-controls .pano-ctrl-btn:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

.pano-side-controls .pano-ctrl-btn--active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Like button (right side) */
.pano-like-btn .heart-icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: fill var(--transition-fast), transform var(--transition-spring);
}

.pano-like-btn:hover .heart-icon {
  transform: scale(1.15);
}

.pano-like-btn--active {
  color: var(--accent);
  background: var(--accent-light);
}

.pano-like-btn--active .heart-icon {
  fill: currentColor;
  stroke: currentColor;
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Scene Trigger Button (Bottom Left) */
.pano-scene-trigger {
  position: fixed;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
  pointer-events: auto;
  will-change: transform;
}

.pano-scene-trigger:hover {
  background: rgba(20,20,20,0.95);
  border-color: var(--accent);
  color: var(--accent);
}

.pano-scene-trigger svg {
  color: #fff;
}

/* Scene Panel (Bottom Sheet) */
.pano-scene-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  background: rgba(82,82,88,0.2);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 0 1rem;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
}

.pano-scene-panel--open {
  transform: translateY(-75px);
}

.pano-scene-panel__list {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.4) transparent;
}

.pano-scene-panel__list::-webkit-scrollbar {
  height: 4px;
}

.pano-scene-panel__list::-webkit-scrollbar-track {
  background: transparent;
}

.pano-scene-panel__list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}

.pano-scene-item {
  position: relative;
  flex: 0 0 auto;
  width: 85px;
  cursor: pointer;
}

.pano-scene-item__thumb {
  position: relative;
  width: 100%;
  height: 85px;
  border-radius: 3px;
  overflow: hidden;
  border: none;
}

/* 模糊背景图：以同一张缩略图为底，模糊放大铺满，作为画框式背景 */
.pano-scene-item__thumb img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  object-fit: cover;
  border-radius: 3px;
  transition: transform 0.3s;
}

/* 选中(当前场景)预览图：加强调边框 */
.pano-scene-item--active .pano-scene-item__thumb {
  border: 2px solid var(--accent);
}

/* 场景文字：缩略图内靠下，固定 20px 黑底(70%不透明)文字条，无渐变 */
.pano-scene-item__name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 11px;
  color: #fff;
  font-weight: 400;
  text-align: center;
  background: rgba(0,0,0,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  border-radius: 0 0 3px 3px;
}

.pano-scene-item--active .pano-scene-item__name {
  color: #fff;
  font-weight: 600;
}

/* QR Code Panel */
.panorama-qr {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10;
  background: var(--bg-glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: transform var(--transition-spring), opacity var(--transition-base);
}

.panorama-qr__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.panorama-qr__code {
  width: 120px; height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panorama-qr__hint {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
}

/* Loading Spinner */
.panorama-loading {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.panorama-loading--hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.panorama-loading__spinner {
  width: 48px; height: 48px;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.panorama-loading__text {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

/* ---------- 百分比进度条（居中） ---------- */
.pano-progress {
  width: min(260px, 68vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

.pano-progress__track {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  overflow: hidden;
}

.pano-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.2s ease;
}

.pano-progress__pct {
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* 切换场景时的居中进度遮罩（覆盖在模糊的场景之上） */
.pano-scene-loading {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: rgba(0,0,0,0.28);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pano-scene-loading--show {
  opacity: 1;
  visibility: visible;
}

/* 切换场景时虚化过渡：仅模糊全景画布，保留控件与加载提示清晰 */
.pano-blur canvas {
  filter: blur(16px);
  opacity: 0.4;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Touch Tip */
.touch-tip {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  pointer-events: none;
  transition: opacity 0.5s;
}

/* Orientation Hint */
.orientation-hint {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 200;
  background: rgba(20,20,20,0.82);
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.orientation-hint--show {
  display: flex;
}

.orientation-hint__rotate {
  width: 22px; height: 22px;
  flex-shrink: 0;
  animation: rotateHint 1.5s ease-in-out infinite;
}

.orientation-hint p {
  color: #fff;
  font-size: 0.85rem;
  margin: 0;
}

/* Hotspot Info Popover */
.hotspot-info {
  position: fixed;
  z-index: 20;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 220px;
  font-size: 0.85rem;
  pointer-events: auto;
}

.hotspot-info strong {
  display: block;
  color: var(--accent);
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.footer {
  background: #0a0a0a;
  border-top: 1px solid var(--border-light);
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
}

[data-theme="light"] .footer {
  background: #e6e0da;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--content-padding);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__brand h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.footer__links h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--accent);
}

.footer__bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text-tertiary);
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}
.footer__bottom-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.footer__bottom-item--beian {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer__bottom-item--beian:hover { color: var(--accent); }
.footer__bottom-item--beian svg {
  width: 12px;
  height: 12px;
  margin-right: 0.25rem;
  flex-shrink: 0;
  fill: currentColor;
}
.footer__bottom-sep {
  color: var(--text-tertiary);
  opacity: 0.5;
  user-select: none;
  pointer-events: none;
}




/* ---------- Animations ---------- */
@keyframes floatShape {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  25% { transform: translate(30px,-20px) rotate(5deg) scale(1.05); }
  50% { transform: translate(-10px,-40px) rotate(-3deg) scale(0.95); }
  75% { transform: translate(-25px,10px) rotate(2deg) scale(1.02); }
}

@keyframes hotspotPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes rotateHint {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(90deg); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Page Transition */
.page-transition {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* ---------- Portfolio Detail ---------- */
.portfolio-header {
  padding: calc(var(--navbar-height) + 3rem) 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.portfolio-header h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--accent);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --navbar-height: 64px; }

  .navbar__links { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: block; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-visual { order: -1; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .hero {
    min-height: 90vh;
  }

  .hero__title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
  }

  .philosophy-grid { grid-template-columns: 1fr; }

  .panorama-scenes {
    left: 0.75rem;
    bottom: 0.75rem;
    gap: 0.35rem;
  }

  .panorama-scene-btn {
    width: 40px; height: 40px;
  }

  .panorama-qr {
    display: none;
  }

  .panorama-controls {
    bottom: 0.75rem;
  }

  .pano-ctrl-btn {
    width: 36px; height: 36px;
  }

  .panorama-topbar__title {
    font-size: 0.9rem;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Panorama Responsive Adjustments */
@media (max-width: 768px) {
  .pano-side-controls {
    display: none;
  }

  .pano-stats {
    padding: 0.35rem 0.6rem;
    gap: 0.4rem;
  }

  .pano-stats__item {
    font-size: 0.75rem;
  }

  .pano-stats__icon {
    width: 15px;
    height: 15px;
  }

  .pano-scene-trigger {
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
  }

  .pano-scene-item {
    width: 120px;
  }

  .pano-scene-item__thumb {
    height: 72px;
  }

  .panorama-project-info__name {
    font-size: 0.95rem;
  }

  .panorama-project-info__subtitle {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .section-header {
    text-align: left;
  }

  .filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  .about-visual {
    aspect-ratio: 1 / 1;
  }

  .hero__shape--1 { width: 250px; height: 250px; }
  .hero__shape--2 { width: 200px; height: 200px; }
  .hero__shape--3 { width: 120px; height: 120px; }
}

/* ============================================================
   日间 / 夜间 主题切换
   - 默认（暗黑）主题在 :root 中已定义
   - [data-theme="light"] 覆盖为暖白高级浅色主题
   - LOGO / 切换按钮随主题自动切换
   ============================================================ */

/* ---------- 浅色主题变量 ---------- */
[data-theme="light"] {
  --bg-primary: #fffdfa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #efeae1;
  --bg-glass: rgba(255, 255, 255, 0.65);
  --bg-glass-strong: rgba(255, 255, 255, 0.92);

  --text-primary: #1c1a17;
  --text-secondary: #5e5a52;
  --text-tertiary: #8c877d;
  --text-inverse: #1c1a17;

  --accent: #b8914f;
  --accent-hover: #a5823f;
  --accent-dark: #8a6a30;
  --accent-light: #f1e9d9;
  --accent-glow: rgba(184, 145, 79, 0.16);

  --border: #e6e0d4;
  --border-light: #f0ece4;
  --border-strong: #d8d1c4;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.14);
}

/* ---------- 导航栏 LOGO（图片，按主题切换版本） ---------- */
.navbar__logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.navbar__logo-img--dark { display: none; }
[data-theme="light"] .navbar__logo-img--light { display: none; }
[data-theme="light"] .navbar__logo-img--dark { display: block; }

/* ---------- 页脚 LOGO（图片，按主题切换版本） ---------- */
.footer__logo-img {
  height: 38px;
  width: auto;
  display: block;
  margin-bottom: 0.75rem;
}
.footer__logo-img--dark { display: none; }
[data-theme="light"] .footer__logo-img--light { display: none; }
[data-theme="light"] .footer__logo-img--dark { display: block; }

/* ---------- 主题切换按钮 ---------- */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  margin-right: 0.5rem;
  flex-shrink: 0;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}
.theme-toggle__icon { width: 20px; height: 20px; display: block; }
.theme-toggle__icon--moon { display: none; }
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* 全景页顶栏上的切换按钮（悬浮在暗色画面上） */
.theme-toggle--pano {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}
.theme-toggle--pano:hover {
  color: #fff;
  background: rgba(20, 20, 20, 0.7);
  border-color: var(--accent);
}

/* ---------- Hero 浅色处理（避免浅色文字压在暗色视频上看不清） ---------- */
[data-theme="light"] .hero__gradient {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(184, 145, 79, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(184, 145, 79, 0.04), transparent),
    rgba(246, 243, 238, 0.82);
}

/* ---------- 导航栏右侧区域（LOGO 左，导航 + 切换 + 菜单 右） ---------- */
.navbar__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* ---------- Hero 全屏轮播 ---------- */
.hero--carousel {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--navbar-height);
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 8s linear;
  transform: scale(1);
}

.hero__slide--active {
  opacity: 1;
  z-index: 1;
  transform: scale(1.06);
}

.hero__slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(168, 130, 74, 0.06), transparent),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(168, 130, 74, 0.03), transparent),
    rgba(10, 10, 10, 0.48);
}

.hero__dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero__dot:hover {
  background: rgba(255, 255, 255, 0.65);
}

.hero__dot--active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.25);
}

/* 浅色主题下轮播遮罩与指示器 */
[data-theme="light"] .hero__overlay {
  background:
    radial-gradient(ellipse 80% 60% at 30% 20%, rgba(184, 145, 79, 0.05), transparent),
    radial-gradient(ellipse 60% 50% at 70% 80%, rgba(184, 145, 79, 0.03), transparent),
    rgba(28, 26, 23, 0.42);
}

[data-theme="light"] .hero__dot {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .hero__dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

[data-theme="light"] .hero__dot--active {
  background: var(--accent);
  border-color: var(--accent);
}

/* 轮播加载前的兜底背景 */
.hero__slides:empty::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-primary);
}

/* ---------- 切换时的平滑过渡（仅点击瞬间启用，避免首屏闪烁） ---------- */
html.theme-anim * {
  transition: background-color var(--transition-base),
              color var(--transition-base),
              border-color var(--transition-base) !important;
}

/* 背景音乐播放控件（右下角） */
.pano-music {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: rgba(20, 20, 24, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  padding: 7px 12px; box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}
.pano-music__btn {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  background: #C9A96E; color: #1A1A1A; transition: transform .15s, background .15s;
}
.pano-music__btn:hover { transform: scale(1.06); background: #d8ba83; }
.pano-music__vol { width: 80px; accent-color: #C9A96E; cursor: pointer; }
.pano-music.is-playing { border-color: rgba(201, 169, 110, .5); }

/* 户型图叠加浮层 */
.pano-floorplan {
  background: rgba(20,20,24,.82);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
}
.pano-floorplan__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 10px; cursor: grab;
  background: rgba(201,169,110,.16);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.pano-floorplan__bar:active { cursor: grabbing; }
.pano-floorplan__title { color: #e8e4df; font-size: 12px; font-weight: 600; pointer-events: none; }
.pano-floorplan__toggle {
  width: 22px; height: 22px; border: none; border-radius: 4px; cursor: pointer;
  background: rgba(255,255,255,.1); color: #e8e4df; font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.pano-floorplan__toggle:hover { background: rgba(255,255,255,.2); }
.pano-floorplan__body { padding: 6px; pointer-events: none; }
.pano-floorplan__img { display: block; width: 100%; height: auto; border-radius: 6px; pointer-events: none; }
.pano-floorplan__resize {
  position: absolute; right: 0; bottom: 0; width: 16px; height: 16px;
  cursor: nwse-resize; background:
    linear-gradient(135deg, transparent 50%, rgba(201,169,110,.85) 50%, rgba(201,169,110,.85) 60%, transparent 60%, transparent 72%, rgba(201,169,110,.85) 72%, rgba(201,169,110,.85) 82%, transparent 82%);
}

/* 密码保护遮罩 */
.share-gate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(10,10,12,.92); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.share-gate__box { width: min(92vw, 360px); background: #1c1c20; border: 1px solid rgba(201,169,110,.3); border-radius: 14px; padding: 28px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.share-gate__title { color: #e8e4df; font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.share-gate__input { width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); background: rgba(0,0,0,.3); color: #e8e4df; font-size: 14px; outline: none; }
.share-gate__input:focus { border-color: #C9A96E; }
.share-gate__btn { margin-top: 14px; width: 100%; box-sizing: border-box; padding: 11px; border: 0; border-radius: 8px; background: linear-gradient(180deg,#C9A96E,#a8884f); color: #1a1a1a; font-size: 14px; font-weight: 600; cursor: pointer; }
.share-gate__btn:disabled { opacity: .6; cursor: default; }
.share-gate__err { color: #e8746b; font-size: 12px; margin-top: 10px; min-height: 14px; }

/* 预览图底部居中的 VR 角标（仅 VR全景 类作品显示，全案设计不显示） */
.card__vr-badge {
  position: absolute;
  left: 0; right: 0; bottom: 12px;
  z-index: 3;
  text-align: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 3px;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.card:hover .card__vr-badge,
.card__image:hover .card__vr-badge {
  opacity: 1;
  transform: translateY(0);
}
.card__group-badge {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  color: #fff;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: none;
}

/* ---------- 发布页热点内容弹窗（图片/文字/视频） ---------- */
.krpano-hs-popup {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.krpano-hs-popup[hidden] { display: none; }
.krpano-hs-popup__mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.krpano-hs-popup__card {
  position: relative; z-index: 1; max-width: min(86vw, 560px);
  width: 100%; max-height: 82vh; overflow: auto;
  background: #fff; border-radius: 14px; padding: 22px 22px 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
  animation: krpanoHsPop .22s ease-out;
}
@keyframes krpanoHsPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.krpano-hs-popup__close {
  position: absolute; top: 10px; right: 12px;
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.06); color: #333; font-size: 20px; line-height: 1; cursor: pointer;
}
.krpano-hs-popup__close:hover { background: rgba(0,0,0,.12); }
.krpano-hs-popup__title { margin: 0 28px 12px 0; font-size: 17px; font-weight: 700; color: #1a1a1a; }
.krpano-hs-popup__body { font-size: 14px; line-height: 1.7; color: #333; }
.krpano-hs-popup__body img,
.krpano-hs-popup__body video { max-width: 100%; border-radius: 10px; display: block; }
.krpano-hs-popup__body p { margin: 0; white-space: pre-wrap; }

/* 微信内置浏览器底栏隐藏尝试(2026-07-27): 老版微信将底栏注入为 #toolbar/#bottombar DOM, 可被 CSS 隐藏 */
#toolbar, #bottombar { display: none !important; }
