/* 重置 + 全局 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  -ms-overflow-style: none; /* Edge */
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
}

[hidden] {
  display: none !important;
}

:root {
  --page-bg: #f5f5f7;
  --surface: #ffffff;
  --text-main: #111111;
  --text-muted: #6e6e73;
  --text-inverse: #ffffff;
  --text-light: #6e6e73;
  --border-subtle: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #005bb5;
  --danger: #ff3b30;
  --card-radius: 18px;
  --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
  --focus-ring: 0 0 0 3px rgba(0, 113, 227, 0.45);
  --content-max-width: 1200px;
  --container-pad-x: clamp(20px, 4vw, 48px);
  --container-pad-y: clamp(24px, 5vw, 64px);
  --gap-lg: clamp(20px, 4vw, 36px);
  /* legacy variables fallback */
  --brand-color: var(--accent);
  --brand-color-dark: var(--accent-hover);
  --brand-color-soft: rgba(0, 113, 227, 0.12);
  --border-color: var(--border-subtle);
  --card-bg: var(--surface);
}

body {
  font-family: var(--font-sans);
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.6;
  background-color: var(--page-bg);
  color: var(--text-main);
  margin: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 1000;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  margin: 12px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-shell {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

body.is-collection-cover-open {
  overflow: hidden;
}

body.is-color-space-open {
  overflow: hidden;
}

/* 工具类 */
.page-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--container-pad-y) var(--container-pad-x) clamp(32px, 6vw, 72px);
}

.layout-split {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.card-section {
  background: var(--surface);
  border-radius: var(--card-radius);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--card-shadow);
}

.u-flex {
  display: flex !important;
}

.u-flex-between {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.u-gap-sm {
  gap: 12px !important;
}

.u-mt-lg {
  margin-top: 32px !important;
}

/* 乐观上传/发送反馈 */
.toast-stack {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast-item {
  min-width: 240px;
  max-width: 360px;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(15, 15, 15, 0.16);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  background: rgba(17, 17, 17, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(-8px);
  animation: toastSlide 0.3s ease forwards;
}

.toast-item__icon {
  font-size: 16px;
}

.toast-item--success {
  background: rgba(34, 197, 94, 0.95);
}

.toast-item--error {
  background: rgba(239, 68, 68, 0.95);
}

.toast-item--info {
  background: rgba(59, 130, 246, 0.95);
}

@keyframes toastSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.optimistic-card {
  position: relative;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(15, 23, 42, 0.03);
  overflow: hidden;
}

.optimistic-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(59, 130, 246, 0.08), rgba(255, 255, 255, 0));
  animation: optimisticShimmer 2s linear infinite;
}

.optimistic-card__title {
  font-weight: 600;
  margin: 0 0 4px;
}

.optimistic-card__desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.optimistic-card--error {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.optimistic-card--error::after {
  display: none;
}

@keyframes optimisticShimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.comment-card--pending {
  opacity: 0.6;
  position: relative;
}

.comment-card--pending::after {
  content: '发布中…';
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 12px;
  color: #64748b;
}

.comment-card--pending .comment-card__time {
  color: #94a3b8;
}

.comment-card--pending .comment-card__text {
  position: relative;
  overflow: hidden;
}

.comment-card--pending .comment-card__text::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0), rgba(148, 163, 184, 0.35), rgba(255, 255, 255, 0));
  animation: optimisticShimmer 1.6s linear infinite;
}

.comment-card--pending-error {
  opacity: 1;
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: 16px;
  padding: 12px;
}

.comment-card--pending-error::after {
  content: '发送失败';
  color: #ef4444;
}

.card,
.detail-card,
.profile-card,
.form-card,
.lut-card,
.filter-bar,
.detail-sidebar__card,
.detail-info-card,
.detail-info,
.detail-extra__card,
.dashboard-hero,
.dashboard-table,
.profile-card.detail-card,
.detail-card.detail-card--preview {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--card-shadow);
}

.h-display {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.h-headline {
  font-size: clamp(22px, 3.5vw, 32px);
  line-height: 1.25;
  font-weight: 600;
}

.h-no-break {
  white-space: nowrap;
}

.h-subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.4;
  font-weight: 500;
}

.text-body {
  font-size: 15px;
  line-height: 1.7;
}

.text-muted {
  font-size: 14px;
  color: var(--text-muted);
}

.section-title {
  text-align: center;
  margin: 16px 0 8px;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 32px;
  color: var(--text-muted);
}

.block-card {
  padding: 24px 28px;
}

.block-card .section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.block-card .section-title {
  text-align: left;
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
}

.block-card .section-subtitle {
  text-align: left;
  margin: 2px 0 0;
  font-size: 13px;
  color: #6e6e73;
}

.section-link {
  font-size: 13px;
  color: #0071e3;
  text-decoration: none;
}

.section-link:hover {
  text-decoration: underline;
}

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

.collection-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background-color: #f5f5f7;
  text-decoration: none;
  transition: background-color 0.12s ease-out, box-shadow 0.12s ease-out, transform 0.08s ease-out;
  color: inherit;
}

.collection-chip:hover {
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.status-chip--approved {
  color: #047857;
  background: rgba(16, 185, 129, 0.18);
}

.status-chip--pending {
  color: #b45309;
  background: rgba(251, 191, 36, 0.25);
}

.status-chip--draft {
  color: #475569;
  background: rgba(148, 163, 184, 0.25);
}

.status-chip--rejected {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.25);
}

.collection-chip-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.collection-chip-icon-symbol {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.collection-chip-name {
  font-size: 14px;
  font-weight: 500;
  color: #111;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-chip--1 .collection-chip-icon {
  background-color: rgba(0, 113, 227, 0.12);
  color: #0071e3;
}

.collection-chip--2 .collection-chip-icon {
  background-color: rgba(88, 86, 214, 0.12);
  color: #5856d6;
}

.collection-chip--3 .collection-chip-icon {
  background-color: rgba(52, 199, 89, 0.14);
  color: #34c759;
}

.collection-chip--4 .collection-chip-icon {
  background-color: rgba(255, 149, 0, 0.16);
  color: #ff9500;
}

.collection-chip--5 .collection-chip-icon {
  background-color: rgba(255, 45, 85, 0.16);
  color: #ff2d55;
}

.empty-hint {
  font-size: 13px;
  color: #a1a1a6;
}

@media (max-width: 768px) {
  .collection-chip-grid {
    grid-template-columns: 1fr;
  }
}

.profile-collection-grid {
  /* 采用类似商品卡片的固定卡片宽度布局：最多 3 列，多了自动换行 */
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.profile-collection-card {
  background-color: #fff;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* 固定卡片宽度：桌面端最多三列，只有 1、2 个时也保持同样尺寸 */
  width: calc((100% - 36px) / 3); /* 3 列，2 个间隙各 18px */
  min-width: 260px;
  max-width: 360px;
}

@media (max-width: 960px) {
  .profile-collection-card {
    /* 中等屏幕：两列布局 */
    width: calc((100% - 18px) / 2);
  }
}

@media (max-width: 640px) {
  .profile-collection-card {
    /* 小屏幕：单列展示 */
    width: 100%;
  }
}

.profile-collection-card__cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background-size: cover;
  background-position: center;
}

.profile-collection-card__cover--link {
  display: block;
}

.profile-collection-card__cover-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.profile-collection-card__cover-btn:hover {
  background: #ffffff;
}

.profile-collection-card--author .profile-collection-card__cover-btn {
  display: none;
}

.profile-collection-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-collection-card__name {
  font-size: 16px;
  font-weight: 600;
  color: #111;
}

.profile-collection-card__meta {
  font-size: 13px;
  color: #6e6e73;
}

.profile-collection-card__actions {
  margin-top: 8px;
}

.collection-cover-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
}

.collection-cover-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.collection-cover-modal__dialog {
  position: relative;
  width: min(920px, 92vw);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.2);
  padding: 24px 28px;
  z-index: 121;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 90vh;
  overflow: hidden;
}

.collection-cover-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.collection-cover-modal__close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.collection-cover-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.collection-cover-form-group label {
  display: block;
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 4px;
}

.collection-cover-form-group input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d2d2d7;
  padding: 8px 10px;
  font: inherit;
}

.collection-cover-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
  gap: 18px;
  min-height: 0;
}

.collection-cover-cropper {
  position: relative;
  min-height: 280px;
  border-radius: 18px;
  border: 1px dashed #c7c7cc;
  overflow: hidden;
  cursor: pointer;
}

.collection-cover-cropper img {
  display: block;
  max-width: 100%;
}

.collection-cover-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg,
    rgba(245, 245, 247, 0.9),
    rgba(245, 245, 247, 0.9) 10px,
    rgba(230, 230, 235, 0.9) 10px,
    rgba(230, 230, 235, 0.9) 20px
  );
}

.collection-cover-placeholder-inner {
  text-align: center;
  color: #8e8e93;
}

