
  :root {
    --primary: #1D4ED8;
    --primary-hover: #1E40AF;
    --primary-soft: #EFF6FF;
    --accent: #0EA5E9;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --bg-page: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-1: #111827;
    --text-2: #4B5563;
    --text-3: #9CA3AF;
    --grad-hero: linear-gradient(180deg, #E3EEFF 0%, #EFF6FF 48%, #F5F7FA 100%);
    --shadow-glow: 0 14px 36px rgba(14, 165, 233, .28);
    --shadow-card: 0 18px 44px rgba(29, 78, 216, .14), 0 2px 8px rgba(16, 24, 40, .04);
    --grad-btn: linear-gradient(135deg, #1D4ED8 0%, #0EA5E9 100%);
    --border: #E5E7EB;
    --white: #FFFFFF;
    --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --kai: "STKaiti", "KaiTi", "楷体", "STFangsong", "FangSong", "仿宋", "SimSun", serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
  *, *::before, *::after { -webkit-tap-highlight-color: transparent; }
  :focus { outline: none; }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
  a, button, div, img, video, li, span { -webkit-tap-highlight-color: transparent; }
  button:active, .more-item:active, .msg-item:active, .contact-row:active { outline: none; }

  /* App 全屏适配：隐藏电脑模拟的手机状态栏文字、边框提示条与重播按钮 */
  .statusbar > span { display: none !important; }
  /* 顶部安全栏：缩小高度，只留一点空隙（原 40px 模拟状态栏改为小留白） */
  .view-main .statusbar,
  .view-chat .statusbar,
  .view-sdetail .statusbar,
  .view-placeholder .statusbar,
  .view-service-landing .statusbar,
  .view-settings .statusbar,
  .view-sub .statusbar { height: 2px; min-height: 2px; }
  .hint { display: none !important; }
  .replay { display: none !important; }

  body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-page);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
  }

  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0B1220;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
  }

  .screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-card);
  }

  /* ===== 视图层（启动 / 登录 / 主框架） ===== */
  .view {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
    z-index: 1;
  }
  .view.active { opacity: 1; pointer-events: auto; z-index: 2; }

  /* ===================== 启动页 ===================== */
  .view-splash {
    background: var(--primary);
    background-image: radial-gradient(120% 90% at 50% 30%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 56%);
    cursor: pointer;
  }
  .view-splash .statusbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 30px 0;
    color: var(--white);
    font-size: 14px; font-weight: 600; letter-spacing: .5px;
    opacity: .9;
  }
  .motto-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .motto {
    display: flex; align-items: flex-start;
    --motto-fs: 22px; --motto-ls: 8px;
    --motto-char: calc(var(--motto-fs) + var(--motto-ls));
    transform: translateY(calc(-4 * var(--motto-char)));
  }
  .motto .col-wrap { display: flex; }
  .motto .col-wrap.left  { margin-right: 18px; }
  .motto .col-wrap.right { margin-left: 18px; transform: translateY(calc(-1 * var(--motto-char))); }
  .motto .col {
    writing-mode: vertical-rl; text-orientation: upright;
    font-family: var(--kai); font-size: var(--motto-fs);
    letter-spacing: var(--motto-ls); line-height: 1;
    color: rgba(255,255,255,.95);
    opacity: 0; transform: translateY(24px);
    animation: rise .9s cubic-bezier(.22,1,.36,1) forwards;
  }
  .motto .col-wrap.left  .col { animation-delay: .2s; }
  .motto .col-wrap.right .col { animation-delay: .05s; }
  .motto .vdivider {
    width: 2px; height: calc(5 * var(--motto-char));
    margin-top: calc(-1 * var(--motto-char));
    background: rgba(255,255,255,.55); border-radius: 2px;
    transform: scaleY(0); transform-origin: center;
    animation: growY .5s cubic-bezier(.22,1,.36,1) .4s forwards;
  }  .view-splash .bottom {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .view-splash .brand { display: flex; align-items: center; gap: 28px; }
  .view-splash .emblem {
    width: 54px; height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.20));
    opacity: 0; transform: translateY(26px) scale(.92);
    animation: rise .9s cubic-bezier(.22,1,.36,1) .35s forwards;
  }
  .view-splash .brand .divider {
    width: 2px; height: 44px;
    background: rgba(255,255,255,.55); border-radius: 2px;
    transform: scaleY(0); transform-origin: center;
    animation: growY .5s cubic-bezier(.22,1,.36,1) .55s forwards;
  }
  .view-splash .name { display: flex; flex-direction: column; align-items: flex-start; }
  .view-splash .name .line {
    color: var(--white); font-size: 24px; font-weight: 600; line-height: 1.35;
    letter-spacing: 8px;
    opacity: 0; transform: translateY(26px);
  }
  .view-splash .name .line:nth-child(1) { animation: rise .9s cubic-bezier(.22,1,.36,1) .45s forwards; }
  .view-splash .name .line:nth-child(2) { animation: rise .9s cubic-bezier(.22,1,.36,1) .57s forwards; }

  @keyframes rise { to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes growY { to { transform: scaleY(1); } }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ﻿@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes popIn {
    0%   { opacity: 0; transform: scale(.3); }
    55%  { opacity: 1; transform: scale(1.10); }
    78%  { opacity: 1; transform: scale(.96); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes riseIn { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes slideUp { 0% { opacity: 0; transform: translateY(28px); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  @keyframes glowPulse {
    0%, 100% { box-shadow: var(--shadow-glow), 0 0 0 4px rgba(255,255,255,.7); }
    50%      { box-shadow: 0 20px 44px rgba(14, 165, 233, .40), 0 0 0 5px rgba(255,255,255,.9); }
  }
  @keyframes dotBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }

  /* ===================== 登录页 ===================== */
  .view-login { background: var(--grad-hero); }
  .view-login::before, .view-login::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none;
  }
  .view-login::before { width: 220px; height: 220px; top: 24px; left: -60px; background: radial-gradient(circle, #BFDBFE 0%, transparent 70%); }
  .view-login::after { width: 200px; height: 200px; top: 60px; right: -50px; background: radial-gradient(circle, #CFFAFE 0%, transparent 70%); }
  .view-login #loginPanel { background: transparent; }
  .view-login .statusbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 30px 0;
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
    z-index: 5;
  }
  .view-login .page {
    position: relative; height: 100%;
    padding: 0 24px;
    display: flex; flex-direction: column; overflow-y: auto;
    scrollbar-width: none;
  }
  .view-login .page::-webkit-scrollbar { display: none; }

  /* 品牌区：加载态居中 → 展开后上移到中间偏上（两段式动画） */
  .view-login .brand {
    position: relative; display: flex; flex-direction: column; align-items: center;
    margin-top: 52px;
  }
  .view-login .mascot-float { animation: float 3.6s 2.2s ease-in-out infinite; }
  .view-login .mascot {
    position: relative; width: 116px; height: 116px; border-radius: 50%;
    background: #fff; padding: 6px;
    box-shadow: var(--shadow-glow), 0 0 0 4px rgba(255,255,255,.7);
    animation: popIn .72s cubic-bezier(.34, 1.56, .64, 1) both,
               glowPulse 3.6s 2.2s ease-in-out infinite;
  }
  .view-login .mascot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
  .view-login .mascot::after {
    content: '✨'; position: absolute; right: -4px; bottom: 6px;
    width: 30px; height: 30px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; box-shadow: 0 4px 10px rgba(14,165,233,.25);
  }
  .view-login .brand-title {
    margin-top: 18px; font-size: 30px; font-weight: 700; line-height: 38px;
    color: var(--text-1); letter-spacing: 2px;
  }
  .view-login .loading-dots {
    position: absolute; left: 50%; transform: translateX(-50%); top: 178px;
    display: flex; gap: 6px; transition: opacity .3s;
  }
  .view-login .loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dotBounce 1s infinite; }
  .view-login .loading-dots span:nth-child(2) { animation-delay: .15s; }
  .view-login .loading-dots span:nth-child(3) { animation-delay: .3s; }
  .view-login.loaded .loading-dots { opacity: 0; pointer-events: none; }
  .view-login .brand-slogan {
    margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 22px;
    color: var(--text-2); letter-spacing: 3px; opacity: 1;
  }

  /* 表单卡片（展开后滑入） */
  .view-login .card {
    margin-top: 26px; background: var(--bg-card); border-radius: 24px; padding: 20px 20px 22px;
    box-shadow: var(--shadow-card); opacity: 1;
  }
  /* 启动页：登录页背景去掉文字/卡片，只留居中吉祥物 + 三点 */
  .view-splash { background: var(--grad-hero); }
  .view-splash .splash-center {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center;
  }
  .view-splash .mascot-float { animation: float 3.6s ease-in-out infinite; }
  .view-splash .mascot {
    position: relative; width: 132px; height: 132px; border-radius: 50%;
    background: #fff; padding: 6px;
    box-shadow: var(--shadow-glow), 0 0 0 4px rgba(255,255,255,.7);
    animation: popIn .72s cubic-bezier(.34, 1.56, .64, 1) both,
               glowPulse 3.6s ease-in-out infinite;
  }
  .view-splash .mascot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

  .view-splash .loading-dots {
    display: flex; gap: 8px; margin-top: 34px;
  }
  .view-splash .loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: splashDot 1.2s ease-in-out infinite; }
  .view-splash .loading-dots span:nth-child(2) { animation-delay: .18s; }
  .view-splash .loading-dots span:nth-child(3) { animation-delay: .36s; }
  @keyframes splashDot { 0%, 60%, 100% { transform: translateY(0) scale(.7); opacity: .35; } 30% { transform: translateY(-9px) scale(1.15); opacity: 1; } }

  .view-login .form { display: flex; flex-direction: column; }
  .view-login .role-switch {
    position: relative; display: flex; height: 40px; padding: 4px;
    background: #F3F4F6; border-radius: 12px; margin-bottom: 12px;
  }
  .view-login .role-thumb {
    position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 32px;
    background: #FFFFFF; border-radius: 8px; box-shadow: 0 2px 6px rgba(17,24,39,.08);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
  }
  .view-login .role-switch.teacher .role-thumb { transform: translateX(100%); }
  .view-login .role-option {
    flex: 1; position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; font-size: 14px; color: var(--text-3);
    cursor: pointer; font-family: var(--font); transition: color .2s;
  }
  .view-login .role-option.active { color: var(--text-1); font-weight: 600; }

  .view-login .field { position: relative; }
  .view-login .field + .field { margin-top: 6px; }
  .view-login .input-wrap {
    height: 48px; display: flex; align-items: center;
    background: #F9FAFB; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .view-login .input-wrap:focus-within { border-color: var(--primary); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
  .view-login .field.error .input-wrap { border-color: var(--danger); }
  .view-login .field.error .input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
  .view-login .input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-size: 15px; line-height: 22px; color: var(--text-1); font-family: var(--font); }
  .view-login .input::placeholder { color: var(--text-3); }
  .view-login .icon-btn {
    flex-shrink: 0; width: 44px; height: 44px; margin-right: -8px;
    display: none; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--text-3); cursor: pointer; border-radius: 10px;
  }
  .view-login .icon-btn svg { width: 20px; height: 20px; }
  .view-login .icon-btn:active { background: #F1F5F9; }
  .view-login .field.has-value .clear-btn { display: flex; }
  .view-login .field .eye-btn { display: flex; }
  .view-login .err { min-height: 18px; margin: 5px 2px 0; font-size: 12px; line-height: 18px; color: var(--danger); display: none; }
  .view-login .field.error .err { display: block; }
  .view-login .forgot-row { display: flex; justify-content: space-between; margin-top: 4px; }
  .view-login .forgot { font-size: 13px; line-height: 18px; color: var(--primary); text-decoration: none; cursor: pointer; padding: 4px 2px; }
  .view-login .forgot:active { color: var(--primary-hover); }
  .view-login .submit {
    margin-top: 20px; height: 48px; border: none; border-radius: 14px;
    background: var(--grad-btn); color: #FFFFFF; font-size: 16px; font-weight: 600; line-height: 48px;
    font-family: var(--font); width: 100%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 10px 22px rgba(29,78,216,.28);
    transition: transform .1s, box-shadow .2s, opacity .15s;
  }
  .view-login .submit:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(29,78,216,.24); }
  .view-login .submit:disabled { opacity: .6; cursor: default; }
  .view-login .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .7s linear infinite; }
  .view-login .divider { margin-top: 24px; display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; line-height: 18px; opacity: 1; }
  .view-login .divider::before, .view-login .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .view-login .wechat-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 18px; opacity: 1; }
  .view-login .wechat { width: 44px; height: 44px; border-radius: 50%; border: none; background: #F3F4F6; color: #9CA3AF; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
  .view-login .wechat svg { width: 24px; height: 24px; }
  .view-login .wechat:active { background: #E5E7EB; }
  .view-login .wechat-label { margin-top: 8px; font-size: 11px; line-height: 16px; color: var(--text-3); }

  .view-login .agree { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; cursor: pointer; font-size: 12px; line-height: 18px; color: var(--text-2); user-select: none; }
  .view-login .agree input { position: absolute; opacity: 0; width: 0; height: 0; }
  .view-login .agree .check { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid var(--text-3); border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
  .view-login .agree input:checked + .check { background: var(--primary); border-color: var(--primary); }
  .view-login .agree input:checked + .check::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0, -1px); }
  .view-login .agree-text a { color: var(--primary); text-decoration: none; }
  .view-login .login-error { margin: 8px 2px 0; font-size: 12px; line-height: 18px; color: var(--danger); display: none; }
  .view-login .login-error.show { display: block; }

  /* ===== 登录页子面板（登录 / 注册 / 忘记密码） ===== */
  .view-login .login-panel {
    position: absolute; inset: 0;
    z-index: 0;
    display: flex; flex-direction: column;
    background: var(--bg-card);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-login .login-panel.off-right { transform: translateX(100%); pointer-events: none; }
  .view-login .auth-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; margin: 44px 12px 0; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-login .auth-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-login .auth-head-spacer { width: 36px; flex-shrink: 0; }
  .view-login .auth-back {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-login .auth-back:active { background: #F1F5F9; }
  .view-login .auth-back svg { width: 24px; height: 24px; }
  .view-login .auth-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-login .auth-body::-webkit-scrollbar { display: none; }
  .view-login .auth-body form { display: flex; flex-direction: column; }
  .view-login .auth-body .submit { letter-spacing: 0; text-indent: 0; }
  .view-login .code-btn {
    flex-shrink: 0; height: 32px; padding: 0 12px; border: none; border-radius: 8px;
    background: var(--primary-soft); color: var(--primary); font-size: 13px; font-family: var(--font); cursor: pointer; white-space: nowrap;
  }
  .view-login .code-btn:disabled { background: #F3F4F6; color: var(--text-3); cursor: default; }

  .view-login .overlay { position: absolute; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
  .view-login .overlay.show { opacity: 1; pointer-events: auto; }
  .view-login .dialog { width: 296px; background: #fff; border-radius: 16px; padding: 24px 20px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.22); transform: scale(.92); transition: transform .25s cubic-bezier(.22,1,.36,1); }
  .view-login .overlay.show .dialog { transform: scale(1); }
  .view-login .dialog-title { font-size: 17px; font-weight: 600; color: var(--text-1); text-align: center; margin-bottom: 12px; }
  .view-login .dialog-body { font-size: 14px; line-height: 22px; color: var(--text-2); text-align: center; margin-bottom: 20px; }
  .view-login .dialog-body a { color: var(--primary); text-decoration: none; }
  .view-login .dialog-actions { display: flex; gap: 12px; }
  .view-login .dialog-btn { flex: 1; height: 40px; border-radius: 12px; font-size: 15px; font-family: var(--font); cursor: pointer; }
  .view-login .dialog-btn.secondary { border: 1px solid var(--border); background: #fff; color: var(--text-2); }
  .view-login .dialog-btn.primary { border: none; background: var(--primary); color: #fff; font-weight: 600; }
  .view-login .dialog-btn.primary:active { background: var(--primary-hover); }

  /* 
/* ===================== 登录后界面（主框架） ===================== */
  .view-main { background: var(--bg-page); display: flex; flex-direction: column; }
  .view-main .statusbar {
    height: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-main .status-icons { letter-spacing: 2px; }
  .view-main .content { position: relative; flex: 1; overflow: hidden; }
  .view-main .panel { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-main .panel::-webkit-scrollbar { display: none; }
  .view-main .panel.active { display: block; animation: panelIn .18s ease; }
  .pull-refresh { display: flex; align-items: center; justify-content: center; gap: 8px; height: 0; overflow: hidden; color: var(--text-3); font-size: 13px; font-family: var(--font); }
  .pull-refresh.active { height: 52px; }
  .pull-refresh-spinner { width: 16px; height: 16px; border: 2px solid rgba(100,116,139,.35); border-top-color: var(--primary); border-radius: 50%; }
  .pull-indicator { position: fixed; top: -56px; left: 0; right: 0; height: 56px; z-index: 999; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: 13px; font-family: var(--font); pointer-events: none; }
  .pull-indicator .pull-refresh-spinner { display: none; }
  .pull-indicator.loading .pull-refresh-spinner { display: inline-block; animation: spin .8s linear infinite; }
  .center-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92); z-index: 1000; padding: 14px 22px; background: rgba(15,23,42,.82); color: #fff; font-size: 14px; font-family: var(--font); border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .center-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .pull-refresh.active .pull-refresh-spinner { animation: spin .8s linear infinite; }
  #panel-msg { z-index: 10; transition: transform .3s ease; }
  .view-main .tabbar { position: relative; z-index: 10; transition: transform .3s ease, border-radius .3s ease; }
  .view-main.minusone-open #panel-msg { transform: translateX(78%); border-top-left-radius: 24px; box-shadow: -8px 0 24px rgba(15,23,42,.16); }
  .view-main.minusone-open .tabbar { transform: translateX(78%); border-bottom-left-radius: 24px; }
  @keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }

  .view-main .topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .topbar-title { font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-main .topbar-action { font-size: 14px; color: var(--primary); background: none; border: none; cursor: pointer; font-family: var(--font); }
  .view-main .topbar-action:disabled { color: var(--text-3); cursor: default; }
  .view-main .topbar-plus { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-1); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--font); flex-shrink: 0; }
  .view-main .topbar-plus:active { background: #F1F5F9; }
  .view-main .msg-plus-mask { position: fixed; inset: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 60; }
  .view-main .msg-plus-mask.show { opacity: 1; pointer-events: auto; }
  .view-main .msg-plus-menu { position: fixed; top: 104px; right: 14px; width: 160px; background: #FFFFFF; border-radius: 12px; box-shadow: 0 8px 28px rgba(17,24,39,.16); padding: 6px 0; transform: scale(.6); opacity: 0; transform-origin: 100% 0; transition: transform .18s cubic-bezier(.22,1,.36,1), opacity .18s ease; overflow: hidden; }
  .view-main .msg-plus-mask.show .msg-plus-menu { transform: scale(1); opacity: 1; }
  .view-main .plus-menu-item { display: block; width: 100%; padding: 12px 18px; background: none; border: none; font-size: 14px; color: var(--text-1); text-align: left; cursor: pointer; font-family: var(--font); }
  .view-main .plus-menu-item:active { background: #F1F5F9; }

  /* ===== 消息顶部栏：用户 chip（负一页入口） ===== */
  .view-main .msg-user { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: left; font-family: var(--font); max-width: 40%; color: var(--text-1); }
  .view-main .msg-user-avatar { width: 32px; height: 32px; border-radius: 10px; background: #E5E7EB; color: #4B5563; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
  .view-main .msg-user-info { display: flex; flex-direction: column; min-width: 0; }
  .view-main .msg-user-name { font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .msg-user-sub { font-size: 11px; color: var(--text-3); line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .msg-user-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; margin: 0 3px; vertical-align: 1px; }

  /* ===== 负一页（覆盖层，从左侧滑入） ===== */
  .view-main .minusone { position: absolute; top: 0; left: 0; bottom: 0; width: 78%; z-index: 5; background: var(--bg-page); display: flex; flex-direction: column; overflow: hidden; transform: translateX(-100%); transition: transform .3s ease; }
  .view-main .minusone.active { transform: translateX(0); }
  .view-main .minusone-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .view-main .minusone-back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1); flex-shrink: 0; }
  .view-main .minusone-back:active { background: #F1F5F9; }
  .view-main .minusone-back svg { width: 24px; height: 24px; }
  .view-main .minusone-head-title { font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-main .minusone-head-spacer { width: 36px; flex-shrink: 0; }
  .view-main .minusone-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-main .minusone-body::-webkit-scrollbar { display: none; }
  .view-main .mo-online { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
  .view-main .mo-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
  .view-main .chips { position: sticky; top: 44px; z-index: 3; display: flex; gap: 8px; padding: 10px 16px; background: var(--bg-page); border-bottom: 1px solid var(--border); }
  .view-main .chip { padding: 5px 14px; border-radius: 999px; border: none; cursor: pointer; font-size: 13px; font-family: var(--font); background: var(--bg-card); color: var(--text-2); }
  .view-main .chip.active { background: var(--primary); color: #fff; }
  .view-main .read-all-inline { margin-left: auto; font-size: 13px; color: var(--primary); background: none; border: none; cursor: pointer; font-family: var(--font); padding: 5px 0; }

  .view-main .msg-list { list-style: none; }
  .view-main .msg-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .msg-item:active { background: #F9FAFB; }
  .view-main .msg-avatar { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; }
  .av-blue { background: #2563EB; } .av-orange { background: #EA580C; } .av-green { background: #16A34A; } .av-purple { background: #7C3AED; } .av-cyan { background: #0891B2; }
  .view-main .msg-avatar-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #fff; }
  .view-main .msg-badge-ai { flex-shrink: 0; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 600; line-height: 15px; }
  .view-main .msg-main { flex: 1; min-width: 0; }
  .view-main .msg-title-row { display: flex; align-items: baseline; justify-content: space-between; }
  .view-main .msg-title { font-size: 15px; color: var(--text-2); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .msg-item.unread .msg-title { color: var(--text-1); font-weight: 600; }
  .view-main .msg-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
  .view-main .msg-summary { font-size: 13px; color: var(--text-3); line-height: 18px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .unread-dot { position: absolute; top: 18px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

  /* ===== 消息长按管理（置顶/免打扰/不显示/删除） ===== */
  .view-main .msg-item { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
  .view-main .msg-left { display: flex; align-items: baseline; min-width: 0; flex: 1; }
  .view-main .msg-right { display: flex; align-items: baseline; flex-shrink: 0; margin-left: 8px; }
  .view-main .msg-item.pinned { background: #F1F5F9; }
  .view-main .badge-pin { flex-shrink: 0; margin-right: 6px; padding: 1px 5px; border-radius: 4px; background: #E2E8F0; color: #64748B; font-size: 10px; font-weight: 600; line-height: 15px; }
  .view-main .badge-mute { flex-shrink: 0; margin-left: 6px; font-size: 12px; color: var(--text-3); }
  .view-main .msg-item.muted .unread-dot { background: #C7CDD6; }

  .view-main .contact-search { padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .service-search { padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .searchbox { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #F3F4F6; border-radius: 8px; color: var(--text-3); font-size: 14px; }
  .view-main .searchbox svg { width: 16px; height: 16px; flex-shrink: 0; }
  .view-main .group-title { padding: 8px 16px 4px; font-size: 13px; color: var(--text-3); background: var(--bg-page); }
  .view-main .contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .contact-row:active { background: #F9FAFB; }
  .view-main .c-avatar { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; }
  .view-main .c-avatar-img { object-fit: cover; }
  .view-main .contact-info { flex: 1; min-width: 0; }
  .view-main .contact-name { font-size: 15px; color: var(--text-1); }
  .view-main .contact-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

  .view-main .section-title { padding: 14px 16px 8px; font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-main .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; padding: 8px 8px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-family: var(--font); }
  .view-main .g-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 21px; }
  .view-main .g-label { font-size: 12px; color: var(--text-2); }
  .view-main .cat-block { background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .cat-title { padding: 12px 16px 4px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-main .svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
  .view-main .svc-row:active { background: #F9FAFB; }
  .view-main .svc-icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); }
  .view-main .svc-icon svg { width: 22px; height: 22px; }
  .view-main .svc-name { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); }
  .view-main .svc-arrow { color: var(--text-3); font-size: 14px; }

  .view-main .profile { display: flex; align-items: center; gap: 14px; padding: 18px 16px 20px; background: linear-gradient(135deg, #2563EB 0%, var(--primary) 100%); color: #fff; }
  .view-main .p-avatar { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; border: 2px solid rgba(255,255,255,.6); overflow: hidden; }
  .view-main .p-name { font-size: 20px; font-weight: 600; }
  .view-main .p-sub { font-size: 13px; opacity: .9; margin-top: 3px; }
  .view-main .cards { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
  .view-main .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 16px; cursor: pointer; }
  .view-main .card:active { background: #FAFBFC; }
  .view-main .card-head { display: flex; align-items: center; justify-content: space-between; }
  .view-main .card-title { font-size: 14px; color: var(--text-2); }
  .view-main .card-more { font-size: 12px; color: var(--text-3); }
  .view-main .card-value { font-size: 28px; font-weight: 700; color: var(--text-1); line-height: 36px; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .view-main .card-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
  .view-main .card-row { display: flex; gap: 12px; }
  .view-main .card-row .card { flex: 1; }
  .view-main .progress { height: 6px; border-radius: 999px; background: var(--border); margin-top: 10px; overflow: hidden; }
  .view-main .progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
  .view-main .delta-up { color: var(--success); font-size: 12px; font-weight: 600; }
  .view-main .me-list { margin: 4px 16px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .view-main .me-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .me-row:last-child { border-bottom: none; }
  .view-main .me-row:active { background: #F9FAFB; }
  .view-main .me-row-left { display: flex; align-items: center; gap: 12px; }
  .view-main .me-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; }
  .view-main .me-label { font-size: 15px; color: var(--text-1); }
  .view-main .me-label.logout { color: var(--danger); }
  .view-main .me-arrow { color: var(--text-3); font-size: 14px; }

  .view-main .tabbar { flex-shrink: 0; display: flex; background: var(--bg-card); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .view-main .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; background: none; border: none; outline: none; cursor: pointer; color: var(--text-3); font-size: 10px; font-family: var(--font); }
  .view-main .tab:focus, .view-main .tab:focus-visible { outline: none; box-shadow: none; }
  .view-main .tab svg { width: 24px; height: 24px; }
  .view-main .tab.active { color: var(--primary); }

  /* ===================== AI 助手「璐璐」聊天视图 ===================== */
  .view-chat {
    background: #EDEFF2; display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-chat.active { transform: translateX(0); }
  .view-chat .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-chat .chat-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-chat .head-btn { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1); }
  .view-chat .head-btn:active { background: #F1F5F9; }
  .view-chat .head-btn svg { width: 24px; height: 24px; }
  .view-chat .chat-head-avatar { flex-shrink: 0; }
  .view-chat .chat-head-info { flex: 1; min-width: 0; }
  .view-chat .chat-head-name { font-size: 16px; font-weight: 600; color: var(--text-1); line-height: 20px; }
  .view-chat .chat-head-sub { font-size: 11px; color: var(--text-3); line-height: 16px; }
  .view-chat .chat-body { flex: 1; overflow-y: auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-chat .chat-body::-webkit-scrollbar { display: none; }
  .view-chat .time-stamp { text-align: center; font-size: 11px; color: var(--text-3); margin: 2px 0; }
  .view-chat .row { display: flex; align-items: flex-start; gap: 8px; }
  .view-chat .row.other { justify-content: flex-start; }
  .view-chat .row.self { justify-content: flex-end; }
  .view-chat .chat-av { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #fff; }
  .view-chat .chat-av-char { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; }
  .view-chat .bubble { max-width: 72%; padding: 10px 13px; font-size: 15px; line-height: 21px; word-break: break-word; }
  .view-chat .row.other .bubble { background: #FFFFFF; color: var(--text-1); border-radius: 4px 14px 14px 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
  .view-chat .row.self .bubble { background: var(--primary); color: #FFFFFF; border-radius: 14px 4px 14px 14px; }
  .view-chat .self-wrap { display: flex; flex-direction: column; align-items: flex-end; max-width: 76%; }
  .view-chat .chat-photo { display: block; max-width: 100%; width: 176px; border-radius: 14px 4px 14px 14px; object-fit: cover; }
  .view-chat .chat-video { display: block; max-width: 220px; width: 100%; min-height: 176px; max-height: 320px; border-radius: 14px 4px 14px 14px; background: #000; object-fit: cover; }
  .view-chat .chat-photo, .view-chat .chat-video, .view-chat .chat-video-cover { cursor: pointer; }
  .view-chat .lulu-ppt-card { display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 12px; margin-top: 6px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; }
  .view-chat .bubble.other .lulu-ppt-card { background: #fff; }
  .lulu-ppt-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #F97316, #EF4444); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .lulu-ppt-info { min-width: 0; }
  .lulu-ppt-name { font-size: 14px; color: #111827; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
  .lulu-ppt-tip { font-size: 12px; color: #9ca3af; margin-top: 2px; }
  .view-chat .chat-video-cover { position: relative; display: flex; align-items: center; justify-content: center; max-width: 220px; width: 200px; height: 176px; border-radius: 14px 4px 14px 14px; background-color: #2563EB; background-image: linear-gradient(135deg, #3B82F6, #1D4ED8); background-size: cover; background-position: center; overflow: hidden; }
  .view-chat .video-play-badge { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; }
  .media-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
  .media-viewer.active { display: flex; }
  .media-viewer .mv-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 40px; text-align: center; cursor: pointer; }
  .media-viewer img, .media-viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
  .media-viewer video { width: 100vw; max-height: 70vh; background: #000; }
  .view-chat .self-wrap .bubble { max-width: 100%; }
  .view-chat .msg-read-status { align-self: flex-start; font-size: 11px; margin-top: 3px; line-height: 1; }
  .view-chat .msg-read-status.unread { color: #EF4444; }
  .view-chat .msg-read-status.read { color: #9CA3AF; }
  /* 通知私信：框消息（无头像、整条圆角卡片） */
  .view-chat .row.notice-row { width: 100%; }
  .view-chat .row.notice-row .bubble { max-width: 100%; width: 100%; flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; color: var(--text-1); padding: 0; }
  .view-chat .notice-card-title { font-size: 17px; font-weight: 700; color: var(--text-1); padding: 14px 16px 0; }
  .view-chat .notice-card-body { font-size: 14px; color: var(--text-2); padding: 6px 16px 12px; line-height: 20px; }
  .view-chat .notice-card-divider { height: 1px; background: var(--border); margin: 0 16px; }
  .view-chat .notice-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: var(--text-3); cursor: pointer; }
  .view-chat .notice-card-arrow { font-size: 16px; color: var(--text-3); line-height: 1; }
  .view-chat .typing { display: flex; gap: 4px; padding: 4px 2px; }
  .view-chat .typing span { width: 7px; height: 7px; border-radius: 50%; background: #C7CDD6; animation: typing 1.2s infinite ease-in-out; }
  .view-chat .typing span:nth-child(2) { animation-delay: .15s; }
  .view-chat .typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
  .view-chat .chat-input { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-card); border-top: 1px solid var(--border); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .view-chat .chat-input.is-ai { gap: 2px; margin: 8px 12px calc(8px + env(safe-area-inset-bottom)); padding: 4px; background: #F3F4F6; border-top: none; border-radius: 22px; }
  .view-chat .input-btn { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; color: var(--text-2); }
  .view-chat .chat-input.is-ai .input-btn { width: 32px; height: 32px; }
  .view-chat .input-btn svg { width: 22px; height: 22px; }
  .view-chat .chat-input:not(.is-ai) #inputMic { order: -1; }
  .view-chat .input-box { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: none; outline: none; background: #F3F4F6; border-radius: 8px; font-size: 15px; color: var(--text-1); font-family: var(--font); }
  .view-chat .chat-input.is-ai .input-box { height: 32px; padding: 0 8px; background: none; border-radius: 0; }
  .view-chat .input-box::placeholder { color: var(--text-3); }
  .view-chat .input-send { flex-shrink: 0; height: 38px; padding: 0 16px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; background: var(--primary); color: #FFFFFF; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-chat .chat-input.is-ai .input-send { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 0; display: none; }
  .view-chat .input-send:active { background: var(--primary-hover); }
  .view-chat .input-send svg { width: 20px; height: 20px; }

  /* 推荐区 + 快捷功能栏（仅璐璐 AI 聊天） */
  .view-chat .chat-suggest { flex-shrink: 0; padding: 10px 14px 4px; }
  .view-chat .chat-suggest-label { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
  .view-chat .chat-suggest-cards { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-chat .chat-suggest-card { padding: 10px 16px; border: none; border-radius: 10px; background: #F3F4F6; color: var(--text-1); font-size: 14px; font-family: var(--font); cursor: pointer; }
  .view-chat .chat-suggest-card:active { background: #E7EAF0; }
  /* suggest message inside chat body (scrolls with content) */
  .view-chat .suggest-box { width: 100%; padding: 2px 0 6px; }
  .view-chat .suggest-msg-title { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
  .view-chat .suggest-row { width: 100%; justify-content: center; }
  .view-chat .suggest-msg-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-chat .suggest-msg-chips .chat-suggest-card { text-align: left; }
  .view-chat .chat-toolbar { flex-shrink: 0; display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px 6px; scrollbar-width: none; }
  .view-chat .chat-toolbar::-webkit-scrollbar { display: none; }
  .view-chat .chat-tool { flex-shrink: 0; padding: 7px 14px; border: none; border-radius: 16px; background: #F3F4F6; color: var(--text-1); font-size: 13px; font-family: var(--font); cursor: pointer; white-space: nowrap; }
  .view-chat .chat-tool:active { background: #E7EAF0; }

  /* 加号面板（照片/拍摄/文档/文件/行程/位置/个人名片） */
  .view-chat .chat-more { flex-shrink: 0; max-height: 0; overflow: hidden; background: #F7F8FA; transition: max-height .28s cubic-bezier(.22,1,.36,1); }
  .view-chat .chat-more.open { max-height: 210px; }
  .view-chat .chat-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; padding: 18px 8px 22px; }
  .view-chat .more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; border: none; background: none; padding: 0; cursor: pointer; font-family: var(--font); }
  .view-chat .more-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
  .view-chat .more-icon svg { width: 26px; height: 26px; }
  .view-chat .more-item:active .more-icon { transform: scale(.9); }
  .view-chat .more-label { font-size: 12px; color: var(--text-2); }

  /* 加号面板发送的媒体消息（照片占位 / 位置卡片） */
  .view-chat .img-msg { width: 176px; height: 132px; border-radius: 12px; background: linear-gradient(135deg, #BFDBFE, #DBEAFE); display: flex; align-items: center; justify-content: center; color: #2563EB; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
  .view-chat .img-msg svg { width: 40px; height: 40px; }
  .view-chat .loc-msg { width: 224px; padding: 12px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(16,24,40,.08); display: flex; align-items: center; gap: 11px; }
  .view-chat .loc-msg .pin { width: 36px; height: 36px; border-radius: 50%; background: #FEE2E2; color: #DC2626; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .view-chat .loc-msg .pin svg { width: 20px; height: 20px; }
  .view-chat .loc-msg .loc-t { font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-chat .loc-msg .loc-s { font-size: 12px; color: var(--text-3); margin-top: 3px; }

  /* ===================== AI 助手「璐璐」动作卡片（「手」：点「打开」派发动作） ===================== */
  .view-chat .bubble.act-card { padding: 0; min-width: 208px; border-radius: 12px; box-shadow: 0 2px 8px rgba(16,24,40,.06); overflow: hidden; }
  .view-chat .act-card-inner { padding: 12px 14px; }
  .view-chat .act-card-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .view-chat .act-card-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 21px; }
  .view-chat .act-card-meta { margin-top: 3px; font-size: 12px; color: var(--text-3); line-height: 17px; }
  .view-chat .act-card-btn { display: block; width: 100%; margin-top: 10px; padding: 8px 0; border: none; border-radius: 8px; background: var(--primary); color: #FFFFFF; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-chat .act-card-btn:active { background: var(--primary-hover); }
  .view-chat .act-card-options { display: flex; flex-direction: column; }
  .view-chat .act-card-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 14px; border: none; border-top: 1px solid var(--border); background: none; font-size: 14px; color: var(--text-1); font-family: var(--font); text-align: left; cursor: pointer; }
  .view-chat .act-card-option:first-child { border-top: none; }
  .view-chat .act-card-option:active { background: #F5F7FA; }
  .view-chat .act-card-option .opt-meta { flex-shrink: 0; font-size: 11px; color: var(--text-3); }

  /* ===================== 璐璐「手」：教室导航卡片 ===================== */
  .view-chat .bubble.nav-card { padding: 0; min-width: 230px; border-radius: 12px; box-shadow: 0 2px 8px rgba(16,24,40,.06); overflow: hidden; }
  .view-chat .nav-card-head { padding: 12px 14px; background: #EFF6FF; border-bottom: 1px solid #DBEAFE; }
  .view-chat .nav-card-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 21px; }
  .view-chat .nav-card-sub { margin-top: 2px; font-size: 12px; color: var(--text-3); line-height: 17px; }
  .view-chat .nav-card-body { padding: 12px 14px; }
  .view-chat .nav-loc { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
  .view-chat .nav-loc-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); }
  .view-chat .nav-loc-text { font-size: 13px; color: var(--text-2); line-height: 19px; }
  .view-chat .nav-steps { font-size: 13px; color: var(--text-1); line-height: 20px; }
  .view-chat .nav-steps b { color: var(--primary); }
  .view-chat .nav-card-actions { display: flex; gap: 8px; padding: 0 14px 12px; }
  .view-chat .nav-btn { flex: 1; padding: 8px 0; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-chat .nav-btn.primary { background: var(--primary); color: #fff; }
  .view-chat .nav-btn.primary:active { background: var(--primary-hover); }
  .view-chat .nav-btn.ghost { background: #F3F4F6; color: var(--text-2); }
  .view-chat .nav-btn.ghost:active { background: #E5E7EB; }
  .view-chat .nav-warn { font-size: 11px; color: var(--text-3); line-height: 16px; padding: 0 14px 12px; margin-top: -4px; }

  /* ===================== 服务大厅（数据驱动） + 服务详情 + 占位页 ===================== */
  .view-main .search-input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text-1); font-family: var(--font); }
  .view-main .search-input::placeholder { color: var(--text-3); }
  .view-main .searchbox:focus-within { background: #FFFFFF; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
  .view-main .cat-count { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
  .view-main .svc-right { display: flex; align-items: center; gap: 8px; }
  .view-main .svc-badge { flex-shrink: 0; padding: 1px 6px; border-radius: 4px; background: #DCFCE7; color: var(--success); font-size: 10px; font-weight: 600; line-height: 15px; }
  .view-main .svc-name .hl { background: var(--primary-soft); color: var(--primary); font-weight: 600; border-radius: 2px; }
  .view-main .svc-empty { padding: 48px 16px; text-align: center; }
  .view-main .svc-empty-icon { font-size: 40px; }
  .view-main .svc-empty-title { margin-top: 12px; font-size: 15px; color: var(--text-2); }
  .view-main .svc-empty-sub { margin-top: 4px; font-size: 13px; color: var(--text-3); }
  .view-main .svc-tabs { display: flex; overflow-x: auto; background: var(--bg-card); border-bottom: 1px solid var(--border); white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-main .svc-tabs::-webkit-scrollbar { display: none; }
  .view-main .svc-tab { flex-shrink: 0; padding: 10px 14px; font-size: 14px; color: var(--text-2); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; font-family: var(--font); }
  .view-main .svc-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
  .view-main .cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .cat-card:active { background: #F9FAFB; }
  .view-main .cat-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
  .view-main .cat-card-info { flex: 1; min-width: 0; }
  .view-main .cat-card-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-main .cat-card-preview { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .view-sdetail, .view-placeholder {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-sdetail.active, .view-placeholder.active { transform: translateX(0); }
  .view-sdetail .statusbar, .view-placeholder .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-sdetail .sdetail-head, .view-placeholder .ph-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-sdetail .sdetail-head-title, .view-placeholder .ph-head-title {
    flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1);
  }
  .view-sdetail .sdetail-head-spacer, .view-placeholder .ph-head-spacer { width: 36px; flex-shrink: 0; }
  .view-sdetail .head-btn, .view-placeholder .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-sdetail .head-btn:active, .view-placeholder .head-btn:active { background: #F1F5F9; }
  .view-sdetail .head-btn svg, .view-placeholder .head-btn svg { width: 24px; height: 24px; }

  .view-sdetail .sdetail-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-sdetail .sdetail-body::-webkit-scrollbar { display: none; }
  .sdetail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 16px; }
  .sdetail-card-top { display: flex; align-items: center; gap: 12px; }
  .sdetail-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--primary); }
  .sdetail-icon svg { width: 22px; height: 22px; }
  .sdetail-name { font-size: 16px; font-weight: 600; color: var(--text-1); }
  .sdetail-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  .sdetail-chip { padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; }
  .sdetail-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
  .sdetail-badge.available { background: #DCFCE7; color: var(--success); }
  .sdetail-badge.pending { background: #FEF3C7; color: var(--warning); }
  .sdetail-desc { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--text-2); }
  .sdetail-enter { margin-top: 12px; width: 100%; height: 44px; border: none; border-radius: 12px; background: var(--primary); color: #FFFFFF; font-size: 16px; font-weight: 600; font-family: var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
  .sdetail-enter:active { background: var(--primary-hover); }
  .sdetail-enter.pending { background: #E5E7EB; color: var(--text-3); }
  .sdetail-enter .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .7s linear infinite; }
  .sdetail-section { margin: 16px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .sdetail-info, .sdetail-related { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .sdetail-info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .sdetail-info-row:last-child { border-bottom: none; }
  .sdetail-info-label { font-size: 13px; color: var(--text-3); }
  .sdetail-info-value { font-size: 14px; color: var(--text-1); }
  .sdetail-related .rel-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .sdetail-related .rel-row:last-child { border-bottom: none; }
  .sdetail-related .rel-row:active { background: #F9FAFB; }
  .sdetail-related .rel-name { font-size: 14px; color: var(--text-2); }
  .sdetail-related .rel-arrow { color: var(--text-3); font-size: 14px; }

  /* ===================== 服务详情浮层：右上角按钮 + 底部弹出面板 ===================== */
  .svc-detail-fab { position: fixed; top: 14px; right: 12px; z-index: 60; display: none; align-items: center; gap: 5px; height: 36px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-2); font-size: 13px; font-weight: 600; font-family: var(--font); box-shadow: 0 2px 10px rgba(16,24,40,.10); cursor: pointer; }
  .svc-detail-fab.show { display: flex; }
  .svc-detail-fab svg { width: 15px; height: 15px; }
  .svc-detail-fab:active { background: #F1F5F9; }
  .svc-detail-mask { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.42); display: none; }
  .svc-detail-mask.show { display: block; }
  .svc-detail-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg-page); border-radius: 20px 20px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 84vh; display: flex; flex-direction: column; animation: sheetUp .22s ease; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
  .svc-detail-grab { width: 40px; height: 4px; border-radius: 999px; background: var(--border); margin: 0 auto 10px; flex-shrink: 0; }
  .svc-detail-sheet-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding-bottom: 10px; }
  .svc-detail-sheet-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
  .svc-detail-sheet-close { width: 32px; height: 32px; border: none; border-radius: 999px; background: #F3F4F6; color: var(--text-2); font-size: 14px; cursor: pointer; font-family: var(--font); display: flex; align-items: center; justify-content: center; }
  .svc-detail-sheet-close:active { background: #E5E7EB; }
  .svc-detail-sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .svc-detail-sheet-body::-webkit-scrollbar { display: none; }

  .view-placeholder .ph-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px 48px; }
  .ph-illust { width: 120px; height: 120px; border-radius: 28px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 52px; }
  .ph-title { margin-top: 24px; font-size: 16px; font-weight: 600; color: var(--text-1); }
  .ph-sub { margin-top: 8px; font-size: 13px; color: var(--text-3); }
  .ph-btn { margin-top: 32px; height: 44px; padding: 0 48px; border: none; border-radius: 12px; background: var(--primary); color: #FFFFFF; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .ph-btn:active { background: var(--primary-hover); }

  /* ===================== 服务功能页（#view-service-page） ===================== */
  .sp-intro { margin: 4px 4px 14px; font-size: 13px; line-height: 20px; color: var(--text-2); }
  .sp-demo { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--text-3); }

  /* 查询结果表 */
  .sp-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .sp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .sp-table thead th { text-align: left; padding: 10px 12px; color: var(--text-3); font-size: 11px; font-weight: 600; background: #F9FAFB; border-bottom: 1px solid var(--border); }
  .sp-table tbody td { padding: 12px; color: var(--text-1); border-bottom: 1px solid var(--border); }
  .sp-table tbody tr:last-child td { border-bottom: none; }
  .sp-table td.r, .sp-table th.r { text-align: right; }
  .sp-table tr.sp-group td { background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 12px; padding: 8px 12px; }

  /* 审批列表 */
  .sp-approve-row { align-items: center; }
  .sp-approve-btns { display: flex; gap: 8px; flex-shrink: 0; }
  .sp-btn { height: 32px; padding: 0 14px; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .sp-btn.ok { background: var(--primary); color: #fff; }
  .sp-btn.rej { background: #FEE2E2; color: #DC2626; }
  .sp-btn:active { opacity: .8; }
  .sp-approve-row.done { opacity: .55; }

  /* 展示 · 宫格 / 步骤 */
  .sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sp-grid-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .sp-grid-icon { font-size: 24px; }
  .sp-grid-label { font-size: 12px; color: var(--text-2); text-align: center; }
  .sp-step { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
  .sp-step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .sp-step-txt { font-size: 14px; color: var(--text-1); }

  /* 外部跳转 */
  .sp-link-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .sp-link-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 32px; }
  .sp-link-name { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .sp-link-note { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--text-3); max-width: 260px; }
  .sp-link-url { margin-top: 12px; font-size: 11px; color: var(--text-3); word-break: break-all; max-width: 280px; background: #F9FAFB; padding: 8px 12px; border-radius: 8px; }
  .sp-link-card .submit { margin-top: 20px; width: 100%; }

  /* 统计报表 */
  .sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
  .sp-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; }
  .sp-stat-value { font-size: 20px; font-weight: 700; color: var(--text-1); }
  .sp-stat-label { margin-top: 4px; font-size: 11px; color: var(--text-2); }
  .sp-stat-sub { margin-top: 2px; font-size: 10px; color: var(--text-3); }
  .sp-bar-row { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .sp-bar-row:last-child { border-bottom: none; }
  .sp-bar-head { display: flex; align-items: center; justify-content: space-between; }

  /* 表单提交成功态 */
  .sp-success { display: flex; flex-direction: column; align-items: center; padding: 32px 0; }
  .sp-success-ico { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; color: #16A34A; font-size: 32px; display: flex; align-items: center; justify-content: center; }
  .sp-success-text { margin-top: 16px; font-size: 15px; color: var(--text-1); }

  /* ===================== 服务落地页（统一信息页，160+ 服务共用） ===================== */
  .view-service-landing {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-service-landing.active { transform: translateX(0); }
  .view-service-landing .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-service-landing .sland-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-service-landing .sland-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-service-landing .sland-head-spacer { width: 36px; flex-shrink: 0; }
  .view-service-landing .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-service-landing .head-btn:active { background: #F1F5F9; }
  .view-service-landing .head-btn svg { width: 24px; height: 24px; }
  .view-service-landing .sland-body { flex: 1; overflow-y: auto; padding: 20px 16px 24px; -webkit-overflow-scrolling: touch; }
  .view-service-landing .sland-hero { display: flex; flex-direction: column; align-items: center; padding: 8px 0 16px; }
  .view-service-landing .sland-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
  .view-service-landing .sland-icon svg { width: 40px; height: 40px; color: var(--primary); }
  .view-service-landing .sland-name { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--text-1); }
  .view-service-landing .sland-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
  .view-service-landing .sland-chip { padding: 3px 10px; border-radius: 999px; background: #EEF2F7; font-size: 12px; color: var(--text-2); }
  .view-service-landing .sland-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
  .view-service-landing .sland-badge.available { background: #E6F7EE; color: #1BA55C; }
  .view-service-landing .sland-badge.pending { background: #FFF3E0; color: #E8871A; }
  .view-service-landing .sland-desc { margin-top: 4px; padding: 14px 16px; background: var(--bg-card); border-radius: 14px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
  .view-service-landing .sland-section { margin: 20px 4px 10px; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .5px; }
  .view-service-landing .sland-info { background: var(--bg-card); border-radius: 14px; overflow: hidden; }
  .view-service-landing .sland-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
  .view-service-landing .sland-row:last-child { border-bottom: none; }
  .view-service-landing .sland-row-label { flex-shrink: 0; font-size: 14px; color: var(--text-2); }
  .view-service-landing .sland-row-value { flex: 1; text-align: right; font-size: 14px; color: var(--text-1); word-break: break-all; }
  .view-service-landing .sland-row-value.addr { font-family: monospace; font-size: 12px; color: var(--text-3); max-height: 40px; overflow: hidden; }
  .view-service-landing .sland-footer { flex-shrink: 0; padding: 12px 16px; background: var(--bg-card); border-top: 1px solid var(--border); }
  .view-service-landing .sland-open { width: 100%; height: 48px; border: none; border-radius: 12px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
  .view-service-landing .sland-open:active { background: var(--primary-hover); }
  .view-service-landing .sland-open.pending { background: #E5E9F0; color: var(--text-3); cursor: not-allowed; }

  /* ===================== 服务管理后台（增删改查） ===================== */
  .view-sub .sadm-add { flex-shrink: 0; height: 30px; padding: 0 12px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .sadm-add:active { background: var(--primary-hover); }
  .sadm-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
  .sadm-search { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); font-size: 14px; color: var(--text-1); font-family: var(--font); outline: none; box-sizing: border-box; }
  .sadm-search:focus { border-color: var(--primary); }
  .sadm-reset { flex-shrink: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; }
  .sadm-reset:active { background: #F1F5F9; }
  .sadm-count { font-size: 12px; color: var(--text-3); margin: 0 4px 8px; }
  .sadm-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
  .sadm-row-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
  .sadm-row-icon svg { width: 18px; height: 18px; }
  .sadm-row-info { flex: 1; min-width: 0; }
  .sadm-row-name { font-size: 14px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sadm-row-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
  .sadm-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .sadm-btn { height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-2); font-size: 12px; font-family: var(--font); cursor: pointer; }
  .sadm-btn:active { background: #F1F5F9; }
  .sadm-btn.danger { color: #DC2626; border-color: #FECACA; }
  .sadm-empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
  .sadm-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
  .sadm-form .field { margin-bottom: 14px; }
  .sadm-form .field-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
  .sadm-form .input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-page); font-size: 14px; color: var(--text-1); font-family: var(--font); outline: none; box-sizing: border-box; }
  .sadm-form .input:focus { border-color: var(--primary); background: #fff; }
  .sadm-form textarea.input { height: 72px; padding: 10px 12px; resize: none; line-height: 20px; }
  .sadm-form select.input { appearance: none; -webkit-appearance: none; }
  .sadm-form-row { display: flex; gap: 10px; }
  .sadm-form-row .field { flex: 1; min-width: 0; }
  .sadm-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); font-weight: 400; }
  .sadm-switch input { width: 16px; height: 16px; }
  .sadm-actions { display: flex; gap: 10px; margin-top: 4px; }
  .sadm-save { flex: 1; height: 44px; border: none; border-radius: 12px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .sadm-save:active { background: var(--primary-hover); }
  .sadm-cancel { flex: 1; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); color: var(--text-2); font-size: 15px; font-family: var(--font); cursor: pointer; }
  .sadm-cancel:active { background: #F1F5F9; }

  /* ===================== 设置 ===================== */
  .view-settings {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-settings.active { transform: translateX(0); }
  .view-settings .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-settings .settings-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-settings .settings-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-settings .settings-head-spacer { width: 36px; flex-shrink: 0; }
  .view-settings .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-settings .head-btn:active { background: #F1F5F9; }
  .view-settings .head-btn svg { width: 24px; height: 24px; }
  .view-settings .settings-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-settings .settings-body::-webkit-scrollbar { display: none; }
  .view-settings .settings-section { margin: 12px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-settings .settings-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .view-settings .settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-settings .settings-row:last-child { border-bottom: none; }
  .view-settings .settings-row:active { background: #F9FAFB; }
  .view-settings .settings-row.static { cursor: default; }
  .view-settings .settings-row.static:active { background: transparent; }
  .view-settings .settings-label { font-size: 15px; color: var(--text-1); }
  .view-settings .settings-value { font-size: 14px; color: var(--text-3); }
  .view-settings .settings-arrow { color: var(--text-3); font-size: 14px; }
  .view-settings .settings-logout {
    margin-top: 24px; width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 12px;
    background: #FFFFFF; color: var(--danger); font-size: 16px; font-weight: 600;
    font-family: var(--font); cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.04);
  }

  /* ===================== 通用二级子页（账号/通知/文档/表单/二维码/列表等） ===================== */
  .view-sub {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 30;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-sub.active { transform: translateX(0); }
  .view-sub .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-sub .sub-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-sub .sub-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-sub .sub-head-spacer { width: 36px; flex-shrink: 0; }
  .view-sub .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-sub .head-btn:active { background: #F1F5F9; }
  .view-sub .head-btn svg { width: 24px; height: 24px; }
  .view-sub .sub-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-sub .sub-body::-webkit-scrollbar { display: none; }

  /* 分组 / 行（复用设置页视觉） */
  .view-sub .sub-section { margin: 12px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-sub .sub-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .view-sub .sub-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-sub .sub-row:last-child { border-bottom: none; }
  .view-sub .sub-row:active { background: #F9FAFB; }
  .view-sub .sub-row.static { cursor: default; }
  .view-sub .sub-row.static:active { background: transparent; }
  .view-sub .sub-label { font-size: 15px; color: var(--text-1); }
  .view-sub .sub-value { font-size: 14px; color: var(--text-3); }
  .view-sub .sub-arrow { color: var(--text-3); font-size: 14px; }
  .view-sub .sub-right { display: flex; align-items: center; gap: 12px; }
  .view-sub .sub-desc { font-size: 13px; color: var(--text-3); line-height: 20px; }
  .view-sub .sub-badge { flex-shrink: 0; margin-right: 8px; padding: 1px 7px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .sub-badge.warn { background: #FEF3C7; color: #B45309; }
  .view-sub .sub-action { flex-shrink: 0; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; }
  .view-sub .sub-action.danger { color: var(--danger); border-color: #FECACA; }
  .view-sub .sub-action:active { background: #F9FAFB; }

  /* 表单 */
  .view-sub .form { padding: 4px 0; }
  .view-sub .avatar-picker { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 16px; }
  .view-sub .avatar-preview { width: 76px; height: 76px; border-radius: 16px; background: var(--bg-card); color: var(--text-1); font-size: 34px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
  .view-sub .avatar-emoji-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .view-sub .avatar-emoji { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .view-sub .avatar-emoji.active { border-color: #111827; background: var(--bg-card); }
  .view-sub .field { margin-bottom: 16px; }
  .view-sub .field-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
  .view-sub .input {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px;
    background: #F9FAFB; font-size: 15px; color: var(--text-1); font-family: var(--font); outline: none;
    transition: border-color .15s, background .15s;
  }
  .view-sub .input:focus { border-color: var(--primary); background: #fff; }
  .view-sub .input::placeholder { color: var(--text-3); }
  .view-sub textarea.input { height: 132px; padding: 12px 14px; resize: none; line-height: 22px; }
  .view-sub .input-row { display: flex; gap: 10px; }
  .view-sub .input-row .input { flex: 1; }
  .view-sub .code-btn {
    flex-shrink: 0; height: 48px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 12px;
    background: #fff; color: var(--primary); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer;
  }
  .view-sub .code-btn:active { background: var(--primary-soft); }
  .view-sub .code-btn:disabled { border-color: var(--border); color: var(--text-3); background: #F1F5F9; cursor: default; }
  .view-sub .submit {
    margin-top: 8px; width: 100%; height: 46px; border: none; border-radius: 12px;
    background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; font-family: var(--font); cursor: pointer;
  }
  .view-sub .submit:active { background: var(--primary-hover); }

  /* 开关 */
  .view-sub .switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
  .view-sub .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  .view-sub .switch .knob { position: absolute; inset: 0; border-radius: 999px; background: #D1D5DB; transition: background .2s; cursor: pointer; }
  .view-sub .switch .knob::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
  }
  .view-sub .switch input:checked + .knob { background: var(--primary); }
  .view-sub .switch input:checked + .knob::after { transform: translateX(18px); }

  /* 正文文档 */
  .view-sub .doc-title { font-size: 20px; font-weight: 700; color: var(--text-1); margin: 4px 4px 16px; }
  .view-sub .doc-h { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 16px 4px 8px; }
  .view-sub .doc-p { font-size: 14px; line-height: 24px; color: var(--text-2); margin: 0 4px 12px; }

  /* 二维码卡片 */
  .view-sub .code-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; }
  .view-sub .code-qr { width: 180px; height: 180px; border-radius: 14px; background: var(--primary-soft); border: 1px solid #DBEAFE; display: flex; align-items: center; justify-content: center; font-size: 88px; }
  .view-sub .code-name { margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--text-1); }
  .view-sub .code-id { margin-top: 4px; font-size: 13px; color: var(--text-3); }
  .view-sub .code-tip { margin-top: 18px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 18px; }

  /* 大数字 / 余额 */
  .view-sub .hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; }
  .view-sub .hero-value { font-size: 40px; font-weight: 700; color: var(--text-1); letter-spacing: .5px; }
  .view-sub .hero-value.green { color: var(--success); }
  .view-sub .hero-sub { margin-top: 6px; font-size: 13px; color: var(--text-3); }

  /* ===================== 校园地图 + 校园论坛 ===================== */
  .view-sub .map-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #F3F4F6; border-radius: 10px; margin-bottom: 12px; color: var(--text-3); }
  .view-sub .map-search svg { width: 16px; height: 16px; flex-shrink: 0; }
  .view-sub .map-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text-1); font-family: var(--font); }
  .view-sub .map-search input::placeholder { color: var(--text-3); }
  .view-sub .map-wrap { position: relative; margin-bottom: 4px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #E8F1E4; height: 320px; }
  .view-sub .map-canvas { width: 100%; height: 100%; }
  .view-sub .map-loading { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(17,24,39,.72); color: #fff; font-size: 12px; }
  .loc-pin { position: relative; width: 22px; height: 22px; }
  .loc-pin-halo { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(29,78,216,.28); }
  .loc-pin-dot { position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #1D4ED8; border: 2px solid #fff; box-shadow: 0 0 6px rgba(29,78,216,.6); }
  .view-sub .sub-section.map-section-head { display: flex; align-items: center; justify-content: space-between; }
  .view-sub .map-locate { flex-shrink: 0; height: 32px; padding: 0 14px; border: none; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; box-shadow: 0 4px 12px rgba(29,78,216,.32); }

  .view-sub .forum-tabs { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-bottom: none; border-radius: 16px 16px 0 0; overflow: hidden; }
  .view-sub .forum-tab { flex: 1; padding: 12px 0; font-size: 14px; color: var(--text-2); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; font-family: var(--font); }
  .view-sub .forum-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
  .view-sub .forum-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
  .view-sub .forum-post { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
  .view-sub .forum-post:active { background: #F9FAFB; }
  .view-sub .forum-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .forum-title { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 21px; }
  .view-sub .forum-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
  .view-sub .forum-foot { margin-top: 8px; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-3); }
  .view-sub .forum-body { font-size: 14px; line-height: 22px; color: var(--text-2); margin: 12px 4px; }
  .view-sub .forum-comment { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .view-sub .forum-comment:last-child { border-bottom: none; }
  .view-sub .forum-cm-author { font-size: 13px; font-weight: 600; color: var(--text-1); }
  .view-sub .forum-cm-text { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 19px; }
  .view-sub .forum-cm-time { margin-top: 4px; font-size: 11px; color: var(--text-3); }

  /* 进度条 */
  .view-sub .meter { height: 8px; border-radius: 999px; background: #E5E7EB; overflow: hidden; margin: 10px 0 4px; }
  .view-sub .meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

  .view-sub .run-goal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px; }
  .view-sub .run-goal-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--text-3); }
  .view-sub .run-goal-value { margin-top: 8px; font-size: 36px; font-weight: 700; color: var(--text-1); line-height: 1; font-variant-numeric: tabular-nums; }
  .view-sub .run-goal-value em { font-style: normal; font-size: 16px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
  .view-sub .run-goal .meter span { background: var(--success); }
  .view-sub .run-goal-sub { margin-top: 6px; font-size: 12px; color: var(--text-3); }
  .view-sub .run-stats { display: flex; gap: 10px; margin-top: 10px; }
  .view-sub .run-stat { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; text-align: center; }
  .view-sub .run-stat b { display: block; font-size: 22px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .view-sub .run-stat span { font-size: 12px; color: var(--text-3); }
  .view-sub .run-start { margin-top: 14px; width: 100%; height: 52px; border: none; border-radius: 14px; background: var(--success); color: #fff; font-size: 17px; font-weight: 700; font-family: var(--font); cursor: pointer; box-shadow: 0 6px 16px rgba(22,163,74,.28); }
  .view-sub .run-start:active { background: #15803D; }
  /* 推荐路线 */
  .view-sub .run-route { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-sub .run-route:last-child { border-bottom: none; }
  .view-sub .run-route:active { background: #F9FAFB; }
  .view-sub .run-route-l { display: flex; align-items: center; gap: 10px; }
  .view-sub .run-route-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--primary-soft); flex-shrink: 0; }
  .view-sub .run-route-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .run-route-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
  .view-sub .run-route-km { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
  /* 排行榜 */
  .view-sub .rank-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
  .view-sub .rank-item:last-child { border-bottom: none; }
  .view-sub .rank-item.self { background: var(--primary-soft); }
  .view-sub .rank-no { width: 30px; flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--text-3); text-align: center; }
  .view-sub .rank-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; background: var(--primary); }
  .view-sub .rank-info { flex: 1; min-width: 0; }
  .view-sub .rank-name { font-size: 15px; color: var(--text-1); }
  .view-sub .rank-name .me { color: var(--primary); font-weight: 600; }
  .view-sub .rank-dept { font-size: 12px; color: var(--text-3); margin-top: 1px; }
  .view-sub .rank-km { font-size: 16px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .view-sub .rank-km em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
  /* 好友挑战 */
  .view-sub .friend-item { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .view-sub .friend-item:last-child { border-bottom: none; }
  .view-sub .friend-top { display: flex; align-items: center; gap: 10px; }
  .view-sub .friend-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; background: var(--accent); }
  .view-sub .friend-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .friend-text { font-size: 13px; color: var(--text-2); margin-top: 2px; }
  .view-sub .friend-meter { margin: 10px 0 8px; height: 6px; border-radius: 999px; background: #E5E7EB; overflow: hidden; }
  .view-sub .friend-meter span { display: block; height: 100%; background: var(--success); border-radius: 999px; }
  .view-sub .friend-foot { display: flex; align-items: center; justify-content: space-between; }
  .view-sub .friend-prog { font-size: 12px; color: var(--text-3); }
  .view-sub .friend-actions { display: flex; gap: 8px; }
  .view-sub .friend-btn { padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; }
  .view-sub .friend-btn:active { background: #F9FAFB; }
  .view-sub .friend-btn.primary { background: var(--primary-soft); color: var(--primary); border-color: #DBEAFE; }
  .view-sub .friend-btn.liked { color: #E11D48; border-color: #FECDD3; }
  /* 跑步中（深色沉浸） */
  #view-campus-run-active { background: #0B1220; }
  #view-campus-run-active .statusbar { background: transparent; color: rgba(255,255,255,.6); }
  #view-campus-run-active .sub-head { background: transparent; border-bottom: none; }
  #view-campus-run-active .sub-head-title { color: #fff; }
  #view-campus-run-active .head-btn { color: #fff; background: rgba(255,255,255,.08); }
  #view-campus-run-active .head-btn:active { background: rgba(255,255,255,.16); }
  #view-campus-run-active .sub-body { display: flex; flex-direction: column; }
  .view-sub .run-live { text-align: center; padding: 6px 0 2px; }
  .view-sub .run-live-time { font-size: 44px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
  .view-sub .run-live-dist { font-size: 22px; color: #6EE7B7; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
  .view-sub .run-live-map { flex: 1; min-height: 210px; margin: 12px 0; border-radius: 16px; overflow: hidden; background: #0F1E33; border: 1px solid rgba(255,255,255,.08); position: relative; }
  .view-sub .run-live-map svg { display: block; width: 100%; height: 100%; }
  .view-sub .run-live-metrics { display: flex; justify-content: space-around; padding: 10px 0 14px; }
  .view-sub .run-live-metric { text-align: center; }
  .view-sub .run-live-metric b { display: block; font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
  .view-sub .run-live-metric span { font-size: 12px; color: rgba(255,255,255,.5); }
  .view-sub .run-controls { display: flex; gap: 12px; padding-bottom: 6px; }
  .view-sub .run-ctrl { flex: 1; height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; font-family: var(--font); cursor: pointer; border: none; }
  .view-sub .run-ctrl.pause { background: rgba(255,255,255,.12); color: #fff; }
  .view-sub .run-ctrl.pause:active { background: rgba(255,255,255,.2); }
  .view-sub .run-ctrl.pause { position: relative; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: none; }
  .view-sub .run-ctrl-label { transition: opacity .15s ease; }
  .view-sub .run-hold-ring { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: conic-gradient(#DC2626 0deg, #fff 0deg); border: 2px solid rgba(255,255,255,.85); opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
  .view-sub .run-ctrl.pause.holding .run-ctrl-label { opacity: 0; }
  .view-sub .run-ctrl.pause.holding .run-hold-ring { opacity: 1; transform: scale(1); }
  .view-sub .run-ctrl.end { background: var(--danger); color: #fff; }
  .view-sub .run-ctrl.end:active { background: #B91C1C; }
  /* 结果页 */
  .view-sub .run-result-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; }
  .view-sub .run-result-km { font-size: 52px; font-weight: 700; color: var(--success); font-variant-numeric: tabular-nums; line-height: 1; }
  .view-sub .run-result-km em { font-style: normal; font-size: 18px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
  .view-sub .run-result-row { display: flex; justify-content: space-around; width: 100%; margin-top: 20px; }
  .view-sub .run-result-cell { text-align: center; }
  .view-sub .run-result-cell b { display: block; font-size: 20px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .view-sub .run-result-cell span { font-size: 12px; color: var(--text-3); }
  .view-sub .run-result-tip { margin-top: 16px; font-size: 13px; color: var(--success); font-weight: 600; }
  .view-sub .run-result-actions { display: flex; gap: 12px; margin-top: 20px; }
  .view-sub .run-result-actions .run-ctrl { flex: 1; }
  .view-sub .run-ctrl.again { background: var(--success); color: #fff; }
  .view-sub .run-ctrl.again:active { background: #15803D; }
  .view-sub .run-ctrl.done { background: var(--primary); color: #fff; }
  .view-sub .run-ctrl.done:active { background: var(--primary-hover); }


  /* ===================== 校园兼职 ===================== */
  .view-sub .pt-actions { display: flex; gap: 10px; margin-bottom: 14px; }
  .view-sub .pt-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; border: none; }
  .view-sub .pt-action.publish { background: var(--primary); color: #fff; }
  .view-sub .pt-action.publish:active { background: var(--primary-hover); }
  .view-sub .pt-action.mine { background: var(--primary-soft); color: var(--primary); }
  .view-sub .pt-action.mine:active { background: #DBEAFE; }

  .view-sub .pt-tabs { display: flex; overflow-x: auto; gap: 8px; margin-bottom: 12px; scrollbar-width: none; }
  .view-sub .pt-tabs::-webkit-scrollbar { display: none; }
  .view-sub .pt-tab { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font); }
  .view-sub .pt-tab.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }

  .view-sub .pt-list { display: flex; flex-direction: column; gap: 10px; }
  .view-sub .pt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
  .view-sub .pt-card:active { background: #F9FAFB; }
  .view-sub .pt-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .view-sub .pt-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .pt-reward { flex-shrink: 0; font-size: 17px; font-weight: 700; color: #EA580C; }
  .view-sub .pt-reward::before { content: '¥'; font-size: 12px; }
  .view-sub .pt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .view-sub .pt-chip { padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .pt-tag { font-size: 12px; color: var(--text-3); }
  .view-sub .pt-badge { flex-shrink: 0; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .pt-badge.open { background: #DCFCE7; color: #15803D; }
  .view-sub .pt-badge.taken { background: #FEF3C7; color: #B45309; }
  .view-sub .pt-badge.done { background: #F1F5F9; color: #64748B; }
  .view-sub .pt-empty { text-align: center; padding: 48px 0; color: var(--text-3); font-size: 14px; }

  /* 学分 / 兼职 模式切换 */
  .view-sub .pt-mode { flex-shrink: 0; display: flex; gap: 2px; background: #E9ECF1; border-radius: 999px; padding: 3px; margin-bottom: 14px; }
  .view-sub .pt-mode-btn { flex: 1; padding: 9px 0; border: none; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-mode-btn.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .view-sub .cr-list { display: flex; flex-direction: column; gap: 10px; }
  .view-sub .cr-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
  .view-sub .cr-card:active { background: #F9FAFB; }
  .view-sub .cr-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .view-sub .cr-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .cr-credit { flex-shrink: 0; font-size: 16px; font-weight: 700; color: var(--primary); white-space: nowrap; }
  .view-sub .cr-credit em { font-style: normal; font-size: 12px; font-weight: 600; }
  .view-sub .cr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

  .view-sub .pt-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
  .view-sub .pt-filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-1); font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-filter-btn:active { background: #F1F5F9; }
  .view-sub .pt-filter-state { font-size: 11px; font-weight: 400; color: var(--primary); }
  .view-sub .pt-filter-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
  .view-sub .pt-filter-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
  .view-sub .pt-filter-row:last-of-type { margin-bottom: 14px; }
  .view-sub .pt-filter-label { flex-shrink: 0; font-size: 13px; color: var(--text-2); line-height: 30px; }
  .view-sub .pt-sort-group { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
  .view-sub .pt-sort-item { padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font); }
  .view-sub .pt-sort-item.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
  .view-sub .pt-range-group { flex: 1; display: flex; align-items: center; gap: 8px; }
  .view-sub .pt-range-input { width: 0; flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text-1); background: #fff; font-family: var(--font); }
  .view-sub .pt-range-input:focus { border-color: var(--primary); outline: none; }
  .view-sub .pt-range-sep { flex-shrink: 0; color: var(--text-3); }
  .view-sub .pt-filter-actions { display: flex; gap: 10px; }
  .view-sub .pt-filter-reset { flex: 1; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-2); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-filter-apply { flex: 1; height: 38px; border: none; border-radius: 10px; background: #E5E7EB; color: #4B5563; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-filter-apply:active { background: var(--primary-hover); }

  .view-sub .pt-detail-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
  .view-sub .pt-detail-reward { font-size: 40px; font-weight: 700; color: #EA580C; }
  .view-sub .pt-detail-reward::before { content: '¥'; font-size: 22px; }
  .view-sub .pt-detail-title { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--text-1); text-align: center; }
  .view-sub .pt-detail-row { display: flex; align-items: center; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
  .view-sub .pt-detail-row:last-child { border-bottom: none; }
  .view-sub .pt-detail-row .k { flex-shrink: 0; width: 72px; color: var(--text-3); font-size: 13px; }
  .view-sub .pt-detail-row .v { flex: 1; min-width: 0; color: var(--text-1); }
  .view-sub .pt-detail-desc { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--text-2); }

  .view-sub .pt-seg { display: flex; flex-wrap: wrap; gap: 8px; }
  .view-sub .pt-seg-item { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font); }
  .view-sub .pt-seg-item.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }

  .view-sub .pt-earn { background: linear-gradient(135deg, var(--primary), #2563EB); border-radius: 16px; padding: 20px 18px; margin-bottom: 14px; color: #fff; }
  .view-sub .pt-earn-value { font-size: 32px; font-weight: 700; }
  .view-sub .pt-earn-sub { margin-top: 4px; font-size: 13px; opacity: .9; }

  .view-sub .pt-stars { display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
  .view-sub .pt-star { font-size: 30px; line-height: 1; color: #E5E7EB; cursor: pointer; }
  .view-sub .pt-star.on { color: #F59E0B; }

  /* ===================== 个人名片（校园·联系人） ===================== */
  .view-sub .cp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px 16px; }
  .view-sub .cp-head { display: flex; align-items: center; gap: 14px; }
  .view-sub .cp-avatar { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; color: #fff; }
  .view-sub .cp-info { flex: 1; min-width: 0; }
  .view-sub .cp-name { font-size: 20px; font-weight: 600; color: var(--text-1); }
  .view-sub .cp-line { font-size: 13px; color: var(--text-3); margin-top: 4px; }
  .view-sub .cp-box { margin-top: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); padding: 4px 16px; }
  .view-sub .cp-box-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; }
  .view-sub .cp-box-label { flex-shrink: 0; font-size: 14px; color: var(--text-3); }
  .view-sub .cp-box-value { flex: 1; min-width: 0; text-align: right; font-size: 14px; color: var(--text-1); word-break: break-all; }
  .view-sub .cp-box-divider { height: 1px; background: var(--border); }
  .view-sub .cp-more { text-align: center; font-size: 14px; color: var(--primary); padding: 14px 0; cursor: pointer; }
  .view-sub .cp-more:active { opacity: .6; }
  .view-sub .cp-extra { border-top: 1px solid var(--border); padding: 4px 0 8px; }
  .view-sub .cp-extra-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; }
  .view-sub .cp-extra-label { flex-shrink: 0; font-size: 13px; color: var(--text-3); }
  .view-sub .cp-extra-value { flex: 1; min-width: 0; text-align: right; font-size: 13px; color: var(--text-1); word-break: break-all; }
  .view-sub .cp-actions { flex-shrink: 0; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-card); border-top: 1px solid var(--border); }
  .view-sub .cp-action { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-1); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .cp-action.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
  .view-sub .cp-action:active { background: #F1F5F9; }
  .view-sub .cp-action.primary:active { background: var(--primary-hover); }

  /* ===================== 周课表网格 ===================== */
  .week-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 4px 0 12px;
  }
  .week-nav {
    flex-shrink: 0; height: 34px; padding: 0 12px; border: 1px solid var(--border);
    border-radius: 17px; background: var(--bg-card); color: var(--text-2);
    font-size: 13px; font-family: var(--font); cursor: pointer;
  }
  .week-nav:active { background: #F1F5F9; }
  .week-nav:disabled { opacity: .4; cursor: default; background: var(--bg-card); }
  .week-info { flex: 1; text-align: center; min-width: 0; }
  .week-no { font-size: 16px; font-weight: 700; color: var(--text-1); }
  .week-range { margin-top: 2px; font-size: 11px; color: var(--text-3); }
  .sched-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  .sched-cell {
    background: var(--bg-card);
    min-height: 60px;
    padding: 4px 3px;
    font-size: 11px;
    display: flex; flex-direction: column; gap: 3px; align-items: stretch;
  }
  .sched-head {
    background: #F8FAFC; font-weight: 600; color: var(--text-2);
    font-size: 12px; min-height: 34px;
    display: flex; align-items: center; justify-content: center;
  }
  .sched-head.today { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
  .sched-time {
    background: #F8FAFC; color: var(--text-3); font-size: 10px; line-height: 1.3;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    padding: 4px 2px;
  }
  .sched-course {
    background: var(--primary-soft); border: 1px solid #DBEAFE;
    border-radius: 8px; padding: 4px 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; line-height: 1.25; min-height: 0;
  }
  .sched-course .nm { font-size: 11px; font-weight: 600; color: var(--primary); }
  .sched-course .rm { font-size: 9px; color: var(--text-3); margin-top: 1px; }
  /* 今日课表（单日列表模式） */
  .sched-day { display: flex; flex-direction: column; gap: 10px; }
  .sched-day .day-head { font-size: 15px; font-weight: 700; color: var(--text-1); text-align: center; margin-bottom: 2px; }
  .sched-day .day-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
  .sched-day .day-period { flex-shrink: 0; width: 58px; text-align: center; }
  .sched-day .day-period .no { font-size: 13px; font-weight: 700; color: var(--primary); }
  .sched-day .day-period .tm { font-size: 10px; color: var(--text-3); margin-top: 2px; }
  .sched-day .day-info { flex: 1; min-width: 0; }
  .sched-day .day-info .nm { font-size: 14px; font-weight: 600; color: var(--text-1); }
  .sched-day .day-info .rm { font-size: 12px; color: var(--text-3); margin-top: 3px; }
  .sched-day .day-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 30px 0; }
  .view-settings .settings-logout:active { background: #FEF2F2; }

  /* ===== 全局 Toast（横跨所有视图） ===== */
  .album-mask {
    position: fixed; inset: 0; background: rgba(17,24,39,.42); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 140; padding: 0 32px;
  }
  .album-mask.show { opacity: 1; pointer-events: auto; }
  .album-dialog { width: 100%; max-width: 320px; background: #FFFFFF; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(17,24,39,.24); }
  .album-dialog-title { padding: 20px 20px 6px; font-size: 17px; font-weight: 700; color: var(--text-1); text-align: center; }
  .album-dialog-body { padding: 6px 20px 18px; font-size: 13px; line-height: 20px; color: var(--text-2); text-align: center; }
  .album-dialog-actions { display: flex; border-top: 1px solid var(--border); }
  .album-dialog-btn { flex: 1; padding: 14px 0; border: none; background: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); }
  .album-dialog-btn.cancel { color: var(--text-2); border-right: 1px solid var(--border); }
  .album-dialog-btn.allow { color: var(--primary); }
  .album-dialog-btn:active { background: #F1F5F9; }.album-dialog-btn:active { background: #F1F5F9; }

  /* ===== 头像放大遮罩 + 裁剪 ===== */
  .avatar-zoom-mask { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 9999; }
  .avatar-zoom-mask.show { opacity: 1; pointer-events: auto; }
  .avatar-zoom-box { position: relative; display: flex; align-items: center; justify-content: center; }
  .avatar-zoom-img { width: 220px; height: 220px; border-radius: 16px; object-fit: cover; background: #fff; border: none; }
  .avatar-zoom-album { position: absolute; right: -8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); border: none; cursor: pointer; }
  .avatar-zoom-album svg { width: 24px; height: 24px; }

  .avatar-crop-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10000; }
  .avatar-crop-wrap.show { opacity: 1; pointer-events: auto; }
  .avatar-crop-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .avatar-crop-inner { position: relative; width: 260px; height: 260px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255,255,255,.6); touch-action: none; }
  .avatar-crop-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
  .avatar-crop-hint { text-align: center; color: #fff; font-size: 13px; }
  .avatar-crop-actions { display: flex; gap: 12px; justify-content: center; }
  .avatar-crop-btn { padding: 10px 26px; border-radius: 22px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); }
  .avatar-crop-btn.cancel { background: rgba(255,255,255,.18); color: #fff; }
  .avatar-crop-btn.confirm { background: #FFFFFF; color: var(--primary); }

  /* ===== 私信多选相册 ===== */
  .chat-album-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 92; }
  .chat-album-mask.show { opacity: 1; pointer-events: auto; }
  .chat-album-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #FFFFFF; }
  .chat-album-title { font-size: 16px; font-weight: 700; color: var(--text-1); }
  .chat-album-cancel { background: none; border: none; font-size: 15px; color: var(--text-2); cursor: pointer; font-family: var(--font); }
  .chat-album-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; background: #111; }
  .chat-album-item { position: relative; aspect-ratio: 1; cursor: pointer; }
  .chat-album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .chat-album-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
  .chat-album-check svg { width: 14px; height: 14px; opacity: 0; }
  .chat-album-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; pointer-events: none; }
  .chat-album-item.selected .chat-album-check { background: var(--primary); border-color: var(--primary); }
  .chat-album-item.selected .chat-album-check svg { opacity: 1; }
  .chat-album-foot { background: #FFFFFF; padding: 12px 16px; display: flex; justify-content: flex-end; }
  .chat-album-send { padding: 10px 32px; border-radius: 22px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); background: #D1D5DB; color: #fff; }
  .chat-album-send.active { background: var(--primary); }

  .toast {
    position: absolute; top: 52px; left: 50%;
    transform: translate(-50%, -80px);
    max-width: 82%; padding: 10px 18px; border-radius: 12px;
    background: rgba(17,24,39,.92); color: #FFFFFF;
    font-size: 13px; line-height: 20px; text-align: center;
    opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s;
    z-index: 50;
  }
  .toast.show { transform: translate(-50%, 0); opacity: 1; }
  .toast.error { background: rgba(220,38,38,.95); }
  .toast.success { background: rgba(22,163,74,.95); }
  .toast.bottom { top: auto; bottom: 96px; transform: translate(-50%, 80px); }
  .toast.bottom.show { transform: translate(-50%, 0); }

  /* ===== 长按操作菜单（紧凑浮动菜单，随字号缩放，贴近长按点） ===== */
  .msg-sheet-mask { position: absolute; inset: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 40; }
  .msg-sheet-mask.show { opacity: 1; pointer-events: auto; }
  .msg-menu { position: absolute; left: 0; top: 0; min-width: 9.6em; max-width: 13em; background: #FFFFFF; border-radius: 8px; box-shadow: 0 6px 24px rgba(17,24,39,.16); padding: 5px 0; transform: scale(.6); opacity: 0; transform-origin: 0 0; transition: transform .18s cubic-bezier(.22,1,.36,1), opacity .18s ease; overflow: hidden; font-size: 14px; font-family: var(--font); }
  .msg-sheet-mask.show .msg-menu { transform: scale(1); opacity: 1; }
  .msg-menu .menu-item { display: block; width: 100%; padding: .6em 1.1em; background: none; border: none; font-size: 1em; line-height: 1.4; color: var(--text-1); text-align: left; white-space: nowrap; cursor: pointer; }
  .msg-menu .menu-item + .menu-item { border-top: 1px solid #F3F4F6; }
  .msg-menu .menu-item:active { background: #F5F7FA; }
  .msg-menu .menu-item.danger { color: var(--danger); }

  .hint { font-size: 12px; color: #94A3B8; }
  .replay {
    padding: 10px 18px; border: 1px solid #C9D2E0; border-radius: 999px;
    background: #FFFFFF; color: #334155; font-size: 13px; font-family: var(--font); cursor: pointer;
  }
  .replay:hover { background: #F1F5F9; }

  /* ===== 教师端（全新独立导航：服务大厅 / 待办审批 / 公告 / 我的） ===== */
  #view-teacher .t-admin-badge { flex-shrink:0; padding:2px 8px; border-radius:999px; background:#FEF3C7; color:var(--warning); font-size:11px; font-weight:600; line-height:16px; }
  #view-teacher .t-todo-group, #view-teacher-todo .t-todo-group { padding:12px 16px 4px; font-size:14px; font-weight:600; color:var(--text-1); }
  #view-teacher .t-todo-item, #view-teacher-todo .t-todo-item { display:flex; align-items:center; gap:10px; margin:0 16px 8px; padding:12px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; }
  #view-teacher .t-todo-main, #view-teacher-todo .t-todo-main { flex:1; min-width:0; }
  #view-teacher .t-todo-name, #view-teacher-todo .t-todo-name { font-size:14px; color:var(--text-1); font-weight:500; }
  #view-teacher .t-todo-sub, #view-teacher-todo .t-todo-sub { font-size:12px; color:var(--text-3); margin-top:2px; }
  #view-teacher .t-btn, #view-teacher-todo .t-btn { flex-shrink:0; padding:6px 14px; border-radius:999px; border:1px solid var(--border); background:var(--bg-card); color:var(--text-2); font-size:13px; cursor:pointer; font-family:var(--font); }
  #view-teacher .t-btn.approve, #view-teacher-todo .t-btn.approve { background:var(--primary); border-color:var(--primary); color:#fff; }
  #view-teacher .t-btn.reject, #view-teacher-todo .t-btn.reject { color:var(--danger); border-color:#FECACA; background:#FFF1F2; }
  #view-teacher .t-notice-item { display:flex; align-items:center; gap:12px; margin:0 16px 8px; padding:14px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; cursor:pointer; }
  #view-teacher .t-notice-item:active { background:#F9FAFB; }
  #view-teacher .t-notice-icon { width:40px; height:40px; border-radius:12px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
  #view-teacher .t-notice-main { flex:1; min-width:0; }
  #view-teacher .t-notice-title { font-size:14px; color:var(--text-1); font-weight:500; }
  #view-teacher .t-notice-sub { font-size:12px; color:var(--text-3); margin-top:3px; }
  #view-teacher .t-notice-time { font-size:11px; color:var(--text-3); flex-shrink:0; }
  #view-teacher .t-logout { margin:20px 16px 24px; width:calc(100% - 32px); padding:14px; border-radius:14px; border:1px solid #FECACA; background:#FFF1F2; color:var(--danger); font-size:15px; font-weight:600; cursor:pointer; font-family:var(--font); }
  /* ==== 添加好友 ==== */
  #view-add-friend .addfriend-search { display:flex; gap:10px; align-items:center; margin-bottom:16px; }
  #view-add-friend .addfriend-search .input { flex:1; height:44px; border:1px solid var(--border); border-radius:12px; padding:0 14px; font-size:15px; background:#F9FAFB; outline:none; font-family:var(--font); }
  #view-add-friend .addfriend-search-btn { flex-shrink:0; height:44px; padding:0 18px; border:none; border-radius:12px; background:var(--primary); color:#fff; font-size:15px; font-weight:600; cursor:pointer; font-family:var(--font); }
  #view-add-friend .addfriend-empty { text-align:center; color:var(--text-3); font-size:14px; padding:60px 20px; }
  #view-add-friend .addfriend-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:20px 16px; display:flex; flex-direction:column; align-items:center; gap:12px; }
  #view-add-friend .af-avatar { width:72px; height:72px; border-radius:12px; background:#E5E7EB; color:#4B5563; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:600; overflow:hidden; flex-shrink:0; }
  #view-add-friend .af-avatar img { width:100%; height:100%; object-fit:cover; border-radius:12px; display:block; }
  #view-add-friend .af-name { font-size:18px; font-weight:600; color:var(--text-1); }
  #view-add-friend .af-sub { font-size:13px; color:var(--text-3); text-align:center; }
  #view-add-friend .af-add-btn { width:100%; height:44px; border:none; border-radius:12px; background:var(--primary); color:#fff; font-size:16px; font-weight:600; cursor:pointer; margin-top:4px; font-family:var(--font); }
  #view-add-friend .af-add-btn.done { background:#E5E7EB; color:var(--text-3); cursor:default; }
  .contact-empty { text-align:center; color:var(--text-3); font-size:14px; padding:40px 16px; }

  /* ============ 群聊模块样式 ============ */
  .g-avatar { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; overflow: hidden; }
  .g-avatar img, .g-avatar-img { width: 100%; height: 100%; object-fit: cover; }
  .g-member-pick { display: flex; flex-direction: column; }
  .g-pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .g-pick-row:last-child { border-bottom: none; }
  .g-pick-name { flex: 1; font-size: 15px; color: var(--text-1); }
  .g-pick-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #CBD5E1; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; flex-shrink: 0; }
  .g-pick-row.checked .g-pick-check { background: var(--primary); border-color: var(--primary); color: #fff; }
  .g-empty { padding: 16px 4px; font-size: 13px; color: var(--text-3); }
  .view-chat .g-sender { font-size: 11px; color: var(--text-3); margin: 0 0 3px 2px; }
  .view-chat .row.other .g-msg-wrap { display: flex; flex-direction: column; align-items: flex-start; max-width: 72%; }
  .view-chat .g-msg-wrap .bubble { max-width: 100%; }
  .g-info-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 0 16px; }
  .g-info-avatar { width: 64px; height: 64px; border-radius: 16px; background: #0EA5E9; color: #fff; font-size: 26px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
  .g-info-name { font-size: 18px; font-weight: 600; color: var(--text-1); }
  .g-info-sub { font-size: 13px; color: var(--text-3); }
  .g-member-list { margin-bottom: 16px; }
  .g-member-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .g-member-row:last-child { border-bottom: none; }
  .g-member-name { flex: 1; font-size: 15px; color: var(--text-1); }
  .g-member-owner { font-size: 11px; color: #F59E0B; font-weight: 600; margin-left: 6px; }
  .g-member-kick { flex-shrink: 0; padding: 5px 12px; border: 1px solid #FCA5A5; border-radius: 14px; background: none; color: #DC2626; font-size: 12px; cursor: pointer; font-family: var(--font); }
  .g-info-actions { display: flex; flex-direction: column; gap: 10px; }
  .g-action-btn { width: 100%; padding: 13px 0; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; background: var(--bg-card); color: var(--text-1); }
  .g-action-btn.danger { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
  .g-rename-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
  .g-rename-row .input { flex: 1; }
  .g-btn { flex-shrink: 0; padding: 0 14px; height: 40px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--font); cursor: pointer; background: var(--bg-card); color: var(--text-1); }
  .g-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* ============ 群聊 @ 艾特 ============ */
  .at-only { display: none !important; }
  .view-chat .at-only.show { display: inline-flex !important; }
  .at-btn { font-weight: 700; font-size: 18px; color: var(--primary); }
  .mention-mask { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 80; display: none; align-items: flex-end; }
  .mention-mask.show { display: flex; }
  .mention-panel { width: 100%; background: var(--bg-card); border-radius: 16px 16px 0 0; max-height: 60vh; overflow: hidden; }
  .mention-head { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text-1); border-bottom: 1px solid var(--border); }
  .mention-list { max-height: 52vh; overflow-y: auto; }
  .mention-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .mention-row:active { background: var(--bg-page); }
  .mention-row .g-avatar { width: 36px; height: 36px; font-size: 14px; }
  .mention-name { flex: 1; font-size: 15px; color: var(--text-1); }
  .at-highlight { color: var(--primary); font-weight: 600; }
  /* 艾特高亮：self 深色气泡内用浅色，避免与蓝底同色看不见 */
  .view-chat .row.self .bubble .at-highlight { color: #BFDBFE; }
  .view-chat .row.other .bubble .at-highlight { color: var(--primary); }
  /* ============ 璐璐 PPT 大纲卡片 ============ */
  .lulu-ppt-outline { max-width: 100%; }
  .lulu-ppt-otitle { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; }
  .lulu-ppt-opage { border-left: 3px solid var(--primary); padding-left: 10px; margin-bottom: 10px; }
  .lulu-ppt-ohead { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; }
  .lulu-ppt-opage ul { margin: 0; padding-left: 16px; }
  .lulu-ppt-opage li { font-size: 13px; color: #374151; line-height: 20px; }

  /* ===== 拍题答疑来源选择（底部弹层） ===== */
  .shoot-picker-mask { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; }
  .shoot-picker-mask.show { opacity: 1; pointer-events: auto; }
  .shoot-picker { width: 100%; max-width: 480px; background: #FFFFFF; border-radius: 16px 16px 0 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .shoot-picker-title { padding: 14px 0 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-2); }
  .shoot-picker-item { display: block; width: 100%; padding: 15px 0; border: none; border-top: 1px solid var(--border); background: none; font-size: 16px; color: var(--text-1); text-align: center; cursor: pointer; font-family: var(--font); }
  .shoot-picker-item:active { background: #F1F5F9; }
  .shoot-picker-cancel { display: block; width: 100%; margin-top: 8px; padding: 15px 0; border: none; border-radius: 12px; background: #F3F4F6; font-size: 16px; font-weight: 600; color: var(--text-1); text-align: center; cursor: pointer; font-family: var(--font); }
  .shoot-picker-cancel:active { background: #E7EAF0; }
/* ===== 璐璐语音通话界面 ===== */
#luluCallMask { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 20px 36px; background: linear-gradient(165deg, #dbeafe 0%, #e0e7ff 48%, #f3e8ff 100%); color: #1e293b; }

/* ===== 璐璐 Excel 下载卡片 ===== */
.lulu-excel-card { display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 12px; margin-top: 6px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.view-chat .bubble.other .lulu-excel-card { background: #fff; }
.lulu-excel-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #34c759, #16a34a); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lulu-excel-info { min-width: 0; }
.lulu-excel-name { font-size: 14px; color: #111827; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.lulu-excel-tip { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* ===== 璐璐打字机光标 ===== */
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #2563eb; animation: luluCaret 0.8s step-end infinite; }
@keyframes luluCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


/* ===== 璐璐回复操作栏（横线 + 复制/朗读/分享/重新回复，内嵌气泡 + 蓝色） ===== */
.lulu-actions { margin-top: 8px; }
.lulu-actions-hr { border: none; border-top: 1px solid #e3e8ef; margin: 0 0 6px; }
.lulu-actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lulu-act-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; background: #e7f0fd; color: #2563eb; font-size: 13px; line-height: 1; padding: 0; border-radius: 8px; cursor: pointer; flex: none; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.lulu-act-inner { display: inline-flex; align-items: center; justify-content: center; pointer-events: none; transition: transform .12s ease; }
.lulu-act-btn:active { background: #cfe1fb; transform: scale(.82); box-shadow: 0 2px 6px rgba(37,99,235,.18); }
.lulu-act-btn:active .lulu-act-inner { transform: scale(1.06); }
.lulu-act-btn[data-act="redo"] { margin-left: auto; }
.lulu-act-btn-tapped { transform: scale(.82); background: #cfe1fb; box-shadow: 0 2px 6px rgba(37,99,235,.18); }
.lulu-act-btn-tapped .lulu-act-inner { transform: scale(1.06); }


/* 璐璐视频通话：摄像头画面作为背景透出 */
/* 璐璐视频通话：摄像头画面显示在上方预览框内 */
.luluCallMediaBox.cam-active { background: #0f172a; border-color: #6366f1; }

/* ?????????????? + ?? + ?????? */
.voice-hold-overlay { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40000; display: none; align-items: center; justify-content: center; flex-direction: column; padding-bottom: calc(40px + env(safe-area-inset-bottom)); pointer-events: none; }
.voice-hold-overlay.show { display: flex; }
.voice-hold-tip { margin-bottom: 18px; font-size: 14px; color: #6B7280; text-align: center; }
.voice-hold-dome { width: 150px; height: 75px; border-radius: 75px 75px 0 0; background: rgba(59,130,246,.28); transition: background .2s ease; }
.voice-hold-overlay.cancel .voice-hold-dome { background: rgba(239,68,68,.45); }
.voice-hold-overlay.cancel .voice-hold-tip { color: #EF4444; }
.view-chat .input-box.hold-talk { text-align: center; }
.view-chat .input-box { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ????????????? + ??/?? + ????? */
/* wx-style friend voice */
/* 微信发语音 UI（浅色标准）：上方绿色声波小窗 + 中间白色半圆 + 左右灰胶囊 */
/* 微信发语音 UI（浅色标准）：白色半圆 + 中央绿色声波（录音时浮现）+ 左右灰胶囊「取消/转文字」 */
.fv-overlay { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 41000; }
.fv-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(17,24,39,.30); }

/* 顶部不再放常驻绿窗；绿窗绝对定位进半圆中央，录音时显示 */
.fv-center { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.fv-micwave { width: 74px; height: 74px; border-radius: 50%; background: #07C160; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 8px 22px rgba(7,193,96,.4); transition: background .16s ease; }
.fv-micwave span { width: 5px; height: 16px; border-radius: 3px; background: #fff; animation: fv-wave .9s infinite ease-in-out; }
.fv-micwave span:nth-child(2){ animation-delay:.12s; } .fv-micwave span:nth-child(3){ animation-delay:.24s; } .fv-micwave span:nth-child(4){ animation-delay:.36s; } .fv-micwave span:nth-child(5){ animation-delay:.48s; }
@keyframes fv-wave { 0%,100%{ height:10px; } 50%{ height:32px; } }
.fv-overlay.cancel .fv-micwave { background: #FA5151; box-shadow: 0 8px 22px rgba(250,81,81,.4); }

/* 转文字矩形（灰色半屏上面的结果） */
.fv-rect { display: none; width: 280px; min-height: 110px; max-height: 40vh; overflow: auto; padding: 14px 16px; border-radius: 12px; background: #fff; color: #111827; font-size: 15px; line-height: 22px; text-align: left; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.fv-overlay.transcribing .fv-rect { display: block; }
.fv-overlay.transcribing .fv-micwave { display: none; }

/* 底部：中央白色半圆 + 左右灰胶囊 */
.fv-bottom { position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 16px; z-index: 2; }
.fv-dome { position: relative; width: 180px; height: 100px; border-radius: 90px 90px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -2px 14px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; color: #374151; font-size: 15px; font-weight: 600; transition: background .15s ease, color .15s ease; overflow: hidden; }
.fv-overlay.cancel .fv-dome { background: rgba(255,240,240,.98); color: #FA5151; }
.fv-arc { min-width: 100px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 14px; color: #374151; background: rgba(255,255,255,.94); border: 1px solid rgba(209,213,219,.7); box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: background .15s ease, color .15s ease; }
.fv-arc-cancel.on, .fv-arc-cancel.fv-active, .fv-overlay.cancel .fv-arc-cancel { background: #FA5151; border-color: #FA5151; color: #fff; }
.fv-arc-text.on, .fv-arc-text.fv-active, .fv-overlay.text .fv-arc-text { background: #07C160; border-color: #07C160; color: #fff; }

/* 转文字灰色半屏 + 三按钮 */
.fv-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; display: none; background: linear-gradient(180deg, rgba(243,244,246,.94), rgba(229,231,235,.97)); border-radius: 20px 20px 0 0; z-index: 3; }
.fv-overlay.transcribing .fv-panel { display: block; }
.fv-overlay.transcribing .fv-bottom { display: none; }
.fv-overlay.transcribing .fv-center { display: none; }
.fv-panel-btns { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 28px; }
.fv-btn { border: none; cursor: pointer; font-family: var(--font); -webkit-tap-highlight-color: transparent; }
.fv-btn-cancel, .fv-btn-original { width: 66px; height: 66px; border-radius: 50%; background: #9CA3AF; display: flex; align-items: center; justify-content: center; }
.fv-btn-ic { color: #fff; font-size: 30px; line-height: 1; }
.fv-btn-send { min-width: 104px; height: 50px; padding: 0 28px; border-radius: 25px; background: #fff; color: #6B7280; font-size: 16px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.view-chat .input-box.hold-talk { text-align: center; font-weight: 700; }

/* ???????? */
.view-chat .voice-bubble { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 14px; cursor: pointer; min-width: 88px; }
.view-chat .row.self .voice-bubble { background: #95EC69; color: #1B5E20; flex-direction: row-reverse; }
.view-chat .row.other .voice-bubble { background: #fff; color: #111827; border: 1px solid rgba(0,0,0,.05); }
.view-chat .voice-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.view-chat .voice-wave i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: vw-wave 1.2s infinite ease-in-out; }
.view-chat .voice-wave i:nth-child(2){ height: 12px; animation-delay:.15s; }
.view-chat .voice-wave i:nth-child(3){ height: 18px; animation-delay:.3s; }
.view-chat .voice-bubble.playing .voice-wave i { animation-play-state: running; }
.view-chat .voice-bubble:not(.playing) .voice-wave i { animation-play-state: paused; height: 8px; }
.view-chat .voice-bubble:not(.playing) .voice-wave i:nth-child(2){ height: 14px; }
.view-chat .voice-bubble:not(.playing) .voice-wave i:nth-child(3){ height: 20px; }
.view-chat .voice-dur { font-size: 14px; font-weight: 500; }
@keyframes vw-wave { 0%,100%{ transform: scaleY(.5); } 50%{ transform: scaleY(1.4); } }.luluCallTop { width: 100%; text-align: center; }
.luluCallTitle { font-size: 15px; letter-spacing: 1px; color: #64748b; }
.luluCallTimer { font-size: 22px; font-weight: 700; margin-top: 6px; color: #1e293b; font-variant-numeric: tabular-nums; }
.luluCallStage { width: 100%; display: flex; flex-direction: column; align-items: center; }
.luluCallMediaBox { position: relative; width: 100%; height: 250px; display: flex; align-items: center; justify-content: center; border-radius: 24px; overflow: hidden; background: rgba(255,255,255,.45); border: 1px solid rgba(255,255,255,.7); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 16px 48px rgba(37,99,235,.14); }
.luluCallAvatarWrap { position: relative; width: 148px; height: 148px; }
.luluCallRing { position: absolute; inset: -16px; border-radius: 50%; border: 2px solid rgba(99,102,241,.35); }
.luluCallRing.on { animation: luluRing 2.4s ease-out infinite; }
@keyframes luluRing { 0% { transform: scale(.92); opacity: .75; } 70% { transform: scale(1.16); opacity: 0; } 100% { transform: scale(1.16); opacity: 0; } }
.luluCallAvatar { width: 148px; height: 148px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 12px 34px rgba(30,41,59,.25); }
.luluCallAvatar img { width: 100%; height: 100%; object-fit: cover; }
.luluCallAvatar.avatar-plain { display: flex; align-items: center; justify-content: center; background: #fff; }
.luluCallAvatar.avatar-plain .avatar-emoji { font-size: 58px; opacity: .5; }
#luluCallCamera { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; z-index: 1; }
.luluCallStatus { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8); font-size: 13px; color: #475569; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.luluCallStatus::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #6366f1; flex: none; }
.luluCallHear { margin-top: 12px; font-size: 17px; line-height: 26px; font-weight: 500; min-height: 26px; max-height: 128px; overflow-y: auto; -webkit-overflow-scrolling: touch; text-align: center; max-width: 90%; padding: 2px 6px; box-sizing: border-box; scrollbar-width: none; color: #1e293b; }
/* 底部按钮栏（语音+视频通用）：麦克风 | 静音(上)/视频通话(下) | 挂断 */
.luluCallBottom { width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 48px; }
.luluCallVideoWrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.luluCallMicBtn, .luluCallVideoBtn, .luluCallMuteBtn, .luluCallHangupBtn { border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; box-shadow: 0 6px 18px rgba(15,23,42,.22); -webkit-tap-highlight-color: transparent; transition: background .15s ease, transform .1s ease, box-shadow .15s ease; }
.luluCallMicBtn, .luluCallVideoBtn, .luluCallHangupBtn { width: 64px; height: 64px; font-size: 24px; }
.luluCallMicBtn { background: #fff; color: #475569; }
.luluCallMicBtn.listening { background: #3b82f6; color: #fff; box-shadow: 0 0 0 8px rgba(59,130,246,.25); }
.luluCallVideoBtn { background: #fff; color: #475569; }
.luluCallVideoBtn.on { background: #3b82f6; color: #fff; }
.luluCallMuteBtn { width: 48px; height: 48px; font-size: 20px; background: #fff; color: #475569; }
.luluCallMuteBtn.on { background: #3b82f6; color: #fff; }
.luluCallHangupBtn { background: #ef4444; color: #fff; box-shadow: 0 8px 22px rgba(239,68,68,.4); }
.luluCallMicBtn:active, .luluCallVideoBtn:active, .luluCallMuteBtn:active, .luluCallHangupBtn:active { transform: scale(.92); }
.luluCallMicBtn svg, .luluCallVideoBtn svg, .luluCallHangupBtn svg { display: block; width: 26px; height: 26px; }
.luluCallMuteBtn svg { display: block; width: 20px; height: 20px; }
/* ===== 璐璐独立视频通话页（app3 风格：透明背景 + 底部按钮） ===== */
#avatarCallMask { position: fixed; inset: 0; z-index: 2001; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 0 44px; background: transparent; }
.avatarCallStatus { position: fixed; top: calc(26px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2002; padding: 7px 16px; border-radius: 999px; background: rgba(15,23,42,.45); color: #fff; font-size: 13px; pointer-events: none; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.avatarCallHear { position: fixed; top: calc(74px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 2002; max-width: 86%; text-align: center; font-size: 17px; line-height: 26px; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgba(15,23,42,.6); pointer-events: none; max-height: 170px; overflow-y: auto; scrollbar-width: none; }
#avatarCallMask .luluCallBottom { width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 48px; }





  :root {
    --primary: #1D4ED8;
    --primary-hover: #1E40AF;
    --primary-soft: #EFF6FF;
    --accent: #0EA5E9;
    --success: #16A34A;
    --warning: #D97706;
    --danger: #DC2626;
    --bg-page: #F5F7FA;
    --bg-card: #FFFFFF;
    --text-1: #111827;
    --text-2: #4B5563;
    --text-3: #9CA3AF;
    --grad-hero: linear-gradient(180deg, #E3EEFF 0%, #EFF6FF 48%, #F5F7FA 100%);
    --shadow-glow: 0 14px 36px rgba(14, 165, 233, .28);
    --shadow-card: 0 18px 44px rgba(29, 78, 216, .14), 0 2px 8px rgba(16, 24, 40, .04);
    --grad-btn: linear-gradient(135deg, #1D4ED8 0%, #0EA5E9 100%);
    --border: #E5E7EB;
    --white: #FFFFFF;
    --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
    --kai: "STKaiti", "KaiTi", "楷体", "STFangsong", "FangSong", "仿宋", "SimSun", serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }
  *, *::before, *::after { -webkit-tap-highlight-color: transparent; }
  :focus { outline: none; }
  body { -webkit-user-select: none; user-select: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
  a, button, div, img, video, li, span { -webkit-tap-highlight-color: transparent; }
  button:active, .more-item:active, .msg-item:active, .contact-row:active { outline: none; }

  /* App 全屏适配：隐藏电脑模拟的手机状态栏文字、边框提示条与重播按钮 */
  .statusbar > span { display: none !important; }
  /* 顶部安全栏：缩小高度，只留一点空隙（原 40px 模拟状态栏改为小留白） */
  .view-main .statusbar,
  .view-chat .statusbar,
  .view-sdetail .statusbar,
  .view-placeholder .statusbar,
  .view-service-landing .statusbar,
  .view-settings .statusbar,
  .view-sub .statusbar { height: 2px; min-height: 2px; }
  .hint { display: none !important; }
  .replay { display: none !important; }

  body {
    min-height: 100vh;
    margin: 0;
    background: var(--bg-page);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
  }

  .phone {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #0B1220;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    flex-shrink: 0;
  }

  .screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: hidden;
    background: var(--bg-card);
  }

  /* ===== 视图层（启动 / 登录 / 主框架） ===== */
  .view {
    position: absolute; inset: 0;
    opacity: 0; pointer-events: none;
    transition: opacity .35s ease;
    z-index: 1;
  }
  .view.active { opacity: 1; pointer-events: auto; z-index: 2; }

  /* ===================== 启动页 ===================== */
  .view-splash {
    background: var(--primary);
    background-image: radial-gradient(120% 90% at 50% 30%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 56%);
    cursor: pointer;
  }
  .view-splash .statusbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 30px 0;
    color: var(--white);
    font-size: 14px; font-weight: 600; letter-spacing: .5px;
    opacity: .9;
  }
  .motto-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .motto {
    display: flex; align-items: flex-start;
    --motto-fs: 22px; --motto-ls: 8px;
    --motto-char: calc(var(--motto-fs) + var(--motto-ls));
    transform: translateY(calc(-4 * var(--motto-char)));
  }
  .motto .col-wrap { display: flex; }
  .motto .col-wrap.left  { margin-right: 18px; }
  .motto .col-wrap.right { margin-left: 18px; transform: translateY(calc(-1 * var(--motto-char))); }
  .motto .col {
    writing-mode: vertical-rl; text-orientation: upright;
    font-family: var(--kai); font-size: var(--motto-fs);
    letter-spacing: var(--motto-ls); line-height: 1;
    color: rgba(255,255,255,.95);
    opacity: 0; transform: translateY(24px);
    animation: rise .9s cubic-bezier(.22,1,.36,1) forwards;
  }
  .motto .col-wrap.left  .col { animation-delay: .2s; }
  .motto .col-wrap.right .col { animation-delay: .05s; }
  .motto .vdivider {
    width: 2px; height: calc(5 * var(--motto-char));
    margin-top: calc(-1 * var(--motto-char));
    background: rgba(255,255,255,.55); border-radius: 2px;
    transform: scaleY(0); transform-origin: center;
    animation: growY .5s cubic-bezier(.22,1,.36,1) .4s forwards;
  }  .view-splash .bottom {
    position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .view-splash .brand { display: flex; align-items: center; gap: 28px; }
  .view-splash .emblem {
    width: 54px; height: auto;
    border-radius: 20px;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,.20));
    opacity: 0; transform: translateY(26px) scale(.92);
    animation: rise .9s cubic-bezier(.22,1,.36,1) .35s forwards;
  }
  .view-splash .brand .divider {
    width: 2px; height: 44px;
    background: rgba(255,255,255,.55); border-radius: 2px;
    transform: scaleY(0); transform-origin: center;
    animation: growY .5s cubic-bezier(.22,1,.36,1) .55s forwards;
  }
  .view-splash .name { display: flex; flex-direction: column; align-items: flex-start; }
  .view-splash .name .line {
    color: var(--white); font-size: 24px; font-weight: 600; line-height: 1.35;
    letter-spacing: 8px;
    opacity: 0; transform: translateY(26px);
  }
  .view-splash .name .line:nth-child(1) { animation: rise .9s cubic-bezier(.22,1,.36,1) .45s forwards; }
  .view-splash .name .line:nth-child(2) { animation: rise .9s cubic-bezier(.22,1,.36,1) .57s forwards; }

  @keyframes rise { to { opacity: 1; transform: translateY(0) scale(1); } }
  @keyframes growY { to { transform: scaleY(1); } }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* ﻿@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  @keyframes popIn {
    0%   { opacity: 0; transform: scale(.3); }
    55%  { opacity: 1; transform: scale(1.10); }
    78%  { opacity: 1; transform: scale(.96); }
    100% { opacity: 1; transform: scale(1); }
  }
  @keyframes riseIn { 0% { opacity: 0; transform: translateY(16px); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes slideUp { 0% { opacity: 0; transform: translateY(28px); } 100% { opacity: 1; transform: translateY(0); } }
  @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
  @keyframes glowPulse {
    0%, 100% { box-shadow: var(--shadow-glow), 0 0 0 4px rgba(255,255,255,.7); }
    50%      { box-shadow: 0 20px 44px rgba(14, 165, 233, .40), 0 0 0 5px rgba(255,255,255,.9); }
  }
  @keyframes dotBounce { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }

  /* ===================== 登录页 ===================== */
  .view-login { background: var(--grad-hero); }
  .view-login::before, .view-login::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; pointer-events: none;
  }
  .view-login::before { width: 220px; height: 220px; top: 24px; left: -60px; background: radial-gradient(circle, #BFDBFE 0%, transparent 70%); }
  .view-login::after { width: 200px; height: 200px; top: 60px; right: -50px; background: radial-gradient(circle, #CFFAFE 0%, transparent 70%); }
  .view-login #loginPanel { background: transparent; }
  .view-login .statusbar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 30px 0;
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
    z-index: 5;
  }
  .view-login .page {
    position: relative; height: 100%;
    padding: 0 24px;
    display: flex; flex-direction: column; overflow-y: auto;
    scrollbar-width: none;
  }
  .view-login .page::-webkit-scrollbar { display: none; }

  /* 品牌区：加载态居中 → 展开后上移到中间偏上（两段式动画） */
  .view-login .brand {
    position: relative; display: flex; flex-direction: column; align-items: center;
    margin-top: 52px;
  }
  .view-login .mascot-float { animation: float 3.6s 2.2s ease-in-out infinite; }
  .view-login .mascot {
    position: relative; width: 116px; height: 116px; border-radius: 50%;
    background: #fff; padding: 6px;
    box-shadow: var(--shadow-glow), 0 0 0 4px rgba(255,255,255,.7);
    animation: popIn .72s cubic-bezier(.34, 1.56, .64, 1) both,
               glowPulse 3.6s 2.2s ease-in-out infinite;
  }
  .view-login .mascot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
  .view-login .mascot::after {
    content: '✨'; position: absolute; right: -4px; bottom: 6px;
    width: 30px; height: 30px; border-radius: 50%; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; box-shadow: 0 4px 10px rgba(14,165,233,.25);
  }
  .view-login .brand-title {
    margin-top: 18px; font-size: 30px; font-weight: 700; line-height: 38px;
    color: var(--text-1); letter-spacing: 2px;
  }
  .view-login .loading-dots {
    position: absolute; left: 50%; transform: translateX(-50%); top: 178px;
    display: flex; gap: 6px; transition: opacity .3s;
  }
  .view-login .loading-dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dotBounce 1s infinite; }
  .view-login .loading-dots span:nth-child(2) { animation-delay: .15s; }
  .view-login .loading-dots span:nth-child(3) { animation-delay: .3s; }
  .view-login.loaded .loading-dots { opacity: 0; pointer-events: none; }
  .view-login .brand-slogan {
    margin-top: 6px; font-size: 15px; font-weight: 500; line-height: 22px;
    color: var(--text-2); letter-spacing: 3px; opacity: 1;
  }

  /* 表单卡片（展开后滑入） */
  .view-login .card {
    margin-top: 26px; background: var(--bg-card); border-radius: 24px; padding: 20px 20px 22px;
    box-shadow: var(--shadow-card); opacity: 1;
  }
  /* 启动页：登录页背景去掉文字/卡片，只留居中吉祥物 + 三点 */
  .view-splash { background: var(--grad-hero); }
  .view-splash .splash-center {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: center;
  }
  .view-splash .mascot-float { animation: float 3.6s ease-in-out infinite; }
  .view-splash .mascot {
    position: relative; width: 132px; height: 132px; border-radius: 50%;
    background: #fff; padding: 6px;
    box-shadow: var(--shadow-glow), 0 0 0 4px rgba(255,255,255,.7);
    animation: popIn .72s cubic-bezier(.34, 1.56, .64, 1) both,
               glowPulse 3.6s ease-in-out infinite;
  }
  .view-splash .mascot img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }

  .view-splash .loading-dots {
    display: flex; gap: 8px; margin-top: 34px;
  }
  .view-splash .loading-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); animation: splashDot 1.2s ease-in-out infinite; }
  .view-splash .loading-dots span:nth-child(2) { animation-delay: .18s; }
  .view-splash .loading-dots span:nth-child(3) { animation-delay: .36s; }
  @keyframes splashDot { 0%, 60%, 100% { transform: translateY(0) scale(.7); opacity: .35; } 30% { transform: translateY(-9px) scale(1.15); opacity: 1; } }

  .view-login .form { display: flex; flex-direction: column; }
  .view-login .role-switch {
    position: relative; display: flex; height: 40px; padding: 4px;
    background: #F3F4F6; border-radius: 12px; margin-bottom: 12px;
  }
  .view-login .role-thumb {
    position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: 32px;
    background: #FFFFFF; border-radius: 8px; box-shadow: 0 2px 6px rgba(17,24,39,.08);
    transition: transform .25s cubic-bezier(.22,1,.36,1);
  }
  .view-login .role-switch.teacher .role-thumb { transform: translateX(100%); }
  .view-login .role-option {
    flex: 1; position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; font-size: 14px; color: var(--text-3);
    cursor: pointer; font-family: var(--font); transition: color .2s;
  }
  .view-login .role-option.active { color: var(--text-1); font-weight: 600; }

  .view-login .field { position: relative; }
  .view-login .field + .field { margin-top: 6px; }
  .view-login .input-wrap {
    height: 48px; display: flex; align-items: center;
    background: #F9FAFB; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px;
    transition: border-color .15s, box-shadow .15s, background .15s;
  }
  .view-login .input-wrap:focus-within { border-color: var(--primary); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
  .view-login .field.error .input-wrap { border-color: var(--danger); }
  .view-login .field.error .input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
  .view-login .input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-size: 15px; line-height: 22px; color: var(--text-1); font-family: var(--font); }
  .view-login .input::placeholder { color: var(--text-3); }
  .view-login .icon-btn {
    flex-shrink: 0; width: 44px; height: 44px; margin-right: -8px;
    display: none; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--text-3); cursor: pointer; border-radius: 10px;
  }
  .view-login .icon-btn svg { width: 20px; height: 20px; }
  .view-login .icon-btn:active { background: #F1F5F9; }
  .view-login .field.has-value .clear-btn { display: flex; }
  .view-login .field .eye-btn { display: flex; }
  .view-login .err { min-height: 18px; margin: 5px 2px 0; font-size: 12px; line-height: 18px; color: var(--danger); display: none; }
  .view-login .field.error .err { display: block; }
  .view-login .forgot-row { display: flex; justify-content: space-between; margin-top: 4px; }
  .view-login .forgot { font-size: 13px; line-height: 18px; color: var(--primary); text-decoration: none; cursor: pointer; padding: 4px 2px; }
  .view-login .forgot:active { color: var(--primary-hover); }
  .view-login .submit {
    margin-top: 20px; height: 48px; border: none; border-radius: 14px;
    background: var(--grad-btn); color: #FFFFFF; font-size: 16px; font-weight: 600; line-height: 48px;
    font-family: var(--font); width: 100%; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 10px 22px rgba(29,78,216,.28);
    transition: transform .1s, box-shadow .2s, opacity .15s;
  }
  .view-login .submit:active { transform: translateY(1px); box-shadow: 0 6px 14px rgba(29,78,216,.24); }
  .view-login .submit:disabled { opacity: .6; cursor: default; }
  .view-login .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .7s linear infinite; }
  .view-login .divider { margin-top: 24px; display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; line-height: 18px; opacity: 1; }
  .view-login .divider::before, .view-login .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
  .view-login .wechat-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 18px; opacity: 1; }
  .view-login .wechat { width: 44px; height: 44px; border-radius: 50%; border: none; background: #F3F4F6; color: #9CA3AF; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; }
  .view-login .wechat svg { width: 24px; height: 24px; }
  .view-login .wechat:active { background: #E5E7EB; }
  .view-login .wechat-label { margin-top: 8px; font-size: 11px; line-height: 16px; color: var(--text-3); }

  .view-login .agree { position: relative; display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; cursor: pointer; font-size: 12px; line-height: 18px; color: var(--text-2); user-select: none; }
  .view-login .agree input { position: absolute; opacity: 0; width: 0; height: 0; }
  .view-login .agree .check { flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; border: 1.5px solid var(--text-3); border-radius: 4px; background: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
  .view-login .agree input:checked + .check { background: var(--primary); border-color: var(--primary); }
  .view-login .agree input:checked + .check::after { content: ''; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(0, -1px); }
  .view-login .agree-text a { color: var(--primary); text-decoration: none; }
  .view-login .login-error { margin: 8px 2px 0; font-size: 12px; line-height: 18px; color: var(--danger); display: none; }
  .view-login .login-error.show { display: block; }

  /* ===== 登录页子面板（登录 / 注册 / 忘记密码） ===== */
  .view-login .login-panel {
    position: absolute; inset: 0;
    z-index: 0;
    display: flex; flex-direction: column;
    background: var(--bg-card);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-login .login-panel.off-right { transform: translateX(100%); pointer-events: none; }
  .view-login .auth-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; margin: 44px 12px 0; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-login .auth-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-login .auth-head-spacer { width: 36px; flex-shrink: 0; }
  .view-login .auth-back {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-login .auth-back:active { background: #F1F5F9; }
  .view-login .auth-back svg { width: 24px; height: 24px; }
  .view-login .auth-body { flex: 1; overflow-y: auto; padding: 20px 24px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-login .auth-body::-webkit-scrollbar { display: none; }
  .view-login .auth-body form { display: flex; flex-direction: column; }
  .view-login .auth-body .submit { letter-spacing: 0; text-indent: 0; }
  .view-login .code-btn {
    flex-shrink: 0; height: 32px; padding: 0 12px; border: none; border-radius: 8px;
    background: var(--primary-soft); color: var(--primary); font-size: 13px; font-family: var(--font); cursor: pointer; white-space: nowrap;
  }
  .view-login .code-btn:disabled { background: #F3F4F6; color: var(--text-3); cursor: default; }

  .view-login .overlay { position: absolute; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 30; }
  .view-login .overlay.show { opacity: 1; pointer-events: auto; }
  .view-login .dialog { width: 296px; background: #fff; border-radius: 16px; padding: 24px 20px 20px; box-shadow: 0 20px 60px rgba(0,0,0,.22); transform: scale(.92); transition: transform .25s cubic-bezier(.22,1,.36,1); }
  .view-login .overlay.show .dialog { transform: scale(1); }
  .view-login .dialog-title { font-size: 17px; font-weight: 600; color: var(--text-1); text-align: center; margin-bottom: 12px; }
  .view-login .dialog-body { font-size: 14px; line-height: 22px; color: var(--text-2); text-align: center; margin-bottom: 20px; }
  .view-login .dialog-body a { color: var(--primary); text-decoration: none; }
  .view-login .dialog-actions { display: flex; gap: 12px; }
  .view-login .dialog-btn { flex: 1; height: 40px; border-radius: 12px; font-size: 15px; font-family: var(--font); cursor: pointer; }
  .view-login .dialog-btn.secondary { border: 1px solid var(--border); background: #fff; color: var(--text-2); }
  .view-login .dialog-btn.primary { border: none; background: var(--primary); color: #fff; font-weight: 600; }
  .view-login .dialog-btn.primary:active { background: var(--primary-hover); }

  /* 
/* ===================== 登录后界面（主框架） ===================== */
  .view-main { background: var(--bg-page); display: flex; flex-direction: column; }
  .view-main .statusbar {
    height: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-main .status-icons { letter-spacing: 2px; }
  .view-main .content { position: relative; flex: 1; overflow: hidden; }
  .view-main .panel { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; display: none; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-main .panel::-webkit-scrollbar { display: none; }
  .view-main .panel.active { display: block; animation: panelIn .18s ease; }
  .pull-refresh { display: flex; align-items: center; justify-content: center; gap: 8px; height: 0; overflow: hidden; color: var(--text-3); font-size: 13px; font-family: var(--font); }
  .pull-refresh.active { height: 52px; }
  .pull-refresh-spinner { width: 16px; height: 16px; border: 2px solid rgba(100,116,139,.35); border-top-color: var(--primary); border-radius: 50%; }
  .pull-indicator { position: fixed; top: -56px; left: 0; right: 0; height: 56px; z-index: 999; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); font-size: 13px; font-family: var(--font); pointer-events: none; }
  .pull-indicator .pull-refresh-spinner { display: none; }
  .pull-indicator.loading .pull-refresh-spinner { display: inline-block; animation: spin .8s linear infinite; }
  .center-toast { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.92); z-index: 1000; padding: 14px 22px; background: rgba(15,23,42,.82); color: #fff; font-size: 14px; font-family: var(--font); border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .center-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .pull-refresh.active .pull-refresh-spinner { animation: spin .8s linear infinite; }
  #panel-msg { z-index: 10; transition: transform .3s ease; }
  .view-main .tabbar { position: relative; z-index: 10; transition: transform .3s ease, border-radius .3s ease; }
  .view-main.minusone-open #panel-msg { transform: translateX(78%); border-top-left-radius: 24px; box-shadow: -8px 0 24px rgba(15,23,42,.16); }
  .view-main.minusone-open .tabbar { transform: translateX(78%); border-bottom-left-radius: 24px; }
  @keyframes panelIn { from { opacity: 0; } to { opacity: 1; } }

  .view-main .topbar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .topbar-title { font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-main .topbar-action { font-size: 14px; color: var(--primary); background: none; border: none; cursor: pointer; font-family: var(--font); }
  .view-main .topbar-action:disabled { color: var(--text-3); cursor: default; }
  .view-main .topbar-plus { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-1); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; font-family: var(--font); flex-shrink: 0; }
  .view-main .topbar-plus:active { background: #F1F5F9; }
  .view-main .msg-plus-mask { position: fixed; inset: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 60; }
  .view-main .msg-plus-mask.show { opacity: 1; pointer-events: auto; }
  .view-main .msg-plus-menu { position: fixed; top: 104px; right: 14px; width: 160px; background: #FFFFFF; border-radius: 12px; box-shadow: 0 8px 28px rgba(17,24,39,.16); padding: 6px 0; transform: scale(.6); opacity: 0; transform-origin: 100% 0; transition: transform .18s cubic-bezier(.22,1,.36,1), opacity .18s ease; overflow: hidden; }
  .view-main .msg-plus-mask.show .msg-plus-menu { transform: scale(1); opacity: 1; }
  .view-main .plus-menu-item { display: block; width: 100%; padding: 12px 18px; background: none; border: none; font-size: 14px; color: var(--text-1); text-align: left; cursor: pointer; font-family: var(--font); }
  .view-main .plus-menu-item:active { background: #F1F5F9; }

  /* ===== 消息顶部栏：用户 chip（负一页入口） ===== */
  .view-main .msg-user { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 0; margin: 0; cursor: pointer; text-align: left; font-family: var(--font); max-width: 40%; color: var(--text-1); }
  .view-main .msg-user-avatar { width: 32px; height: 32px; border-radius: 10px; background: #E5E7EB; color: #4B5563; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; flex-shrink: 0; overflow: hidden; }
  .view-main .msg-user-info { display: flex; flex-direction: column; min-width: 0; }
  .view-main .msg-user-name { font-size: 14px; font-weight: 600; color: var(--text-1); line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .msg-user-sub { font-size: 11px; color: var(--text-3); line-height: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .msg-user-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; margin: 0 3px; vertical-align: 1px; }

  /* ===== 负一页（覆盖层，从左侧滑入） ===== */
  .view-main .minusone { position: absolute; top: 0; left: 0; bottom: 0; width: 78%; z-index: 5; background: var(--bg-page); display: flex; flex-direction: column; overflow: hidden; transform: translateX(-100%); transition: transform .3s ease; }
  .view-main .minusone.active { transform: translateX(0); }
  .view-main .minusone-head { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 12px; background: var(--bg-card); border-bottom: 1px solid var(--border); flex-shrink: 0; }
  .view-main .minusone-back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1); flex-shrink: 0; }
  .view-main .minusone-back:active { background: #F1F5F9; }
  .view-main .minusone-back svg { width: 24px; height: 24px; }
  .view-main .minusone-head-title { font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-main .minusone-head-spacer { width: 36px; flex-shrink: 0; }
  .view-main .minusone-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-main .minusone-body::-webkit-scrollbar { display: none; }
  .view-main .mo-online { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(255,255,255,.22); padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
  .view-main .mo-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
  .view-main .chips { position: sticky; top: 44px; z-index: 3; display: flex; gap: 8px; padding: 10px 16px; background: var(--bg-page); border-bottom: 1px solid var(--border); }
  .view-main .chip { padding: 5px 14px; border-radius: 999px; border: none; cursor: pointer; font-size: 13px; font-family: var(--font); background: var(--bg-card); color: var(--text-2); }
  .view-main .chip.active { background: var(--primary); color: #fff; }
  .view-main .read-all-inline { margin-left: auto; font-size: 13px; color: var(--primary); background: none; border: none; cursor: pointer; font-family: var(--font); padding: 5px 0; }

  .view-main .msg-list { list-style: none; }
  .view-main .msg-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .msg-item:active { background: #F9FAFB; }
  .view-main .msg-avatar { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; }
  .av-blue { background: #2563EB; } .av-orange { background: #EA580C; } .av-green { background: #16A34A; } .av-purple { background: #7C3AED; } .av-cyan { background: #0891B2; }
  .view-main .msg-avatar-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: #fff; }
  .view-main .msg-badge-ai { flex-shrink: 0; margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--primary-soft); color: var(--primary); font-size: 10px; font-weight: 600; line-height: 15px; }
  .view-main .msg-main { flex: 1; min-width: 0; }
  .view-main .msg-title-row { display: flex; align-items: baseline; justify-content: space-between; }
  .view-main .msg-title { font-size: 15px; color: var(--text-2); font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .msg-item.unread .msg-title { color: var(--text-1); font-weight: 600; }
  .view-main .msg-time { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
  .view-main .msg-summary { font-size: 13px; color: var(--text-3); line-height: 18px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .view-main .unread-dot { position: absolute; top: 18px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }

  /* ===== 消息长按管理（置顶/免打扰/不显示/删除） ===== */
  .view-main .msg-item { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
  .view-main .msg-left { display: flex; align-items: baseline; min-width: 0; flex: 1; }
  .view-main .msg-right { display: flex; align-items: baseline; flex-shrink: 0; margin-left: 8px; }
  .view-main .msg-item.pinned { background: #F1F5F9; }
  .view-main .badge-pin { flex-shrink: 0; margin-right: 6px; padding: 1px 5px; border-radius: 4px; background: #E2E8F0; color: #64748B; font-size: 10px; font-weight: 600; line-height: 15px; }
  .view-main .badge-mute { flex-shrink: 0; margin-left: 6px; font-size: 12px; color: var(--text-3); }
  .view-main .msg-item.muted .unread-dot { background: #C7CDD6; }

  .view-main .contact-search { padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .service-search { padding: 10px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .searchbox { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; background: #F3F4F6; border-radius: 8px; color: var(--text-3); font-size: 14px; }
  .view-main .searchbox svg { width: 16px; height: 16px; flex-shrink: 0; }
  .view-main .group-title { padding: 8px 16px 4px; font-size: 13px; color: var(--text-3); background: var(--bg-page); }
  .view-main .contact-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .contact-row:active { background: #F9FAFB; }
  .view-main .c-avatar { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; }
  .view-main .c-avatar-img { object-fit: cover; }
  .view-main .contact-info { flex: 1; min-width: 0; }
  .view-main .contact-name { font-size: 15px; color: var(--text-1); }
  .view-main .contact-sub { font-size: 12px; color: var(--text-3); margin-top: 1px; }

  .view-main .section-title { padding: 14px 16px 8px; font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-main .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; padding: 8px 8px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .grid-item { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: none; cursor: pointer; font-family: var(--font); }
  .view-main .g-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 21px; }
  .view-main .g-label { font-size: 12px; color: var(--text-2); }
  .view-main .cat-block { background: var(--bg-card); border-bottom: 1px solid var(--border); }
  .view-main .cat-title { padding: 12px 16px 4px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-main .svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
  .view-main .svc-row:active { background: #F9FAFB; }
  .view-main .svc-icon { width: 24px; height: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); }
  .view-main .svc-icon svg { width: 22px; height: 22px; }
  .view-main .svc-name { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); }
  .view-main .svc-arrow { color: var(--text-3); font-size: 14px; }

  .view-main .profile { display: flex; align-items: center; gap: 14px; padding: 18px 16px 20px; background: linear-gradient(135deg, #2563EB 0%, var(--primary) 100%); color: #fff; }
  .view-main .p-avatar { width: 60px; height: 60px; border-radius: 14px; flex-shrink: 0; background: rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 600; border: 2px solid rgba(255,255,255,.6); overflow: hidden; }
  .view-main .p-name { font-size: 20px; font-weight: 600; }
  .view-main .p-sub { font-size: 13px; opacity: .9; margin-top: 3px; }
  .view-main .cards { padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
  .view-main .card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 16px; cursor: pointer; }
  .view-main .card:active { background: #FAFBFC; }
  .view-main .card-head { display: flex; align-items: center; justify-content: space-between; }
  .view-main .card-title { font-size: 14px; color: var(--text-2); }
  .view-main .card-more { font-size: 12px; color: var(--text-3); }
  .view-main .card-value { font-size: 28px; font-weight: 700; color: var(--text-1); line-height: 36px; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .view-main .card-sub { font-size: 13px; color: var(--text-3); margin-top: 2px; }
  .view-main .card-row { display: flex; gap: 12px; }
  .view-main .card-row .card { flex: 1; }
  .view-main .progress { height: 6px; border-radius: 999px; background: var(--border); margin-top: 10px; overflow: hidden; }
  .view-main .progress > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
  .view-main .delta-up { color: var(--success); font-size: 12px; font-weight: 600; }
  .view-main .me-list { margin: 4px 16px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .view-main .me-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .me-row:last-child { border-bottom: none; }
  .view-main .me-row:active { background: #F9FAFB; }
  .view-main .me-row-left { display: flex; align-items: center; gap: 12px; }
  .view-main .me-icon { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff; }
  .view-main .me-label { font-size: 15px; color: var(--text-1); }
  .view-main .me-label.logout { color: var(--danger); }
  .view-main .me-arrow { color: var(--text-3); font-size: 14px; }

  .view-main .tabbar { flex-shrink: 0; display: flex; background: var(--bg-card); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .view-main .tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 56px; background: none; border: none; outline: none; cursor: pointer; color: var(--text-3); font-size: 10px; font-family: var(--font); }
  .view-main .tab:focus, .view-main .tab:focus-visible { outline: none; box-shadow: none; }
  .view-main .tab svg { width: 24px; height: 24px; }
  .view-main .tab.active { color: var(--primary); }

  /* ===================== AI 助手「璐璐」聊天视图 ===================== */
  .view-chat {
    background: #EDEFF2; display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-chat.active { transform: translateX(0); }
  .view-chat .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-chat .chat-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-chat .head-btn { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1); }
  .view-chat .head-btn:active { background: #F1F5F9; }
  .view-chat .head-btn svg { width: 24px; height: 24px; }
  .view-chat .chat-head-avatar { flex-shrink: 0; }
  .view-chat .chat-head-info { flex: 1; min-width: 0; }
  .view-chat .chat-head-name { font-size: 16px; font-weight: 600; color: var(--text-1); line-height: 20px; }
  .view-chat .chat-head-sub { font-size: 11px; color: var(--text-3); line-height: 16px; }
  .view-chat .chat-body { flex: 1; overflow-y: auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-chat .chat-body::-webkit-scrollbar { display: none; }
  .view-chat .time-stamp { text-align: center; font-size: 11px; color: var(--text-3); margin: 2px 0; }
  .view-chat .row { display: flex; align-items: flex-start; gap: 8px; }
  .view-chat .row.other { justify-content: flex-start; }
  .view-chat .row.self { justify-content: flex-end; }
  .view-chat .chat-av { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #fff; }
  .view-chat .chat-av-char { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; }
  .view-chat .bubble { max-width: 72%; padding: 10px 13px; font-size: 15px; line-height: 21px; word-break: break-word; }
  .view-chat .row.other .bubble { background: #FFFFFF; color: var(--text-1); border-radius: 4px 14px 14px 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
  .view-chat .row.self .bubble { background: var(--primary); color: #FFFFFF; border-radius: 14px 4px 14px 14px; }
  .view-chat .self-wrap { display: flex; flex-direction: column; align-items: flex-end; max-width: 76%; }
  .view-chat .chat-photo { display: block; max-width: 100%; width: 176px; border-radius: 14px 4px 14px 14px; object-fit: cover; }
  .view-chat .chat-video { display: block; max-width: 220px; width: 100%; min-height: 176px; max-height: 320px; border-radius: 14px 4px 14px 14px; background: #000; object-fit: cover; }
  .view-chat .chat-photo, .view-chat .chat-video, .view-chat .chat-video-cover { cursor: pointer; }
  .view-chat .lulu-ppt-card { display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 12px; margin-top: 6px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.06); text-decoration: none; }
  .view-chat .bubble.other .lulu-ppt-card { background: #fff; }
  .lulu-ppt-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #F97316, #EF4444); color: #fff; font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .lulu-ppt-info { min-width: 0; }
  .lulu-ppt-name { font-size: 14px; color: #111827; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
  .lulu-ppt-tip { font-size: 12px; color: #9ca3af; margin-top: 2px; }
  .view-chat .chat-video-cover { position: relative; display: flex; align-items: center; justify-content: center; max-width: 220px; width: 200px; height: 176px; border-radius: 14px 4px 14px 14px; background-color: #2563EB; background-image: linear-gradient(135deg, #3B82F6, #1D4ED8); background-size: cover; background-position: center; overflow: hidden; }
  .view-chat .video-play-badge { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 20px; }
  .media-viewer { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
  .media-viewer.active { display: flex; }
  .media-viewer .mv-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: 26px; line-height: 40px; text-align: center; cursor: pointer; }
  .media-viewer img, .media-viewer video { max-width: 100%; max-height: 100%; object-fit: contain; }
  .media-viewer video { width: 100vw; max-height: 70vh; background: #000; }
  .view-chat .self-wrap .bubble { max-width: 100%; }
  .view-chat .msg-read-status { align-self: flex-start; font-size: 11px; margin-top: 3px; line-height: 1; }
  .view-chat .msg-read-status.unread { color: #EF4444; }
  .view-chat .msg-read-status.read { color: #9CA3AF; }
  /* 通知私信：框消息（无头像、整条圆角卡片） */
  .view-chat .row.notice-row { width: 100%; }
  .view-chat .row.notice-row .bubble { max-width: 100%; width: 100%; flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; box-shadow: none; color: var(--text-1); padding: 0; }
  .view-chat .notice-card-title { font-size: 17px; font-weight: 700; color: var(--text-1); padding: 14px 16px 0; }
  .view-chat .notice-card-body { font-size: 14px; color: var(--text-2); padding: 6px 16px 12px; line-height: 20px; }
  .view-chat .notice-card-divider { height: 1px; background: var(--border); margin: 0 16px; }
  .view-chat .notice-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-size: 13px; color: var(--text-3); cursor: pointer; }
  .view-chat .notice-card-arrow { font-size: 16px; color: var(--text-3); line-height: 1; }
  .view-chat .typing { display: flex; gap: 4px; padding: 4px 2px; }
  .view-chat .typing span { width: 7px; height: 7px; border-radius: 50%; background: #C7CDD6; animation: typing 1.2s infinite ease-in-out; }
  .view-chat .typing span:nth-child(2) { animation-delay: .15s; }
  .view-chat .typing span:nth-child(3) { animation-delay: .3s; }
  @keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
  .view-chat .chat-input { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg-card); border-top: 1px solid var(--border); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .view-chat .chat-input.is-ai { gap: 2px; margin: 8px 12px calc(8px + env(safe-area-inset-bottom)); padding: 4px; background: #F3F4F6; border-top: none; border-radius: 22px; }
  .view-chat .input-btn { flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; color: var(--text-2); }
  .view-chat .chat-input.is-ai .input-btn { width: 32px; height: 32px; }
  .view-chat .input-btn svg { width: 22px; height: 22px; }
  .view-chat .chat-input:not(.is-ai) #inputMic { order: -1; }
  .view-chat .input-box { flex: 1; min-width: 0; height: 38px; padding: 0 14px; border: none; outline: none; background: #F3F4F6; border-radius: 8px; font-size: 15px; color: var(--text-1); font-family: var(--font); }
  .view-chat .chat-input.is-ai .input-box { height: 32px; padding: 0 8px; background: none; border-radius: 0; }
  .view-chat .input-box::placeholder { color: var(--text-3); }
  .view-chat .input-send { flex-shrink: 0; height: 38px; padding: 0 16px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 8px; background: var(--primary); color: #FFFFFF; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-chat .chat-input.is-ai .input-send { width: 32px; height: 32px; padding: 0; border-radius: 50%; font-size: 0; display: none; }
  .view-chat .input-send:active { background: var(--primary-hover); }
  .view-chat .input-send svg { width: 20px; height: 20px; }

  /* 推荐区 + 快捷功能栏（仅璐璐 AI 聊天） */
  .view-chat .chat-suggest { flex-shrink: 0; padding: 10px 14px 4px; }
  .view-chat .chat-suggest-label { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
  .view-chat .chat-suggest-cards { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-chat .chat-suggest-card { padding: 10px 16px; border: none; border-radius: 10px; background: #F3F4F6; color: var(--text-1); font-size: 14px; font-family: var(--font); cursor: pointer; }
  .view-chat .chat-suggest-card:active { background: #E7EAF0; }
  /* suggest message inside chat body (scrolls with content) */
  .view-chat .suggest-box { width: 100%; padding: 2px 0 6px; }
  .view-chat .suggest-msg-title { text-align: center; font-size: 13px; color: var(--text-3); margin-bottom: 10px; }
  .view-chat .suggest-row { width: 100%; justify-content: center; }
  .view-chat .suggest-msg-chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .view-chat .suggest-msg-chips .chat-suggest-card { text-align: left; }
  .view-chat .chat-toolbar { flex-shrink: 0; display: flex; gap: 8px; overflow-x: auto; padding: 8px 14px 6px; scrollbar-width: none; }
  .view-chat .chat-toolbar::-webkit-scrollbar { display: none; }
  .view-chat .chat-tool { flex-shrink: 0; padding: 7px 14px; border: none; border-radius: 16px; background: #F3F4F6; color: var(--text-1); font-size: 13px; font-family: var(--font); cursor: pointer; white-space: nowrap; }
  .view-chat .chat-tool:active { background: #E7EAF0; }

  /* 加号面板（照片/拍摄/文档/文件/行程/位置/个人名片） */
  .view-chat .chat-more { flex-shrink: 0; max-height: 0; overflow: hidden; background: #F7F8FA; transition: max-height .28s cubic-bezier(.22,1,.36,1); }
  .view-chat .chat-more.open { max-height: 210px; }
  .view-chat .chat-more-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 14px; padding: 18px 8px 22px; }
  .view-chat .more-item { display: flex; flex-direction: column; align-items: center; gap: 8px; border: none; background: none; padding: 0; cursor: pointer; font-family: var(--font); }
  .view-chat .more-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; transition: transform .12s ease; }
  .view-chat .more-icon svg { width: 26px; height: 26px; }
  .view-chat .more-item:active .more-icon { transform: scale(.9); }
  .view-chat .more-label { font-size: 12px; color: var(--text-2); }

  /* 加号面板发送的媒体消息（照片占位 / 位置卡片） */
  .view-chat .img-msg { width: 176px; height: 132px; border-radius: 12px; background: linear-gradient(135deg, #BFDBFE, #DBEAFE); display: flex; align-items: center; justify-content: center; color: #2563EB; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
  .view-chat .img-msg svg { width: 40px; height: 40px; }
  .view-chat .loc-msg { width: 224px; padding: 12px 14px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(16,24,40,.08); display: flex; align-items: center; gap: 11px; }
  .view-chat .loc-msg .pin { width: 36px; height: 36px; border-radius: 50%; background: #FEE2E2; color: #DC2626; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .view-chat .loc-msg .pin svg { width: 20px; height: 20px; }
  .view-chat .loc-msg .loc-t { font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-chat .loc-msg .loc-s { font-size: 12px; color: var(--text-3); margin-top: 3px; }

  /* ===================== AI 助手「璐璐」动作卡片（「手」：点「打开」派发动作） ===================== */
  .view-chat .bubble.act-card { padding: 0; min-width: 208px; border-radius: 12px; box-shadow: 0 2px 8px rgba(16,24,40,.06); overflow: hidden; }
  .view-chat .act-card-inner { padding: 12px 14px; }
  .view-chat .act-card-head { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .view-chat .act-card-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 21px; }
  .view-chat .act-card-meta { margin-top: 3px; font-size: 12px; color: var(--text-3); line-height: 17px; }
  .view-chat .act-card-btn { display: block; width: 100%; margin-top: 10px; padding: 8px 0; border: none; border-radius: 8px; background: var(--primary); color: #FFFFFF; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-chat .act-card-btn:active { background: var(--primary-hover); }
  .view-chat .act-card-options { display: flex; flex-direction: column; }
  .view-chat .act-card-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 11px 14px; border: none; border-top: 1px solid var(--border); background: none; font-size: 14px; color: var(--text-1); font-family: var(--font); text-align: left; cursor: pointer; }
  .view-chat .act-card-option:first-child { border-top: none; }
  .view-chat .act-card-option:active { background: #F5F7FA; }
  .view-chat .act-card-option .opt-meta { flex-shrink: 0; font-size: 11px; color: var(--text-3); }

  /* ===================== 璐璐「手」：教室导航卡片 ===================== */
  .view-chat .bubble.nav-card { padding: 0; min-width: 230px; border-radius: 12px; box-shadow: 0 2px 8px rgba(16,24,40,.06); overflow: hidden; }
  .view-chat .nav-card-head { padding: 12px 14px; background: #EFF6FF; border-bottom: 1px solid #DBEAFE; }
  .view-chat .nav-card-title { font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 21px; }
  .view-chat .nav-card-sub { margin-top: 2px; font-size: 12px; color: var(--text-3); line-height: 17px; }
  .view-chat .nav-card-body { padding: 12px 14px; }
  .view-chat .nav-loc { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
  .view-chat .nav-loc-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--primary); }
  .view-chat .nav-loc-text { font-size: 13px; color: var(--text-2); line-height: 19px; }
  .view-chat .nav-steps { font-size: 13px; color: var(--text-1); line-height: 20px; }
  .view-chat .nav-steps b { color: var(--primary); }
  .view-chat .nav-card-actions { display: flex; gap: 8px; padding: 0 14px 12px; }
  .view-chat .nav-btn { flex: 1; padding: 8px 0; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-chat .nav-btn.primary { background: var(--primary); color: #fff; }
  .view-chat .nav-btn.primary:active { background: var(--primary-hover); }
  .view-chat .nav-btn.ghost { background: #F3F4F6; color: var(--text-2); }
  .view-chat .nav-btn.ghost:active { background: #E5E7EB; }
  .view-chat .nav-warn { font-size: 11px; color: var(--text-3); line-height: 16px; padding: 0 14px 12px; margin-top: -4px; }

  /* ===================== 服务大厅（数据驱动） + 服务详情 + 占位页 ===================== */
  .view-main .search-input { flex: 1; min-width: 0; height: 100%; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text-1); font-family: var(--font); }
  .view-main .search-input::placeholder { color: var(--text-3); }
  .view-main .searchbox:focus-within { background: #FFFFFF; box-shadow: 0 0 0 3px rgba(29,78,216,.12); }
  .view-main .cat-count { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 6px; }
  .view-main .svc-right { display: flex; align-items: center; gap: 8px; }
  .view-main .svc-badge { flex-shrink: 0; padding: 1px 6px; border-radius: 4px; background: #DCFCE7; color: var(--success); font-size: 10px; font-weight: 600; line-height: 15px; }
  .view-main .svc-name .hl { background: var(--primary-soft); color: var(--primary); font-weight: 600; border-radius: 2px; }
  .view-main .svc-empty { padding: 48px 16px; text-align: center; }
  .view-main .svc-empty-icon { font-size: 40px; }
  .view-main .svc-empty-title { margin-top: 12px; font-size: 15px; color: var(--text-2); }
  .view-main .svc-empty-sub { margin-top: 4px; font-size: 13px; color: var(--text-3); }
  .view-main .svc-tabs { display: flex; overflow-x: auto; background: var(--bg-card); border-bottom: 1px solid var(--border); white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-main .svc-tabs::-webkit-scrollbar { display: none; }
  .view-main .svc-tab { flex-shrink: 0; padding: 10px 14px; font-size: 14px; color: var(--text-2); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; font-family: var(--font); }
  .view-main .svc-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
  .view-main .cat-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-card); border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-main .cat-card:active { background: #F9FAFB; }
  .view-main .cat-card-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
  .view-main .cat-card-info { flex: 1; min-width: 0; }
  .view-main .cat-card-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-main .cat-card-preview { font-size: 12px; color: var(--text-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

  .view-sdetail, .view-placeholder {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-sdetail.active, .view-placeholder.active { transform: translateX(0); }
  .view-sdetail .statusbar, .view-placeholder .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-sdetail .sdetail-head, .view-placeholder .ph-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-sdetail .sdetail-head-title, .view-placeholder .ph-head-title {
    flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1);
  }
  .view-sdetail .sdetail-head-spacer, .view-placeholder .ph-head-spacer { width: 36px; flex-shrink: 0; }
  .view-sdetail .head-btn, .view-placeholder .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-sdetail .head-btn:active, .view-placeholder .head-btn:active { background: #F1F5F9; }
  .view-sdetail .head-btn svg, .view-placeholder .head-btn svg { width: 24px; height: 24px; }

  .view-sdetail .sdetail-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-sdetail .sdetail-body::-webkit-scrollbar { display: none; }
  .sdetail-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 16px; }
  .sdetail-card-top { display: flex; align-items: center; gap: 12px; }
  .sdetail-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; color: var(--primary); }
  .sdetail-icon svg { width: 22px; height: 22px; }
  .sdetail-name { font-size: 16px; font-weight: 600; color: var(--text-1); }
  .sdetail-meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  .sdetail-chip { padding: 2px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; }
  .sdetail-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
  .sdetail-badge.available { background: #DCFCE7; color: var(--success); }
  .sdetail-badge.pending { background: #FEF3C7; color: var(--warning); }
  .sdetail-desc { margin-top: 12px; font-size: 13px; line-height: 18px; color: var(--text-2); }
  .sdetail-enter { margin-top: 12px; width: 100%; height: 44px; border: none; border-radius: 12px; background: var(--primary); color: #FFFFFF; font-size: 16px; font-weight: 600; font-family: var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
  .sdetail-enter:active { background: var(--primary-hover); }
  .sdetail-enter.pending { background: #E5E7EB; color: var(--text-3); }
  .sdetail-enter .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #FFFFFF; border-radius: 50%; animation: spin .7s linear infinite; }
  .sdetail-section { margin: 16px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .sdetail-info, .sdetail-related { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .sdetail-info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .sdetail-info-row:last-child { border-bottom: none; }
  .sdetail-info-label { font-size: 13px; color: var(--text-3); }
  .sdetail-info-value { font-size: 14px; color: var(--text-1); }
  .sdetail-related .rel-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .sdetail-related .rel-row:last-child { border-bottom: none; }
  .sdetail-related .rel-row:active { background: #F9FAFB; }
  .sdetail-related .rel-name { font-size: 14px; color: var(--text-2); }
  .sdetail-related .rel-arrow { color: var(--text-3); font-size: 14px; }

  /* ===================== 服务详情浮层：右上角按钮 + 底部弹出面板 ===================== */
  .svc-detail-fab { position: fixed; top: 14px; right: 12px; z-index: 60; display: none; align-items: center; gap: 5px; height: 36px; padding: 0 13px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-card); color: var(--text-2); font-size: 13px; font-weight: 600; font-family: var(--font); box-shadow: 0 2px 10px rgba(16,24,40,.10); cursor: pointer; }
  .svc-detail-fab.show { display: flex; }
  .svc-detail-fab svg { width: 15px; height: 15px; }
  .svc-detail-fab:active { background: #F1F5F9; }
  .svc-detail-mask { position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.42); display: none; }
  .svc-detail-mask.show { display: block; }
  .svc-detail-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: var(--bg-page); border-radius: 20px 20px 0 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); max-height: 84vh; display: flex; flex-direction: column; animation: sheetUp .22s ease; }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
  .svc-detail-grab { width: 40px; height: 4px; border-radius: 999px; background: var(--border); margin: 0 auto 10px; flex-shrink: 0; }
  .svc-detail-sheet-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding-bottom: 10px; }
  .svc-detail-sheet-title { font-size: 16px; font-weight: 600; color: var(--text-1); }
  .svc-detail-sheet-close { width: 32px; height: 32px; border: none; border-radius: 999px; background: #F3F4F6; color: var(--text-2); font-size: 14px; cursor: pointer; font-family: var(--font); display: flex; align-items: center; justify-content: center; }
  .svc-detail-sheet-close:active { background: #E5E7EB; }
  .svc-detail-sheet-body { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .svc-detail-sheet-body::-webkit-scrollbar { display: none; }

  .view-placeholder .ph-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 24px 48px; }
  .ph-illust { width: 120px; height: 120px; border-radius: 28px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 52px; }
  .ph-title { margin-top: 24px; font-size: 16px; font-weight: 600; color: var(--text-1); }
  .ph-sub { margin-top: 8px; font-size: 13px; color: var(--text-3); }
  .ph-btn { margin-top: 32px; height: 44px; padding: 0 48px; border: none; border-radius: 12px; background: var(--primary); color: #FFFFFF; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .ph-btn:active { background: var(--primary-hover); }

  /* ===================== 服务功能页（#view-service-page） ===================== */
  .sp-intro { margin: 4px 4px 14px; font-size: 13px; line-height: 20px; color: var(--text-2); }
  .sp-demo { margin-left: 8px; font-size: 11px; font-weight: 400; color: var(--text-3); }

  /* 查询结果表 */
  .sp-table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .sp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
  .sp-table thead th { text-align: left; padding: 10px 12px; color: var(--text-3); font-size: 11px; font-weight: 600; background: #F9FAFB; border-bottom: 1px solid var(--border); }
  .sp-table tbody td { padding: 12px; color: var(--text-1); border-bottom: 1px solid var(--border); }
  .sp-table tbody tr:last-child td { border-bottom: none; }
  .sp-table td.r, .sp-table th.r { text-align: right; }
  .sp-table tr.sp-group td { background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: 12px; padding: 8px 12px; }

  /* 审批列表 */
  .sp-approve-row { align-items: center; }
  .sp-approve-btns { display: flex; gap: 8px; flex-shrink: 0; }
  .sp-btn { height: 32px; padding: 0 14px; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .sp-btn.ok { background: var(--primary); color: #fff; }
  .sp-btn.rej { background: #FEE2E2; color: #DC2626; }
  .sp-btn:active { opacity: .8; }
  .sp-approve-row.done { opacity: .55; }

  /* 展示 · 宫格 / 步骤 */
  .sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sp-grid-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 16px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .sp-grid-icon { font-size: 24px; }
  .sp-grid-label { font-size: 12px; color: var(--text-2); text-align: center; }
  .sp-step { display: flex; align-items: center; gap: 12px; padding: 12px 4px; }
  .sp-step-no { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .sp-step-txt { font-size: 14px; color: var(--text-1); }

  /* 外部跳转 */
  .sp-link-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
  .sp-link-icon { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; font-size: 32px; }
  .sp-link-name { margin-top: 14px; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .sp-link-note { margin-top: 8px; font-size: 12px; line-height: 18px; color: var(--text-3); max-width: 260px; }
  .sp-link-url { margin-top: 12px; font-size: 11px; color: var(--text-3); word-break: break-all; max-width: 280px; background: #F9FAFB; padding: 8px 12px; border-radius: 8px; }
  .sp-link-card .submit { margin-top: 20px; width: 100%; }

  /* 统计报表 */
  .sp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 4px; }
  .sp-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 10px; display: flex; flex-direction: column; align-items: center; }
  .sp-stat-value { font-size: 20px; font-weight: 700; color: var(--text-1); }
  .sp-stat-label { margin-top: 4px; font-size: 11px; color: var(--text-2); }
  .sp-stat-sub { margin-top: 2px; font-size: 10px; color: var(--text-3); }
  .sp-bar-row { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .sp-bar-row:last-child { border-bottom: none; }
  .sp-bar-head { display: flex; align-items: center; justify-content: space-between; }

  /* 表单提交成功态 */
  .sp-success { display: flex; flex-direction: column; align-items: center; padding: 32px 0; }
  .sp-success-ico { width: 64px; height: 64px; border-radius: 50%; background: #DCFCE7; color: #16A34A; font-size: 32px; display: flex; align-items: center; justify-content: center; }
  .sp-success-text { margin-top: 16px; font-size: 15px; color: var(--text-1); }

  /* ===================== 服务落地页（统一信息页，160+ 服务共用） ===================== */
  .view-service-landing {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-service-landing.active { transform: translateX(0); }
  .view-service-landing .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-service-landing .sland-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-service-landing .sland-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-service-landing .sland-head-spacer { width: 36px; flex-shrink: 0; }
  .view-service-landing .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-service-landing .head-btn:active { background: #F1F5F9; }
  .view-service-landing .head-btn svg { width: 24px; height: 24px; }
  .view-service-landing .sland-body { flex: 1; overflow-y: auto; padding: 20px 16px 24px; -webkit-overflow-scrolling: touch; }
  .view-service-landing .sland-hero { display: flex; flex-direction: column; align-items: center; padding: 8px 0 16px; }
  .view-service-landing .sland-icon { width: 72px; height: 72px; border-radius: 20px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; }
  .view-service-landing .sland-icon svg { width: 40px; height: 40px; color: var(--primary); }
  .view-service-landing .sland-name { margin-top: 14px; font-size: 20px; font-weight: 700; color: var(--text-1); }
  .view-service-landing .sland-meta { margin-top: 8px; display: flex; align-items: center; gap: 8px; }
  .view-service-landing .sland-chip { padding: 3px 10px; border-radius: 999px; background: #EEF2F7; font-size: 12px; color: var(--text-2); }
  .view-service-landing .sland-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
  .view-service-landing .sland-badge.available { background: #E6F7EE; color: #1BA55C; }
  .view-service-landing .sland-badge.pending { background: #FFF3E0; color: #E8871A; }
  .view-service-landing .sland-desc { margin-top: 4px; padding: 14px 16px; background: var(--bg-card); border-radius: 14px; font-size: 14px; line-height: 1.6; color: var(--text-2); }
  .view-service-landing .sland-section { margin: 20px 4px 10px; font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .5px; }
  .view-service-landing .sland-info { background: var(--bg-card); border-radius: 14px; overflow: hidden; }
  .view-service-landing .sland-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
  .view-service-landing .sland-row:last-child { border-bottom: none; }
  .view-service-landing .sland-row-label { flex-shrink: 0; font-size: 14px; color: var(--text-2); }
  .view-service-landing .sland-row-value { flex: 1; text-align: right; font-size: 14px; color: var(--text-1); word-break: break-all; }
  .view-service-landing .sland-row-value.addr { font-family: monospace; font-size: 12px; color: var(--text-3); max-height: 40px; overflow: hidden; }
  .view-service-landing .sland-footer { flex-shrink: 0; padding: 12px 16px; background: var(--bg-card); border-top: 1px solid var(--border); }
  .view-service-landing .sland-open { width: 100%; height: 48px; border: none; border-radius: 12px; background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
  .view-service-landing .sland-open:active { background: var(--primary-hover); }
  .view-service-landing .sland-open.pending { background: #E5E9F0; color: var(--text-3); cursor: not-allowed; }

  /* ===================== 服务管理后台（增删改查） ===================== */
  .view-sub .sadm-add { flex-shrink: 0; height: 30px; padding: 0 12px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .sadm-add:active { background: var(--primary-hover); }
  .sadm-toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
  .sadm-search { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); font-size: 14px; color: var(--text-1); font-family: var(--font); outline: none; box-sizing: border-box; }
  .sadm-search:focus { border-color: var(--primary); }
  .sadm-reset { flex-shrink: 0; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; }
  .sadm-reset:active { background: #F1F5F9; }
  .sadm-count { font-size: 12px; color: var(--text-3); margin: 0 4px 8px; }
  .sadm-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; }
  .sadm-row-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--primary-soft); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
  .sadm-row-icon svg { width: 18px; height: 18px; }
  .sadm-row-info { flex: 1; min-width: 0; }
  .sadm-row-name { font-size: 14px; font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sadm-row-meta { font-size: 12px; color: var(--text-3); margin-top: 2px; }
  .sadm-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
  .sadm-btn { height: 28px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-card); color: var(--text-2); font-size: 12px; font-family: var(--font); cursor: pointer; }
  .sadm-btn:active { background: #F1F5F9; }
  .sadm-btn.danger { color: #DC2626; border-color: #FECACA; }
  .sadm-empty { padding: 40px 16px; text-align: center; color: var(--text-3); font-size: 14px; }
  .sadm-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
  .sadm-form .field { margin-bottom: 14px; }
  .sadm-form .field-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
  .sadm-form .input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-page); font-size: 14px; color: var(--text-1); font-family: var(--font); outline: none; box-sizing: border-box; }
  .sadm-form .input:focus { border-color: var(--primary); background: #fff; }
  .sadm-form textarea.input { height: 72px; padding: 10px 12px; resize: none; line-height: 20px; }
  .sadm-form select.input { appearance: none; -webkit-appearance: none; }
  .sadm-form-row { display: flex; gap: 10px; }
  .sadm-form-row .field { flex: 1; min-width: 0; }
  .sadm-switch { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-1); font-weight: 400; }
  .sadm-switch input { width: 16px; height: 16px; }
  .sadm-actions { display: flex; gap: 10px; margin-top: 4px; }
  .sadm-save { flex: 1; height: 44px; border: none; border-radius: 12px; background: var(--primary); color: #fff; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .sadm-save:active { background: var(--primary-hover); }
  .sadm-cancel { flex: 1; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); color: var(--text-2); font-size: 15px; font-family: var(--font); cursor: pointer; }
  .sadm-cancel:active { background: #F1F5F9; }

  /* ===================== 设置 ===================== */
  .view-settings {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 10;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-settings.active { transform: translateX(0); }
  .view-settings .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-settings .settings-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-settings .settings-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-settings .settings-head-spacer { width: 36px; flex-shrink: 0; }
  .view-settings .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-settings .head-btn:active { background: #F1F5F9; }
  .view-settings .head-btn svg { width: 24px; height: 24px; }
  .view-settings .settings-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-settings .settings-body::-webkit-scrollbar { display: none; }
  .view-settings .settings-section { margin: 12px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-settings .settings-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .view-settings .settings-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-settings .settings-row:last-child { border-bottom: none; }
  .view-settings .settings-row:active { background: #F9FAFB; }
  .view-settings .settings-row.static { cursor: default; }
  .view-settings .settings-row.static:active { background: transparent; }
  .view-settings .settings-label { font-size: 15px; color: var(--text-1); }
  .view-settings .settings-value { font-size: 14px; color: var(--text-3); }
  .view-settings .settings-arrow { color: var(--text-3); font-size: 14px; }
  .view-settings .settings-logout {
    margin-top: 24px; width: 100%; height: 44px; border: 1px solid var(--border); border-radius: 12px;
    background: #FFFFFF; color: var(--danger); font-size: 16px; font-weight: 600;
    font-family: var(--font); cursor: pointer; box-shadow: 0 1px 2px rgba(16,24,40,.04);
  }

  /* ===================== 通用二级子页（账号/通知/文档/表单/二维码/列表等） ===================== */
  .view-sub {
    background: var(--bg-page); display: flex; flex-direction: column;
    opacity: 1; z-index: 30;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .view-sub.active { transform: translateX(0); }
  .view-sub .statusbar {
    flex-shrink: 0; height: 10px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: var(--bg-card);
    color: var(--text-1); font-size: 14px; font-weight: 600; letter-spacing: .5px;
  }
  .view-sub .sub-head {
    flex-shrink: 0; display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 12px; background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .view-sub .sub-head-title { flex: 1; font-size: 17px; font-weight: 600; color: var(--text-1); }
  .view-sub .sub-head-spacer { width: 36px; flex-shrink: 0; }
  .view-sub .head-btn {
    flex-shrink: 0; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; border-radius: 10px; color: var(--text-1);
  }
  .view-sub .head-btn:active { background: #F1F5F9; }
  .view-sub .head-btn svg { width: 24px; height: 24px; }
  .view-sub .sub-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .view-sub .sub-body::-webkit-scrollbar { display: none; }

  /* 分组 / 行（复用设置页视觉） */
  .view-sub .sub-section { margin: 12px 4px 8px; font-size: 14px; font-weight: 600; color: var(--text-1); }
  .view-sub .sub-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
  .view-sub .sub-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-sub .sub-row:last-child { border-bottom: none; }
  .view-sub .sub-row:active { background: #F9FAFB; }
  .view-sub .sub-row.static { cursor: default; }
  .view-sub .sub-row.static:active { background: transparent; }
  .view-sub .sub-label { font-size: 15px; color: var(--text-1); }
  .view-sub .sub-value { font-size: 14px; color: var(--text-3); }
  .view-sub .sub-arrow { color: var(--text-3); font-size: 14px; }
  .view-sub .sub-right { display: flex; align-items: center; gap: 12px; }
  .view-sub .sub-desc { font-size: 13px; color: var(--text-3); line-height: 20px; }
  .view-sub .sub-badge { flex-shrink: 0; margin-right: 8px; padding: 1px 7px; border-radius: 999px; background: #DCFCE7; color: #15803D; font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .sub-badge.warn { background: #FEF3C7; color: #B45309; }
  .view-sub .sub-action { flex-shrink: 0; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; }
  .view-sub .sub-action.danger { color: var(--danger); border-color: #FECACA; }
  .view-sub .sub-action:active { background: #F9FAFB; }

  /* 表单 */
  .view-sub .form { padding: 4px 0; }
  .view-sub .avatar-picker { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 0 16px; }
  .view-sub .avatar-preview { width: 76px; height: 76px; border-radius: 16px; background: var(--bg-card); color: var(--text-1); font-size: 34px; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; }
  .view-sub .avatar-emoji-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .view-sub .avatar-emoji { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-card); font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
  .view-sub .avatar-emoji.active { border-color: #111827; background: var(--bg-card); }
  .view-sub .field { margin-bottom: 16px; }
  .view-sub .field-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 8px; }
  .view-sub .input {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px;
    background: #F9FAFB; font-size: 15px; color: var(--text-1); font-family: var(--font); outline: none;
    transition: border-color .15s, background .15s;
  }
  .view-sub .input:focus { border-color: var(--primary); background: #fff; }
  .view-sub .input::placeholder { color: var(--text-3); }
  .view-sub textarea.input { height: 132px; padding: 12px 14px; resize: none; line-height: 22px; }
  .view-sub .input-row { display: flex; gap: 10px; }
  .view-sub .input-row .input { flex: 1; }
  .view-sub .code-btn {
    flex-shrink: 0; height: 48px; padding: 0 14px; border: 1px solid var(--primary); border-radius: 12px;
    background: #fff; color: var(--primary); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer;
  }
  .view-sub .code-btn:active { background: var(--primary-soft); }
  .view-sub .code-btn:disabled { border-color: var(--border); color: var(--text-3); background: #F1F5F9; cursor: default; }
  .view-sub .submit {
    margin-top: 8px; width: 100%; height: 46px; border: none; border-radius: 12px;
    background: var(--primary); color: #fff; font-size: 16px; font-weight: 600; font-family: var(--font); cursor: pointer;
  }
  .view-sub .submit:active { background: var(--primary-hover); }

  /* 开关 */
  .view-sub .switch { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
  .view-sub .switch input { position: absolute; opacity: 0; width: 0; height: 0; }
  .view-sub .switch .knob { position: absolute; inset: 0; border-radius: 999px; background: #D1D5DB; transition: background .2s; cursor: pointer; }
  .view-sub .switch .knob::after {
    content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s;
  }
  .view-sub .switch input:checked + .knob { background: var(--primary); }
  .view-sub .switch input:checked + .knob::after { transform: translateX(18px); }

  /* 正文文档 */
  .view-sub .doc-title { font-size: 20px; font-weight: 700; color: var(--text-1); margin: 4px 4px 16px; }
  .view-sub .doc-h { font-size: 15px; font-weight: 600; color: var(--text-1); margin: 16px 4px 8px; }
  .view-sub .doc-p { font-size: 14px; line-height: 24px; color: var(--text-2); margin: 0 4px 12px; }

  /* 二维码卡片 */
  .view-sub .code-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; }
  .view-sub .code-qr { width: 180px; height: 180px; border-radius: 14px; background: var(--primary-soft); border: 1px solid #DBEAFE; display: flex; align-items: center; justify-content: center; font-size: 88px; }
  .view-sub .code-name { margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--text-1); }
  .view-sub .code-id { margin-top: 4px; font-size: 13px; color: var(--text-3); }
  .view-sub .code-tip { margin-top: 18px; font-size: 12px; color: var(--text-3); text-align: center; line-height: 18px; }

  /* 大数字 / 余额 */
  .view-sub .hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; }
  .view-sub .hero-value { font-size: 40px; font-weight: 700; color: var(--text-1); letter-spacing: .5px; }
  .view-sub .hero-value.green { color: var(--success); }
  .view-sub .hero-sub { margin-top: 6px; font-size: 13px; color: var(--text-3); }

  /* ===================== 校园地图 + 校园论坛 ===================== */
  .view-sub .map-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; background: #F3F4F6; border-radius: 10px; margin-bottom: 12px; color: var(--text-3); }
  .view-sub .map-search svg { width: 16px; height: 16px; flex-shrink: 0; }
  .view-sub .map-search input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; color: var(--text-1); font-family: var(--font); }
  .view-sub .map-search input::placeholder { color: var(--text-3); }
  .view-sub .map-wrap { position: relative; margin-bottom: 4px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #E8F1E4; height: 320px; }
  .view-sub .map-canvas { width: 100%; height: 100%; }
  .view-sub .map-loading { position: absolute; left: 12px; top: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(17,24,39,.72); color: #fff; font-size: 12px; }
  .loc-pin { position: relative; width: 22px; height: 22px; }
  .loc-pin-halo { position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(29,78,216,.28); }
  .loc-pin-dot { position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #1D4ED8; border: 2px solid #fff; box-shadow: 0 0 6px rgba(29,78,216,.6); }
  .view-sub .sub-section.map-section-head { display: flex; align-items: center; justify-content: space-between; }
  .view-sub .map-locate { flex-shrink: 0; height: 32px; padding: 0 14px; border: none; border-radius: 999px; background: var(--primary); color: #fff; font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; box-shadow: 0 4px 12px rgba(29,78,216,.32); }

  .view-sub .forum-tabs { display: flex; background: var(--bg-card); border: 1px solid var(--border); border-bottom: none; border-radius: 16px 16px 0 0; overflow: hidden; }
  .view-sub .forum-tab { flex: 1; padding: 12px 0; font-size: 14px; color: var(--text-2); cursor: pointer; border: none; background: none; border-bottom: 2px solid transparent; font-family: var(--font); }
  .view-sub .forum-tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
  .view-sub .forum-list { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
  .view-sub .forum-post { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
  .view-sub .forum-post:active { background: #F9FAFB; }
  .view-sub .forum-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .forum-title { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--text-1); line-height: 21px; }
  .view-sub .forum-meta { margin-top: 8px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
  .view-sub .forum-foot { margin-top: 8px; display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-3); }
  .view-sub .forum-body { font-size: 14px; line-height: 22px; color: var(--text-2); margin: 12px 4px; }
  .view-sub .forum-comment { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .view-sub .forum-comment:last-child { border-bottom: none; }
  .view-sub .forum-cm-author { font-size: 13px; font-weight: 600; color: var(--text-1); }
  .view-sub .forum-cm-text { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 19px; }
  .view-sub .forum-cm-time { margin-top: 4px; font-size: 11px; color: var(--text-3); }

  /* 进度条 */
  .view-sub .meter { height: 8px; border-radius: 999px; background: #E5E7EB; overflow: hidden; margin: 10px 0 4px; }
  .view-sub .meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

  .view-sub .run-goal { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px; }
  .view-sub .run-goal-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--text-3); }
  .view-sub .run-goal-value { margin-top: 8px; font-size: 36px; font-weight: 700; color: var(--text-1); line-height: 1; font-variant-numeric: tabular-nums; }
  .view-sub .run-goal-value em { font-style: normal; font-size: 16px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
  .view-sub .run-goal .meter span { background: var(--success); }
  .view-sub .run-goal-sub { margin-top: 6px; font-size: 12px; color: var(--text-3); }
  .view-sub .run-stats { display: flex; gap: 10px; margin-top: 10px; }
  .view-sub .run-stat { flex: 1; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; text-align: center; }
  .view-sub .run-stat b { display: block; font-size: 22px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .view-sub .run-stat span { font-size: 12px; color: var(--text-3); }
  .view-sub .run-start { margin-top: 14px; width: 100%; height: 52px; border: none; border-radius: 14px; background: var(--success); color: #fff; font-size: 17px; font-weight: 700; font-family: var(--font); cursor: pointer; box-shadow: 0 6px 16px rgba(22,163,74,.28); }
  .view-sub .run-start:active { background: #15803D; }
  /* 推荐路线 */
  .view-sub .run-route { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .view-sub .run-route:last-child { border-bottom: none; }
  .view-sub .run-route:active { background: #F9FAFB; }
  .view-sub .run-route-l { display: flex; align-items: center; gap: 10px; }
  .view-sub .run-route-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; background: var(--primary-soft); flex-shrink: 0; }
  .view-sub .run-route-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .run-route-desc { font-size: 12px; color: var(--text-3); margin-top: 2px; }
  .view-sub .run-route-km { font-size: 14px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
  /* 排行榜 */
  .view-sub .rank-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
  .view-sub .rank-item:last-child { border-bottom: none; }
  .view-sub .rank-item.self { background: var(--primary-soft); }
  .view-sub .rank-no { width: 30px; flex-shrink: 0; font-size: 15px; font-weight: 700; color: var(--text-3); text-align: center; }
  .view-sub .rank-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; background: var(--primary); }
  .view-sub .rank-info { flex: 1; min-width: 0; }
  .view-sub .rank-name { font-size: 15px; color: var(--text-1); }
  .view-sub .rank-name .me { color: var(--primary); font-weight: 600; }
  .view-sub .rank-dept { font-size: 12px; color: var(--text-3); margin-top: 1px; }
  .view-sub .rank-km { font-size: 16px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .view-sub .rank-km em { font-style: normal; font-size: 12px; color: var(--text-3); font-weight: 500; margin-left: 2px; }
  /* 好友挑战 */
  .view-sub .friend-item { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .view-sub .friend-item:last-child { border-bottom: none; }
  .view-sub .friend-top { display: flex; align-items: center; gap: 10px; }
  .view-sub .friend-avatar { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 600; background: var(--accent); }
  .view-sub .friend-name { font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .friend-text { font-size: 13px; color: var(--text-2); margin-top: 2px; }
  .view-sub .friend-meter { margin: 10px 0 8px; height: 6px; border-radius: 999px; background: #E5E7EB; overflow: hidden; }
  .view-sub .friend-meter span { display: block; height: 100%; background: var(--success); border-radius: 999px; }
  .view-sub .friend-foot { display: flex; align-items: center; justify-content: space-between; }
  .view-sub .friend-prog { font-size: 12px; color: var(--text-3); }
  .view-sub .friend-actions { display: flex; gap: 8px; }
  .view-sub .friend-btn { padding: 5px 14px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-2); font-size: 13px; font-family: var(--font); cursor: pointer; }
  .view-sub .friend-btn:active { background: #F9FAFB; }
  .view-sub .friend-btn.primary { background: var(--primary-soft); color: var(--primary); border-color: #DBEAFE; }
  .view-sub .friend-btn.liked { color: #E11D48; border-color: #FECDD3; }
  /* 跑步中（深色沉浸） */
  #view-campus-run-active { background: #0B1220; }
  #view-campus-run-active .statusbar { background: transparent; color: rgba(255,255,255,.6); }
  #view-campus-run-active .sub-head { background: transparent; border-bottom: none; }
  #view-campus-run-active .sub-head-title { color: #fff; }
  #view-campus-run-active .head-btn { color: #fff; background: rgba(255,255,255,.08); }
  #view-campus-run-active .head-btn:active { background: rgba(255,255,255,.16); }
  #view-campus-run-active .sub-body { display: flex; flex-direction: column; }
  .view-sub .run-live { text-align: center; padding: 6px 0 2px; }
  .view-sub .run-live-time { font-size: 44px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
  .view-sub .run-live-dist { font-size: 22px; color: #6EE7B7; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
  .view-sub .run-live-map { flex: 1; min-height: 210px; margin: 12px 0; border-radius: 16px; overflow: hidden; background: #0F1E33; border: 1px solid rgba(255,255,255,.08); position: relative; }
  .view-sub .run-live-map svg { display: block; width: 100%; height: 100%; }
  .view-sub .run-live-metrics { display: flex; justify-content: space-around; padding: 10px 0 14px; }
  .view-sub .run-live-metric { text-align: center; }
  .view-sub .run-live-metric b { display: block; font-size: 20px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
  .view-sub .run-live-metric span { font-size: 12px; color: rgba(255,255,255,.5); }
  .view-sub .run-controls { display: flex; gap: 12px; padding-bottom: 6px; }
  .view-sub .run-ctrl { flex: 1; height: 52px; border-radius: 14px; font-size: 16px; font-weight: 700; font-family: var(--font); cursor: pointer; border: none; }
  .view-sub .run-ctrl.pause { background: rgba(255,255,255,.12); color: #fff; }
  .view-sub .run-ctrl.pause:active { background: rgba(255,255,255,.2); }
  .view-sub .run-ctrl.pause { position: relative; overflow: hidden; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: none; }
  .view-sub .run-ctrl-label { transition: opacity .15s ease; }
  .view-sub .run-hold-ring { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: conic-gradient(#DC2626 0deg, #fff 0deg); border: 2px solid rgba(255,255,255,.85); opacity: 0; transform: scale(.5); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
  .view-sub .run-ctrl.pause.holding .run-ctrl-label { opacity: 0; }
  .view-sub .run-ctrl.pause.holding .run-hold-ring { opacity: 1; transform: scale(1); }
  .view-sub .run-ctrl.end { background: var(--danger); color: #fff; }
  .view-sub .run-ctrl.end:active { background: #B91C1C; }
  /* 结果页 */
  .view-sub .run-result-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 16px; display: flex; flex-direction: column; align-items: center; }
  .view-sub .run-result-km { font-size: 52px; font-weight: 700; color: var(--success); font-variant-numeric: tabular-nums; line-height: 1; }
  .view-sub .run-result-km em { font-style: normal; font-size: 18px; color: var(--text-3); font-weight: 600; margin-left: 2px; }
  .view-sub .run-result-row { display: flex; justify-content: space-around; width: 100%; margin-top: 20px; }
  .view-sub .run-result-cell { text-align: center; }
  .view-sub .run-result-cell b { display: block; font-size: 20px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
  .view-sub .run-result-cell span { font-size: 12px; color: var(--text-3); }
  .view-sub .run-result-tip { margin-top: 16px; font-size: 13px; color: var(--success); font-weight: 600; }
  .view-sub .run-result-actions { display: flex; gap: 12px; margin-top: 20px; }
  .view-sub .run-result-actions .run-ctrl { flex: 1; }
  .view-sub .run-ctrl.again { background: var(--success); color: #fff; }
  .view-sub .run-ctrl.again:active { background: #15803D; }
  .view-sub .run-ctrl.done { background: var(--primary); color: #fff; }
  .view-sub .run-ctrl.done:active { background: var(--primary-hover); }


  /* ===================== 校园兼职 ===================== */
  .view-sub .pt-actions { display: flex; gap: 10px; margin-bottom: 14px; }
  .view-sub .pt-action { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; border: none; }
  .view-sub .pt-action.publish { background: var(--primary); color: #fff; }
  .view-sub .pt-action.publish:active { background: var(--primary-hover); }
  .view-sub .pt-action.mine { background: var(--primary-soft); color: var(--primary); }
  .view-sub .pt-action.mine:active { background: #DBEAFE; }

  .view-sub .pt-tabs { display: flex; overflow-x: auto; gap: 8px; margin-bottom: 12px; scrollbar-width: none; }
  .view-sub .pt-tabs::-webkit-scrollbar { display: none; }
  .view-sub .pt-tab { flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font); }
  .view-sub .pt-tab.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }

  .view-sub .pt-list { display: flex; flex-direction: column; gap: 10px; }
  .view-sub .pt-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
  .view-sub .pt-card:active { background: #F9FAFB; }
  .view-sub .pt-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .view-sub .pt-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .pt-reward { flex-shrink: 0; font-size: 17px; font-weight: 700; color: #EA580C; }
  .view-sub .pt-reward::before { content: '¥'; font-size: 12px; }
  .view-sub .pt-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
  .view-sub .pt-chip { padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .pt-tag { font-size: 12px; color: var(--text-3); }
  .view-sub .pt-badge { flex-shrink: 0; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 18px; }
  .view-sub .pt-badge.open { background: #DCFCE7; color: #15803D; }
  .view-sub .pt-badge.taken { background: #FEF3C7; color: #B45309; }
  .view-sub .pt-badge.done { background: #F1F5F9; color: #64748B; }
  .view-sub .pt-empty { text-align: center; padding: 48px 0; color: var(--text-3); font-size: 14px; }

  /* 学分 / 兼职 模式切换 */
  .view-sub .pt-mode { flex-shrink: 0; display: flex; gap: 2px; background: #E9ECF1; border-radius: 999px; padding: 3px; margin-bottom: 14px; }
  .view-sub .pt-mode-btn { flex: 1; padding: 9px 0; border: none; border-radius: 999px; background: transparent; color: var(--text-2); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-mode-btn.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
  .view-sub .cr-list { display: flex; flex-direction: column; gap: 10px; }
  .view-sub .cr-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
  .view-sub .cr-card:active { background: #F9FAFB; }
  .view-sub .cr-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .view-sub .cr-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text-1); }
  .view-sub .cr-credit { flex-shrink: 0; font-size: 16px; font-weight: 700; color: var(--primary); white-space: nowrap; }
  .view-sub .cr-credit em { font-style: normal; font-size: 12px; font-weight: 600; }
  .view-sub .cr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

  .view-sub .pt-toolbar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
  .view-sub .pt-filter-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-1); font-size: 13px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-filter-btn:active { background: #F1F5F9; }
  .view-sub .pt-filter-state { font-size: 11px; font-weight: 400; color: var(--primary); }
  .view-sub .pt-filter-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
  .view-sub .pt-filter-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
  .view-sub .pt-filter-row:last-of-type { margin-bottom: 14px; }
  .view-sub .pt-filter-label { flex-shrink: 0; font-size: 13px; color: var(--text-2); line-height: 30px; }
  .view-sub .pt-sort-group { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; }
  .view-sub .pt-sort-item { padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font); }
  .view-sub .pt-sort-item.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }
  .view-sub .pt-range-group { flex: 1; display: flex; align-items: center; gap: 8px; }
  .view-sub .pt-range-input { width: 0; flex: 1; min-width: 0; height: 32px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text-1); background: #fff; font-family: var(--font); }
  .view-sub .pt-range-input:focus { border-color: var(--primary); outline: none; }
  .view-sub .pt-range-sep { flex-shrink: 0; color: var(--text-3); }
  .view-sub .pt-filter-actions { display: flex; gap: 10px; }
  .view-sub .pt-filter-reset { flex: 1; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-card); color: var(--text-2); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-filter-apply { flex: 1; height: 38px; border: none; border-radius: 10px; background: #E5E7EB; color: #4B5563; font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .pt-filter-apply:active { background: var(--primary-hover); }

  .view-sub .pt-detail-hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px 16px; display: flex; flex-direction: column; align-items: center; margin-bottom: 14px; }
  .view-sub .pt-detail-reward { font-size: 40px; font-weight: 700; color: #EA580C; }
  .view-sub .pt-detail-reward::before { content: '¥'; font-size: 22px; }
  .view-sub .pt-detail-title { margin-top: 8px; font-size: 17px; font-weight: 600; color: var(--text-1); text-align: center; }
  .view-sub .pt-detail-row { display: flex; align-items: center; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
  .view-sub .pt-detail-row:last-child { border-bottom: none; }
  .view-sub .pt-detail-row .k { flex-shrink: 0; width: 72px; color: var(--text-3); font-size: 13px; }
  .view-sub .pt-detail-row .v { flex: 1; min-width: 0; color: var(--text-1); }
  .view-sub .pt-detail-desc { margin-top: 4px; font-size: 14px; line-height: 22px; color: var(--text-2); }

  .view-sub .pt-seg { display: flex; flex-wrap: wrap; gap: 8px; }
  .view-sub .pt-seg-item { padding: 7px 14px; border-radius: 999px; font-size: 13px; color: var(--text-2); cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); font-family: var(--font); }
  .view-sub .pt-seg-item.active { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); font-weight: 600; }

  .view-sub .pt-earn { background: linear-gradient(135deg, var(--primary), #2563EB); border-radius: 16px; padding: 20px 18px; margin-bottom: 14px; color: #fff; }
  .view-sub .pt-earn-value { font-size: 32px; font-weight: 700; }
  .view-sub .pt-earn-sub { margin-top: 4px; font-size: 13px; opacity: .9; }

  .view-sub .pt-stars { display: flex; gap: 6px; justify-content: center; padding: 6px 0; }
  .view-sub .pt-star { font-size: 30px; line-height: 1; color: #E5E7EB; cursor: pointer; }
  .view-sub .pt-star.on { color: #F59E0B; }

  /* ===================== 个人名片（校园·联系人） ===================== */
  .view-sub .cp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 20px 16px 16px; }
  .view-sub .cp-head { display: flex; align-items: center; gap: 14px; }
  .view-sub .cp-avatar { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; color: #fff; }
  .view-sub .cp-info { flex: 1; min-width: 0; }
  .view-sub .cp-name { font-size: 20px; font-weight: 600; color: var(--text-1); }
  .view-sub .cp-line { font-size: 13px; color: var(--text-3); margin-top: 4px; }
  .view-sub .cp-box { margin-top: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-card); padding: 4px 16px; }
  .view-sub .cp-box-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; }
  .view-sub .cp-box-label { flex-shrink: 0; font-size: 14px; color: var(--text-3); }
  .view-sub .cp-box-value { flex: 1; min-width: 0; text-align: right; font-size: 14px; color: var(--text-1); word-break: break-all; }
  .view-sub .cp-box-divider { height: 1px; background: var(--border); }
  .view-sub .cp-more { text-align: center; font-size: 14px; color: var(--primary); padding: 14px 0; cursor: pointer; }
  .view-sub .cp-more:active { opacity: .6; }
  .view-sub .cp-extra { border-top: 1px solid var(--border); padding: 4px 0 8px; }
  .view-sub .cp-extra-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; }
  .view-sub .cp-extra-label { flex-shrink: 0; font-size: 13px; color: var(--text-3); }
  .view-sub .cp-extra-value { flex: 1; min-width: 0; text-align: right; font-size: 13px; color: var(--text-1); word-break: break-all; }
  .view-sub .cp-actions { flex-shrink: 0; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--bg-card); border-top: 1px solid var(--border); }
  .view-sub .cp-action { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-1); font-size: 14px; font-weight: 600; font-family: var(--font); cursor: pointer; }
  .view-sub .cp-action.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
  .view-sub .cp-action:active { background: #F1F5F9; }
  .view-sub .cp-action.primary:active { background: var(--primary-hover); }

  /* ===================== 周课表网格 ===================== */
  .week-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin: 4px 0 12px;
  }
  .week-nav {
    flex-shrink: 0; height: 34px; padding: 0 12px; border: 1px solid var(--border);
    border-radius: 17px; background: var(--bg-card); color: var(--text-2);
    font-size: 13px; font-family: var(--font); cursor: pointer;
  }
  .week-nav:active { background: #F1F5F9; }
  .week-nav:disabled { opacity: .4; cursor: default; background: var(--bg-card); }
  .week-info { flex: 1; text-align: center; min-width: 0; }
  .week-no { font-size: 16px; font-weight: 700; color: var(--text-1); }
  .week-range { margin-top: 2px; font-size: 11px; color: var(--text-3); }
  .sched-grid {
    display: grid;
    grid-template-columns: 40px repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  .sched-cell {
    background: var(--bg-card);
    min-height: 60px;
    padding: 4px 3px;
    font-size: 11px;
    display: flex; flex-direction: column; gap: 3px; align-items: stretch;
  }
  .sched-head {
    background: #F8FAFC; font-weight: 600; color: var(--text-2);
    font-size: 12px; min-height: 34px;
    display: flex; align-items: center; justify-content: center;
  }
  .sched-head.today { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
  .sched-time {
    background: #F8FAFC; color: var(--text-3); font-size: 10px; line-height: 1.3;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
    padding: 4px 2px;
  }
  .sched-course {
    background: var(--primary-soft); border: 1px solid #DBEAFE;
    border-radius: 8px; padding: 4px 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; line-height: 1.25; min-height: 0;
  }
  .sched-course .nm { font-size: 11px; font-weight: 600; color: var(--primary); }
  .sched-course .rm { font-size: 9px; color: var(--text-3); margin-top: 1px; }
  /* 今日课表（单日列表模式） */
  .sched-day { display: flex; flex-direction: column; gap: 10px; }
  .sched-day .day-head { font-size: 15px; font-weight: 700; color: var(--text-1); text-align: center; margin-bottom: 2px; }
  .sched-day .day-item { display: flex; align-items: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; }
  .sched-day .day-period { flex-shrink: 0; width: 58px; text-align: center; }
  .sched-day .day-period .no { font-size: 13px; font-weight: 700; color: var(--primary); }
  .sched-day .day-period .tm { font-size: 10px; color: var(--text-3); margin-top: 2px; }
  .sched-day .day-info { flex: 1; min-width: 0; }
  .sched-day .day-info .nm { font-size: 14px; font-weight: 600; color: var(--text-1); }
  .sched-day .day-info .rm { font-size: 12px; color: var(--text-3); margin-top: 3px; }
  .sched-day .day-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 30px 0; }
  .view-settings .settings-logout:active { background: #FEF2F2; }

  /* ===== 全局 Toast（横跨所有视图） ===== */
  .album-mask {
    position: fixed; inset: 0; background: rgba(17,24,39,.42); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 140; padding: 0 32px;
  }
  .album-mask.show { opacity: 1; pointer-events: auto; }
  .album-dialog { width: 100%; max-width: 320px; background: #FFFFFF; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 40px rgba(17,24,39,.24); }
  .album-dialog-title { padding: 20px 20px 6px; font-size: 17px; font-weight: 700; color: var(--text-1); text-align: center; }
  .album-dialog-body { padding: 6px 20px 18px; font-size: 13px; line-height: 20px; color: var(--text-2); text-align: center; }
  .album-dialog-actions { display: flex; border-top: 1px solid var(--border); }
  .album-dialog-btn { flex: 1; padding: 14px 0; border: none; background: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); }
  .album-dialog-btn.cancel { color: var(--text-2); border-right: 1px solid var(--border); }
  .album-dialog-btn.allow { color: var(--primary); }
  .album-dialog-btn:active { background: #F1F5F9; }.album-dialog-btn:active { background: #F1F5F9; }

  /* ===== 头像放大遮罩 + 裁剪 ===== */
  .avatar-zoom-mask { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 9999; }
  .avatar-zoom-mask.show { opacity: 1; pointer-events: auto; }
  .avatar-zoom-box { position: relative; display: flex; align-items: center; justify-content: center; }
  .avatar-zoom-img { width: 220px; height: 220px; border-radius: 16px; object-fit: cover; background: #fff; border: none; }
  .avatar-zoom-album { position: absolute; right: -8px; bottom: 8px; width: 48px; height: 48px; border-radius: 50%; background: #FFFFFF; color: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,.35); border: none; cursor: pointer; }
  .avatar-zoom-album svg { width: 24px; height: 24px; }

  .avatar-crop-wrap { position: fixed; inset: 0; background: rgba(0,0,0,.72); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10000; }
  .avatar-crop-wrap.show { opacity: 1; pointer-events: auto; }
  .avatar-crop-box { display: flex; flex-direction: column; align-items: center; gap: 18px; }
  .avatar-crop-inner { position: relative; width: 260px; height: 260px; border-radius: 16px; overflow: hidden; border: 2px solid rgba(255,255,255,.6); touch-action: none; }
  .avatar-crop-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; pointer-events: none; }
  .avatar-crop-hint { text-align: center; color: #fff; font-size: 13px; }
  .avatar-crop-actions { display: flex; gap: 12px; justify-content: center; }
  .avatar-crop-btn { padding: 10px 26px; border-radius: 22px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); }
  .avatar-crop-btn.cancel { background: rgba(255,255,255,.18); color: #fff; }
  .avatar-crop-btn.confirm { background: #FFFFFF; color: var(--primary); }

  /* ===== 私信多选相册 ===== */
  .chat-album-mask { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 92; }
  .chat-album-mask.show { opacity: 1; pointer-events: auto; }
  .chat-album-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #FFFFFF; }
  .chat-album-title { font-size: 16px; font-weight: 700; color: var(--text-1); }
  .chat-album-cancel { background: none; border: none; font-size: 15px; color: var(--text-2); cursor: pointer; font-family: var(--font); }
  .chat-album-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; padding: 3px; background: #111; }
  .chat-album-item { position: relative; aspect-ratio: 1; cursor: pointer; }
  .chat-album-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .chat-album-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
  .chat-album-check svg { width: 14px; height: 14px; opacity: 0; }
  .chat-album-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; pointer-events: none; }
  .chat-album-item.selected .chat-album-check { background: var(--primary); border-color: var(--primary); }
  .chat-album-item.selected .chat-album-check svg { opacity: 1; }
  .chat-album-foot { background: #FFFFFF; padding: 12px 16px; display: flex; justify-content: flex-end; }
  .chat-album-send { padding: 10px 32px; border-radius: 22px; border: none; font-size: 15px; font-weight: 600; cursor: pointer; font-family: var(--font); background: #D1D5DB; color: #fff; }
  .chat-album-send.active { background: var(--primary); }

  .toast {
    position: absolute; top: 52px; left: 50%;
    transform: translate(-50%, -80px);
    max-width: 82%; padding: 10px 18px; border-radius: 12px;
    background: rgba(17,24,39,.92); color: #FFFFFF;
    font-size: 13px; line-height: 20px; text-align: center;
    opacity: 0; pointer-events: none;
    transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s;
    z-index: 50;
  }
  .toast.show { transform: translate(-50%, 0); opacity: 1; }
  .toast.error { background: rgba(220,38,38,.95); }
  .toast.success { background: rgba(22,163,74,.95); }
  .toast.bottom { top: auto; bottom: 96px; transform: translate(-50%, 80px); }
  .toast.bottom.show { transform: translate(-50%, 0); }

  /* ===== 长按操作菜单（紧凑浮动菜单，随字号缩放，贴近长按点） ===== */
  .msg-sheet-mask { position: absolute; inset: 0; background: transparent; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 40; }
  .msg-sheet-mask.show { opacity: 1; pointer-events: auto; }
  .msg-menu { position: absolute; left: 0; top: 0; min-width: 9.6em; max-width: 13em; background: #FFFFFF; border-radius: 8px; box-shadow: 0 6px 24px rgba(17,24,39,.16); padding: 5px 0; transform: scale(.6); opacity: 0; transform-origin: 0 0; transition: transform .18s cubic-bezier(.22,1,.36,1), opacity .18s ease; overflow: hidden; font-size: 14px; font-family: var(--font); }
  .msg-sheet-mask.show .msg-menu { transform: scale(1); opacity: 1; }
  .msg-menu .menu-item { display: block; width: 100%; padding: .6em 1.1em; background: none; border: none; font-size: 1em; line-height: 1.4; color: var(--text-1); text-align: left; white-space: nowrap; cursor: pointer; }
  .msg-menu .menu-item + .menu-item { border-top: 1px solid #F3F4F6; }
  .msg-menu .menu-item:active { background: #F5F7FA; }
  .msg-menu .menu-item.danger { color: var(--danger); }

  .hint { font-size: 12px; color: #94A3B8; }
  .replay {
    padding: 10px 18px; border: 1px solid #C9D2E0; border-radius: 999px;
    background: #FFFFFF; color: #334155; font-size: 13px; font-family: var(--font); cursor: pointer;
  }
  .replay:hover { background: #F1F5F9; }

  /* ===== 教师端（全新独立导航：服务大厅 / 待办审批 / 公告 / 我的） ===== */
  #view-teacher .t-admin-badge { flex-shrink:0; padding:2px 8px; border-radius:999px; background:#FEF3C7; color:var(--warning); font-size:11px; font-weight:600; line-height:16px; }
  #view-teacher .t-todo-group, #view-teacher-todo .t-todo-group { padding:12px 16px 4px; font-size:14px; font-weight:600; color:var(--text-1); }
  #view-teacher .t-todo-item, #view-teacher-todo .t-todo-item { display:flex; align-items:center; gap:10px; margin:0 16px 8px; padding:12px 14px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; }
  #view-teacher .t-todo-main, #view-teacher-todo .t-todo-main { flex:1; min-width:0; }
  #view-teacher .t-todo-name, #view-teacher-todo .t-todo-name { font-size:14px; color:var(--text-1); font-weight:500; }
  #view-teacher .t-todo-sub, #view-teacher-todo .t-todo-sub { font-size:12px; color:var(--text-3); margin-top:2px; }
  #view-teacher .t-btn, #view-teacher-todo .t-btn { flex-shrink:0; padding:6px 14px; border-radius:999px; border:1px solid var(--border); background:var(--bg-card); color:var(--text-2); font-size:13px; cursor:pointer; font-family:var(--font); }
  #view-teacher .t-btn.approve, #view-teacher-todo .t-btn.approve { background:var(--primary); border-color:var(--primary); color:#fff; }
  #view-teacher .t-btn.reject, #view-teacher-todo .t-btn.reject { color:var(--danger); border-color:#FECACA; background:#FFF1F2; }
  #view-teacher .t-notice-item { display:flex; align-items:center; gap:12px; margin:0 16px 8px; padding:14px; background:var(--bg-card); border:1px solid var(--border); border-radius:14px; cursor:pointer; }
  #view-teacher .t-notice-item:active { background:#F9FAFB; }
  #view-teacher .t-notice-icon { width:40px; height:40px; border-radius:12px; background:var(--primary-soft); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
  #view-teacher .t-notice-main { flex:1; min-width:0; }
  #view-teacher .t-notice-title { font-size:14px; color:var(--text-1); font-weight:500; }
  #view-teacher .t-notice-sub { font-size:12px; color:var(--text-3); margin-top:3px; }
  #view-teacher .t-notice-time { font-size:11px; color:var(--text-3); flex-shrink:0; }
  #view-teacher .t-logout { margin:20px 16px 24px; width:calc(100% - 32px); padding:14px; border-radius:14px; border:1px solid #FECACA; background:#FFF1F2; color:var(--danger); font-size:15px; font-weight:600; cursor:pointer; font-family:var(--font); }
  /* ==== 添加好友 ==== */
  #view-add-friend .addfriend-search { display:flex; gap:10px; align-items:center; margin-bottom:16px; }
  #view-add-friend .addfriend-search .input { flex:1; height:44px; border:1px solid var(--border); border-radius:12px; padding:0 14px; font-size:15px; background:#F9FAFB; outline:none; font-family:var(--font); }
  #view-add-friend .addfriend-search-btn { flex-shrink:0; height:44px; padding:0 18px; border:none; border-radius:12px; background:var(--primary); color:#fff; font-size:15px; font-weight:600; cursor:pointer; font-family:var(--font); }
  #view-add-friend .addfriend-empty { text-align:center; color:var(--text-3); font-size:14px; padding:60px 20px; }
  #view-add-friend .addfriend-card { background:var(--bg-card); border:1px solid var(--border); border-radius:16px; padding:20px 16px; display:flex; flex-direction:column; align-items:center; gap:12px; }
  #view-add-friend .af-avatar { width:72px; height:72px; border-radius:12px; background:#E5E7EB; color:#4B5563; display:flex; align-items:center; justify-content:center; font-size:28px; font-weight:600; overflow:hidden; flex-shrink:0; }
  #view-add-friend .af-avatar img { width:100%; height:100%; object-fit:cover; border-radius:12px; display:block; }
  #view-add-friend .af-name { font-size:18px; font-weight:600; color:var(--text-1); }
  #view-add-friend .af-sub { font-size:13px; color:var(--text-3); text-align:center; }
  #view-add-friend .af-add-btn { width:100%; height:44px; border:none; border-radius:12px; background:var(--primary); color:#fff; font-size:16px; font-weight:600; cursor:pointer; margin-top:4px; font-family:var(--font); }
  #view-add-friend .af-add-btn.done { background:#E5E7EB; color:var(--text-3); cursor:default; }
  .contact-empty { text-align:center; color:var(--text-3); font-size:14px; padding:40px 16px; }

  /* ============ 群聊模块样式 ============ */
  .g-avatar { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; color: #fff; overflow: hidden; }
  .g-avatar img, .g-avatar-img { width: 100%; height: 100%; object-fit: cover; }
  .g-member-pick { display: flex; flex-direction: column; }
  .g-pick-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .g-pick-row:last-child { border-bottom: none; }
  .g-pick-name { flex: 1; font-size: 15px; color: var(--text-1); }
  .g-pick-check { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #CBD5E1; display: flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; flex-shrink: 0; }
  .g-pick-row.checked .g-pick-check { background: var(--primary); border-color: var(--primary); color: #fff; }
  .g-empty { padding: 16px 4px; font-size: 13px; color: var(--text-3); }
  .view-chat .g-sender { font-size: 11px; color: var(--text-3); margin: 0 0 3px 2px; }
  .view-chat .row.other .g-msg-wrap { display: flex; flex-direction: column; align-items: flex-start; max-width: 72%; }
  .view-chat .g-msg-wrap .bubble { max-width: 100%; }
  .g-info-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 0 16px; }
  .g-info-avatar { width: 64px; height: 64px; border-radius: 16px; background: #0EA5E9; color: #fff; font-size: 26px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
  .g-info-name { font-size: 18px; font-weight: 600; color: var(--text-1); }
  .g-info-sub { font-size: 13px; color: var(--text-3); }
  .g-member-list { margin-bottom: 16px; }
  .g-member-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .g-member-row:last-child { border-bottom: none; }
  .g-member-name { flex: 1; font-size: 15px; color: var(--text-1); }
  .g-member-owner { font-size: 11px; color: #F59E0B; font-weight: 600; margin-left: 6px; }
  .g-member-kick { flex-shrink: 0; padding: 5px 12px; border: 1px solid #FCA5A5; border-radius: 14px; background: none; color: #DC2626; font-size: 12px; cursor: pointer; font-family: var(--font); }
  .g-info-actions { display: flex; flex-direction: column; gap: 10px; }
  .g-action-btn { width: 100%; padding: 13px 0; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; font-weight: 600; font-family: var(--font); cursor: pointer; background: var(--bg-card); color: var(--text-1); }
  .g-action-btn.danger { background: #FEF2F2; color: #DC2626; border-color: #FECACA; }
  .g-rename-row { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
  .g-rename-row .input { flex: 1; }
  .g-btn { flex-shrink: 0; padding: 0 14px; height: 40px; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-family: var(--font); cursor: pointer; background: var(--bg-card); color: var(--text-1); }
  .g-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* ============ 群聊 @ 艾特 ============ */
  .at-only { display: none !important; }
  .view-chat .at-only.show { display: inline-flex !important; }
  .at-btn { font-weight: 700; font-size: 18px; color: var(--primary); }
  .mention-mask { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 80; display: none; align-items: flex-end; }
  .mention-mask.show { display: flex; }
  .mention-panel { width: 100%; background: var(--bg-card); border-radius: 16px 16px 0 0; max-height: 60vh; overflow: hidden; }
  .mention-head { padding: 14px 18px; font-size: 14px; font-weight: 600; color: var(--text-1); border-bottom: 1px solid var(--border); }
  .mention-list { max-height: 52vh; overflow-y: auto; }
  .mention-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); cursor: pointer; }
  .mention-row:active { background: var(--bg-page); }
  .mention-row .g-avatar { width: 36px; height: 36px; font-size: 14px; }
  .mention-name { flex: 1; font-size: 15px; color: var(--text-1); }
  .at-highlight { color: var(--primary); font-weight: 600; }
  /* 艾特高亮：self 深色气泡内用浅色，避免与蓝底同色看不见 */
  .view-chat .row.self .bubble .at-highlight { color: #BFDBFE; }
  .view-chat .row.other .bubble .at-highlight { color: var(--primary); }
  /* ============ 璐璐 PPT 大纲卡片 ============ */
  .lulu-ppt-outline { max-width: 100%; }
  .lulu-ppt-otitle { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 8px; }
  .lulu-ppt-opage { border-left: 3px solid var(--primary); padding-left: 10px; margin-bottom: 10px; }
  .lulu-ppt-ohead { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; }
  .lulu-ppt-opage ul { margin: 0; padding-left: 16px; }
  .lulu-ppt-opage li { font-size: 13px; color: #374151; line-height: 20px; }

  /* ===== 拍题答疑来源选择（底部弹层） ===== */
  .shoot-picker-mask { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: flex-end; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; }
  .shoot-picker-mask.show { opacity: 1; pointer-events: auto; }
  .shoot-picker { width: 100%; max-width: 480px; background: #FFFFFF; border-radius: 16px 16px 0 0; padding: 8px 12px calc(12px + env(safe-area-inset-bottom)); box-sizing: border-box; }
  .shoot-picker-title { padding: 14px 0 10px; text-align: center; font-size: 15px; font-weight: 600; color: var(--text-2); }
  .shoot-picker-item { display: block; width: 100%; padding: 15px 0; border: none; border-top: 1px solid var(--border); background: none; font-size: 16px; color: var(--text-1); text-align: center; cursor: pointer; font-family: var(--font); }
  .shoot-picker-item:active { background: #F1F5F9; }
  .shoot-picker-cancel { display: block; width: 100%; margin-top: 8px; padding: 15px 0; border: none; border-radius: 12px; background: #F3F4F6; font-size: 16px; font-weight: 600; color: var(--text-1); text-align: center; cursor: pointer; font-family: var(--font); }
  .shoot-picker-cancel:active { background: #E7EAF0; }
/* ===== 璐璐语音通话界面 ===== */
#luluCallMask { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 26px 20px 36px; background: linear-gradient(165deg, #dbeafe 0%, #e0e7ff 48%, #f3e8ff 100%); color: #1e293b; }

/* ===== 璐璐 Excel 下载卡片 ===== */
.lulu-excel-card { display: flex; align-items: center; gap: 10px; max-width: 260px; padding: 12px; margin-top: 6px; border-radius: 12px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.view-chat .bubble.other .lulu-excel-card { background: #fff; }
.lulu-excel-icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #34c759, #16a34a); color: #fff; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lulu-excel-info { min-width: 0; }
.lulu-excel-name { font-size: 14px; color: #111827; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.lulu-excel-tip { font-size: 12px; color: #9ca3af; margin-top: 2px; }

/* ===== 璐璐打字机光标 ===== */
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #2563eb; animation: luluCaret 0.8s step-end infinite; }
@keyframes luluCaret { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }


/* ===== 璐璐回复操作栏（横线 + 复制/朗读/分享/重新回复，内嵌气泡 + 蓝色） ===== */
.lulu-actions { margin-top: 8px; }
.lulu-actions-hr { border: none; border-top: 1px solid #e3e8ef; margin: 0 0 6px; }
.lulu-actions-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lulu-act-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; background: #e7f0fd; color: #2563eb; font-size: 13px; line-height: 1; padding: 0; border-radius: 8px; cursor: pointer; flex: none; transition: transform .12s ease, background .12s ease, box-shadow .12s ease; -webkit-tap-highlight-color: transparent; }
.lulu-act-inner { display: inline-flex; align-items: center; justify-content: center; pointer-events: none; transition: transform .12s ease; }
.lulu-act-btn:active { background: #cfe1fb; transform: scale(.82); box-shadow: 0 2px 6px rgba(37,99,235,.18); }
.lulu-act-btn:active .lulu-act-inner { transform: scale(1.06); }
.lulu-act-btn[data-act="redo"] { margin-left: auto; }
.lulu-act-btn-tapped { transform: scale(.82); background: #cfe1fb; box-shadow: 0 2px 6px rgba(37,99,235,.18); }
.lulu-act-btn-tapped .lulu-act-inner { transform: scale(1.06); }


/* 璐璐视频通话：摄像头画面作为背景透出 */
/* 璐璐视频通话：摄像头画面显示在上方预览框内 */
.luluCallMediaBox.cam-active { background: #0f172a; border-color: #6366f1; }

/* ?????????????? + ?? + ?????? */
.voice-hold-overlay { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40000; display: none; align-items: center; justify-content: center; flex-direction: column; padding-bottom: calc(40px + env(safe-area-inset-bottom)); pointer-events: none; }
.voice-hold-overlay.show { display: flex; }
.voice-hold-tip { margin-bottom: 18px; font-size: 14px; color: #6B7280; text-align: center; }
.voice-hold-dome { width: 150px; height: 75px; border-radius: 75px 75px 0 0; background: rgba(59,130,246,.28); transition: background .2s ease; }
.voice-hold-overlay.cancel .voice-hold-dome { background: rgba(239,68,68,.45); }
.voice-hold-overlay.cancel .voice-hold-tip { color: #EF4444; }
.view-chat .input-box.hold-talk { text-align: center; }
.view-chat .input-box { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ????????????? + ??/?? + ????? */
/* wx-style friend voice */
/* 微信发语音 UI（浅色标准）：上方绿色声波小窗 + 中间白色半圆 + 左右灰胶囊 */
/* 微信发语音 UI（浅色标准）：白色半圆 + 中央绿色声波（录音时浮现）+ 左右灰胶囊「取消/转文字」 */
.fv-overlay { position: fixed; left: 0; top: 0; width: 100%; height: 100%; z-index: 41000; }
.fv-bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: rgba(17,24,39,.30); }

/* 顶部不再放常驻绿窗；绿窗绝对定位进半圆中央，录音时显示 */
.fv-center { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.fv-micwave { width: 74px; height: 74px; border-radius: 50%; background: #07C160; display: flex; align-items: center; justify-content: center; gap: 4px; box-shadow: 0 8px 22px rgba(7,193,96,.4); transition: background .16s ease; }
.fv-micwave span { width: 5px; height: 16px; border-radius: 3px; background: #fff; animation: fv-wave .9s infinite ease-in-out; }
.fv-micwave span:nth-child(2){ animation-delay:.12s; } .fv-micwave span:nth-child(3){ animation-delay:.24s; } .fv-micwave span:nth-child(4){ animation-delay:.36s; } .fv-micwave span:nth-child(5){ animation-delay:.48s; }
@keyframes fv-wave { 0%,100%{ height:10px; } 50%{ height:32px; } }
.fv-overlay.cancel .fv-micwave { background: #FA5151; box-shadow: 0 8px 22px rgba(250,81,81,.4); }

/* 转文字矩形（灰色半屏上面的结果） */
.fv-rect { display: none; width: 280px; min-height: 110px; max-height: 40vh; overflow: auto; padding: 14px 16px; border-radius: 12px; background: #fff; color: #111827; font-size: 15px; line-height: 22px; text-align: left; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.fv-overlay.transcribing .fv-rect { display: block; }
.fv-overlay.transcribing .fv-micwave { display: none; }

/* 底部：中央白色半圆 + 左右灰胶囊 */
.fv-bottom { position: absolute; left: 0; right: 0; bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 0 16px; z-index: 2; }
.fv-dome { position: relative; width: 180px; height: 100px; border-radius: 90px 90px 0 0; background: rgba(255,255,255,.97); box-shadow: 0 -2px 14px rgba(0,0,0,.08); display: flex; align-items: center; justify-content: center; color: #374151; font-size: 15px; font-weight: 600; transition: background .15s ease, color .15s ease; overflow: hidden; }
.fv-overlay.cancel .fv-dome { background: rgba(255,240,240,.98); color: #FA5151; }
.fv-arc { min-width: 100px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; padding: 0 16px; font-size: 14px; color: #374151; background: rgba(255,255,255,.94); border: 1px solid rgba(209,213,219,.7); box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: background .15s ease, color .15s ease; }
.fv-arc-cancel.on, .fv-arc-cancel.fv-active, .fv-overlay.cancel .fv-arc-cancel { background: #FA5151; border-color: #FA5151; color: #fff; }
.fv-arc-text.on, .fv-arc-text.fv-active, .fv-overlay.text .fv-arc-text { background: #07C160; border-color: #07C160; color: #fff; }

/* 转文字灰色半屏 + 三按钮 */
.fv-panel { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; display: none; background: linear-gradient(180deg, rgba(243,244,246,.94), rgba(229,231,235,.97)); border-radius: 20px 20px 0 0; z-index: 3; }
.fv-overlay.transcribing .fv-panel { display: block; }
.fv-overlay.transcribing .fv-bottom { display: none; }
.fv-overlay.transcribing .fv-center { display: none; }
.fv-panel-btns { position: absolute; left: 0; right: 0; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 28px; }
.fv-btn { border: none; cursor: pointer; font-family: var(--font); -webkit-tap-highlight-color: transparent; }
.fv-btn-cancel, .fv-btn-original { width: 66px; height: 66px; border-radius: 50%; background: #9CA3AF; display: flex; align-items: center; justify-content: center; }
.fv-btn-ic { color: #fff; font-size: 30px; line-height: 1; }
.fv-btn-send { min-width: 104px; height: 50px; padding: 0 28px; border-radius: 25px; background: #fff; color: #6B7280; font-size: 16px; font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.view-chat .input-box.hold-talk { text-align: center; font-weight: 700; }

/* ???????? */
.view-chat .voice-bubble { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 14px; cursor: pointer; min-width: 88px; }
.view-chat .row.self .voice-bubble { background: #95EC69; color: #1B5E20; flex-direction: row-reverse; }
.view-chat .row.other .voice-bubble { background: #fff; color: #111827; border: 1px solid rgba(0,0,0,.05); }
.view-chat .voice-wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 18px; }
.view-chat .voice-wave i { width: 3px; height: 6px; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: vw-wave 1.2s infinite ease-in-out; }
.view-chat .voice-wave i:nth-child(2){ height: 12px; animation-delay:.15s; }
.view-chat .voice-wave i:nth-child(3){ height: 18px; animation-delay:.3s; }
.view-chat .voice-bubble.playing .voice-wave i { animation-play-state: running; }
.view-chat .voice-bubble:not(.playing) .voice-wave i { animation-play-state: paused; height: 8px; }
.view-chat .voice-bubble:not(.playing) .voice-wave i:nth-child(2){ height: 14px; }
.view-chat .voice-bubble:not(.playing) .voice-wave i:nth-child(3){ height: 20px; }
.view-chat .voice-dur { font-size: 14px; font-weight: 500; }
@keyframes vw-wave { 0%,100%{ transform: scaleY(.5); } 50%{ transform: scaleY(1.4); } }
