:root {
  --bg-deep: #0a1535;
  --bg-mid: #0d2260;
  --bg-light: #143a9a;
  --accent: #facc15;
  --accent-hover: #eab308;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg-deep) 0%, var(--bg-mid) 50%, var(--bg-light) 100%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #0a1535;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
}

/* 导航栏 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  backdrop-filter: blur(12px);
  background: rgba(10, 21, 53, 0.65);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-icon svg,
.logo-icon img {
  display: block;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.4));
}

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

.main-nav a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

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

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* 英雄区 */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: #2563eb;
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: #1e40af;
  bottom: 100px;
  left: -120px;
}

.cloud {
  position: absolute;
  bottom: -20px;
  width: 260px;
  height: 140px;
  background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.35), transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.3), transparent 55%);
  border-radius: 50%;
  filter: blur(30px);
}

.cloud-left {
  left: -80px;
}

.cloud-right {
  right: -80px;
  bottom: 20px;
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease both;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.text-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.play-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin-right: 4px;
}

/* 视觉区 */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease 0.2s both;
}

.monster-wrap {
  position: relative;
  z-index: 2;
  width: 350px;
  max-width: 90%;
  animation: float 5s ease-in-out infinite;
}

.monster {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.35));
}

.floating-icon {
  position: absolute;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.icon-lightbulb {
  top: 40px;
  left: 20px;
  animation: float 4s ease-in-out infinite 0.5s;
  background: rgba(250, 204, 21, 0.12);
}

.icon-code {
  bottom: 120px;
  left: 0;
  animation: float 4.5s ease-in-out infinite 1s;
}

.icon-chart {
  top: 60px;
  right: 20px;
  animation: float 4.2s ease-in-out infinite 0.3s;
}

.icon-palette {
  bottom: 100px;
  right: 0;
  animation: float 4.8s ease-in-out infinite 0.8s;
}

.sparkle {
  position: absolute;
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  z-index: 1;
}

.sparkle-1 {
  top: 20px;
  right: 100px;
  animation: twinkle 3s ease-in-out infinite;
}

.sparkle-2 {
  bottom: 180px;
  left: 60px;
  animation: twinkle 3s ease-in-out infinite 1.5s;
}

.arrow-line {
  position: absolute;
  bottom: 120px;
  left: 60px;
  z-index: 1;
  animation: fadeIn 1.2s ease 0.6s both;
}

/* 特性区 / 工具分类 */
.features {
  position: relative;
  z-index: 2;
  padding: 80px 0 100px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s, background 0.25s, border-color 0.25s;
  backdrop-filter: blur(8px);
}

.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.tool-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.tool-card .feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.tool-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.tool-card p {
  flex: 1;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 18px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  transition: gap 0.2s;
}

.feature-card:hover .card-link {
  gap: 10px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon-yellow {
  background: rgba(250, 204, 21, 0.15);
  color: var(--accent);
}

.feature-icon-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.feature-icon-purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

.feature-icon-cyan {
  background: rgba(34, 211, 238, 0.15);
  color: #22d3ee;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 关于区 */
.about-section {
  position: relative;
  z-index: 2;
  padding: 100px 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
}

.about-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-content p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.75;
  margin-top: 20px;
}

.about-monster {
  width: 320px;
  max-width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.3));
  animation: float 5s ease-in-out infinite;
}

/* 页脚 */
.site-footer {
  position: relative;
  z-index: 2;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

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

/* 子页面通用 */
.page-hero {
  position: relative;
  padding: 140px 0 60px;
  overflow: hidden;
}

.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.page-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.tool-workspace {
  position: relative;
  z-index: 2;
  padding: 40px 0 80px;
}

.workspace-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
}

.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 48px 32px;
  margin-bottom: 24px;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.upload-area:hover {
  border-color: var(--accent);
  background: rgba(250, 204, 21, 0.05);
}

.upload-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.upload-area h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.prompt-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.prompt-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.prompt-input:focus {
  outline: none;
  border-color: var(--accent);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.feature-list-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.feature-list-item .feature-icon {
  margin: 0 auto 16px;
}

.feature-list-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-list-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* 步骤条 */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.step.active .step-number,
.step.done .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a1535;
}

.step.active {
  color: var(--text);
}