.collection-cover-mobile-tip {
  display: none;
  font-size: 12px;
  color: #6e6e73;
  text-align: center;
  padding: 6px 0;
}

.collection-cover-plus {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
}

.collection-cover-sidebar {
  border-radius: 18px;
  border: 1px solid #e5e5ea;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8f8fa;
}

.collection-cover-tip {
  font-size: 12px;
  color: #8e8e93;
  margin: 0;
}

.collection-cover-preview {
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.color-space-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 140;
}

.color-space-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.color-space-modal__dialog {
  position: relative;
  width: min(480px, 92vw);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 20px 22px;
  z-index: 141;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.color-space-modal__header {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.color-space-modal__close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.color-space-modal__title {
  font-size: 16px;
  font-weight: 600;
}

.color-space-modal__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.color-space-option {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  border: 1px solid #e5e5ea;
  padding: 10px 12px;
  background: #f8f8fa;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.color-space-option:hover {
  border-color: #0071e3;
  background-color: #f0f6ff;
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.4);
}

.color-space-option__title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #111827;
}

.color-space-option__desc {
  display: block;
  font-size: 12px;
  color: #6e6e73;
}

.collection-cover-modal__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid #ededf1;
  padding-top: 12px;
  background: #fff;
  flex-shrink: 0;
}

.collection-cover-status {
  font-size: 13px;
  color: #6e6e73;
}

.collection-cover-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 768px) {
  .collection-cover-modal {
    align-items: stretch;
    justify-content: stretch;
  }

  .collection-cover-modal__dialog {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    gap: 12px;
  }

  .collection-cover-modal__body {
    padding-bottom: 8px;
  }

  .collection-cover-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .collection-cover-cropper {
    min-height: 0;
    flex: 1;
    max-height: 60vh;
  }

  .collection-cover-sidebar {
    order: 2;
    padding: 12px;
  }

  .collection-cover-mobile-tip {
    display: block;
  }

  .collection-cover-modal__footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .collection-cover-status {
    text-align: left;
  }

  .collection-cover-actions {
    width: 100%;
  }

  .collection-cover-actions .btn {
    flex: 1;
    height: 44px;
  }
}

.collection-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 48px;
}

.collection-header-card {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  overflow: hidden;
}

