﻿:root {
  --bg-0: #08111c;
  --bg-1: #102338;
  --bg-2: #18324b;
  --gold-1: #f5d18d;
  --gold-2: #c5974f;
  --gold-3: #8d6232;
  --ice-1: #8fd9ff;
  --ice-2: #4aa2d9;
  --ink: #ecf0f6;
  --muted: #aeb9c9;
  --panel: rgba(8, 22, 34, 0.78);
  --line: rgba(255, 219, 158, 0.32);
  --ok: #85d18d;
  --warn: #f0b86d;
  --bad: #e88a8a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  scroll-behavior: smooth;
  font-family: "Noto Serif SC", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(93, 178, 223, 0.18), transparent 36%),
    radial-gradient(circle at 85% 8%, rgba(228, 170, 84, 0.15), transparent 30%),
    linear-gradient(120deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
  overflow-x: hidden;
}

/* 整页滚动容器 */
.layout {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* 每个section高度调整 - 更紧凑但仍有冲击力 */
/* 每个section高度调整 - 更紧凑但仍有冲击力 */
.hero {
  min-height: 75vh;
  min-height: 75dvh;
}

.featured-section {
  min-height: 70vh;
  min-height: 70dvh;
}

#sync {
  min-height: 55vh;
  min-height: 55dvh;
  padding-top: 30px;
}

/* 订单查询栏 - 紧凑高度 */
.query-section {
  min-height: 18vh;
  min-height: 18dvh;
  padding: 20px 20px;
  background: linear-gradient(135deg, rgba(10, 22, 37, 0.6), rgba(17, 33, 50, 0.4));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.query-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.query-box h3 {
  margin: 0;
  color: var(--gold-1);
  font-size: 1.1rem;
}

.query-form-inline {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 600px;
}

.query-form-inline input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.95rem;
}

.query-form-inline input::placeholder {
  color: var(--muted);
}

.query-form-inline .btn {
  padding: 10px 20px;
  white-space: nowrap;
}

#products-page,
#order {
  min-height: 100vh;
  min-height: 100dvh;
}

.hero,
.featured-section,
#sync,
#products-page,
#order,
#query-page {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
}

/* hero区域背景样式 */
.hero {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(10, 22, 37, 0.86), rgba(17, 33, 50, 0.62)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='rgba(255,210,139,.08)' stroke-width='1'%3E%3Cpath d='M0 70h140M70 0v140'/%3E%3Ccircle cx='70' cy='70' r='46'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 140px 140px;
}

/* 内容容器 */
.section-content {
  width: min(1200px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* 视差背景层 */
.parallax-bg {
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(245, 209, 141, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(143, 217, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(93, 178, 223, 0.04) 0%, transparent 70%);
  animation: parallaxFloat 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes parallaxFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(2%, -2%) scale(1.05);
  }
  50% {
    transform: translate(-1%, 1%) scale(1.02);
  }
  75% {
    transform: translate(1%, 2%) scale(1.03);
  }
}

/* 滚动触发动画 */
.scroll-animate {
  opacity: 0;
  transform: translateY(60px);
  transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* 文字逐字动画 */
.char-animate {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: charReveal 1.0s ease forwards;
}

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

/* 鼠标跟随光效 */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 209, 141, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

/* 粒子效果 */
.particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(245, 209, 141, 0.6);
  border-radius: 50%;
  animation: particleFloat 15s infinite;
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}

/* 卡片悬浮效果 */
.float-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.float-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(245, 209, 141, 0.2);
}

/* 脉冲光晕 */
.pulse-glow {
  position: relative;
}

.pulse-glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(45deg, var(--gold-1), var(--ice-1), var(--gold-1));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.05);
  }
}

/* 滚动指示器 */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  animation: bounce 2s infinite;
}

.scroll-indicator::after {
  content: '↓';
  font-size: 1.5rem;
  color: var(--gold-1);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--ice-1) 50%, var(--gold-1) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradientShift 3s linear infinite;
}

/* 打字机效果 */
.typewriter {
  overflow: hidden;
  border-right: 3px solid var(--gold-1);
  white-space: nowrap;
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--gold-1) }
}

/* 3D卡片翻转效果 */
.flip-card {
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
}

.flip-card-back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, rgba(12, 30, 47, 0.95), rgba(8, 20, 32, 0.9));
  display: grid;
  place-items: center;
  padding: 20px;
}

/* 波浪装饰 */
.wave-decoration {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-decoration svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 60px;
}

.wave-decoration .shape-fill {
  fill: rgba(245, 209, 141, 0.1);
}

