.sort-tabs.mobile-sort-bar { display: none; }

/* ==========================================================   Professional Design System �?fangan.cool   Primary: #FECE14  |  Secondary: #000000   Surface: #FFFFFF  |  Text: #111827   Font: Poppins / IBM Plex Mono   ========================================================== *//* --- Reset & CSS Custom Properties --- */*,*::before,*::after {
  margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
  --plan-primary: #FECE14;
--plan-primary-hover: #E5B800;
--plan-primary-light: #FFF4CC;
--plan-secondary: #000000;
--plan-surface: #FFFFFF;
--plan-surface-alt: #F8F9FA;
--plan-surface-hover: #F0F0F0;
--plan-text: #111827;
--plan-text-secondary: #6B7280;
--plan-text-tertiary: #9CA3AF;
--plan-border: #E5E7EB;
--plan-border-light: #F3F4F6;
--plan-border-focus: #FECE14;
--plan-danger: #000000;
--plan-success: #FECE14;
--plan-warning: #E5B800;
--plan-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
--plan-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
--plan-shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
--plan-shadow-xl: 0 12px 40px rgba(0,0,0,0.15);
--plan-radius-sm: 4px;
--plan-radius-md: 8px;
--plan-radius-lg: 12px;
--plan-radius-xl: 16px;
--plan-max-width: 1600px;
--plan-gutter: 20px;
--plan-font: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', sans-serif;
--plan-font-mono: 'IBM Plex Mono', 'SF Mono', 'Fira Code', monospace;
--plan-transition: 0.2s ease;
--plan-modal-bg: #0f0f0f;
--plan-modal-sidebar: #1a1a1a;
--plan-modal-border: rgba(255, 255, 255, 0.08);
--plan-bg-primary: #141414;
--plan-bg-secondary: #1a1a1a;
--plan-bg-hover: #262626;
}

[data-bs-theme="dark"] {
  --plan-surface: #111827;
  --plan-surface-alt: #1f2937;
  --plan-surface-hover: #374151;
  --plan-text: #f9fafb;
  --plan-text-secondary: #d1d5db;
  --plan-text-tertiary: #9ca3af;
  --plan-border: #374151;
  --plan-border-light: #1f2937;
  --plan-primary-light: rgba(254, 206, 20, 0.18);
  --plan-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --plan-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --plan-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
  --plan-shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

html[data-bs-theme="dark"] body.plan-home-page,
html[data-bs-theme="dark"] body.plan-member-page {
  background-color: var(--plan-surface);
  color: var(--plan-text);
}

@media (min-width: 768px) {
  :root {
 --plan-gutter: 32px;
}
}

html {
 overflow-y: scroll;
scrollbar-gutter: stable;
}

html.collection-sidebar-open {
  overflow: hidden;
}

body.plan-home-page {
  font-family: var(--plan-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--plan-text);
  background-color: var(--plan-surface);
  padding-top: 120px;
}

@media (min-width: 768px) {
  body.plan-home-page {
    padding-top: 140px;
  }
}

@media (max-width: 640px) {
  body.plan-home-page {
    padding-top: 72px;
  }
}

.container {
  max-width: var(--plan-max-width);
margin: 0 auto;
padding: 0 var(--plan-gutter);
}
/* --- Glass Panel --- */.glass-panel {
  background: var(--plan-surface);
border: 1px solid var(--plan-border);
border-radius: var(--plan-radius-xl);
box-shadow: var(--plan-shadow-sm);
}

.header-glass.glass-panel {
  background: rgba(255,255,255,0.92);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(229,231,235,0.5);
}
/* --- Header --- */.header {
  position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 100;
padding: 8px 0 0;
pointer-events: none;
background: transparent;
border: none;
}

.header-shell {
  max-width: var(--plan-max-width);
margin: 0 auto;
padding: 0 var(--plan-gutter);
}

@media (min-width: 768px) {
 .header {
 padding-top: 16px;
}
}

@media (max-width: 768px) {
  .header {
    transition: transform 0.28s ease;
    will-change: transform;
  }
  .sort-tabs.mobile-sort-bar { display: flex !important; width: auto; margin-left: auto; margin-bottom: 12px; }
  .mobile-sort-bar .sort-tab { flex: 1; justify-content: center; }
  .sort-tab { padding: 8px 16px; border-radius: 999px; font-size: 0.8125rem; }
  .header.is-scroll-hidden {
 transform: translateY(calc(-100% - 16px));
}
  body.is-mobile-header-hidden.plan-home-page {
 padding-top: 12px;
}

  /* Hide header toolbar on mobile */
  .header-toolbar-wrap {
    display: none !important;
  }

  .header-divider {
    display: none !important;
  }

  /* Mobile sort bar above grid */

  .main {
    padding-top: 4px;
  }

  body.plan-home-page {padding-top: 60px !important;
  }

  .main {
    padding-top: 0 !important;
  }
}

.header-glass {
  border-radius: var(--plan-radius-xl);
padding: 0 var(--plan-gutter);
pointer-events: auto;
position: relative;
}

.header-glass::after {
  content: '';
position: absolute;
inset: 0;
border-radius: inherit;
pointer-events: none;
box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
/* --- Header Top --- */.header-top {
  display: flex;
align-items: center;
justify-content: space-between;
height: 56px;
gap: 16px;
}

.header-brand {
  display: flex;
align-items: center;
gap: 20px;
}

.logo-link {
 text-decoration: none;
}

#plan-site-header .logo-link {
  text-decoration: none;
}

#plan-site-header .logo,
#plan-site-header h1.logo {
  font-family: var(--plan-font);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--plan-secondary);
  line-height: 1;
  margin: 0;
}

#plan-site-header .logo-gradient {
  font-weight: 700;
  background: linear-gradient(135deg, var(--plan-secondary) 0%, #2a2a2a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#plan-site-header .logo-dot {
  font-weight: 700;
  color: var(--plan-primary);
}

.logo {
  font-family: var(--plan-font);
font-size: 1.375rem;
font-weight: 700;
letter-spacing: -0.02em;
color: var(--plan-secondary);
line-height: 1;
}