.collection-header-cover {
  width: min(360px, 100%);
  min-height: 200px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.collection-header-cover--placeholder {
  background: linear-gradient(135deg, #f5f5f7, #e5e5ea);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-cover-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background-color: rgba(0, 0, 0, 0.08);
  color: #6e6e73;
  font-size: 16px;
  letter-spacing: 0.12em;
}

.collection-header-body {
  flex: 1;
  padding: 24px 28px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.collection-header-main {
  flex: 1;
  min-width: 240px;
}

.collection-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: #6e6e73;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #f5f5f7;
  margin-bottom: 8px;
}

.collection-title {
  font-size: 28px;
  margin: 0 0 8px;
}

.collection-header-desc {
  font-size: 14px;
  color: #3c3c43;
  margin: 0 0 10px;
  line-height: 1.6;
}

.collection-meta {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 12px;
}

.collection-meta__link {
  color: inherit;
  text-decoration: none;
}

.collection-meta__link:hover {
  text-decoration: underline;
}

.meta-dot {
  margin: 0 6px;
}

.collection-data {
  list-style: none;
  display: flex;
  gap: 24px;
  padding: 0;
  margin: 0;
  font-size: 12px;
  color: #6e6e73;
}

.collection-data strong {
  display: block;
  font-size: 22px;
  color: #111;
  margin-bottom: 2px;
}

.collection-header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.btn-primary-sm,
.btn-outline-sm,
.btn-text-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13px;
  text-decoration: none;
  transition: background-color 0.12s, box-shadow 0.12s, transform 0.08s;
}

.btn-primary-sm {
  background-color: #0071e3;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.3);
}

.btn-primary-sm:hover {
  background-color: #005bb5;
  transform: translateY(-1px);
}

.btn-outline-sm {
  background-color: #fff;
  color: #111;
  border: 1px solid #d2d2d7;
}

.btn-outline-sm:hover {
  background-color: #f5f5f7;
}

.btn-text-sm {
  background: transparent;
  color: #6e6e73;
}

.btn-text-sm:hover {
  background-color: #f5f5f7;
}

.collection-lut-card {
  padding: 22px 26px 26px;
}

.collection-lut-card .lut-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.collection-lut-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.collection-lut-title {
  font-size: 18px;
  font-weight: 600;
}

.collection-lut-subtitle {
  font-size: 13px;
  color: #6e6e73;
}

.collection-lut-actions {
  flex-shrink: 0;
}

.collection-add-panel {
  margin-top: 16px;
  padding: 12px 16px 14px;
  border-radius: 16px;
  background: #f7f8fa;
}

.collection-add-header {
  margin-bottom: 8px;
}

.collection-add-search {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #dde1e7;
  padding: 8px 14px;
  font-size: 14px;
}

.collection-add-list {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.collection-add-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #fff;
}

.collection-add-thumb img {
  width: 72px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.collection-add-main {
  flex: 1;
  min-width: 0;
}

.collection-add-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.collection-add-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.collection-add-actions {
  flex-shrink: 0;
}

.collection-add-empty {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 12px 0;
}

.collection-empty-state {
  padding: 36px 0 32px;
  text-align: center;
  color: #6e6e73;
}

.collection-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  margin: 0 auto 14px;
  background-color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.collection-empty-title {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
}

.collection-empty-subtitle {
  font-size: 13px;
  color: #6e6e73;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .collection-header-cover {
    width: 100%;
    height: 200px;
  }
  .collection-header-body {
    flex-direction: column;
  }
  .collection-header-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .collection-header-body {
    padding: 18px 20px 22px;
  }
  .collection-lut-card {
    padding: 18px 20px 22px;
  }
  .collection-data {
    flex-direction: column;
    gap: 12px;
  }
  .collection-lut-card .lut-grid {
    grid-template-columns: 1fr;
  }
}

/* 顶部导航 */
.main-header {
  background-color: var(--surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 20;
}

.main-header__top-strip {
  height: 4px;
  background-color: var(--accent);
}

.main-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

.site-logo__text-main {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.site-logo__text-sub {
  font-size: 11px;
  color: var(--text-light);
  margin-left: 6px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.main-nav a {
  position: relative;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 15px;
  line-height: 1;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s ease;
}

.main-nav__logout {
  display: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--accent);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a.is-active {
  color: var(--text-main);
  font-weight: 600;
}

.main-nav a.is-active::after {
  opacity: 1;
  transform: translateY(0);
}

.main-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-lang-switch {
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.header-lang-switch a {
  text-decoration: none;
  color: inherit;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.header-lang-switch a.is-active {
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--text-main);
}

.header-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: var(--text-main);
  font-size: 14px;
}

.header-user-chip__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  display: inline-flex;
}

.header-user-chip__name {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-notify {
  position: relative;
}

.header-notify__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
}

.header-notify__icon {
  width: 18px;
  height: 18px;
  background: url('../img/bell.svg') center/contain no-repeat;
}

.header-notify__badge {
  position: absolute;
  top: -4px;
  right: 4px;
  background: var(--danger);
  color: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  display: none;
}

.header-notify__badge.is-visible {
  display: inline-block;
}

.header-notify__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 320px;
  max-height: 360px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  z-index: 30;
}

.header-notify__panel.is-open {
  display: flex;
}

.header-notify__panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.header-notify__panel-header button {
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
}

.header-notify__list {
  padding: 8px 16px;
  overflow-y: auto;
  flex: 1;
}

.header-notify__item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.header-notify__item:last-child {
  border-bottom: none;
}

.header-notify__actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.header-notify__actions button {
  border: none;
  background: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.header-notify__time {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

.header-notify__reply {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.header-notify__reply textarea {
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 6px;
  font-size: 12px;
}

.header-notify__reply-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.header-notify__empty {
  text-align: center;
  color: var(--text-light);
  font-size: 13px;
  padding: 24px 0;
}

.header-user__greeting {
  font-size: 14px;
  color: var(--text-muted);
}

.header-link {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 999px;
  line-height: 1.2;
}

.header-link--text {
  transition: color 0.2s ease, background 0.2s ease;
}

.header-link--text:hover {
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.03);
  text-decoration: none;
}

.main-header__menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background-color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.main-header__menu-toggle span {
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease,
    opacity 0.15s ease;
  min-height: 40px;
}

.btn-primary {
  background-color: #0071e3;
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 113, 227, 0.35);
  border: none;
}

.btn-primary:hover {
  background-color: #005bb5;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 113, 227, 0.45);
}

.btn-primary:disabled {
  opacity: 0.6;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-upload {
  width: 100%;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-upload-icon {
  font-size: 16px;
  line-height: 1;
}

.home-empty,
.popular-empty {
  border: 1px dashed #d2d2d7;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  color: #6e6e73;
}

.browse-page {
  width: 100%;
}

.browse-stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
}

.browse-results-card .lut-card__actions {
  display: none;
}

.browse-results-toolbar {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.browse-sort-form {
  display: flex;
  align-items: center;
}

.browse-sort-form .browse-sort-select {
  min-width: 160px;
}

.tag-filter-card,
.browse-results-card,
.hot-tags-card {
  background-color: #fff;
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(15, 15, 15, 0.08);
  padding: 24px 28px;
}

.tag-filter__header {
  margin-bottom: 18px;
}

.tag-filter__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.browse-advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.browse-field {
  display: flex;
  flex-direction: column;
}

.browse-field__label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.browse-input,
.browse-sort-select {
  border: 1px solid #dcdfe6;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 14px;
  width: 100%;
}

.tag-filter__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.tag-filter__actions input[type="text"] {
  flex: 1;
  min-width: 200px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  padding: 8px 16px;
  font-size: 14px;
}

.tag-filter__actions .browse-keyword-input {
  flex: 0 0 33%;
  max-width: 360px;
  min-width: 220px;
}

@media (max-width: 768px) {
  .tag-filter__actions .browse-keyword-input {
    flex: 1 1 100%;
    max-width: none;
  }
  .browse-stack {
    gap: 20px;
  }
  .browse-results-toolbar {
    margin: 16px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill,
.tag-suggestion,
.lut-tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  font-size: 12px;
  color: #6e6e73;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  appearance: none;
  font: inherit;
}

.tag-pill:hover,
.tag-suggestion:hover,
.lut-tag-pill:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.tag-suggestion--active {
  background-color: #0071e3;
  color: #fff;
  border-color: #0071e3;
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}

.tag-suggestion:focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.3);
  outline-offset: 1px;
}

.lut-card__tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-info__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.comment-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.comment-rating__stars {
  display: inline-flex;
  gap: 6px;
}

.comment-rating__label {
  font-weight: 600;
  color: #111;
}

.comment-rating__value {
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.comment-rating--done {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8e8e93;
}

.comment-rating__info {
  font-size: 13px;
  color: #8e8e93;
}

.rating-input__star {
  width: 28px;
  height: 28px;
  border: none;
  background-color: transparent;
  background: url('../img/star-empty.svg') center/contain no-repeat;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.rating-input__star:hover {
  transform: scale(1.05);
}

.rating-input__star.is-active {
  background-image: url('../img/star-full.svg');
}

.comment-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
}

.comment-card__rating-value {
  font-size: 13px;
  font-weight: 600;
  color: #111;
}

.browse-load-more {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.browse-load-more__meta {
  font-size: 13px;
  color: #6e6e73;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.collection-card {
  border-radius: 18px;
  overflow: hidden;
  background: #f5f5f7;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}

.collection-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15, 15, 15, 0.12);
}

.collection-cover {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.collection-body {
  padding: 12px 14px 14px;
}

.collection-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.collection-meta {
  font-size: 12px;
  color: #6e6e73;
}

.collection-card--profile .collection-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
}

.profile-lut-card__tags {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.browse-empty {
  border: 1px dashed #d2d2d7;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
  color: #6e6e73;
}

.btn-ghost,
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-ghost:hover,
.btn-secondary:hover {
  background: #f0f0f5;
}

.btn-danger,
.btn-secondary--danger {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-danger:hover,
.btn-secondary--danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

.btn-block {
  width: 100%;
}

.btn-ghost-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-size: 13px;
  color: var(--text-main);
  cursor: pointer;
  gap: 4px;
  transition: background-color 0.2s ease;
}

.btn-ghost-small input {
  display: none;
}

.btn-ghost-small:hover {
  background: rgba(0, 0, 0, 0.04);
}

.btn-primary-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-header__menu-toggle {
    display: inline-flex;
    margin-left: 8px;
  }

  .main-header__inner {
    flex-wrap: wrap;
    align-items: flex-start;
    height: auto;
    padding: 12px 16px 16px;
    row-gap: 12px;
  }

  .main-nav {
    width: 100%;
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    display: none;
  }

  .main-nav a {
    width: 100%;
    border-radius: 8px;
  }

  .main-header__actions {
    order: 2;
    width: auto;
    margin-left: auto;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
  }

  .main-header.is-mobile-open .main-nav {
    display: flex;
  }
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background-color: #fff;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background-color: #f6f7fb;
  border-color: #d8dfea;
  color: var(--text-main);
}

.btn-secondary--danger {
  border-color: rgba(255, 75, 75, 0.3);
  color: var(--brand-color);
}

.btn-secondary--danger:hover {
  background-color: var(--brand-color-soft);
  border-color: var(--brand-color);
  color: var(--brand-color-dark);
}

.btn-secondary--ghost {
  border-style: dashed;
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px dashed var(--border-color);
  background-color: transparent;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.favorite-toggle-btn {
  border-style: solid;
  border-color: rgba(17, 17, 17, 0.1);
  background-color: #fff;
  color: var(--text-main);
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.favorite-toggle-btn:hover {
  border-color: rgba(0, 113, 227, 0.4);
  color: var(--accent);
  background-color: rgba(0, 113, 227, 0.08);
}

.favorite-toggle-btn.is-active {
  background-color: var(--brand-color);
  border-color: var(--brand-color);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 113, 227, 0.35);
}

.btn-ghost:hover {
  border-color: #cdd3df;
  color: var(--text-main);
  background-color: rgba(0, 0, 0, 0.02);
}

.detail-download-merge-btn {
  margin-top: 8px;
  border-style: solid;
  border-color: rgba(0, 113, 227, 0.25);
  background-color: rgba(0, 113, 227, 0.06);
  color: #0366d6;
  font-weight: 500;
}

.detail-download-merge-btn:hover {
  border-color: rgba(0, 113, 227, 0.5);
  background-color: rgba(0, 113, 227, 0.12);
  color: #024ea5;
}

.btn-ghost:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 页脚 - 优化：更接近主流门户风格（左侧链接、右侧版权与备案，移动端堆叠） */
.site-footer {
  margin-top: 40px;
  background-color: #ffffff;
  border-top: 1px solid #e9edf2;
  color: #6b6f76;
}

.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: #6b6f76;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer__links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.site-footer__links a {
  color: #8a8f95;
  text-decoration: none;
  font-size: 13px;
}

.site-footer__links a:hover {
  color: #1a73e8;
}

.site-footer__meta {
  text-align: right;
  min-width: 240px;
}

.site-footer__meta .site-footer__copyright{
  color: #8a8f95;
  font-size: 13px;
}

.site-footer__beian-row{
  margin-top:6px;
  font-size:12px;
  color:#7a7f85;
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-end;
}

.site-footer__beian a{color:#1a73e8}
.site-footer__police{display:inline-flex;align-items:center;gap:6px}
.site-footer__police svg{width:16px;height:16px}

@media (max-width:720px){
  .site-footer__inner{padding:12px 16px;align-items:flex-start}
  .site-footer__meta{width:100%;text-align:left;margin-top:10px}
  .site-footer__beian-row{justify-content:flex-start}
}

/* 单行页脚样式：不换行，颜色淡，超出省略 */
.site-footer__single-row{
  width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:12px;
  color:#9aa0a6; /* 更淡的颜色 */
}
.site-footer__single-row .site-footer__item{display:inline-block;vertical-align:middle}
.site-footer__single-row .site-footer__sep{color:#cfd4d8}
.site-footer__single-row a{color:inherit;text-decoration:none}


/* 首页 Hero */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 6vw, 72px);
}

.hero-home {
  text-align: center;
  background: radial-gradient(circle at top, rgba(0, 113, 227, 0.12), transparent 60%);
}

.hero__inner {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.hero__title {
  margin: 0;
  letter-spacing: 0.03em;
}

.hero__subtitle {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-muted);
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero-actions .btn-ghost {
  border-color: rgba(0, 0, 0, 0.08);
}

/* LUT 卡片网格 */
.lut-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 1100px) {
  .lut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .lut-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .lut-card {
    border-radius: 16px;
  }
}

@media (max-width: 640px) {
  .main-header__inner {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .main-nav {
    margin-left: 0;
    margin-top: 8px;
  }

  .page-container {
    padding: 24px 16px 32px;
  }
}

@media (max-width: 1200px) {
  .main-header__inner {
    flex-direction: row;
    align-items: center;
    height: 72px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .main-nav {
    margin-left: 40px;
    margin-top: 0;
  }
  .main-header__menu-toggle {
    display: none;
  }
  .layout-split {
    grid-template-columns: 360px 1fr;
    gap: 32px;
  }
  .lut-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .page-container {
    padding: 48px 40px 64px;
  }
}

/* LUT 卡片 */
.lut-card {
  background-color: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.lut-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
}

.lut-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lut-card__remove-from-collection {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lut-card__remove-from-collection:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lut-card:hover .lut-card__thumb img {
  transform: scale(1.03);
}

.lut-card__body {
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.lut-card__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lut-card__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.lut-card__rating {
  display: flex;
  align-items: center;
}

.lut-card__rating .rating-stars {
  gap: 3px;
}

.lut-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.lut-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lut-card__stat-icon {
  font-size: 14px;
}

.lut-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.lut-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  background-color: #f8f8fa;
  font-size: 12px;
  color: var(--text-main);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lut-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.lut-card__author {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.lut-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  min-height: 34px;
}

.lut-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
  flex-shrink: 0;
}

.lut-card__author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lut-card__author-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.lut-card__author-label {
  font-weight: 400;
  color: var(--text-light);
}

.lut-card__author-text {
  font-weight: 500;
  color: var(--text-main);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lut-card__author-sub {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 推荐作者 */
.contributors-list {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.contributor-card {
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.contributor-card__avatar-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.contributor-card__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #ddd;
  overflow: hidden;
}

.contributor-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contributor-card__name {
  font-size: 13px;
  color: #666;
}

.contributor-card__meta {
  font-size: 12px;
  color: #6e6e73;
}

/* 浏览/搜索页 筛选栏 */
.filter-bar {
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px 20px 18px;
  margin-bottom: 28px;
}

.filter-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 24px;
}

.filter-field {
  display: flex;
  flex-direction: column;
}

.filter-field label {
  font-size: 13px;
  color: #777;
  margin-bottom: 4px;
}

.filter-field select,
.filter-field input {
  border: 1px solid #dcdfe6;
  border-radius: 3px;
  padding: 7px 9px;
  font-size: 13px;
  background-color: #fff;
}

.filter-bar__actions {
  margin-top: 16px;
  text-align: right;
}

.filter-bar__actions .btn-primary {
  padding: 8px 20px;
}

/* 分类浏览区 */
.category-listing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.category-card {
  background-color: #ffffff;
  border-radius: 4px;
  border: 1px dashed #dcdfe6;
  padding: 16px 18px;
}

.category-card__title {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin-bottom: 8px;
}

.category-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #777;
}

.category-card li {
  margin-bottom: 4px;
}

.category-card a {
  color: inherit;
  text-decoration: none;
}

.category-card a:hover {
  color: #ff4b4b;
}

@media (max-width: 960px) {
  .filter-bar__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-listing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .filter-bar__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-listing {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 添加 LUT / 详情 / 登录等表单卡片 */
.form-card {
  max-width: 880px;
  margin: 16px auto 0;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  padding: 32px 40px 36px;
}

.form-card__title {
  font-size: 26px;
  font-weight: 500;
  color: #555;
  margin-bottom: 8px;
}

.form-card__subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  color: #777;
  margin-bottom: 5px;
}

.form-group small {
  display: block;
  font-size: 11px;
  color: #aaa;
  margin-top: 3px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #dcdfe6;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
}

.form-control-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-inline-hint {
  font-size: 12px;
  color: #ff4b4b;
  white-space: nowrap;
}

.form-inline-hint:empty {
  display: none;
}

/* 成功状态下的轻量提示色，避免一直用错误红色 */
.form-inline-hint--success {
  color: #16a34a;
}

.form-group.has-error label {
  color: #ff4b4b;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #ff7a7a;
  box-shadow: 0 0 0 2px rgba(255, 75, 75, 0.12);
}

/* 表单字段成功校验状态：右侧绿色对勾，边框高亮 */
.form-group input.is-valid,
.form-group textarea.is-valid,
.form-group select.is-valid {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.16);
  padding-right: 30px;
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  /* 简单 SVG 对勾图标（绿色） */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%2316a34a' d='M6.6 11.2L3.4 8l-1.1 1.1L6.6 13.4 13.7 6.3 12.6 5.1z'/%3E%3C/svg%3E");
}

.form-error {
  margin-top: 6px;
  font-size: 12px;
  color: #ff4b4b;
  line-height: 1.4;
}

.form-error--general {
  text-align: center;
  border: 1px solid rgba(255, 75, 75, 0.18);
  padding: 10px 14px;
  border-radius: 4px;
  background: rgba(255, 75, 75, 0.05);
  margin-bottom: 18px;
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-actions {
  margin-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.form-submit-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.form-actions .btn-primary {
  min-width: 220px;
  padding: 11px 24px;
  font-size: 15px;
}

.form-text {
  font-size: 12px;
  color: #999;
  margin-top: 12px;
  text-align: center;
}

.form-text a {
  color: #ff4b4b;
  text-decoration: none;
}

/* 邮箱行：输入框 + 发送验证码按钮的组合布局 */
.form-row {
  margin-bottom: 20px;
}

.form-row .form-label {
  display: block;
  font-size: 14px;
  color: #111;
  margin-bottom: 6px;
}

.form-email-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-email-group input[type="email"] {
  flex: 1;
}

/* 注册页发送验证码按钮：主色但尺寸略小于底部“注册”按钮 */
.form-email-group .btn-send-code {
  background-color: #0071e3;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 113, 227, 0.3);
  padding: 0 16px;
  font-size: 13px;
}

.form-email-group .btn-send-code:hover:not(:disabled) {
  background-color: #005bb5;
  box-shadow: 0 6px 14px rgba(0, 113, 227, 0.45);
}

.form-email-group .btn-send-code:disabled {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 600px) {
  .form-email-group {
    flex-direction: column;
    align-items: stretch;
  }

  .form-email-group .btn-send-code {
    width: 100%;
  }
}

/* 邮箱提示文案：统一一行显示，错误/成功/提示用不同颜色 */
.form-msg {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #6e6e73;
}

.form-msg--error {
  color: #e03131;
}

.form-msg--success {
  color: #16a34a;
}

.upload-page .card-form {
  max-width: 960px;
  margin: 32px auto;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 15, 15, 0.08);
  padding: 24px 0 28px;
}

.card-form-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 36px;
}

.upload-page .card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
}

.upload-page .card-subtitle {
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 24px;
}

.upload-page .form-section {
  border-top: 1px solid #f2f2f7;
  padding-top: 18px;
  margin-top: 18px;
}

.upload-page .form-section:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.upload-page .section-label {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 14px;
}

.upload-page .form-group {
  margin-bottom: 18px;
}

.upload-page .form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.upload-page .form-description {
  font-size: 12px;
  color: #6e6e73;
  margin-bottom: 8px;
}

.upload-page .form-input,
.upload-page .form-textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d2d2d7;
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  background-color: #fff;
}

.upload-page .form-input:focus,
.upload-page .form-textarea:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.18);
}

.upload-page .form-textarea {
  min-height: 160px;
  resize: none;
}

.upload-page .form-footer {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.upload-page .tag-suggestions-block {
  margin-top: 10px;
}

.upload-page .tag-suggestions-title {
  font-size: 12px;
  color: #6e6e73;
  margin-bottom: 4px;
}

.upload-page .tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.upload-page .tag-suggestion {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  background-color: #fff;
  color: #6e6e73;
  cursor: pointer;
}

.upload-page .tag-suggestion:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.upload-page .collection-selected {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 0;
}

.upload-page .collection-empty {
  font-size: 12px;
  color: #a1a1a6;
}

.upload-page .collection-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #0071e3;
  color: #fff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.upload-page .collection-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  color: rgba(255, 255, 255, 0.8);
}

.upload-page .collection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.upload-page .collection-item {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  background-color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 36px;
}

.upload-page .collection-item.selected {
  background-color: #0071e3;
  border-color: #0071e3;
  color: #fff;
}

.upload-page .collection-new {
  display: flex;
  gap: 8px;
}

.upload-page .collection-new-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  padding: 7px 12px;
  font-size: 13px;
  outline: none;
}

.upload-page .collection-new-input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15);
}

.tag-input-wrapper {
  border-radius: 10px;
  border: 1px solid #dcdfe6;
  padding: 6px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  background-color: #fff;
  cursor: text;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #f5f5f7;
  border: 1px solid #dcdfe6;
  font-size: 12px;
  color: #111;
  gap: 4px;
}

.tag-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  color: #6e6e73;
}

.tag-chip button:hover {
  color: #ff3b30;
}

.tag-input-inner {
  border: none;
  flex: 1;
  min-width: 80px;
  font-size: 14px;
  padding: 4px;
  outline: none;
}

/* Toggle switch for版权注入 */
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-switch__track {
  width: 70px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(120deg, #f0f0f0, #dbdbdb);
  position: relative;
  transition: background 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.toggle-switch__thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #7d7d7d;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-switch__track {
  background: linear-gradient(120deg, #4de27d, #63ffb5);
}

.toggle-switch input:checked + .toggle-switch__track .toggle-switch__thumb {
  transform: translateX(38px);
  box-shadow: 0 6px 16px rgba(77, 226, 125, 0.4);
  color: #fff;
}

.form-group--inline {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
}

.form-group__left {
  flex: 1;
}

.form-group__left--inline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toggle-switch__thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #7d7d7d;
}

.toggle-switch input:checked + .toggle-switch__track .toggle-switch__thumb {
  color: #fff;
}

.toggle-switch__label {
  position: absolute;
  transition: opacity 0.2s ease;
  color: inherit;
  font-size: 11px;
  letter-spacing: 0.5px;
}

.toggle-switch__label--on {
  opacity: 0;
}

.toggle-switch__label--off {
  opacity: 1;
}

.toggle-switch input:checked + .toggle-switch__track .toggle-switch__label--on {
  opacity: 1;
}

.toggle-switch input:checked + .toggle-switch__track .toggle-switch__label--off {
  opacity: 0;
}

.toggle-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.toggle-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-check__box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 2px solid #dcdcdc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.toggle-check__icon {
  width: 22px;
  height: 22px;
  stroke: transparent;
  stroke-width: 2.8px;
  fill: none;
  transition: stroke 0.2s ease;
}

.toggle-check input:checked + .toggle-check__box {
  background: linear-gradient(120deg, #4de27d, #63ffb5);
  border-color: #43d06f;
}

.toggle-check input:checked + .toggle-check__box .toggle-check__icon {
  stroke: #fff;
}

.form-label--large {
  font-size: 16px;
  font-weight: 600;
}

.form-section--copyright {
  margin-top: 32px;
  border-top: none;
  padding: 28px 32px 32px;
  border-radius: 24px;
  background: #f4f6fb;
}

.form-section--copyright .section-label {
  margin: 0 0 18px;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}

@media (max-width: 640px) {
  .form-section--copyright {
    padding: 22px 20px;
    border-radius: 18px;
  }
}

.copyright-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 32px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e4e8f2;
  box-shadow: 0 18px 50px rgba(46, 59, 125, 0.08);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
  .copyright-box {
    padding: 24px;
  }
}

.copyright-box.is-active {
  border-color: #98f5c3;
  box-shadow: 0 26px 60px rgba(16, 185, 129, 0.2);
  transform: translateY(-2px);
}

.copyright-box__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  flex-wrap: wrap;
  position: relative;
}

