
    /* ============ 基础重置 ============ */
    * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
    html, body { width: 100%; height: 100%; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

    /* ============ 颜色变量 ============ */
    :root {
      --bg-root: #0F0C29;
      --bg-mid: #302B63;
      --bg-end: #24243E;
      --green: #10B981;
      --purple: #6C63FF;
      --pink: #FF6B9D;
      --gold: #FFD700;
      --text-white: #FFFFFF;
      --text-dim: rgba(255,255,255,0.6);
      --text-muted: rgba(255,255,255,0.35);
      --card-bg: rgba(255,255,255,0.05);
      --card-border: rgba(255,255,255,0.1);
      --card-border-green: rgba(16,185,129,0.3);
    }

    /* ============ 应用容器 ============ */
    #app {
      width: 100%;
      height: 100%;
      max-width: 430px;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
      background: var(--bg-root);
    }

    /* ============ 页面通用 ============ */
    .page {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      display: none;
      flex-direction: column;
      overflow: hidden;
      /* 性能优化：GPU合成层，减少重绘 */
      transform: translateZ(0);
      backface-visibility: hidden;
    }
    .page.active { display: flex; will-change: transform; }


    /* ============ 首页背景（参考网站深蓝紫渐变风格） ============ */
    .gradient-bg {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(160deg, rgb(15, 12, 41) 0%, rgb(48, 43, 99) 55%, rgb(36, 36, 62) 100%);
      z-index: 0;
    }
    .gradient-bg::before {
      content: "";
      position: absolute;
      top: -120px; left: 50%;
      transform: translateX(-50%);
      width: 350px; height: 350px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(108,99,255,0.3) 0%, transparent 70%);
      pointer-events: none;
    }
    .gradient-bg::after {
      content: "";
      position: absolute;
      bottom: -50px; right: -50px;
      width: 250px; height: 250px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
      pointer-events: none;
      z-index: 0;
    }

    .glow-orb {
      position: absolute;
      border-radius: 50%;
      filter: blur(60px);
      pointer-events: none;
      z-index: 1;
    }
    .glow-orb-1 { display: none; }
    .glow-orb-2 { display: none; }

    /* ============ 滚动容器 ============ */
    .scroll-content {
      position: relative;
      z-index: 2;
      flex: 1;
      width: 100%;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      box-sizing: border-box;
      /* 底部安全区域 + tab-bar高度，确保内容不被底部导航遮挡，可以滚到最底部 */
      padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    /* 没有底部导航的页面不需要额外 padding */
    .scroll-content.no-tabbar {
      padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }
    .scroll-content::-webkit-scrollbar { display: none; }

    /* ============ 底部导航 ============ */
    .tab-bar {
      position: absolute;
      bottom: 0; left: 0; right: 0;
      height: 70px;
      background: rgba(15,12,41,0.92);
      border-top: 1px solid rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: space-around;
      z-index: 100;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      padding-bottom: env(safe-area-inset-bottom);
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
    }
    .tab-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      padding: 8px 16px;
      border-radius: 12px;
      transition: all 0.2s ease;
      flex: 1;
    }
    .tab-item:active { transform: scale(0.9); }
    .tab-item .tab-icon { font-size: 22px; color: var(--text-muted); transition: color 0.2s; }
    .tab-item .tab-label { font-size: 11px; color: var(--text-muted); transition: color 0.2s; }
    .tab-item.active .tab-icon { color: var(--green); }
    .tab-item.active .tab-label { color: var(--green); }

    /* 中间大按钮 */
    .tab-center-btn {
      width: 58px;
      height: 58px;
      border-radius: 29px;
      background: linear-gradient(135deg, var(--green), #059669);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 20px rgba(16,185,129,0.5);
      position: relative;
      top: -10px;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .tab-center-btn:active { transform: scale(0.9); }
    .tab-center-btn .tab-icon { font-size: 26px; color: #fff; }

    /* ============ 启动页 ============ */
    #page-splash {
      background: linear-gradient(160deg, #0F0C29 0%, #302B63 50%, #24243E 100%);
      align-items: center;
      justify-content: center;
    }
    .splash-logo {
      width: 110px;
      height: 110px;
      border-radius: 28px;
      background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(108,99,255,0.2));
      border: 1px solid rgba(16,185,129,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
      animation: logoFloat 3s ease-in-out infinite;
    }
    @keyframes logoFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-8px); }
    }
    .splash-logo i { font-size: 52px; color: var(--green); }
    .splash-title { font-size: 28px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; letter-spacing: 2px; }
    .splash-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 60px; }
    .splash-loading {
      display: flex;
      gap: 6px;
      align-items: center;
    }
    .splash-dot {
      width: 8px; height: 8px;
      border-radius: 4px;
      background: var(--green);
      animation: dotBounce 1.2s ease-in-out infinite;
    }
    .splash-dot:nth-child(2) { animation-delay: 0.2s; }
    .splash-dot:nth-child(3) { animation-delay: 0.4s; }
    @keyframes dotBounce {
      0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
      40% { transform: scale(1); opacity: 1; }
    }

    /* ============ 首页 ============ */

    /* 顶部导航栏 */
    .home-navbar {
      padding: 52px 20px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      background: rgba(0,0,0,0.0);
      z-index: 2;
    }
    .home-brand {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .home-brand-icon {
      width: 36px; height: 36px;
      border-radius: 10px;
      background: linear-gradient(135deg, var(--green), #059669);
      display: flex; align-items: center; justify-content: center;
      font-size: 18px;
    }
    .home-brand-name {
      font-size: 17px;
      font-weight: 700;
      color: var(--text-white);
      letter-spacing: 0.5px;
    }
    .home-brand-sub {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 1px;
    }
    .home-nav-right {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    .home-notice-btn {
      width: 36px; height: 36px;
      border-radius: 12px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      position: relative;
    }
    .home-notice-btn i { font-size: 16px; color: var(--text-dim); }
    .home-notice-dot {
      position: absolute; top: 6px; right: 6px;
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--pink);
      border: 1.5px solid var(--bg-root);
    }
    .home-avatar {
      width: 36px; height: 36px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--purple), var(--green));
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
    }
    .home-avatar i { font-size: 16px; color: #fff; }

    /* 状态条（剩余次数） */
    .home-status-bar {
      margin: 0 20px 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      position: relative;
      z-index: 2;
    }
    .home-status-left {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 24px;
      padding: 7px 14px;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }
    .home-status-icon {
      width: 26px; height: 26px;
      border-radius: 50%;
      background: rgba(16,185,129,0.15);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .home-status-icon i { font-size: 13px; color: var(--green); }
    .home-status-text { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
    .home-status-text strong { color: var(--text-white); font-size: 14px; }
    .home-status-vip-btn {
      background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.10));
      border: 1px solid rgba(245,158,11,0.35);
      border-radius: 24px;
      padding: 7px 14px;
      font-size: 12px;
      font-weight: 600;
      color: var(--gold);
      cursor: pointer;
      display: inline-flex; align-items: center; gap: 5px;
      white-space: nowrap;
      flex-shrink: 0;
    }

    /* 主Banner */
    .scan-banner {
      margin: 0 20px 20px;
      border-radius: 22px;
      background: linear-gradient(90deg, rgb(16, 185, 129) 0%, rgb(108, 99, 255) 100%);
      border: none;
      padding: 0;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      z-index: 2;
      min-height: 180px;
      box-shadow: 0 12px 40px rgba(16,185,129,0.3);
    }
    .scan-banner::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 60%);
    }
    .scan-banner-glow {
      position: absolute;
      width: 260px; height: 260px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(16,185,129,0.3) 0%, transparent 65%);
      top: -80px; left: 50%;
      transform: translateX(-50%);
      pointer-events: none;
    }
    .scan-banner-inner {
      position: relative;
      z-index: 1;
      padding: 28px 24px 28px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0;
      text-align: center;
    }
    .scan-banner-camera-icon {
      width: 72px; height: 72px;
      border-radius: 24px;
      background: rgba(255,255,255,0.15);
      border: 1.5px solid rgba(255,255,255,0.25);
      display: flex; align-items: center; justify-content: center;
      margin-bottom: 16px;
      backdrop-filter: blur(4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.2);
      transition: transform 0.2s;
    }
    .scan-banner:active .scan-banner-camera-icon { transform: scale(0.93); }
    .scan-banner-camera-icon i { font-size: 32px; color: #fff; }
    .scan-banner-cta-title {
      font-size: 24px;
      font-weight: 800;
      color: #fff;
      letter-spacing: 2px;
      margin-bottom: 8px;
    }
    .scan-banner-cta-sub {
      font-size: 13px;
      color: rgba(255,255,255,0.7);
      letter-spacing: 0.3px;
    }
    /* 兼容旧类名（其他页面可能引用） */
    .scan-banner-badge { display: none; }
    .scan-banner-title { display: none; }
    .scan-banner-desc { display: none; }
    .scan-btn { display: none; }
    .banner-jade-icon { display: none; }
    .banner-stat-row { display: none; }

    /* 功能快捷方式 */
    .section-title {
      font-size: 16px;
      font-weight: 600;
      color: var(--text-white);
      margin: 0 20px 14px;
      position: relative;
      z-index: 2;
    }
    .quick-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin: 0 20px 24px;
      position: relative;
      z-index: 2;
    }
    .quick-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0;
      cursor: pointer;
      border-radius: 18px;
      padding: 20px 12px 18px;
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.12);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      transition: transform 0.18s, box-shadow 0.18s;
      min-height: 110px;
      position: relative;
      overflow: hidden;
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
    }
    .quick-item:active { transform: scale(0.96); box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
    .quick-icon-wrap {
      width: 46px; height: 46px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      flex-shrink: 0;
    }
    .quick-icon-wrap i { font-size: 20px; color: #fff !important; }
    .quick-label {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-white);
      margin-bottom: 4px;
      letter-spacing: 0.3px;
    }
    .quick-sublabel {
      font-size: 11px;
      color: rgba(255,255,255,0.45);
      line-height: 1.4;
    }
    /* 卡片右下角装饰光晕 */
    .quick-item::after {
      content: '';
      position: absolute;
      bottom: -20px; right: -20px;
      width: 70px; height: 70px;
      border-radius: 50%;
      opacity: 0.12;
      pointer-events: none;
    }

    /* 自定义确认弹窗 */
    .custom-confirm-mask {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6);
      z-index: 9999;
      display: flex; align-items: center; justify-content: center;
      opacity: 0; pointer-events: none;
      transition: opacity 0.2s;
    }
    .custom-confirm-mask.show { opacity: 1; pointer-events: all; }
    .custom-confirm-box {
      background: #112219;
      border: 1px solid rgba(16,185,129,0.2);
      border-radius: 20px;
      padding: 28px 24px 20px;
      width: 80%;
      max-width: 320px;
      text-align: center;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .custom-confirm-icon {
      width: 52px; height: 52px;
      border-radius: 50%;
      background: rgba(255,100,100,0.12);
      border: 1px solid rgba(255,100,100,0.25);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 16px;
      font-size: 22px; color: #FF6464;
    }
    .custom-confirm-title {
      font-size: 16px; font-weight: 700;
      color: var(--text-white); margin-bottom: 8px;
    }
    .custom-confirm-sub {
      font-size: 13px; color: rgba(255,255,255,0.5);
      margin-bottom: 22px; line-height: 1.5;
    }
    .custom-confirm-btns {
      display: flex; gap: 10px;
    }
    .custom-confirm-btns button {
      flex: 1; height: 44px; border-radius: 12px;
      border: none; font-size: 15px; font-weight: 600;
      cursor: pointer; transition: opacity 0.15s;
    }
    .custom-confirm-btns button:active { opacity: 0.75; }
    .btn-cancel {
      background: rgba(255,255,255,0.08);
      color: rgba(255,255,255,0.7);
    }
    .btn-confirm-logout {
      background: linear-gradient(135deg, #FF6464, #EF4444);
      color: #fff;
    }

    /* 知识卡片 */
    .knowledge-list {
      margin: 0 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      z-index: 2;
    }
    .knowledge-card {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      gap: 14px;
      cursor: pointer;
      transition: all 0.2s;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transform: translateZ(0);
      -webkit-transform: translateZ(0);
    }
    .knowledge-card:active { background: rgba(255,255,255,0.1); }
    .knowledge-img {
      width: 70px; height: 70px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 32px;
      flex-shrink: 0;
    }
    .knowledge-info { flex: 1; }
    .knowledge-tag {
      display: inline-block;
      font-size: 10px;
      color: var(--purple);
      background: rgba(108,99,255,0.1);
      border: 1px solid rgba(108,99,255,0.2);
      border-radius: 4px;
      padding: 2px 6px;
      margin-bottom: 6px;
    }
    .knowledge-title { font-size: 14px; font-weight: 600; color: var(--text-white); margin-bottom: 4px; }
    .knowledge-desc { font-size: 12px; color: var(--text-dim); line-height: 1.4; }

    /* ============ 视频识别页 ============ */
    #page-video-scan { background:#000; }
    .vscan-header {
      position: absolute; top: 0; left: 0; right: 0;
      padding: 48px 16px 12px;
      display: flex; align-items: center; justify-content: space-between;
      z-index: 20;
      background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    }
    .vscan-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
    .vscan-vip-badge {
      display: inline-flex; align-items: center; gap: 4px;
      padding: 3px 10px; border-radius: 20px;
      background: linear-gradient(135deg,#F59E0B,#D97706);
      font-size: 11px; font-weight: 700; color: #fff;
    }
    .vscan-video-wrap {
      position: absolute; top: 0; left: 0; right: 0; bottom: 0;
      overflow: hidden;
    }
    #vscan-video {
      width: 100%; height: 100%; object-fit: cover;
    }
    /* 取景框 */
    .vscan-frame {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-56%);
      width: 260px; height: 260px;
      z-index: 10; pointer-events: none;
    }
    .vscan-frame-corner {
      position: absolute; width: 28px; height: 28px;
      border-color: #10B981; border-style: solid;
    }
    .vscan-frame-corner.tl { top:0;left:0; border-width:3px 0 0 3px; border-radius:4px 0 0 0; }
    .vscan-frame-corner.tr { top:0;right:0; border-width:3px 3px 0 0; border-radius:0 4px 0 0; }
    .vscan-frame-corner.bl { bottom:0;left:0; border-width:0 0 3px 3px; border-radius:0 0 0 4px; }
    .vscan-frame-corner.br { bottom:0;right:0; border-width:0 3px 3px 0; border-radius:0 0 4px 0; }
    .vscan-scan-bar {
      position: absolute; left: 4px; right: 4px; height: 2px;
      background: linear-gradient(90deg, transparent, #10B981, #10B981, transparent);
      box-shadow: 0 0 8px #10B981;
      animation: vscanMove 2s linear infinite;
    }
    @keyframes vscanMove {
      0% { top: 4px; }
      100% { top: calc(100% - 6px); }
    }
    /* 倒计时圆圈 */
    .vscan-countdown-wrap {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,30%);
      z-index: 15; text-align: center;
    }
    .vscan-countdown-ring {
      position: relative; width: 80px; height: 80px; margin: 0 auto 8px;
    }
    .vscan-countdown-ring svg {
      transform: rotate(-90deg);
    }
    .vscan-countdown-ring circle {
      fill: none; stroke-width: 5;
    }
    .vscan-ring-bg { stroke: rgba(255,255,255,0.2); }
    .vscan-ring-fg { stroke: #10B981; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
    .vscan-countdown-num {
      position: absolute; top: 50%; left: 50%;
      transform: translate(-50%,-50%);
      font-size: 26px; font-weight: 800; color: #fff;
    }
    .vscan-countdown-label {
      font-size: 12px; color: rgba(255,255,255,0.8);
      font-weight: 500; letter-spacing: 0.5px;
    }
    /* 底部提示 */
    .vscan-tips {
      position: absolute; bottom: 110px; left: 0; right: 0;
      padding: 0 20px; z-index: 15; text-align: center;
    }
    .vscan-tips-text {
      font-size: 13px; color: rgba(255,255,255,0.85);
      background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
      border-radius: 20px; padding: 8px 16px; display: inline-block;
    }
    /* 底部按钮区 */
    .vscan-bottom {
      position: absolute; bottom: 0; left: 0; right: 0;
      padding: 16px 20px 32px;
      background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
      z-index: 20; display: flex; flex-direction: column; align-items: center; gap: 12px;
    }
    .vscan-record-btn {
      width: 70px; height: 70px; border-radius: 50%;
      border: 4px solid rgba(255,255,255,0.8);
      background: transparent;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; transition: transform 0.15s;
      position: relative;
    }
    .vscan-record-btn:active { transform: scale(0.94); }
    .vscan-record-btn-inner {
      width: 52px; height: 52px; border-radius: 50%;
      background: #EF4444;
      transition: all 0.3s;
    }
    .vscan-record-btn.recording .vscan-record-btn-inner {
      border-radius: 10px;
      width: 32px; height: 32px;
      background: #EF4444;
    }
    .vscan-back-btn {
      padding: 8px 28px; border-radius: 20px;
      background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
      color: rgba(255,255,255,0.8); font-size: 13px; cursor: pointer;
    }
    /* 多角度提示 */
    .vscan-angle-tips {
      position: absolute; top: 50%; left: 16px;
      transform: translateY(-50%);
      z-index: 15; display: flex; flex-direction: column; gap: 10px;
    }
    .vscan-angle-dot {
      width: 8px; height: 8px; border-radius: 50%;
      background: rgba(255,255,255,0.3);
      transition: background 0.3s, transform 0.3s;
    }
    .vscan-angle-dot.active { background: #10B981; transform: scale(1.4); }
    /* 分析遮罩 */
    .vscan-analyzing-mask {
      position: absolute; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.82); z-index: 30;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 16px;
    }
    .vscan-analyzing-icon {
      width: 80px; height: 80px; border-radius: 50%;
      background: linear-gradient(135deg,rgba(16,185,129,0.2),rgba(108,99,255,0.2));
      border: 2px solid rgba(16,185,129,0.5);
      display: flex; align-items: center; justify-content: center;
      animation: vscanPulse 1.5s ease-in-out infinite;
    }
    @keyframes vscanPulse {
      0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
      50% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(16,185,129,0); }
    }
    .vscan-analyzing-title { font-size: 17px; font-weight: 700; color: #fff; }
    .vscan-analyzing-sub { font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; padding: 0 32px; line-height: 1.7; }
    .vscan-progress-bar {
      width: 200px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden;
    }
    .vscan-progress-fill {
      height: 100%; background: linear-gradient(90deg,#10B981,#6C63FF);
      border-radius: 2px; transition: width 0.4s ease;
    }
    /* VIP锁定遮罩 */
    .vscan-lock-mask {
      position: absolute; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.88); z-index: 40;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      gap: 14px; padding: 32px;
    }
    .vscan-lock-icon {
      width: 72px; height: 72px; border-radius: 50%;
      background: linear-gradient(135deg,rgba(245,158,11,0.15),rgba(245,158,11,0.05));
      border: 2px solid rgba(245,158,11,0.4);
      display: flex; align-items: center; justify-content: center;
    }
    .vscan-lock-title { font-size: 18px; font-weight: 800; color: #fff; }
    .vscan-lock-desc { font-size: 13px; color: rgba(255,255,255,0.55); text-align: center; line-height: 1.8; }
    .vscan-lock-btn-vip {
      padding: 12px 36px; border-radius: 28px;
      background: linear-gradient(135deg,#F59E0B,#D97706);
      color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
      box-shadow: 0 4px 16px rgba(245,158,11,0.35);
    }
    .vscan-lock-btn-back {
      font-size: 13px; color: rgba(255,255,255,0.4); cursor: pointer;
    }

    /* ============ 极简版鉴定页样式 ============ */
    #identify-scroll {
      padding-bottom: 140px;
    }
    .simple-header {
      padding: 52px 16px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 2;
    }
    .simple-upload-box {
      background: rgba(255,255,255,0.08);
      border: 2px dashed rgba(255,255,255,0.2);
      border-radius: 16px;
      padding: 40px 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
      margin-bottom: 20px;
    }
    .simple-upload-box:hover {
      border-color: #10B981;
      background: rgba(16,185,129,0.1);
    }
    .simple-upload-icon {
      width: 80px;
      height: 80px;
      margin: 0 auto 16px;
      background: linear-gradient(135deg, #10B981, #6C63FF);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 36px;
    }
    .simple-upload-text {
      font-size: 16px;
      color: rgba(255,255,255,0.8);
      margin-bottom: 8px;
    }
    .simple-upload-hint {
      font-size: 12px;
      color: rgba(255,255,255,0.4);
    }
    .simple-preview-box {
      display: none;
      position: relative;
      margin-bottom: 20px;
      border-radius: 16px;
      overflow: hidden;
      background: rgba(0,0,0,0.3);
    }
    .simple-preview-box.show { display: block; }
    .simple-preview-img { width: 100%; display: block; }
    .simple-preview-remove {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 36px;
      height: 36px;
      background: rgba(0,0,0,0.6);
      border-radius: 50%;
      border: none;
      color: #fff;
      font-size: 18px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .simple-category-select { margin-bottom: 20px; }
    .simple-category-label { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 10px; display: block; }
    .simple-category-btns { display: flex; flex-wrap: wrap; gap: 8px; }
    .simple-category-btn {
      padding: 8px 16px;
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 20px;
      color: rgba(255,255,255,0.7);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .simple-category-btn.active { background: linear-gradient(135deg, #10B981, #6C63FF); border-color: transparent; color: #fff; }
    .simple-category-btn:hover { border-color: #10B981; }
    .simple-btn-identify {
      width: 100%;
      padding: 16px;
      background: linear-gradient(135deg, #10B981, #6C63FF);
      border: none;
      border-radius: 12px;
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      transition: opacity 0.2s;
      margin-bottom: 20px;
    }
    .simple-btn-identify:disabled { opacity: 0.5; cursor: not-allowed; }
    .simple-btn-identify:not(:disabled):hover { opacity: 0.9; }
    .simple-loading { display: none; text-align: center; padding: 40px 20px; }
    .simple-loading.show { display: block; }
    .simple-loading-spinner {
      width: 50px; height: 50px;
      border: 4px solid rgba(255,255,255,0.2);
      border-top-color: #10B981;
      border-radius: 50%;
      animation: spin 1s linear infinite;
      margin: 0 auto 16px;
    }
    .simple-loading-text { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
    .simple-loading-hint { font-size: 12px; color: rgba(255,255,255,0.4); }
    .simple-result-box { display: none; background: rgba(255,255,255,0.06); border-radius: 16px; padding: 24px; margin-bottom: 20px; }
    .simple-result-box.show { display: block; }
    .simple-result-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .simple-result-title { font-size: 18px; font-weight: 600; color: #fff; }
    .simple-result-badge { padding: 4px 12px; background: linear-gradient(135deg, #10B981, #6C63FF); border-radius: 20px; font-size: 12px; color: #fff; }
    .simple-result-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .simple-result-row:last-child { border-bottom: none; }
    .simple-result-label { font-size: 14px; color: rgba(255,255,255,0.6); }
    .simple-result-value { font-size: 14px; font-weight: 500; text-align: right; max-width: 60%; }
    .simple-result-value.highlight { color: #10B981; font-size: 18px; font-weight: 700; }
    .simple-result-value.warning { color: #FF6B9D; }
    .simple-result-error { text-align: center; padding: 20px; color: #FF6B9D; }
    .simple-result-not-jade { text-align: center; padding: 30px 20px; }
    .simple-result-not-jade .icon { font-size: 60px; margin-bottom: 16px; }
    .simple-result-not-jade .text { font-size: 18px; margin-bottom: 8px; color: #fff; }
    .simple-result-not-jade .hint { font-size: 14px; color: rgba(255,255,255,0.5); }
    .simple-price-section { background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(108,99,255,0.15)); border-radius: 12px; padding: 16px; margin-top: 16px; }
    .simple-price-title { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 12px; text-align: center; }
    .simple-price-row { display: flex; justify-content: space-between; padding: 8px 0; }
    .simple-price-label { font-size: 13px; color: rgba(255,255,255,0.5); }
    .simple-price-value { font-size: 15px; font-weight: 600; color: #FFD700; }
    .simple-btn-again {
      width: 100%;
      padding: 14px;
      background: rgba(255,255,255,0.1);
      border: 1px solid rgba(255,255,255,0.2);
      border-radius: 12px;
      color: #fff;
      font-size: 16px;
      cursor: pointer;
      margin-top: 16px;
    }
    .simple-btn-again:hover { background: rgba(255,255,255,0.15); }
    
    /* 丰富版鉴定结果样式 */
    .simple-result-note { font-size: 12px; color: rgba(255,255,255,0.6); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 12px; }
    .simple-result-section { background: rgba(255,255,255,0.05); border-radius: 12px; padding: 10px; margin: 8px 0; }
    .simple-section-title { font-size: 13px; color: rgba(255,255,255,0.7); margin-bottom: 8px; }
    .simple-score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .simple-score-item { text-align: center; padding: 8px 4px; background: rgba(255,255,255,0.05); border-radius: 8px; }
    .simple-score-item span { display: block; font-size: 11px; color: rgba(255,255,255,0.5); }
    .simple-score-item b { font-size: 16px; color: #fff; }
    .simple-score-item b.highlight { color: #10B981; }
    .simple-price-detail { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.5); padding: 4px 0; }
    .simple-result-desc { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.6; padding: 8px 0; }
    .simple-result-desc p { margin: 6px 0; }
    .simple-result-desc b { color: #10B981; }
    .simple-result-tips { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.8; padding: 10px; background: rgba(16,185,129,0.1); border-radius: 8px; margin-top: 10px; }
    .text-orange { color: #FF9500 !important; }
    .simple-result-value.warning { color: #EF4444 !important; }

    /* ============ 分类选择页 ============ */

    .category-header {
      padding: 52px 20px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 2;
    }
    .section-label {
      font-size: 15px;
      font-weight: 600;
      color: var(--text-white);
      margin: 0 20px 12px;
      position: relative;
      z-index: 2;
    }

    /* 产地标签网格 */
    .origin-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0 20px 20px;
      position: relative;
      z-index: 2;
    }
    .origin-tag-btn {
      padding: 8px 16px;
      border-radius: 20px;
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      color: rgba(255,255,255,0.7);
      font-size: 13px;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 500;
    }
    .origin-tag-btn:active { transform: scale(0.95); }
    .origin-tag-btn.selected {
      background: linear-gradient(135deg, rgba(16,185,129,0.25), rgba(108,99,255,0.2));
      border-color: var(--green);
      color: var(--text-white);
      box-shadow: 0 2px 12px rgba(16,185,129,0.2);
    }

    /* 玉石类型网格 */
    .cat-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin: 0 20px 16px;
      position: relative;
      z-index: 2;
    }
    .cat-card {
      border-radius: 16px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
    }
    .cat-card:active { transform: scale(0.94); }
    .cat-card.disabled { cursor: not-allowed; opacity: 0.55; }
    .cat-card.disabled:active { transform: none; }
    .cat-card-inner {
      padding: 16px 8px 14px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      gap: 8px;
      border: 1px solid rgba(16,185,129,0.18);
      border-radius: 16px;
      background: linear-gradient(160deg, rgba(16,185,129,0.13), rgba(108,99,255,0.09));
      position: relative;
      min-height: 108px;
    }
    .cat-card.disabled .cat-card-inner {
      background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
      border-color: rgba(255,255,255,0.07);
    }
    .cat-icon {
      width: 48px;
      height: 48px;
      border-radius: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex-shrink: 0;
    }
    .cat-card.disabled .cat-icon { opacity: 0.3; }
    .cat-name { font-size: 13px; font-weight: 700; color: var(--text-white); letter-spacing: 0.3px; }
    .cat-card.disabled .cat-name { color: rgba(255,255,255,0.4); }
    .cat-desc { display: none; }
    .cat-hint-badge {
      position: absolute;
      top: 6px;
      right: 6px;
      background: rgba(255,255,255,0.08);
      border-radius: 6px;
      padding: 2px 6px;
      font-size: 9px;
      color: rgba(255,255,255,0.45);
    }

    /* 提示条 */
    .info-bar {
      margin: 0 20px 20px;
      background: rgba(16,185,129,0.06);
      border: 1px solid rgba(16,185,129,0.15);
      border-radius: 12px;
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      position: relative;
      z-index: 2;
    }
    .info-bar i { font-size: 16px; color: var(--green); flex-shrink: 0; }
    .info-bar span { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.4; }

    /* ============ VIP页面样式 ============ */
    .plan-card {
      border-radius: 20px;
      padding: 18px;
      cursor: pointer;
      transition: all 0.25s;
      border: 2px solid transparent;
      position: relative;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      min-height: 220px;
    }
    .plan-card:active { transform: scale(0.98); }
    .plan-card.selected {
      transform: scale(1.01);
    }
    .plan-card.standard {
      background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(245,158,11,0.04));
      border-color: rgba(245,158,11,0.25);
    }
    .plan-card.standard.selected { border-color: #F59E0B; box-shadow: 0 0 20px rgba(245,158,11,0.25); }
    .plan-card.pro {
      background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(108,99,255,0.05));
      border-color: rgba(108,99,255,0.3);
    }
    .plan-card.pro.selected { border-color: #6C63FF; box-shadow: 0 0 20px rgba(108,99,255,0.3); }
    .plan-card.lifetime {
      background: linear-gradient(135deg, rgba(255,107,157,0.14), rgba(255,107,157,0.05));
      border-color: rgba(255,107,157,0.3);
    }
    .plan-card.lifetime.selected { border-color: #FF6B9D; box-shadow: 0 0 20px rgba(255,107,157,0.28); }
    .plan-badge {
      position: absolute; top: -1px; right: 16px;
      background: linear-gradient(135deg,#F59E0B,#D97706);
      color: #fff; font-size: 11px; font-weight: 700;
      padding: 3px 10px; border-radius: 0 0 10px 10px;
    }
    .plan-badge.hot { background: linear-gradient(135deg,#EF4444,#DC2626); }
    .plan-badge.pro-badge { background: linear-gradient(135deg,#6C63FF,#4F46E5); }
    .plan-badge.lifetime-badge { background: linear-gradient(135deg,#FF6B9D,#EC4899); }
    .plan-header { display: flex; align-items: center; gap: 12px; }
    .plan-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
    .plan-name { font-size: 16px; font-weight: 700; color: var(--text-white); }
    .plan-sub  { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
    .plan-price-row { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 10px; }
    .plan-price { font-size: 32px; font-weight: 800; }
    .plan-price-unit { font-size: 14px; font-weight: 600; }
    .plan-price-orig { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
    .plan-perks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
    .plan-perk { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 4px 10px; font-size: 11px; color: var(--text-dim); display: flex; align-items: center; gap: 5px; }
    .plan-perk i { font-size: 10px; }
    .plan-selected-ring {
      position: absolute; top: 10px; right: 10px;
      width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2);
      display: flex; align-items: center; justify-content: center;
    }
    .plan-selected-ring.active { background: var(--green); border-color: var(--green); }

    /* FAQ */
    .faq-item { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 14px; overflow: hidden; }
    .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-size: 13px; color: var(--text-white); }
    .faq-q i { color: var(--text-dim); font-size: 11px; transition: transform 0.25s; flex-shrink: 0; margin-left: 8px; }
    .faq-item.open .faq-q i { transform: rotate(180deg); }
    .faq-a { display: none; padding: 0 16px 14px; font-size: 12px; color: var(--text-dim); line-height: 1.6; }
    .faq-item.open .faq-a { display: block; }

    /* 支付方式 */
    .pay-method-btn {
      flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
      padding: 12px 8px; background: rgba(255,255,255,0.05); border: 1.5px solid rgba(255,255,255,0.1);
      border-radius: 12px; cursor: pointer; transition: all 0.2s; font-size: 13px; color: var(--text-white);
    }
    .pay-method-btn.active { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.4); }

    /* 特权标签 */
    .privilege-chip {
      display: inline-flex; align-items: center; gap: 5px;
      background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
      border-radius: 8px; padding: 4px 10px; font-size: 11px; color: #F59E0B;
    }

    /* ============ 鉴定页（简化版-手镯） ============ */

    .identify-header {
      padding: 52px 20px 16px;
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: transparent;
      margin: 0;
    }
    .identify-header .back-btn {
      color: rgba(255,255,255,0.9);
    }
    .page-title { font-size: 20px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }

    .upload-zone {
      margin: 20px;
      position: relative;
      z-index: 2;
    }
    .upload-area {
      border-radius: 20px;
      background: rgba(16,185,129,0.06);
      border: 2px dashed rgba(16,185,129,0.35);
      min-height: 280px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      cursor: pointer;
      transition: all 0.3s;
      position: relative;
      overflow: hidden;
    }
    .upload-area:active { border-color: var(--green); background: rgba(16,185,129,0.1); }
    .upload-area.has-image { border: none; padding: 0; background: transparent; }
    .upload-area.has-image img {
      width: 100%;
      height: 320px;
      object-fit: contain;
      border-radius: 18px;
    }
    .upload-icon { font-size: 56px; color: rgba(16,185,129,0.5); }
    .upload-text { font-size: 16px; font-weight: 600; color: var(--text-dim); }
    .upload-hint { font-size: 12px; color: var(--text-muted); }
    .upload-actions {
      position: absolute;
      bottom: 12px;
      left: 12px;
      right: 12px;
      display: flex;
      gap: 8px;
    }
    .upload-action-btn {
      flex: 1;
      height: 38px;
      border-radius: 12px;
      background: rgba(0,0,0,0.6);
      border: 1px solid rgba(255,255,255,0.2);
      color: #fff;
      font-size: 13px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      cursor: pointer;
      backdrop-filter: blur(10px);
    }

    /* 选择按钮组 */
    .upload-options {
      margin: 0 20px 20px;
      display: flex;
      gap: 12px;
      position: relative;
      z-index: 2;
    }
    .upload-opt-btn {
      flex: 1;
      height: 52px;
      border-radius: 16px;
      background: rgba(108,99,255,0.12);
      border: 1px solid rgba(108,99,255,0.3);
      font-size: 14px;
      font-weight: 600;
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .upload-opt-btn:active { background: rgba(108,99,255,0.2); }
    .upload-opt-btn i { font-size: 18px; color: #6C63FF; }
    .upload-opt-btn.primary {
      flex: 2;
      background: linear-gradient(135deg, #6C63FF, #8B5CF6);
      border: none;
      box-shadow: 0 4px 20px rgba(108,99,255,0.4);
    }
    .upload-opt-btn.primary i { color: #fff; }
    .upload-opt-btn.primary:active { transform: scale(0.97); }
    .upload-opt-btn:active { background: rgba(255,255,255,0.1); }
    .upload-opt-btn i { font-size: 18px; color: var(--green); }

    /* 提示卡片 */
    .tips-card {
      margin: 0 20px 20px;
      background: rgba(108,99,255,0.08);
      border: 1px solid rgba(108,99,255,0.2);
      border-radius: 16px;
      padding: 16px 18px;
      position: relative;
      z-index: 2;
    }
    .tips-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--purple);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .tips-list { list-style: none; }
    .tips-list li {
      font-size: 12px;
      color: var(--text-dim);
      padding: 2px 0;
      display: flex;
      align-items: flex-start;
      gap: 6px;
      line-height: 1.4;
    }
    .tips-list li::before { content: '•'; color: var(--purple); flex-shrink: 0; margin-top: 1px; }

    /* 鉴定按钮 */
    .identify-btn {
      width: 100%;
      height: 54px;
      border-radius: 16px;
      background: linear-gradient(135deg, var(--green), #059669);
      border: none;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 4px 20px rgba(16,185,129,0.4);
      z-index: 101;
    }
    .identify-btn:active { transform: scale(0.97); }
    .identify-btn:disabled {
      background: rgba(255,255,255,0.1);
      box-shadow: none;
      cursor: not-allowed;
    }

    /* 加载中遮罩 */
    .analyzing-overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(15,12,41,0.92);
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 20px;
      z-index: 1000;
      backdrop-filter: blur(10px);
    }
    .analyzing-overlay.show { display: flex; }
    .analyzing-ring {
      width: 80px; height: 80px;
      border-radius: 40px;
      border: 3px solid rgba(16,185,129,0.2);
      border-top-color: var(--green);
      animation: spinRing 1s linear infinite;
    }
    @keyframes spinRing {
      to { transform: rotate(360deg); }
    }
    .analyzing-text { font-size: 16px; color: var(--text-white); font-weight: 500; }
    .analyzing-sub { font-size: 13px; color: var(--text-dim); }

    /* ============ 结果页 ============ */
    #page-result { }
    .result-top-bar {
      padding: 52px 20px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: relative;
      z-index: 2;
    }
    .back-btn {
      width: 36px; height: 36px;
      border-radius: 10px;
      background: rgba(255,255,255,0.08);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
    .back-btn:active { background: rgba(255,255,255,0.15); }
    .back-btn i { font-size: 18px; color: var(--text-white); }

    /* 图片卡片 */
    .result-image-wrap {
      margin: 0 20px 16px;
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      z-index: 2;
    }
    .result-image-wrap img {
      width: 100%;
      height: 220px;
      object-fit: cover;
    }
    .confidence-badge {
      position: absolute;
      bottom: 12px;
      right: 12px;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(10px);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      color: var(--text-white);
    }
    .confidence-badge span { color: var(--green); font-weight: 600; }

    /* 类型卡片 */
    .type-card {
      margin: 0 20px 12px;
      background: var(--card-bg);
      border: 1px solid var(--card-border-green);
      border-radius: 16px;
      padding: 16px;
      position: relative;
      z-index: 2;
    }
    .type-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
    .type-icon-wrap {
      width: 40px; height: 40px;
      border-radius: 12px;
      background: rgba(16,185,129,0.1);
      border: 1px solid rgba(16,185,129,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .type-icon-wrap i { font-size: 18px; color: var(--green); }
    .type-label { font-size: 11px; color: var(--text-dim); margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
    .type-name { font-size: 22px; font-weight: 700; color: var(--text-white); }
    .origin-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      background: rgba(108,99,255,0.1);
      border: 1px solid rgba(108,99,255,0.2);
      border-radius: 8px;
      padding: 4px 10px;
    }
    .origin-tag i { font-size: 12px; color: var(--purple); }
    .origin-tag span { font-size: 12px; color: var(--purple); }

    /* 品质评分卡片 */
    .quality-card {
      margin: 0 20px 12px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 16px;
      position: relative;
      z-index: 2;
    }
    .card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 14px;
    }
    .card-header-left { display: flex; align-items: center; gap: 8px; }
    .card-title { font-size: 14px; font-weight: 600; color: var(--text-white); }
    .toggle-btn { background: none; border: none; cursor: pointer; }
    .toggle-btn i { font-size: 18px; color: var(--text-dim); }
    .quality-main { display: flex; gap: 16px; align-items: center; }
    .rating-circle {
      width: 72px; height: 72px;
      border-radius: 36px;
      border: 2px solid rgba(16,185,129,0.3);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      background: rgba(16,185,129,0.05);
      flex-shrink: 0;
    }
    .rating-number { font-size: 28px; font-weight: 700; color: var(--green); line-height: 1; }
    .rating-max { font-size: 11px; color: var(--text-dim); }
    .quality-bars { flex: 1; display: flex; flex-direction: column; gap: 8px; }
    .quality-bar-row { display: flex; align-items: center; gap: 8px; }
    .bar-label { font-size: 12px; color: var(--text-dim); width: 28px; flex-shrink: 0; }
    .bar-track {
      flex: 1;
      height: 6px;
      background: rgba(255,255,255,0.08);
      border-radius: 3px;
      overflow: hidden;
    }
    .bar-fill { height: 100%; border-radius: 3px; transition: width 0.6s ease; }
    .bar-score { font-size: 11px; color: var(--text-white); width: 18px; flex-shrink: 0; text-align: right; }

    /* 展开详情 */
    .expand-section {
      display: none;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--card-border);
    }
    .expand-section.open { display: block; }
    .quality-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    .quality-item {
      background: rgba(255,255,255,0.03);
      border-radius: 10px;
      padding: 10px;
    }
    .quality-item-label { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
    .quality-item-value { font-size: 13px; color: var(--text-white); font-weight: 500; }
    .quality-description { font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.6; margin-top: 12px; }

    /* 价格卡片 */
    .price-card {
      margin: 0 20px 12px;
      background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(16,185,129,0.05));
      border: 1px solid rgba(245,158,11,0.2);
      border-radius: 16px;
      padding: 16px;
      position: relative;
      z-index: 2;
    }
    .price-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
      margin-top: 14px;
    }
    .price-item {
      background: rgba(255,255,255,0.04);
      border-radius: 12px;
      padding: 12px;
      text-align: center;
    }
    .price-item-label { font-size: 11px; color: var(--text-dim); margin-bottom: 6px; }
    .price-item-value { font-size: 16px; font-weight: 700; color: var(--gold); }
    .price-range-bar {
      margin-top: 14px;
      padding: 12px;
      background: rgba(255,255,255,0.03);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .price-range-label { font-size: 12px; color: var(--text-dim); }
    .price-range-value { font-size: 14px; font-weight: 600; color: var(--text-white); }
    .price-factors { margin-top: 12px; }
    .price-factor-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 0;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .price-factor-item:last-child { border-bottom: none; }
    .price-factor-dot { width: 6px; height: 6px; border-radius: 3px; background: var(--green); flex-shrink: 0; }
    .price-factor-text { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
    .price-description { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 12px; }

    /* 特征卡片 */
    .feature-card {
      margin: 0 20px 12px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 16px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.06);
      position: relative;
      z-index: 2;
    }
    .feature-text { font-size: 13px; color: rgba(255,255,255,0.9); line-height: 1.7; }

    /* 市场趋势卡片 */
    .trend-card {
      margin: 0 20px 12px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 16px;
      position: relative;
      z-index: 2;
    }
    .trend-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: rgba(16,185,129,0.1);
      border-radius: 8px;
      padding: 4px 10px;
      margin-top: 10px;
    }
    .trend-badge i { font-size: 12px; color: var(--green); }
    .trend-badge span { font-size: 12px; color: var(--green); font-weight: 500; }
    .trend-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-top: 10px; }

    /* 操作按钮 */
    .result-actions {
      margin: 0 20px 20px;
      display: flex;
      gap: 10px;
      position: relative;
      z-index: 2;
    }
    .action-btn {
      flex: 1;
      height: 48px;
      border-radius: 14px;
      border: 1px solid var(--card-border);
      background: var(--card-bg);
      color: var(--text-white);
      font-size: 14px;
      font-weight: 500;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .action-btn:active { background: rgba(255,255,255,0.1); }
    .action-btn-primary {
      background: linear-gradient(135deg, var(--green), #059669);
      border-color: transparent;
      box-shadow: 0 4px 15px rgba(16,185,129,0.3);
    }

    /* ============ 历史页 ============ */
    #page-history { }
    .history-header {
      padding: 52px 20px 16px;
      position: relative;
      z-index: 2;
    }
    .history-list {
      margin: 0 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      z-index: 2;
    }
    .history-card {
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 14px;
      display: flex;
      gap: 12px;
      cursor: pointer;
      transition: all 0.2s;
      position: relative;
    }
    .history-card:active { background: rgba(255,255,255,0.08); }
    .history-card-actions {
      position: absolute;
      top: 8px;
      right: 8px;
      z-index: 3;
    }
    .history-del-btn {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: rgba(239,68,68,0.15);
      border: 1px solid rgba(239,68,68,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s;
    }
    .history-del-btn:active { transform: scale(0.9); background: rgba(239,68,68,0.3); }
    .history-del-btn i { font-size: 11px; color: #EF4444; }
    .history-img {
      width: 72px; height: 72px;
      border-radius: 12px;
      object-fit: cover;
      flex-shrink: 0;
    }
    .history-img-placeholder {
      width: 72px; height: 72px;
      border-radius: 12px;
      background: rgba(255,255,255,0.05);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 28px;
      flex-shrink: 0;
    }
    .history-compare-wrap { display: flex; gap: 4px; flex-shrink: 0; }
    .history-compare-wrap .history-img { width: 34px; height: 72px; border-radius: 10px; flex-shrink: 0; }
    .history-info { flex: 1; }
    .history-type { font-size: 16px; font-weight: 600; color: var(--text-white); margin-bottom: 4px; }
    .history-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }
    .history-price { font-size: 14px; font-weight: 600; color: var(--gold); }
    .history-empty {
      text-align: center;
      padding: 60px 20px;
      position: relative;
      z-index: 2;
    }
    .history-empty i { font-size: 52px; color: var(--text-muted); margin-bottom: 12px; }
    .history-empty p { font-size: 14px; color: var(--text-dim); }

    /* ============ 个人中心 ============ */
    #page-profile { }
    .profile-header {
      padding: 52px 20px 24px;
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .profile-avatar {
      width: 80px; height: 80px;
      border-radius: 40px;
      background: linear-gradient(135deg, var(--purple), var(--green));
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      font-size: 36px;
    }
    .profile-name { font-size: 20px; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
    .profile-phone { font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
    .profile-badges { display: flex; gap: 8px; }
    .profile-badge {
      background: rgba(16,185,129,0.1);
      border: 1px solid rgba(16,185,129,0.2);
      border-radius: 20px;
      padding: 4px 12px;
      font-size: 12px;
      color: var(--green);
    }

    /* 统计卡片 */
    .stats-card {
      margin: 0 20px 20px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      padding: 16px;
      display: flex;
      position: relative;
      z-index: 2;
    }
    .stat-item { flex: 1; text-align: center; }
    .stat-item:not(:last-child) { border-right: 1px solid var(--card-border); }
    .stat-number { font-size: 22px; font-weight: 700; color: var(--text-white); margin-bottom: 4px; }
    .stat-label { font-size: 12px; color: var(--text-dim); }

    /* 菜单列表 */
    .menu-section {
      margin: 0 20px 16px;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: 16px;
      overflow: hidden;
      position: relative;
      z-index: 2;
    }
    .menu-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      cursor: pointer;
      transition: background 0.2s;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .menu-item:last-child { border-bottom: none; }
    .menu-item:active { background: rgba(255,255,255,0.05); }
    .menu-icon-wrap {
      width: 36px; height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .menu-icon-wrap i { font-size: 16px; }
    .menu-label { flex: 1; font-size: 14px; color: var(--text-white); }
    .menu-arrow { font-size: 14px; color: var(--text-muted); }



    /* ============ 登录页 ============ */
    #page-login {
      background: linear-gradient(160deg, #0F0C29 0%, #302B63 50%, #24243E 100%);
      bottom: 70px;
    }
    .login-content {
      position: relative;
      z-index: 2;
      flex: 1;
      display: flex;
      flex-direction: column;
      padding: 50px 24px 30px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    }
    .login-logo-wrap { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
    .login-logo-icon {
      width: 56px; height: 56px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(108,99,255,0.2));
      border: 1px solid rgba(16,185,129,0.3);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .login-logo-icon i { font-size: 26px; color: var(--green); }
    .login-app-name { font-size: 22px; font-weight: 700; color: var(--text-white); }
    .login-app-desc { font-size: 12px; color: var(--text-dim); }
    .login-title { font-size: 28px; font-weight: 700; color: var(--text-white); margin-bottom: 8px; }
    .login-subtitle { font-size: 14px; color: var(--text-dim); margin-bottom: 36px; }

    .input-wrap {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 14px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
      transition: border-color 0.2s;
    }
    .input-wrap:focus-within { border-color: var(--green); }
    .input-wrap i { font-size: 18px; color: var(--text-dim); flex-shrink: 0; }
    .input-wrap input {
      flex: 1;
      background: none;
      border: none;
      outline: none;
      font-size: 16px;
      color: var(--text-white);
    }
    .input-wrap input::placeholder { color: var(--text-muted); }
    .code-btn {
      background: none;
      border: none;
      font-size: 13px;
      color: var(--green);
      cursor: pointer;
      padding: 4px 8px;
      white-space: nowrap;
      font-weight: 500;
    }
    .code-btn:disabled { color: var(--text-dim); cursor: default; }

    .login-btn {
      width: 100%;
      height: 52px;
      border-radius: 14px;
      background: linear-gradient(135deg, var(--green), #059669);
      border: none;
      color: #fff;
      font-size: 16px;
      font-weight: 700;
      cursor: pointer;
      margin-bottom: 20px;
      transition: all 0.2s;
      box-shadow: 0 4px 20px rgba(16,185,129,0.4);
    }
    .login-btn:active { transform: scale(0.97); }
    .login-divider {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 20px;
    }
    .login-divider::before,
    .login-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
    .login-divider span { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
    .guest-btn {
      width: 100%;
      height: 48px;
      border-radius: 14px;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.1);
      color: var(--text-dim);
      font-size: 14px;
      cursor: pointer;
      margin-bottom: 16px;
      transition: all 0.2s;
    }
    .guest-btn:active { background: rgba(255,255,255,0.08); }
    .wechat-btn {
      width: 100%;
      height: 48px;
      border-radius: 14px;
      background: rgba(7,193,96,0.1);
      border: 1px solid rgba(7,193,96,0.2);
      color: #07C160;
      font-size: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      cursor: pointer;
      font-weight: 500;
      transition: all 0.2s;
    }
    .wechat-btn:active { background: rgba(7,193,96,0.15); }
    .login-terms {
      margin-top: 20px;
      text-align: center;
      font-size: 11px;
      color: var(--text-muted);
      line-height: 1.5;
    }
    .login-terms a { color: var(--purple); text-decoration: none; }

    .test-accounts {
      margin-top: 16px;
      background: rgba(108,99,255,0.06);
      border: 1px solid rgba(108,99,255,0.15);
      border-radius: 12px;
      padding: 12px 14px;
    }
    .test-title { font-size: 12px; color: var(--purple); margin-bottom: 6px; font-weight: 500; }
    .test-item { font-size: 11px; color: var(--text-dim); padding: 2px 0; }

    /* ============ 通知 Toast ============ */
    .toast {
      position: fixed;
      bottom: 100px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: rgba(30,30,50,0.95);
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 30px;
      padding: 10px 20px;
      font-size: 13px;
      color: var(--text-white);
      z-index: 2000;
      opacity: 0;
      transition: all 0.3s;
      backdrop-filter: blur(20px);
      white-space: nowrap;
    }
    .toast.success { border-color: rgba(16,185,129,0.4); }
    .toast.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
    }

    /* ============ 免费次数角标 ============ */
    .free-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 18px;
      height: 18px;
      border-radius: 9px;
      background: var(--pink);
      font-size: 10px;
      color: #fff;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* 扫描动画 */
    .scan-line {
      position: absolute;
      left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--green), transparent);
      animation: scanMove 2s ease-in-out infinite;
    }
    @keyframes scanMove {
      0% { top: 10%; opacity: 0; }
      10% { opacity: 1; }
      90% { opacity: 1; }
      100% { top: 90%; opacity: 0; }
    }

    /* 加载骨架屏 */
    .skeleton {
      background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
      background-size: 200% 100%;
      animation: shimmer 1.5s infinite;
      border-radius: 8px;
    }
    @keyframes shimmer {
      0% { background-position: -200% 0; }
      100% { background-position: 200% 0; }
    }
  


      @keyframes spin { to { transform: rotate(360deg); } }
    
    /* ============ Glowing Orbs (restored) ============ */
    .glow-orb-1 {
      position: absolute;
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%);
      top: -100px;
      right: -100px;
      z-index: 1;
      pointer-events: none;
    }
    .glow-orb-2 {
      position: absolute;
      width: 250px;
      height: 250px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(108,99,255,0.12) 0%, transparent 70%);
      bottom: -80px;
      left: -80px;
      z-index: 1;
      pointer-events: none;
    }