/* 几何装饰 */
.geometric-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.geometric-shapes .shape {
  position: absolute;
  opacity: 0.1;
  animation: shapeFloat 20s ease-in-out infinite;
}

.geometric-shapes .shape-circle {
  width: 200px;
  height: 200px;
  border: 2px solid var(--gold-1);
  border-radius: 50%;
  top: 10%;
  right: 5%;
}

.geometric-shapes .shape-triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid var(--ice-1);
  bottom: 20%;
  left: 5%;
  animation-delay: -5s;
}

.geometric-shapes .shape-square {
  width: 120px;
  height: 120px;
  border: 2px solid var(--gold-1);
  transform: rotate(45deg);
  top: 50%;
  right: 10%;
  animation-delay: -10s;
}

@keyframes shapeFloat {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(20px, -20px) rotate(5deg);
  }
  50% {
    transform: translate(-10px, 10px) rotate(-5deg);
  }
  75% {
    transform: translate(15px, 15px) rotate(3deg);
  }
}

/* 发光边框 - 静态效果 */
.glow-border {
  position: relative;
  border: 1px solid rgba(245, 209, 141, 0.3);
  box-shadow: 0 0 15px rgba(245, 209, 141, 0.1);
}

/* 霓虹文字效果 */
.neon-text {
  text-shadow: 
    0 0 5px var(--gold-1),
    0 0 10px var(--gold-1),
    0 0 20px var(--gold-1),
    0 0 40px var(--gold-1);
  animation: neonFlicker 2s ease-in-out infinite alternate;
}

@keyframes neonFlicker {
  0%, 100% {
    text-shadow: 
      0 0 5px var(--gold-1),
      0 0 10px var(--gold-1),
      0 0 20px var(--gold-1),
      0 0 40px var(--gold-1);
  }
  50% {
    text-shadow: 
      0 0 2px var(--gold-1),
      0 0 5px var(--gold-1),
      0 0 10px var(--gold-1),
      0 0 20px var(--gold-1);
  }
}

/* 磁吸按钮效果 */
.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.magnetic-btn:hover {
  transform: scale(1.05);
}

/* 扫描线效果 */
.scan-line {
  position: relative;
  overflow: hidden;
}

.scan-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* 旋转光环 */
.rotating-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(245, 209, 141, 0.3);
  border-radius: 50%;
  animation: rotateRing 20s linear infinite;
}

@keyframes rotateRing {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 数据流动效果 */
.data-stream {
  position: absolute;
  font-family: monospace;
  font-size: 11px;
  color: rgba(143, 217, 255, 0.15);
  white-space: nowrap;
  animation: dataStream 20s linear infinite;
}

@keyframes dataStream {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  5% {
    opacity: 0.8;
  }
  95% {
    opacity: 0.8;
  }
  100% {
    transform: translateX(100vw);
    opacity: 0;
  }
}

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

/* ========== 骨架屏动画 ========== */

@keyframes skeletonPulse {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.4;
  }
}

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

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(143, 217, 255, 0.1) 0%,
    rgba(143, 217, 255, 0.2) 50%,
    rgba(143, 217, 255, 0.1) 100%
  );
  background-size: 200% 100%;
  border-radius: 4px;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

.skeleton-title {
  height: 24px;
  width: 40%;
  margin-bottom: 16px;
}