.copyright-box__header-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.copyright-box__icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.copyright-box__icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.copyright-box__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright-box__title-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copyright-box__summary {
  font-size: 14px;
  color: #4b5563;
  margin: 4px 0 0;
  line-height: 1.75;
  max-width: 460px;
}

.copyright-box__status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #6b7280;
  flex-wrap: wrap;
}

.copyright-status-label {
  font-weight: 500;
}

.copyright-status-text {
  font-weight: 600;
}

.copyright-status-text--off {
  color: #9ca3af;
}

.copyright-status-text--on {
  color: #047857;
}

.copyright-box__active-tip {
  margin-top: 10px;
  font-size: 13px;
  color: #0f8a57;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copyright-box__tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.copyright-box__header-action {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 220px;
  text-align: center;
  min-width: 200px;
  position: relative;
  margin-left: auto;
  padding: 12px 0;
}

.copyright-box__header-action::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: #e4e8f2;
}

@media (max-width: 640px) {
  .copyright-box__header-action {
    width: 100%;
    align-items: center;
    padding: 12px 0 0;
    margin-top: 16px;
  }

  .copyright-box__header-action::before {
    content: none;
  }
}

.copyright-switch-status {
  font-size: 13px;
  font-weight: 600;
  color: #9ca3af;
}

