/* 向阳学院 · base 模块样式（由 code18.txt 第13-104行拆分） */
/* v3.3 换肤：日出橙为主色（顶栏/底部导航/选中态/按钮），深绿仅作小面积点缀 */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* 隐藏所有滚动条（现代App风格） */
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
* { scrollbar-width: none !important; -ms-overflow-style: none !important; }
html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #fff;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}
:root { --vh: 1vh; }

/* ===== 主页：fixed + inset 四边贴合，微信最稳定 ===== */
#home {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  background: #fff;
  z-index: 1;
}

/* 顶栏：日出橙渐变 + 白字问候 */
/* ===== 页面顶部橙条（v4.93 获客导航/向阳之家/我的 三页统一：等高 + 底部大圆角 + 半透明圆形装饰） ===== */
header { position: relative; overflow: hidden; background: linear-gradient(135deg, #F8A83C, #FC6C3C); color: #fff; padding: 15px 16px 13px; min-height: 76px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 0 0 18px 18px; }
header > div:first-child { position: relative; z-index: 1; flex: 1; min-width: 0; }
header h1 { font-size: 17px; font-size: clamp(16px, 4.6vw, 20px); word-break: break-all; font-weight: 700; color: #fff; margin: 0; }
header p { font-size: 11px; font-size: clamp(10px, 3vw, 12px); color: rgba(255,255,255,.88); margin-top: 4px; margin-bottom: 0; }
.header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; position: relative; z-index: 1; }
header::before, .acad-header::before, .me-header::before { content: ''; position: absolute; right: -30px; top: -38px; width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.15); pointer-events: none; }
header::after, .acad-header::after, .me-header::after { content: ''; position: absolute; right: 52px; bottom: -36px; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.10); pointer-events: none; }