.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.skeleton-card {
  background: rgba(8, 19, 31, 0.5);
  border: 1px solid rgba(143, 217, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.skeleton-card-image {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  margin-bottom: 12px;
}

/* 商品卡片骨架屏 */
.product-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.product-skeleton-card {
  background: rgba(8, 19, 31, 0.5);
  border: 1px solid rgba(143, 217, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  height: 200px;
}

.product-skeleton-image {
  width: 100%;
  height: 100px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-skeleton-title {
  height: 20px;
  width: 70%;
  margin-bottom: 8px;
}

.product-skeleton-price {
  height: 16px;
  width: 40%;
}

/* 热门商品骨架屏 */
.featured-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.featured-skeleton-card {
  background: rgba(8, 19, 31, 0.5);
  border: 1px solid rgba(143, 217, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  height: 280px;
}

.featured-skeleton-image {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.featured-skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 12px;
}

.featured-skeleton-desc {
  height: 16px;
  width: 80%;
  margin-bottom: 8px;
}

.featured-skeleton-price {
  height: 20px;
  width: 30%;
}

/* 同步动态骨架屏 */
.sync-skeleton-item {
  background: rgba(8, 19, 31, 0.4);
  border: 1px solid rgba(143, 217, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

.sync-skeleton-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.sync-skeleton-actor {
  width: 80px;
  height: 16px;
}

.sync-skeleton-time {
  width: 60px;
  height: 14px;
}

.sync-skeleton-content {
  height: 16px;
  width: 90%;
}

/* 订单查询骨架屏 */
.query-skeleton {
  background: rgba(8, 19, 31, 0.5);
  border: 1px solid rgba(143, 217, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
}

.query-skeleton-line {
  height: 18px;
  margin-bottom: 10px;
}

/* ========== 页面进入/退出动画 ========== */

/* 滑入效果 */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-100px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 缩放效果 */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes zoomOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.5);
  }
}

/* 旋转效果 */
@keyframes rotateIn {
  from {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
  }
  to {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@keyframes rotateOut {
  from {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
  to {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
  }
}

/* 退出动画 */
@keyframes slideOutUp {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-50px);
  }
}

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

@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50px);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

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

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

/* 更多进入动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes lightSpeedIn {
  from {
    opacity: 0;
    transform: translateX(100%) skewX(-30deg);
  }
  60% {
    opacity: 1;
    transform: translateX(-20%) skewX(20deg);
  }
  80% {
    transform: translateX(0) skewX(-10deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) skewX(0);
  }
}

@keyframes rollIn {
  from {
    opacity: 0;
    transform: translateX(-100%) rotate(-120deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes hinge {
  0% {
    opacity: 1;
    transform: rotate(0);
    transform-origin: top left;
  }
  20%, 60% {
    transform: rotate(80deg);
    transform-origin: top left;
  }
  40% {
    transform: rotate(60deg);
    transform-origin: top left;
  }
  80% {
    opacity: 1;
    transform: rotate(60deg) translateY(0);
    transform-origin: top left;
  }
  to {
    opacity: 0;
    transform: rotate(60deg) translateY(700px);
    transform-origin: top left;
  }
}

@keyframes jackInTheBox {
  from {
    opacity: 0;
    transform: scale(0.1) rotate(30deg);
    transform-origin: center bottom;
  }
  50% {
    transform: rotate(-10deg);
  }
  70% {
    transform: rotate(3deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes rubberBand {
  from {
    transform: scale(1);
  }
  30% {
    transform: scaleX(1.25) scaleY(0.75);
  }
  40% {
    transform: scaleX(0.75) scaleY(1.25);
  }
  50% {
    transform: scaleX(1.15) scaleY(0.85);
  }
  65% {
    transform: scaleX(0.95) scaleY(1.05);
  }
  75% {
    transform: scaleX(1.05) scaleY(0.95);
  }
  to {
    transform: scale(1);
  }
}

@keyframes tada {
  from {
    transform: scale(1);
  }
  10%, 20% {
    transform: scale(0.9) rotate(-3deg);
  }
  30%, 50%, 70%, 90% {
    transform: scale(1.1) rotate(3deg);
  }
  40%, 60%, 80% {
    transform: scale(1.1) rotate(-3deg);
  }
  to {
    transform: scale(1) rotate(0);
  }
}

@keyframes wobble {
  from {
    transform: translateX(0);
  }
  15% {
    transform: translateX(-25%) rotate(-5deg);
  }
  30% {
    transform: translateX(20%) rotate(3deg);
  }
  45% {
    transform: translateX(-15%) rotate(-3deg);
  }
  60% {
    transform: translateX(10%) rotate(2deg);
  }
  75% {
    transform: translateX(-5%) rotate(-1deg);
  }
  to {
    transform: translateX(0);
  }
}

/* 翻转效果 */
@keyframes flipInX {
  from {
    opacity: 0;
    transform: perspective(400px) rotateX(90deg);
  }
  to {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
}

@keyframes flipOutX {
  from {
    opacity: 1;
    transform: perspective(400px) rotateX(0);
  }
  to {
    opacity: 0;
    transform: perspective(400px) rotateX(-90deg);
  }
}

/* 弹性效果 */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(0.3);
  }
}

/* 淡入淡出 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* 模糊效果 */
@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(20px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes blurOut {
  from {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 0;
    filter: blur(20px);
  }
}

/* 摇摆效果 */
@keyframes swing {
  0% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-10deg); }
  60% { transform: rotate(5deg); }
  80% { transform: rotate(-5deg); }
  100% { transform: rotate(0); }
}

/* 抖动效果 */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
  20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* 脉冲进入 */
@keyframes pulseIn {
  0% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* 页面切换动画类 */
.section-animate {
  opacity: 0;
  transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-animate.active {
  opacity: 1;
}

.section-animate.up {
  transform: translateY(50px);
}

.section-animate.down {
  transform: translateY(-50px);
}

.section-animate.left {
  transform: translateX(-50px);
}

.section-animate.right {
  transform: translateX(50px);
}

.section-animate.scale {
  transform: scale(0.9);
}

.section-animate.rotate {
  transform: rotate(-5deg) scale(0.95);
}

.section-animate.blur {
  filter: blur(10px);
}

.section-animate.active.up,
.section-animate.active.down,
.section-animate.active.left,
.section-animate.active.right,
.section-animate.active.scale,
.section-animate.active.rotate,
.section-animate.active.blur {
  transform: none;
  filter: none;
}

/* 元素交错动画 */
.stagger-item {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-item:nth-child(2) { transition-delay: 0.1s; }
.stagger-item:nth-child(3) { transition-delay: 0.2s; }
.stagger-item:nth-child(4) { transition-delay: 0.3s; }
.stagger-item:nth-child(5) { transition-delay: 0.4s; }
.stagger-item:nth-child(6) { transition-delay: 0.5s; }

/* 滚动进度指示器 */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-1), var(--ice-1));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* 页面指示器 */
.page-indicator {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 100;
}

.page-indicator .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245, 209, 141, 0.3);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-indicator .dot.active {
  background: var(--gold-1);
  border-color: rgba(245, 209, 141, 0.5);
  transform: scale(1.3);
}

.page-indicator .dot:hover {
  background: rgba(245, 209, 141, 0.6);
}

/* 视差滚动层 */
.parallax-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.parallax-layer-slow {
  transform: translateZ(-1px) scale(2);
}

.parallax-layer-fast {
  transform: translateZ(1px);
}

/* 遮罩揭示效果 */
.mask-reveal {
  position: relative;
  overflow: hidden;
}

.mask-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg-0);
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.mask-reveal.revealed::before {
  transform: translateX(100%);
}

/* 文字拆分动画 */
.split-text .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(50px) rotate(10deg);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-text.visible .char {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

/* 线条绘制动画 */
.line-draw {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: lineDraw 2s ease forwards;
}

@keyframes lineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

/* 光晕扩散效果 */
.glow-expand {
  position: relative;
}

.glow-expand::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(245, 209, 141, 0.3) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s ease;
  z-index: -1;
}

.glow-expand:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* 3D透视容器 */
.perspective-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

/* 卡片堆叠效果 */
.card-stack {
  position: relative;
}

.card-stack .card {
  position: absolute;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-stack .card:nth-child(1) { transform: translateZ(0); }
.card-stack .card:nth-child(2) { transform: translateZ(-20px) translateY(10px); opacity: 0.8; }
.card-stack .card:nth-child(3) { transform: translateZ(-40px) translateY(20px); opacity: 0.6; }

/* 液体流动效果 */
.liquid-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 30% 20%, rgba(245, 209, 141, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(143, 217, 255, 0.08) 0%, transparent 50%);
  filter: blur(40px);
  animation: liquidMove 10s ease-in-out infinite;
}

@keyframes liquidMove {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(transparent 92%, rgba(255, 255, 255, 0.04) 100%),
    repeating-linear-gradient(
      120deg,
      rgba(255, 215, 149, 0.06) 0,
      rgba(255, 215, 149, 0.06) 2px,
      transparent 2px,
      transparent 42px
    );
  opacity: 0.45;
  z-index: 0;
}

.site-shell {
  position: relative;
  z-index: 1;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.auth-locked .site-shell {
  filter: blur(5px) saturate(0.8);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 11, 19, 0.7);
  backdrop-filter: blur(6px);
}

.auth-overlay.hidden {
  display: none;
}

.auth-modal {
  width: min(480px, 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: linear-gradient(160deg, rgba(7, 19, 30, 0.95), rgba(12, 26, 40, 0.88));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.auth-modal h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold-1);
}

.auth-sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.auth-tab {
  border: 1px solid rgba(143, 217, 255, 0.35);
  background: rgba(8, 19, 31, 0.72);
  color: var(--ice-1);
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
}

.auth-tab.active {
  border-color: rgba(245, 209, 141, 0.88);
  color: #2d271b;
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2));
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.auth-form label {
  color: #d2e8f8;
  font-size: 0.9rem;
}

.auth-form input {
  border: 1px solid rgba(151, 193, 221, 0.34);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(6, 18, 29, 0.65);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(250, 210, 139, 0.7);
}

.auth-submit {
  margin-top: 8px;
  width: fit-content;
}

.auth-message {
  margin: 12px 0 0;
  min-height: 20px;
  color: var(--muted);
}

.topbar {
  width: min(1200px, calc(100% - 40px));
  margin: 20px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(10, 25, 40, 0.9), rgba(8, 20, 32, 0.62));
  backdrop-filter: blur(6px);
  position: relative;
  z-index: 10000;
}

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