.copyright-switch-status--on {
  color: #10b981;
}

.copyright-switch-status--off {
  color: #9ca3af;
}

.copyright-box__note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #e2e8f0;
}

.copyright-switch-note {
  font-size: 13px;
  color: #6b7280;
  text-align: left;
  line-height: 1.65;
}

.copyright-box.is-active .copyright-switch-note {
  color: #047857;
}

.copyright-box__body {
  margin-top: 4px;
}

.copyright-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

@media (max-width: 640px) {
  .copyright-benefits {
    gap: 16px;
  }
}

.copyright-benefit {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #edf1f7;
  padding: 18px 20px;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.copyright-benefit__title {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0;
}

.copyright-benefit__list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.6;
}

.copyright-benefit__desc {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
}

.copyright-box__footer {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.copyright-box__link {
  font-size: 13px;
  color: #1d4ed8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.copyright-box__link:hover {
  text-decoration: underline;
}

.copyright-box__link::after {
  content: '>';
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.copyright-box__link:hover::after {
  transform: translateX(2px);
}

.copyright-box__toggle .toggle-check__box {
  width: 44px;
  height: 44px;
}

.rating-stars {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
}

.rating-stars--lg .rating-star {
  width: 20px;
  height: 20px;
}

.rating-stars--sm .rating-star {
  width: 14px;
  height: 14px;
}

.rating-stars--xs .rating-star {
  width: 12px;
  height: 12px;
}

.rating-star {
  width: 16px;
  height: 16px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
}

.rating-star--full {
  background-image: url('../img/star-full.svg');
}

.rating-star--half {
  background-image: url('../img/star-half.svg');
}

.rating-star--empty {
  background-image: url('../img/star-empty.svg');
}

.detail-rating-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 14px;
  color: #6e6e73;
  flex-wrap: wrap;
}

.detail-rating-inline__label {
  font-size: 13px;
  color: #8e8e93;
}

.detail-rating-inline__value {
  font-weight: 600;
  color: #111;
}

.detail-rating-inline__count {
  color: #8e8e93;
  font-size: 13px;
}

.detail-rating-inline__empty {
  color: #bbb;
}

.tag-suggestions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-suggestion {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #dcdfe6;
  background-color: #fff;
  color: #6e6e73;
  cursor: pointer;
}

.tag-suggestion:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.tag-suggestion-disabled {
  background-color: #f5f5f7;
  border-color: #e5e5ea;
  color: #c7c7cc;
  cursor: default;
  pointer-events: none;
}

.tag-dropdown {
  position: relative;
  width: 100%;
  margin-top: 6px;
}

.tag-dropdown-list {
  position: absolute;
  z-index: 40;
  left: 0;
  top: 0;
  width: 100%;
  max-height: 240px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 14px;
  border: 1px solid rgba(210, 210, 215, 0.8);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.tag-dropdown-item {
  padding: 8px 12px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.12s ease;
}

.tag-dropdown-item:hover {
  background-color: #f5f5f7;
}

.tag-dropdown-item-main {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #111;
}

.tag-dropdown-hash {
  color: #6e6e73;
}

.tag-dropdown-count {
  font-size: 11px;
  color: #a1a1a6;
}

.tag-dropdown-create {
  font-weight: 600;
}

.tag-dropdown-empty {
  padding: 12px;
  font-size: 13px;
  color: #8e8e93;
  text-align: center;
}

.tag-dropdown-item--disabled {
  background-color: #f8f8f8;
  color: #b0b0b5;
  pointer-events: none;
}

.tag-dropdown-item--disabled:hover {
  background-color: #f8f8f8;
}

.tag-dropdown-item--disabled .tag-dropdown-hash {
  color: #c7c7cc;
}

.tag-dropdown-item--disabled .tag-dropdown-item-main {
  color: #b0b0b5;
}

.tag-dropdown-status {
  font-size: 11px;
  color: #c7c7cc;
}

.collection-multi {
  border-radius: 10px;
  border: 1px solid #dcdfe6;
  padding: 8px 10px;
  background-color: #fff;
}

.collection-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.collection-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background-color: #f5f5f7;
  border: 1px solid #dcdfe6;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.collection-chip button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  color: #6e6e73;
}

.collection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.collection-item {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #dcdfe6;
  background-color: #fff;
  cursor: pointer;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.collection-item.selected {
  background-color: #0071e3;
  color: #fff;
  border-color: #0071e3;
}

.collection-new {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.collection-new-input {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #dcdfe6;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
  min-width: 180px;
}

.collection-new-input:focus {
  border-color: #0071e3;
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15);
}

/* 登录 / 注册窄卡片 */
.auth-card {
  max-width: 420px;
}

.auth-divider {
  margin: 24px 0 12px;
  text-align: center;
  position: relative;
  font-size: 13px;
  color: #8f8f94;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background-color: #e0e0e5;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-social-login {
  text-align: center;
}

.auth-social-login__hint {
  margin-top: 8px;
  font-size: 13px;
  color: #8f8f94;
}

.qq-login-btn {
  border-color: rgba(0, 122, 255, 0.4);
  color: #0077ff;
  background-color: rgba(0, 122, 255, 0.08);
}

.qq-login-btn:hover {
  border-color: rgba(0, 122, 255, 0.6);
  background-color: rgba(0, 122, 255, 0.14);
  color: #0059b2;
}

.upload-result {
  max-width: 720px;
  margin: 32px auto 0;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #dff4d8;
  box-shadow: 0 25px 55px rgba(79, 189, 120, 0.15);
  padding: 40px 48px 48px;
  text-align: center;
}

.upload-result__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #4caf50, #7ddc7a);
  color: #fff;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(76, 175, 80, 0.35);
}

.upload-result__title {
  font-size: 26px;
  color: #2e7d32;
  margin-bottom: 8px;
}

.upload-result__subtitle {
  font-size: 14px;
  color: #5f6f60;
  margin-bottom: 20px;
}

.upload-result__meta {
  font-size: 15px;
  color: #4f5b40;
  margin-bottom: 28px;
}

.upload-result__meta strong {
  font-size: 18px;
  color: #2e7d32;
}

.upload-result__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.upload-result__actions .btn-primary {
  min-width: 160px;
}

.upload-result__actions .btn-ghost {
  min-width: 140px;
}

.upload-result.is-pending .upload-result__icon {
  background: linear-gradient(135deg, #94a3b8, #cbd5f5);
}

.upload-result.is-pending .upload-result__title {
  color: #0f172a;
}

.upload-result.is-pending .upload-result__subtitle {
  color: #475569;
}

.upload-result.is-pending .upload-result__actions .btn {
  pointer-events: none;
  opacity: 0.4;
}

@media (max-width: 640px) {
  .upload-result {
    padding: 32px 28px 36px;
  }

  .upload-result__actions {
    flex-direction: column;
  }
}

/* LUT 详情页 */
.detail-page {
  background-color: #f6f7fb;
  padding: 48px 0 72px;
}

.detail-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.detail-section {
  margin-top: 72px;
}

.detail-section:first-of-type {
  margin-top: 32px;
}

.detail-section--visual .detail-hero {
  margin-top: 0;
}

.detail-card {
  background-color: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.detail-card--preview {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 12px;
}

.detail-status {
  border: 1px solid #bbf7d0;
  background: linear-gradient(120deg, #ecfdf3, #dcfce7);
  color: #166534;
  font-size: 14px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
  gap: 28px;
  margin-top: 24px;
  align-items: stretch;
}

.detail-card__eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.detail-card__title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.detail-card__section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 8px 0 16px;
}

.detail-card__hint,
.detail-preview__hint {
  font-size: 13px;
  color: var(--text-light);
  margin: 8px 0 0;
  line-height: 1.6;
}

.detail-preview__hint a {
  color: var(--brand-color);
  text-decoration: none;
}

.detail-preview__hint a:hover {
  text-decoration: underline;
}

.detail-preview__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 16px;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  margin-top: 16px;
}

.detail-preview__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.detail-preview__after {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  clip-path: inset(0 0 0 50%);
}

.detail-preview__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  left: 50%;
  transform: translateX(-50%);
  cursor: ew-resize;
}

.detail-preview__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.75);
  transform: translateX(-50%);
}