.logo-gradient {
  font-weight: 700;
  background: linear-gradient(135deg, var(--plan-secondary) 0%, #2a2a2a 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.logo-dot {
 font-weight: 700;
 color: var(--plan-primary);
}

.counter-badge {
  display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 14px;
background: var(--plan-primary-light);
border: 1px solid rgba(254,206,20,0.3);
border-radius: 999px;
font-size: 0.8125rem;
font-weight: 500;
color: #000000;
line-height: 1.2;
white-space: nowrap;
}

.counter-dot {
  width: 6px;
height: 6px;
border-radius: 50%;
background: var(--plan-primary);
flex-shrink: 0;
}

.counter-number {
  color: var(--plan-secondary);
font-weight: 700;
}

.header-auth {
  display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}

.header-auth svg {
  width: 18px;
height: 18px;
display: block;
}

.plan-user-nav {
  display: flex;
align-items: center;
gap: 8px;
}

.plan-auth-btn {
  display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 16px;
border: 1px solid var(--plan-secondary);
border-radius: 999px;
background: var(--plan-secondary);
color: #fff;
font-family: var(--plan-font);
font-size: 0.8125rem;
font-weight: 700;
text-decoration: none;
cursor: pointer;
transition: all var(--plan-transition);
}

.plan-auth-btn .icon-user,
.plan-auth-btn svg {
  color: currentColor;
}

.plan-auth-btn:hover {
  background: #1a1a1a;
border-color: #1a1a1a;
color: #fff;
}

.plan-auth-text-full {
  display: inline;
}

.plan-auth-text-short {
  display: none;
}

@media (max-width: 480px) {
  .plan-auth-text-full {
 display: none;
}
  .plan-auth-text-short {
 display: inline;
}
  .plan-auth-btn {
 padding: 7px 12px;
}
}
/* --- Header Divider --- */.header-divider {
  height: 1px;
background: var(--plan-border);
margin: 0;
opacity: 0.6;
}
/* --- Header Toolbar --- */.header-toolbar-wrap {
  padding: 8px 0;
pointer-events: auto;
max-height: 200px;
transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.35s ease;
opacity: 1;
}

.header-toolbar-wrap.is-collapsed {
  max-height: 0;
padding-top: 0;
padding-bottom: 0;
opacity: 0;
overflow: hidden;
}

.header-divider {
  height: 1px;
background: var(--plan-border);
margin: 0;
opacity: 0.6;
transition: opacity 0.35s ease;
}

.header.is-filter-collapsed .header-divider {
  opacity: 0;
}

.header.is-filter-collapsed .header-glass {
  border-bottom-left-radius: var(--plan-radius-xl);
border-bottom-right-radius: var(--plan-radius-xl);
}

.header-toolbar {
  display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: nowrap;
}

.toolbar-left {
  display: flex;
align-items: center;
gap: 6px;
flex: 1 1 auto;
min-width: 0;
flex-wrap: nowrap;
}

.toolbar-right {
  display: flex;
align-items: center;
gap: 12px;
flex: 0 1 auto;
min-width: 0;
flex-wrap: nowrap;
}
/* --- Filter Dropdowns --- */.filter-dropdown {
  position: relative;
}

.filter-dropdown-btn {
  display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border: 1px solid var(--plan-border);
border-radius: 999px;
background: var(--plan-surface);
color: var(--plan-text);
font-family: var(--plan-font);
font-size: 0.8125rem;
font-weight: 500;
cursor: pointer;
transition: all var(--plan-transition);
line-height: 1.3;
white-space: nowrap;
}

.filter-dropdown-btn:hover {
border-color: var(--plan-primary);
}

.filter-dropdown-btn:focus-visible {
  outline: 2px solid var(--plan-primary);
outline-offset: 2px;
}

.filter-icon {
  display: inline-flex;
align-items: center;
flex-shrink: 0;
color: var(--plan-text-secondary);
}

.filter-icon svg, .filter-icon i {
  width: 14px;
height: 14px;
}

.filter-text {
  color: var(--plan-text-secondary);
}

.filter-value {
  font-weight: 600;
color: var(--plan-text);
}

.filter-chevron {
  display: inline-flex;
align-items: center;
color: var(--plan-text-tertiary);
transition: transform var(--plan-transition);
}

.filter-chevron svg {
  width: 14px;
height: 14px;
display: block;
}

.filter-dropdown-btn[aria-expanded="true"] .filter-chevron {
  transform: rotate(180deg);
}

.filter-dropdown-panel {
  position: absolute;
top: calc(100% + 6px);
left: 0;
min-width: 200px;
max-width: 280px;
max-height: 360px;
background: var(--plan-surface);
border: 1px solid var(--plan-border);
border-radius: var(--plan-radius-lg);
box-shadow: var(--plan-shadow-lg);
z-index: 200;
display: none;
overflow: hidden;
flex-direction: column;
}

.header.has-filter-open {
  z-index: 201;
}

.filter-dropdown.open .filter-dropdown-btn {
  background: var(--plan-surface-alt);
border-color: var(--plan-primary);
}

.filter-dropdown-panel.show {
 display: flex;
}

.filter-dropdown.open .filter-dropdown-panel {
  display: flex;
}

.filter-dropdown-search-wrap {
  padding: 10px 12px 6px;
flex-shrink: 0;
}

.filter-dropdown-search {
  width: 100%;
padding: 8px 12px;
border: 1px solid var(--plan-border);
border-radius: var(--plan-radius-md);
background: var(--plan-surface-alt);
color: var(--plan-text);
font-family: var(--plan-font);
font-size: 0.8125rem;
outline: none;
transition: border-color var(--plan-transition);
}

.filter-dropdown-search:focus {
  border-color: var(--plan-primary);
}

.filter-dropdown-options {
  flex: 1;
overflow-y: auto;
padding: 4px 6px;
scrollbar-width: thin;
scrollbar-color: var(--plan-border) transparent;
}

.filter-dropdown-option {
  display: block;
width: 100%;
padding: 8px 12px;
border: none;
border-radius: var(--plan-radius-sm);
background: none;
color: var(--plan-text);
font-family: var(--plan-font);
font-size: 0.8125rem;
cursor: pointer;
text-align: left;
transition: background var(--plan-transition);
line-height: 1.4;
}

.filter-dropdown-option:hover {
  font-weight: 600;
}

.filter-dropdown-option.active {
  font-weight: 600;
}

.filter-dropdown-empty {
  padding: 20px 16px;
text-align: center;
color: var(--plan-text-tertiary);
font-size: 0.8125rem;
}
/* --- Plan Search --- */.plan-search {
  position: relative;
display: flex;
align-items: center;
flex: 0 0 auto;
width: 200px;
max-width: min(200px, 100%);
transition:
  width 0.42s cubic-bezier(0.22, 1, 0.36, 1),
  max-width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-search:focus-within,
.plan-search.has-value {
  width: 320px;
max-width: min(320px, 100%);
}

.plan-search-icon {
  position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--plan-text-tertiary);
pointer-events: none;
display: flex;
align-items: center;
width: 16px;
height: 16px;
transition: color 0.3s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-search:focus-within .plan-search-icon {
  color: var(--plan-text-secondary);
transform: translateY(-50%) scale(1.06);
}

.plan-search-input {
  width: 100%;
padding: 7px 36px 7px 36px;
border: 1px solid var(--plan-border);
border-radius: 999px;
background: var(--plan-surface-alt);
color: var(--plan-text);
font-family: var(--plan-font);
font-size: 0.8125rem;
outline: none;
transition:
  border-color 0.3s ease,
  background-color 0.3s ease,
  box-shadow 0.35s ease,
  padding 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-search-input:focus {
  border-color: var(--plan-primary);
background: var(--plan-surface);
box-shadow: 0 0 0 3px rgba(254, 206, 20, 0.16);
}

.plan-search-input::placeholder {
 color: var(--plan-text-tertiary);
transition: opacity 0.25s ease, color 0.25s ease;
}

.plan-search:focus-within .plan-search-input::placeholder {
  opacity: 0.72;
}

.plan-search-clear {
  position: absolute;
right: 32px;
top: 50%;
transform: translateY(-50%) scale(0.92);
background: none;
border: none;
cursor: pointer;
padding: 2px;
color: var(--plan-text-tertiary);
display: flex;
align-items: center;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition:
  color 0.25s ease,
  opacity 0.28s ease,
  visibility 0.28s ease,
  transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-search-clear.is-visible {
  opacity: 1;
visibility: visible;
pointer-events: auto;
transform: translateY(-50%) scale(1);
}

.plan-search-clear svg {
  width: 16px;
height: 16px;
display: block;
}

.plan-search-clear:hover {
 color: var(--plan-text);
}

.plan-search-kbd {
  position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
padding: 1px 6px;
border: 1px solid var(--plan-border);
border-radius: var(--plan-radius-sm);
background: var(--plan-surface);
color: var(--plan-text-tertiary);
font-family: var(--plan-font-mono);
font-size: 0.6875rem;
line-height: 1.4;
opacity: 1;
transition:
  opacity 0.28s ease,
  transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-search:focus-within .plan-search-kbd,
.plan-search.has-value .plan-search-kbd {
  opacity: 0;
transform: translateY(-50%) scale(0.9);
pointer-events: none;
}
/* --- Sort Tabs --- */.sort-tabs {
  position: relative;
display: inline-flex;
background: var(--plan-surface-alt);
border-radius: 999px;
padding: 3px;
gap: 2px;
}

.sort-tab {
  display: inline-flex;
align-items: center;
gap: 5px;
padding: 6px 14px;
border: none;
border-radius: 999px;
background: transparent;
color: var(--plan-text-secondary);
font-family: var(--plan-font);
font-size: 0.8125rem;
font-weight: 500;
cursor: pointer;
transition: all var(--plan-transition);
position: relative;
z-index: 1;
line-height: 1.3;
white-space: nowrap;
}

.sort-tab:hover {
 color: var(--plan-text);
}

.sort-tab.active {
  background: var(--plan-surface);
color: var(--plan-secondary);
box-shadow: var(--plan-shadow-sm);
font-weight: 600;
}

.sort-tab svg, .sort-tab i,.icon-flame, .icon-clock, .icon-user, .icon-palette, .icon-layers, .icon-user-check,.icon-chevron, .icon-x, .icon-search {
  width: 14px;
height: 14px;
flex-shrink: 0;
}
/* --- Main Content --- */.main {
  padding: 8px 0 40px;
}

.grid-container {
  display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}

@media (max-width: 1280px) {
 .grid-container {
 grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 1024px) {
 .grid-container {
 grid-template-columns: repeat(2, 1fr);
}
}

@media (max-width: 640px) {
 .grid-container {
 grid-template-columns: 1fr;
}
}
/* --- Grid Items / Cards --- */.grid-item {
  background: var(--plan-surface);
border: 1px solid var(--plan-border-light);
border-radius: var(--plan-radius-lg);
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
}

.grid-item:hover {
  border-color: var(--plan-primary);
box-shadow: var(--plan-shadow-md);
}

.grid-item:focus-visible {
  outline: 2px solid var(--plan-primary);
outline-offset: 2px;
}
/* --- Image Container --- */.image-container {
  position: relative;
width: 100%;
padding-top: 75%;
overflow: hidden;
background: var(--plan-surface-alt);
}

.image-slider {
  position: absolute;
top: 0;
left: 0;
height: 100%;
display: flex;
will-change: transform;
}

.image-slider.is-slide {
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-slider:not(.is-slide) {
  width: 100%;
}

.image-slider img {
  flex: 0 0 auto;
height: 100%;
object-fit: cover;
display: block;
position: relative;
opacity: 1;
transform: scale(1);
transition: filter 0.45s ease, transform 0.45s ease;
}

.image-slider:not(.is-slide) img {
  width: 100%;
}

.image-slider img.active:not(.loaded):not(.is-blur):not([src]),
.image-slider img.active:not(.loaded):not(.is-blur)[src=""] {
  opacity: 0;
}

.image-container.is-loading .skeleton {
  opacity: 1;
  z-index: 2;
}

.image-container .skeleton.is-hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.image-slider img.is-blur {
  filter: blur(20px);
transform: scale(1.06);
}

.image-slider img.loaded {
  filter: none;
}

.image-container:hover .image-slider img.active.loaded {
  transform: scale(1.08);
}

.image-container:hover .image-slider img.active.is-blur {
  transform: scale(1.06);
}

.image-container > img:only-of-type {
  position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: opacity 0.5s ease, transform 0.45s ease;
transform: scale(1);
opacity: 0;
}

.image-container:hover > img:only-of-type[src]:not([src=""]) {
  transform: scale(1.08);
}

.image-container > img:only-of-type[src]:not([src=""]) {
 opacity: 1;
}

.image-container > img.loaded,.image-container img.loaded,.image-slider img.loaded {
  opacity: 1;
}
/* --- Skeleton --- */.skeleton {
  position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
  90deg,
  var(--plan-surface-alt) 0%,
  #ececec 20%,
  #f5f5f5 40%,
  #ececec 60%,
  var(--plan-surface-alt) 80%,
  var(--plan-surface-alt) 100%
);
background-size: 200% 100%;
animation: skeleton-loading 1.2s ease-in-out infinite;
z-index: 2;
pointer-events: none;
}

.grid-item-skeleton {
  pointer-events: none;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}

.grid-item-skeleton:hover {
  border-color: transparent;
  box-shadow: none;
}

.grid-item-skeleton .image-container {
  background: transparent;
}

@keyframes skeleton-loading {
  0% {
 background-position: 200% 0;
}
  100% {
 background-position: -200% 0;
}
}
/* --- Slider Controls --- */.slider-controls {
  position: absolute;
top: 50%;
left: 0;
right: 0;
transform: translateY(-50%);
display: flex;
justify-content: space-between;
padding: 0 8px;
opacity: 0;
transition: opacity 0.25s ease;
pointer-events: none;
}

.image-container:hover .slider-controls {
  opacity: 1;
pointer-events: auto;
}

.prev-btn, .next-btn {
  width: 32px;
height: 32px;
border-radius: 50%;
background: rgba(255,255,255,0.95);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.2s ease;
box-shadow: var(--plan-shadow-sm);
color: var(--plan-text);
}

.prev-btn:hover, .next-btn:hover {
  transform: scale(1.08);
}

/* 首页卡片仅展示置顶首图，隐藏左右切换与指示点 */
.grid-item .slider-controls,
.grid-item .slider-indicators {
  display: none !important;
}

/* --- Slider Indicators --- */.slider-indicators {
  position: absolute;
bottom: 12px;
left: 12px;
display: flex;
gap: 5px;
}

.indicator {
  width: 4px;
height: 4px;
border-radius: 50%;
background: rgba(255,255,255,0.5);
transition: all 0.3s ease;
}

.indicator.active {
  width: 18px;
border-radius: 4px;
background: var(--plan-primary);
}
/* --- Image Actions --- */.image-actions {
  position: absolute;
bottom: 10px;
right: 10px;
display: flex;
gap: 6px;
opacity: 0;
transition: all 0.25s ease;
}

.image-container:hover .image-actions {
 opacity: 1;
}

.favorite-btn, .plan-vr-btn, .copy-btn {
  width: 32px;
height: 32px;
border-radius: 16px;
background: rgba(255,255,255,0.95);
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: flex-start;
padding: 0 8px;
overflow: hidden;
white-space: nowrap;
transition: width 0.3s ease, padding 0.3s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-label {
  font-size: 10px;
font-weight: 700;
margin-left: 5px;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
flex-shrink: 0;
white-space: nowrap;
}

.favorite-btn:hover, .plan-vr-btn:hover, .copy-btn:hover {
  width: 95px;
padding: 0 10px 0 8px;
}

.favorite-btn:hover .btn-label,.plan-vr-btn:hover .btn-label,.copy-btn:hover .btn-label {
  opacity: 1;
}

.favorite-btn svg, .plan-vr-btn svg, .copy-btn svg {
  flex-shrink: 0;
}

.favorite-btn:hover, .plan-vr-btn:hover, .copy-btn:hover {
  width: 95px;
min-width: 32px;
border-radius: 16px;
padding: 0 10px 0 8px;
justify-content: flex-start;
gap: 0;
}

.favorite-btn:hover .btn-label,.plan-vr-btn:hover .btn-label,.copy-btn:hover .favorite-btn svg, .plan-vr-btn svg, .copy-btn svg {
  flex-shrink: 0;
}

.favorite-btn:hover, .plan-vr-btn:hover, .copy-btn:hover {
  max-width: 150px;
border-radius: 16px;
padding: 0 10px;
gap: 6px;
background: #fff;
}

.favorite-btn:hover, .plan-vr-btn:hover, .copy-btn:hover {
  background: var(--plan-surface);
color: var(--plan-text);
transform: scale(1.08);
}

.favorite-btn.active {
 color: var(--plan-primary);
}

.favorite-btn.active svg {
 fill: var(--plan-primary);
stroke: var(--plan-primary);
}

.favorite-btn.active .btn-label {
 color: var(--plan-primary);
}

.favorite-btn.active:hover {
 color: var(--plan-primary);
}

.copy-btn svg {
 width: 14px;
height: 14px;
}

.plan-vr-btn svg, .plan-vr-btn img {
  width: 16px;
height: 16px;
object-fit: contain;
}
/* --- Plan Empty --- */.plan-empty {
  grid-column: 1 / -1;
text-align: center;
padding: 80px 20px;
color: var(--plan-text-tertiary);
font-size: 1rem;
}
/* --- Grid Footer / Load More --- */.plan-grid-footer {
  text-align: center;
  padding: 24px 0;
  min-height: 24px;
  color: var(--plan-text-secondary);
  font-size: 0.875rem;
}

.plan-grid-footer .plan-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: transparent;
  font-size: 0;
}

.plan-loading-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-top-color: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
  animation: plan-loading-spin 0.7s linear infinite;
}

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

.plan-load-more {
  display: inline-flex;
align-items: center;
gap: 8px;
padding: 10px 28px;
border: 1px solid var(--plan-border);
border-radius: 999px;
background: var(--plan-surface);
color: var(--plan-text);
font-family: var(--plan-font);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all var(--plan-transition);
}

.plan-load-more:hover {
  background: var(--plan-primary);
border-color: var(--plan-primary);
color: var(--plan-secondary);
box-shadow: 0 4px 12px rgba(254,206,20,0.3);
}

.plan-load-more .spinner {
  display: none;
width: 16px;
height: 16px;
border: 2px solid var(--plan-border);
border-top-color: var(--plan-primary);
border-radius: 50%;
animation: plan-spin 0.6s linear infinite;
}

.plan-load-more.is-loading .spinner {
 display: inline-block;
}

.plan-load-end {
  color: var(--plan-text-tertiary);
font-size: 0.8125rem;
padding: 8px 0;
}
@keyframes plan-spin {
  to {
 transform: rotate(360deg);
}
}
/* --- Floating Buttons --- */.floating-buttons {
  position: fixed;
right: 24px;
bottom: 88px;
display: flex;
flex-direction: column;
gap: 12px;
z-index: 99;
}

.floating-btn {
  width: 48px;
height: 48px;
border-radius: 50%;
background: var(--plan-surface);
border: 1px solid var(--plan-border);
box-shadow: var(--plan-shadow-md);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.25s ease;
color: var(--plan-text-secondary);
}

.floating-btn:hover {
  background: var(--plan-primary);
border-color: var(--plan-primary);
color: var(--plan-secondary);
transform: scale(1.08);
box-shadow: 0 4px 16px rgba(254,206,20,0.35);
}

.floating-btn:focus-visible {
  outline: 2px solid var(--plan-primary);
outline-offset: 2px;
}

.floating-btn svg {
  width: 22px;
height: 22px;
}

.floating-btn.active {
 color: var(--plan-primary);
}

.floating-btn.active svg {
 fill: var(--plan-primary);
stroke: var(--plan-primary);
}

.back-to-top {
  opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
visibility: visible;
}
/* --- Collection Sidebar --- */.collection-sidebar {
  position: fixed;
top: 0;
right: -420px;
width: 420px;
height: 100vh;
background: var(--plan-surface);
border-left: 1px solid var(--plan-border);
box-shadow: -4px 0 20px rgba(0,0,0,0.1);
z-index: 200;
transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
display: flex;
flex-direction: column;
}

.collection-sidebar.open {
 right: 0;
}

.sidebar-overlay {
  position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.3);
z-index: 199;
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
visibility: visible;
}

.sidebar-header {
  padding: 20px 24px;
border-bottom: 1px solid var(--plan-border);
display: flex;
justify-content: space-between;
align-items: center;
}

.sidebar-header h2 {
  font-family: var(--plan-font);
font-size: 1.125rem;
font-weight: 700;
color: var(--plan-text);
display: flex;
align-items: center;
gap: 8px;
margin: 0;
}

.sidebar-header h2 svg {
 color: var(--plan-danger);
}

.sidebar-close {
  width: 32px;
height: 32px;
border-radius: var(--plan-radius-sm);
border: none;
background: none;
cursor: pointer;
color: var(--plan-text-tertiary);
display: flex;
align-items: center;
justify-content: center;
transition: all var(--plan-transition);
}

.sidebar-close:hover {
  background: var(--plan-surface-alt);
color: var(--plan-text);
}

.sidebar-content {
  flex: 1;
overflow-y: auto;
padding: 24px;
}

.sidebar-empty {
  display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px 0;
color: var(--plan-text-tertiary);
text-align: center;
}

.sidebar-empty p {
 margin-top: 12px;
font-size: 0.9375rem;
}

.collection-grid {
  display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

.collection-item {
  aspect-ratio: 4/3;
border-radius: var(--plan-radius-md);
overflow: hidden;
cursor: pointer;
position: relative;
border: 1px solid var(--plan-border-light);
transition: all var(--plan-transition);
}

.collection-item:hover {
 border-color: var(--plan-primary);
}

.collection-item img {
  width: 100%;
height: 100%;
object-fit: cover;
}

.remove-collect-btn {
  position: absolute;
top: 5px;
right: 5px;
width: 24px;
height: 24px;
border-radius: 50%;
background: rgba(0,0,0,0.6);
border: none;
color: #fff;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity var(--plan-transition);
}

.collection-item:hover .remove-collect-btn {
 opacity: 1;
}

.remove-collect-btn:hover {
 background: var(--plan-danger);
}
/* 弹窗样式 — 对齐 FANGAN.COOL DetailModal */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 须高于 member-mobile-slide(5200) / 筛选面板(5300)，否则收藏滑层里点开方案会被挡住 */
  z-index: 5400;
  opacity: 0;
  visibility: hidden;
  background-color: rgba(17, 18, 20, 0);
  backdrop-filter: blur(0);
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out, background-color 0.25s ease-out, backdrop-filter 0.25s ease-out;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  background-color: rgba(17, 18, 20, 0.92);
  backdrop-filter: blur(12px);
}

.modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  border: 0;
  background: var(--plan-modal-bg);
  transform: scale(0.98);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-close,
.modal-close-desktop,
.modal-close-mobile {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(34, 36, 41, 0.85);
  color: #999999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.modal-close-desktop {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 80;
}

.modal-right .modal-close-desktop {
  position: static;
  top: auto;
  right: auto;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
  color: #cccccc;
}

.modal-right .modal-close-desktop:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  transform: none;
}

.modal-close:hover {
  color: #fff;
  background: rgba(30, 41, 59, 0.9);
  transform: scale(1.05);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-close svg {
  width: 16px;
  height: 16px;
}

.modal-left {
  position: relative;
  flex: 1 1 75%;
  width: 75%;
  min-width: 0;
  height: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.modal-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.modal-slider img.active {
  opacity: 1;
}

.modal-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.modal-prev,
.modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(34, 36, 41, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, border-color 0.2s ease;
}

.modal-prev {
  left: 16px;
  transform: translate(-16px, -50%);
}

.modal-next {
  right: 16px;
  transform: translate(16px, -50%);
}

.modal-left:hover .modal-prev {
  opacity: 1;
  transform: translate(0, -50%);
}

.modal-left:hover .modal-next {
  opacity: 1;
  transform: translate(0, -50%);
}

.modal-prev:hover,
.modal-next:hover {
  background: rgba(34, 36, 41, 0.92);
  border-color: var(--plan-primary);
}

.modal-prev svg,
.modal-next svg {
  width: 16px;
  height: 16px;
}

.modal-counter {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: auto;
  z-index: 30;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  border: 1px solid var(--plan-modal-border);
  border-radius: 8px;
  padding: 8px 14px;
  color: #eeeeee;
  font-size: 12px;
  font-family: var(--plan-font-mono);
}

.modal-float-favorite {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.modal-float-favorite:hover {
  background: rgba(0, 0, 0, 0.72);
  transform: scale(1.05);
}

.modal-float-favorite.active {
  background: var(--plan-primary);
  color: #111;
  border-color: transparent;
}

.modal-float-favorite.active svg {
  fill: currentColor;
}

.modal-float-favorite svg {
  width: 18px;
  height: 18px;
}

.modal-float-favorite .modal-favorite-count {
  display: none;
}

.modal-right {
  flex: 0 0 25%;
  width: 25%;
  min-width: 280px;
  max-width: 360px;
  height: 100%;
  background: var(--plan-modal-sidebar);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 6;
  border-left: 1px solid var(--plan-modal-border);
}

.modal-sidebar-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--plan-modal-border);
}

.modal-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.author-details {
  flex: 1;
  min-width: 0;
}

.author-name-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.author-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.author-bio {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #999999;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.author-avatar-fallback {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
}

.modal-wechat-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.modal-wechat-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #07c160;
  background: rgba(7, 193, 96, 0.12);
  border: 1px solid rgba(7, 193, 96, 0.28);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-wechat-trigger:hover {
  background: rgba(7, 193, 96, 0.22);
  color: #1be072;
}

.modal-wechat-trigger svg {
  width: 15px;
  height: 15px;
}

.modal-wechat-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  width: 192px;
  padding: 12px;
  border-radius: 12px;
  background: #222;
  border: 1px solid var(--plan-modal-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 50;
}

.modal-wechat-popover.is-open {
  display: flex;
}

.modal-wechat-qr {
  width: 112px;
  height: 112px;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  overflow: hidden;
}

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

.modal-wechat-hint {
  font-size: 9px;
  color: #999999;
  margin: 0;
  text-align: center;
}

.modal-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-title {
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(1.45em * 2 + 4px);
  overflow: hidden;
}

.modal-meta-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
  line-height: 1.45;
  min-width: 0;
}

.modal-meta-label {
  flex-shrink: 0;
  color: #777777;
}

.modal-meta-value {
  color: #bbbbbb;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.modal-tag {
  font-size: 10px;
  color: #999999;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--plan-modal-border);
  border-radius: 999px;
  padding: 3px 10px;
}

.modal-thumbs {
  flex: 1;
  min-height: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  align-content: start;
}

.modal-thumb {
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.modal-thumb:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.modal-thumb.active {
  border-color: var(--plan-primary);
}

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

.modal-actions {
  flex-shrink: 0;
  padding: 14px 16px 18px;
  background: var(--plan-modal-sidebar);
  border-top: 1px solid var(--plan-modal-border);
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.vr-btn,
.copy-plan-btn {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 14px 10px;
  border-radius: 8px;
  border: none;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.vr-btn:hover,
.copy-plan-btn:hover {
  background: #f3f4f6;
}

.modal-favorite-btn.active svg {
  fill: currentColor;
}

.modal-favorite-count {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.vr-btn svg,
.copy-plan-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .modal-mobile-head {
    display: none;
  }

  .modal-close-mobile {
    display: none;
  }
}

/* --- Auth Modal --- */.plan-auth-overlay {
  position: fixed;
inset: 0;
background: rgba(0,0,0,0.4);
z-index: 5600;
}

.plan-auth-modal {
  position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%,-50%) scale(0.95);
z-index: 5601;
max-width: 440px;
width: calc(100% - 32px);
opacity: 0;
visibility: hidden;
transition: all 0.25s ease;
}

.plan-auth-modal:not([hidden]) {
  opacity: 1;
visibility: visible;
transform: translate(-50%,-50%) scale(1);
}

.plan-auth-modal-card {
  background: var(--plan-surface);
border-radius: var(--plan-radius-xl);
padding: 32px;
box-shadow: var(--plan-shadow-xl);
border: 1px solid var(--plan-border);
position: relative;
max-height: 90vh;
overflow-y: auto;
}

.plan-auth-close {
  position: absolute;
top: 12px;
right: 12px;
width: 32px;
height: 32px;
border-radius: 50%;
border: none;
background: var(--plan-surface-alt);
color: var(--plan-text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 18px;
line-height: 1;
transition: all var(--plan-transition);
}

.plan-auth-close:hover {
  background: var(--plan-surface-hover);
color: var(--plan-text);
}

.plan-auth-head {
 margin-bottom: 20px;
}

.plan-auth-head h2 {
  font-size: 1.25rem;
font-weight: 700;
color: var(--plan-text);
margin-bottom: 4px;
}

.plan-auth-head p {
  font-size: 0.875rem;
color: var(--plan-text-secondary);
}

.plan-auth-tabs {
  display: flex;
background: var(--plan-surface-alt);
border-radius: var(--plan-radius-md);
padding: 3px;
margin-bottom: 20px;
gap: 2px;
}

.plan-auth-tab {
  flex: 1;
padding: 8px 12px;
border: none;
border-radius: var(--plan-radius-sm);
background: transparent;
color: var(--plan-text-secondary);
font-family: var(--plan-font);
font-size: 0.875rem;
font-weight: 500;
cursor: pointer;
transition: all var(--plan-transition);
}

.plan-auth-tab.active {
  background: var(--plan-surface);
color: var(--plan-text);
font-weight: 600;
box-shadow: var(--plan-shadow-sm);
}

.plan-auth-message {
  padding: 10px 14px;
border-radius: var(--plan-radius-md);
font-size: 0.8125rem;
margin-bottom: 16px;
}

.plan-auth-message:not([hidden]) {
 display: block;
}

.plan-auth-message.is-error {
 background: #FFFFFF;
color: var(--plan-danger);
border: 1px solid #000000;
}

.plan-auth-message.is-success {
 background: var(--plan-primary-light);
color: #000000;
border: 1px solid rgba(254,206,20,0.5);
}

.plan-auth-form {
 display: flex;
flex-direction: column;
gap: 16px;
}

.plan-auth-form[hidden] {
 display: none;
}

.plan-auth-field {
 display: flex;
flex-direction: column;
gap: 4px;
}

.plan-auth-field > span {
  font-size: 0.8125rem;
font-weight: 500;
color: var(--plan-text);
}

.plan-auth-field input[type="text"],
.plan-auth-field input[type="email"],
.plan-auth-field input[type="password"],
.plan-auth-field input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid var(--plan-border);
  border-radius: var(--plan-radius-md);
  background: var(--plan-surface);
  color: var(--plan-text);
  font-family: var(--plan-font);
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--plan-transition);
  appearance: none;
  -webkit-appearance: none;
}

.plan-auth-field input:focus {
  border-color: var(--plan-primary);
box-shadow: 0 0 0 3px rgba(254,206,20,0.15);
}

.plan-auth-captcha-row {
  display: flex;
gap: 8px;
}

.plan-auth-captcha-row input {
 flex: 1;
}

.plan-auth-captcha-img {
  height: 40px;
border-radius: var(--plan-radius-sm);
cursor: pointer;
border: 1px solid var(--plan-border);
}

.plan-auth-mail-btn {
  flex-shrink: 0;
padding: 8px 14px;
border: 1px solid var(--plan-primary);
border-radius: var(--plan-radius-md);
background: var(--plan-primary-light);
color: #000000;
font-family: var(--plan-font);
font-size: 0.8125rem;
font-weight: 500;
cursor: pointer;
white-space: nowrap;
transition: all var(--plan-transition);
}

.plan-auth-mail-btn:hover {
 background: var(--plan-primary);
}

.plan-auth-check {
  display: flex;
align-items: center;
gap: 8px;
font-size: 0.8125rem;
color: var(--plan-text-secondary);
}

.plan-auth-check input[type="checkbox"] {
  width: 16px;
height: 16px;
accent-color: var(--plan-primary);
}

.plan-auth-submit {
  width: 100%;
padding: 10px 16px;
border: none;
border-radius: var(--plan-radius-md);
background: var(--plan-secondary);
color: var(--plan-surface);
font-family: var(--plan-font);
font-size: 0.9375rem;
font-weight: 600;
cursor: pointer;
transition: all var(--plan-transition);
}

.plan-auth-submit:hover {
 background: #2a2a2a;
}

.plan-auth-submit:focus-visible {
 outline: 2px solid var(--plan-primary);
outline-offset: 2px;
}

.plan-auth-tip {
  margin: 0;
color: var(--plan-text-secondary);
font-size: 0.8125rem;
line-height: 1.5;
text-align: center;
padding: 8px 4px;
}

.plan-auth-tip + .plan-auth-submit {
  margin-top: 4px;
}

.plan-auth-link-btn {
  width: 100%;
padding: 8px;
border: none;
background: none;
color: var(--plan-text-secondary);
font-family: var(--plan-font);
font-size: 0.8125rem;
cursor: pointer;
transition: color var(--plan-transition);
}

.plan-auth-link-btn:hover {
 color: var(--plan-primary);
}

.plan-auth-tip {
  font-size: 0.8125rem;
color: var(--plan-text-tertiary);
text-align: center;
}

.plan-auth-panel[hidden] {
  display: none;
}

.plan-auth-subtitle {
  margin: 0;
}

.plan-auth-qr-box {
  width: 200px;
  height: 200px;
  margin: 8px auto 16px;
  border: 1px solid var(--plan-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
}

.plan-auth-qr-placeholder {
  padding: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--plan-text-secondary);
  line-height: 1.5;
}

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

.plan-auth-qr-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 8px;
  font-size: 0.9375rem;
  color: var(--plan-text);
  font-weight: 500;
}

.plan-auth-qr-wechat-icon {
  width: 22px;
  height: 22px;
  color: #07c160;
  display: inline-flex;
}

.plan-auth-qr-wechat-icon svg {
  width: 100%;
  height: 100%;
}

.plan-auth-oauth-fallback {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.875rem;
  color: #07c160;
  text-decoration: none;
}

.plan-auth-oauth-fallback:hover {
  text-decoration: underline;
}

.plan-auth-subtabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--plan-border);
}

.plan-auth-subtab {
  position: relative;
  padding: 10px 4px 12px;
  border: none;
  background: none;
  color: var(--plan-text-secondary);
  font-family: var(--plan-font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}

.plan-auth-subtab.active {
  color: var(--plan-text);
  font-weight: 700;
}

.plan-auth-subtab.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--plan-text);
  border-radius: 2px;
}