.brand-mark {
  font-family: "Cinzel", serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: #1f1d18;
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2));
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(221, 184, 114, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text small {
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 16px;
}

.nav a {
  color: var(--ice-1);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.nav a:hover {
  color: #d6f2ff;
  background: rgba(143, 217, 255, 0.1);
}

/* 汉堡菜单按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  gap: 5px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ice-1);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

#currentUser {
  color: #f8e6c5;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout {
  width: min(1200px, calc(100% - 40px));
  margin: 22px auto 32px;
  display: grid;
  gap: 20px;
}

/* 首页内容布局 */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

/* 标题样式 - 放在最上方 */
.hero-title {
  font-family: "Cinzel", serif;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  order: -1;
}

.tag {
  display: inline-block;
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-1);
}

/* 文字介绍放大居中 */
.hero-description {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  line-height: 1.8;
  max-width: 900px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 逐行文字动画 */
.desc-line {
  margin: 0;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.desc-line.visible {
  opacity: 1;
  transform: translateX(0);
}

.line-icon {
  color: var(--gold-2);
  font-size: 0.7em;
  opacity: 0;
  transform: scale(0) rotate(-180deg);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.desc-line.visible .line-icon {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* 每行不同的延迟 */
.desc-line[data-delay="0"] { transition-delay: 0ms; }
.desc-line[data-delay="0"] .line-icon { transition-delay: 100ms; }

.desc-line[data-delay="150"] { transition-delay: 150ms; }
.desc-line[data-delay="150"] .line-icon { transition-delay: 250ms; }

.desc-line[data-delay="300"] { transition-delay: 300ms; }
.desc-line[data-delay="300"] .line-icon { transition-delay: 400ms; }

.desc-line[data-delay="450"] { transition-delay: 450ms; }
.desc-line[data-delay="450"] .line-icon { transition-delay: 550ms; }

/* 文字光效扫描 */
@keyframes textShine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.desc-line.visible {
  background: linear-gradient(
    90deg,
    var(--muted) 0%,
    var(--ink) 25%,
    var(--gold-1) 50%,
    var(--ink) 75%,
    var(--muted) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShine 3s linear infinite;
  animation-delay: 1s;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled,
.unit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  color: #2c2418;
  font-weight: 700;
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 12px 26px rgba(220, 169, 87, 0.24);
}

.btn-ghost {
  color: var(--ice-1);
  border-color: rgba(107, 175, 221, 0.45);
  background: rgba(7, 21, 33, 0.52);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.hero-stats article {
  border: 1px solid rgba(143, 217, 255, 0.26);
  background: rgba(7, 21, 33, 0.56);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero-stats h3 {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ice-1);
}

.hero-stats p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(3px);
  padding: 20px;
}

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

.panel-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold-1);
  font-size: 1.36rem;
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.sync-feed {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 4px;
}

.sync-item {
  border: 1px solid rgba(143, 217, 255, 0.2);
  border-radius: 10px;
  background: rgba(7, 21, 33, 0.58);
  padding: 10px 12px;
}

.sync-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #cbe9fa;
  font-size: 0.85rem;
}

.sync-actor {
  color: #f3ddaf;
}

.sync-summary {
  margin: 6px 0 0;
  color: #ebf3fb;
  line-height: 1.45;
}

/* 热门商品区域样式 */
.featured-section {
  background: linear-gradient(135deg, rgba(10, 22, 37, 0.9), rgba(17, 33, 50, 0.7));
}

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

.panel-head h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  color: var(--gold-1);
  font-size: 1.36rem;
}

.more-link {
  font-size: 0.9rem;
  color: var(--ice-1);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid rgba(143, 217, 255, 0.35);
  border-radius: 8px;
  background: rgba(8, 19, 31, 0.5);
  transition: all 0.2s ease;
}

.more-link:hover {
  background: rgba(143, 217, 255, 0.2);
  border-color: rgba(143, 217, 255, 0.6);
  color: #d6f2ff;
}

/* 返回首页按钮 */
.back-to-home {
  margin-top: 12px;
  display: inline-block;
  background: rgba(245, 209, 141, 0.15);
  border-color: rgba(245, 209, 141, 0.4);
  color: var(--gold-1);
}

.back-to-home:hover {
  background: rgba(245, 209, 141, 0.3);
  border-color: rgba(245, 209, 141, 0.7);
  color: var(--gold-1);
}

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

/* 热门商品栏底部 - 更多商品按钮 */
.featured-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  padding-right: 8px;
}

.featured-card {
  border: 1px solid rgba(143, 217, 255, 0.25);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(12, 30, 47, 0.9), rgba(8, 20, 32, 0.7));
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 209, 141, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 209, 141, 0.1);
}

