/* 叙白 · DIY 奶茶 - 共享样式（奶茶主题 v2） */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
:root {
  --green: #07c160;
  --green-dark: #06a552;
  --tea: #b5773a;
  --tea-deep: #8a5a2b;
  --tea-light: #f7efe5;
  --bg: #f5efe6;
  --card: #ffffff;
  --text: #2b2118;
  --text-2: #9c8b78;
  --line: #f0e6d8;
  --red: #e8433e;
  --gold: #f59e0b;
  --shadow-card: 0 2px 8px rgba(120, 84, 40, .06), 0 8px 24px rgba(120, 84, 40, .05);
  --shadow-float: 0 6px 20px rgba(120, 84, 40, .16);
}
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #e9e2d5;
  color: var(--text);
  display: flex; justify-content: center;
  min-height: 100vh;
}
.phone {
  width: 100%; max-width: 480px; min-height: 100vh;
  background:
    radial-gradient(600px 300px at 85% -50px, rgba(181,119,58,.10), transparent 70%),
    radial-gradient(500px 260px at -60px 30%, rgba(7,193,96,.07), transparent 70%),
    var(--bg);
  display: flex; flex-direction: column;
  box-shadow: 0 0 30px rgba(0,0,0,.12);
  position: relative;
}

/* ================= 顶部导航 ================= */
.app-header {
  background: linear-gradient(135deg, #c08a4e 0%, #b5773a 45%, #8a5a2b 100%);
  color: #fff; padding: 22px 18px 18px;
  position: sticky; top: 0; z-index: 10;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(138, 90, 43, .28);
}
.app-header::before, .app-header::after {
  content: ''; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.10); pointer-events: none;
}
.app-header::before { width: 130px; height: 130px; top: -58px; right: -34px; }
.app-header::after { width: 80px; height: 80px; bottom: -40px; left: -18px; background: rgba(255,255,255,.07); }
.app-header h1 {
  font-size: 20px; letter-spacing: 1px; font-weight: 800;
  text-shadow: 0 2px 6px rgba(90, 52, 16, .35);
  position: relative;
}
.app-header .sub { font-size: 12px; opacity: .9; margin-top: 4px; position: relative; letter-spacing: .5px; }
main { flex: 1; overflow-y: auto; padding: 14px 14px 90px; }

/* 底部 Tab */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  display: flex; background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  z-index: 20; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 18px rgba(120, 84, 40, .08);
}
.tabbar button {
  flex: 1; border: none; background: none; padding: 9px 0 11px;
  font-size: 12px; color: var(--text-2); cursor: pointer;
  position: relative; transition: color .2s;
  font-weight: 500;
}
.tabbar button span.tab-icon { display: block; font-size: 19px; line-height: 1.3; transition: transform .2s; }
.tabbar button.active { color: var(--green); font-weight: 700; }
.tabbar button.active span.tab-icon { transform: translateY(-1px) scale(1.08); }
.tabbar button.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--green), #35d884);
}