.plan-auth-mobile-tab[hidden] {
  display: none;
}

.plan-auth-field-icon {
  position: relative;
  display: block;
}

.plan-auth-field-icon > span:not(.plan-auth-input-icon) {
  display: none;
}

.plan-auth-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--plan-text-tertiary);
  pointer-events: none;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan-auth-input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plan-auth-field-icon input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  height: 44px;
  padding: 10px 14px 10px 40px !important;
  border: 1px solid var(--plan-border);
  border-radius: var(--plan-radius-md);
  background: var(--plan-surface);
  color: var(--plan-text);
  font-family: var(--plan-font);
  font-size: 0.875rem;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.plan-auth-sms-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  position: relative;
}

.plan-auth-sms-row .plan-auth-input-icon {
  top: 22px;
}

.plan-auth-sms-row input {
  flex: 1;
  min-width: 0;
}

.plan-auth-sms-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--plan-border);
  border-radius: var(--plan-radius-md);
  background: var(--plan-surface-alt);
  color: var(--plan-text);
  font-family: var(--plan-font);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.plan-auth-sms-btn:hover {
  background: var(--plan-surface-hover);
}

.plan-auth-sms-tip {
  margin: -8px 0 0;
  font-size: 0.75rem;
  color: var(--plan-text-tertiary);
}