.featured-card-image {
  width: 100%;
  height: 160px;
  background: linear-gradient(135deg, rgba(93, 178, 223, 0.2), rgba(228, 170, 84, 0.15));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.featured-card-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='rgba(255,210,139,0.1)' stroke-width='1'%3E%3Cpath d='M0 50h100M50 0v100'/%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.featured-card-icon {
  font-size: 3rem;
  font-family: "Cinzel", serif;
  font-weight: 900;
  color: var(--gold-1);
  text-shadow: 0 0 20px rgba(245, 209, 141, 0.5);
  z-index: 1;
}

.featured-card-content {
  padding: 16px;
}

.featured-card-name {
  margin: 0 0 8px;
  color: #f5e2bf;
  font-size: 1.1rem;
  font-weight: 600;
}

.featured-card-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
  min-height: 40px;
}

.featured-card-price {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.featured-card-price span {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  background: rgba(245, 209, 141, 0.15);
  border: 1px solid rgba(245, 209, 141, 0.25);
  color: #f8e6c5;
}

.featured-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2));
  color: #2c2418;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

@media (max-width: 640px) {
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .featured-card-image {
    height: 140px;
  }
}

.product-filters {
  margin-bottom: 16px;
}

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

.search-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid rgba(151, 193, 221, 0.34);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(6, 18, 29, 0.65);
  outline: none;
}

