* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #222; font-size: 15px; }
.header { background: #2b7de9; color: #fff; padding: 14px 16px; position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; }
.header .title { font-size: 17px; font-weight: 600; }
.header .sub { font-size: 12px; opacity: .85; }
.header a, .header button { color: #fff; background: rgba(255,255,255,.15); border: none; padding: 6px 12px; border-radius: 6px; font-size: 13px; cursor: pointer; text-decoration: none; }
.container { max-width: 560px; margin: 0 auto; padding: 12px; }
.card { background: #fff; border-radius: 10px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.btn { display: block; width: 100%; background: #2b7de9; color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.btn:disabled { background: #b8cbe4; }
.btn.secondary { background: #f0f2f5; color: #333; }
.btn.warn { background: #e74c3c; }
.btn.small { display: inline-block; width: auto; padding: 7px 14px; font-size: 14px; }
.row { display: flex; gap: 8px; }
.row > * { flex: 1; }
label { display: block; font-size: 13px; color: #666; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; background: #fff; }
textarea { min-height: 70px; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.menu-item:last-child { border-bottom: none; }
.menu-item .price { color: #e74c3c; font-weight: 600; }
.badge { display: inline-block; background: #eef4ff; color: #2b7de9; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag.green { background: #e8f8ee; color: #27ae60; }
.tag.orange { background: #fff3e0; color: #e67e22; }
.tag.gray { background: #f0f0f0; color: #888; }
.list-item { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.list-item:last-child { border-bottom: none; }
.muted { color: #999; font-size: 13px; }
.center { text-align: center; }
.mt { margin-top: 10px; }
.tabs { display: flex; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.tabs .tab { flex: 1; text-align: center; padding: 12px; font-size: 14px; color: #666; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs .tab.active { color: #2b7de9; border-bottom-color: #2b7de9; font-weight: 600; }
.countdown { color: #e67e22; font-weight: 600; }
.entrance { background: #fff; border-radius: 12px; padding: 20px 16px; margin-bottom: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); cursor: pointer; }
.entrance .ico { font-size: 30px; }
.entrance .name { font-size: 17px; font-weight: 600; margin: 8px 0 4px; }
.entrance .desc { font-size: 13px; color: #999; }
.toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); background: rgba(0,0,0,.8); color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; z-index: 999; display: none; }
.hidden { display: none; }
.marquee { overflow: hidden; white-space: nowrap; background: #fffbe6; border: 1px solid #ffe08a; border-radius: 6px; padding: 10px 0; }
.marquee-track { display: inline-block; padding-left: 100%; animation: marquee-scroll 22s linear infinite; font-size: 14px; color: #ad6800; }
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.menu-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #f0f2f5; }
.menu-main { flex: 1; min-width: 0; }
.menu-name { font-size: 15px; }
.qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.qty-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #ddd; background: #fff; color: #2b7de9; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.qty-input { width: 44px; padding: 5px 4px; text-align: center; font-size: 15px; }
.cart-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cart-table th, .cart-table td { padding: 6px 4px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.cart-table th { color: #999; font-weight: 500; font-size: 13px; }
.cart-total { text-align: right; font-weight: 600; margin-top: 8px; font-size: 15px; }
.menu-row { border: 1px solid #eee; border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fafbfc; }
.menu-row-top { display: flex; gap: 8px; }
.menu-row-bottom { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.m-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: #f0f2f5; }
.m-upload { margin: 0; }
.m-del { margin-left: auto; }