.plan-auth-form-links {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.plan-auth-form-links .plan-auth-link-btn {
  width: auto;
  padding: 4px 0;
}

.plan-auth-others {
  margin-top: 28px;
  text-align: center;
}

.plan-auth-others[hidden] {
  display: none;
}

.plan-auth-others-label {
  position: relative;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--plan-text-tertiary);
}

.plan-auth-others-label::before,
.plan-auth-others-label::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--plan-border);
}

.plan-auth-others-label::before {
  left: 0;
}

.plan-auth-others-label::after {
  right: 0;
}

.plan-auth-others-list {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.plan-auth-other-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--plan-text-secondary);
  font-family: var(--plan-font);
  font-size: 0.75rem;
}

.plan-auth-other-btn[hidden] {
  display: none;
}

.plan-auth-other-btn:hover {
  color: var(--plan-text);
}

.plan-auth-other-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--plan-surface-alt);
  color: inherit;
  font-weight: 700;
  font-size: 0.875rem;
}

.plan-auth-other-icon svg {
  width: 22px;
  height: 22px;
}

.plan-auth-other-wechat {
  color: #07c160;
  background: rgba(7, 193, 96, 0.1);
}

.plan-auth-other-kujiale {
  color: #1a73e8;
  background: rgba(26, 115, 232, 0.1);
}