.step-line {
  width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
}

/* 步骤面板 */
.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.step-actions .btn {
  flex: 1;
  min-width: 160px;
}

/* 上传区增强 */
.upload-area input[type="file"] {
  display: none;
}

.upload-area.dragover {
  border-color: var(--accent);
  background: rgba(250, 204, 21, 0.08);
}

.preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

.preview-thumb-wrap {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}

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

.preview-info h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.preview-info p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.btn-small {
  padding: 6px 14px;
  font-size: 13px;
}

.demo-image {
  width: 100%;
  max-width: 520px;
  margin: 32px auto 0;
  border-radius: 16px;
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.25));
}

/* 提示词与生成记录 */
.prompt-box {
  text-align: left;
  margin-bottom: 24px;
}

.prompt-box label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}

.hint.center {
  text-align: center;
  margin-top: 16px;
}

.generation-log {
  margin-top: 40px;
  text-align: left;
}

.log-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.log-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
  background: rgba(0, 0, 0, 0.2);
}

.log-item:hover {
  transform: scale(1.02);
}

.log-item.selected {
  border-color: var(--accent);
}

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

.log-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 21, 53, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s;
}

.log-item:hover .log-mask {
  opacity: 1;
}

.log-item.selected .log-mask {
  opacity: 1;
  background: rgba(250, 204, 21, 0.85);
  color: #0a1535;
}

/* 3D 预览与订单 */
.preview-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  text-align: left;
  align-items: start;
}

.model-viewer {
  min-height: 380px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.viewer-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.model-info h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

.model-info p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.model-meta {
  list-style: none;
  margin-bottom: 24px;
}

.model-meta li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.model-meta span {
  color: var(--text);
  font-weight: 600;
}

.order-summary {
  text-align: left;
  margin-bottom: 24px;
}

.order-summary h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}

.order-item img {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.05);
}

.order-detail {
  flex: 1;
}

.order-detail h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

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

.order-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* 服装定制 */
.product-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.product-option {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}

.product-option:hover {
  background: rgba(255, 255, 255, 0.1);
}

.product-option.active {
  border-color: var(--accent);
  background: rgba(250, 204, 21, 0.1);
}

.option-icon {
  font-size: 28px;
}

.option-title {
  font-size: 14px;
  font-weight: 600;
}

