:root {
  color-scheme: light;
  --green: #35b957;
  --green-dark: #6f35bd;
  --green-light: #9be7a7;
  --ink: #2f2443;
  --muted: #6d6686;
  --soft: #effaf0;
  --line: #dcd0f3;
  --white: #ffffff;
  --pink: #8b5de8;
  --pink-soft: #f5efff;
  --pink-glow: rgba(111, 53, 189, 0.28);
  --yellow: #ffe169;
  --yellow-glow: rgba(255, 225, 105, 0.42);
  --shadow: 0 14px 34px rgba(85, 54, 157, 0.16);
  --shadow-hover: 0 18px 42px rgba(85, 54, 157, 0.24);
  --shadow-active: 0 8px 20px rgba(85, 54, 157, 0.2);
  --cute-hand-font: "Elaine Milk Bobo", "山海牛奶波波 W", "山海牛奶波波W", "ShanHaiNiuNaiBoBo-W", "ShanHaiNiuNaiBoBo W", "Hannotate SC", "HanziPen SC", "Yuppy SC", "Marker Felt", "Comic Sans MS", "Kaiti SC", "STKaiti", "YouYuan", "Microsoft YaHei", cursive, sans-serif;
  font-family: var(--cute-hand-font);
}

@font-face {
  font-family: "Elaine Milk Bobo";
  src:
    local("山海牛奶波波 W"),
    local("山海牛奶波波W"),
    local("ShanHaiNiuNaiBoBo-W"),
    local("ShanHaiNiuNaiBoBo W"),
    url("./assets/fonts/ShanHaiNiuNaiBoBoW-2.ttf") format("truetype");
  font-display: optional;
}

* {
  box-sizing: border-box;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

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

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

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(0.95);
  }
}

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

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

@keyframes wiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg);
  }
  75% {
    transform: rotate(3deg);
  }
}

html,
body {
  min-height: 100%;
}

html {
  background: #e9fbef;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #fbfff8;
  box-shadow: 0 0 0 1px rgba(111, 53, 189, 0.08), 0 24px 80px rgba(53, 185, 87, 0.16);
}

main {
  min-height: 100vh;
  padding-bottom: 172px;
  background: #fbfff8;
}

.shop-hero {
  position: relative;
  min-height: 222px;
  overflow: hidden;
  padding: 42px 18px 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(83, 214, 108, 0.02) 0%, rgba(111, 53, 189, 0.02) 48%, rgba(39, 113, 53, 0.22) 100%),
    url("./assets/hero-bg-960.webp") center / cover no-repeat;
  animation: fadeIn 0.6s ease;
}

.shop-hero::before {
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(45, 119, 58, 0.36));
  animation: fadeIn 0.8s ease;
}

.shop-hero::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(48, 36, 78, 0.08), rgba(255, 255, 255, 0.03));
  animation: fadeIn 1s ease;
}

.shop-brand {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 40px;
  min-height: 118px;
}

.shop-avatar {
  width: 76px;
  height: 76px;
  border: 4px solid rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  background: #fff;
  object-fit: cover;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: fadeIn 0.6s ease, bounce 1.2s ease 0.8s;
}

.shop-avatar:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: var(--shadow-hover), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.shop-brand-copy {
  position: relative;
  min-height: 118px;
}

.shop-brand h1 {
  overflow-wrap: anywhere;
  font-size: 1.38rem;
  line-height: 1.02;
  text-shadow: 0 2px 9px rgba(48, 36, 78, 0.42);
}

.brand-line {
  display: block;
}

.today-label {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.86rem;
}

.member-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 132px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(128, 35, 72, 0.1);
}

.member-option {
  min-height: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

.member-option.active {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(111, 53, 189, 0.2);
  transform: scale(1.02);
}

.menu-search {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  width: min(132px, calc(100% - 144px));
  min-width: 112px;
  min-height: 34px;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 8px 18px rgba(128, 35, 72, 0.14);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-search:hover {
  width: min(160px, calc(100% - 144px));
  border-color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 22px rgba(128, 35, 72, 0.18);
}

.menu-search:focus-within {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-dark);
  width: min(180px, calc(100% - 144px));
  box-shadow: 0 12px 28px rgba(128, 35, 72, 0.22);
}

.menu-search-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  pointer-events: none;
}