.plan-auth-other-mobile {
  color: var(--plan-text);
}

.plan-auth-other-qq {
  color: #12b7f5;
  background: rgba(18, 183, 245, 0.12);
}

.plan-auth-legal {
  margin: 20px 0 0;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.6;
  color: var(--plan-text-tertiary);
}

.plan-auth-legal a {
  color: var(--plan-text-secondary);
  text-decoration: none;
}

.plan-auth-legal a:hover {
  color: var(--plan-text);
  text-decoration: underline;
}

/* --- QR Modal --- */.qr-modal {
  position: fixed;
inset: 0;
background: rgba(0,0,0,0.7);
display: flex;
align-items: center;
justify-content: center;
z-index: 5400;
}

.qr-content {
  background: var(--plan-surface);
border-radius: var(--plan-radius-lg);
padding: 28px;
text-align: center;
position: relative;
max-width: 320px;
width: 90%;
box-shadow: var(--plan-shadow-lg);
}

.qr-close {
  position: absolute;
top: 12px;
right: 16px;
background: none;
border: none;
color: var(--plan-text-tertiary);
font-size: 24px;
cursor: pointer;
}

.qr-close:hover {
 color: var(--plan-text);
}

.qr-content h3 {
  color: var(--plan-text);
margin-bottom: 20px;
font-size: 1.125rem;
font-weight: 700;
}

