
.sidebar-wrapper[data-v-e03fac9d] {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg, #e8d9b5);
}
.sidebar-header[data-v-e03fac9d] {
  padding: 26px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--vintage-border);
}
.decorative-icon[data-v-e03fac9d] {
  font-size: 24px;
}
.sidebar-header h3[data-v-e03fac9d] {
  margin: 0;
  font-size: 18px;
  color: var(--vintage-ink);
  letter-spacing: 2px;
}
.menu[data-v-e03fac9d] {
  flex: 1;
  border: none;
  background: transparent;
  padding: 20px 0;
}
.menu[data-v-e03fac9d] .el-menu-item {
  height: 56px;
  margin: 4px 15px;
  border-radius: 4px;
  color: var(--vintage-ink);
  font-size: 16px;
  transition: all .2s;
}
.menu[data-v-e03fac9d] .el-menu-item:hover {
  background: rgba(139, 43, 43, 0.1) !important;
  color: var(--vintage-red);
}
.menu[data-v-e03fac9d] .el-menu-item.is-active {
  background: var(--vintage-red) !important;
  color: #fff !important;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.sidebar-footer[data-v-e03fac9d] {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: rgba(44,41,37,.5);
  border-top: 1px solid var(--vintage-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.user-info[data-v-e03fac9d] {
  font-size: 13px;
  color: var(--vintage-ink);
  margin: 0;
}
:root {
  /* 仿古配色方案 */
  --vintage-paper: #f4e9d4;
  --vintage-paper-dark: #e8d9b5;
  --vintage-ink: #2c2925;
  --vintage-red: #8b2b2b;
  --vintage-gold: #b2935d;
  --vintage-border: rgba(44, 41, 37, 0.2);
  --vintage-shadow: rgba(0, 0, 0, 0.15);
  
  /* 字体设定 */
  --font-zh: "LXGW WenKai", "Microsoft YaHei", serif;
}
body {
  margin: 0;
  padding: 0;
  background-color: var(--vintage-paper);
  color: var(--vintage-ink);
  font-family: var(--font-zh);
  background-image: url('/assets/paper-texture.png');
  background-blend-mode: multiply;
}

/* 仿古卡片样式 */
.vintage-card {
  background: var(--vintage-paper-dark);
  border: 1px solid var(--vintage-border);
  box-shadow: 2px 2px 10px var(--vintage-shadow);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.vintage-card:hover {
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}
.vintage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* 按钮样式：印章/卷轴质感 */
.vintage-button {
  background: var(--vintage-red);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-zh);
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
.vintage-button:hover {
  background: #a33232;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}
.vintage-button:active {
  transform: translateY(0);
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 标题装饰 */
.vintage-title {
  color: var(--vintage-ink);
  border-bottom: 2px solid var(--vintage-red);
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: bold;
}

/* 新增动画效果 */
@keyframes fadeInUp {
from {
    opacity: 0;
    transform: translateY(20px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}
@keyframes fadeIn {
from { opacity: 0;
}
to { opacity: 1;
}
}
@keyframes pulse {
0%, 100% { opacity: 1;
}
50% { opacity: 0.6;
}
}
@keyframes shimmer {
0% { background-position: -200% 0;
}
100% { background-position: 200% 0;
}
}
@keyframes float {
0%, 100% { transform: translateY(0);
}
50% { transform: translateY(-5px);
}
}
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}
.animate-pulse {
  animation: pulse 2s infinite;
}
.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* 加载状态样式 */
.loading-shimmer {
  background: linear-gradient(90deg, var(--vintage-paper-dark) 25%, #f0e6d2 50%, var(--vintage-paper-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 悬浮效果 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 文字选中样式 */
::selection {
  background: rgba(139, 43, 43, 0.3);
  color: var(--vintage-ink);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--vintage-paper);
}
::-webkit-scrollbar-thumb {
  background: var(--vintage-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9a7d4a;
}
:root {
  --sidebar-bg: #e8d9b5;
  --header-height: 88px;
}
#app { min-height: 100vh;
}
.vintage-theme { background-color: var(--vintage-paper); background-image: url('/assets/paper-texture.png'); background-repeat: repeat; background-size: 500px;
}
.layout-container { height: 100%;
}
.header { height: var(--header-height) !important; background: transparent; border-bottom: 2px solid var(--vintage-red); padding: 0 32px; z-index: 10;
}
.header-content { width: 100%; height: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.logo-section { display: flex; align-items: center; gap: 10px;
}
.mobile-menu-btn { display: none; font-size: 24px; color: var(--vintage-red);
}
.logo-img { height: 48px; filter: sepia(0.5) contrast(1.2); flex-shrink: 0;
}
.header-titles { min-width: 0;
}
.vintage-title { margin: 0; font-size: 24px; font-weight: bold; color: var(--vintage-ink); border-bottom: none; padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vintage-subtitle { margin: 2px 0 0 0; font-size: 11px; color: var(--vintage-red); letter-spacing: 0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stats-section { display: flex; gap: 10px; flex-wrap: nowrap; justify-content: flex-end;
}
.stat-item { min-width: 80px; text-align: center; padding: 6px 10px; background: rgba(255,255,255,0.3); border: 1px solid var(--vintage-border); border-radius: 4px;
}
.stat-number { font-size: 18px; font-weight: bold; color: var(--vintage-red); line-height: 1.2;
}
.stat-label { font-size: 10px; color: var(--vintage-ink); opacity: .8;
}
.status-chip .stat-number { font-size: 14px;
}
.user-chip { cursor: pointer; transition: background .2s;
}
.user-chip:hover { background: rgba(139, 43, 43, 0.12) !important;
}
.login-btn-header { font-size: 14px; color: var(--vintage-red);
}
.sidebar { background: var(--sidebar-bg); border-right: 2px solid var(--vintage-border); display: flex; flex-direction: column;
}
.desktop-only { display: flex;
}
@media (max-width: 992px) {
.desktop-only { display: none;
}
.mobile-menu-btn { display: inline-flex;
}
.header { padding: 0 16px;
}
.vintage-title { font-size: 20px;
}
.vintage-subtitle { font-size: 10px;
}
.stats-section { display: none;
}
}
.sidebar-header { padding: 26px 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--vintage-border);
}
.decorative-icon { font-size: 24px;
}
.sidebar-header h3 { margin: 0; font-size: 18px; color: var(--vintage-ink); letter-spacing: 2px;
}
.menu { flex: 1; border: none; background: transparent; padding: 20px 0;
}
.menu :deep(.el-menu-item) { height: 56px; margin: 4px 15px; border-radius: 4px; color: var(--vintage-ink); font-size: 16px; transition: all .2s;
}
.menu :deep(.el-menu-item:hover) { background: rgba(139, 43, 43, 0.1) !important; color: var(--vintage-red);
}
.menu :deep(.el-menu-item.is-active) { background: var(--vintage-red) !important; color: #fff !important; box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}
.sidebar-footer { padding: 20px; text-align: center; font-size: 12px; color: rgba(44,41,37,.5); border-top: 1px solid var(--vintage-border); display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.main-content { padding: 30px; background: transparent; overflow-y: auto; height: calc(100vh - var(--header-height));
}
@media (max-width: 992px) {
.main-content { padding: 16px 10px;
}
}
::-webkit-scrollbar { width: 8px;
}
::-webkit-scrollbar-track { background: var(--vintage-paper);
}
::-webkit-scrollbar-thumb { background: var(--vintage-gold); border-radius: 4px;
}

/* NOTE: 此处的 el-drawer 内层用 SidebarContent 填充背景 */
:deep(.mobile-drawer .el-drawer__body) { padding: 0; background: var(--sidebar-bg, #e8d9b5);
}
/* ══════════════════════════════════════════════════
   仿古全局补丁 - 彻底消除 Element Plus 白色背景
   ══════════════════════════════════════════════════ */

/* ── el-card 全局覆盖 ──────────────────────────── */
.vintage-theme .el-card,
.vintage-theme .el-card.is-always-shadow,
.vintage-card.el-card {
  background: rgba(253, 246, 227, 0.75) !important;
  border: 1px solid #c9a86c !important;
  box-shadow: 2px 2px 8px rgba(139, 105, 20, 0.12) !important;
}

.vintage-theme .el-card__body {
  background: transparent !important;
}

.vintage-theme .el-card__header {
  background: rgba(240, 220, 170, 0.4) !important;
  border-bottom: 1px solid #c9a86c !important;
  color: #3a1a00;
}

/* ── 上传区域 ──────────────────────────────────── */
.vintage-theme .el-upload,
.vintage-theme .el-upload-dragger {
  background: rgba(253, 246, 227, 0.6) !important;
  border: 2px dashed #c9a86c !important;
  border-radius: 6px;
}
.vintage-theme .el-upload-dragger:hover {
  border-color: #8B6914 !important;
  background: rgba(253, 246, 227, 0.85) !important;
}

/* ── 预览容器 ──────────────────────────────────── */
.preview-container,
.result-area,
.preview-area {
  background: linear-gradient(135deg, #f5e9c8 0%, #edddb0 50%, #e6cc88 100%) !important;
  border: 1px solid #c9a86c !important;
  position: relative;
  overflow: hidden;
}

/* 宣纸纹理 */
.preview-container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 24px, rgba(139,105,20,.06) 25px),
    repeating-linear-gradient(90deg, transparent, transparent 24px, rgba(139,105,20,.04) 25px);
  z-index: 0;
}

/* ── Three.js 查看器 ───────────────────────────── */
.viewer-container {
  background: linear-gradient(135deg, #f0e2c0 0%, #e8d5a5 100%) !important;
  border: 1px solid #c9a86c !important;
}

/* ── 通用表单控件 ──────────────────────────────── */
.vintage-theme .el-input__wrapper,
.vintage-theme .el-select .el-input__wrapper {
  background: rgba(253, 246, 227, 0.7) !important;
  box-shadow: 0 0 0 1px #c9a86c inset !important;
}
.vintage-theme .el-input__inner {
  color: #3a1a00 !important;
}
.vintage-theme .el-select-dropdown {
  background: #fdf6e3 !important;
  border: 1px solid #c9a86c !important;
}

/* ── radio 和 checkbox ────────────────────────── */
.vintage-theme .el-radio__input.is-checked .el-radio__inner {
  background: #8B1a1a !important;
  border-color: #8B1a1a !important;
}
.vintage-theme .el-radio__input.is-checked + .el-radio__label {
  color: #8B1a1a !important;
}

/* ── tabs 选项卡 ──────────────────────────────── */
.vintage-theme .el-tabs--border-card {
  background: rgba(253, 246, 227, 0.6) !important;
  border-color: #c9a86c !important;
}
.vintage-theme .el-tabs--border-card > .el-tabs__header {
  background: rgba(240, 220, 170, 0.5) !important;
  border-bottom-color: #c9a86c !important;
}
.vintage-theme .el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  background: rgba(253, 246, 227, 0.95) !important;
  color: #8B1a1a !important;
  border-right-color: #c9a86c !important;
  border-left-color: #c9a86c !important;
}
.vintage-theme .el-tabs__content {
  background: transparent !important;
}

/* ── el-scrollbar ─────────────────────────────── */
.vintage-theme .el-scrollbar__view {
  background: transparent !important;
}

/* ── el-alert ─────────────────────────────────── */
.vintage-theme .el-alert--info {
  background: rgba(253, 246, 227, 0.6) !important;
  border: 1px solid #c9a86c !important;
}

/* ── 空态提示 ─────────────────────────────────── */
.empty-preview,
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
  position: relative;
  color: #8B6914;
}

/* ── 加载墨晕动画 ─────────────────────────────── */
.ink-spreading {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, #3a1a00 0%, transparent 70%);
  animation: inkSpread 1.5s ease-in-out infinite;
}
@keyframes inkSpread {
  0%   { transform: scale(0.3); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── 文创产品选择 ─────────────────────────────── */
.product-item {
  padding: 16px 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #c9a86c;
  border-radius: 6px;
  background: rgba(253, 246, 227, 0.6) !important;
  transition: all 0.25s;
}
.product-item:hover {
  transform: translateY(-3px);
  border-color: #8B6914;
  background: rgba(253, 246, 227, 0.9) !important;
}
.product-item.active {
  border-color: #8B1a1a !important;
  background: rgba(139, 26, 26, 0.08) !important;
  box-shadow: 0 0 0 2px rgba(139, 26, 26, 0.15);
}

/* ── 文物列表项 ──────────────────────────────── */
.artifact-item {
  background: rgba(253, 246, 227, 0.5) !important;
  border: 1px solid #c9a86c !important;
}
.artifact-item:hover {
  background: rgba(253, 246, 227, 0.8) !important;
}
.artifact-item.active {
  border-color: #8B1a1a !important;
  background: rgba(139, 26, 26, 0.06) !important;
}

/* ── 图片样式 ────────────────────────────────── */
.preview-image {
  max-width: 100%;
  max-height: 380px;
  border: 6px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.cert-img {
  max-width: 100%;
  border: 1px solid #c9a86c;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

/* ── 文案展示 ────────────────────────────────── */
.copy-text {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
  color: #2a0e00;
  padding: 10px;
  background: rgba(253, 246, 227, 0.45);
  border-radius: 3px;
}

/* ── AR 区域 ─────────────────────────────────── */
.ar-content { display: flex; gap: 24px; align-items: flex-start; }
.ar-qr-wrap {
  flex-shrink: 0; padding: 10px;
  background: #fdf6e3; border: 1px solid #9b7c3e; border-radius: 4px;
}
.ar-qr { width: 180px; height: 180px; display: block; }
:root {
  /* 仿古配色方案 */
  --vintage-paper: #f4e9d4;
  --vintage-paper-dark: #e8d9b5;
  --vintage-ink: #2c2925;
  --vintage-red: #8b2b2b;
  --vintage-gold: #b2935d;
  --vintage-border: rgba(44, 41, 37, 0.2);
  --vintage-shadow: rgba(0, 0, 0, 0.15);
  
  /* 字体设定 */
  --font-zh: "LXGW WenKai", "Microsoft YaHei", serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--vintage-paper);
  color: var(--vintage-ink);
  font-family: var(--font-zh);
  background-image: url('/assets/paper-texture.png');
  background-blend-mode: multiply;
}

/* 仿古卡片样式 */
.vintage-card {
  background: var(--vintage-paper-dark);
  border: 1px solid var(--vintage-border);
  box-shadow: 2px 2px 10px var(--vintage-shadow);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.vintage-card:hover {
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.vintage-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* 按钮样式：印章/卷轴质感 */
.vintage-button {
  background: var(--vintage-red);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-zh);
  box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.vintage-button:hover {
  background: #a33232;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.vintage-button:active {
  transform: translateY(0);
  box-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* 标题装饰 */
.vintage-title {
  color: var(--vintage-ink);
  border-bottom: 2px solid var(--vintage-red);
  padding-bottom: 10px;
  display: inline-block;
  margin-bottom: 20px;
  font-weight: bold;
}

/* 新增动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* 加载状态样式 */
.loading-shimmer {
  background: linear-gradient(90deg, var(--vintage-paper-dark) 25%, #f0e6d2 50%, var(--vintage-paper-dark) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 悬浮效果 */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 文字选中样式 */
::selection {
  background: rgba(139, 43, 43, 0.3);
  color: var(--vintage-ink);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--vintage-paper);
}

::-webkit-scrollbar-thumb {
  background: var(--vintage-gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9a7d4a;
}
