/* 学练岛手机端工作台 · 黏土质感重设计：
   首页 6 大黏土功能块，特色功能内页 9 项，底部三 Tab。桌面端走 workbench-desktop.css，本文件不影响桌面。 */
#workbench-view.workbench-screen {
  --ink: #2B2620;
  --sub: #9C9488;
  --faint: #BDB5A8;
  --line: #EFE9DE;
  --cream: #F7F2E9;
  --shadow: 0 10px 26px rgba(168, 143, 104, .14), 0 2px 8px rgba(168, 143, 104, .08);
  --shadow-sm: 0 4px 14px rgba(168, 143, 104, .12);
  display: block;
  min-height: 100vh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(120% 60% at 85% -5%, rgba(255, 224, 189, .55), transparent 60%),
    radial-gradient(90% 45% at -10% 0%, rgba(214, 234, 255, .5), transparent 55%),
    var(--cream);
}
#workbench-view * { box-sizing: border-box; }
#workbench-view button { font-family: inherit; }

.hx-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部问候区 ===== */
.hx-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) 20px 6px;
}
.hx-greet { flex: 1; min-width: 0; }
.hx-greet-g { display: block; font-size: 13px; color: var(--sub); }
.hx-greet-h { font-size: 21px; margin: 3px 0 0; letter-spacing: .3px; }
.hx-icon-btn {
  width: 42px; height: 42px; flex: 0 0 auto;
  border: none; border-radius: 50%;
  display: grid; place-items: center;
  color: #6f675c;
  background: radial-gradient(circle at 30% 25%, #fff3e0, #f3d6b4);
  box-shadow: var(--shadow-sm);
  position: relative; cursor: pointer;
}
.hx-bell-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #ec6897; color: #fff;
  font-size: 11px; line-height: 18px; font-weight: 700;
}

/* 用户中心锚点（popover 由 user-center.css 控制） */
.hx-user-anchor { position: relative; flex: 0 0 auto; }
.hx-user-trigger {
  width: 42px; height: 42px; padding: 0;
  border: none; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff3e0, #f3d6b4);
  box-shadow: var(--shadow-sm); cursor: pointer;
  display: grid; place-items: center;
}
.hx-user-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: #a88a6b;
}

/* ===== 滚动区 ===== */
.hx-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 20px calc(env(safe-area-inset-bottom, 0px) + 96px);
}
.hx-view { display: none; }
.hx-view.is-active { display: block; }