.mockup-stage {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.mockup-base {
  width: 260px;
  height: 320px;
  border-radius: 16px;
  background: #1e3a8a;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.print-area {
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.print-area img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.print-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mockup-info h4 {
  font-size: 20px;
  margin-bottom: 6px;
}

.mockup-info .price {
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.mockup-info .desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

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

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

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

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content {
    order: 1;
  }

  .hero-visual {
    order: 2;
    min-height: 380px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .main-nav,
  .nav-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .site-header.mobile-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(10, 21, 53, 0.98);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-header.mobile-open .nav-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(72px + 180px);
    left: 0;
    right: 0;
    padding: 0 24px 24px;
    background: rgba(10, 21, 53, 0.98);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: clamp(40px, 12vw, 60px);
  }

  .monster-wrap {
    width: 300px;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
  }

  .features-container {
    grid-template-columns: 1fr;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .about-monster {
    width: 240px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .workspace-card {
    padding: 32px 24px;
  }

  .stepper {
    gap: 8px;
  }

  .step-label {
    display: none;
  }

  .step-line {
    width: 20px;
  }

  .step-actions {
    flex-direction: column;
  }

  .step-actions .btn {
    width: 100%;
  }

  .log-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-layout,
  .cloth-preview-layout {
    grid-template-columns: 1fr;
  }

  .model-viewer {
    min-height: 300px;
  }

  .product-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .mockup-base {
    width: 220px;
    height: 280px;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============ 首页四层 3D 场景（草图 → 3D 玩具） ============ */
.scene-3d {
  position: relative;
  z-index: 2;
  width: 540px;
  max-width: 100%;
  aspect-ratio: 540 / 500;
}

.scene-layer {
  position: absolute;
  will-change: transform;
  animation: sceneIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.scene-layer img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 入场：由后到前逐层浮现（sketch 最底 → monster 最顶） */
.layer-sketch  { animation-delay: 0.15s; }
.layer-base    { animation-delay: 0.28s; }
.layer-plate   { animation-delay: 0.41s; }
.layer-monster { animation-delay: 0.54s; }

@keyframes sceneIn {
  from { opacity: 0; transform: translateY(36px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* 各层定位（百分比定位，随容器缩放）
   前后关系：sketch(最底) → base → plate → monster(最顶，站在底座前) */
.layer-sketch  { left: 0;   top: 10%; width: 44%; z-index: 1; filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.4)); }
.layer-base    { left: 27%; top: 63%; width: 74%; z-index: 2; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4)); }
.layer-plate   { left: 44%; top: 79%; width: 40%; z-index: 3; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35)); }
.layer-monster { left: 33%; top: 8%;  width: 66%; z-index: 4; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35)); }

.layer-sketch img { transform: rotate(-8deg); }

/* 待机呼吸浮动：四层各自节奏，错开相位 */
.float-a { animation: sceneFloatA 6s   ease-in-out infinite; }
.float-b { animation: sceneFloatB 7s   ease-in-out infinite 0.6s; }
.float-c { animation: sceneFloatC 6.5s ease-in-out infinite 1.1s; }
.float-d { animation: sceneFloatD 8s   ease-in-out infinite 0.3s; }

@keyframes sceneFloatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes sceneFloatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes sceneFloatC { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sceneFloatD { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-6.5deg) translateY(-10px); } }

/* 悬停：整体轻轻「散开」，苹果式缓出曲线 */
.scene-3d:hover .layer-sketch img  { transform: rotate(-10deg) translate(-10px, -12px) scale(1.05); }
.scene-3d:hover .layer-monster img { transform: translateY(-10px) scale(1.03); }
.scene-3d:hover .layer-base img    { transform: translateY(5px) scale(1.02); }
.scene-3d:hover .layer-plate img   { transform: translateY(7px) scale(1.04); }

/* 触屏设备关闭视差与悬停散开，保留浮动 */
@media (hover: none) {
  .scene-layer img { transition: none; }
  .scene-3d:hover .layer-sketch img  { transform: rotate(-8deg); }
  .scene-3d:hover .layer-monster img,
  .scene-3d:hover .layer-base img,
  .scene-3d:hover .layer-plate img   { transform: none; }
}

@media (max-width: 960px) {
  .scene-3d { width: 440px; }
}

@media (max-width: 640px) {
  .scene-3d { width: 320px; }
}

/* ============ 3D 玩具下单：版本选择 ============ */
.version-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.version-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.45s, border-color 0.45s, box-shadow 0.45s;
}

.version-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
}

.version-card.is-active {
  background: rgba(250, 204, 21, 0.1);
  border-color: var(--accent, #facc15);
  box-shadow: 0 0 0 1px var(--accent, #facc15), 0 8px 24px rgba(250, 204, 21, 0.15);
}

.version-card.is-active::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #facc15);
  color: #1e2a4a;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.version-tag {
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--accent, #facc15);
  color: #1e2a4a;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.version-name {
  font-size: 15px;
  font-weight: 700;
}

.version-desc {
  font-size: 12px;
  color: var(--text-muted, rgba(255, 255, 255, 0.65));
  line-height: 1.5;
  min-height: 36px;
}

.version-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent, #facc15);
}

@media (max-width: 640px) {
  .version-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   周边商城（电商货架）
   ========================================================== */
.merch-section {
  position: relative;
  z-index: 2;
  padding: 24px 0 104px;
}

.merch-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(91, 140, 255, 0.18), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.merch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.merch-head-text .section-title {
  margin-bottom: 12px;
}

.merch-head-text p {
  font-size: 15.5px;
  color: var(--text-muted);
  max-width: 520px;
}

.merch-cart-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.1);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, border-color 0.22s;
}

.merch-cart-trigger:hover {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.6);
  transform: translateY(-1px);
}

.merch-cart-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a1535;
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.merch-cart-badge.is-pop {
  transform: scale(1.35);
}

.merch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.merch-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.merch-tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.22s ease;
}

.merch-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.merch-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a1535;
  font-weight: 800;
}

.merch-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.01em;
}

/* --- 商品网格 --- */
.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.merch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              background 0.3s ease,
              box-shadow 0.42s ease;
}