.qr-code {
  width: 200px;
height: 200px;
margin-bottom: 16px;
border-radius: var(--plan-radius-md);
}

.qr-content p {
 color: var(--plan-text-secondary);
font-size: 0.875rem;
}

/* --- VR Overlay (detail modal / mobile) --- */
.plan-vr-overlay {
  position: fixed;
  inset: 0;
  z-index: 5800;
  background: #000;
  display: flex;
  flex-direction: column;
}

.plan-vr-overlay[hidden] {
  display: none !important;
}

.plan-vr-back {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.72);
  color: #fff;
  font-family: var(--plan-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.plan-vr-back:hover {
  background: rgba(34, 36, 41, 0.9);
}

.plan-vr-back svg {
  display: block;
  flex-shrink: 0;
}

.plan-vr-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

body.plan-vr-open {
  overflow: hidden;
}

body.plan-vr-open .mobile-bottom-nav {
  visibility: hidden;
  pointer-events: none;
}

/* --- Toast --- */.plan-toast-container {
  position: fixed;
top: 24px;
left: 50%;
z-index: 10050;
transform: translateX(-50%);
pointer-events: none;
max-width: min(92vw, 420px);
}

.plan-toast-wrap {
  position: fixed;
top: 24px;
left: 50%;
z-index: 10050;
transform: translateX(-50%);
pointer-events: none;
}

.plan-toast {
  display: flex;
align-items: center;
justify-content: center;
padding: 12px 20px;
border-radius: 999px;
background: var(--plan-secondary);
border: 1px solid rgba(255,255,255,0.1);
box-shadow: var(--plan-shadow-lg);
color: var(--plan-surface);
font-size: 0.875rem;
line-height: 1.5;
opacity: 0;
transform: translateY(-8px);
transition: opacity 0.22s ease, transform 0.22s ease;
}

.plan-toast.is-visible {
  opacity: 1;
transform: translateY(0);
}

.plan-toast--success {
  background: var(--plan-success);
color: #000000;
}

.plan-toast--error {
  background: var(--plan-danger);
color: #ffffff;
}

.plan-toast--info {
  background: var(--plan-secondary);
color: var(--plan-surface);
}

.plan-toast__text {
  text-align: center;
word-break: break-word;
}

.plan-toast svg {
  width: 16px;
height: 16px;
flex-shrink: 0;
margin-right: 8px;
}

@media (max-width: 768px) {
  .plan-toast-wrap {
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: 16px;
    right: 16px;
    transform: none;
    width: auto;
    max-width: none;
  }

  .plan-toast {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.8125rem;
    line-height: 1.55;
    justify-content: flex-start;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
    transform: translateY(-10px);
  }

  .plan-toast.is-visible {
    transform: translateY(0);
  }

  .plan-toast--info {
    background: rgba(255, 255, 255, 0.98);
    color: var(--plan-text);
    border: 1px solid var(--plan-border);
    border-left: 4px solid var(--plan-primary);
  }

  .plan-toast--success {
    background: var(--plan-primary-light);
    color: #000000;
    border: 1px solid rgba(254,206,20,0.5);
    border-left: 4px solid var(--plan-primary);
  }

  .plan-toast--error {
    background: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    border-left: 4px solid #000000;
  }

  .plan-toast__text {
    text-align: left;
  }
}
/* --- Single Detail Page --- */.plan-single-page {
  background: var(--plan-surface);
}

.plan-detail-mobile {
  max-width: var(--plan-max-width);
margin: 0 auto;
padding: 0 var(--plan-gutter);
padding-top: 8px;
position: relative;
}

.plan-detail-head {
  display: flex;
align-items: center;
gap: 12px;
padding: 12px 0 20px;
}

.plan-detail-back {
  width: 36px;
height: 36px;
border-radius: 50%;
background: var(--plan-surface-alt);
border: 1px solid var(--plan-border);
display: flex;
align-items: center;
justify-content: center;
color: var(--plan-text);
text-decoration: none;
transition: all var(--plan-transition);
flex-shrink: 0;
}

.plan-detail-back:hover {
  background: var(--plan-primary);
border-color: var(--plan-primary);
color: var(--plan-secondary);
}

.plan-detail-back svg {
  width: 18px;
height: 18px;
}

.plan-detail-author {
  font-family: var(--plan-font);
font-size: 0.9375rem;
font-weight: 600;
color: var(--plan-text);
margin: 0;
}

.plan-detail-gallery {
  position: relative;
  border-radius: var(--plan-radius-lg);
  overflow: hidden;
  background: #0a0a0a;
  aspect-ratio: 4/3;
  max-height: 70vh;
}

.plan-detail-slider {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.plan-detail-slider img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  inset: 0;
  margin: auto;
}

.plan-detail-slider img.active {
  opacity: 1;
}

.plan-detail-counter {
  position: absolute;
right: 16px;
bottom: 16px;
padding: 4px 12px;
background: rgba(0,0,0,0.55);
border-radius: 999px;
color: #fff;
font-family: var(--plan-font-mono);
font-size: 0.8125rem;
line-height: 1.4;
backdrop-filter: blur(4px);
}

.plan-detail-actions {
  margin-top: 16px;
padding: 16px;
display: flex;
gap: 8px;
border: 1px solid var(--plan-border);
border-radius: var(--plan-radius-lg);
background: var(--plan-surface);
margin-bottom: 24px;
}

.plan-detail-actions .modal-favorite-btn,.plan-detail-actions .vr-btn,.plan-detail-actions .copy-plan-btn {
  flex: 1;
padding: 10px 12px;
border: 1px solid var(--plan-border);
border-radius: var(--plan-radius-md);
font-family: var(--plan-font);
font-size: 0.8125rem;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all var(--plan-transition);
background: var(--plan-surface);
color: var(--plan-text);
white-space: nowrap;
}

.plan-detail-actions .modal-favorite-btn:hover {
  border-color: var(--plan-primary);
color: var(--plan-primary);
}

.plan-detail-actions .modal-favorite-btn.active {
  background: var(--plan-primary);
color: var(--plan-secondary);
border-color: var(--plan-primary);
}

.plan-detail-actions .vr-btn:hover,.plan-detail-actions .copy-plan-btn:hover {
  background: var(--plan-surface-hover);
border-color: var(--plan-primary);
}

@media (max-width: 768px) {
  .plan-detail-gallery {
    max-height: 50vh;
}
}
/* --- Focus Visible Global --- */
.filter-dropdown-search:focus-visible {
  outline: none;
}

.plan-search-input:focus-visible {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--plan-primary);
outline-offset: 2px;
}
/* --- Responsive --- */@media (max-width: 1200px) {
  .header-toolbar,
  .toolbar-left,
  .toolbar-right {
    gap: 8px;
  }

  .filter-dropdown-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .plan-search {
    width: 180px;
    max-width: 180px;
  }

  .plan-search:focus-within,
  .plan-search.has-value {
    width: 260px;
    max-width: 260px;
  }
}

