/* —— 基础 —— */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: #2a2a2a;
  background: linear-gradient(180deg, #fff5ee 0%, #ffe8d6 35%, #fdd9c0 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

/* —— 顶部 hero —— */
.hero {
  text-align: center;
  padding: 18px 12px 24px;
}
.hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 4px;
  color: #b87333;
  background: rgba(255,255,255,0.6);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.shop-name {
  font-size: 26px;
  font-weight: 800;
  margin: 0;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #6b3410, #c2632a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shop-sub {
  margin-top: 6px;
  font-size: 13px;
  color: #8a5a3b;
  letter-spacing: 2px;
}
.price-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  background: #2a2a2a;
  color: #ffd8a8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* —— 卡片 —— */
.card {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 16px 14px;
  margin-bottom: 14px;
  box-shadow: 0 4px 18px rgba(120, 60, 20, 0.08);
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #6b3410;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, #ff8a4c, #c2632a);
}

/* —— 文案 —— */
.copy-text {
  font-size: 15px;
  line-height: 1.75;
  color: #3a2a1c;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 80px;
}

/* —— 九宫格 —— */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.grid-cell {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f3e5d6;
  position: relative;
}
.grid-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.grid-cell.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #b89074;
  text-align: center;
  padding: 4px;
}
.skeleton {
  background: linear-gradient(90deg, #f3e5d6 0%, #fff0e0 50%, #f3e5d6 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.tip {
  text-align: center;
  font-size: 11px;
  color: #a07555;
  margin: 10px 0 0;
}

/* —— 信息卡 —— */
.info-row {
  display: flex;
  font-size: 13px;
  line-height: 1.7;
  padding: 4px 0;
}
.info-key {
  flex: 0 0 48px;
  color: #a07555;
}
.info-val {
  flex: 1;
  color: #3a2a1c;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.price-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}
.price-edit-label {
  font-size: 11px;
  color: #a07555;
}
.price-input {
  width: 64px;
  height: 26px;
  padding: 0 8px;
  font-size: 13px;
  color: #3a2a1c;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(107, 52, 16, 0.25);
  border-radius: 13px;
  outline: none;
  text-align: center;
  -moz-appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.price-input:focus { border-color: #c2632a; }

/* —— 按钮 —— */
.actions {
  display: flex;
  gap: 10px;
  margin: 18px 0 14px;
}
.btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease;
}
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: rgba(255,255,255,0.9);
  color: #6b3410;
  border: 1px solid rgba(107, 52, 16, 0.2);
}
.btn-primary {
  background: linear-gradient(135deg, #ff8a4c, #c2632a);
  color: #fff;
  box-shadow: 0 6px 16px rgba(194, 99, 42, 0.35);
}
.btn-disabled {
  background: #d8d8d8;
  color: #888;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.actions-book + .actions-refresh {
  margin-top: 0;
}

/* —— footer —— */
.footer {
  text-align: center;
  font-size: 11px;
  color: #a07555;
  padding: 14px 0 0;
  letter-spacing: 1px;
}
.footer-sub {
  margin-top: 4px;
  opacity: 0.7;
}