.merch-card:hover {
  transform: translateY(-7px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(250, 204, 21, 0.38);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(250, 204, 21, 0.06);
}

.merch-thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 10%, rgba(91, 140, 255, 0.3), rgba(10, 21, 53, 0.05) 62%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.merch-thumb img {
  width: 88%;
  height: auto;
  transition: transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.merch-card:hover .merch-thumb img {
  transform: scale(1.07) translateY(-6px);
}

.merch-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a1535;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 2;
}

.merch-tag.is-plain {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.merch-view {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 16, 40, 0.68);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
}

.merch-card:hover .merch-view,
.merch-card:focus-within .merch-view {
  opacity: 1;
  transform: none;
}

.merch-view:hover {
  background: rgba(250, 204, 21, 0.92);
  color: #0a1535;
  border-color: transparent;
}

.merch-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 16px 18px 18px;
}

.merch-name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.4;
}

.merch-sub {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.merch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.merch-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-now {
  font-size: 21px;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}

.price-now i {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  margin-right: 1px;
}

.price-was {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.32);
  text-decoration: line-through;
}

.merch-add {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  border: 1px solid rgba(250, 204, 21, 0.4);
  background: rgba(250, 204, 21, 0.12);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.merch-add:hover {
  background: var(--accent);
  color: #0a1535;
  transform: scale(1.08) rotate(90deg);
}

.merch-add:active {
  transform: scale(0.94);
}

/* 骨架屏 */
.merch-skeleton {
  height: 380px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.11) 50%, rgba(255, 255, 255, 0.05) 70%);
  background-size: 220% 100%;
  animation: merchShimmer 1.3s ease-in-out infinite;
}

@keyframes merchShimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

/* --- 购物车抽屉 --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 8, 22, 0.62);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 91;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  background: #0a1533;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.is-open {
  transform: none;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-head h3 {
  font-size: 18px;
  font-weight: 800;
}

.cart-head span {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.45);
}

.cart-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  text-align: center;
}

.cart-empty svg {
  opacity: 0.4;
}

.cart-item {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item-thumb {
  width: 66px;
  height: 82px;
  border-radius: 10px;
  background: radial-gradient(120% 90% at 50% 10%, rgba(91, 140, 255, 0.28), rgba(10, 21, 53, 0.1));
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-item-thumb img {
  width: 86%;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cart-item-spec {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.qty-box button {
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.18s;
}

.qty-box button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.qty-box span {
  min-width: 26px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}

.cart-remove {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.cart-remove:hover {
  color: #ff8fa3;
}

.cart-foot {
  padding: 20px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.cart-sum-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cart-sum-row span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.cart-sum-total {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

.cart-ship-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 16px;
}

.cart-checkout {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #0a1535;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cart-checkout:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cart-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* --- 商品详情 / 结算弹层 --- */
.merch-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 22, 0.72);
  backdrop-filter: blur(6px);
}

.merch-modal.is-open {
  display: flex;
}

.merch-dialog {
  position: relative;
  width: min(880px, 100%);
  max-height: min(88vh, 720px);
  overflow-y: auto;
  background: #0b1636;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: merchPop 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes merchPop {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.merch-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 21, 51, 0.7);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.merch-dialog-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.detail-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.detail-visual {
  background: radial-gradient(120% 90% at 50% 10%, rgba(91, 140, 255, 0.32), rgba(10, 21, 53, 0.15));
  display: grid;
  place-items: center;
  padding: 34px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-visual img {
  width: 100%;
  max-width: 320px;
  filter: drop-shadow(0 24px 34px rgba(0, 0, 0, 0.45));
}

.detail-body {
  padding: 34px 32px 30px;
}

.detail-cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(250, 204, 21, 0.8);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.detail-name {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.detail-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.detail-specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.detail-specs li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-price-row .price-now {
  font-size: 30px;
}

.detail-stock {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.detail-actions .btn {
  flex: 1;
  padding: 13px 18px;
  font-size: 14.5px;
  border: 0;
  font-family: inherit;
}

.detail-actions .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* 结算表单 */
.checkout-body {
  padding: 30px 32px 32px;
}

.checkout-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 4px;
}

.checkout-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 7px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.6);
  background: rgba(255, 255, 255, 0.07);
}

.field textarea {
  resize: vertical;
  min-height: 74px;
}