.search-input:focus {
  border-color: rgba(250, 210, 139, 0.7);
}

.filter-select {
  border: 1px solid rgba(151, 193, 221, 0.34);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(6, 18, 29, 0.65);
  outline: none;
  min-width: 120px;
}

.filter-select:focus {
  border-color: rgba(250, 210, 139, 0.7);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.product-card {
  border: 1px solid rgba(143, 217, 255, 0.2);
  border-radius: 12px;
  background: linear-gradient(155deg, rgba(12, 27, 41, 0.82), rgba(8, 17, 27, 0.64));
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(143, 217, 255, 0.45);
}

.product-card.selected {
  border-color: rgba(245, 209, 141, 0.9);
  box-shadow: 0 0 0 1px rgba(245, 209, 141, 0.45) inset;
}

.product-name {
  margin: 0 0 6px;
  color: #f5e2bf;
  font-size: 1.02rem;
}

.product-desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 40px;
}

.product-path {
  margin: 0 0 10px;
  color: #7fc5ec;
  font-size: 0.78rem;
  word-break: break-all;
}

.product-path-wrap {
  margin: 0 0 10px;
}

.product-path-title {
  margin: 0 0 4px;
  color: #9ed3f2;
  font-size: 0.8rem;
}

.product-path-list {
  margin: 0;
  padding: 0 0 0 16px;
  max-height: 90px;
  overflow: auto;
  color: #7fc5ec;
  font-size: 0.78rem;
}

.product-path-list li {
  margin: 0 0 3px;
  word-break: break-all;
}

.prices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.prices span {
  border: 1px solid rgba(245, 209, 141, 0.28);
  border-radius: 8px;
  text-align: center;
  font-size: 0.79rem;
  padding: 5px;
  color: #f8e6c5;
}

.prices .price-option {
  cursor: pointer;
  transition: transform .15s ease, border-color .2s ease, background .2s ease;
}

.prices .price-option:hover {
  border-color: rgba(245, 209, 141, 0.55);
  background: rgba(245, 209, 141, 0.08);
}

.prices .price-option:active {
  transform: translateY(1px);
}

.order-form {
  display: grid;
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  font-size: 0.9rem;
  color: #d2e8f8;
}

.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid rgba(151, 193, 221, 0.34);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(6, 18, 29, 0.65);
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: rgba(250, 210, 139, 0.7);
}

.form-row-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row-split > div {
  display: grid;
  gap: 6px;
}

.unit-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unit {
  border: 1px solid rgba(143, 217, 255, 0.35);
  background: rgba(8, 19, 31, 0.72);
  color: var(--ice-1);
  padding: 8px 12px;
  border-radius: 9px;
  cursor: pointer;
}

.unit.active {
  border-color: rgba(245, 209, 141, 0.88);
  color: #2d271b;
  background: linear-gradient(145deg, var(--gold-1), var(--gold-2));
  font-weight: 700;
}

