/* ==========================================================================
   干饭魔法书 · 可点击原型
   按小程序 WXSS（750rpx 设计稿）等比还原到 340px 手机屏
   逐屏对应 pages/index/index.wxml：首页 / 详情 / 魔法盲盒 / 营养助手 / 我的
   / 菜品库 / 我的收藏 / 干饭日历 / 历史推荐 / 魔法等级 / 设置 / 反馈 / 数据 / 引导
   ========================================================================== */

.phone-screen { font-size: 14px; }

/* 屏幕容器 */
.gf-screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  background:
    radial-gradient(circle at 100% 0, rgba(234, 173, 157, 0.22), transparent 30%),
    radial-gradient(circle at 0 28%, rgba(211, 226, 217, 0.44), transparent 30%),
    linear-gradient(180deg, #f3f0eb 0%, #ebe8e2 56%, #dfdcd5 100%);
  color: #27312f;
  padding-bottom: 62px;
  scrollbar-width: none;
}
.gf-screen::-webkit-scrollbar { width: 0; height: 0; }
.gf-screen.is-active { display: block; }

.gf-pad { padding: 0 11px; }
.gf-bottom { height: 18px; }
.gf-arrow { color: #b0b6b2; font-size: 14px; flex: none; }

/* ---------- 通用元素 ---------- */
.gf-kicker {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #b95751;
}
.gf-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 17px 0 9px;
}
.gf-sechead h4 { margin: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.gf-sechead h4::before {
  content: "";
  display: inline-block;
  width: 12px; height: 2px;
  background: #1d1d1f;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: 4px;
}
.gf-sechead span { font-size: 11px; color: #c3655e; font-weight: 700; }

.gf-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gf-img-fallback { background: linear-gradient(135deg, #3b2327, #7f4b43); }

/* 通用按钮（小程序 .btn / .gf-btn-pri / .gf-btn-sec） */
.gf-btn-pri, .gf-btn-sec {
  padding: 10px 12px; border-radius: 11px; border: none;
  font-size: 12px; font-weight: 800; font-family: inherit;
  cursor: pointer; transition: transform .16s;
}
.gf-btn-pri { background: linear-gradient(135deg, #33342f, #1d1d1f); color: #fff8f2; box-shadow: 0 8px 20px rgba(29, 29, 31, .24); }
.gf-btn-sec { background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .95); color: #2b3532; }
.gf-btn-pri:active, .gf-btn-sec:active { transform: scale(.97); }
.gf-btn-block { display: block; width: 100%; }

/* ---------- 首页 ---------- */
.gf-hero {
  position: relative;
  min-height: 214px;
  padding: 22px 15px 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(19, 25, 22, 0.1), rgba(19, 25, 22, 0.6)), #687166;
  border-radius: 0 0 16px 16px;
}
.gf-hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 21, 0.52), rgba(17, 24, 21, 0.06) 70%, rgba(17, 24, 21, 0.2)),
    linear-gradient(180deg, rgba(17, 24, 21, 0.04) 0%, rgba(17, 24, 21, 0.28) 58%, rgba(17, 24, 21, 0.46) 100%);
}
.gf-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 42px;
  background: linear-gradient(180deg, rgba(235, 232, 226, 0), rgba(235, 232, 226, 0.34) 54%, #ebe8e2 100%);
}
.gf-hero-top {
  position: relative; z-index: 1;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px;
}
.gf-brand { color: #fffaf5; font-size: 22px; font-weight: 800; margin-top: 3px; letter-spacing: -0.01em; }
.gf-greet { color: rgba(255, 250, 245, 0.82); font-size: 12px; margin-top: 3px; }
.gf-note {
  flex: none;
  padding: 5px 9px;
  font-size: 10px; font-weight: 700;
  color: #fff5e9;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(9px);
}
.gf-search {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  height: 35px; margin-top: 14px; padding: 0 10px;
  background: rgba(247, 244, 238, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.56), 0 8px 17px rgba(20, 25, 23, 0.16);
  backdrop-filter: blur(13px) saturate(125%);
}
.gf-search span { color: #dd726b; font-size: 17px; margin-right: 7px; line-height: 1; }
.gf-search input {
  flex: 1; border: none; background: none; outline: none;
  color: #fffaf5; font-size: 12px; font-family: inherit;
}
.gf-search input::placeholder { color: rgba(255, 250, 245, 0.74); }

.gf-body { margin-top: -12px; position: relative; z-index: 2; padding: 0 11px; }

/* 分类卡 */
.gf-cats { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gf-cats::-webkit-scrollbar { display: none; }
.gf-cat {
  position: relative;
  flex: none;
  width: 128px;
  min-height: 52px;
  padding: 9px 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)), rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(56, 64, 60, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 24px rgba(47, 53, 49, 0.1);
  backdrop-filter: blur(14px) saturate(125%);
  cursor: pointer;
  transition: transform 0.16s, box-shadow 0.16s;
}
.gf-cat:active { transform: scale(0.97); }
.gf-cat.is-on {
  border-color: rgba(29, 29, 31, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 8px 16px rgba(47, 53, 49, 0.14);
}
.gf-cat b { display: block; font-size: 13px; font-weight: 800; }
.gf-cat small { display: block; margin-top: 3px; color: #68736e; font-size: 10px; line-height: 1.35; }
.gf-cat i {
  position: absolute; top: 7px; right: 8px;
  font-style: normal; font-size: 10px; font-weight: 800;
  color: rgba(39, 49, 47, 0.42);
}

/* 今日推荐 */
.gf-featured {
  position: relative;
  height: 150px;
  overflow: hidden;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: #5c343c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 9px 19px rgba(47, 53, 49, 0.16);
  cursor: pointer;
}
.gf-featured:active { transform: scale(0.98); }
.gf-featured .gf-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 10, 0.88), rgba(8, 10, 10, 0.08) 72%), linear-gradient(90deg, rgba(8, 10, 10, 0.22), transparent 60%);
}
.gf-featured-copy { position: absolute; left: 12px; right: 12px; bottom: 11px; color: #f8f5f1; }
.gf-featured-copy b { display: block; font-size: 17px; font-weight: 800; }
.gf-featured-copy small { display: block; margin-top: 3px; font-size: 11px; color: rgba(248, 245, 241, 0.84); }
.gf-featured-meta { display: flex; gap: 9px; margin-top: 7px; color: #ffd07b; font-size: 10.5px; }

/* 魔法横幅 */
.gf-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  margin-top: 12px; padding: 12px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.3)), rgba(240, 204, 190, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 23px rgba(47, 53, 49, 0.1);
  backdrop-filter: blur(14px) saturate(125%);
  cursor: pointer;
}
.gf-banner:active { transform: scale(0.98); }
.gf-banner b { display: block; font-size: 14px; font-weight: 800; }
.gf-banner small { display: block; margin-top: 3px; color: #68736e; font-size: 11px; line-height: 1.45; }
.gf-banner-btn {
  flex: none; padding: 6px 9px; border-radius: 8px;
  font-size: 12px; font-weight: 800; color: #2b3532;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.32)), linear-gradient(135deg, #f7dfbd, #e5b38a);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 6px 13px rgba(47, 53, 49, 0.14);
}

/* 菜谱卡 */
.gf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.gf-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px rgba(47, 53, 49, 0.09);
  cursor: pointer;
  transition: transform 0.16s;
}
.gf-card:active { transform: scale(0.97); }
.gf-card-cover { position: relative; height: 86px; background: #3b2327; }
.gf-card-cover .gf-fav {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  font-size: 12px; color: #b95751; line-height: 1;
}
.gf-card-cover .gf-fav.is-on { background: rgba(195, 101, 94, 0.94); color: #fff5e9; }
.gf-card-body { padding: 8px 9px 10px; }
.gf-card-body b { display: block; font-size: 12px; font-weight: 700; line-height: 1.35; }
.gf-card-meta { margin-top: 4px; font-size: 10px; color: #68736e; }
.gf-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.gf-tag {
  font-size: 9.5px; padding: 2px 6px; border-radius: 999px;
  background: rgba(211, 226, 217, 0.62); color: #4f5b56; font-weight: 600;
}
.gf-empty { text-align: center; padding: 30px 10px; color: #68736e; font-size: 12px; }
.gf-more {
  margin-top: 10px; padding: 10px; border-radius: 11px; text-align: center;
  font-size: 11.5px; font-weight: 700; color: #4f5b56; cursor: pointer;
  background: rgba(255, 255, 255, 0.6); border: 1px dashed rgba(39, 49, 47, 0.16);
}

/* ---------- 二级页头部（菜谱详情之外的子页面） ---------- */
.gf-subhead {
  position: sticky; top: 0; z-index: 12;
  display: flex; align-items: center; gap: 10px;
  padding: 40px 11px 10px;
  background: linear-gradient(180deg, rgba(243, 240, 235, 0.98) 62%, rgba(243, 240, 235, 0.72));
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(39, 49, 47, 0.07);
}
.gf-subhead-copy { flex: 1; min-width: 0; }
.gf-subhead-copy b { display: block; font-size: 15px; font-weight: 800; }
.gf-subhead-copy span { display: block; font-size: 10.5px; color: #8b938f; margin-top: 2px; }
.gf-subhead .gf-back {
  position: static; width: 26px; height: 26px; flex: none;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: #2b3532; font-size: 15px; border-radius: 50%; cursor: pointer;
}

/* ---------- 菜谱详情 ---------- */
.gf-detail-cover { position: relative; height: 190px; background: #3b2327; }
.gf-detail-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 10, 10, 0.82), rgba(8, 10, 10, 0.05) 62%);
}
.gf-back {
  position: absolute; top: 40px; left: 12px; z-index: 3;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  color: #fffaf5; font-size: 15px;
  cursor: pointer;
}
.gf-fav-btn {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  padding: 6px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; color: #fff5e9;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  cursor: pointer;
}
.gf-fav-btn.is-on { background: rgba(195, 101, 94, 0.9); border-color: rgba(255, 255, 255, 0.8); }

.gf-detail-body { padding: 14px 14px 0; }
.gf-eyebrow { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: #c58f46; }
.gf-title { font-size: 21px; font-weight: 800; margin-top: 5px; letter-spacing: -0.01em; line-height: 1.25; }
.gf-subtitle { font-size: 12px; color: #68736e; margin-top: 5px; line-height: 1.6; }
.gf-dtags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.gf-dtag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.78); border: 1px solid rgba(255, 255, 255, 0.9);
  color: #4f5b56; font-weight: 600;
}
.gf-dtag.is-mode { background: rgba(232, 173, 157, 0.28); color: #a84f49; border-color: transparent; }

.gf-nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.gf-nutri > div {
  padding: 10px 4px; border-radius: 11px; text-align: center;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(47, 53, 49, 0.06);
}
.gf-nutri b { display: block; font-size: 15px; font-weight: 800; }
.gf-nutri b em { font-style: normal; font-size: 9px; font-weight: 600; color: #8b938f; margin-left: 1px; }
.gf-nutri span { display: block; font-size: 9.5px; color: #8b938f; margin-top: 2px; }
.gf-nutri-extra {
  margin-top: 8px; padding: 9px 11px; border-radius: 10px;
  background: rgba(211, 226, 217, 0.4);
  font-size: 10.5px; color: #4f5b56; line-height: 1.6;
}

.gf-ing-list { display: flex; flex-direction: column; gap: 6px; }
.gf-ing {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.86);
  cursor: pointer; font-size: 12px;
}
.gf-ing.is-on { background: rgba(211, 226, 217, 0.46); }
.gf-ing.is-on .gf-ing-name { text-decoration: line-through; color: #8b938f; }
.gf-check {
  width: 15px; height: 15px; border-radius: 5px; flex: none;
  border: 1px solid rgba(39, 49, 47, 0.24);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; background: rgba(255, 255, 255, 0.7);
}
.gf-ing.is-on .gf-check { background: #1d1d1f; border-color: #1d1d1f; }
.gf-ing-name { flex: 1; }
.gf-ing-amt { color: #68736e; font-size: 11px; flex: none; }

.gf-step { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(39, 49, 47, 0.12); }
.gf-step:last-child { border-bottom: none; }
.gf-step-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #f7dfbd, #e5b38a);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: #2b3532;
}
.gf-step b { display: block; font-size: 12.5px; font-weight: 700; }
.gf-step p { margin: 4px 0 0; font-size: 11.5px; color: #68736e; line-height: 1.65; }

.gf-notice {
  margin-top: 14px; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.86);
}
.gf-notice b { display: block; font-size: 11.5px; font-weight: 800; color: #c58f46; margin-bottom: 6px; }
.gf-notice div { font-size: 11.5px; color: #68736e; line-height: 1.7; }

.gf-actionbar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; gap: 8px; padding: 10px 14px 14px;
  margin-top: 16px;
  background: linear-gradient(180deg, rgba(235, 232, 226, 0), rgba(235, 232, 226, 0.94) 40%);
  backdrop-filter: blur(10px);
}
.gf-actionbar button {
  flex: 1; padding: 12px; border-radius: 13px;
  font-size: 13px; font-weight: 800; font-family: inherit;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 18px rgba(47, 53, 49, 0.1);
  color: #2b3532; cursor: pointer;
}
.gf-actionbar button.gf-primary {
  flex: 1.5;
  background: linear-gradient(135deg, #33342f, #1d1d1f);
  color: #fff8f2; border-color: transparent;
  box-shadow: 0 12px 26px rgba(29, 29, 31, 0.28);
}
.gf-actionbar button.is-done {
  background: linear-gradient(135deg, #9fb3a9, #7f9a8e);
  color: #fff;
}

/* ---------- 魔法盲盒 ---------- */
.gf-ritual-hero {
  position: relative; height: 156px; overflow: hidden;
  padding: 46px 15px 20px;
  background: linear-gradient(180deg, rgba(19, 25, 22, 0.14), rgba(19, 25, 22, 0.66)), #5c343c;
  border-radius: 0 0 16px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.gf-ritual-hero .gf-kicker { color: #ffd07b; position: relative; z-index: 1; }
.gf-ritual-hero b { position: relative; z-index: 1; color: #fffaf5; font-size: 22px; font-weight: 800; margin-top: 4px; }
.gf-ritual-hero small { position: relative; z-index: 1; color: rgba(255, 250, 245, 0.8); font-size: 11.5px; margin-top: 5px; line-height: 1.55; }

.gf-deck-stage { padding: 14px 14px 0; }
.gf-deck {
  position: relative;
  height: 176px;
  border-radius: 17px;
  overflow: hidden;
  cursor: pointer;
  background: #3b2327;
  box-shadow: 0 16px 34px rgba(47, 53, 49, 0.2);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.gf-deck:active { transform: scale(0.985); }
.gf-deck .gf-shade {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(20, 12, 16, 0.5), rgba(20, 12, 16, 0.72));
}
.gf-deck-main { position: absolute; inset: 0; padding: 14px; display: flex; flex-direction: column; color: #f8f5f1; }
.gf-deck-line { display: flex; justify-content: space-between; font-size: 8.5px; letter-spacing: 0.16em; color: rgba(248, 245, 241, 0.68); font-weight: 700; }
.gf-deck-title { margin-top: auto; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.gf-deck-desc { margin-top: 5px; font-size: 11.5px; color: rgba(248, 245, 241, 0.82); line-height: 1.55; }
.gf-deck-foot {
  margin-top: 11px; padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: #ffd07b;
}
.gf-deck.is-open .gf-deck-title { color: #ffd07b; }
.gf-deck-meta {
  display: flex; justify-content: space-between;
  margin-top: 9px; font-size: 10.5px; color: #68736e;
}

/* 约束筛选（默认折叠） */
.gf-cons {
  margin-top: 14px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}
.gf-cons-head {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 13px; cursor: pointer; user-select: none;
}
.gf-cons-head b { font-size: 12.5px; font-weight: 800; }
.gf-cons-head span { flex: 1; font-size: 10px; color: #8b938f; text-align: right; }
.gf-cons-body { display: none; padding: 4px 13px 13px; border-top: 1px dashed rgba(39, 49, 47, 0.1); }
.gf-cons-body.is-open { display: block; }
.gf-cons-row { margin-top: 10px; }
.gf-cons-row > span { display: block; font-size: 10.5px; font-weight: 700; color: #4f5b56; margin-bottom: 5px; }
.gf-cons-note { margin-top: 10px; font-size: 10px; color: #8b938f; line-height: 1.6; }
.gf-cons-input {
  width: 100%; height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid rgba(39, 49, 47, 0.14);
  background: rgba(255, 255, 255, 0.86);
  font-size: 11.5px; font-family: inherit; color: #27312f; outline: none;
  box-sizing: border-box;
}
.gf-cons-input::placeholder { color: #a5aca8; }
.gf-cons-body .gf-btn-pri { margin-top: 11px; }

.gf-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gf-chip {
  padding: 6px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  color: #4f5b56; cursor: pointer;
  transition: all 0.16s;
}
.gf-chip:active { transform: scale(0.96); }
.gf-chip.is-on {
  background: #1d1d1f; color: #fffaf5; font-weight: 700;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(29, 29, 31, 0.18);
}

/* 结果卡 */
.gf-result {
  margin-top: 14px; padding: 14px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.44));
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(47, 53, 49, 0.1);
  animation: gfPop 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes gfPop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.gf-result-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.gf-result-label { font-size: 9px; font-weight: 800; letter-spacing: 0.12em; color: #c58f46; }
.gf-result-title { font-size: 15px; font-weight: 800; margin-top: 4px; }
.gf-result-sum { font-size: 11px; color: #68736e; margin-top: 4px; line-height: 1.6; }
.gf-result-total { flex: none; text-align: right; }
.gf-result-total b { display: block; font-size: 20px; font-weight: 800; color: #1d1d1f; line-height: 1; }
.gf-result-total span { font-size: 9.5px; color: #8b938f; }
.gf-result-empty { font-size: 12.5px; font-weight: 700; }
.gf-result-empty-sub { font-size: 11px; color: #68736e; margin-top: 6px; }
.gf-result-actions { display: flex; gap: 8px; margin-top: 12px; }
.gf-result-actions button { flex: 1; }

/* 单菜卡（就它了 / 换一张） */
.gf-dish {
  display: flex; gap: 10px;
  margin-top: 9px; padding: 11px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.92);
}
.gf-dish-thumb {
  position: relative; width: 62px; height: 62px; border-radius: 10px;
  overflow: hidden; flex: none; background: #3b2327; cursor: pointer;
}
.gf-dish-copy { flex: 1; min-width: 0; }
.gf-dish-copy b { font-size: 12.5px; font-weight: 800; display: block; cursor: pointer; }
.gf-dish-copy small { display: block; font-size: 10px; color: #68736e; margin-top: 2px; }
.gf-dish-note {
  margin-top: 5px; padding: 4px 8px; border-radius: 8px;
  background: rgba(211, 226, 217, 0.4);
  font-size: 9.5px; color: #4f5b56; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gf-dish-actions { display: flex; gap: 6px; margin-top: 8px; }
.gf-mini {
  padding: 5px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; font-family: inherit;
  color: #2b3532; cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(39, 49, 47, 0.16);
}
.gf-mini.is-pri { background: #1d1d1f; color: #fffaf5; border-color: transparent; }
.gf-mini.is-done { background: rgba(159, 179, 169, 0.9); color: #fff; border-color: transparent; }
.gf-mini:active { transform: scale(0.95); }
.gf-mini-inline { display: inline-block; margin-top: 10px; }

/* ---------- 营养助手 ---------- */
.gf-advisor-hero {
  position: relative; height: 168px; overflow: hidden;
  padding: 44px 15px 20px;
  background: linear-gradient(180deg, rgba(19, 25, 22, 0.18), rgba(19, 25, 22, 0.68)), #687166;
  border-radius: 0 0 16px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.gf-advisor-hero .gf-hero-line { position: relative; z-index: 1; display: flex; justify-content: space-between; font-size: 8.5px; letter-spacing: 0.16em; color: rgba(255, 250, 245, 0.72); font-weight: 700; }
.gf-advisor-hero b { position: relative; z-index: 1; color: #fffaf5; font-size: 22px; font-weight: 800; margin-top: 6px; }
.gf-advisor-hero small { position: relative; z-index: 1; color: rgba(255, 250, 245, 0.82); font-size: 11.5px; margin-top: 4px; }

.gf-daily {
  margin-top: -12px; position: relative; z-index: 2;
  padding: 14px; border-radius: 15px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.5)), rgba(240, 204, 190, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px rgba(47, 53, 49, 0.1);
  cursor: pointer;
}
.gf-daily-top { display: flex; justify-content: space-between; font-size: 8.5px; letter-spacing: 0.14em; color: #c58f46; font-weight: 800; }
.gf-daily b { display: block; font-size: 15.5px; font-weight: 800; margin-top: 8px; }
.gf-daily p { margin: 6px 0 0; font-size: 11.5px; color: #68736e; line-height: 1.65; }
.gf-daily-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 11px; font-size: 10.5px; color: #8b938f; }
.gf-daily-go { color: #c3655e; font-weight: 700; }

/* 意图卡：真机为整宽纵排、带场景图 */
.gf-intents { display: flex; flex-direction: column; gap: 9px; }
.gf-intent {
  position: relative; overflow: hidden;
  min-height: 74px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px; border-radius: 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.16s;
}
.gf-intent:active { transform: scale(0.97); }
.gf-intent-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 18, 17, 0.78) 0%, rgba(14, 18, 17, 0.52) 52%, rgba(14, 18, 17, 0.16) 100%);
}
.gf-intent-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.gf-intent-copy i { font-style: normal; font-size: 8.5px; letter-spacing: 0.14em; font-weight: 800; color: #ffd07b; }
.gf-intent-copy b { display: block; font-size: 13px; font-weight: 800; margin-top: 3px; color: #fffaf5; }
.gf-intent-copy small { display: block; font-size: 10.5px; color: rgba(255, 250, 245, 0.78); margin-top: 3px; line-height: 1.5; }
.gf-intent-go {
  position: relative; z-index: 1; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: #fffaf5;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(8px);
}

.gf-ings { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.gf-ings::-webkit-scrollbar { display: none; }
.gf-ing-chip {
  flex: none; width: 84px; padding: 10px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: transform 0.16s;
}
.gf-ing-chip:active { transform: scale(0.96); }
.gf-ing-chip b { display: block; font-size: 12.5px; font-weight: 800; }
.gf-ing-chip small { display: block; font-size: 10px; color: #68736e; margin-top: 3px; line-height: 1.45; }

.gf-ask { margin-top: 4px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.9); }
.gf-ask-top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 800; color: #4f5b56; }
.gf-ask-top span:last-child { color: #8b938f; font-weight: 600; }
.gf-ask-row { display: flex; gap: 7px; margin-top: 9px; }
.gf-ask-row input {
  flex: 1; height: 34px; padding: 0 11px; border-radius: 9px;
  border: 1px solid rgba(39, 49, 47, 0.14);
  background: rgba(255, 255, 255, 0.86);
  font-size: 11.5px; font-family: inherit; color: #27312f; outline: none;
}
.gf-ask-row input::placeholder { color: #a5aca8; }
.gf-ask-row button {
  flex: none; width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, #33342f, #1d1d1f); color: #fff8f2; font-size: 14px;
  border: none; cursor: pointer;
}

.gf-advice { margin-top: 12px; animation: gfPop 0.42s cubic-bezier(0.22, 1, 0.36, 1); }
.gf-advice-intro { padding: 0 2px 8px; }
.gf-advice-intro i { font-style: normal; font-size: 8.5px; letter-spacing: 0.16em; font-weight: 800; color: #c58f46; }
.gf-advice-intro b { display: block; font-size: 15px; font-weight: 800; margin-top: 4px; }
.gf-advice-card { padding: 12px 13px; border-radius: 13px; margin-bottom: 7px; border: 1px solid rgba(255, 255, 255, 0.9); }
.gf-advice-card h5 { margin: 0 0 7px; font-size: 11.5px; font-weight: 800; }
.gf-advice-card div { font-size: 11.5px; color: #4f5b56; line-height: 1.7; }
.gf-advice-card .gf-method { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(39, 49, 47, 0.14); color: #68736e; font-size: 11px; }
.gf-adv-highlight { background: rgba(255, 208, 123, 0.2); }
.gf-adv-pairing { background: rgba(211, 226, 217, 0.42); }
.gf-adv-caution { background: rgba(232, 173, 157, 0.26); }
.gf-disclaimer {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.72); border: 1px dashed rgba(195, 101, 94, 0.4);
  font-size: 10.5px; color: #8a6a64; line-height: 1.65;
}

/* ---------- 我的 ---------- */
.gf-profile-head {
  display: flex; align-items: center; gap: 12px;
  padding: 46px 15px 16px;
}
.gf-avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: #1d1d1f;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: #f7f4ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(47, 53, 49, 0.2);
}
.gf-profile-main { flex: 1; min-width: 0; }
.gf-nick { font-size: 17px; font-weight: 800; }
.gf-nick i { font-style: normal; font-size: 10px; color: #8b938f; margin-left: 5px; }
.gf-profile-copy { font-size: 11.5px; color: #68736e; margin-top: 4px; }
.gf-level-pill {
  flex: none; padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #2b2c28;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(47, 53, 49, 0.08);
}

.gf-level-card {
  position: relative; overflow: hidden;
  border-radius: 16px; padding: 15px;
  min-height: 118px;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(47, 53, 49, 0.14);
  cursor: pointer;
}
.gf-level-card .gf-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20, 26, 24, 0.62), rgba(20, 26, 24, 0.82)); }
.gf-level-top { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.gf-level-title { color: #fffaf5; font-size: 17px; font-weight: 800; }
.gf-level-copy { color: rgba(255, 250, 245, 0.72); font-size: 10.5px; margin-top: 4px; }
.gf-level-total { color: #ffd07b; font-size: 12px; font-weight: 800; flex: none; }
.gf-level-bar { position: relative; z-index: 1; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.24); overflow: hidden; margin-top: 12px; }
.gf-level-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd07b, #f0a86c); }
.gf-level-meta { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: rgba(255, 250, 245, 0.68); }

.gf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gf-stat {
  padding: 13px 6px; border-radius: 13px; text-align: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(47, 53, 49, 0.06);
}
.gf-stat b { display: block; font-size: 19px; font-weight: 800; }
.gf-stat span { display: block; font-size: 10px; color: #8b938f; margin-top: 3px; }

.gf-achv { margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.gf-achv-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
}
.gf-achv-item.is-on { background: rgba(255, 208, 123, 0.24); border-color: rgba(255, 208, 123, 0.6); }
.gf-achv-copy { flex: 1; min-width: 0; }
.gf-achv-copy b { font-size: 12px; font-weight: 700; }
.gf-achv-copy small { display: block; font-size: 10px; color: #8b938f; margin-top: 2px; }
.gf-achv-bar { flex: none; width: 44px; }
.gf-achv-bar i { display: block; height: 4px; border-radius: 999px; background: rgba(39, 49, 47, 0.12); overflow: hidden; }
.gf-achv-bar i b { display: block; height: 100%; background: linear-gradient(90deg, #ffd07b, #f0a86c); }
.gf-achv-bar span { display: block; font-size: 9px; color: #8b938f; text-align: right; margin-top: 3px; }

.gf-menu-list { display: flex; flex-direction: column; gap: 6px; }
/* 真机「我的内容 / 偏好与数据」：整组一张白卡，行间细分隔线 */
.gf-menu-list.is-group {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px;
  gap: 0;
  overflow: hidden;
}
.gf-menu-list.is-group .gf-menu-row {
  background: none; border: none; border-radius: 0;
  padding: 12px 13px;
}
.gf-menu-list.is-group .gf-menu-row + .gf-menu-row { border-top: 1px solid rgba(39, 49, 47, 0.08); }
.gf-menu-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.88);
  cursor: pointer;
}
.gf-menu-row:active { transform: scale(0.99); }
.gf-menu-row.is-disabled { opacity: 0.5; cursor: default; }
.gf-menu-txt { flex: 1; min-width: 0; }
.gf-menu-txt b { font-size: 12.5px; font-weight: 700; }
.gf-menu-txt small { display: block; font-size: 10.5px; color: #8b938f; margin-top: 2px; }

/* ---------- 菜品库 ---------- */
.gf-lib-search { position: relative; margin-top: 12px; }
.gf-lib-search input {
  width: 100%; height: 36px; padding: 0 32px 0 12px; border-radius: 10px;
  border: 1px solid rgba(39, 49, 47, 0.12);
  background: rgba(255, 255, 255, 0.86);
  font-size: 11.5px; font-family: inherit; color: #27312f; outline: none;
  box-sizing: border-box;
}
.gf-lib-search input::placeholder { color: #a5aca8; }
.gf-lib-clear {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: #8b938f; cursor: pointer;
}
.gf-lib-cats { display: flex; gap: 6px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; scrollbar-width: none; }
.gf-lib-cats::-webkit-scrollbar { display: none; }
.gf-lib-cat {
  flex: none; display: flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: all 0.16s;
}
.gf-lib-cat b { font-size: 11px; font-weight: 700; color: #4f5b56; }
.gf-lib-cat span { font-size: 9.5px; color: #a3aaa6; }
.gf-lib-cat.is-on { background: #1d1d1f; border-color: transparent; box-shadow: 0 8px 18px rgba(29, 29, 31, 0.18); }
.gf-lib-cat.is-on b { color: #fffaf5; }
.gf-lib-cat.is-on span { color: rgba(255, 250, 245, 0.6); }

/* ---------- 干饭日历 ---------- */
.gf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-top: 4px; }
.gf-cal-cell {
  position: relative; aspect-ratio: 1 / 1; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.86);
  font-size: 9.5px; color: #8b938f;
}
.gf-cal-cell.is-on { background: rgba(255, 208, 123, 0.42); border-color: rgba(255, 208, 123, 0.7); color: #6b5320; font-weight: 700; }
.gf-cal-cell.is-today { box-shadow: 0 0 0 1.5px rgba(29, 29, 31, 0.4); }
.gf-cal-cell i { position: absolute; bottom: 2px; right: 3px; font-style: normal; font-size: 7px; color: #a3772a; }
.gf-cal-note { margin-top: 12px; font-size: 10.5px; color: #8b938f; line-height: 1.65; }

/* ---------- 历史推荐 ---------- */
.gf-hist-item {
  padding: 11px 13px; margin-top: 7px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.gf-hist-item b { display: block; font-size: 12.5px; font-weight: 700; }
.gf-hist-item small { display: block; font-size: 10.5px; color: #8b938f; margin-top: 3px; line-height: 1.55; }

/* ---------- 魔法等级 ---------- */
.gf-lv-hero {
  position: relative; overflow: hidden; border-radius: 16px; margin-top: 12px;
  display: flex; align-items: center; gap: 12px; padding: 14px;
  min-height: 104px; border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 30px rgba(47, 53, 49, 0.14);
}
.gf-lv-shade { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20, 26, 24, 0.58), rgba(20, 26, 24, 0.8)); }
.gf-lv-hero-ring {
  position: relative; z-index: 1; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #ffd07b;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 208, 123, 0.7);
}
.gf-lv-hero-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.gf-lv-hero-title { color: #fffaf5; font-size: 16px; font-weight: 800; }
.gf-lv-hero-sub { color: rgba(255, 250, 245, 0.72); font-size: 10px; margin-top: 4px; }
.gf-lv-hero-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); overflow: hidden; margin-top: 9px; }
.gf-lv-hero-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd07b, #f0a86c); }
.gf-lv-hero-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: rgba(255, 250, 245, 0.66); }
.gf-lv-list { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.gf-lv-item {
  position: relative; overflow: hidden; border-radius: 13px;
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  min-height: 62px; border: 1px solid rgba(255, 255, 255, 0.8);
}
.gf-lv-item.is-on { border-color: rgba(255, 208, 123, 0.5); }
.gf-lv-item.is-cur { box-shadow: 0 0 0 1.5px rgba(255, 208, 123, 0.85); }
.gf-lv-badge {
  position: relative; z-index: 1; flex: none;
  padding: 3px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 800; color: #fffaf5;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
}
.gf-lv-main { position: relative; z-index: 1; flex: 1; min-width: 0; }
.gf-lv-row1 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gf-lv-name { font-size: 12.5px; font-weight: 800; color: #fffaf5; }
.gf-lv-state { font-size: 9.5px; color: rgba(255, 250, 245, 0.7); flex: none; }
.gf-lv-req { font-size: 9.5px; color: rgba(255, 250, 245, 0.62); margin-top: 3px; }
.gf-lv-bar { height: 3.5px; border-radius: 999px; background: rgba(255, 255, 255, 0.22); overflow: hidden; margin-top: 6px; }
.gf-lv-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ffd07b, #f0a86c); }
.gf-lv-note { margin-top: 12px; font-size: 10.5px; color: #8b938f; line-height: 1.65; }

/* ---------- 设置 ---------- */
.gf-set-group {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 13px; overflow: hidden;
  display: flex; flex-direction: column;
}
.gf-set-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 13px; cursor: pointer;
}
.gf-set-row + .gf-set-row { border-top: 1px solid rgba(39, 49, 47, 0.08); }
.gf-set-row.is-static { cursor: default; }
.gf-set-dot { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1px solid rgba(39, 49, 47, 0.14); }
.gf-set-dot.a { background: linear-gradient(135deg, #fbf7f0, #e9e2d6); }
.gf-set-dot.b { background: linear-gradient(135deg, #35383a, #14161a); }
.gf-set-check { color: #1d1d1f; font-size: 12px; font-weight: 800; }
.gf-set-val { font-size: 10.5px; color: #8b938f; flex: none; }

/* ---------- 反馈与共创 ---------- */
.gf-fb-form {
  margin-top: 12px; padding: 13px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.gf-fb-row { display: flex; gap: 8px; }
.gf-fb-sel {
  flex: 1; padding: 8px 11px; border-radius: 9px;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(39, 49, 47, 0.12);
  font-size: 11px; color: #4f5b56;
}
.gf-fb-ta, .gf-fb-in {
  display: block; width: 100%; margin-top: 8px; padding: 10px 11px; border-radius: 10px;
  border: 1px solid rgba(39, 49, 47, 0.12);
  background: rgba(255, 255, 255, 0.86);
  font-size: 11.5px; font-family: inherit; color: #27312f; outline: none;
  box-sizing: border-box; resize: none;
}
.gf-fb-ta { height: 74px; line-height: 1.6; }
.gf-fb-ta::placeholder, .gf-fb-in::placeholder { color: #a5aca8; }
.gf-fb-form .gf-btn-pri { margin-top: 10px; }
.gf-fb-item {
  margin-top: 8px; padding: 12px 13px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.gf-fb-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gf-fb-top b { font-size: 12px; font-weight: 800; }
.gf-fb-state { font-size: 9.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; flex: none; }
.gf-fb-state.s-unread { background: rgba(181, 198, 191, 0.5); color: #3f4b46; }
.gf-fb-state.s-reading { background: rgba(255, 208, 123, 0.42); color: #8a6320; }
.gf-fb-state.s-replied { background: rgba(157, 186, 255, 0.36); color: #33508f; }
.gf-fb-state.s-adopted { background: #1d1d1f; color: #ffd07b; }
.gf-fb-state.s-closed { background: rgba(39, 49, 47, 0.12); color: #6b7370; }
.gf-fb-item p { margin: 7px 0 0; font-size: 11.5px; color: #68736e; line-height: 1.65; }
.gf-fb-reply {
  margin-top: 8px; padding: 8px 10px; border-radius: 9px;
  background: rgba(211, 226, 217, 0.44);
  font-size: 11px; color: #4f5b56; line-height: 1.6;
}
.gf-fb-reply b { display: block; font-size: 10px; font-weight: 800; color: #7f9a8e; margin-bottom: 3px; }
.gf-fb-date { display: block; font-size: 9.5px; color: #a3aaa6; margin-top: 7px; }

/* ---------- 数据与隐私 ---------- */
.gf-data-card {
  margin-top: 10px; padding: 13px; border-radius: 13px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.9);
}
.gf-data-card > b { display: block; font-size: 12px; font-weight: 800; }
.gf-data-card p { margin: 7px 0 0; font-size: 11.5px; color: #68736e; line-height: 1.7; }
.gf-data-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

/* ---------- 偏好引导 ---------- */
.gf-guide-top {
  position: relative; height: 176px; overflow: hidden;
  padding: 46px 15px 18px;
  background: linear-gradient(180deg, rgba(19, 25, 22, 0.16), rgba(19, 25, 22, 0.62)), #687166;
  border-radius: 0 0 16px 16px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.gf-guide-top .gf-kicker { position: relative; z-index: 1; color: #ffd07b; }
.gf-guide-top b { position: relative; z-index: 1; color: #fffaf5; font-size: 20px; font-weight: 800; margin-top: 4px; }
.gf-guide-top small { position: relative; z-index: 1; color: rgba(255, 250, 245, 0.8); font-size: 11px; margin-top: 4px; }
.gf-gdots { position: relative; z-index: 1; display: flex; gap: 5px; margin-top: 10px; }
.gf-gdots i { width: 16px; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.32); }
.gf-gdots i.is-on { background: #ffd07b; }
.gf-gopts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.gf-gopt {
  padding: 7px 13px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.92);
  font-size: 11.5px; font-weight: 600; color: #4f5b56;
  transition: all 0.16s;
}
.gf-gopt.is-on { background: #1d1d1f; color: #fffaf5; border-color: transparent; font-weight: 700; box-shadow: 0 12px 28px rgba(29, 29, 31, 0.16); }
.gf-guide-actions { display: flex; gap: 8px; margin-top: 18px; }
.gf-guide-actions .gf-btn-pri { flex: 1.4; }
.gf-guide-actions .gf-btn-sec { flex: 1; }
.gf-guide-note { display: block; margin-top: 12px; font-size: 10px; color: #8b938f; line-height: 1.65; }

/* ---------- 底部 Tab（真机：悬浮半透明圆角条 · 纯文字 · 选中浅墨胶囊） ---------- */
.gf-tabbar {
  position: absolute; left: 9px; right: 9px; bottom: 4px; z-index: 20;
  height: 51px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 10px 32px rgba(29, 29, 31, 0.16);
}
.gf-tab {
  display: flex; align-items: center; justify-content: center;
  margin: 6px 4px; border-radius: 22px;
  font-size: 11px; color: #7d8580; cursor: pointer;
  background: none; border: none; padding: 0; font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.gf-tab svg { display: none; }
.gf-tab.is-on {
  color: #1d1d1f; font-weight: 800;
  background: rgba(29, 29, 31, 0.12);
}

/* ==========================================================================
   深色主题（设置 → 外观主题，真机「仅两种 · 立即生效」）
   ========================================================================== */
.gf-screen.is-dark {
  background:
    radial-gradient(circle at 100% 0, rgba(120, 74, 68, 0.28), transparent 32%),
    radial-gradient(circle at 0 28%, rgba(46, 60, 55, 0.5), transparent 34%),
    linear-gradient(180deg, #1b1c1a 0%, #16170f 0%, #111211 100%);
  color: #ece8e1;
}
.phone-screen.is-dark { background: #111211; }
.phone-screen.is-dark .gf-tabbar { background: rgba(28, 28, 30, 0.78); border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 10px 32px rgba(0, 0, 0, 0.5); }
.phone-screen.is-dark .gf-tab { color: #8f948f; }
.phone-screen.is-dark .gf-tab.is-on { color: #f5f2ec; background: rgba(255, 255, 255, 0.14); }

.gf-screen.is-dark .gf-sechead h4 { color: #f0ece5; }
.gf-screen.is-dark .gf-subhead { background: linear-gradient(180deg, rgba(20, 21, 20, 0.98) 62%, rgba(20, 21, 20, 0.7)); border-bottom-color: rgba(255, 255, 255, 0.08); }
.gf-screen.is-dark .gf-subhead-copy b { color: #f0ece5; }
.gf-screen.is-dark .gf-subhead-copy span { color: #8f948f; }
.gf-screen.is-dark .gf-subhead .gf-back { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.14); color: #ece8e1; }
.gf-screen.is-dark .gf-back { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.28); }

.gf-screen.is-dark .gf-card,
.gf-screen.is-dark .gf-cat,
.gf-screen.is-dark .gf-banner,
.gf-screen.is-dark .gf-notice,
.gf-screen.is-dark .gf-ing,
.gf-screen.is-dark .gf-nutri > div,
.gf-screen.is-dark .gf-nutri-extra,
.gf-screen.is-dark .gf-dtag,
.gf-screen.is-dark .gf-chip,
.gf-screen.is-dark .gf-result,
.gf-screen.is-dark .gf-dish,
.gf-screen.is-dark .gf-menu-list.is-group,
.gf-screen.is-dark .gf-menu-row,
.gf-screen.is-dark .gf-achv-item,
.gf-screen.is-dark .gf-stat,
.gf-screen.is-dark .gf-lib-search input,
.gf-screen.is-dark .gf-lib-cat,
.gf-screen.is-dark .gf-cal-cell,
.gf-screen.is-dark .gf-hist-item,
.gf-screen.is-dark .gf-fb-form,
.gf-screen.is-dark .gf-fb-item,
.gf-screen.is-dark .gf-data-card,
.gf-screen.is-dark .gf-set-group,
.gf-screen.is-dark .gf-ask,
.gf-screen.is-dark .gf-ask-row input,
.gf-screen.is-dark .gf-cons,
.gf-screen.is-dark .gf-cons-input,
.gf-screen.is-dark .gf-ing-chip,
.gf-screen.is-dark .gf-advice-card,
.gf-screen.is-dark .gf-btn-sec,
.gf-screen.is-dark .gf-gopt,
.gf-screen.is-dark .gf-fb-sel,
.gf-screen.is-dark .gf-fb-ta,
.gf-screen.is-dark .gf-fb-in {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e6e2db;
  box-shadow: none;
}
.gf-screen.is-dark .gf-menu-list.is-group .gf-menu-row + .gf-menu-row { border-top-color: rgba(255, 255, 255, 0.08); }
.gf-screen.is-dark .gf-set-row + .gf-set-row { border-top-color: rgba(255, 255, 255, 0.08); }
.gf-screen.is-dark .gf-chip.is-on,
.gf-screen.is-dark .gf-lib-cat.is-on,
.gf-screen.is-dark .gf-gopt.is-on,
.gf-screen.is-dark .gf-mini.is-pri { background: #f2ede5; color: #1b1c1a; border-color: transparent; }
.gf-screen.is-dark .gf-menu-txt b,
.gf-screen.is-dark .gf-card-body b,
.gf-screen.is-dark .gf-dish-copy b,
.gf-screen.is-dark .gf-cat b,
.gf-screen.is-dark .gf-title,
.gf-screen.is-dark .gf-hist-item b { color: #f0ece5; }
.gf-screen.is-dark .gf-menu-txt small,
.gf-screen.is-dark .gf-card-meta,
.gf-screen.is-dark .gf-dish-copy small,
.gf-screen.is-dark .gf-cat small,
.gf-screen.is-dark .gf-subtitle,
.gf-screen.is-dark .gf-hist-item small,
.gf-screen.is-dark .gf-notice div,
.gf-screen.is-dark .gf-result-sum,
.gf-screen.is-dark .gf-cons-note,
.gf-screen.is-dark .gf-lv-note,
.gf-screen.is-dark .gf-cal-note,
.gf-screen.is-dark .gf-guide-note,
.gf-screen.is-dark .gf-data-card p,
.gf-screen.is-dark .gf-fb-item p,
.gf-screen.is-dark .gf-step p,
.gf-screen.is-dark .gf-daily p,
.gf-screen.is-dark .gf-dish-note,
.gf-screen.is-dark .gf-achv-copy small { color: #9ea49f; }
.gf-screen.is-dark .gf-lib-search input::placeholder,
.gf-screen.is-dark .gf-ask-row input::placeholder { color: #6f7570; }
.gf-screen.is-dark .gf-down-note { color: #8f948f; }

/* 小屏适配：屏幕变窄时整体缩一点，保持内容不溢出 */
@media (max-width: 420px) {
  .phone { width: 100%; max-width: 340px; height: 640px; }
  .phone-hero .phone { width: 100%; max-width: 340px; height: 640px; }
}