/* ===== 成长值（白玻璃胶囊 · 橙底上） ===== */
.growth-stats { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.45); border-radius: 16px; padding: 6px 10px; font-size: 11px; font-size: clamp(10px, 2.8vw, 12px); cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; color: #fff; }
.growth-stats:active { background: rgba(255,255,255,.38); }
.growth-stats b { font-weight: 700; color: #fff; }
.growth-panel-wrap { flex-shrink: 0; display: none; padding: 10px 12px 0; }
.growth-panel-wrap.show { display: block; }
.growth-panel { background: #fff; border-radius: 14px; padding: 12px 14px; border: 1px solid #EFEFEF; }
.growth-panel .gp-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.growth-panel .gp-tabs div { flex: 1; text-align: center; padding: 7px 4px; border-radius: 8px; background: #FFF1E6; color: #C2571F; font-size: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.growth-panel .gp-tabs div.active { background: linear-gradient(135deg, #F8A83C, #FC6C3C); color: #fff; font-weight: 700; }
.bar-chart { display: flex; align-items: flex-end; gap: 4px; height: 130px; padding: 0 2px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar-col .bar { width: 70%; max-width: 26px; background: linear-gradient(to top, #F8A83C, #FC6C3C); border-radius: 4px 4px 0 0; min-height: 2px; transition: height .3s; }
.bar-col .val { font-size: 10px; color: #7A7268; margin-bottom: 3px; font-weight: 700; }
.bar-col .lbl { font-size: 10px; color: #A89C90; margin-top: 4px; white-space: nowrap; }
.gp-summary { font-size: 11px; color: #A89C90; text-align: center; margin-top: 8px; }

/* ===== 搜索框（浅灰底全圆角） ===== */
.search-wrap { padding: 10px 12px 0; flex-shrink: 0; }
.search-box { display: flex; align-items: center; gap: 8px; background: #F5F6F7; border-radius: 24px; padding: 10px 16px; }
.search-box .icon { font-size: 15px; flex-shrink: 0; color: #9AA3A0; }
.search-box input { flex: 1; border: none; outline: none; font-size: 16px; min-width: 0; background: transparent; color: #241E18; }
.search-box input::placeholder { color: #C4B8AC; }
.search-clear { display: none; border: none; background: #E7E9E9; color: #8A9691; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; cursor: pointer; flex-shrink: 0; line-height: 1; }

/* 视图切换分段（橙=主色） */
.switch-wrap { display: flex; align-items: center; gap: 8px; padding: 10px 12px 4px; flex-shrink: 0; }
.switch-wrap label { font-size: 12px; color: #7A7268; white-space: nowrap; flex-shrink: 0; }
.seg { flex: 1; display: flex; background: #F5F6F7; border-radius: 12px; padding: 3px; min-width: 0; }
.seg div { flex: 1; text-align: center; padding: 8px 4px; border-radius: 10px; cursor: pointer; -webkit-tap-highlight-color: transparent; font-size: 12px; font-size: clamp(11px, 3.2vw, 13px); color: #6B7570; white-space: normal; word-break: break-all; line-height: 1.3; display: flex; align-items: center; justify-content: center; min-height: 34px; }
.seg div.active { background: linear-gradient(135deg, #F8A83C, #FC6C3C); color: #fff; font-weight: 700; }
.seg div.seg-agent.active { color: #fff; }

/* 分类导航：胶囊标签（未选中=灰底灰字无框无阴影，选中=橙渐变） */
.tabs, .ptabs, .atabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 12px 4px; flex-shrink: 0; }
.tabs::-webkit-scrollbar, .ptabs::-webkit-scrollbar, .atabs::-webkit-scrollbar { display: none; }
.tab, .ptab, .atab { flex-shrink: 0; padding: 7px 15px; border-radius: 18px; font-size: 13px; color: #6B7570; background: #F5F6F7; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; white-space: nowrap; }
.tab.active, .ptab.active, .atab.active { background: linear-gradient(135deg, #F8A83C, #FC6C3C); color: #fff; font-weight: 600; }

/* ===== 内容滚动区 ===== */
.content { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 12px 16px; -webkit-overflow-scrolling: touch; }
.card { background: #F5F6F7; border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.card-title { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.4; color: #2A241F; }
.card-title .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
/* 条目行卡（设计稿 Popular trails 列表风：通栏白卡 + 橙色圆点） */
.chip { position: relative; width: 100%; padding: 13px 14px 13px 28px; border-radius: 14px; font-size: 13px; font-size: clamp(12px, 3.4vw, 14px); background: #fff; color: #5A4638; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .12s; word-break: break-all; max-width: 100%; }
.chip::before { content: ''; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #F8A83C, #FC6C3C); }
.chip:active { transform: scale(.97); background: #FFE3D1; }
.chip small { display: block; font-size: 11px; color: #C4A58E; margin-top: 2px; white-space: normal; }

/* Prompt工具卡片 */
.tool-item { display: flex; align-items: center; gap: 10px; background: #F5F6F7; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.tool-avatar { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, #F8A83C, #FC6C3C); display: flex; align-items: center; justify-content: center; font-size: 22px; color:#fff; }
.tool-info { flex: 1; min-width: 0; }
.tool-info b { display: block; font-size: 14px; line-height: 1.35; word-break: break-all; color: #241E18; }
.tool-info span { display: block; font-size: 12px; color: #A89C90; margin-top: 2px; word-break: break-all; }
.tool-btn { border: none; border-radius: 18px; padding: 10px 16px; font-size: 13px; cursor: pointer; color: #fff; background: #FC6C3C; -webkit-tap-highlight-color: transparent; white-space: nowrap; flex-shrink: 0; }
.tool-btn:active { transform: scale(.94); }

/* ===== v4.9 登录页背景图（后台「登录页面配图」配置，自适应手机） ===== */
#loginPage.bgimg { background-size:cover; background-position:center; background-repeat:no-repeat; }
#loginPage.bgimg::before { content:''; position:absolute; left:0; right:0; top:0; bottom:0; background:linear-gradient(180deg, rgba(30,22,14,.30) 0%, rgba(30,22,14,.55) 100%); }
#loginPage.bgimg .login-box { position:relative; z-index:1; box-shadow:0 12px 40px rgba(0,0,0,.25); }

/* ===== v4.9 课程预约弹窗 / 群发通知弹窗 ===== */
#resvMask, #noticeMask, #vitMask { position:fixed; inset:0; background:rgba(20,14,8,.55); z-index:2100; display:none; align-items:center; justify-content:center; padding:26px; }
#resvMask.show, #noticeMask.show, #vitMask.show { display:flex; }
/* v5.5 活力值规则弹窗内容 */
.vit-rules { max-height:46vh; overflow:auto; text-align:left; }
.vr-sec { margin-bottom:12px; }
.vr-t { display:inline-block; font-size:13px; font-weight:700; color:#fff; background:#FC6C3C; border-radius:4px; padding:3px 14px; margin-bottom:7px; }
.vr-t.vr-use { background:#17342A; }
.vit-rules p { font-size:12.5px; color:#4A4238; line-height:1.75; margin:4px 0; }
.resv-box { position:relative; width:100%; max-width:340px; max-height:76vh; background:#fff; border-radius:18px; padding:20px 18px 16px; display:flex; flex-direction:column; }
.resv-x { position:absolute; right:10px; top:10px; width:30px; height:30px; border:none; background:#F5F6F7; border-radius:15px; color:#8a8f9c; font-size:13px; cursor:pointer; line-height:1; }
.resv-head { font-size:17.5px; font-weight:800; color:#D9541F; text-align:center; margin-bottom:12px; }
.resv-body { overflow-y:auto; -webkit-overflow-scrolling:touch; font-size:14px; color:#3A342E; line-height:1.75; white-space:pre-wrap; word-break:break-word; min-height:40px; margin-bottom:14px; }
.resv-btn { border:none; background:linear-gradient(135deg,#FC6C3C,#F8A83C); color:#fff; font-size:15.5px; font-weight:700; border-radius:24px; padding:12px 0; width:100%; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.resv-btn:active { opacity:.88; }
.resv-btn.dis { background:#E7E9EA; color:#9aa0ad; }
.resv-link { color:#FC6C3C; font-size:13.5px; font-weight:600; text-align:center; margin:-4px 0 10px; cursor:pointer; }