.menu-search-icon::before {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 11px;
  height: 11px;
  content: "";
  border: 2px solid currentColor;
  border-radius: 50%;
}

.menu-search-icon::after {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 8px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: center;
}

.menu-search input {
  min-height: 0;
  height: 32px;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  box-shadow: none;
}

.menu-search input:focus {
  box-shadow: none;
}

.menu-search input::-webkit-search-cancel-button,
.menu-search input::-webkit-search-decoration {
  appearance: none;
  -webkit-appearance: none;
}

.menu-search input::placeholder {
  color: rgba(255, 255, 255, 0.9);
}

.menu-search:focus-within input::placeholder {
  color: rgba(111, 53, 189, 0.72);
}

.hero-tools {
  position: absolute;
  right: 16px;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manage-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 0 18px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(111, 53, 189, 0.26);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.manage-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.manage-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(111, 53, 189, 0.35);
}

.manage-button:hover::before {
  opacity: 1;
}

.manage-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(111, 53, 189, 0.3);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(100%, 430px);
  height: 84px;
  border-top: 1px solid var(--line);
  background: rgba(255, 251, 253, 0.98);
  transform: translateX(-50%);
}

.tab {
  display: grid;
  gap: 2px;
  align-content: center;
  justify-items: center;
  border: 0;
  background: transparent;
  color: #4e545c;
  font-size: 0.78rem;
  font-weight: 800;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-dark) 100%);
  border-radius: 0 0 999px 999px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-icon {
  display: block;
  width: 46px;
  height: 46px;
  object-fit: contain;
  opacity: 0.55;
  filter: drop-shadow(0 2px 4px rgba(48, 36, 78, 0.14)) saturate(0.72) grayscale(0.18);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab:hover .tab-icon {
  opacity: 0.75;
  transform: translateY(-2px) scale(1.05);
}

.tab.active::before {
  transform: translateX(-50%) scaleX(1);
}

.tab.active {
  color: var(--green);
}

.tab.active .tab-icon {
  opacity: 1;
  filter: drop-shadow(0 4px 8px rgba(111, 53, 189, 0.18));
  transform: translateY(-2px) scale(1.08);
  animation: bounce 0.6s ease;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.add-dish-panel {
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.add-dish-panel:not([open]) {
  display: block;
}

.manage-page-head {
  display: grid;
  align-items: end;
  min-height: 74px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.manage-page-head h2 {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.add-dish-panel summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  color: var(--green);
  font-weight: 950;
  list-style: none;
  cursor: pointer;
}

.add-dish-panel summary::-webkit-details-marker {
  display: none;
}

.add-dish-panel summary svg {
  transition: transform 0.2s ease;
}

.add-dish-panel[open] summary svg {
  transform: rotate(180deg);
}

.dish-form {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 9px;
  padding: 0 14px 14px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

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

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fbfff8;
  color: var(--ink);
  padding: 0 10px;
  transition: all 0.3s ease;
}

input:hover,
select:hover {
  border-color: var(--green-light);
  background: #fff;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(53, 185, 87, 0.18), 0 2px 8px rgba(111, 53, 189, 0.1);
  background: #fff;
  transform: translateY(-1px);
}

.primary-button,
.ghost-button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 950;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.primary-button::before,
.ghost-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.primary-button:hover::before,
.ghost-button:hover::before {
  transform: translateX(100%);
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(111, 53, 189, 0.3);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 53, 189, 0.4);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(111, 53, 189, 0.3);
}

.ghost-button {
  border: 2px solid var(--line);
  background: #fff;
  color: var(--green-dark);
}

.ghost-button:hover {
  border-color: var(--green);
  background: var(--pink-soft);
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.form-actions {
  display: grid;
  grid-template-columns: 0.72fr 1fr;
  gap: 9px;
}

.form-actions .primary-button,
.form-actions .ghost-button {
  width: 100%;
}

.image-picker {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.image-preview,
.manage-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7fff9;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-align: center;
}

.image-preview {
  width: 74px;
  height: 74px;
  border-radius: 14px;
}

.image-preview img,
.manage-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-manage-list {
  display: grid;
  gap: 9px;
  padding: 10px 14px 16px;
}

.manage-dish-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfff8;
}

.manage-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  color: var(--green);
  font-size: 1.2rem;
}

.manage-dish-main {
  min-width: 0;
}

.manage-dish-main h3 {
  overflow-wrap: anywhere;
  font-size: 0.98rem;
  line-height: 1.18;
}

.manage-dish-main p {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manage-dish-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.manage-dish-actions .ghost-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

.restaurant-menu {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 362px);
  background: #fbfff8;
}

.category-rail {
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  background: var(--soft);
}

.category-pill {
  position: relative;
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 78px;
  border: 0;
  background: transparent;
  color: #6d6686;
  padding: 8px 8px 8px 18px;
  text-align: left;
  font-size: 0.98rem;
  font-weight: 800;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-pill:hover {
  background: rgba(255, 255, 255, 0.5);
  color: var(--green);
}

.category-pill small {
  color: #8c7fb0;
  font-size: 0.72rem;
  font-weight: 800;
  transition: color 0.3s ease;
}

.category-pill.active {
  background: #fff;
  color: var(--green);
  box-shadow: 0 2px 8px rgba(111, 53, 189, 0.08);
}

.category-pill.active small {
  color: var(--green-dark);
}

.category-pill.active::before {
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 5px;
  content: "";
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, var(--green) 0%, var(--green-dark) 100%);
  box-shadow: 0 0 8px var(--pink-glow);
  animation: slideUp 0.3s ease;
}

.menu-board {
  min-width: 0;
  background: #fff;
}

.menu-board-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 48px;
  padding: 0 14px 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.menu-board-head h2 {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.2;
}

.menu-count {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.dish-grid {
  display: grid;
  gap: 0;
}

.dish-card {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  min-height: 132px;
  padding: 14px 12px 14px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(247, 213, 227, 0.75);
  contain: layout paint;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.dish-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--green);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.dish-card:hover::before {
  transform: scaleY(1);
}

.dish-card:hover {
  background: linear-gradient(90deg, #fbfff8 0%, #fff 100%);
  transform: translateX(2px);
}

.dish-card.in-cart {
  background: linear-gradient(135deg, #fbfff8 0%, #fff5fa 100%);
  border-left: 3px solid var(--green);
}

.dish-card.in-cart::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
  animation: bounce 0.5s ease;
}

.dish-photo {
  position: relative;
  display: grid;
  width: 86px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 52%, #fff 0 29%, transparent 30%),
    radial-gradient(circle at 50% 52%, #ffe6ef 0 48%, transparent 49%),
    linear-gradient(140deg, #f7fff9, #eefbe8 58%, #f2efff);
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 950;
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-photo {
  transform: scale(1.05) rotate(2deg);
}

.dish-photo.has-image {
  border: 1px solid rgba(247, 213, 227, 0.85);
  background: #fff;
  box-shadow: 0 4px 12px rgba(111, 53, 189, 0.1);
}

.dish-photo.has-image::before,
.dish-photo.has-image::after {
  display: none;
}

.dish-photo img {
  display: block;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  object-fit: cover;
  transform: translateZ(0);
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-photo img {
  transform: scale(1.1);
}

.dish-photo::before,
.dish-photo::after {
  position: absolute;
  top: 14px;
  width: 20px;
  height: 15px;
  content: "";
  border: 2px solid #6f35bd;
  background: var(--pink);
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-photo::before {
  transform: rotate(-18deg) scale(1.1);
}

.dish-card:hover .dish-photo::after {
  transform: rotate(18deg) scale(1.1);
}

.dish-photo::before,
.dish-photo::after {
  position: absolute;
  top: 14px;
  width: 20px;
  height: 15px;
  content: "";
  border: 2px solid #6f35bd;
  background: var(--pink);
}

.dish-photo::before {
  right: 30px;
  border-radius: 12px 3px 12px 3px;
  transform: rotate(-18deg);
}

.dish-photo::after {
  right: 13px;
  border-radius: 3px 12px 3px 12px;
  transform: rotate(18deg);
}

.dish-photo span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.dish-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dish-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.dish-card h3 {
  overflow-wrap: anywhere;
  font-size: 1.24rem;
  line-height: 1.18;
}

.table-code,
.tag-row {
  display: none;
}

.dish-rating {
  color: var(--yellow);
  font-size: 1.06rem;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(173, 129, 0, 0.16);
  filter: drop-shadow(0 0 4px var(--yellow-glow));
  transition: transform 0.3s ease;
}

.dish-card:hover .dish-rating {
  transform: scale(1.1);
  filter: drop-shadow(0 0 6px var(--yellow-glow));
}

.dish-price {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 950;
  line-height: 1;
  position: relative;
}

.dish-price strong {
  display: inline-block;
  min-width: 1.25ch;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.dish-price strong.updating {
  animation: pulse 0.3s ease-out;
  color: var(--green-dark);
  text-shadow: 0 0 8px var(--pink-glow);
}

.leaf-mark {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 18px;
  border-radius: 80% 20% 80% 20%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  transform: rotate(-22deg);
  box-shadow: 0 2px 6px rgba(111, 53, 189, 0.2);
  transition: transform 0.3s ease;
  animation: wiggle 2s ease-in-out infinite;
}

.dish-card:hover .leaf-mark {
  transform: rotate(-22deg) scale(1.1);
}

.leaf-mark::after {
  position: absolute;
  left: 8px;
  top: 2px;
  width: 2px;
  height: 16px;
  content: "";
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.68);
  transform: rotate(22deg);
}

.dish-note {
  overflow: hidden;
  color: #6d6686;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dish-actions {
  display: grid;
  grid-template-rows: 36px 30px;
  gap: 14px;
  align-content: center;
  justify-items: center;
  min-height: 80px;
}

.add-button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 5px 12px rgba(111, 53, 189, 0.24);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.add-button::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.add-button:hover::before {
  opacity: 1;
}

.add-button:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-hover);
}

.add-button:active {
  transform: scale(0.95);
  box-shadow: var(--shadow-active);
  animation: heartbeat 0.4s ease;
}

.add-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 3;
}

.tiny-button {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5efff 0%, #eefbe8 100%);
  color: #8b75be;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 1;
  transform: scale(1);
  visibility: visible;
  box-shadow: 0 2px 6px rgba(111, 53, 189, 0.1);
}

.tiny-button:hover:not(.is-empty) {
  transform: scale(1.1);
  background: linear-gradient(135deg, #eefbe8 0%, #e2d7ff 100%);
  box-shadow: 0 4px 10px rgba(111, 53, 189, 0.2);
}

.tiny-button.is-empty {
  opacity: 0;
  transform: scale(0.8);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.15s ease, visibility 0s 0.2s;
}

.tiny-button:active:not(.is-empty) {
  transform: scale(0.88);
  box-shadow: 0 1px 3px rgba(111, 53, 189, 0.15);
}

.dish-price strong {
  display: inline-block;
  min-width: 1.25ch;
  font-variant-numeric: tabular-nums;
  text-align: center;
  transition: transform 0.3s ease;
}

.tiny-button svg {
  width: 16px;
  height: 16px;
}

.order-ticket {
  position: fixed;
  left: 50%;
  bottom: 94px;
  z-index: 45;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(76px, 0.88fr);
  align-items: center;
  gap: 9px;
  width: min(calc(100% - 18px), 410px);
  min-height: 74px;
  padding: 10px 12px;
  border-radius: 22px;
  border: 1px solid rgba(247, 213, 227, 0.9);
  background: linear-gradient(135deg, rgba(255, 251, 253, 0.98) 0%, rgba(255, 247, 252, 0.98) 100%);
  box-shadow: 0 10px 34px rgba(111, 53, 189, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition: all 0.3s ease;
}

.order-ticket:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 14px 42px rgba(111, 53, 189, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.cart-button {
  position: relative;
  display: inline-grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f5efff 0%, #eefbe8 100%);
  color: #8f80b7;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #eefbe8 0%, #e2d7ff 100%);
}

.cart-button:active {
  transform: scale(0.95);
}

.cart-button.has-orders {
  color: var(--green);
  background: linear-gradient(135deg, #f5efff 0%, #eee6ff 100%);
  animation: heartbeat 0.6s ease;
}

.cart-button span {
  position: absolute;
  right: -2px;
  top: -4px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 950;
  box-shadow: 0 2px 8px rgba(111, 53, 189, 0.3);
  animation: bounce 0.5s ease;
}

.bar-link,
.bar-submit {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 950;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.bar-link::before,
.bar-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bar-link {
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.bar-link:hover {
  color: var(--green-dark);
  transform: scale(1.05);
  text-decoration-color: var(--green-dark);
}

.bar-submit {
  border: 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(111, 53, 189, 0.3);
}

.bar-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 53, 189, 0.4);
}

.bar-submit:hover:not(:disabled)::before {
  opacity: 1;
}

.bar-submit:active:not(:disabled) {
  transform: translateY(0);
}

.bar-submit:disabled {
  background: linear-gradient(135deg, #fff1f6 0%, #eefbe8 100%);
  color: #a99bc7;
  box-shadow: none;
}

.ghost-button:disabled {
  color: #a99bc7;
}

body.cart-open {
  overflow: hidden;
}

.cart-sheet[hidden] {
  display: none;
}

.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  justify-items: center;
  animation: fadeIn 0.3s ease;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(59, 37, 49, 0.34);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.cart-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto;
  width: min(100%, 430px);
  max-height: min(78vh, 680px);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  border: 1px solid rgba(247, 213, 227, 0.95);
  background: linear-gradient(180deg, #fbfff8 0%, #f7fff9 100%);
  box-shadow: 0 -16px 42px rgba(90, 36, 62, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.2rem;
}

.cart-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5efff;
  color: var(--green-dark);
}

.cart-list {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 32px;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  animation: fadeIn 0.3s ease;
}

.cart-item:hover {
  border-color: var(--green);
  box-shadow: 0 4px 12px rgba(111, 53, 189, 0.1);
  transform: translateX(2px);
}

.cart-item-main {
  min-width: 0;
}

.cart-item-main h3 {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 1.2;
}

.cart-item-main p {
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quantity-stepper {
  display: grid;
  grid-template-columns: 30px 32px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, #f7fff9 0%, #fff 100%);
  box-shadow: 0 2px 6px rgba(111, 53, 189, 0.06);
  transition: all 0.3s ease;
}

.quantity-stepper:hover {
  border-color: var(--green);
  box-shadow: 0 4px 10px rgba(111, 53, 189, 0.12);
}

.quantity-stepper button {
  display: grid;
  width: 30px;
  height: 32px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 1.1rem;
  font-weight: 950;
  transition: all 0.3s ease;
  cursor: pointer;
}

.quantity-stepper button:hover {
  background: var(--pink-soft);
  color: var(--green-dark);
}

.quantity-stepper button:active {
  transform: scale(0.9);
}

.quantity-stepper span {
  color: var(--ink);
  text-align: center;
  font-weight: 950;
  transition: all 0.3s ease;
}

.cart-footer {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #f7fff9 100%);
  text-align: center;
  box-shadow: 0 4px 12px rgba(111, 53, 189, 0.08);
  animation: fadeIn 0.5s ease;
}

.summary-number {
  display: block;
  color: var(--green);
  font-size: 1.8rem;
  font-weight: 950;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-shadow: 0 2px 4px rgba(111, 53, 189, 0.1);
}

.summary-strip > div:hover .summary-number {
  transform: scale(1.15);
  color: var(--green-dark);
  text-shadow: 0 4px 8px rgba(111, 53, 189, 0.2);
}

.summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  transition: color 0.3s ease;
}

.summary-strip > div:hover .summary-label {
  color: var(--green);
}

.order-list,
.history-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.order-item,
.order-day,
.ticket-card,
.history-day,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(111, 53, 189, 0.07);
}

.order-day {
  overflow: hidden;
}

.order-day > h3 {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #f5efff;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.ticket-card {
  display: grid;
  gap: 10px;
  margin: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fbfff8 100%);
  box-shadow: 0 8px 20px rgba(111, 53, 189, 0.07);
  transition: all 0.3s ease;
  animation: fadeIn 0.4s ease;
}

.ticket-card:hover {
  box-shadow: 0 12px 28px rgba(111, 53, 189, 0.12);
  transform: translateY(-2px);
}

.ticket-card.status-cancelled {
  opacity: 0.68;
  text-decoration: none;
  background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

.ticket-card.status-cancelled .ticket-dish {
  text-decoration: line-through;
}

.ticket-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

.ticket-topline h3 {
  font-size: 1.02rem;
}

.ticket-dishes {
  display: grid;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f7fff9;
}

.ticket-dish {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
}

.ticket-dish span {
  overflow-wrap: anywhere;
}

.ticket-actions {
  display: flex;
  justify-content: flex-end;
}

.ticket-cancel {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.ticket-status {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.order-main,
.history-entry {
  min-width: 0;
}

.order-item h3,
.history-entry h3 {
  overflow-wrap: anywhere;
  font-size: 1rem;
}

.order-meta,
.history-meta,
.empty-state p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pill-person {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5efff 0%, #eefbe8 100%);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 950;
  box-shadow: 0 2px 6px rgba(111, 53, 189, 0.1);
  transition: all 0.3s ease;
}

.pill-person:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(111, 53, 189, 0.15);
}

.pill-person.partner {
  background: linear-gradient(135deg, var(--pink-soft) 0%, #eee6ff 100%);
  color: #6f35bd;
}

.history-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  align-items: end;
  background: #fff;
}

.history-day {
  overflow: hidden;
}

.history-day > h3 {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  background: #f5efff;
  color: var(--green-dark);
  font-size: 0.95rem;
}

.history-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
}

.history-entry + .history-entry {
  border-top: 1px solid var(--line);
}

.status-cancelled {
  color: var(--muted);
  text-decoration: line-through;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin: 12px;
  padding: 28px 18px;
  text-align: center;
}

.empty-state h3 {
  font-size: 1.05rem;
}

.mini-cat {
  position: relative;
  width: 44px;
  height: 38px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  clip-path: polygon(50% 0, 62% 32%, 96% 34%, 69% 55%, 79% 90%, 50% 70%, 21% 90%, 31% 55%, 4% 34%, 38% 32%);
  filter: drop-shadow(0 6px 12px rgba(111, 53, 189, 0.18));
  animation: wiggle 3s ease-in-out infinite;
}

.mini-cat::before,
.mini-cat::after {
  position: absolute;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s ease;
}

.mini-cat::before {
  left: 13px;
  top: 12px;
}

.mini-cat::after {
  right: 13px;
  top: 12px;
}

.empty-state:hover .mini-cat::before {
  transform: scale(1.2);
}

.empty-state:hover .mini-cat::after {
  transform: scale(1.2);
}

@media (max-width: 380px) {
  .restaurant-menu {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .category-pill {
    min-height: 72px;
    padding-left: 14px;
    font-size: 0.92rem;
  }

  .dish-card {
    grid-template-columns: 78px minmax(0, 1fr) 38px;
    gap: 9px;
    padding-left: 12px;
  }

  .dish-photo {
    width: 74px;
    border-radius: 14px;
  }

  .dish-card h3 {
    font-size: 1.08rem;
  }

  .dish-rating {
    font-size: 0.9rem;
  }

  .dish-price {
    font-size: 1.18rem;
  }

  .order-ticket {
    grid-template-columns: 50px minmax(0, 1fr) minmax(66px, 0.78fr);
    gap: 6px;
    padding-inline: 9px;
  }

  .bar-link,
  .bar-submit {
    font-size: 0.84rem;
  }

  .cart-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .cart-item > .tiny-button {
    grid-column: 2;
  }

  .quantity-stepper {
    grid-template-columns: 28px 30px 28px;
  }

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

  .manage-dish-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .manage-dish-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

/* ===== 高级交互优化 ===== */

/* 加载骨架屏效果 */
@keyframes skeleton-loading {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 40px, #f0f0f0 80px);
  background-size: 200px 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
}

/* 平滑滚动 */
.dish-grid,
.cart-list,
.order-list,
.history-list {
  scroll-behavior: smooth;
}

/* 菜品卡片进入动画 */
.dish-card {
  animation: fadeIn 0.4s ease backwards;
}

.dish-card:nth-child(1) { animation-delay: 0.05s; }
.dish-card:nth-child(2) { animation-delay: 0.1s; }
.dish-card:nth-child(3) { animation-delay: 0.15s; }
.dish-card:nth-child(4) { animation-delay: 0.2s; }
.dish-card:nth-child(5) { animation-delay: 0.25s; }

/* 悬浮提示效果 */
.tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  padding: 6px 12px;
  background: rgba(59, 37, 49, 0.95);
  color: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(59, 37, 49, 0.95);
}

*:hover > .tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-10px);
}

/* 成功反馈动画 */
@keyframes success-pop {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-feedback {
  animation: success-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 删除动画 */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-20px);
  }
}

.removing {
  animation: fadeOut 0.3s ease forwards;
}

/* 脉冲高亮效果 */
@keyframes highlight {
  0%, 100% {
    background: transparent;
  }
  50% {
    background: rgba(53, 185, 87, 0.15);
  }
}

.highlight {
  animation: highlight 0.8s ease;
}

/* 购物车数字跳动效果 */
@keyframes number-jump {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.2);
  }
}

.cart-button span.updating {
  animation: number-jump 0.5s ease;
}

/* 星星闪烁效果 */
@keyframes star-twinkle {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

.dish-rating:hover {
  animation: star-twinkle 0.6s ease infinite;
}

/* 主题装饰 */
.bow-decoration {
  position: relative;
  display: inline-block;
}

.bow-decoration::before,
.bow-decoration::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 10px;
  background: var(--pink);
  border: 1.5px solid var(--green);
  border-radius: 50% 50% 50% 0;
  top: -8px;
}

.bow-decoration::before {
  right: 50%;
  margin-right: 2px;
  transform: rotate(-45deg);
}

.bow-decoration::after {
  left: 50%;
  margin-left: 2px;
  transform: rotate(45deg) scaleX(-1);
}

/* 心形收藏按钮 */
.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(111, 53, 189, 0.15);
  z-index: 10;
}

.favorite-btn:hover {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 12px rgba(111, 53, 189, 0.25);
}

.favorite-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2;
  transition: all 0.3s ease;
}

.favorite-btn.active svg {
  fill: var(--green);
  stroke: var(--green-dark);
  animation: heartbeat 0.6s ease;
}

/* 快速操作提示 */
.quick-action-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  background: rgba(53, 185, 87, 0.95);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(111, 53, 189, 0.3);
}

.quick-action-hint.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

/* 渐变文字效果 */
.gradient-text {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 玻璃态效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 长按效果 */
@keyframes long-press {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(53, 185, 87, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(53, 185, 87, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(53, 185, 87, 0);
  }
}

.long-pressing {
  animation: long-press 0.5s ease;
}

/* 可爱的加载圆点 */
.loading-dots {
  display: inline-flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: dot-bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* 彩带效果 */
@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(360deg);
  }
}

.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--green);
  animation: confetti-fall 3s linear forwards;
  z-index: 9999;
  pointer-events: none;
}