/* ===== Hero ===== */
.hx-hero {
  position: relative;
  border-radius: 26px;
  padding: 12px 16px 14px;
  margin-top: 8px;
  color: #5a4630;
  background: linear-gradient(150deg, #FFF6E8 0%, #FCE6D2 55%, #F7D9C8 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.hx-hero-tag {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  background: rgba(255, 255, 255, .72); color: #c47b3e;
  padding: 5px 11px; border-radius: 999px;
}
.hx-hero-owl {
  position: absolute; right: 14px; top: 12px;
  width: 86px; height: 86px;
  filter: drop-shadow(0 7px 9px rgba(150, 100, 50, .22));
}
.hx-hero h3 { margin: 8px 0 4px; font-size: 18px; }
.hx-hero p { margin: 0; font-size: 12px; line-height: 1.5; color: #9a7a5c; max-width: 200px; }
.hx-hero-stats { display: flex; gap: 10px; margin-top: 12px; }
.hx-hero-s {
  flex: 1; text-align: center;
  background: rgba(255, 255, 255, .72);
  border-radius: 14px; padding: 6px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-hero-s b { display: block; font-size: 17px; }
.hx-hero-s span { font-size: 11px; color: #a88a6b; }

/* ===== 区块标题 ===== */
.hx-sec-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 2px 8px;
}
.hx-sec-title h4 {
  margin: 0; font-size: 17px;
  display: flex; align-items: center; gap: 8px;
}
.hx-sec-title h4::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #F2B45C, #EC8E4E);
}
.hx-sec-title span { font-size: 12px; color: var(--sub); }

/* ===== 首页功能卡 ===== */
.hx-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-fcard {
  position: relative; overflow: hidden;
  border: none; border-radius: 22px;
  min-height: 118px; padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  text-align: left; cursor: pointer;
  background: linear-gradient(165deg, #fff 0%, var(--tint) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: transform .18s ease;
}
.hx-fcard:active { transform: scale(.97); }
.hx-fblob {
  position: absolute; right: -26px; top: -26px;
  width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle, var(--tint), transparent 70%);
}
.hx-fico {
  width: 52px; height: 52px; position: relative;
  filter: drop-shadow(0 5px 6px rgba(120, 100, 70, .18));
}
.hx-ft { position: relative; }
.hx-ft b { display: block; font-size: 15.5px; }
.hx-ft span {
  display: block; margin-top: 3px;
  font-size: 11px; line-height: 1.45; color: var(--sub);
}
.hx-fgo {
  position: absolute; right: 12px; bottom: 12px;
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-style: normal; color: #fff;
  background: var(--accent);
  box-shadow: 0 4px 9px var(--glow);
}

/* ===== 内页顶部导航 ===== */
.hx-topnav {
  display: flex; align-items: center; gap: 13px;
  padding: 8px 0 14px;
}
.hx-topnav h2 { margin: 0; font-size: 19px; }
.hx-topnav-sub { font-size: 12px; color: var(--sub); margin-top: 2px; }
.hx-back {
  width: 40px; height: 40px; flex: 0 0 auto;
  border: none; border-radius: 14px; background: #fff;
  display: grid; place-items: center; color: #5d564c;
  box-shadow: var(--shadow-sm); cursor: pointer;
}

/* ===== 特色功能网格 ===== */
.hx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hx-scard {
  border: none; background: #fff;
  border-radius: 20px; padding: 14px 8px;
  text-align: center; cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-scard img {
  width: 50px; height: 50px; margin: 0 auto 9px;
  filter: drop-shadow(0 4px 5px rgba(120, 100, 70, .16));
}
.hx-scard-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* ===== 数据页 ===== */
.hx-stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.hx-stat-s {
  background: #fff; border-radius: 20px;
  padding: 14px 6px; text-align: center;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-stat-s b { display: block; font-size: 20px; }
.hx-stat-s span { display: block; margin-top: 5px; font-size: 11px; color: var(--sub); }
.hx-panel {
  background: #fff; border-radius: 22px;
  padding: 16px 18px; margin-top: 14px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.hx-panel-head b { font-size: 16px; }
.hx-link {
  border: none; background: none; padding: 0;
  font-size: 12px; color: #5B8DEF; cursor: pointer;
}
.hx-rec-list { min-height: 40px; }
.hx-rec-loading, .hx-rec-empty {
  margin: 0; padding: 8px 0;
  font-size: 12.5px; color: var(--sub);
}
.hx-rec {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.hx-rec:last-child { border-bottom: none; padding-bottom: 0; }
.hx-rec img { width: 40px; height: 40px; filter: drop-shadow(0 3px 4px rgba(120, 100, 70, .15)); }
.hx-rec-if { flex: 1; min-width: 0; }
.hx-rec-if b { display: block; font-size: 14px; }
.hx-rec-if span { font-size: 11.5px; color: var(--sub); }

.hx-wrong { display: flex; align-items: center; gap: 13px; }
.hx-wpin {
  width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 15px; display: grid; place-items: center;
  color: #ec6897;
  background: linear-gradient(150deg, #fff, #fdeef4);
  box-shadow: var(--shadow-sm);
}
.hx-wif { flex: 1; min-width: 0; }
.hx-wif b { font-size: 15px; }
.hx-wif span { display: block; margin-top: 3px; font-size: 12px; color: var(--sub); }
.hx-wbtn {
  border: none; border-radius: 13px;
  padding: 8px 15px; font-size: 12px; font-weight: 600; color: #fff;
  background: #ec6897; cursor: pointer;
  box-shadow: 0 5px 12px rgba(230, 100, 140, .35);
}

/* ===== 我的页 ===== */
.hx-profile {
  display: flex; align-items: center; gap: 14px;
  border-radius: 24px; padding: 18px 18px;
  background: linear-gradient(150deg, #fff, #FDF1E4);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-pav {
  width: 62px; height: 62px; flex: 0 0 auto;
  border-radius: 50%; display: grid; place-items: center;
  color: #a88a6b; font-size: 22px; font-weight: 700;
  background: radial-gradient(circle at 30% 25%, #fff, #f0d6b6);
  box-shadow: var(--shadow-sm);
}
.hx-pinfo { flex: 1; min-width: 0; }
.hx-pinfo b { font-size: 19px; }
.hx-pinfo span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--sub); }
.hx-login {
  border: none; border-radius: 14px;
  padding: 9px 15px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: #fff; background: #F2994A; cursor: pointer;
  box-shadow: 0 6px 13px rgba(230, 140, 60, .4);
}
.hx-menu {
  background: #fff; border-radius: 22px;
  margin-top: 14px; overflow: hidden;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-mrow {
  width: 100%; border: none; background: none;
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px; text-align: left; cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.hx-mrow:last-child { border-bottom: none; }
.hx-mic {
  width: 38px; height: 38px; flex: 0 0 auto;
  border-radius: 13px; display: grid; place-items: center;
  color: #7d7468;
  background: linear-gradient(150deg, #fff, #f5f0e7);
  box-shadow: var(--shadow-sm);
}
.hx-mt { flex: 1; font-size: 14.5px; font-weight: 600; }
.hx-mchev { color: var(--faint); display: flex; }
.hx-mrow[hidden], .hx-menu[hidden] { display: none; }
.hx-mrow-exit .hx-mt { color: #E2607A; }
.hx-mrow-exit .hx-mic { color: #E2607A; background: linear-gradient(150deg, #fff, #fdeef2); }

/* ===== 退出登录确认 ===== */
.hx-confirm {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(38, 30, 24, .42);
  backdrop-filter: blur(3px);
  animation: hx-fade .16s ease;
}
.hx-confirm-box {
  width: min(320px, 100%);
  background: #fff; border-radius: 24px;
  padding: 22px 20px 16px; text-align: center;
  box-shadow: 0 22px 48px rgba(90, 70, 40, .28);
  animation: hx-pop .18s cubic-bezier(.2, .8, .25, 1);
}
.hx-confirm-box b { display: block; font-size: 17px; }
.hx-confirm-box p { margin: 9px 0 18px; font-size: 13px; line-height: 1.6; color: var(--sub); }
.hx-confirm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hx-confirm-btns button {
  border: none; border-radius: 15px; padding: 12px 0;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.hx-confirm-cancel { background: #f2eee6; color: #6f675c; }
.hx-confirm-ok {
  color: #fff; background: linear-gradient(160deg, #F07A96, #E2607A);
  box-shadow: 0 8px 16px rgba(226, 96, 122, .32);
}
@keyframes hx-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hx-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

/* ===== 通知面板 ===== */
.hx-bell-panel {
  position: absolute; top: 60px; right: 16px; z-index: 40;
  width: min(300px, calc(100vw - 32px));
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(120, 100, 70, .25);
}
.hx-bell-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.hx-bell-head b { font-size: 15px; }
.hx-bell-head span { font-size: 12px; color: var(--sub); }
.hx-bell-empty { margin: 6px 0 2px; font-size: 13px; color: var(--sub); }
.hx-bell-item {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.hx-bell-item strong { display: block; font-size: 13.5px; }
.hx-bell-item small { font-size: 12px; color: var(--sub); line-height: 1.5; }

/* ===== 底部 Tabbar ===== */
.hx-tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 30;
  width: min(calc(100% - 24px), 456px);
  height: 62px;
  display: flex; padding: 8px 10px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(120, 100, 70, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.hx-tab {
  flex: 1; border: none; background: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 11px; font-weight: 600;
  color: #B3AA9C; cursor: pointer; position: relative;
}
.hx-tab svg { width: 23px; height: 23px; }
.hx-tab-home.on { color: #E8913A; }
.hx-tab-data.on { color: #5B8DEF; }
.hx-tab-me.on { color: #9B7EF0; }
.hx-tab.on::after {
  content: ""; position: absolute; top: 4px;
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}

/* 特色功能：桌面保持三列；手机端单列竖排行卡（黏土） */
.hx-scard-desc { display: none; }
.hx-scard-chev { display: none; }
@media (max-width: 640px) {
  .workbench-screen.is-sub .hx-top { display: none; }
  .hx-view-feature { padding: 0 0 14px; }
  .hx-view-feature .hx-topnav { padding: 4px 0 14px; gap: 12px; }
  .hx-view-feature .hx-topnav h2 { font-size: 21px; font-weight: 800; color: #2C2318; }
  .hx-view-feature .hx-topnav-sub { font-size: 11.5px; color: #8C7B65; }
  .hx-view-feature .hx-back {
    background: #fff; border: 1.5px solid #F1E5D3; border-radius: 14px; color: #3A3026;
    box-shadow: 0 6px 16px -10px rgba(120, 88, 46, .75), inset 0 -2px 0 rgba(237, 222, 200, .9);
  }
  .hx-view-feature .hx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hx-view-feature .hx-scard {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    min-height: 0; padding: 14px 6px 12px; border: 1.5px solid #F1E5D3; border-radius: 20px;
    background: #fff; text-align: center;
    box-shadow: 0 12px 24px -18px rgba(140, 100, 50, .85), inset 0 -3px 0 rgba(240, 228, 210, .75);
  }
  .hx-view-feature .hx-scard:active { transform: scale(.97); }
  .hx-view-feature .hx-scard img { width: 54px; height: 54px; margin: 0 0 8px; filter: drop-shadow(0 6px 8px rgba(120, 100, 70, .18)); }
  .hx-view-feature .hx-scard-text { display: block; min-width: 0; }
  .hx-view-feature .hx-scard-name { font-size: 13px; font-weight: 800; color: #2C2318; white-space: nowrap; }
  .hx-view-feature .hx-scard-desc, .hx-view-feature .hx-scard-chev { display: none; }

}
