/* ============================================================
   木屿日用 · H5 基础样式
   设计令牌复用小程序 app.wxss（rpx → rem，1rem = 100rpx）
   根字号随视口宽度缩放，桌面端封顶 480px 呈现手机版式
   ============================================================ */

html {
  /* 750rpx = min(100vw, 480px) → 1rem(=100rpx) = min(100vw,480px)/7.5 */
  font-size: calc(min(100vw, 480px) / 7.5);
  -webkit-text-size-adjust: 100%;
  background: #e8e2d6;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --paper: #f7f3ea;
  --paper-deep: #efe7da;
  --surface: #fffcf6;
  --ink: #24261f;
  --muted: #8d897c;
  --green: #20372c;
  --green-soft: #dfe6db;
  --clay: #b05f40;
  --gold: #a88a58;
  --line: rgba(36, 38, 31, 0.09);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 0.28rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

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

input {
  border: none;
  outline: none;
  background: transparent;
}

/* 应用外壳：桌面端居中手机宽度 */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  overflow-x: hidden;
  box-shadow: 0 0 60px rgba(47, 43, 33, 0.08);
}

#view {
  min-height: 100vh;
}

.serif {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Times New Roman", serif;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.19rem;
  letter-spacing: 0.04rem;
  line-height: 1.4;
}

.muted {
  color: var(--muted);
}

.hairline {
  height: 0.01rem;
  background: var(--line);
}

.section {
  padding: 0 0.32rem;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 0.28rem;
}

.section-title {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.44rem;
  font-weight: 500;
  letter-spacing: 0.01rem;
  line-height: 1.25;
}

.section-more {
  display: flex;
  align-items: center;
  padding-bottom: 0.06rem;
  color: var(--muted);
  font-size: 0.22rem;
  letter-spacing: 0.01rem;
  cursor: pointer;
}

.section-more .icon {
  width: 0.24rem;
  height: 0.24rem;
  margin-left: 0.06rem;
}

.price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.32rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.price-symbol {
  margin-right: 0.02rem;
  font-size: 0.2rem;
}

.price-original {
  margin-left: 0.1rem;
  color: #a29d90;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.2rem;
  text-decoration: line-through;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.round-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  color: #fbf7ed;
}

.round-plus .icon {
  width: 0.24rem;
  height: 0.24rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  height: 0.38rem;
  padding: 0 0.16rem;
  border: 0.01rem solid rgba(36, 38, 31, 0.12);
  border-radius: 999rem;
  color: #665f52;
  font-size: 0.19rem;
  letter-spacing: 0.01rem;
}

.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: var(--green);
  color: #fbf7ed;
  box-shadow: 0 0.08rem 0.2rem rgba(32, 55, 44, 0.16);
  cursor: pointer;
}

.add-btn .icon {
  width: 0.25rem;
  height: 0.25rem;
}

.hide-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
  color: transparent;
}

.product-name {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.28rem;
  font-weight: 500;
  letter-spacing: 0.005rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-en {
  display: block;
  overflow: hidden;
  color: #9c9587;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.18rem;
  letter-spacing: 0.02rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(0.18rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.65s ease both;
}

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

/* 通用轻提示 */
.mori-toast {
  position: fixed;
  left: 50%;
  bottom: 2.4rem;
  z-index: 999;
  transform: translateX(-50%) translateY(0.2rem);
  max-width: 70%;
  padding: 0.18rem 0.36rem;
  border-radius: 999rem;
  background: rgba(32, 55, 44, 0.92);
  color: #fbf7ed;
  font-size: 0.22rem;
  letter-spacing: 0.01rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mori-toast--show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 骨架/加载 */
.mori-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 0;
  color: var(--muted);
  font-size: 0.24rem;
  letter-spacing: 0.04rem;
}