.bill-box {
  border: 1px dashed rgba(245, 209, 141, 0.55);
  border-radius: 12px;
  padding: 12px;
  background: rgba(43, 28, 11, 0.2);
  display: grid;
  gap: 4px;
}

.bill-box p {
  margin: 0;
  color: #f0e0c0;
}

.bill-path-list {
  max-height: 78px;
  overflow: auto;
  font-size: 0.84rem;
  color: #d7f0ff;
  line-height: 1.4;
  border: 1px solid rgba(143, 217, 255, 0.2);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(8, 19, 31, 0.4);
}

.alipay-qr-box {
  border: 1px solid rgba(245, 209, 141, 0.35);
  border-radius: 12px;
  padding: 12px;
  background: rgba(32, 24, 10, 0.28);
}

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

.alipay-qr-title {
  margin: 0;
  color: #f5e2bf;
  font-weight: 700;
}

.payment-timer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 20px;
  background: rgba(245, 209, 141, 0.15);
  border: 1px solid rgba(245, 209, 141, 0.3);
}

.timer-label {
  font-size: 0.8rem;
  color: #f5e2bf;
}

.timer-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: #f5d18d;
  font-family: monospace;
}

.qr-container {
  position: relative;
  display: inline-block;
}

.pay-qr-wrap {
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  text-align: center;
}

.alipay-qr-image {
  display: block;
  width: min(320px, 100%);
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(143, 217, 255, 0.25);
  background: rgba(255, 255, 255, 0.92);
  margin: 0 auto;
}

.qr-zoom-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qr-zoom-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.payment-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(133, 209, 141, 0.15);
  border: 1px solid rgba(133, 209, 141, 0.3);
  margin-bottom: 10px;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #85d18d;
  animation: pulse 2s infinite;
}

.status-message {
  margin: 0;
  color: #d8f0dc;
  font-size: 0.9rem;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-content {
  position: relative;
  background: linear-gradient(160deg, rgba(7, 19, 30, 0.95), rgba(12, 26, 40, 0.88));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  text-align: center;
}

.modal-qr-image {
  width: min(400px, 100%);
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(143, 217, 255, 0.25);
  background: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}

.modal-hint {
  margin: 0;
  color: #f5e2bf;
  font-size: 0.9rem;
}

.query-form {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.query-form input {
  flex: 1;
  border: 1px solid rgba(151, 193, 221, 0.34);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: rgba(6, 18, 29, 0.65);
  outline: none;
}

.query-form input:focus {
  border-color: rgba(250, 210, 139, 0.7);
}

.query-result {
  white-space: pre-wrap;
  background: rgba(8, 19, 31, 0.6);
  border: 1px solid rgba(143, 217, 255, 0.2);
  border-radius: 10px;
  padding: 12px;
  max-height: 260px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e8f4ff;
  margin: 0;
}

.query-result:empty {
  display: none;
}

.result {
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(8, 19, 31, 0.6);
  border: 1px solid rgba(143, 217, 255, 0.2);
}

.result.ok {
  border-color: rgba(133, 209, 141, 0.5);
  background: rgba(16, 42, 24, 0.55);
}

.result.pending {
  border-color: rgba(240, 184, 109, 0.5);
  background: rgba(42, 34, 16, 0.55);
}

.result.rejected {
  border-color: rgba(232, 138, 138, 0.5);
  background: rgba(42, 24, 24, 0.55);
}

.footer {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto 20px;
  text-align: center;
  color: var(--muted);
  padding: 14px;
  border-top: 1px solid rgba(143, 217, 255, 0.15);
}

.footer p {
  margin: 0;
}

.footer small {
  display: block;
  margin-top: 4px;
}

.hidden {
  display: none !important;
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-1) 25%, var(--bg-2) 50%, var(--bg-1) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: 8px;
}

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

.skeleton-text {
  height: 16px;
  margin: 6px 0;
  border-radius: 4px;
}

.skeleton-title {
  height: 24px;
  width: 80%;
  margin-bottom: 12px;
}

.skeleton-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(155deg, rgba(12, 27, 41, 0.82), rgba(8, 17, 27, 0.64));
  opacity: 0.8;
}