/* ================= 卡片 ================= */
.card {
  background: var(--card); border-radius: 16px; padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(240, 230, 216, .7);
  animation: cardIn .35s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.card .name { font-size: 16px; font-weight: 700; }
.card .creator { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.recipe-img {
  width: 74px; height: 74px; border-radius: 14px; object-fit: cover;
  margin-right: 12px; flex-shrink: 0; background: var(--tea-light);
  box-shadow: 0 2px 6px rgba(120, 84, 40, .12);
}
.card .items-summary {
  font-size: 12px; color: #7a6649; margin: 9px 0;
  background: var(--tea-light); border-radius: 10px; padding: 9px 11px; line-height: 1.7;
  border: 1px dashed #e6d3b6;
}
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }

/* 排行榜徽章 */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 24px; height: 24px; padding: 0 4px;
  text-align: center; border-radius: 8px; font-size: 12px; font-weight: 800;
  color: #fff; background: #c9beb0; margin-right: 8px;
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.12);
}
.rank-1 {
  background: linear-gradient(135deg, #ffc23d, #f59e0b);
  box-shadow: 0 2px 6px rgba(245,158,11,.4);
}
.rank-2 {
  background: linear-gradient(135deg, #cfd6dd, #a3b0bd);
  box-shadow: 0 2px 6px rgba(163,176,189,.4);
}
.rank-3 {
  background: linear-gradient(135deg, #e0a67a, #c67b4d);
  box-shadow: 0 2px 6px rgba(198,123,77,.4);
}

/* ================= 按钮 ================= */
.btn {
  border: none; border-radius: 999px; padding: 9px 18px;
  font-size: 13px; cursor: pointer; transition: all .18s;
  font-weight: 600; letter-spacing: .3px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.btn:active { transform: scale(.96); opacity: .9; }
.btn-primary {
  background: linear-gradient(135deg, #16d675, #07c160);
  color: #fff; box-shadow: 0 4px 12px rgba(7,193,96,.32);
}
.btn-primary:active { box-shadow: 0 2px 6px rgba(7,193,96,.3); }
.btn-outline { background: #fff; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline:active { background: #effdf5; }
.btn-ghost { background: #f3ede2; color: #8a6d4b; }
.btn-ghost:active { background: #ece3d2; }
.btn-danger { background: #fff; border: 1.5px solid var(--red); color: var(--red); }
.btn-big { width: 100%; padding: 14px; font-size: 15px; border-radius: 14px; }
.like-btn {
  border: 1.5px solid #f3c9c7; background: #fff; color: var(--red);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer;
  transition: all .18s; font-weight: 600;
}
.like-btn:active { transform: scale(.95); }
.like-btn.liked {
  background: linear-gradient(135deg, #ff6b6b, #e8433e); color: #fff;
  border-color: transparent; box-shadow: 0 3px 10px rgba(232,67,62,.3);
}

/* ================= 表单 ================= */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 7px; font-weight: 600; }
.field input[type=text], .field input[type=number], .field select {
  width: 100%; padding: 11px 13px; border: 1.5px solid #e5d9c6; border-radius: 12px;
  font-size: 14px; background: #fffdf9; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(7,193,96,.12);
}

/* ================= 材料滑条行 ================= */
.mat-section { margin-bottom: 6px; }
.mat-section h3 {
  font-size: 14px; margin: 16px 0 9px; color: var(--tea-deep);
  display: flex; align-items: center; gap: 6px; font-weight: 800;
}
.mat-section h3::before {
  content: ''; width: 4px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #c08a4e, #8a5a2b);
}
.mat-row {
  background: #fff; border-radius: 14px; padding: 11px 13px; margin-bottom: 9px;
  border: 1.5px solid var(--line);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.mat-row.active {
  border-color: var(--green);
  background: linear-gradient(180deg, #f2fdf7, #e9faf1);
  box-shadow: 0 3px 10px rgba(7,193,96,.10);
}
.mat-row .top { display: flex; justify-content: space-between; align-items: baseline; }
.mat-row .mname { font-size: 14px; font-weight: 600; }
.mat-row .mprice { font-size: 11px; color: var(--text-2); background: #f7f1e6; padding: 2px 8px; border-radius: 999px; }
.mat-row.active .mprice { background: rgba(7,193,96,.12); color: #058b4c; }
.mat-row .ctrl { display: flex; align-items: center; gap: 10px; margin-top: 9px; }

/* 滑条美化（Webkit 内核：Chrome / 微信内置浏览器） */
.mat-row input[type=range] {
  flex: 1; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 3px;
  background: #e8e0d2; outline: none;
}
.mat-row input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #f0f0f0 40%, #07c160 42%, #06a552);
  border: none;
  box-shadow: 0 2px 6px rgba(6,165,82,.45);
  cursor: pointer;
  transition: transform .15s;
}
.mat-row input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); }
.mat-row input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; border: none;
  background: radial-gradient(circle at 35% 30%, #fff, #f0f0f0 40%, #07c160 42%, #06a552);
  box-shadow: 0 2px 6px rgba(6,165,82,.45); cursor: pointer;
}
.mat-row .qty-box { display: flex; align-items: center; gap: 5px; background: #faf5ec; border-radius: 10px; padding: 3px 5px 3px 8px; }
.mat-row input[type=number] {
  width: 60px; padding: 5px 4px; border: none; border-radius: 8px;
  font-size: 13px; text-align: center; outline: none; background: #fff;
  box-shadow: inset 0 0 0 1px #e5d9c6;
}
.mat-row input[type=number]:focus { box-shadow: inset 0 0 0 1.5px var(--green); }
.mat-row .unit { font-size: 12px; color: var(--text-2); min-width: 18px; }

/* 照片上传 */
.photo-upload img {
  width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px;
  margin-bottom: 9px; display: block; border: 1px solid var(--line);
}
.photo-upload .btn { margin-top: 4px; }
.admin-recipe-img {
  width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px;
  margin: 9px 0; border: 1px solid var(--line); display: block;
}

/* ================= 汇总条 ================= */
.summary-bar {
  position: sticky; bottom: 0; background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 18px 18px 0 0; padding: 13px 16px 15px;
  box-shadow: 0 -6px 24px rgba(120, 84, 40, .14);
  margin-top: 12px;
  border: 1px solid var(--line); border-bottom: none;
}
.summary-bar .line { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.summary-bar .total {
  font-size: 19px; font-weight: 800; color: var(--red);
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* ================= 搜索 ================= */
.search-box { display: flex; gap: 8px; margin-bottom: 14px; }
.search-box input {
  flex: 1; padding: 11px 16px; border: 1.5px solid #e5d9c6; border-radius: 999px;
  font-size: 14px; outline: none; background: #fffdf9;
  transition: border-color .2s, box-shadow .2s;
}
.search-box input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(7,193,96,.12); }
.empty { text-align: center; color: var(--text-2); font-size: 13px; padding: 42px 0; line-height: 1.8; }

/* ================= 横幅 ================= */
.banner {
  background:
    radial-gradient(160px 90px at 92% 12%, rgba(255,255,255,.55), transparent 70%),
    radial-gradient(120px 80px at 6% 88%, rgba(255,255,255,.4), transparent 70%),
    linear-gradient(120deg, #ffe7c2, #ffd3d8);
  border-radius: 18px; padding: 18px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), var(--shadow-card);
}
.banner h2 { font-size: 17px; color: #7a4a1d; font-weight: 800; }
.banner p { font-size: 12px; color: #9a6a3d; margin-top: 5px; line-height: 1.7; }
.section-title {
  font-size: 15px; font-weight: 800; margin: 8px 2px 12px;
  display: flex; align-items: center; gap: 7px;
}
.section-title::before {
  content: ''; width: 5px; height: 16px; border-radius: 3px;
  background: linear-gradient(180deg, #c08a4e, #8a5a2b);
}

/* ================= 弹窗 ================= */
.modal-mask {
  position: fixed; inset: 0; background: rgba(43,33,24,.5);
  display: flex; align-items: flex-end; justify-content: center; z-index: 100;
  animation: maskIn .2s ease both;
}
@keyframes maskIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fffdf9; width: 100%; max-width: 480px;
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  max-height: 82vh; overflow-y: auto;
  animation: sheetUp .28s cubic-bezier(.2, .9, .3, 1.1) both;
  position: relative;
}
.modal::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; border-radius: 2px; background: #eadfd0;
}
@keyframes sheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
.modal h3 { font-size: 16px; margin-bottom: 14px; font-weight: 800; }
.modal .detail-line {
  display: flex; justify-content: space-between; font-size: 13px;
  padding: 7px 0; border-bottom: 1px dashed #f0e6d8;
}
.modal .actions { display: flex; gap: 10px; margin-top: 18px; }
.modal .actions .btn { flex: 1; padding: 12px; border-radius: 12px; font-size: 14px; }

/* ================= Toast ================= */
.toast {
  position: fixed; top: 38%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(43,33,24,.82); color: #fff; padding: 12px 24px;
  border-radius: 999px; font-size: 14px; z-index: 200; max-width: 80%;
  text-align: center; line-height: 1.6;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  animation: toastIn .25s ease both;
  backdrop-filter: blur(6px);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%,-46%); } to { opacity: 1; transform: translate(-50%,-50%); } }

/* ================= 后台专用 ================= */
.admin-header {
  background: linear-gradient(135deg, #33465c, #1b2a3a);
  color: #fff; padding: 18px 16px; position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  box-shadow: 0 4px 14px rgba(20,32,46,.3);
}
.admin-header h1 { font-size: 17px; font-weight: 800; letter-spacing: .5px; }
.voice-toggle { font-size: 12px; }
.order-new { border-left: 4px solid var(--red); }
.order-done { opacity: .7; border-left: 4px solid var(--green); }
.order-done .card-inner { opacity: .9; }
.tag {
  display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 999px;
  background: var(--tea-light); color: var(--tea); margin-right: 4px; font-weight: 700;
}
.tag.new {
  background: linear-gradient(135deg, #ffe3e0, #ffd0cc); color: var(--red);
  box-shadow: 0 2px 6px rgba(232,67,62,.18);
}
.tag.done { background: linear-gradient(135deg, #e2f9ec, #cdf3dd); color: #058b4c; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-form-grid .full { grid-column: 1 / -1; }
.mini-btn {
  border: none; border-radius: 999px; padding: 6px 12px; font-size: 12px; cursor: pointer;
  font-weight: 600; transition: all .15s;
}
.mini-btn:active { transform: scale(.94); }
.mini-btn.edit { background: #e8f0fe; color: #1a66d2; }
.mini-btn.del { background: #ffe9e7; color: var(--red); }
.mini-btn.done { background: #e2f9ec; color: #058b4c; }
.mini-btn.speak { background: #fff4dd; color: #b45309; }
.pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px;
  background: #f4eee3; color: #8a6d4b; font-weight: 600;
}

/* ================================================================
   v3 精致化：支付状态、动效、纹理、细节打磨
   ================================================================ */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(138, 90, 43, .055) 1px, transparent 1.4px);
  background-size: 24px 24px;
}

/* 页头漂浮珍珠气泡 */
.app-header .bubble {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), rgba(255,255,255,.12));
  animation: floatY 3.6s ease-in-out infinite;
}
.app-header .b1 { width: 13px; height: 13px; top: 18px; left: 56%; }
.app-header .b2 { width: 9px;  height: 9px;  top: 42px; left: 70%; animation-delay: .9s; }
.app-header .b3 { width: 6px;  height: 6px;  top: 26px; left: 82%; animation-delay: 1.5s; }
.app-header .b4 { width: 8px;  height: 8px;  top: 60px; left: 62%; animation-delay: 2.1s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); opacity: .65; }
  50%      { transform: translateY(-8px); opacity: 1; }
}

/* 卡片微交互（桌面 hover） */
.card { transition: transform .18s ease, box-shadow .18s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(120, 84, 40, .11); }
}

/* 主按钮顶部高光 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(140px 34px at 28% -6%, rgba(255,255,255,.4), transparent 62%);
}

/* 滑条选中行：轨道转为浅绿渐变，呼应绿色圆钮 */
.mat-row.active input[type=range] {
  background: linear-gradient(90deg, #c9eecf, #e8e0d2);
}

/* 排行榜前三名脉冲光环 */
.rank-1, .rank-2, .rank-3 { position: relative; }
.rank-1::after, .rank-2::after, .rank-3::after {
  content: ''; position: absolute; inset: -3px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.75); opacity: .45;
  animation: ringPulse 2.2s ease-in-out infinite;
}
.rank-2::after, .rank-3::after { animation-delay: .7s; }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: .45; }
  50%      { transform: scale(1.18); opacity: 0; }
}

/* 待付款（pending）状态：琥珀金 */
.tag.pending {
  background: linear-gradient(135deg, #fff3d6, #ffe3ab); color: #b45309;
  box-shadow: 0 2px 6px rgba(245, 158, 11, .22);
}
.order-pending {
  border-left: 4px solid var(--gold);
  background: linear-gradient(180deg, #fffdf6, #fff9ec);
}

/* 空状态：大图标插画 */
.empty { position: relative; }
.empty::before {
  content: '🧋'; display: block; font-size: 42px; margin-bottom: 10px;
  filter: grayscale(.3); opacity: .85;
  animation: floatY 2.8s ease-in-out infinite;
}

/* 横幅：杯盖装饰 */
.banner::after {
  content: '🥤'; position: absolute; right: 12px; bottom: -10px;
  font-size: 52px; transform: rotate(-14deg); opacity: .22; pointer-events: none;
}

/* 滚动条细化 */
main::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 4px; height: 4px; }
main::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb {
  background: #dccbb0; border-radius: 2px;
}

/* 汇总条价格呼吸光 */
.summary-bar .total {
  animation: priceGlow 2.6s ease-in-out infinite;
}
@keyframes priceGlow {
  0%, 100% { text-shadow: 0 1px 0 rgba(255,255,255,.6); }
  50%      { text-shadow: 0 1px 0 rgba(255,255,255,.6), 0 0 14px rgba(232,67,62,.28); }
}

/* 收款码展示卡片 */
.qr-card {
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 4px 16px rgba(7,193,96,.12), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #dcf3e5;
  max-width: 300px;
  margin: 0 auto;
  animation: qrPop .45s cubic-bezier(.22,1,.36,1);
}
@keyframes qrPop {
  0% { transform: scale(.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ================================================================
   v4 精致化：DIY 无顶栏流程、弹窗区块化、传照片、动效再升级
   ================================================================ */

/* DIY 页引导条：代替原来的命名输入卡片 */
.diy-intro {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, #fdf6ec, #f9ecdd);
  border: 1px solid #f0e0c8;
  border-radius: 16px; padding: 13px 15px; margin-bottom: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), var(--shadow-card);
  position: relative; overflow: hidden;
}
.diy-intro::after {
  content: '🧋'; position: absolute; right: 10px; bottom: -8px;
  font-size: 44px; transform: rotate(-12deg); opacity: .14; pointer-events: none;
}
.diy-intro-icon {
  font-size: 26px; flex-shrink: 0;
  animation: floatY 2.6s ease-in-out infinite;
}
.diy-intro b { font-size: 14px; color: #6b4a26; display: block; }
.diy-intro p { font-size: 12px; color: #9a6a3d; margin-top: 2px; }

/* 材料分类：整块卡片化 */
.mat-section {
  background: rgba(255,255,255,.62);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 4px 12px 12px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
.mat-section h3 {
  font-size: 13.5px; margin: 12px 2px 10px; color: var(--tea-deep);
  display: inline-flex; align-items: center; gap: 6px; font-weight: 800;
  background: linear-gradient(120deg, #f7efe5, #f2e6d2);
  border-radius: 999px; padding: 5px 13px;
}
.mat-section h3::before { content: none; }
.mat-row {
  background: #fff; border-radius: 14px; padding: 11px 13px; margin-bottom: 9px;
  border: 1.5px solid var(--line);
  transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.mat-row:hover { transform: translateY(-1px); }
.mat-row.active {
  border-color: var(--green);
  background: linear-gradient(180deg, #f2fdf7, #e9faf1);
  box-shadow: 0 3px 10px rgba(7,193,96,.10);
}

/* 弹窗区块化：下单/发布弹窗内容分组 */
.modal-section {
  background: #faf6ef;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 13px;
  margin-bottom: 12px;
}
.modal-section .field { margin-bottom: 12px; }
.modal-section .field:last-child { margin-bottom: 0; }
.modal-section .field input[type=text] { background: #fff; }
.modal .total-line {
  border-bottom: none; margin-top: 4px; padding-top: 8px;
  border-top: 1px dashed #e6d3b6;
  align-items: center;
}
.modal .total-line span:first-child { font-weight: 700; color: var(--text-2); }
.modal .total-price {
  font-size: 22px; font-weight: 800; color: var(--red);
  letter-spacing: .5px;
}
/* 下单弹窗里名字输入框：更大更醒目 */
#order-name, #order-customer {
  font-size: 15px; padding: 13px 14px; border-radius: 13px;
}
#order-name { font-weight: 700; letter-spacing: .5px; }

/* 配方卡片：自己的配方显示「传照片」小按钮 */
.photo-btn {
  display: inline-flex; align-items: center; gap: 3px;
  margin-left: 8px; padding: 3px 10px;
  font-size: 11px; font-weight: 700;
  color: #1a66d2; background: #e8f0fe;
  border: 1px solid #c9dbf5; border-radius: 999px;
  cursor: pointer; transition: all .18s;
  vertical-align: 2px;
}
.photo-btn:hover { background: #d8e7fc; transform: scale(1.04); }
.photo-btn:active { transform: scale(.94); }

/* 卡片入场交错动画 */
.card { animation: cardIn .35s ease both; }


/* 下单弹窗：同步发布到配方广场 开关 */
.share-check {
  display: flex; align-items: flex-start; gap: 9px;
  margin: 12px 2px 2px; padding: 11px 13px;
  background: linear-gradient(135deg, #fffbe9, #fff3d6);
  border: 1px solid #f2dfae; border-radius: 13px;
  font-size: 12.5px; color: #7a5b16; line-height: 1.55;
  cursor: pointer; transition: all .18s;
}
.share-check:active { transform: scale(.985); }
.share-check input[type="checkbox"] {
  width: 17px; height: 17px; margin-top: 1px;
  accent-color: #e8912d; cursor: pointer; flex-shrink: 0;
}

/* ================================================================
   v5 精致化：视觉再升级（光泽 / 交错动效 / 徽章）
   ================================================================ */

/* 付款提示卡 */
.qr-note {
  margin-top: 13px; padding: 11px 14px;
  background: linear-gradient(135deg, #fff8e8, #ffefce);
  border: 1px solid #f2dfae; border-radius: 13px;
  font-size: 12.5px; color: #7a5b16; line-height: 1.8; text-align: left;
}

/* 首页横幅：数据徽章排 */
.banner-stats { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; position: relative; }
.stat-chip {
  font-size: 11.5px; font-weight: 700; color: #7a4a1d;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.9);
  padding: 4px 11px; border-radius: 999px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 6px rgba(122, 74, 29, .12);
  animation: chipIn .5s ease both;
}
.stat-chip:nth-child(2) { animation-delay: .12s; }
.stat-chip:nth-child(3) { animation-delay: .24s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(6px) scale(.9); } to { opacity: 1; transform: none; } }

/* 配方卡片：交错入场 + 图片悬浮缩放 */
.card { animation: cardIn .38s ease both; }
main .card:nth-child(2) { animation-delay: .04s; }
main .card:nth-child(3) { animation-delay: .08s; }
main .card:nth-child(4) { animation-delay: .12s; }
main .card:nth-child(5) { animation-delay: .16s; }
main .card:nth-child(6) { animation-delay: .2s; }
.recipe-img { transition: transform .25s ease, box-shadow .25s ease; }
@media (hover: hover) {
  .card:hover .recipe-img { transform: scale(1.06) rotate(-1deg); box-shadow: 0 6px 16px rgba(120, 84, 40, .2); }
}

/* 点赞按钮：心动弹跳 */
.like-btn.liked { animation: heartBeat .45s ease; }
@keyframes heartBeat {
  0% { transform: scale(1); } 30% { transform: scale(1.18) rotate(-4deg); }
  60% { transform: scale(.94); } 100% { transform: scale(1); }
}

/* 汇总条：浮起玻璃质感升级 */
.summary-bar {
  border-radius: 20px 20px 0 0;
  background: rgba(255,255,255,.9);
  box-shadow: 0 -8px 30px rgba(120, 84, 40, .16), 0 -1px 0 rgba(255,255,255,.8) inset;
}
.summary-bar::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 4px; border-radius: 2px; background: #e3d5bf;
}

/* 弹窗：顶部渐变描边装饰 */
.modal {
  box-shadow: 0 -14px 44px rgba(43, 33, 24, .22);
}
.modal::before { background: linear-gradient(90deg, transparent, #d8c5a8, transparent); }

/* 标签页切换：内容淡入 */
main { animation: fadeSwap .25s ease both; }
@keyframes fadeSwap { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* 材料行：选中数量角标动效 */
.mat-row.active .qty-box { box-shadow: 0 0 0 2px rgba(7,193,96,.18); border-radius: 10px; }

/* 顶部导航：流光扫过 */
.app-header {
  background: linear-gradient(120deg, #c08a4e, #b5773a 40%, #8a5a2b 80%, #c08a4e);
  background-size: 220% 100%;
  animation: heroShine 9s linear infinite;
}
@keyframes heroShine { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }

/* DIY 汇总条：液体容量显示（接近满杯橙色、满杯红色） */
.ml-total { font-size: 13px; color: var(--text-2); }
.ml-total.near { color: #e67e22; }
.ml-total.full { color: #e8433e; }

/* ================= 页脚：ICP 备案号（《非经营性互联网信息服务备案管理办法》要求首页底部标明） ================= */
.site-footer {
  margin-top: 24px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  line-height: 2;
  color: var(--text-2);
}
.site-footer a {
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px dotted rgba(156, 139, 120, .55);
  transition: color .2s, border-color .2s;
}
.site-footer a:hover { color: var(--green); border-bottom-color: var(--green); }
.site-footer span { display: block; opacity: .85; }

/* ================================================================
   v6：商家提示公告条（DIY 页顶部）+ 细节再打磨
   ================================================================ */
.notice-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, #fff4e3, #ffe8cc);
  border: 1px solid #f5d9a8; border-radius: 15px;
  box-shadow: 0 3px 12px rgba(217, 145, 47, .12);
  position: relative; overflow: hidden;
}
.notice-bar::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  background-size: 220% 100%; animation: noticeShine 4.5s linear infinite;
}
@keyframes noticeShine { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }
.notice-icon {
  font-size: 19px; flex-shrink: 0;
  animation: megaphone 2.4s ease-in-out infinite;
}
@keyframes megaphone {
  0%, 100% { transform: rotate(0) scale(1); }
  8% { transform: rotate(-12deg) scale(1.08); }
  16% { transform: rotate(9deg) scale(1.05); }
  24% { transform: rotate(0) scale(1); }
}
.notice-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.notice-text {
  display: inline-block; font-size: 13px; font-weight: 600; color: #92570f;
  line-height: 1.7; padding-left: 100%;
  animation: noticeRoll 14s linear infinite;
}
@keyframes noticeRoll { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 商家后台：顾客提示编辑框 */
.notice-textarea {
  width: 100%; box-sizing: border-box; min-height: 110px;
  padding: 12px 14px; font-size: 13.5px; line-height: 1.7;
  font-family: inherit; color: var(--text-1);
  background: linear-gradient(135deg, #fffdf7, #fff8ea);
  border: 1.5px solid #ecd9b4; border-radius: 14px;
  resize: vertical; outline: none; transition: border-color .2s;
}
.notice-textarea:focus { border-color: var(--gold); }
.notice-toggle { font-size: 12px; padding: 7px 12px; border-radius: 999px; }

/* 触屏按压反馈：卡片/按钮轻按回弹 */
@media (hover: none) {
  .card:active { transform: scale(.985); transition: transform .12s; }
  .like-btn:active { transform: scale(.9); }
  .btn:active { transform: scale(.96); }
}
.like-btn { transition: all .18s; }

/* ================================================================
   v7：我的订单 + 口味预估 + 广场排序 + 顾客群引导
   ================================================================ */

/* 我的订单：状态徽章 */
.order-status {
  display: inline-block; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle;
}
.st-pending { background: #fff3e0; color: #c07414; border: 1px solid #f2d9a9; }
.st-paid    { background: #e3efff; color: #1a66d2; border: 1px solid #c0d4f0; animation: stBlink 1.6s ease-in-out infinite; }
.st-done    { background: #e8f8ee; color: #0a8a44; border: 1px solid #bde8cf; }
@keyframes stBlink { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* 排队进度提示 */
.queue-chip {
  margin: 8px 0; padding: 9px 13px;
  background: linear-gradient(135deg, #e3efff, #d3e5ff);
  border: 1px solid #c0d4f0; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: #1a52a8; line-height: 1.6;
}

/* 配方卡片：口味标签 */
.taste-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 7px 0 2px; }
.t-tag {
  font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; line-height: 1.5;
}
.t-sweet { background: #fdeef2; color: #c0455e; border: 1px solid #f4cdd6; }
.t-tea   { background: #eaf6ec; color: #2f7d3e; border: 1px solid #c8e6cd; }

/* DIY 汇总条：实时口味行 */
.taste-live { font-size: 12px; color: var(--text-2); margin-top: 4px; letter-spacing: .3px; }

/* 配方广场：排序胶囊 */
.sort-chips { display: flex; gap: 8px; margin-bottom: 10px; }
.sort-chip {
  font-size: 12.5px; font-weight: 700; padding: 7px 16px;
  border-radius: 999px; border: 1.5px solid #e8dcc8;
  background: #fffdf8; color: var(--text-2); cursor: pointer; transition: all .18s;
}
.sort-chip.on {
  background: linear-gradient(135deg, #c08a4e, #b5773a);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 12px rgba(181, 119, 58, .3);
}

/* ===== v9：材料备注 + 细节打磨 ===== */

/* 顾客端 DIY：材料备注胶囊（商家在后台写的，顾客可见） */
.mat-note {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #8a5a00;
  background: linear-gradient(135deg, #fff8e8, #fdf0d5);
  border: 1px dashed #e8c98a;
  border-radius: 10px;
  padding: 4px 10px;
  line-height: 1.5;
  animation: noteIn .25s ease;
}
@keyframes noteIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: none; } }

/* 商家后台：材料列表备注行 */
.mat-remark {
  margin-top: 5px;
  font-size: 12px;
  color: #8a5a00;
  background: linear-gradient(135deg, #fff8e8, #fdf0d5);
  border-left: 3px solid #e8c98a;
  border-radius: 8px;
  padding: 5px 10px;
  width: fit-content;
  max-width: 100%;
}

/* 后台表单备注输入框统一风格 */
#f-remark {
  width: 100%; box-sizing: border-box;
  padding: 9px 12px; font-size: 13px; outline: none;
  border: 1.5px solid #ddd; border-radius: 10px;
  transition: border-color .18s, box-shadow .18s;
  background: #fffdf8;
}
#f-remark:focus { border-color: #c08a4e; box-shadow: 0 0 0 3px rgba(192,138,78,.12); }

/* 后台材料卡：悬停微抬升 + 按钮呼吸感 */
.mat-row { transition: border-color .2s, box-shadow .2s, transform .15s; }
.mat-row:hover { box-shadow: 0 4px 14px rgba(0,0,0,.06); border-color: #d9c9a8; }
.mini-btn { transition: transform .12s, opacity .12s; }
.mini-btn:active { transform: scale(.94); }

/* ================================================================
   v10：小程序配方墙（商家挑选上架）
   ================================================================ */
.wall-hint {
  background: linear-gradient(135deg, #fff9ee, #fdf3e2);
  border: 1px dashed #e6cf9e; border-radius: 12px;
  padding: 10px 12px; margin: 0 0 12px;
  font-size: 12px; color: #8a6d4b; line-height: 1.6;
}
.wall-hint b { color: #b5773a; font-size: 14px; }
.wall-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; vertical-align: middle;
  color: #fff; background: linear-gradient(135deg, #e8b96a, #c08a4e);
  box-shadow: 0 2px 6px rgba(192,138,78,.3);
}
.mini-btn.wall-off { background: #fff4dd; color: #b45309; }
.mini-btn.wall-on { background: #e2f9ec; color: #058b4c; }