@media (max-width: 900px) {
  .filter-dropdown-btn {
    padding: 6px 8px;
    gap: 4px;
  }

  .filter-text {
    max-width: 5.5em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan-search {
    width: 150px;
    max-width: 150px;
  }

  .plan-search:focus-within,
  .plan-search.has-value {
    width: 220px;
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .modal.show {
    padding: 0;
  }

  .modal-mobile-layout.show {
    background-color: #0a0a0a;
    backdrop-filter: none;
  }

  .modal-mobile-layout {
    align-items: stretch;
  }

  .modal-mobile-layout .modal-content {
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 100dvh;
    border-radius: 0;
    transform: none;
    overflow: hidden;
  }

  .modal-mobile-layout.show .modal-content {
    transform: none;
  }

  .modal-mobile-layout .modal-close-desktop {
    display: none;
  }

  .modal-mobile-layout .modal-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex: 0 0 auto;
    padding: 10px 12px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(17, 18, 20, 0.98);
  }

  .modal-mobile-layout .modal-close-mobile {
    position: static;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    color: #fff;
  }

  .modal-mobile-layout .modal-close-mobile:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
  }

  .modal-mobile-author-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
  }

  .modal-mobile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .modal-mobile-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal-mobile-wechat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--plan-primary);
    cursor: pointer;
    flex-shrink: 0;
  }

  .modal-mobile-wechat svg {
    width: 16px;
    height: 16px;
  }

  .modal-mobile-head-spacer {
    width: 36px;
    flex-shrink: 0;
  }

  .modal-mobile-layout .modal-left {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: auto;
    border-right: 0;
    border-bottom: 0;
    background: #000;
  }

  .modal-mobile-layout .modal-slider {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* 按宽边放大：contain，不满屏留黑边，禁止裁切 */
  .modal-mobile-layout .modal-slider img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .modal-mobile-layout .modal-float-favorite {
    right: 14px;
    bottom: 14px;
  }

  .modal-mobile-wechat svg {
    width: 16px;
    height: 16px;
  }

  .modal-mobile-layout .modal-controls,
  .modal-mobile-layout .modal-prev,
  .modal-mobile-layout .modal-next {
    display: none;
  }

  .modal-mobile-layout .modal-right {
    display: contents;
  }

  .modal-mobile-layout .modal-sidebar-header {
    display: none !important;
  }

  .modal-mobile-layout .modal-body {
    display: none;
  }

  .modal-mobile-layout .modal-actions {
    order: 3;
    flex: 0 0 auto;
    width: 100%;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(17, 18, 20, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .modal-mobile-layout .modal-content {
    display: flex;
  }

  .modal-mobile-layout .modal-left {
    order: 2;
  }

  .modal-mobile-layout .modal-mobile-head {
    order: 1;
  }

  .modal-mobile-layout .modal-counter {
    bottom: 16px;
    left: 16px;
    right: auto;
  }

  .modal-mobile-head {
    display: none;
  }

  .header-glass {
 border-radius: var(--plan-radius-lg);
}
  .header-top {
 height: 48px;
}
  .counter-badge {
 font-size: 0.75rem;
padding: 4px 10px;
}
  #plan-site-header .logo,
  #plan-site-header h1.logo {
 font-size: 1.125rem;
}
  .collection-sidebar {
 width: 100%;
right: -100%;
}
  .filter-dropdown-panel {
    min-width: 180px;
left: 0;
right: auto;
}
}

@media (max-width: 640px) {
  .plan-search {
    width: 120px;
    max-width: 120px;
  }

  .plan-search:focus-within,
  .plan-search.has-value {
    width: 180px;
    max-width: 180px;
  }

  .plan-search-kbd {
 display: none;
}
  .filter-dropdown-btn {
 padding: 5px 10px;
font-size: 0.75rem;
}
  .sort-tab {
 padding: 5px 10px;
font-size: 0.75rem;
}
  .plan-auth-modal-card {
 padding: 20px;
}
  .plan-auth-head h2 {
 font-size: 1.125rem;
}
}

@media (max-width: 480px) {
  .plan-search {
    width: 100px;
    max-width: 100px;
  }

  .plan-search:focus-within,
  .plan-search.has-value {
    width: 160px;
    max-width: 160px;
  }
}

.plan-search-input::-webkit-search-cancel-button,.plan-search-input::-webkit-search-decoration {
  display: none;
-webkit-appearance: none;
}

/* --- Mobile Bottom Navigation --- */
.mobile-bottom-nav {
  display: none;
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  html {
    scrollbar-gutter: auto;
    /* 减轻浏览器/内置 WebView 左右滑触发前进后退或直接退出 */
    overscroll-behavior-x: none;
  }

  body.plan-home-page,
  body.plan-member-page {
    overscroll-behavior-x: none;
  }

  body.plan-detail-modal-open .mobile-bottom-nav {
    visibility: hidden;
    pointer-events: none;
  }

  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* 勿写死 height：safe-area 作 padding 时会把图标挤上去，底下出现大块空白 */
    height: auto;
    min-height: 52px;
    background: #fff;
    border-top: 1px solid var(--plan-border);
    z-index: 200;
    align-items: stretch;
    justify-content: space-around;
    padding: 0;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
    /* 贴齐可视底部，减少部分 WebView 固定层偏移 */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  .mobile-only {
    display: flex;
  }

  .desktop-only {
    display: none !important;
  }

  body.plan-home-page,
  body.plan-member-page {
    padding-bottom: calc(52px + constant(safe-area-inset-bottom));
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }

  .floating-buttons {
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-nav-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    padding: 8px 8px 6px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--plan-text-tertiary);
    font-family: var(--plan-font);
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-nav-item.active {
    color: var(--plan-primary);
  }

  .mobile-nav-item:hover {
    color: var(--plan-text-secondary);
  }

  .mobile-nav-icon {
    width: 22px;
    height: 22px;
    display: block;
  }

  .mobile-nav-label {
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    margin-top: 1px;
  }

  /* Mobile header */
  .header {
    padding-top: 0;
    pointer-events: auto;
  }

  .header-shell {
    max-width: 100%;
    padding: 0;
  }

  .header-glass.glass-panel {
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: 0;
    background: #fff;
  }

  .header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 12px;
  }

  .header-brand {
    justify-content: flex-start;
  }

  .header-auth {display: none !important;
  }

  #plan-site-header .logo,
  #plan-site-header h1.logo {
    font-size: 1.125rem;
  }

  .mobile-header-right {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-search-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--plan-text);
    transition: background 0.2s ease;
  }
}


@media (max-width: 768px) {
  .sidebar-overlay,
  .collection-sidebar {
    display: none !important;
  }

  .collection-btn {
    display: none !important;
  }
}

/* --- Mobile Search Overlay --- */
.mobile-search-overlay-bg {
  display: none;
}

.mobile-search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 5000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-search-overlay.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-search-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--plan-border);
  flex-shrink: 0;
}

.mobile-search-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plan-text);
  flex-shrink: 0;
}

.mobile-search-back:hover {
  background: var(--plan-surface-alt);
}

.mobile-search-input-wrap {
  flex: 1;
}

.mobile-search-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--plan-border);
  border-radius: 8px;
  background: var(--plan-surface-alt);
  color: var(--plan-text);
  font-family: var(--plan-font);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.mobile-search-input:focus {
  border-color: var(--plan-primary);
}

.mobile-search-submit {
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: var(--plan-primary);
  color: var(--plan-secondary);
  font-family: var(--plan-font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.mobile-search-submit:hover {
  background: var(--plan-primary-hover);
}

.mobile-search-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px;
}

.mobile-search-section {
  margin-bottom: 24px;
}

.mobile-search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.mobile-search-section-header span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--plan-text);
}

.mobile-search-clear-history {
  padding: 4px 10px;
  border: 1px solid var(--plan-border);
  border-radius: 6px;
  background: transparent;
  color: var(--plan-text-tertiary);
  font-family: var(--plan-font);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-search-clear-history:hover {
  color: var(--plan-danger);
  border-color: var(--plan-danger);
}

.mobile-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--plan-surface-alt);
  color: var(--plan-text);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.search-tag:hover {
  border-color: var(--plan-primary);
  color: var(--plan-primary);
}

@media (min-width: 769px) {
  .mobile-search-overlay,
  .mobile-search-overlay-bg {
    display: none !important;
  }
}

/* --- Mobile Filter Overlay --- */
.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 5001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  visibility: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-filter-overlay.open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--plan-border);
  flex-shrink: 0;
}

.mobile-filter-back {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--plan-text);
}

.mobile-filter-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--plan-text);
}

.mobile-filter-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.mobile-filter-sidebar {
  width: 90px;
  flex-shrink: 0;
  background: var(--plan-surface-alt);
  padding: 8px 0;
  overflow-y: auto;
}