.detail-preview__handle-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 16px;
  color: var(--text-main);
  pointer-events: none;
}

.detail-preview__handle-knob::before,
.detail-preview__handle-knob::after {
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--text-main);
}

.detail-preview__handle-knob::before {
  content: "<";
}

.detail-preview__handle-knob::after {
  content: ">";
}

.detail-preview__viewport:hover .detail-preview__handle-knob {
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.detail-preview__slider {
  display: none;
}

.preview-tools {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f6;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.preview-tools__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 96px;
  align-self: flex-start;
}

.detail-actions__hint {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
}

.detail-actions__hint a {
  color: var(--brand-color);
  text-decoration: none;
}

.detail-actions__hint a:hover {
  text-decoration: underline;
}

.detail-actions__secondary {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f2f6;
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.detail-author__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ddd url("../img/default-user-avatar.png") center/cover no-repeat;
}

.detail-author__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.detail-author__role {
  font-size: 13px;
  color: var(--text-light);
}

.detail-author__license-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.detail-author__license-list li {
  position: relative;
  padding-left: 16px;
}

.detail-author__license-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--brand-color);
}

.detail-card--info {
  margin-top: 32px;
}

.detail-info__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.detail-info__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.detail-info__subtitle {
  font-size: 14px;
  color: var(--text-light);
  margin: 4px 0 0;
}

.detail-info__stats {
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  gap: 16px;
}

.detail-attributes {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.detail-attributes__row {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 16px;
  padding: 16px 20px;
  background-color: var(--surface);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.detail-attributes__label {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-attributes__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.detail-attributes__value--wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.detail-tag-description {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
}

.detail-simple-description p {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-main);
}

.detail-simple-tags {
  margin-top: 4px;
}

.detail-simple-tag {
  display: inline-block;
  margin-right: 6px;
  font-size: 13px;
  color: var(--accent);
}

/* 仅针对“支持所有相机”这个特殊标签使用星星同色填充样式 */
.lut-tag--global-camera,
.lut-tag-pill--global-camera,
.detail-simple-tag--global-camera {
  border: none;
  background-color: #ffc94d;
  color: #5a3200;
  padding: 4px 12px;
  border-radius: 999px;
}
.lut-tag--global-camera:hover,
.lut-tag-pill--global-camera:hover {
  background-color: #ffb820;
  color: #3a2100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-collections-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collection-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #d2d2d7;
  font-size: 12px;
  color: #6e6e73;
  background-color: #fff;
  text-decoration: none;
}

.collection-pill:hover {
  border-color: #0071e3;
  color: #0071e3;
}

.detail-section-heading__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

.detail-section-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-section-heading__meta {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 6px;
}

.detail-about__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 12px;
}

.detail-about__license {
  margin-top: 20px;
}

.detail-about__license h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text-main);
}

.detail-bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
}

.detail-bullet-list li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--brand-color);
}

.detail-related__grid {
  margin-top: 16px;
}

.detail-related__grid .lut-card {
  height: 100%;
}

.detail-card__empty {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.03);
  color: var(--text-light);
  font-size: 14px;
}

.detail-review__composer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.detail-review__composer form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-review__composer textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  min-height: 96px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  background-color: #fafbff;
}

.detail-review__composer textarea:disabled {
  background: #f8faff;
  color: var(--text-light);
}