.skeleton-image {
  height: 200px;
  margin-bottom: 12px;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.skeleton-event {
  border: 1px solid rgba(143, 217, 255, 0.2);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.skeleton-event-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skeleton-event-time {
  width: 30%;
  height: 14px;
}

.skeleton-event-actor {
  width: 40%;
  height: 14px;
}

@media (max-width: 760px) {
  .layout,
  .topbar,
  .footer {
    width: calc(100% - 24px);
  }

  /* 顶部导航栏移动端优化 */
  .topbar {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.9rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .user-box {
    gap: 6px;
  }

  #currentUser {
    max-width: 80px;
    font-size: 0.85rem;
  }

  .user-box .btn {
    padding: 8px 12px;
    font-size: 0.85rem;
    min-height: 36px;
  }

  /* 汉堡菜单位置调整 */
  .nav-toggle {
    width: 40px;
    height: 40px;
    margin-left: auto;
  }

  /* 移动端整页滚动优化 */
  .hero,
  .featured-section,
  #products-page,
  #order,
  #query-page {
    min-height: auto;
    min-height: 100dvh; /* 使用动态视口高度 */
    padding: 60px 20px 40px;
  }

  /* 同步动态栏移动端减少顶部padding */
  #sync {
    min-height: auto;
    padding: 30px 20px 40px;
  }

  /* 订单查询栏不占用整屏 */
  #query {
    min-height: auto;
    padding: 20px 16px;
  }

  .section-content {
    width: 100%;
  }

  .hero,
  .panel {
    padding: 60px 20px 40px;
  }

  .form-row-split {
    grid-template-columns: 1fr;
  }

  .auth-modal {
    padding: 16px;
  }

  /* 移动端商品卡片适配 */
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  /* 支付二维码适配 */
  .alipay-qr-image {
    max-width: 280px;
    margin: 0 auto;
  }

  /* 增大输入框和按钮尺寸 */
  .form-row input,
  .form-row select,
  .form-row textarea {
    min-height: 44px;
  }

  .btn {
    min-height: 44px;
    min-width: 80px;
  }

  .unit {
    min-height: 40px;
    min-width: 60px;
  }

  /* 汉堡菜单显示 */
  .nav-toggle {
    display: flex;
  }

  /* 导航菜单移动端样式 */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(145deg, rgba(10, 28, 45, 0.98), rgba(12, 32, 50, 0.98));
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(143, 217, 255, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10001;
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: none;
    transition: all 0.2s ease;
  }

  .nav a:hover,
  .nav a:active {
    background: rgba(143, 217, 255, 0.15);
    transform: translateX(4px);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  /* 商品卡片触摸优化 */
  .product-card {
    padding: 16px;
  }

  /* 支付按钮区域优化 */
  .submit {
    width: 100%;
    text-align: center;
  }

  /* 热门商品网格移动端 */
  .featured-skeleton-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }

  /* 骨架屏移动端 */
  .product-skeleton-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 字体大小移动端优化 */
  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .hero-description {
    font-size: clamp(1rem, 3.5vw, 1.3rem);
  }

  .desc-line {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
  }

  /* 统计卡片移动端 */
  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .float-card {
    padding: 16px;
  }

  /* 订单查询栏移动端 */
  #query .query-box {
    gap: 10px;
  }

  #query .query-box h3 {
    font-size: 1rem;
  }

  #query .query-form-inline {
    flex-direction: column;
    gap: 10px;
  }

  #query .query-form-inline input {
    padding: 12px 14px;
  }

  #query .query-form-inline .btn {
    width: 100%;
    padding: 12px;
  }

  /* 页面指示器移动端隐藏 */
  .page-indicator {
    display: none;
  }

  /* 数据流文字移动端隐藏 */
  .data-stream {
    display: none;
  }

  /* 滚动指示器移动端 */
  .scroll-indicator {
    font-size: 0.8rem;
    bottom: 10px;
  }
}

/* 触摸设备优化 */
@media (pointer: coarse) {
  .btn,
  .unit,
  .product-card,
  .auth-tab,
  .nav a {
    min-height: 44px;
    min-width: 44px;
  }

  /* 增大点击区域 */
  .nav a {
    padding: 12px 16px;
  }

  /* 按钮触摸反馈 */
  .btn:active,
  .unit:active,
  .product-card:active,
  .auth-tab:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
}

/* 安全区域适配 (iPhone刘海屏) */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: calc(16px + env(safe-area-inset-top));
  }
  
  .layout {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  .footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
  
  /* 模态框安全区域 */
  .auth-overlay {
    padding: calc(20px + env(safe-area-inset-top)) 20px calc(20px + env(safe-area-inset-bottom));
  }
}

/* 触摸反馈增强 */
.btn,
.unit,
.product-card,
.auth-tab,
.nav a {
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:active,
.unit:active,
.product-card:active,
.auth-tab:active {
  transform: scale(0.96);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