.mobile-filter-tab {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border: none;
  background: transparent;
  color: var(--plan-text-secondary);
  font-family: var(--plan-font);
  font-size: 0.875rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.mobile-filter-tab.active {
  color: var(--plan-primary);
  font-weight: 600;
  background: #fff;
}

.mobile-filter-tab.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--plan-primary);
  border-radius: 0 2px 2px 0;
}

.mobile-filter-content {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.mobile-filter-panel {
  display: none;
}

.mobile-filter-panel.active {
  display: block;
}

.mobile-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mobile-filter-option {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--plan-border);
  background: var(--plan-surface);
  color: var(--plan-text);
  font-family: var(--plan-font);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-filter-option.selected {
  background: var(--plan-primary-light);
  border-color: var(--plan-primary);
  color: var(--plan-secondary);
  font-weight: 600;
}

.mobile-filter-footer {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--plan-border);
  flex-shrink: 0;
}

.mobile-filter-reset {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--plan-border);
  border-radius: 8px;
  background: var(--plan-surface);
  color: var(--plan-text);
  font-family: var(--plan-font);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-filter-reset:hover {
  border-color: var(--plan-text-tertiary);
}

.mobile-filter-confirm {
  flex: 2;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: var(--plan-primary);
  color: var(--plan-secondary);
  font-family: var(--plan-font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-filter-confirm:hover {
  background: var(--plan-primary-hover);
}

@media (min-width: 769px) {
  .mobile-filter-overlay {
    display: none !important;
  }
}

/* --- User Nav (Shared Site Header) --- */
#plan-site-header .plan-user-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

#plan-site-header .plan-user-nav .user-avatar,
#plan-site-header .user-toggle .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--plan-primary);
}

#plan-site-header .plan-user-nav .user-name,
#plan-site-header .user-toggle .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--plan-text);
}

#plan-site-header .plan-user-nav .user-vip-badge,
#plan-site-header .user-toggle .user-vip-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--plan-primary);
  color: var(--plan-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
}

#plan-site-header .plan-copy-quota-nav {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--plan-primary-light);
  border: 1px solid rgba(254, 206, 20, 0.3);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

.user-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--plan-text);
  text-decoration: none;
  transition: background var(--plan-transition);
}

.user-menu a:hover {
  background: var(--plan-surface-hover);
  color: var(--plan-text);
}

.user-menu .user-menu-logout {
  border-top: 1px solid var(--plan-border-light);
  margin-top: 4px;
  color: var(--plan-danger);
}

.user-menu .user-menu-logout:hover {
  background: var(--plan-surface-hover);
  color: var(--plan-danger);
}

.plan-copy-quota-nav {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--plan-primary-light);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}

/* --- User Dropdown --- */
.user-dropdown {
  position: relative;
  display: inline-block;
}

.header-auth {
  align-self: center;
}

.user-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--plan-border);
  border-radius: 999px;
  background: var(--plan-surface);
  cursor: pointer;
  font-family: var(--plan-font);
}

.user-toggle:hover {
  border-color: var(--plan-primary);
}

.user-toggle .user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--plan-primary);
  flex-shrink: 0;
}

.user-toggle .user-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--plan-text);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-toggle .user-vip-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--plan-primary);
  color: var(--plan-secondary);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.3;
  flex-shrink: 0;
}

.user-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--plan-text-tertiary);
  transition: transform var(--plan-transition);
  flex-shrink: 0;
}

.user-arrow svg {
  width: 16px;
  height: 16px;
  display: block;
}

.user-dropdown:hover .user-arrow,
.user-dropdown.open .user-arrow {
  transform: rotate(180deg);
}

.user-dropdown.open .user-toggle {
  border-color: var(--plan-primary);
  background: var(--plan-surface-alt);
}

.user-menu,
.user-menu.glass-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: auto;
  min-width: 192px;
  width: auto;
  box-sizing: border-box;
  padding: 8px;
  background: var(--plan-surface);
  border: 1px solid var(--plan-border);
  border-radius: var(--plan-radius-lg);
  box-shadow: var(--plan-shadow-lg);
  display: none;
  overflow: hidden;
  z-index: 200;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.user-dropdown:hover .user-menu,
.user-dropdown.open .user-menu {
  display: block;
}

.user-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--plan-radius-md);
  font-size: 0.8125rem;
  color: var(--plan-text);
  text-decoration: none;
  transition: background var(--plan-transition), color var(--plan-transition);
  white-space: nowrap;
}

.user-menu a:hover {
  background: var(--plan-surface-hover);
  color: var(--plan-text);
}

.user-menu .user-menu-logout {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--plan-border-light);
  border-radius: 0 0 var(--plan-radius-md) var(--plan-radius-md);
  color: var(--plan-danger);
}

.user-menu .user-menu-logout:hover {
  background: var(--plan-surface-hover);
  color: var(--plan-danger);
}

.plan-copy-quota-nav {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--plan-primary-light);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
}
/* --- Mobile: Hide card floating buttons --- */
@media (max-width: 768px) {
  .image-actions {
    display: none !important;
  }

  .slider-controls {
    display: none !important;
  }

  .grid-item:hover {
    border-color: var(--plan-border-light);
    box-shadow: none;
  }

  .image-container:hover .image-slider img.active,
  .image-container:hover > img:only-of-type[src]:not([src=""]) {
    transform: none;
  }

  .image-slider img,
  .image-slider img.active,
  .image-container > img:only-of-type[src]:not([src=""]) {
    transform: none !important;
  }

  .grid-item .image-container {
    touch-action: manipulation;
  }

  .modal-content {
    transform: none !important;
    transition: opacity 0.25s ease-out;
  }

  .modal.show .modal-content {
    transform: none !important;
  }
}
@media (max-width: 768px) {
  .grid-item, .grid-item * {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
  }
}
@media (max-width: 768px) {
  body.plan-home-page *:not(.media-modal):not(.media-modal-backdrop),
  body.plan-member-page *:not(.media-modal):not(.media-modal-backdrop) {
    -webkit-tap-highlight-color: transparent !important;
    outline: none !important;
  }
}

/* --- Overlay Close Fix --- */
.mobile-filter-overlay:not(.open),
.mobile-search-overlay:not(.open) {
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-filter-overlay,
.mobile-search-overlay {
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-filter-overlay.open,
.mobile-search-overlay.open {
  opacity: 1;
  visibility: visible;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-search-overlay-bg {
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.mobile-search-overlay-bg.open {
  transition: opacity 0.3s ease;
}

/* --- Dark mode: logo readable on dark theme only (not OS preference alone) --- */
[data-bs-theme="dark"] #plan-site-header .logo-gradient,
[data-bs-theme="dark"] .logo-gradient {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
}

[data-bs-theme="dark"] #plan-site-header .logo,
[data-bs-theme="dark"] #plan-site-header h1.logo {
  color: #ffffff;
}

[data-bs-theme="dark"] .header-glass.glass-panel {
  background: rgba(17, 24, 39, 0.92);
  border-color: rgba(55, 65, 81, 0.75);
}

/* --- Site Footer --- */
.plan-site-footer {
  border-top: 1px solid var(--plan-border-light);
  padding: 28px 0 36px;
  margin-top: 8px;
  background: var(--plan-surface);
  color: var(--plan-text-secondary);
  font-size: 0.8125rem;
}

.plan-site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.plan-site-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.plan-site-footer-links a {
  color: var(--plan-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.plan-site-footer-links a:hover {
  color: var(--plan-text);
}

.plan-site-footer-sep {
  color: var(--plan-text-tertiary);
}

.plan-site-footer-meta {
  margin-left: auto;
  text-align: right;
  color: var(--plan-text-tertiary);
  line-height: 1.6;
}

.plan-site-footer-meta a {
  color: var(--plan-text-tertiary);
  text-decoration: none;
}

.plan-site-footer-meta a:hover {
  color: var(--plan-text-secondary);
}

@media (max-width: 768px) {
  .plan-site-footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .plan-site-footer-meta {
    margin-left: 0;
    text-align: center;
  }

  .plan-member-page .plan-site-footer,
  .plan-home-page .plan-site-footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}

.plan-info-main {
  padding: 24px 0 40px;
}

.plan-info-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 28px;
  border: 1px solid var(--plan-border-light);
  border-radius: var(--plan-radius-lg);
  background: var(--plan-surface);
  box-shadow: var(--plan-shadow-sm);
}

.plan-info-title {
  margin: 0 0 20px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--plan-text);
}

.plan-info-content {
  color: var(--plan-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.8;
}

.plan-info-content p {
  margin: 0 0 14px;
}

.plan-info-content p:last-child {
  margin-bottom: 0;
}