.checkout-summary {
  margin: 22px 0 20px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  padding: 4px 0;
}

.checkout-line.total {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 15px;
  color: #fff;
  font-weight: 800;
}

.checkout-line.total b {
  color: var(--accent);
  font-size: 20px;
}

.checkout-msg {
  display: none;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.checkout-msg.is-error {
  display: block;
  background: rgba(255, 107, 139, 0.12);
  border: 1px solid rgba(255, 107, 139, 0.3);
  color: #ffb3c1;
}

.checkout-msg.is-ok {
  display: block;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #86efac;
}

.checkout-done {
  text-align: center;
  padding: 20px 10px 6px;
}

.checkout-done .tick {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #34d399;
  font-size: 28px;
  display: grid;
  place-items: center;
}

.checkout-done h4 {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.checkout-done p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.checkout-done .order-no {
  display: inline-block;
  margin-top: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.checkout-done .btn {
  margin-top: 22px;
  border: 0;
  font-family: inherit;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .merch-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 26px; }
  .detail-visual img { max-width: 220px; }
  .detail-body { padding: 24px 22px; }
  .merch-head { align-items: flex-start; }
}

@media (max-width: 640px) {
  .merch-section { padding-bottom: 76px; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .merch-body { padding: 12px 13px 14px; }
  .merch-name { font-size: 13.5px; }
  .merch-sub { display: none; }
  .price-now { font-size: 17px; }
  .merch-add { width: 32px; height: 32px; flex-basis: 32px; font-size: 17px; }
  .merch-view { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .merch-dialog { border-radius: 18px; }
  .merch-tab { padding: 8px 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .merch-card,
  .merch-thumb img,
  .cart-drawer,
  .merch-dialog { transition: none !important; animation: none !important; }
}

/* ==========================================================================
 * 登录态组件（nav.js 渲染）+ 积分徽章
 * ========================================================================== */
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav-user:hover { background: rgba(255, 255, 255, 0.06); }

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #0b1230;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  flex: none;
  box-shadow: 0 4px 12px rgba(250, 204, 21, 0.35);
}

.nav-username {
  font-size: 13.5px;
  color: var(--text);
  font-weight: 600;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-user .nav-credits {
  font-size: 11.5px;
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700;
  white-space: nowrap;
}

/* 积分徽章（工具页显示余额用） */
.credit-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #facc15;
  font-size: 12.5px;
  font-weight: 700;
}
.credit-chip b { font-size: 14px; }

/* 微信扫码登录 */
.wx-login-box { text-align: center; padding: 8px 0 4px; }
.wx-qr {
  width: 200px;
  height: 200px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.wx-qr svg { width: 100%; height: 100%; display: block; }
.wx-status { font-size: 13.5px; color: var(--text-muted); min-height: 20px; margin-bottom: 12px; }
.wx-status.ok { color: #34d399; }
.wx-secure-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* 关于页 */
.about-page-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) { .about-page-grid { grid-template-columns: 1fr; } }
.about-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.about-fact {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.about-fact strong { display: block; font-size: 16px; margin-bottom: 4px; }
.about-fact span { font-size: 12.5px; color: var(--text-muted); line-height: 1.6; }
.about-mission-list { list-style: none; margin: 16px 0 0; padding: 0; }
.about-mission-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 14.5px;
  line-height: 1.7;
}
.about-mission-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* 积分流水 */
.credit-log-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.credit-log-table th, .credit-log-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.credit-log-table th { opacity: 0.6; font-weight: 500; font-size: 12px; }
.credit-delta-plus { color: #34d399; font-weight: 700; }
.credit-delta-minus { color: #f87171; font-weight: 700; }


/* ==========================================================================
   销售模式（sales-mode.js）：display = 仅展示 / open = 正式开售
   ========================================================================== */

/* 展示模式下隐藏一切购买入口 */
html.sales-display .merch-cart-trigger,
html.sales-display .cart-drawer,
html.sales-display .cart-overlay,
html.sales-display .cart-checkout { display: none !important; }

/* 「参考价」小标签 */
.sales-ref {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, 0.62);
  vertical-align: middle;
}

/* 商品卡上的「即将开售」替代加购按钮 */
.merch-soon {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

/* 展示期提示条 */
.sales-note {
  margin-top: 10px;
  padding: 9px 12px;
  border-left: 3px solid rgba(250, 204, 21, 0.55);
  border-radius: 0 8px 8px 0;
  background: rgba(250, 204, 21, 0.07);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.62);
}
html.sales-open .sales-note { display: none; }

/* 商品详情里的展示期说明 */
.detail-sales-note {
  margin: 12px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 12.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

/* 轻提示 */
.sc-sales-toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translate(-50%, 14px);
  max-width: min(420px, calc(100% - 40px));
  padding: 11px 18px;
  border-radius: 12px;
  background: rgba(12, 20, 42, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 999;
}
.sc-sales-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
html.sales-open .sales-ref { display: none; }
/* 展示模式下积分充值入口一并隐藏（充值=付费服务） */
html.sales-display #rechargeBtn { display: none !important; }

/* ==========================================================================
   法规公示 / AI 生成内容显式标识 / 手办效果图 / 12 贴纸流水线
   ========================================================================== */
.footer-icp {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}
.footer-icp a { color: rgba(255, 255, 255, 0.92); text-decoration: underline; text-underline-offset: 2px; }
.footer-icp a:hover { color: #facc15; text-decoration: underline; }
.footer-ai { color: rgba(255, 255, 255, 0.6); }

.ai-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #facc15;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3px;
  vertical-align: middle;
}

/* --- 3D 手办页：AI 效果图 --- */
.figure-ai-box {
  margin-top: 22px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
.figure-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.figure-ai-head h4 { font-size: 15px; margin: 0; }
.figure-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 14px; align-items: center; }
.figure-shot { position: relative; border-radius: 14px; overflow: hidden; background: #fff; }
.figure-shot img { width: 100%; display: block; }
.ai-badge-corner { position: absolute; right: 10px; bottom: 10px; margin: 0; background: rgba(12, 20, 42, 0.78); }
.figure-shot-note p { font-size: 13px; line-height: 1.8; color: rgba(255, 255, 255, 0.72); margin: 0 0 10px; }
.figure-shot-note .btn { margin-top: 6px; }
.figure-demo { margin-top: 16px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, 0.12); }
.figure-demo img { width: 100%; max-width: 320px; border-radius: 12px; display: block; }

/* --- 表情包页：12 贴纸整套 --- */
.pack-card { border: 1px solid rgba(250, 204, 21, 0.22); }
.pack-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.pack-word {
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}
.pack-sample img { width: 100%; max-width: 340px; border-radius: 12px; display: block; border: 1px solid rgba(255, 255, 255, 0.1); }
.pack-demo-gifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 4px; align-items: start; }
.pack-demo-item { text-align: center; }
.pack-demo-item img {
  width: 100%; max-width: 180px; height: 150px; object-fit: contain;
  background: repeating-conic-gradient(#1b2440 0% 25%, #232f52 0% 50%) 50% / 16px 16px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1);
}
.pack-demo-item span { display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.55); }
.pack-demo-gifs > p { grid-column: 1 / -1; margin: 2px 0 0; }
.pack-progress { display: grid; gap: 8px; }
.pack-step {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px; color: rgba(255, 255, 255, 0.55);
}
.pack-step span { font-size: 14px; }
.pack-step.is-active { border-color: rgba(250, 204, 21, 0.5); color: #facc15; background: rgba(250, 204, 21, 0.08); }
.pack-step.is-done { color: rgba(255, 255, 255, 0.82); border-color: rgba(120, 220, 170, 0.35); }
.pack-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.pack-gif-card {
  border-radius: 12px; padding: 10px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09); text-align: center;
}
.pack-gif-preview {
  height: 128px; display: flex; align-items: center; justify-content: center;
  background: repeating-conic-gradient(#1b2440 0% 25%, #232f52 0% 50%) 50% / 16px 16px;
  border-radius: 8px; overflow: hidden; margin-bottom: 8px;
}
.pack-gif-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pack-gif-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; margin-bottom: 8px; }
.pack-gif-meta b { font-weight: 600; }
.pack-gif-meta span { color: rgba(255, 255, 255, 0.45); font-size: 11px; }
.pack-gif-card .btn { width: 100%; }

@media (max-width: 720px) {
  .figure-result { grid-template-columns: 1fr; }
  .pack-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