.detail-review__composer form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-review__form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-review__upload {
  border: 1px dashed var(--border-subtle);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-review__upload input {
  display: none;
}

.detail-review__upload-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-review__upload-text {
  color: var(--text-main);
}

.detail-review__upload-status {
  font-size: 13px;
  color: var(--text-muted);
}

.detail-review__upload-preview {
  margin-top: 12px;
  display: none;
}

.detail-review__upload-preview.is-visible {
  display: inline-flex;
  gap: 12px;
}

.detail-review__preview-thumb {
  position: relative;
  width: 160px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

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

.detail-review__preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 999px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}

.detail-review__preview-remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

.detail-review__controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.detail-reviews__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-reviews {
  background: var(--surface);
  border-radius: var(--card-radius);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: var(--card-shadow);
  padding: 32px;
}

.review-sort-pill {
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-muted);
  padding: 6px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.review-sort-pill.is-active {
  background: var(--surface);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.comment-compose.card {
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  margin-bottom: 32px;
}

.comment-compose__guest {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

.comment-compose__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.comment-compose__author {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.comment-compose__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe3ea;
  display: inline-block;
}

.comment-compose__body textarea {
  width: 100%;
  min-height: 96px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 16px;
  resize: vertical;
  font: inherit;
  background: var(--surface);
}

.comment-compose__body textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.comment-compose__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.compose-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compose-attachments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-thumb {
  position: relative;
  width: 72px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.attachment-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
}

.compose-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comment-card {
  display: flex;
  gap: 16px;
}

.comment-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #dfe3ea;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.comment-card__body {
  flex: 1;
}

.comment-card__meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.comment-card__author {
  font-weight: 600;
  color: var(--text-main);
}

.comment-card__text {
  font-size: 15px;
  color: var(--text-main);
  margin: 0 0 6px;
  line-height: 1.7;
}

.comment-card__mention {
  color: var(--text-muted);
  font-size: 13px;
  margin-right: 4px;
}

.comment-card__image img {
  max-width: 320px;
  border-radius: 14px;
  display: block;
  margin-bottom: 6px;
}

.comment-card__actions {
  display: inline-flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.comment-card__actions button {
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

.comment-card__replies {
  margin-top: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-card--reply {
  gap: 12px;
}

.comment-card--reply .comment-card__avatar {
  width: 32px;
  height: 32px;
}

.reply-compose {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reply-compose textarea {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 8px 10px;
  font: inherit;
  resize: vertical;
}

.reply-compose__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.reply-compose__actions {
  display: inline-flex;
  gap: 8px;
}

.detail-review__load-more {
  margin: 24px auto 0;
}

.btn-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.btn-progress__bar {
  position: relative;
  flex: 1;
  min-width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.18);
  overflow: hidden;
}

.btn-progress__fill {
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  animation: progressSlide 1.1s infinite ease-in-out;
}

.btn-progress__text {
  white-space: nowrap;
}

@keyframes progressSlide {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(150%);
  }
  100% {
    transform: translateX(300%);
  }
}

.detail-review__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.detail-review__meta strong {
  color: var(--text-main);
}

.detail-review__body p {
  margin: 0;
  color: var(--text-main);
  line-height: 1.6;
}

.detail-review__replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-review__reply {
  background: #f0f2f5;
  border-radius: 14px;
  padding: 10px 12px;
}

.detail-review__reply .detail-review__meta {
  margin-bottom: 4px;
}

.detail-review__reply .detail-review__actions {
  margin-top: 4px;
}

/* 个人中心 */
.profile-page {
  max-width: 1200px;
  margin: 32px auto 80px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.profile-hero__avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-hero__avatar-btn {
  width: 100%;
  min-width: 120px;
  padding: 6px 18px;
  font-size: 13px;
}

.profile-hero__avatar-status {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
  text-align: center;
}

.profile-hero__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.profile-hero__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease;
}

.profile-hero__avatar-hint {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  font-size: 12px;
  text-align: center;
  padding: 6px;
  transition: opacity 0.2s ease;
}

.profile-hero__avatar:hover img {
  transform: scale(1.03);
}

.profile-hero__avatar:hover .profile-hero__avatar-hint {
  opacity: 1;
}

.profile-hero__info h1 {
  margin: 4px 0;
  font-size: 28px;
}

.profile-hero__meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-hero__meta {
  margin: 2px 0;
  color: var(--text-light);
  font-size: 14px;
}

.profile-hero__wallet-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.profile-hero__wallet-pill:hover {
  background: rgba(0, 0, 0, 0.07);
}

.profile-hero__wallet-label {
  color: var(--text-muted);
}

.profile-hero__wallet-value {
  font-weight: 600;
  color: var(--text-main);
}

/* 会员徽标（与钱包页保持一致），用于在个人中心等位置展示小号 VIP 标识 */
.membership-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 100px;
  background: #eee;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  vertical-align: middle;
}

.membership-badge.is-pro {
  background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
  color: #8a6d3b;
}

.membership-badge.is-plus {
  background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
  color: #555;
}

.membership-badge.is-small {
  font-size: 11px;
  padding: 2px 8px;
}

/* 个人中心头部右侧的大号钱包入口 */
.profile-hero__wallet-pill--hero {
  padding: 10px 18px;
  background: transparent;
  border-radius: 16px;
  align-items: center;
  text-decoration: none;
}

.profile-hero__wallet-pill--hero:hover {
  background: #f7f9fc;
}

.profile-wallet-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.profile-wallet-summary__label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile-wallet-summary__number {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-main) 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

/* PLUS 会员每日免费次数提示条 */
.profile-plus-usage-hint {
  margin: 12px 0 4px;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, #f5f7ff 0%, #f9fafb 60%, #fefce8 100%);
  border: 1px solid rgba(0, 113, 227, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 13px;
  color: var(--text-secondary);
  align-items: center;
}

.profile-plus-usage-hint__item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
}

.profile-plus-usage-hint__label {
  font-weight: 600;
  color: var(--text-main);
}

.profile-plus-usage-hint__value {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .profile-plus-usage-hint {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 通用积分弹窗样式（全站可用） */
.points-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.points-modal.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.profile-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-points-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-points-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.profile-points-card__balance {
  text-align: right;
}

.points-balance-number {
  display: block;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.1;
}

.points-balance-label {
  color: var(--text-muted);
  font-size: 14px;
}

.profile-points-card__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.points-recharge h3,
.points-history h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.points-recharge__hint {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.points-recharge-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.points-recharge-chip {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #fff;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.points-recharge-chip.is-active {
  border-color: var(--brand-color);
  color: var(--brand-color);
  background: rgba(0, 113, 227, 0.08);
}

.points-recharge-input {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.points-recharge-input input {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
}

.points-recharge-actions {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.points-recharge-rate {
  font-size: 14px;
  color: var(--text-muted);
}

.points-history {
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  padding: 18px;
  background: #fafafa;
}

.points-orders-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.points-orders-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.points-orders-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.points-order-amount {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

.points-order-meta {
  text-align: right;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.points-order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.points-order-status--paid {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.points-order-status--pending {
  background: rgba(250, 204, 21, 0.2);
  color: #92400e;
}

.points-order-status--closed {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.points-history-empty {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.wechat-pay-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

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

.wechat-pay-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.wechat-pay-modal__dialog {
  position: relative;
  z-index: 1001;
  width: min(640px, calc(100% - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(15, 15, 15, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wechat-pay-modal__header {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wechat-pay-modal__header h3 {
  margin: 0;
  font-size: 18px;
}

.wechat-pay-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.wechat-pay-modal__body {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
}

.wechat-pay-modal__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
  border-radius: 16px;
  padding: 16px;
}

.wechat-pay-modal__qr img {
  width: 280px;
  height: 280px;
}

.wechat-pay-modal__info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wechat-pay-modal__amount {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
}

.wechat-pay-modal__order {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.wechat-pay-modal__hint {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.wechat-pay-modal__status {
  min-height: 24px;
  font-size: 14px;
  color: var(--text-main);
}

body.is-wechat-pay-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .wechat-pay-modal__body {
    grid-template-columns: 1fr;
  }
  .wechat-pay-modal__qr img {
    width: 220px;
    height: 220px;
  }
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
}

.profile-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  background-color: transparent;
}

.profile-tab.is-active {
  color: var(--text-main);
  border-color: var(--brand-color);
  background-color: rgba(255, 75, 75, 0.08);
  font-weight: 600;
}

.profile-panel {
  display: none;
}

.profile-panel.is-active {
  display: block;
}

.profile-card__header h2 {
  margin: 4px 0;
  font-size: 20px;
  color: var(--text-main);
}

.profile-card__hint {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

.profile-form {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--text-muted);
}

.profile-form input,
.profile-form textarea {
  border-radius: 10px;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  background-color: #fff;
}

.profile-form__actions {
  margin-top: 4px;
  display: flex;
  gap: 12px;
}

.profile-avatar-input-label input[type="file"] {
  padding: 6px 0;
}

.profile-alert {
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
}

.profile-alert--success {
  background-color: #ecfdf3;
  color: #166534;
}

.profile-alert--error {
  background-color: #fef2f2;
  color: #b91c1c;
}

.social-bind-card {
  margin-top: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.social-bind-title {
  margin: 0;
  font-weight: 600;
  color: var(--text-main);
}

.social-bind-meta {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-bind-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-size: cover;
  background-position: center;
}

.avatar-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.avatar-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.avatar-modal-dialog {
  position: relative;
  width: 820px;
  max-width: calc(100% - 32px);
  max-height: calc(100% - 64px);
  margin: 32px auto;
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.avatar-modal-header,
.avatar-modal-footer {
  padding: 14px 22px;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.avatar-modal-footer {
  border-bottom: none;
  border-top: 1px solid #f0f0f0;
}

.avatar-modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.avatar-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.avatar-modal-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
  gap: 22px;
  padding: 18px 22px 22px;
  overflow: hidden;
}

.avatar-cropper-area {
  position: relative;
  background-color: #f5f5f7;
  border-radius: 14px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.avatar-cropper-area img {
  max-width: 100%;
  max-height: 100%;
  display: none;
}

.avatar-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e73;
  font-size: 14px;
}

.avatar-sidebar {
  display: flex;
  flex-direction: column;
}

.avatar-upload {
  margin-bottom: 16px;
}

.avatar-tip {
  margin-top: 8px;
  font-size: 12px;
  color: #6e6e73;
}

.avatar-preview-title {
  font-size: 14px;
  color: #111;
  margin-bottom: 8px;
}

.avatar-preview {
  border-radius: 50%;
  overflow: hidden;
  background-color: #f5f5f7;
  margin-bottom: 12px;
}

.avatar-preview-lg {
  width: 120px;
  height: 120px;
}

.avatar-preview-sm {
  width: 40px;
  height: 40px;
}

@media (max-width: 768px) {
  .avatar-modal-dialog {
    margin: 20px auto;
    max-height: calc(100% - 40px);
  }

  .avatar-modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-hero__actions {
    justify-content: center;
  }

  .profile-points-card__content {
    grid-template-columns: 1fr;
  }

  .points-orders-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .points-order-meta {
    text-align: left;
  }
}

.collection-modal {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.collection-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.collection-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
}

.collection-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: min(520px, calc(100% - 32px));
  padding: 20px 24px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.collection-modal__body {
  max-height: 60vh;
  overflow: auto;
}

.collection-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collection-modal__close {
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
}

.collection-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.is-collection-modal-open {
  overflow: hidden;
}

.profile-section {
  margin-top: 12px;
}

.profile-lut-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.profile-lut-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: 18px;
  align-items: center;
  background-color: #fff;
}

.profile-lut-card__thumb img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.profile-lut-card__meta h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.profile-lut-card__meta p {
  margin: 2px 0;
  color: var(--text-light);
  font-size: 14px;
}

.profile-lut-card__stats {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-lut-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-empty {
  border: 1px dashed var(--border-color);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--text-light);
  margin-top: 16px;
}

.profile-fav-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.profile-infinite-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.profile-infinite-more {
  cursor: pointer;
}

.profile-infinite-meta {
  color: var(--text-muted);
}

.profile-fav-card {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
  background-color: #fff;
}

.profile-fav-thumb img {
  width: 100%;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.profile-fav-body h3 {
  margin: 0;
  font-size: 16px;
}

.profile-lut-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 10px;
}

.profile-lut-status__note {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-fav-body p {
  margin: 4px 0 0;
  color: var(--text-light);
  font-size: 13px;
}

.profile-fav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-fav-card--uploads .profile-fav-body h3 {
  font-size: 18px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-fav-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-fav-actions--uploads {
  gap: 10px;
}

.profile-upload-delete-form {
  margin: 0;
  width: 100%;
}

.profile-upload-delete-form .btn {
  width: 100%;
}

/* 作者主页 */
.author-page {
  max-width: 1200px;
  margin: 32px auto 80px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.author-hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-hero__header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.author-hero__avatar img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.author-hero__info {
  flex: 1;
  min-width: 260px;
}

.author-hero__meta {
  margin-top: 4px;
  font-size: 14px;
}

.author-hero__stats {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  gap: 24px;
}

.author-hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--text-light);
}

.author-hero__stats strong {
  font-size: 22px;
  color: var(--text-main);
}

.author-hero__cta {
  margin-left: auto;
}

.author-hero__bio {
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.author-hero__bio-title {
  margin: 0 0 8px;
}

.author-hero__bio-text {
  margin: 0;
  line-height: 1.7;
  color: var(--text-main);
}

.author-works {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.author-works__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.author-works__count {
  font-size: 14px;
  color: var(--text-light);
}

.author-empty {
  border: 1px dashed var(--border-color);
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.8);
}

.author-empty .btn {
  margin-top: 12px;
}

@media (max-width: 960px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-hero__actions {
    justify-content: center;
  }

  .profile-tab {
    flex: 1;
    text-align: center;
  }

  .profile-lut-card,
  .profile-fav-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-lut-card__actions,
  .profile-fav-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .author-hero__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .author-hero__cta {
    width: 100%;
    margin-left: 0;
  }

  .author-hero__stats {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 960px) {
  .detail-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .preview-tools {
    flex-direction: column;
  }

  .preview-tools__buttons {
    width: 100%;
  }

  .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .detail-hero {
    margin-top: 16px;
  }

  .detail-attributes {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

.restore-page {
  display: block;
}

.restore-page .card {
  margin-bottom: 24px;
}

.restore-hero {
  display: flex;
  gap: 32px;
  padding: 32px 36px;
  background: linear-gradient(120deg, #f6f8ff, #f0f5ff 60%, #fef9ff);
  border: none;
}

.restore-hero__content {
  flex: 1;
}

.restore-hero__eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.restore-hero__title {
  font-size: 36px;
  margin: 0 0 12px;
}

.restore-hero__desc {
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 540px;
}

.restore-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.restore-hero__stats {
  display: grid;
  gap: 18px;
  grid-auto-flow: row;
  min-width: 200px;
  padding-left: 16px;
  border-left: 1px solid rgba(0, 0, 0, 0.06);
}

.restore-hero__stat-number {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
}

.restore-hero__stat-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.restore-filter {
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.restore-filter__label {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.restore-filter__chips {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
}

.restore-chip {
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.restore-chip.is-active,
.restore-chip:hover {
  background: var(--brand-color-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.restore-camera-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.camera-card {
  padding: 28px 30px;
}

.camera-card__header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.camera-card__logo {
  display: flex;
  align-items: center;
  gap: 18px;
}

.camera-card__logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 8px;
}

.camera-card__brand {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.variant-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.variant-table__header {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr;
  gap: 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 8px;
}

.variant-row {
  display: grid;
  grid-template-columns: 1.2fr 1.1fr 1.1fr;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  background: #fafbff;
  align-items: center;
}

.variant-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.variant-value {
  font-size: 15px;
  font-weight: 500;
}

.variant-cell--output {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.variant-output {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.variant-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-download {
  width: auto;
  min-width: 140px;
  justify-content: center;
  white-space: nowrap;
}

.variant-empty {
  padding: 24px;
  border-radius: 14px;
  background: #f6f7fb;
  color: var(--text-muted);
}

.restore-empty {
  padding: 48px;
  text-align: center;
}

@media (max-width: 960px) {
  .restore-hero {
    flex-direction: column;
  }
  .restore-hero__stats {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-left: 0;
    padding-top: 16px;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .variant-table__header {
    display: none;
  }
  .variant-row {
    grid-template-columns: 1fr;
  }
  .variant-cell--output {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .btn-download {
    width: 100%;
  }
  .camera-card {
    padding: 22px;
  }
  .camera-card__logo img {
    width: 56px;
    height: 56px;
  }
  .restore-filter {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 移动端 / 竖屏整体布局优化 */
@media screen and (max-width: 768px),
  screen and (max-width: 1024px) and (orientation: portrait) {
  :root {
    --content-max-width: min(100%, 640px);
    --container-pad-x: clamp(16px, 6vw, 28px);
    --container-pad-y: clamp(18px, 8vw, 48px);
    --card-radius: 16px;
    --gap-lg: clamp(16px, 6vw, 32px);
  }

  body {
    font-size: 15px;
    background-color: #f7f7f9;
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }

  .site-shell {
    width: 100%;
  }

  .page-container {
    padding: var(--container-pad-y) var(--container-pad-x) calc(112px + env(safe-area-inset-bottom));
  }

  .main-header__inner {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 16px;
  }

  .main-header__menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    margin-left: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
  }

  .main-nav a {
    width: 100%;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .main-nav__logout {
    display: block;
  }

  .main-header__actions {
    order: 4;
    width: 100%;
    display: none;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .main-header.is-mobile-open .main-nav,
  .main-header.is-mobile-open .main-header__actions {
    display: flex;
  }

  .main-header--authed .main-header__actions .header-link--text {
    display: none;
  }

  .main-header--authed .header-user-chip {
    padding: 0;
    background: transparent;
  }

  .main-header--authed .header-user-chip__name {
    display: none;
  }

  .main-header--authed .header-user-chip__avatar {
    width: 36px;
    height: 36px;
  }

  .main-header--authed .header-notify__btn {
    margin-right: 0;
  }

  .main-header--authed .header-notify__panel {
    left: auto;
    right: 0;
    transform: none;
  }

  .header-notify__panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(360px, calc(100vw - 32px));
    max-height: min(480px, calc(100vh - 120px));
  }

  .hero {
    padding: 32px 0 40px;
  }

  .hero__inner {
    gap: 12px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-title,
  .section-subtitle {
    text-align: left;
  }

  .layout-split,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .card,
  .detail-card,
  .profile-card,
  .form-card,
  .filter-bar,
  .camera-card,
  .card-section,
  .block-card {
    padding: 20px;
  }

  .collection-chip-grid,
  .category-listing,
  .detail-related__grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
  }

  .contributors-list {
    gap: 20px;
  }

  .lut-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .filter-bar__grid,
  .browse-advanced-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-bar__actions .btn {
    width: 100%;
  }

  .lut-card__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .lut-card__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .collection-header-body,
  .detail-info__header,
  .detail-review__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-attributes {
    grid-template-columns: 1fr;
  }

  .detail-review__form-actions,
  .detail-review__controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .detail-review__form-actions .btn,
  .detail-review__controls .btn {
    width: 100%;
    justify-content: center;
  }

  .detail-review__composer textarea {
    min-height: 160px;
  }

  .profile-lut-card,
  .profile-fav-card {
    grid-template-columns: 1fr;
  }

  .profile-lut-card__actions,
  .profile-fav-actions,
  .profile-form__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .author-hero__header,
  .camera-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .restore-hero {
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .restore-hero__stats {
    border: none;
    padding: 0;
    grid-auto-flow: row;
    grid-auto-columns: unset;
  }

  .variant-table__header {
    display: none;
  }

  .variant-row {
    grid-template-columns: 1fr;
  }

  .variant-cell--action {
    align-items: stretch;
  }

  .tag-filter__actions input[type="text"],
  .tag-filter__actions .browse-keyword-input {
    flex: 1 1 100%;
    max-width: none;
    min-width: 0;
  }
}

/* 简单图标字符模拟 */
.icon-download::before {
  content: "⬇";
  margin-right: 4px;
}

.icon-eye::before {
  content: "◉";
  margin-right: 4px;
}

.mobile-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.04);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 999;
}

.mobile-tabbar__item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.mobile-tabbar__icon {
  font-size: 18px;
}

.mobile-tabbar__item.is-active {
  color: var(--accent);
}

@media screen and (max-width: 768px),
  screen and (max-width: 1024px) and (orientation: portrait) {
  body {
    padding-bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .mobile-tabbar {
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
  }
}



