﻿













:root {
  color-scheme: light;

  
  --bg: #F5F7FA;            
  --bg-2: #FAFBFD;          
  --card: #FFFFFF;          
  --bg-soft: #F3F5F9;       
  --bg-sunken: #F7F9FC;     
  --bg-tint: #F0F5FF;       
  --bg-input: #FFFFFF;      
  --bg-subtle: #FAFBFD;     
  --bg-hover: #F2F6FF;      

  
  --line: #E3E8EF;
  --line-2: #EEF1F6;        
  --line-3: #F2F4F8;
  --line-strong: #D8DFEA;   
  --line-accent: #C9D8F5;   

  
  --text: #1F2430;
  --text-2: #5A6272;
  --muted: #5A6272;         
  --muted-2: #8A909C;       
  --text-disabled: #A8AEB8;

  
  --primary: #2F6FEB;
  --primary-d: #1E5BD6;
  --accent-2: #1E5BD6;      
  --grad: linear-gradient(135deg, #2F6FEB, #1E5BD6);
  --grad-soft: rgba(47, 111, 235, .08);   
  --accent-glow: rgba(47, 111, 235, .18);
  --glass: rgba(255, 255, 255, .6);

  
  --green: #1A7F4B;         
  --green-bg: #E5F7EE;      
  --orange: #C2410C;        
  --orange-bg: #FFF7ED;     
  --orange-line: #FED7AA;   
  --red: #D64545;           
  --red-bg: #FDECEC;        
  --red-d: #C03A3A;
  --price: #D64545;
  --blue-bg: #EAF1FE;       

  
  --active-bg: #F0F5FF;
  --gold: #C2410C;
  --gold-d: #9A3412;
  --cream: #FFF7ED;
  --cream-d: #FED7AA;

  
  --radius-xl: 14px;        
  --radius-l: 12px;         
  --radius: 10px;           
  --radius-s: 8px;          
  --radius-xs: 6px;         

  
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 16px rgba(16, 24, 40, .05);
  --shadow: 0 8px 24px rgba(16, 24, 40, .10);
  --shadow-lg: 0 14px 36px rgba(16, 24, 40, .18);
  --shadow-xl: 0 24px 60px rgba(16, 24, 40, .30);
  --transition: .15s ease;

  --status-bar-height: 0px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: calc(52px + var(--safe-b));
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}
#app { position: relative; width: 100%; max-width: 520px; min-height: 100%; margin: 0 auto; overflow: hidden; background: var(--bg); }

.page-scroll, .order-list, .sub-body, .scroll-container {
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 24, 40, .05) 1px, transparent 0);
  background-size: 20px 20px;
}
.hidden { display: none !important; }
.flex1 { flex: 1; }
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; border: none; background: none; color: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); background: transparent; border: none; outline: none; }
input::placeholder { color: var(--muted-2); }
::-webkit-scrollbar { width: 0; height: 0; }

[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
[data-icon] svg { display: block; }

.splash-logo [data-icon] { color: #fff; }
.splash-logo svg { width: 42px; height: 42px; stroke-width: 1.4; }

.btn, .list-item, .grid-item, .tab, .sd, .modal-tile, .dev-menu-item, .mini-btn { min-height: 44px; }


.splash {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg);
}
.splash-logo {
  width: 84px; height: 84px; border-radius: 22px; background: var(--grad);
  display: flex; align-items: center; justify-content: center; font-size: 44px; color: #fff;
  box-shadow: 0 10px 24px rgba(47, 111, 235, .28); animation: float 2.4s ease-in-out infinite;
}
.splash-name { margin-top: 18px; font-size: 21px; font-weight: 700; letter-spacing: 1px; color: var(--text); }
.splash-sub { margin-top: 6px; color: var(--muted-2); font-size: 12.5px; letter-spacing: 3px; }
.spinner {
  margin-top: 34px; width: 22px; height: 22px;
  border: 2.5px solid var(--grad-soft); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

















.auth {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  height: 100%; min-height: 100vh; min-height: 100dvh;   
  -webkit-overflow-scrolling: touch;
  background: var(--bg);   
}


.auth-body {
  min-height: 100%;
  max-width: 460px; margin: 0 auto;
  padding: calc(var(--status-bar-height) + var(--safe-t) + 24px) 0 calc(16px + var(--safe-b));
  display: flex; flex-direction: column; justify-content: center;
}

.auth-logo-fallback {
  width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .28);
}




.auth-head { text-align: center; margin: 0 0 20px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.auth-logo img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }


.auth-logo .mark {
  width: 58px; height: 58px; border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #2F6FEB 0%, #4A8AF4 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; font-weight: 700;
}
.auth-title {
  margin: 0; font-size: 22px; font-weight: 700; color: var(--text);
  text-align: center; letter-spacing: .5px;
}

.auth-slogan {
  margin: 6px 0 0; font-size: 12px; color: var(--muted-2);
  text-align: center; letter-spacing: .5px;
}





.auth-sub {
  order: 1; display: none; margin: 0 0 16px;
  text-align: center; color: var(--muted-2);
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
#form-register:not(.hidden) ~ #auth-subtitle,
#form-forgot:not(.hidden) ~ #auth-subtitle { display: block; }



.auth-card {
  position: relative;
  width: calc(100% - 40px); max-width: 420px; margin: 0 auto;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;                 
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  animation: authCardIn .26s cubic-bezier(.22, .8, .3, 1) both;
}
.auth-card > form { order: 2; }
@keyframes authCardIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.auth-card form { animation: authFormIn .22s ease-out both; }
@keyframes authFormIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }


.auth-foot {
  width: calc(100% - 40px); max-width: 420px; margin: 14px auto 0;
  text-align: center; font-size: 11.5px;
  color: var(--text-disabled); letter-spacing: .3px; line-height: 1.7;
}
.auth-foot b { font-weight: 600; color: var(--muted-2); }
.auth-foot-sep { margin: 0 6px; opacity: .7; }
.form-group { margin-bottom: 16px; }
.form-group .label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.form-label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; line-height: 1.3; margin-bottom: 7px; }
.label-row .form-label { margin-bottom: 0; }
.switch-btn { font-size: 12.5px; color: var(--primary); padding: 4px 0; line-height: 1.2; min-height: 0; }
.field { position: relative; display: flex; align-items: center; }
.form-input, .field input {
  width: 100%; height: 46px; background: var(--bg-input); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 0 14px; font-size: 15px; color: var(--text); transition: var(--transition);
}
.form-input:focus, .field input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--grad-soft); }
.field input { padding-right: 44px; }
.field-eye {
  position: absolute; right: 12px; width: 28px; height: 28px; color: var(--muted-2);
  cursor: pointer; transition: color var(--transition); display: inline-flex; align-items: center; justify-content: center;
}
.field-eye:active { color: var(--primary); }
.sms-input-group { display: flex; gap: 8px; align-items: center; }
.sms-input-group .field { flex: 1; }
.sms-btn {
  width: 112px; height: 46px; flex: none; background: var(--grad); color: #fff;
  font-size: 13px; border-radius: var(--radius-s); font-weight: 500;
  display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.sms-btn:active:not(:disabled) { background: var(--primary-d); }
.sms-btn:disabled { background: var(--bg-soft); color: var(--text-disabled); }




.auth .form-group { margin-bottom: 14px; }
.auth .form-group .label-row { margin-bottom: 8px; }
.auth .form-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .2px; }
.auth .switch-btn {
  position: relative; display: inline-flex; align-items: center;
  font-size: 12.5px; font-weight: 500; color: var(--primary); line-height: 1.3;
}

.auth .switch-btn::after {
  content: ''; position: absolute; left: -12px; right: -12px; top: -20px; height: 44px;
}
.auth .field { position: relative; }
.auth .field-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-2); pointer-events: none; transition: color var(--transition);
}
.auth .field-icon svg { width: 18px; height: 18px; stroke-width: 1.7; }
.auth .field:focus-within .field-icon { color: var(--primary); }
.auth .field input, .auth .form-input {
  width: 100%; height: 48px; padding: 0 14px 0 42px;
  background: var(--bg-sunken); border: 1px solid var(--line-strong);
  border-radius: var(--radius-l); font-size: 15px; color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth .field input::placeholder, .auth .form-input::placeholder { color: var(--text-disabled); }
.auth .field input:hover { border-color: var(--line-accent); }
.auth .field input:focus, .auth .form-input:focus {
  background: #fff; border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 111, 235, .12);
}

.auth .field input[type="password"] { padding-right: 44px; }

.auth .field-eye { right: 10px; }
.auth .field-eye::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px;
  transform: translate(-50%, -50%);
}
.auth .sms-input-group { gap: 8px; }
.auth .sms-btn { height: 48px; width: auto; min-width: 100px; padding: 0 12px; border-radius: var(--radius-l); }


.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--radius-s); padding: 0 16px; height: 44px;
  border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  font-size: 14px; font-weight: 500; transition: var(--transition); white-space: nowrap;
}
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-block { width: 100%; }
.btn-primary, .btn.pri {
  background: var(--grad); border-color: transparent; color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .28);
}
.btn-primary:active { background: var(--primary-d); }
.btn-outline { background: var(--card); border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.btn-plain { background: var(--bg-soft); border-color: var(--line-2); color: var(--muted); font-weight: 500; }
.btn-mini { height: 34px; padding: 0 12px; font-size: 13px; border-radius: var(--radius-s); min-height: 34px; }

.btn-danger {
  background: var(--red); border-color: var(--red); color: #fff; font-weight: 600;
}
.btn-danger:active:not(:disabled) { background: var(--red-d); border-color: var(--red-d); }

.btn-danger:disabled { background: var(--red); border-color: var(--red); color: #fff; opacity: .45; }
.btn-gold { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.btn-sm { height: 34px; min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: var(--radius-xs); }



.login-btn, .auth-card .btn-block {
  width: 100%; height: 50px; font-size: 16px; font-weight: 600; border-radius: var(--radius-l);
  background: linear-gradient(135deg, #2F6FEB 0%, #4A8AF4 100%);
  color: #fff; letter-spacing: 1px; margin-top: 6px;
  box-shadow: 0 2px 8px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}
.login-btn:active:not(.loading):not(:disabled), .auth-card .btn-block:active:not(.loading):not(:disabled) {
  transform: scale(.985); filter: brightness(.95);
  box-shadow: 0 1px 4px var(--accent-glow);
}
.login-btn.loading { opacity: .8; background: var(--muted-2); }

.login-btn:disabled, .auth-card .btn-block:disabled {
  background: var(--bg-soft); color: var(--text-disabled); border: 1px solid var(--line);
  box-shadow: none; filter: none; transform: none;
}


.agreement-section { margin: 16px 0 0; }
.agreement-checkbox {
  display: flex; align-items: flex-start; gap: 9px;
  min-height: 44px; padding: 4px 0 0; cursor: pointer;
}

.agree-input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.checkbox-circle {
  width: 18px; height: 18px; flex: none; margin-top: 1px; border-radius: var(--radius-xs);
  border: 1.5px solid var(--line-strong); background: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.checkbox-circle [data-icon] { color: #fff; }
.checkbox-circle svg { width: 11px; height: 11px; stroke-width: 3; opacity: 0; transition: opacity var(--transition); }
.agree-input:checked ~ .checkbox-circle {
  background: linear-gradient(135deg, #2F6FEB 0%, #4A8AF4 100%);
  border-color: var(--primary); box-shadow: 0 2px 6px rgba(47, 111, 235, .26);
}
.agree-input:checked ~ .checkbox-circle svg { opacity: 1; }
.agree-input:focus-visible ~ .checkbox-circle { box-shadow: 0 0 0 4px rgba(47, 111, 235, .16); }
.agreement-text { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; flex: 1; }
.agreement-text a { color: var(--primary); font-weight: 500; white-space: nowrap; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 12.5px; color: var(--muted-2); }
.auth-links a { color: var(--primary); }
.auth-links.center { justify-content: center; gap: 4px; }



@media (max-height: 660px) {
  .auth-body {
    padding-top: calc(var(--status-bar-height) + var(--safe-t) + 16px);
    padding-bottom: calc(12px + var(--safe-b));
  }
  .auth-head { margin-bottom: 12px; }
  .auth-logo { margin-bottom: 8px; }
  .auth-title { font-size: 20px; }
  .auth-slogan { margin-top: 4px; }
  .auth-sub { margin-bottom: 12px; }
  .auth-card { padding: 18px 20px 16px; }
  .auth .form-group { margin-bottom: 12px; }
  .auth .form-group .label-row { margin-bottom: 6px; }
  .agreement-section { margin-top: 12px; }
  .auth-foot { margin-top: 8px; }
}


@media (max-width: 344px) {
  .auth .sms-input-group { gap: 6px; }
  .auth .sms-btn { min-width: 80px; padding: 0 6px; font-size: 12px; }
  .auth .field input, .auth .form-input { font-size: 14.5px; padding-left: 38px; }
  .auth .field-icon { left: 11px; }
  .auth .field-icon svg { width: 17px; height: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-card, .auth-card form { animation: none !important; }
  .auth .field input, .auth .form-input, .auth .field-icon, .auth .field-eye,
  .auth .sms-btn, .login-btn, .auth-card .btn-block,
  .checkbox-circle, .checkbox-circle svg, .auth-sub, .auth .switch-btn { transition: none !important; }
}


.main { position: relative; min-height: 100%; padding-bottom: var(--tabbar-h); }
.page { display: none; min-height: 100vh; }
.page.active { display: block; }

#page-home { padding-top: 87px; min-height: 0; background: var(--bg); }

.notice-page { background: var(--bg); padding: 0; }
.notice-list { padding: 8px 8px calc(var(--tabbar-h) + 8px); }


.discovery { min-height: 100%; display: flex; flex-direction: column; background: var(--bg); padding-bottom: calc(var(--tabbar-h) + 8px); }
.discovery-header {
  background: var(--card); padding: 14px 16px 12px;
  display: flex; align-items: flex-start; justify-content: space-between;
  border-bottom: 1px solid var(--line-2);
}
.discovery-header .dh-title {
  font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 2px;
  display: flex; align-items: center; gap: 8px;
}

.discovery-header .dh-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); flex: none;
}
.read-all {
  padding: 4px 10px; border-radius: var(--radius-xs); background: var(--grad-soft);
  color: var(--primary); font-size: 11.5px; line-height: 1.5; flex: none;
}
.read-all:active { background: rgba(47, 111, 235, .16); }

.swiper-container { position: relative; width: 100%; height: 160px; background: var(--card); overflow: hidden; }
.swiper-track { position: absolute; inset: 0; }
.swiper-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  display: flex; flex-direction: column; justify-content: center; padding: 0 20px;
  background: var(--grad);
}
.swiper-slide:nth-child(2) { background: linear-gradient(135deg, #4E7BE8, var(--primary)); }
.swiper-slide:nth-child(3) { background: linear-gradient(135deg, var(--primary), #1E5BD6); }
.swiper-slide.active { opacity: 1; }
.swiper-slide .ss-title { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.swiper-slide .ss-sub { font-size: 12.5px; color: rgba(255, 255, 255, .88); line-height: 1.6; }
.swiper-dots { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.swiper-dots .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); transition: background .3s; }
.swiper-dots .dot.active { background: #fff; }

.category-wrapper {
  background: var(--card); padding: 2px 16px; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; overflow-x: auto; scrollbar-width: none;
}
.category-wrapper::-webkit-scrollbar { display: none; }
.category-item {
  position: relative; display: inline-block; padding: 8px 10px; margin-right: 8px;
  font-size: 13px; color: var(--muted); white-space: nowrap; flex: none;
}
.category-item:last-child { margin-right: 0; }
.category-item.active { color: var(--primary); font-weight: 600; }
.category-item .active-bar {
  position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px;
  background: var(--grad); border-radius: 1px;
}

.article-list-content { padding: 12px 12px 0; }
.article-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 10px; overflow: hidden; box-shadow: var(--shadow-xs);
  display: flex; align-items: flex-start;
}
.article-item:active { background: var(--bg-hover); }
.article-thumb {
  width: 80px; height: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--primary); font-size: 26px;
}
.article-info { flex: 1; min-width: 0; padding: 10px; display: flex; flex-direction: column; }
.article-title {
  font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 4px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-desc {
  font-size: 11.5px; color: var(--muted-2); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-title .unread {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); margin-left: 5px; vertical-align: middle;
}
.list-status { padding: 12px 16px; text-align: center; font-size: 11.5px; color: var(--muted-2); }
.article-body .ab-cat { font-size: 11.5px; color: var(--primary); margin-bottom: 8px; }
.article-body .ab-line { font-size: 13.5px; color: var(--text); line-height: 1.9; }
.notice-lines { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.notice-lines div { font-size: 13px; color: var(--muted); line-height: 1.6; }
.page-scroll { padding: 0 12px 100px; }


.header-container {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 40; box-sizing: border-box;
  background: var(--card); border-bottom: 1px solid var(--line-2);
}
.top-header {
  height: 45px; padding: 0 12px; margin-top: var(--status-bar-height);
  display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3;
}
.top-header .left {
  display: flex; align-items: center; gap: 6px; position: relative;
  background: var(--card); border: 1px solid var(--line); padding: 6px 12px; border-radius: var(--radius-s);
  max-width: 52vw;
}
.top-header .left:active { background: var(--bg-hover); border-color: var(--line-accent); }
.top-header .left .title {
  font-size: 13.5px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.top-header .left .caret { color: var(--muted-2); display: inline-flex; transition: transform .2s ease; }
.top-header .left .caret svg { width: 14px; height: 14px; }
.top-header .right { display: flex; align-items: center; gap: 8px; }
.batch-renew-btn, .pill-btn.blue {
  height: 30px; padding: 0 12px; background: var(--card); color: var(--accent-2, #1E5BD6);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; line-height: 1; transition: var(--transition); flex: none;
}
.batch-renew-btn:active, .pill-btn.blue:active { background: var(--bg-hover); border-color: var(--line-accent); }
.pill-btn {
  height: 30px; padding: 0 12px; border-radius: var(--radius-s); font-size: 12px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
}
.icon-btn {
  width: 34px; height: 34px; border-radius: var(--radius-s); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card); border: 1px solid var(--line); color: var(--muted);
  transition: var(--transition); position: relative;
}
.icon-btn:active { background: var(--bg-hover); border-color: var(--line-accent); color: var(--primary); }
.balance-chip {
  display: inline-flex; align-items: center; gap: 4px; background: none; color: var(--primary);
  border-radius: 999px; padding: 0; font-size: 13px; font-weight: 600; white-space: nowrap;
}


.search-bar {
  position: absolute; top: calc(45px + var(--status-bar-height)); left: 0; width: 100%;
  z-index: 20; background: var(--card); padding: 12px;
  border-radius: 0 0 var(--radius-l) var(--radius-l); box-shadow: var(--shadow);
  box-sizing: border-box; animation: fadein .2s ease;
}
.search-input-wrapper {
  position: relative; display: flex; align-items: center;
  background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 0 10px; height: 40px;
}
.search-input-wrapper > [data-icon] { color: var(--muted-2); margin-right: 8px; }
.search-input-wrapper > [data-icon] svg { width: 16px; height: 16px; }
.search-input-wrapper input { flex: 1; background: transparent; font-size: 14px; color: var(--text); height: 100%; }
.clear-btn {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center; margin-left: 8px; flex: none;
}
.clear-btn:active { background: var(--line); }

.batch-bar {
  position: fixed; left: 0; right: 0; top: auto; bottom: var(--tabbar-h); z-index: 60;
  width: 100%; height: auto; box-sizing: border-box;
  background: var(--card); border-radius: var(--radius-xl, 14px) var(--radius-xl, 14px) 0 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(16, 24, 40, .10);
  padding: 10px 12px calc(10px + var(--safe-b));
  display: flex; flex-direction: column; gap: 10px;
  animation: batchup .22s ease;
}
@keyframes batchup { from { transform: translateY(100%); } to { transform: none; } }
.batchbar-head { display: flex; align-items: center; gap: 10px; }
.batchbar-close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg-soft); color: var(--muted);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.batchbar-close:active { background: var(--line); }
.batchbar-count { font-size: 13px; color: var(--muted); white-space: nowrap; flex: none; }
.batchbar-count b { color: var(--primary); font-size: 15px; }
.batchbar-tip { font-size: 11.5px; color: var(--muted-2); margin-left: auto; }
.batchbar-actions { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.batchbar-actions::-webkit-scrollbar { display: none; }
.batchbar-actions button {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line);
  font-size: 13px; color: var(--text); font-weight: 500; transition: var(--transition);
}
.batchbar-actions button:active { background: var(--bg-hover); border-color: var(--line-accent); }
.batchbar-actions button.disabled { opacity: .45; }
.batchbar-actions button > [data-icon] { color: var(--primary); display: inline-flex; }
.batchbar-actions button > [data-icon] svg { width: 17px; height: 17px; }
.batch-text { font-size: 13px; font-weight: 500; color: var(--text); }


.dropdown-mask { position: fixed; inset: 0; z-index: 55; background: transparent; }
.dropdown { position: absolute; top: 35px; z-index: 56; animation: dropin .14s ease; }
@keyframes dropin { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown.right { right: 12px; margin-top: 4px; display: flex; flex-direction: column; align-items: flex-end; }
.dropdown.left { left: 0; margin-top: 4px; }
.dropdown.right > .dropdown-menu {
  position: relative; width: 176px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 5px;
  box-shadow: var(--shadow-lg); margin-top: 4px;
}
.dropdown.right > .dropdown-menu::after {
  content: ""; position: absolute; top: -4px; right: 12px; width: 7px; height: 7px;
  background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.dropdown-item {
  min-height: 42px; padding: 0 11px; display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text); border-radius: var(--radius-s); text-align: left; width: 100%; white-space: nowrap;
  transition: var(--transition); position: relative; z-index: 5;
}
.dropdown-tag {
  margin-left: auto; flex: none; font-size: 10.5px; line-height: 1; padding: 3px 6px; border-radius: 999px;
  background: var(--grad-soft); color: var(--primary); white-space: nowrap;
}

.dropdown-search {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 4px 4px 10px;
  width: 208px; max-width: calc(100vw - 24px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); box-shadow: var(--shadow);
}
.dropdown-search input {
  flex: 1; min-width: 0; height: 34px; border: 0; outline: none; background: transparent;
  font-size: 13px; color: var(--text);
}
.dropdown-search input::placeholder { color: var(--muted-2); }
.dropdown-search-btn {
  flex: none; width: 34px; height: 34px; border-radius: var(--radius-xs); background: var(--grad); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.dropdown-search-btn:active { background: var(--primary-d); }
.dropdown-item [data-icon] { color: var(--muted); display: inline-flex; flex: none; }
.dropdown-item [data-icon] svg { width: 17px; height: 17px; }
.dropdown-item:active { background: var(--bg-hover); }
.dropdown-item.active { background: var(--grad-soft); color: var(--primary); font-weight: 600; }
.dropdown-item.active [data-icon] { color: var(--primary); }
.group-arrow {
  position: absolute; top: -5px; left: 12px; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid var(--card);
  z-index: 2;
}
.group-list {
  position: relative; width: 152px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 4px; box-shadow: var(--shadow-lg); margin-top: 4px; max-height: 260px; overflow-y: auto;
}
.group-item {
  padding: 10px 12px; min-height: 42px; display: flex; align-items: center; justify-content: space-between;
  font-size: 13.5px; color: var(--text); position: relative; z-index: 5; transition: var(--transition); text-align: left; width: 100%;
  border-radius: var(--radius-xs);
}
.group-item > span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-right: 8px; }
.group-item:active { background: var(--bg-hover); }
.group-item.active { color: var(--primary); background: var(--grad-soft); font-weight: 600; }

.group-row { display: flex; align-items: center; position: relative; }
.group-row .group-item { flex: 1; min-width: 0; }
.group-row.active .group-item { color: var(--primary); background: var(--grad-soft); }
.group-del {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--text-disabled); border-radius: var(--radius-xs);
}
.group-del:active { background: var(--red-bg); color: var(--red); }
.group-row.active .group-del { color: var(--muted-2); }

.group-lock {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--text-disabled);
}
.dev-menu-item.locked { opacity: .72; }
.dev-menu-item.locked::after { content: ''; }

body.batch-mode .empty-wrapper { padding-bottom: 132px; }
.group-item.add-group { color: var(--primary); border-top: 1px solid var(--line-2); font-weight: 500; border-radius: 0; }
.group-item.add-group [data-icon] { color: var(--primary); }
.group-item.add-group [data-icon] svg { width: 14px; height: 14px; }
.group-item.add-group:active { background: var(--bg-hover); }


.empty-wrapper {
  width: 100%; min-height: calc(100vh - var(--status-bar-height) - 90px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  padding: 12px 10px; box-sizing: border-box; position: relative; z-index: 2;
}
.device-list-container { width: 100%; flex: 1; display: flex; flex-direction: column; }


.notice-bar {
  display: flex; align-items: center; padding: 6px 12px; margin-top: 10px;
  background: rgba(255, 246, 232, .9); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transform-origin: top center; animation: showNotice .3s cubic-bezier(.4, 0, .2, 1);
}
@keyframes showNotice { 0% { transform: scale(.95); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.notice-bar .notice-icon { flex-shrink: 0; margin-right: 6px; display: flex; align-items: center; height: 16px; }
.notice-bar .notice-icon [data-icon] { color: var(--orange); display: inline-flex; }
.notice-bar .notice-swiper { flex: 1; height: 16px; overflow: hidden; }
.notice-bar .notice-track {
  display: inline-flex; align-items: center; height: 100%;
  white-space: nowrap; animation: scrollText 10s linear infinite;
}
.notice-bar .notice-item { font-size: 11px; color: var(--muted); line-height: 1; padding-right: 60px; flex-shrink: 0; }
.notice-bar .notice-close {
  flex-shrink: 0; margin-left: 6px; padding: 3px; display: flex; align-items: center;
  height: 16px; color: var(--muted-2); font-size: 11px;
}
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


.list-status {
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px 10px; font-size: 11px; color: var(--muted-2); line-height: 1.4;
}
.list-status::before, .list-status::after { content: ""; height: .5px; flex: 1; background: rgba(0, 0, 0, .05); }
.list-status::before { margin-right: 12px; }
.list-status::after { margin-left: 12px; }


.device-grid {
  padding: 10px 0 100px; display: grid; gap: 10px; width: 100%;
  grid-template-columns: repeat(2, 1fr); align-items: start; grid-auto-rows: min-content;
}
.device-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), border-color var(--transition);
  width: 100%; padding-top: 177.78%; height: 0;
}
.device-card:active { border-color: var(--line-accent); }
.device-card.selected, .device-card.picked {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--grad-soft), var(--shadow-card);
}
.device-card .device-screen {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center; background-color: #0E1420;
}
.device-card .device-screen::after { content: none; }
.device-card .device-screen img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0;
  transition: transform .3s ease, opacity .5s ease;
}
.device-card .device-screen img.loaded { opacity: 1; }
.device-card .device-screen .ph-icon { color: rgba(255, 255, 255, .22); position: relative; z-index: 1; }
.device-card .device-screen .ph-icon svg { width: 40px; height: 40px; }
.device-screen-loading {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; justify-content: center; align-items: center; gap: 5px;
  background: #0E1420;
}

.device-screen-loading i {
  width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .4);
  animation: dotpulse 1.4s ease-in-out infinite;
}
.device-screen-loading i:nth-child(2) { animation-delay: .2s; }
.device-screen-loading i:nth-child(3) { animation-delay: .4s; }
@keyframes dotpulse { 0%, 100% { opacity: .4; transform: scale(1); } 50% { opacity: .8; transform: scale(1.2); } }

.device-badges { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; z-index: 3; }
.device-grid.cols-3 .device-badges, .device-grid.cols-4 .device-badges { display: none; }

.badge {
  font-size: 10px; padding: 1px 6px; border-radius: 4px; font-weight: 600; line-height: 1.5;
  background: var(--bg-soft); color: var(--muted); white-space: nowrap;
}
.badge.online { background: var(--green-bg); color: var(--green); }
.badge.offline { background: rgba(15, 20, 30, .62); color: #fff; }

.badge.shared-out { background: #FED7AA; color: #7C2D12; }

.badge.shared-in { background: #BFDBFE; color: #1E3A8A; }
.badge.granted { background: #BFDBFE; color: #1E3A8A; }
.badge.expiring { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-line); }


.badge.syncing { background: var(--orange-bg); color: var(--orange); border: 1px solid var(--orange-line); }


.device-offline {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: #fff; background: rgba(10, 14, 22, .55);
  font-size: clamp(10px, 1.8vw, 12.5px); font-weight: 500; letter-spacing: .5px;
}
.device-offline [data-icon] { color: rgba(255, 255, 255, .92); }
.device-offline svg { width: 22px; height: 22px; }
.device-card:has(.device-offline) .device-screen img { filter: grayscale(1) brightness(.55); }

.device-act {
  position: absolute; top: clamp(6px, 1.5vw, 8px); right: clamp(6px, 1.5vw, 8px);
  display: flex; z-index: 100;
}
.device-act button {
  margin-left: clamp(4px, 1vw, 5px); padding: clamp(5px, 1.2vw, 6px);
  background-color: rgba(0, 0, 0, .5);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: #fff;
}
.device-act button:active { transform: scale(.9); }
.device-act button [data-icon] { color: #fff; }
.device-act button svg { width: 14px; height: 14px; }
.device-card.selecting .device-act { display: none; }
.device-check {
  position: absolute; top: clamp(6px, 1.5vw, 8px); right: clamp(6px, 1.5vw, 8px); z-index: 101;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .35);
  display: none; align-items: center; justify-content: center; color: #fff;
}
.device-check svg { width: 12px; height: 12px; stroke-width: 2.6; }
.device-card.selecting .device-check { display: flex; }
.device-card.selected .device-check { background: var(--primary); border-color: var(--primary); }

.device-info {
  position: absolute; left: 0; bottom: 0; width: 100%; max-height: 35%; overflow: hidden; z-index: 2;
  background: linear-gradient(to top, rgba(10, 14, 22, .82) 0%, rgba(10, 14, 22, .45) 65%, rgba(10, 14, 22, 0) 100%);
  padding: clamp(6px, 1.8vw, 10px) clamp(6px, 1.5vw, 8px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.device-info .nm {
  font-size: clamp(10px, 1.8vw, 12px); color: #fff; font-weight: 600; margin-bottom: 2px;
  line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.device-info .rm {
  font-size: clamp(9px, 1.6vw, 11px); color: rgba(255, 255, 255, .94);
  line-height: 1.2; font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left;
}
.device-info .rm-shared { color: #FED7AA; }

.device-remark {
  position: absolute; left: 6px; bottom: 26px; z-index: 3; max-width: calc(100% - 12px);
  padding: 0 6px; height: 16px; line-height: 16px; border-radius: 4px;
  font-size: 10.5px; color: var(--primary); background: rgba(255, 255, 255, .92);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}


.device-topline {
  position: absolute; top: 6px; left: 6px; right: 40px; z-index: 3;
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden;
}
.device-topline .dev-id {
  font-size: clamp(9px, 1.6vw, 11px); font-weight: 600; color: #fff; white-space: nowrap;
  background: rgba(10, 14, 22, .55); padding: 2px 6px; border-radius: 4px;
}

.device-gear {
  position: absolute; top: 6px; right: 6px; z-index: 4;
  width: 28px; height: 28px; min-height: 28px; border-radius: 50%;
  background: rgba(16, 24, 40, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.device-gear svg { width: 15px; height: 15px; }
.device-gear:active { transform: scale(.9); background: var(--primary); }
.device-card.selecting .device-gear { display: none; }
.device-grid.cols-3 .device-gear, .device-grid.cols-4 .device-gear { width: 22px; height: 22px; min-height: 22px; }
.device-grid.cols-3 .device-gear svg, .device-grid.cols-4 .device-gear svg { width: 12px; height: 12px; }
.device-grid.cols-3 .device-topline .dev-id, .device-grid.cols-4 .device-topline .dev-id { display: none; }


.dev-menu-id { font-size: 12.5px; color: var(--muted); padding: 2px 2px 10px; }
.dev-menu, .dev-menu-sub { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.dev-menu-item {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 12px;
  font-size: 14px; color: var(--text); background: var(--card); border-bottom: 1px solid var(--line-2);
}
.dev-menu-item:last-child { border-bottom: none; }
.dev-menu-item:active { background: var(--bg-hover); }
.dev-menu-item > [data-icon]:first-child { color: var(--primary); }
.dev-menu-item > [data-icon]:first-child svg { width: 18px; height: 18px; }
.dev-menu-item .ar { margin-left: auto; color: var(--text-disabled); }
.dev-menu-item .ar svg { width: 16px; height: 16px; }
.dev-menu-item .tip { font-size: 11px; color: var(--muted-2); margin-left: auto; margin-right: 2px; }
.dev-cmd-list { background: var(--bg-subtle, #FAFBFD); border-top: 1px solid var(--line); }
.dev-cmd {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 30px;
  font-size: 13.5px; color: var(--text); border-bottom: 1px solid var(--line-2); min-height: 44px;
}
.dev-cmd:last-child { border-bottom: none; }
.dev-cmd:active { background: var(--bg-hover); }
.dev-cmd [data-icon] { color: var(--primary); }
.dev-cmd svg { width: 15px; height: 15px; }
.dev-cmd-empty { padding: 14px 12px; font-size: 12.5px; color: var(--muted-2); text-align: center; line-height: 1.7; }
.dev-cmd-empty span { font-size: 11.5px; color: var(--text-disabled); }


.add-device-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--card);
  border: 1px dashed var(--line-strong); width: 100%; padding-top: 177.78%; height: 0;
  display: block; transition: var(--transition);
}
.add-device-card:active { border-color: var(--primary); background: var(--bg-hover); }
.add-device-card .add-content {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.add-device-card .add-icon {
  width: 38px; height: 38px; border-radius: 50%; background: var(--grad-soft);
  color: var(--primary); display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
}
.add-device-card .add-icon svg { width: 18px; height: 18px; }
.add-device-card .add-text {
  font-size: 11px; color: var(--muted); font-weight: 500; text-align: center;
  width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 5px;
}


.empty { text-align: center; padding: 50px 16px; color: var(--muted); }
.empty p { margin-bottom: 16px; font-size: 13.5px; }
.empty-icon { color: var(--text-disabled); margin-bottom: 12px; display: flex; justify-content: center; }
.empty-icon svg { width: 52px; height: 52px; stroke-width: 1.2; }


.empty-container {
  width: 100%; flex: 1; display: flex; justify-content: center; align-items: center;
  padding: 16px; box-sizing: border-box;
}
.empty-card {
  width: 100%; max-width: 320px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-xl, 14px); position: relative;
  overflow: hidden; box-shadow: var(--shadow-card);
}
.empty-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.empty-card::after { content: none; }
.empty-card-content { position: relative; z-index: 1; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; }
.ec-header { text-align: center; margin-bottom: 22px; }
.ec-title { font-size: 19px; font-weight: 700; color: var(--text); margin-bottom: 6px; display: block; }
.ec-subtitle { font-size: 12.5px; color: var(--muted-2); display: block; letter-spacing: 1px; }
.ec-features { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 24px; }
.ec-features span { font-size: 13.5px; color: var(--muted); letter-spacing: .2px; }
.ec-features span b { font-size: 15px; color: var(--primary); font-weight: 700; margin-right: 5px; }
.ec-btn {
  min-width: 170px; height: 44px; padding: 0 24px;
  background: var(--grad); border: 1px solid transparent;
  border-radius: var(--radius-s); display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .28); transition: var(--transition);
}
.ec-btn:active { background: var(--primary-d); }


.empty-content {
  width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 16px; box-sizing: border-box; animation: fadein .3s ease;
}
.empty-icon-wrapper {
  width: 72px; height: 72px; border-radius: 20px; background: var(--grad-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  border: 1px solid var(--line-2);
}
.empty-icon-wrapper svg { width: 34px; height: 34px; }
.empty-title { font-size: 17px; color: var(--text); font-weight: 600; margin-bottom: 8px; }
.empty-desc { font-size: 13px; color: var(--muted-2); margin-bottom: 22px; line-height: 1.6; }
.empty-actions { display: flex; gap: 12px; }
.empty-actions .action-btn {
  display: flex; align-items: center; gap: 6px; padding: 0 18px; height: 44px; border-radius: var(--radius-s);
  font-size: 14px; font-weight: 500; transition: var(--transition); border: 1px solid var(--line); background: var(--card); color: var(--text);
}
.empty-actions .action-btn svg { width: 15px; height: 15px; }
.empty-actions .action-btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 2px 8px rgba(47, 111, 235, .28); }
.empty-actions .action-btn.primary:active { background: var(--primary-d); }
.empty-actions .action-btn.secondary { background: var(--grad-soft); border-color: transparent; color: var(--primary); }
.empty-actions .action-btn.secondary:active { background: rgba(47, 111, 235, .16); }
.list-end { text-align: center; color: var(--muted-2); font-size: 12px; padding: 16px 0 4px; }


#page-store.store-page {
  position: fixed; top: 0; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden; animation: slidein .22s ease;
}
.store-page .page-scroll { padding: 0 0 160px; flex: 1; overflow-y: auto; }
.store-page .sub-nav { background: var(--card); border-bottom: 1px solid var(--line); }
.store-page .sub-nav .icon-btn { color: var(--text); }
.store-page .sub-nav .sub-title { color: var(--text); font-size: 15px; font-weight: 600; }
.store-page .sub-nav .balance-chip { color: var(--primary); font-size: 13px; }
.store-page .footer { bottom: 0; }
.store-dark { background: var(--bg); }
.navbar {
  display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.navbar .nav-left, .navbar .nav-right { width: 34px; display: flex; align-items: center; justify-content: center; }
.navbar .nav-right { justify-content: flex-end; }
.navbar .nav-title { font-size: 15px; color: var(--text); font-weight: 600; }
.navbar .balance-chip { color: var(--primary); font-size: 13px; }
.product-tabs { padding: 0 16px; margin-bottom: 16px; white-space: nowrap; overflow-x: auto; }
.product-tabs .tab-container { display: inline-flex; white-space: nowrap; }
.product-tabs .tab-item {
  position: relative; padding: 8px; margin-right: 4px; font-size: 13px;
  color: var(--muted); font-weight: 500; transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.product-tabs .tab-item.active { color: var(--primary); font-weight: 600; }
.product-tabs .tab-item.active::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 3px; background: var(--grad); border-radius: 1.5px;
}
.pkg-banner { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); overflow: hidden; margin: 0 16px 16px; position: relative; }
.pkg-banner img { width: 100%; height: 140px; object-fit: cover; display: block; }
.pkg-banner.none { display: none; }
.pkg-empty-tip { padding: 16px; text-align: center; font-size: 13px; color: var(--muted-2); }
.pkg-desc { padding: 0 16px; margin-bottom: 16px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.store-section-title { font-size: 15px; color: var(--text); font-weight: 600; padding: 0 16px 12px; }
.pkg-scroll-inner { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.pkg-card {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: var(--transition); overflow: hidden;
}
.pkg-card.active {
  background: var(--card); border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--grad-soft), var(--shadow-card);
}
.pkg-card.active::before { content: none; }
@keyframes shine { 0% { left: -100%; } 100% { left: 100%; } }
.pkg-card:active { background: var(--bg-hover); }
.pkg-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pkg-name { font-size: 14.5px; color: var(--text); font-weight: 600; }
.pkg-specs { font-size: 11.5px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 2px 8px; }
.pkg-tag {
  display: inline-block; padding: 2px 8px; background: var(--grad-soft); color: var(--primary);
  font-size: 10.5px; border-radius: 999px; font-weight: 600; width: max-content;
}
.pkg-right { text-align: right; flex: none; position: relative; z-index: 2; }
.pkg-price { font-size: 18px; color: var(--primary); font-weight: 700; }
.pkg-price small { font-size: 12px; }
.pkg-idle { font-size: 10.5px; color: var(--muted-2); margin-top: 2px; }
.pkg-prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }


.games-title { font-size: 14px; color: var(--text); font-weight: 600; margin: 16px 0 8px; text-align: left; padding: 0 16px; }
.recommended-games { margin: 0 16px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.games-grid { display: flex; justify-content: space-between; gap: 10px; }
.game-item {
  width: calc(20% - 8px); height: 0; padding-bottom: calc(20% - 8px); flex-shrink: 0;
  border-radius: var(--radius-s); position: relative; overflow: hidden;
}
.game-inner {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: #fff;
}
.game-inner [data-icon] { color: #fff; }
.game-inner svg { width: 18px; height: 18px; }
.game-inner span { font-size: 10px; font-weight: 500; letter-spacing: .5px; line-height: 1; }
.game-item.g1 { background: linear-gradient(135deg, #4E7BE8, var(--primary)); }
.game-item.g2 { background: linear-gradient(135deg, #3F8CE8, #1E5BD6); }
.game-item.g3 { background: linear-gradient(135deg, var(--primary), #1E5BD6); }
.game-item.g4 { background: linear-gradient(135deg, #5A8DF0, #3B6FD8); }
.game-item.g5 { background: linear-gradient(135deg, #6E9BF2, var(--primary)); }
.purchase-notice { margin: 16px 16px 0; }
.notice-title { font-size: 14px; color: var(--text); font-weight: 600; margin-bottom: 8px; text-align: left; }
.notice-content { display: flex; flex-direction: column; gap: 5px; }
.notice-item { font-size: 12px; color: var(--muted); line-height: 1.6; }


.footer {
  position: fixed; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; height: 66px; padding: 0 16px; box-sizing: border-box;
  background: var(--card); display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); z-index: 46;
  box-shadow: 0 -1px 3px rgba(16, 24, 40, .06);
}
.footer .left .pay-intro { display: flex; align-items: baseline; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.footer .left .price-wrap { display: flex; align-items: flex-end; margin-left: 4px; }
.footer .left .price-wrap .symbol { color: var(--primary); font-size: 13px; font-weight: 600; }
.footer .left .price-wrap .price { color: var(--primary); font-size: 19px; font-weight: 700; }
.footer .left .price-intro { font-size: 11.5px; font-weight: 400; color: var(--muted-2); line-height: 1.4; text-align: left; margin-top: 2px; }
.footer .right .btn {
  width: auto; min-width: 108px; height: 40px; background: var(--grad); border-radius: var(--radius-s);
  font-size: 14px; font-weight: 600; color: #fff; line-height: 1; text-align: center; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .28);
}
.footer .right .btn:active { background: var(--primary-d); }
.footer .right .btn.disabled { background: var(--bg-soft); color: var(--text-disabled); box-shadow: none; pointer-events: none; }


.price-chip {
  flex: none; min-width: 76px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s);
  padding: 10px 12px; display: inline-flex; flex-direction: column; align-items: stretch;
  text-align: center; transition: var(--transition); min-height: 44px;
}
.price-chip:active { border-color: var(--line-accent); }
.price-chip.selected { background: var(--grad-soft); border-color: var(--primary); box-shadow: 0 0 0 2px var(--grad-soft); }
.price-chip .pc-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.price-chip.selected .pc-name { color: var(--primary); }
.price-chip .pc-price { margin-top: 3px; font-size: 14px; font-weight: 700; color: var(--primary); }
.price-chip .pc-unit { font-size: 10.5px; color: var(--muted-2); }
.price-chip.disabled { opacity: .4; pointer-events: none; }

.sheet.dark .price-chip {
  flex-direction: row; align-items: center; gap: 4px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 14px;
}
.sheet.dark .price-chip.selected { background: var(--grad-soft); border-color: var(--primary); }
.sheet.dark .price-chip .pc-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sheet.dark .price-chip.selected .pc-name { color: var(--primary); }
.sheet.dark .price-chip .pc-price { font-size: 13px; font-weight: 700; color: var(--primary); margin-top: 0; }
.sheet.dark .price-chip .pc-unit { font-size: 10.5px; color: var(--muted-2); }


.quantity-selector { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.quantity-title { font-size: 13.5px; color: var(--text); font-weight: 500; }
.quantity-control { display: inline-flex; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.control-btn {
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--card); color: var(--primary); font-size: 16px; font-weight: 600; border-radius: 0;
}
.control-btn:active { background: var(--bg-hover); }
.control-btn.disabled { opacity: .4; pointer-events: none; }
.quantity-input {
  width: 64px; height: 40px; line-height: 40px; text-align: center;
  font-size: 15px; color: var(--text); background: var(--card); border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}


.order-page {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column; animation: slidein .22s ease;
}
@keyframes slidein { from { transform: translate(-50%, 0) translateX(100%); } to { transform: translate(-50%, 0); } }
.order-page .order-list { flex: 1; overflow-y: auto; padding: 8px; }
.seg-tabs { display: flex; background: #fff; padding: 2px 16px 0; border-bottom: 1px solid rgba(0, 0, 0, .05); flex: none; }
.seg { padding: 6px 10px; margin-right: 10px; font-size: 13px; color: var(--muted); position: relative; }
.seg:last-child { margin-right: 0; }
.seg.active { color: var(--primary); font-weight: 500; }
.seg.active::after {
  content: ""; position: absolute; bottom: 0; left: 10px; right: 10px; height: 2px;
  background: var(--primary); border-radius: 1px;
}
.card-list { display: flex; flex-direction: column; }
.oc { background: #fff; padding: 16px; margin-bottom: 8px; }
.oc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.oc-name { font-size: 16px; color: var(--text); font-weight: 500; margin-right: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oc-sub { font-size: 14px; color: var(--muted); }
.oc-status { font-size: 14px; padding: 2px 8px; border-radius: 2px; font-weight: 400; flex: none; }
.st-billing { color: var(--green); background: rgba(7, 193, 96, .1); }
.st-expired { color: var(--muted); background: rgba(0, 0, 0, .05); }
.st-refunded { color: var(--orange); background: var(--orange-bg); }
.st-pending { color: var(--orange); background: var(--orange-bg); }
.st-paid { color: var(--green); background: rgba(7, 193, 96, .1); }
.st-active { color: var(--green); background: rgba(7, 193, 96, .1); }
.st-revoked { color: var(--red); background: var(--red-bg); }
.st-approved { color: var(--green); background: rgba(7, 193, 96, .1); }
.st-rejected { color: var(--red); background: var(--red-bg); }
.oc-price { font-size: 18px; color: var(--red); font-weight: 500; margin-bottom: 12px; }
.oc-rows, .order-info { border-top: 1px solid var(--line-2); padding-top: 12px; }
.oc-rows div, .info-row { display: flex; font-size: 13px; margin-bottom: 4px; }
.oc-rows div:last-child, .info-row:last-child { margin-bottom: 0; }
.label, .oc-rows .k { color: var(--muted-2); width: 70px; flex: none; }
.value, .oc-rows .v { color: var(--muted); flex: 1; word-break: break-all; }
.value.order-no { color: var(--text); }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.oc-amount { font-size: 18px; color: var(--red); font-weight: 500; }
.oc-amount.plus { color: var(--green); }
.oc-amount.minus { color: var(--red); }
.oc-btns { display: flex; gap: 8px; }
.oc-btns .btn { height: 32px; font-size: 13px; padding: 0 12px; }
.load-more { text-align: center; color: var(--muted-2); font-size: 13px; padding: 16px 0; }
.empty-state { display: flex; align-items: center; justify-content: center; height: 60vh; }
.empty-state .empty-text { color: var(--muted-2); font-size: 14px; }


.mine-page { background: var(--bg); }
.page-container {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  padding-top: var(--status-bar-height); box-sizing: border-box;
}
.top-bg { position: absolute; top: 0; left: 0; right: 0; height: 160px; overflow: hidden; z-index: 1; }
.top-bg i { position: absolute; top: -60px; width: 200px; height: 200px; border-radius: 50%; }
.top-bg .gradient-left { left: -50px; background: radial-gradient(circle, rgba(47, 111, 235, .07) 0%, rgba(255, 255, 255, 0) 70%); }
.top-bg .gradient-right { right: -50px; background: radial-gradient(circle, rgba(47, 111, 235, .05) 0%, rgba(255, 255, 255, 0) 70%); }
.user-section { position: relative; z-index: 2; padding: 18px 15px 8px; flex-shrink: 0; }
.user-info {
  display: flex; align-items: center; margin-bottom: 14px; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-xs);
  cursor: pointer; transition: var(--transition);
}
.user-info:active { background: var(--bg-hover); border-color: var(--line-accent); }
.user-info .avatar {
  width: 50px; height: 50px; border-radius: 50%; margin-right: 14px; flex: none;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: #fff;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .24);
}
.user-details { flex: 1; min-width: 0; }
.user-details .username { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 5px; display: block; }
.user-details .user-id {
  font-size: 12px; color: var(--muted-2); display: flex; align-items: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.verify-tag { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; margin-left: 5px; flex: none; }
.verify-tag.verified { background-color: var(--green-bg); color: var(--green); }
.verify-tag.unverified { background-color: var(--red-bg); color: var(--red); }
.arrow-right { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; color: var(--text-disabled); }
.arrow-right svg { width: 18px; height: 18px; }


.member-card {
  width: 100%; height: 84px; border-radius: var(--radius-l);
  background: linear-gradient(90deg, var(--primary) 0%, #1E5BD6 100%);
  position: relative; overflow: hidden; box-shadow: var(--shadow-card); cursor: pointer;
}
.member-card:active { opacity: .92; }
.member-card-content {
  position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 15px; gap: 8px;
}
.contact-top { display: flex; align-items: center; justify-content: center; width: 100%; }
.fade-line { width: 50px; height: 1px; opacity: .9; }
.fade-line.left { margin-right: 8px; background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }
.fade-line.right { margin-left: 8px; background: linear-gradient(270deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }
.contact-title { font-size: 12px; color: rgba(255, 255, 255, .92); letter-spacing: .5px; }
.contact-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 14px; background-color: #fff; border-radius: var(--radius-s); width: 100%; box-sizing: border-box;
}
.contact-btn [data-icon], .contact-btn .btn-text {
  color: var(--primary); font-size: 13px; line-height: 1; font-weight: 600;
}
.contact-btn svg { width: 15px; height: 15px; }
.light-effect { display: none; }
.mine-pending {
  margin: 0 15px 10px; font-size: 12.5px; color: var(--orange);
  background: var(--orange-bg); border: 1px solid var(--orange-line);
  border-radius: var(--radius-s); padding: 8px 10px; position: relative; z-index: 2;
}
.scroll-container { flex: 1; overflow-y: auto; padding-bottom: 60px; position: relative; z-index: 2; }

.features-card {
  margin: 10px 15px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-xs); position: relative; z-index: 2;
}
.card-title { font-size: 15px; font-weight: 600; color: var(--text); padding: 12px; }
.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 8px; }
.grid-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0; border-radius: var(--radius-s); }
.grid-item:active { background: var(--bg-hover); }
.grid-item [data-icon] { margin-bottom: 8px; color: var(--primary); }
.grid-item svg { width: 21px; height: 21px; }
.grid-item span { font-size: 12px; color: var(--text); }


.balance-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 15px; }
.balance-left { display: flex; flex-direction: column; gap: 2px; }
.balance-label { font-size: 12px; color: var(--muted-2); }
.balance-value { font-size: 13px; color: var(--muted); }
.balance-value b { font-size: 20px; color: var(--primary); font-weight: 700; }
.balance-btn { height: 38px; min-height: 38px; padding: 0 18px; border-radius: var(--radius-s); background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px rgba(47, 111, 235, .24); }
.balance-btn:active { background: var(--primary-d); }

.settings-card {
  margin: 10px 15px 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-xs); padding: 2px 12px; position: relative; z-index: 2;
}
.list-item {
  display: flex; align-items: center; justify-content: space-between; padding: 0 2px; min-height: 52px;
  border-bottom: 1px solid var(--line-2); cursor: pointer; width: 100%;
}
.list-item:last-child { border-bottom: none; }
.list-item:active { background: var(--bg-hover); }
.item-left { display: flex; align-items: center; gap: 10px; }
.item-left [data-icon] { color: var(--primary); }
.item-left svg { width: 18px; height: 18px; }
.item-left .item-text { font-size: 14px; color: var(--text); }
.item-right { display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-disabled); }
.item-right svg { width: 16px; height: 16px; }
.mine-footer { text-align: center; color: var(--muted-2); font-size: 12px; padding: 10px 0 24px; }


.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 520px; z-index: 50;
  display: flex; justify-content: space-around; align-items: center;
  height: var(--tabbar-h); padding: 4px 0 calc(4px + var(--safe-b)); box-sizing: border-box;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -1px 3px rgba(16, 24, 40, .06);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 4px 0; color: var(--muted-2); font-size: 11px; transition: var(--transition); position: relative;
  background: none; border: none;
}
.tab:active { opacity: .8; }
.tab > [data-icon] { margin-bottom: 4px; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); }
.tab svg { width: 21px; height: 21px; }
.tabbar-text { font-size: 11px; line-height: 1; transition: var(--transition); }
.tab.active { color: var(--primary); }
.tab.active [data-icon] { color: var(--primary); }
.tab.active .tabbar-text { font-weight: 600; }


.subpage {
  position: fixed; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 70; background: var(--bg);
  display: flex; flex-direction: column;
  

  animation: none;
}
.sub-nav {
  display: flex; align-items: center; gap: 10px; height: 48px; flex: none;
  padding: 0 12px; padding-top: var(--status-bar-height); box-sizing: content-box;
  border-bottom: 1px solid var(--line); background: var(--card);
}
.sub-nav .icon-btn { background: var(--card); border-color: var(--line); width: 34px; height: 34px; color: var(--muted); }



.sub-title { flex: 1; text-align: left; font-size: 16px; font-weight: 700; color: var(--text); }
.sub-nav-right { flex: none; min-width: 34px; display: flex; align-items: center; justify-content: flex-end; }
.sub-body { flex: 1; overflow-y: auto; padding: 14px; }
.sub-body.no-pad { padding: 0; }

.kv { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted-2); flex: none; max-width: 55%; }
.kv .v { text-align: right; word-break: break-all; color: var(--text); flex: 1; font-weight: 500; }

.section-title {
  font-size: 14.5px; color: var(--text); margin: 18px 2px 10px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.section-title::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); flex: none;
}
.device-meta { font-size: 12px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.row-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 4px 15px; margin-bottom: 12px; box-shadow: var(--shadow-xs);
}
.row-card.selected { border-color: var(--primary); box-shadow: 0 0 0 2px var(--grad-soft); }
.input {
  width: 100%; height: 46px; background: var(--bg-input); border: 1px solid var(--line-strong);
  border-radius: var(--radius-s); padding: 0 14px; font-size: 15px; color: var(--text);
}
.input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px var(--grad-soft); }
textarea.input { height: auto; padding: 10px 14px; resize: none; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.select-tip { font-size: 12px; color: var(--muted-2); padding: 0 2px 8px; line-height: 1.6; }

.hint { font-size: 12.5px; color: var(--muted-2); line-height: 1.7; margin-bottom: 10px; }
.alert { font-size: 13px; line-height: 1.7; border-radius: var(--radius-s); padding: 10px 12px; }
.alert.warn { background: var(--orange-bg); border: 1px solid var(--orange-line); color: var(--orange); }
.alert.err { background: var(--red-bg); border: 1px solid #F0CBC5; color: var(--red); }
.alert b, .hint b { font-weight: 700; }
.dlg-alert { margin: 10px 0 8px; }


.control-body {
  position: fixed; inset: 0; z-index: 75;
  display: flex; flex-direction: column; height: 100%; background: #0E1420;
  --offsetW: 45px; --offsetH: 80px;
}
.control-header {
  flex: none; height: 44px; padding: 0 10px 0 4px; display: flex; align-items: center;
  justify-content: space-between; background: #F6F7F9; border-bottom: 1px solid #E6E8EE; z-index: 5;
}
.control-header .ch-back {
  flex: none; width: 34px; height: 34px; margin-right: 2px; border-radius: var(--radius-s);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: transparent;
}
.control-header .ch-back:active { background: rgba(255, 255, 255, .12); }
.control-header .ch-left { display: flex; align-items: center; min-width: 0; flex: 1; }
.control-header .ch-avatar {
  width: 26px; height: 26px; border-radius: var(--radius-xs); flex: none; margin-right: 8px;
  background: var(--grad-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.control-header .ch-avatar svg { width: 15px; height: 15px; }
.control-header .ch-name { font-size: 13px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.control-header .ch-right { display: flex; align-items: center; flex: none; }
.ch-quality {
  padding: 5px 12px; background: var(--card); border-radius: var(--radius-xs);
  border: 1px solid var(--line); font-size: 12.5px; color: var(--text); min-height: 32px;
}
.ch-quality:active { background: var(--bg-hover); border-color: var(--line-accent); }
.ch-quality.ok { background: var(--green-bg); border-color: #BFE6D2; color: var(--green); }

.control-header .ch-name { cursor: pointer; }
.control-header .ch-name:active { opacity: .7; }
.ch-ping {
  margin-left: 8px; font-size: 11.5px; white-space: nowrap; flex: none;
  font-variant-numeric: tabular-nums;
}
.ch-ping.good { color: var(--green); }
.ch-ping.mid { color: #B45309; }
.ch-ping.bad { color: var(--red); }


.ch-fps {
  margin-right: 6px; font-size: 11.5px; color: var(--muted); min-width: 46px; text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ch-fps.idle { opacity: .7; }   
.ch-latency {
  min-width: 50px; margin-left: 6px; font-size: 11.5px; background: var(--bg-soft);
  border: 1px solid var(--line-2);
  padding: 3px 6px; border-radius: var(--radius-xs);
  text-align: center; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw;
}

.control-main { flex: 1; display: flex; min-height: 0; background: #000; justify-content: flex-start; }
.control-frame-wrap { flex: none; position: relative; overflow: hidden; background: #000; min-width: 0; }
.control-frame-wrap iframe { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; background: #000; }
.control-frame-wrap canvas.ctrl-canvas { position: absolute; left: 0; top: 0; background: #000; touch-action: none; display: block; }

.disk-stats { display: flex; gap: 8px; margin-bottom: 10px; }
.disk-stat { flex: 1; min-width: 0; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 10px; padding: 10px 4px; text-align: center; }
.disk-stat b { display: block; font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.disk-stat span { display: block; font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.disk-progress { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; margin: 10px 0 0; }

.disk-progress i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .2s ease; }
.disk-file .row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-btn { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12.5px; }
.mini-btn.primary { border-color: rgba(47, 111, 235, .45); color: var(--primary); background: rgba(47, 111, 235, .06); }
.mini-btn.danger { border-color: rgba(229, 77, 77, .35); color: var(--red); }
.mini-btn:active { transform: scale(.97); }




.control-footer {
  flex: none; width: 100%; min-height: 48px; display: flex; align-items: center;
  background: #F6F7F9; border-top: 1px solid #E6E8EE; padding-bottom: var(--safe-b);
}
.control-footer .fw {
  flex-grow: 1; flex-basis: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 7px 2px; transition: var(--transition); color: var(--muted-2);
}
.control-footer .fw:active { background: var(--bg-hover); border-radius: 8px; }
.control-footer .fw [data-icon] { color: #3A4049; display: inline-flex; }
.control-footer .fw svg { width: 17px; height: 17px; }
.control-footer .fw span { font-size: 10px; color: var(--muted-2); max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.control-side {
  flex: 1 1 auto; min-width: 45px; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 6px; padding: 8px 0; overflow-y: auto; overflow-x: hidden;
  background: #F6F7F9; border-left: 1px solid #E6E8EE;
  scrollbar-width: none;
}
.control-side::-webkit-scrollbar { display: none; }
.control-side .side-group { display: flex; flex-direction: column; align-items: center; width: 100%; gap: 6px; }
.control-side .side-top, .control-side .side-bot { flex: none; }
.control-side .side-mid { flex: 1 1 auto; justify-content: center; overflow-y: auto; scrollbar-width: none; }
.control-side .side-mid::-webkit-scrollbar { display: none; }
.control-side .sd:focus, .control-side .sd:focus-visible { outline: none; }
.control-side .sd {
  flex: none; width: 100%; max-width: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 9px 0; border-radius: 8px; color: #3A4049; background: #fff;
  border: 1px solid #D8DBE2; transition: var(--transition);
}
.control-side .sd [data-icon] { color: #3A4049; display: inline-flex; }
.control-side .sd svg { width: 17px; height: 17px; }
.control-side .sd span { font-size: 10.5px; color: var(--muted-2); white-space: nowrap; }
.control-side .sd:active { transform: scale(.96); }
.control-side .sd.pri { background: var(--primary); border-color: var(--primary); }
.control-side .sd.pri [data-icon], .control-side .sd.pri span { color: #fff; }
.control-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #98A2B3; background: #0E1420; z-index: 2;
}
.control-loading .loading-spinner { display: flex; align-items: center; justify-content: center; gap: 8px; }
.control-loading .spinner-dot {
  width: 12px; height: 12px; background-color: var(--primary); border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out; margin: 0;
}
.control-loading .spinner-dot:nth-child(1) { animation-delay: -.32s; }
.control-loading .spinner-dot:nth-child(2) { animation-delay: -.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }
.control-loading .loading-text { margin-top: 16px; color: #98A2B3; font-size: 13.5px; font-weight: 500; }
.control-error {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: #98A2B3; background: #0E1420; z-index: 3; text-align: center; padding: 20px;
}

.control-offline {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #0E1420; color: #fff; text-align: center; padding: 20px;
}
.control-offline [data-icon] { color: rgba(255, 255, 255, .4); }
.control-offline svg { width: 42px; height: 42px; }
.control-offline span { font-size: 15.5px; font-weight: 500; letter-spacing: .5px; }
.control-offline em { font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, .42); }
.control-offline .btn { margin-top: 8px; }


.ctrl-exit { display: none; }
.ctrl-immersive .sub-nav,
.ctrl-immersive .control-header,
.ctrl-immersive .control-footer { display: none !important; }
.ctrl-immersive .control-body { position: fixed; inset: 0; z-index: 90; }
.ctrl-immersive .ctrl-exit {
  display: inline-flex; align-items: center; gap: 6px;
  position: fixed; right: 12px; bottom: calc(14px + var(--safe-b)); z-index: 95;
  padding: 8px 14px; border-radius: 999px; font-size: 12.5px; color: #fff;
  background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}



.batchbar-actions [data-action="batch-sync"].on {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

.batchbar-tip { font-size: 11.5px; color: var(--muted-2); margin-left: auto; padding-right: 4px; text-align: right; max-width: 62%; line-height: 1.35; }

.card-pick {
  position: absolute; top: 6px; left: 6px; z-index: 12; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); border: 1.5px solid rgba(255, 255, 255, .85);
  display: none; align-items: center; justify-content: center; color: #fff; font-size: 13px;
}
body.sync-mode .card-pick { display: flex; }

body.sync-mode:not(.batch-mode) .device-check { display: none !important; }
.device-card.picked .card-pick { background: var(--primary); border-color: #fff; }
body.sync-mode .device-card.picked { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 8px; }

.sync-bar {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 9px 12px;
  background: rgba(47, 111, 235, .08); border: 1px solid rgba(47, 111, 235, .25); border-radius: 10px;
}
.sync-bar.hidden { display: none; }
.sync-ico { color: var(--primary); font-size: 17px; display: inline-flex; }
.sync-text { min-width: 0; flex: 1; }
.sync-text b { display: block; font-size: 13px; color: var(--text); }
.sync-text em { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.sync-num { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.sync-num b { color: var(--primary); font-size: 13px; }
.sync-exit {
  flex: none; height: 28px; padding: 0 10px; border-radius: 7px; font-size: 12px;
  background: #fff; border: 1px solid rgba(47, 111, 235, .35); color: var(--primary);
}
.ctrl-sync-bar {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: 11.5px;
  color: #cfe0ff; background: rgba(47, 111, 235, .28); border-bottom: 1px solid rgba(47, 111, 235, .35);
}
.ctrl-sync-bar svg { width: 14px; height: 14px; }





.modal-remark {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  margin-top: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--bg-subtle, #FAFBFD);
  border: 1px solid var(--line-2); color: var(--text); font-size: 13px;
}
.modal-remark .mr-label { color: var(--muted-2); flex: none; }
.modal-remark .mr-value { flex: 1; min-width: 0; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-remark .mr-edit { color: var(--primary); flex: none; }
.modal-remark [data-icon]:first-child { color: var(--primary); }
.modal-remark svg { width: 16px; height: 16px; }
.modal-remark:active { background: var(--bg-hover); }

.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 12.5px; color: #6b7280; }
.tk-item { cursor: pointer; }
.tk-item:active { background: #f7f9fc; }
.tk-id { font-size: 11px; color: var(--muted-2); font-weight: 400; margin-left: 4px; }
.tk-reply { color: var(--primary); }
.tk-detail-text { font-size: 13.5px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.tk-reply-card { border-left: 3px solid rgba(47, 111, 235, .5); }
.tk-reply-meta { font-size: 11.5px; color: var(--muted-2); margin-bottom: 6px; }





#mine-avatar.has-logo, #promo-avatar.has-logo { background: #fff; overflow: hidden; padding: 0; }
#mine-avatar img, #promo-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#mine-avatar:not(.has-logo) img, #promo-avatar:not(.has-logo) img { display: none; }

#page-mine .list-item .item-right { white-space: nowrap; flex: none; display: flex; align-items: center; gap: 4px; }


.pick-row {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; margin-bottom: 8px;
  border: 1px solid #E3E8EF; border-radius: 12px; background: #fff; transition: all .18s ease;
}
.pick-row:active { transform: scale(.995); }
.pick-row.selected { border-color: var(--primary); background: #F5F8FF; box-shadow: 0 0 0 2px rgba(47, 111, 235, .08); }
.pick-check {
  width: 20px; height: 20px; flex: none; border: 1.5px solid #C9D2E0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: transparent; font-size: 13px; line-height: 1;
}
.pick-row.selected .pick-check { background: var(--primary); border-color: var(--primary); color: #fff; }
.pick-main { flex: 1; min-width: 0; }
.pick-title { font-size: 14px; font-weight: 600; color: #1F2430; }
.pick-sub {
  margin-top: 2px; font-size: 11.5px; color: #8A909C;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pick-row .badge { flex: none; }

.pick-row.locked { opacity: .6; background: #FAFBFC; }
.pick-row.locked .pick-check { border-style: dashed; color: var(--muted-2); }


.device-info .rm.rm-shared { color: #FED7AA; }


.home-searchbar {
  position: relative; z-index: 12; display: flex; justify-content: flex-end;
  padding: 0 12px 8px;
}
.home-searchbar .hs-inner {
  display: flex; align-items: center; gap: 6px; width: 200px; max-width: 62vw;
  height: 34px; padding: 0 6px 0 10px; background: #fff; border-radius: 9px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.home-searchbar .hs-inner [data-icon], .home-searchbar .hs-inner svg { color: var(--muted-2); flex: none; }
.home-searchbar input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none;
  font-size: 12.5px; color: #1F2430;
}
.home-searchbar input::placeholder { color: #A8AEB8; }
.home-searchbar .hs-btn {
  flex: none; height: 24px; padding: 0 9px; border-radius: 7px; background: var(--primary);
  color: #fff; font-size: 12px;
}

.pick-search { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.pick-search input {
  flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid #E3E8EF;
  border-radius: 10px; background: #fff; font-size: 13px; color: #1F2430; outline: none;
}
.pick-search input:focus { border-color: var(--primary); }
.pick-empty { padding: 18px 0; text-align: center; color: var(--muted-2); font-size: 12.5px; }


.sub-sec-title { margin: 6px 2px 8px; font-size: 13px; font-weight: 600; color: #1F2430; }
.sub-sec-title:not(:first-child) { margin-top: 18px; }
.sub-sec-title em { display: block; margin-top: 3px; font-style: normal; font-weight: 400; font-size: 11.5px; color: var(--muted-2); }


.btn.disabled, #home-batchbar button.disabled { opacity: .45; pointer-events: auto; }
#home-batchbar button.disabled:active { background: none; }
.modal-note.note-warn { background: var(--orange-bg); border: 1px solid var(--orange-line); color: var(--orange); border-radius: 9px; padding: 8px 10px; }
.modal-tile.locked { opacity: .55; }


.realname-bar {
  display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; padding: 9px 12px;
  background: var(--orange-bg); border: 1px solid var(--orange-line); border-radius: 10px; color: var(--orange); font-size: 12.5px;
}
.realname-bar.hidden { display: none; }
.realname-bar [data-icon] { flex: none; }
.realname-bar span { flex: 1; min-width: 0; }
.realname-bar button { flex: none; height: 28px; padding: 0 12px; border-radius: 7px; background: var(--orange); color: #fff; font-size: 12px; }
.tk-warn { padding: 9px 12px; border-radius: 9px; background: var(--orange-bg); border: 1px solid var(--orange-line); color: var(--orange); font-size: 12.5px; margin-bottom: 12px; }
.tk-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tk-check input { width: 16px; height: 16px; margin-top: 1px; flex: none; accent-color: var(--primary); }
.tk-pkg { margin-bottom: 8px; }
.tk-pkg-title { font-size: 12.5px; color: #1F2430; font-weight: 600; margin: 6px 0; }
.tk-pkg-title em { font-style: normal; font-weight: 400; color: #8A909C; margin-left: 6px; font-size: 11.5px; }
.tk-shots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tk-shot {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 7px;
  background: var(--bg-soft); color: var(--muted); font-size: 11.5px;
}
.tk-shot em { font-style: normal; color: var(--primary); }
.tk-shot button { color: var(--muted-2); font-size: 14px; line-height: 1; }


#modal-mask { z-index: 78; }
.modal {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96);
  width: min(92vw, 380px); max-height: 80vh; z-index: 79;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl, 14px);
  box-shadow: var(--shadow-xl, 0 24px 60px rgba(16, 24, 40, .3));
  display: flex; flex-direction: column; overflow: hidden; opacity: 0;
}
.modal.in { opacity: 1; transform: translate(-50%, -50%) scale(1); transition: transform .18s ease, opacity .18s ease; }
.modal.wide { width: min(94vw, 460px); }
.modal-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-close {
  width: 28px; height: 28px; border-radius: var(--radius-xs); background: var(--bg-soft); color: var(--muted-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 15px; height: 15px; }
.modal-body { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 16px 6px; }
.modal-foot { flex: none; padding: 12px 16px calc(14px + var(--safe-b)); border-top: 1px solid var(--line-2); background: var(--bg-subtle, #FAFBFD); }
.modal-foot.hidden { display: none; }

.modal-dev { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-subtle, #FAFBFD); border: 1px solid var(--line-2); border-radius: var(--radius); }
.modal-dev-ico {
  width: 34px; height: 34px; border-radius: var(--radius-s); flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); color: var(--primary);
}
.modal-dev-ico svg { width: 18px; height: 18px; }
.modal-dev-meta { min-width: 0; }
.modal-dev-meta b { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.modal-dev-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted-2); margin-top: 2px; }
.modal-dev-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-disabled); }
.modal-dev-meta .dot.on { background: var(--green); }

.modal-dev-meta .dot.syncing { background: var(--orange); }
.modal-note { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-s); background: var(--bg-tint); color: var(--primary); font-size: 11.5px; line-height: 1.6; }
.modal-note b { font-weight: 700; }

.modal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.modal-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 12px 4px;
  min-height: 76px; border-radius: var(--radius); background: var(--card); color: var(--text);
  font-size: 12px; line-height: 1.25; text-align: center;
  border: 1px solid var(--line); transition: var(--transition);
}
.modal-tile [data-icon] { color: var(--primary); }
.modal-tile svg { width: 19px; height: 19px; }
.modal-tile span { font-weight: 500; }
.modal-tile em { font-style: normal; font-size: 10px; color: var(--muted-2); }
.modal-tile:active { background: var(--bg-hover); border-color: var(--line-accent); }
.modal-tile.locked { opacity: .55; color: var(--muted-2); border-style: dashed; background: var(--bg-subtle, #FAFBFD); }
.modal-tile.locked [data-icon] { color: var(--text-disabled); }

.modal-cmds { margin-top: 14px; }
.modal-cmds-title {
  font-size: 12.5px; color: var(--text); font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.modal-cmds-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--grad); flex: none; }
.modal-cmd-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.modal-cmd {
  display: inline-flex; align-items: center; gap: 5px; height: 38px; min-height: 38px; padding: 0 13px;
  border-radius: var(--radius-s); border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 12.5px;
}
.modal-cmd [data-icon] { color: var(--primary); }
.modal-cmd svg { width: 14px; height: 14px; }
.modal-cmd:active { background: var(--bg-hover); border-color: var(--line-accent); }

.modal-btn-row { display: flex; gap: 8px; }
.modal-btn-row .btn { flex: 1; }
.cdk-info { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); font-size: 12.5px; }
.cdk-info.hidden { display: none; }
.cdk-info.ok { background: var(--green-bg); color: var(--green); }
.cdk-info.err { background: var(--red-bg); color: var(--red); }
.cdk-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.cdk-row span { color: var(--muted-2); flex: none; }
.cdk-info.ok .cdk-row span, .cdk-info.err .cdk-row span { color: inherit; opacity: .75; }
.cdk-row b { font-weight: 600; text-align: right; word-break: break-all; }
.cdk-verdict { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-2); font-weight: 600; line-height: 1.5; }




.cdk-dev-count { font-size: 12px; color: var(--muted-2); padding: 10px 2px 6px; }
.cdk-dev-list {
  border: 1px solid var(--line); border-radius: var(--radius);
  max-height: 46vh; overflow-y: auto; background: var(--card);
}
.cdk-dev-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.cdk-dev-row:last-child { border-bottom: none; }
.cdk-dev-row.on { background: var(--bg-tint); }
.cdk-dev-row.locked { opacity: .5; }                 
.cdk-dev-row input[type="checkbox"] { width: 17px; height: 17px; flex: none; accent-color: var(--primary); }
.cdk-dev-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cdk-dev-main b {
  font-size: 13.5px; font-weight: 600; color: var(--text); word-break: break-all;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.cdk-dev-main em { font-style: normal; font-size: 11.5px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdk-dev-side { flex: none; max-width: 42%; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; text-align: right; }
.cdk-dev-side i { font-style: normal; font-size: 11.5px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cdk-dev-side em { font-style: normal; font-size: 11px; color: var(--muted-2); }
.cdk-dev-tip { margin-top: 10px; padding: 9px 11px; border-radius: var(--radius-s); font-size: 12.5px; line-height: 1.6; }
.cdk-dev-tip.warn { background: var(--orange-bg); border: 1px solid var(--orange-line); color: var(--orange); }
.cdk-dev-tip.ok { background: var(--green-bg); color: var(--green); }
.cdk-dev-tip.err { background: var(--red-bg); color: var(--red); }








.promo-card { margin: 10px 15px 0; padding: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-xs); position: relative; z-index: 2; }
.promo-card h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px; }
.promo-card h3 .promo-tag { font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: var(--grad-soft); color: var(--primary); }
.promo-card .hint { margin-bottom: 8px; }

.promo-link-row { display: flex; gap: 8px; align-items: stretch; }
.promo-link-input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--text);
  background: var(--bg-input); border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  text-overflow: ellipsis; }
.promo-qr-wrap { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.promo-qr { flex: none; width: 132px; height: 132px; padding: 6px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-sizing: content-box; }
.promo-qr-wrap .hint { margin: 0; flex: 1; min-width: 0; }

.promo-stats { margin: 10px 15px 0; }

.promo-bar { height: 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line-2); overflow: hidden; margin: 10px 0; }
.promo-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.promo-kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px;
  border-bottom: 1px solid var(--line-2); }
.promo-kv:last-child { border-bottom: none; }
.promo-kv .k { color: var(--muted-2); flex: none; }
.promo-kv .v { flex: 1; text-align: right; word-break: break-all; color: var(--text); font-weight: 500; }
.promo-kv .v.accent { color: var(--primary); font-weight: 600; }

.promo-line { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.promo-line:last-child { border-bottom: none; }
.promo-line-main { flex: 1; min-width: 0; }
.promo-line-main b { display: block; font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-line-main em { display: block; margin-top: 2px; font-style: normal; font-size: 11.5px; color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.promo-line-amt { flex: none; text-align: right; font-size: 14px; font-weight: 600; color: var(--text); }
.promo-line-amt em { display: block; font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted-2); margin-top: 2px; }

.promo-st { font-style: normal; font-weight: 600; }
.promo-st.ok { color: var(--green); }
.promo-st.warn { color: var(--orange); }
.promo-st.err { color: var(--red); }
.promo-st.mute { color: var(--muted-2); font-weight: 400; }
.promo-more { width: 100%; margin-top: 10px; }
.promo-foot-note { margin: 12px 15px 24px; font-size: 11.5px; color: var(--muted-2); line-height: 1.7; text-align: center; }

.promo-sheet-list { max-height: 52vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }










.promo-head { flex-wrap: wrap; row-gap: 10px; }



.promo-head .avatar { margin-right: 10px; }

.promo-head .user-details { min-width: 0; }
.promo-head .user-details .username { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.promo-head-amt { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; }



.promo-balance { flex: none; text-align: right; line-height: 1.2; }
.promo-balance b { display: block; font-size: 19px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.promo-balance span { display: block; margin-top: 3px; font-size: 11px; color: var(--muted-2); white-space: nowrap; }

.promo-head-wd {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  height: 32px; min-height: 32px; padding: 0 11px; margin: 0;
  border: 1px solid var(--primary); border-radius: 999px; background: var(--card);
  color: var(--primary); font-size: 12.5px; font-weight: 600; white-space: nowrap;
  transition: var(--transition);
}
.promo-head-wd:active { background: var(--primary); color: #fff; }
.promo-head-wd svg { width: 14px; height: 14px; flex: none; }



.promo-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.promo-card-head h3 { margin: 0; flex: 1; min-width: 0; }
.promo-refresh-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  height: 36px; min-height: 36px; padding: 0 12px; margin: 0;
  border: 1px solid var(--line-strong); border-radius: var(--radius-s); background: var(--card);
  color: var(--primary); font-size: 12.5px; font-weight: 500; white-space: nowrap;
  transition: var(--transition);
}
.promo-refresh-btn:active { background: var(--bg-hover); border-color: var(--primary); }
.promo-refresh-btn svg { width: 15px; height: 15px; flex: none; }

.promo-stats-card { margin-top: 6px; }

.promo-stats-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.promo-stats-note { flex: 1; min-width: 0; font-size: 11.5px; color: var(--muted-2); line-height: 1.5; }
.promo-stats-btn { flex: none; min-width: 88px; height: 36px; min-height: 36px; padding: 0 18px; font-size: 13.5px; }

.promo-dl-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 40px; min-height: 40px; margin-top: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--primary);
}
.promo-dl-btn svg { width: 16px; height: 16px; flex: none; }





.promo-sum {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0;
  padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: var(--radius);
}
.promo-sum-item { min-width: 0; }
.promo-sum-item .k { display: block; font-size: 11.5px; color: var(--muted-2); }
.promo-sum-item b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; }
.promo-sum-item b.warn { color: var(--orange); }
.promo-sum-item b.ok { color: var(--green); }

.promo-sort { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 12px; color: var(--muted-2); }
.promo-sort-btn {
  height: 28px; min-height: 28px; padding: 0 10px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12px; white-space: nowrap;
}
.promo-sort-btn.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg, #F2F6FF); font-weight: 600; }












.dl-page { padding: 10px 14px calc(20px + var(--safe-b)); }
.dl-hint { margin: 0 0 8px; }
.dl-sums { margin: 0 0 10px; }
.dl-sort { margin: 0 0 8px; }
.dl-tip { margin: 0 0 4px; font-size: 11px; color: var(--muted-2); }
.dl-tip b { color: var(--muted); }
.dl-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; }


.dl-table .dl-col-num { width: 72px; }
.dl-table th, .dl-table td { padding: 9px 2px; text-align: left; vertical-align: middle; }

.dl-table thead th {
  position: sticky; top: 0; z-index: 2;
  padding-top: 7px; padding-bottom: 7px;
  background: var(--bg); color: var(--muted-2);
  font-size: 11px; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--line);
}


.dl-table td.dl-num {
  font-size: 12px; font-weight: 600; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.dl-table th.dl-num, .dl-table td.dl-num { text-align: right; font-variant-numeric: tabular-nums; }
.dl-table td.dl-num.warn { color: var(--orange); }
.dl-table td.dl-num.ok { color: var(--green); }
.dl-table tbody tr { background: var(--card); }
.dl-table tbody tr.dl-row { cursor: pointer; }
.dl-table tbody tr.dl-row:active { background: var(--bg-hover); }
.dl-row td { border-top: 1px solid var(--line-2); }
.dl-acc-name {
  display: block; font-size: 13px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dl-acc-sub {
  display: block; margin-top: 2px; font-size: 10.5px; color: var(--muted-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.dl-detail td { padding: 0 2px 10px; background: var(--card); }
.dl-detail-box {
  padding: 8px 10px; border-radius: var(--radius-xs); background: var(--bg-soft);
  font-size: 11px; line-height: 1.7; color: var(--muted-2);
}

.dl-basis { margin-top: 12px; }
.dl-basis > summary {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 0; font-size: 12px; color: var(--muted);
  cursor: pointer; list-style: none;
}
.dl-basis > summary::-webkit-details-marker { display: none; }
.dl-basis > summary svg { width: 14px; height: 14px; flex: none; }
.dl-basis-body {
  margin-top: 6px; padding: 10px 12px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--card);
  font-size: 11.5px; line-height: 1.8; color: var(--muted-2);
}
.dl-basis-body b { color: var(--muted); }

.mask {
  position: fixed; inset: 0; background: rgba(16, 20, 28, .45);
  z-index: 80; animation: fadein .18s ease;
}
.mask.dark { background: rgba(16, 20, 28, .55); z-index: 2000; }

.sheet {
  position: fixed; left: 50%; top: 46%; bottom: auto; transform: translate(-50%, -50%); z-index: 81;
  width: min(94vw, 440px); max-width: 94vw; max-height: 80vh; max-height: 78dvh;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl, 14px);
  display: flex; flex-direction: column;
  animation: sheetpop .2s ease; padding-bottom: 0;
  box-shadow: var(--shadow-xl, 0 24px 60px rgba(16, 24, 40, .3)); overflow: hidden;
}
@keyframes sheetpop { from { opacity: 0; transform: translate(-50%, -50%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.sheet-handle { display: none; }
.sheet-head {
  position: relative; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); flex: none;
}
.sheet-title { font-size: 15px; font-weight: 600; color: var(--text); display: inline-block; padding: 0 32px 0 12px; position: relative; }

.sheet-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 14px; border-radius: 2px; background: var(--grad);
}
.sheet-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  color: var(--muted-2); border-radius: var(--radius-xs); background: var(--bg-soft);
}
.sheet-close svg { width: 15px; height: 15px; }
.sheet-close:active { background: var(--line); }
.sheet-body { overflow-y: auto; padding: 14px 16px 16px; }
.sheet-body > .row-card { padding: 0; border: none; box-shadow: none; margin-bottom: 4px; }
.sheet-foot {
  display: flex; gap: 10px; align-items: center; padding: 12px 16px calc(14px + var(--safe-b));
  border-top: 1px solid var(--line-2); background: var(--bg-subtle, #FAFBFD); flex: none;
}
.sheet-foot-left { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }


.sheet.dark {
  background: #fff; border-radius: var(--radius-xl, 14px); z-index: 2001; max-height: 80vh;
  animation: sheetpop .2s ease-out; box-shadow: var(--shadow-xl, 0 24px 60px rgba(16, 24, 40, .3)); padding-bottom: 0;
}
.sheet.dark .sheet-head { padding: 14px 16px; border-bottom: 1px solid var(--line-2); text-align: left; }
.sheet.dark .sheet-title { font-size: 15px; font-weight: 600; color: var(--text); padding: 0 32px 0 12px; }
.sheet.dark .sheet-close {
  width: 28px; height: 28px; right: 12px; background: var(--bg-soft);
  border-radius: var(--radius-xs); color: var(--muted-2);
}
.sheet.dark .sheet-close:active { background: var(--line); transform: translateY(-50%); }
.sheet.dark .sheet-body { padding: 14px 16px; }
.sheet.dark .order-details { padding: 0 0 12px; border-bottom: 1px solid var(--line-2); }
.sheet.dark .detail-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.sheet.dark .detail-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.sheet.dark .detail-item:last-child { border-bottom: none; }
.sheet.dark .detail-label { font-size: 13.5px; color: var(--muted-2); }
.sheet.dark .detail-value { font-size: 13.5px; color: var(--text); font-weight: 500; }
.sheet.dark .detail-item.total { border-top: 1px solid var(--line-2); border-bottom: none; padding-top: 12px; margin-top: 8px; }
.sheet.dark .detail-item.total .detail-value { font-size: 16px; font-weight: 700; color: var(--primary); }
.sheet.dark .payment-methods { padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.sheet.dark .method-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.sheet.dark .method-list { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 0; }
.sheet.dark .pkg-prices { gap: 8px; margin-top: 0; padding: 0; }
.sheet.dark .quantity-selector { margin: 14px 0; }
.sheet.dark .form-label { color: var(--text); font-weight: 500; margin: 0 0 8px; font-size: 13px; }
.sheet.dark .select-tip { color: var(--muted-2); margin: 10px 0 0; }
.sheet.dark .input, .sheet.dark select.input {
  width: 100%; margin: 0; background: var(--bg-input); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius-s);
}
.sheet.dark .row-card { background: transparent; padding: 0; }
.sheet.dark .kv { border-bottom: 1px solid var(--line-2); }
.sheet.dark .kv .k { color: var(--muted-2); }
.sheet.dark .kv .v { color: var(--text); }
.sheet.dark .sheet-foot { margin: 0; padding: 12px 16px calc(14px + var(--safe-b)); background: var(--bg-subtle, #FAFBFD); border-top: 1px solid var(--line-2); }
.sheet.dark .sheet-foot-left { color: var(--muted); font-size: 13.5px; }
.sheet.dark .sheet-foot-left b { color: var(--primary); font-size: 16px; font-weight: 700; }
.sheet.dark .btn-primary {
  height: 44px; border-radius: var(--radius-s); background: var(--grad); color: #fff;
  font-size: 15px; font-weight: 600; box-shadow: 0 2px 8px rgba(47, 111, 235, .28);
}
.sheet.dark .btn-primary:active { background: var(--primary-d); }
.sheet.dark .pay-qr { border-color: var(--line); background: #fff; }


.method-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.method-item {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; transition: var(--transition);
}
.method-item.selected { border-color: var(--primary); background: var(--grad-soft); box-shadow: 0 0 0 2px var(--grad-soft); }
.method-item img, .method-item .mi-ico { width: 34px; height: 34px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.mi-ico { background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; }
.mi-ico svg { width: 18px; height: 18px; }
.method-item .mi-name { font-size: 14px; font-weight: 600; color: var(--text); }
.method-item .mi-sub { font-size: 12px; color: var(--muted-2); }
.method-item .mi-check { margin-left: auto; color: var(--primary); visibility: hidden; }
.method-item .mi-check svg { width: 18px; height: 18px; }
.method-item.selected .mi-check { visibility: visible; }

.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tier {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 6px; text-align: center; transition: var(--transition);
}
.tier.selected { border-color: var(--primary); background: var(--grad-soft); box-shadow: 0 0 0 2px var(--grad-soft); }
.tier .t-num { font-size: 17px; font-weight: 700; color: var(--primary); }
.tier .t-num::before { content: "¥"; font-size: 12px; margin-right: 1px; }
.tier .t-label { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.amount-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 14px; height: 50px; }
.amount-row:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--grad-soft); }
.amount-row .cur { font-size: 18px; font-weight: 700; color: var(--primary); }
.amount-row input { flex: 1; height: 100%; font-size: 16px; font-weight: 600; }

.pay-qr-wrap { text-align: center; padding: 6px 0 2px; }
.pay-qr {
  width: 200px; height: 200px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  padding: 10px; display: inline-flex; align-items: center; justify-content: center; margin: 10px auto;
}
.pay-qr img { width: 100%; height: 100%; display: block; border-radius: var(--radius-xs); }
.pay-amount { font-size: 26px; font-weight: 800; color: var(--primary); margin: 14px 0 4px; }
.pay-tip { font-size: 13px; color: var(--muted-2); margin: 10px 0 15px; }
.pay-countdown { margin-top: 10px; font-size: 12.5px; color: var(--primary); }
.pay-channel-badge { display: inline-block; margin-top: 8px; font-size: 12px; color: #fff; padding: 3px 12px; border-radius: 999px; }
.pay-channel-badge.alipay { background: #1677ff; }
.pay-channel-badge.wechat { background: var(--green); }
.close-button {
  width: 120px; height: 40px; line-height: 40px; background: var(--bg-soft);
  border: 1px solid var(--line-2); border-radius: var(--radius-s); font-size: 14px; color: var(--muted);
  margin: 0 auto; text-align: center;
}
.close-button:active { background: var(--line-2); }


.dialog {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 82;
  width: 340px; max-width: calc(100% - 40px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl, 14px); overflow: hidden;
  box-shadow: var(--shadow-xl, 0 24px 60px rgba(16, 24, 40, .3)); animation: modalpop .18s ease;
}
@keyframes modalpop { from { transform: translate(-50%, -50%) scale(.94); opacity: 0; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.dialog-icon { display: none; }
.dialog-title {
  font-size: 15px; font-weight: 600; color: var(--text); padding: 16px 18px 10px;
  text-align: left; border-bottom: 1px solid var(--line-2);
}
.dialog-msg {
  font-size: 13.5px; color: var(--muted); line-height: 1.7; padding: 12px 18px 16px;
  text-align: left; word-break: break-word; white-space: pre-line; max-height: 56vh; overflow-y: auto;
}
.dialog-btns { display: flex; gap: 10px; border-top: 1px solid var(--line-2); padding: 12px 18px 16px; background: var(--bg-subtle, #FAFBFD); }
.dialog-btns .btn {
  flex: 1; height: 42px; font-size: 14px; font-weight: 500; border-radius: var(--radius-s);
  margin: 0; padding: 0; transition: var(--transition);
}
.dialog-btns .btn-plain { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.dialog-btns .btn-plain:active { background: var(--bg-soft); }
.dialog-btns .btn-primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.dialog-btns .btn-primary:active { background: var(--primary-d); }

.dialog-btns .btn-danger { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }
.dialog-btns .btn-danger:active:not(:disabled) { background: var(--red-d); border-color: var(--red-d); }
.dialog-btns .btn-danger:disabled { background: var(--red); border-color: var(--red); color: #fff; opacity: .45; cursor: not-allowed; }
.dialog-msg .hint { margin-bottom: 0; }


.toast {
  position: fixed; left: 50%; top: 14vh; transform: translateX(-50%); z-index: 99;
  background: rgba(20, 24, 32, .92); color: #fff; border-radius: var(--radius-s); padding: 10px 18px;
  font-size: 13px; max-width: 84%; text-align: center; box-shadow: 0 8px 24px rgba(16, 24, 40, .28);
  animation: toastin .2s ease; white-space: pre-line; line-height: 1.6;
}
@keyframes toastin { from { transform: translate(-50%, -8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.toast.ok { background: rgba(26, 127, 75, .96); }
.toast.err { background: rgba(214, 69, 69, .96); }
.toast.warn { background: rgba(194, 65, 12, .96); }
.loading {
  position: fixed; inset: 0; z-index: 95; background: rgba(245, 247, 250, .62);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.loading .spinner {
  margin: 0; width: 26px; height: 26px; border: 2.5px solid var(--grad-soft); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite; background: none;
}
.loading .spinner::before, .loading .spinner::after { content: none; }
.loading #loading-text { margin-top: 16px; color: var(--primary); font-size: 13.5px; font-weight: 500; }

.skeleton { border-radius: var(--radius-s); background: linear-gradient(90deg, #EEF1F6 25%, #E3E8EF 50%, #EEF1F6 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 521px) {
  .page-scroll { padding-left: 14px; padding-right: 14px; }
  .store-dark .page-scroll { padding-left: 0; padding-right: 0; }
}







#page-store.store-pc { background: #F5F7FA; }
.store-pc .store-head {
  display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 12px;
  background: #EEF2F8; border-bottom: 1px solid #D8DFEA;
  position: sticky; top: 0; z-index: 5; flex: none;
}
.store-pc .store-head .icon-btn { color: #1F2430; font-size: 20px; }
.store-pc .store-title { flex: 1; font-size: 16px; font-weight: 700; color: #1F2430; }
.store-pc .balance-chip {
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.store-pc .store-scroll {
  padding: 14px 12px 170px; flex: 1; overflow-y: auto;
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 24, 40, .05) 1px, transparent 0);
  background-size: 20px 20px;
}
.store-pc .pcard {
  background: #fff; border: 1px solid #E3E8EF; border-radius: 14px;
  padding: 16px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.store-pc .pcard h3 {
  margin: 0 0 6px; font-size: 14.5px; font-weight: 600; color: #1F2430;
  display: flex; align-items: center; gap: 9px;
}
.store-pc .pcard h3::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(135deg, var(--primary), #1E5BD6); flex: none;
}
.store-pc .hint { color: #8A909C; font-size: 12.5px; margin-bottom: 12px; line-height: 1.5; }
.store-pc .tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: #F3F5F9; color: #5A6272; font-size: 10.5px; margin-left: 6px;
}
.store-pc .tag.accent { background: rgba(47, 111, 235, .08); color: var(--primary); }


.store-pc .pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.store-pc .ptile {
  border: 1px solid #E3E8EF; border-radius: 10px; padding: 12px;
  background: #fff; cursor: pointer; transition: box-shadow .15s, border-color .15s, transform .15s;
}
.store-pc .ptile:active { transform: scale(.98); }
.store-pc .ptile.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 111, 235, .08), 0 2px 8px rgba(47, 111, 235, .12);
}
.store-pc .ptile-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.store-pc .pt-ico {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: #F3F5F9; color: #5A6272; font-size: 16px;
}
.store-pc .ptile.active .pt-ico { background: rgba(47, 111, 235, .08); color: var(--primary); }
.store-pc .ptile-head .nm { font-size: 13.5px; font-weight: 600; color: #1F2430; }
.store-pc .ptile .sub { color: #8A909C; font-size: 11px; margin-top: 3px; line-height: 1.4; }
.store-pc .ptile .stock {
  display: inline-flex; align-items: center; gap: 6px;
  color: #1A7F4B; font-size: 11.5px; margin-top: 6px;
}
.store-pc .ptile .stock::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #1A7F4B; box-shadow: 0 0 0 3px #E5F7EE;
}
.store-pc .ptile .stock.no { color: #D64545; }
.store-pc .ptile .stock.no::before { background: #D64545; box-shadow: 0 0 0 3px #FDECEC; }


.store-pc .specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.store-pc .specs > div {
  display: flex; align-items: center; gap: 8px; padding: 9px 12px;
  background: linear-gradient(135deg, #F8FAFD 0%, #F1F5FB 100%);
  border: 1px solid #EEF1F6; border-radius: 8px; font-size: 12px;
}
.store-pc .specs > div .k { color: #8A909C; flex: none; }
.store-pc .specs > div .v {
  margin-left: auto; color: #1F2430; font-weight: 600; text-align: right;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.store-pc .specs > div .v.accent { color: var(--primary); }



.store-pc .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.store-pc .ptile.center { text-align: center; padding: 12px 6px; }
.store-pc .ptile.center .t { font-size: 12px; color: #8A909C; }
.store-pc .ptile.center .p { font-size: 17px; font-weight: 700; margin-top: 4px; color: #1F2430; }
.store-pc .ptile.center.active .p { color: var(--primary); }


.store-pc .qty-row { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.store-pc .qty-row .lbl { font-size: 13px; color: #1F2430; font-weight: 600; }
.store-pc .qty-ctl { display: inline-flex; align-items: center; border: 1px solid #E3E8EF; border-radius: 8px; overflow: hidden; background: #fff; }
.store-pc .qty-ctl button { width: 34px; height: 32px; border: 0; background: #fff; color: var(--primary); font-size: 16px; line-height: 1; }
.store-pc .qty-ctl button:active { background: #F0F5FF; }
.store-pc .qty-ctl .qty-num { min-width: 38px; text-align: center; font-size: 14px; font-weight: 600; color: #1F2430; }

.store-pc .plan-preview {
  display: block; margin: 12px auto 14px; width: auto; max-width: 100%; max-height: 220px;
  object-fit: contain; border: 1px solid #E3E8EF; border-radius: 10px; background: #fff;
}

.store-pc .pay-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.store-pc .pay {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 50px;
  border: 1px solid #E3E8EF; border-radius: 10px; background: #fff; transition: all .2s ease;
}
.store-pc .pay.active { border-color: var(--primary); background: #F5F8FF; box-shadow: 0 0 0 2px rgba(47, 111, 235, .08); }
.store-pc .pay:active { transform: scale(.99); }
.store-pc .pay .lb {
  font-size: 13.5px; font-weight: 600; color: #1F2430; line-height: 1.35;
  min-width: 0; word-break: break-word;
}
.store-pc .pay .scene { margin-left: auto; flex: none; font-size: 11.5px; color: #8A909C; white-space: nowrap; }

.store-pc .buy-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.store-pc .buy-row .total { font-size: 13px; color: #5A6272; }
.store-pc .buy-row .total b { color: var(--primary); font-size: 18px; margin-left: 2px; }
.store-pc .buy-row .btn { margin-left: auto; padding: 10px 22px; border-radius: 10px; }


.store-pc .purchase-notice .notice-item { font-size: 12.5px; color: #5A6272; line-height: 1.9; }


.store-foot {
  background: #fff; border-top: 1px solid #E3E8EF;
  box-shadow: 0 -4px 16px rgba(16, 24, 40, .06);
}
.store-foot .left { min-width: 0; flex: 1; }
.store-foot .left .pay-intro { color: #1F2430; font-weight: 500; }
.store-foot .left .price-wrap .symbol { color: var(--primary); }
.store-foot .left .price-wrap .price { color: var(--primary); font-size: 18px; font-weight: 700; }
.store-foot .left .price-intro { color: #8A909C; }
.store-foot .right { flex: none; }
.store-foot .right .btn {
  width: auto; min-width: 92px; height: 38px; line-height: 38px; padding: 0 16px;
  white-space: nowrap; font-size: 14px;
  background: linear-gradient(135deg, var(--primary), #1E5BD6); color: #fff; border: none;
  border-radius: 10px; font-weight: 600; text-align: center;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .28);
}
.store-foot .right .btn:active { background: linear-gradient(135deg, #1E5BD6, #1749AC); }
.store-foot .right .btn.disabled { background: #C9D3E4; color: #7A8699; box-shadow: none; }


.sheet.pc { background: #F5F7FA; }
.sheet.pc .sheet-head { border-bottom: 1px solid #E3E8EF; background: #fff; }
.sheet.pc .sheet-title { color: #1F2430; font-weight: 600; }
.sheet.pc .sheet-foot { background: #fff; border-top: 1px solid #E3E8EF; }
.sheet.pc .btn-primary {
  background: linear-gradient(135deg, var(--primary), #1E5BD6); color: #fff; border: none;
  height: 42px; border-radius: 10px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(47, 111, 235, .28);
}
.sheet.pc .btn-primary:active { background: linear-gradient(135deg, #1E5BD6, #1749AC); }
.sheet.pc .btn-plain { background: #fff; border: 1px solid #E3E8EF; color: #5A6272; }


.sheet.pc .order-details { padding: 4px 2px 6px; }
.sheet.pc .detail-title { font-size: 14px; font-weight: 600; color: #1F2430; margin-bottom: 10px; }
.sheet.pc .detail-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid #EEF1F6;
}
.sheet.pc .detail-item:last-child { border-bottom: none; }
.sheet.pc .detail-label { font-size: 13.5px; color: #8A909C; }
.sheet.pc .detail-value { font-size: 13.5px; color: #1F2430; }
.sheet.pc .detail-item.total { border-top: 1px solid #E3E8EF; border-bottom: none; padding-top: 12px; margin-top: 8px; }
.sheet.pc .detail-item.total .detail-value { font-size: 18px; font-weight: 700; color: var(--primary); }


.sheet.pc .payment-methods { margin-top: 14px; }
.sheet.pc .method-title { font-size: 14px; font-weight: 600; color: #1F2430; margin-bottom: 10px; }
.sheet.pc .pkg-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet.pc .price-chip {
  background: #fff; border: 1px solid #E3E8EF; border-radius: 10px;
  padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 3px;
}
.sheet.pc .price-chip.selected {
  border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 2px rgba(47, 111, 235, .08);
}
.sheet.pc .price-chip .pc-name { font-size: 12.5px; font-weight: 600; color: #1F2430; }
.sheet.pc .price-chip .pc-price { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 0; }
.sheet.pc .price-chip .pc-unit { font-size: 10px; color: #8A909C; }


.sheet.pc .quantity-selector { margin: 14px 0 6px; display: flex; align-items: center; justify-content: space-between; }
.sheet.pc .quantity-title { font-size: 13.5px; color: #1F2430; font-weight: 600; }
.sheet.pc .quantity-control { background: #fff; border: 1px solid #E3E8EF; border-radius: 8px; }
.sheet.pc .control-btn { background: #fff; color: var(--primary); }
.sheet.pc .control-btn:active { background: #F0F5FF; }
.sheet.pc .quantity-input { color: #1F2430; }
.sheet.pc .form-label { color: #1F2430; font-weight: 600; }
.sheet.pc .input { background: #fff; border-color: #E3E8EF; color: #1F2430; }
.sheet.pc .select-tip { color: #8A909C; }


.sheet.pc .section-title { font-size: 14px; font-weight: 600; color: #1F2430; }
.sheet.pc .tier { background: #fff; border: 1px solid #E3E8EF; border-radius: 10px; }
.sheet.pc .tier.selected { border-color: var(--primary); background: rgba(47, 111, 235, .05); }
.sheet.pc .tier .t-num { color: #1F2430; }
.sheet.pc .tier.selected .t-num { color: var(--primary); }
.sheet.pc .tier .t-label { color: #8A909C; }
.sheet.pc .amount-row { background: #fff; border: 1px solid #E3E8EF; border-radius: 10px; }


.sheet.pc .pay-qr-wrap { padding: 4px 0; }
.sheet.pc .pay-qr { border: 1px solid #E3E8EF; background: #fff; }
.sheet.pc .pay-amount { color: var(--primary); }
.sheet.pc .pay-tip { color: #8A909C; }
.sheet.pc .pay-countdown { color: var(--primary); }


#mine-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
#mine-avatar:not(.has-logo) img { display: none; }
.home-searchbar .hs-inner:focus-within {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 111, 235, .10);
}
.home-searchbar .hs-clear {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft);
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
}
.home-searchbar .hs-clear:active { background: var(--line); }
.home-searchbar .hs-clear svg { width: 13px; height: 13px; }
.home-searchbar .hs-btn:active { opacity: .85; }
.store-pc .pgrid .ptile .sub {
  flex: 1 1 auto;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.store-pc .pgrid .ptile .stock { margin-top: auto; }
.store-pc .pgrid::-webkit-scrollbar { display: none; }
.store-pc .pgrid > .ptile {
  

  

  flex: 0 0 auto; width: 42%; min-width: 120px;
  box-sizing: border-box;
}
.store-pc .pgrid-wrap.at-end::after { opacity: 0; }
.store-pc .pgrid-more .pm-txt { display: none; }
.store-pc .pgrid-more svg { width: 15px; height: 15px; }
.store-pc .pgrid-more:active { transform: translateY(-50%) scale(.94); }
.store-pc .pgrid-more.hidden { display: none; }
.store-pc .pgrid .pt-ico { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; }
.store-pc .pgrid .pt-ico svg { width: 14px; height: 14px; }
.store-pc .pgrid .ptile-head .nm {
  flex: 1 1 100%; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px;
}
.store-pc .pgrid .ptile-head .tag {
  position: absolute; right: 6px; top: 6px; flex: none;
  font-size: 8.5px; padding: 0 4px; line-height: 15px; border-radius: 4px;
}




#page-store.store-page {
  position: fixed; top: 0; bottom: var(--tabbar-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; z-index: 60; background: var(--bg);
  
  display: flex; flex-direction: column; overflow: hidden; animation: none;
}
.control-header .ch-name { cursor: pointer; font-size: 14px; font-weight: 700; letter-spacing: .2px; }
.control-header .ch-right { display: flex; align-items: center; flex: none; gap: 6px; }
.ch-quality {
  padding: 2px 7px; background: var(--card); border-radius: 5px;
  border: 1px solid var(--line); font-size: 10.5px; line-height: 1.55; color: var(--muted);
  white-space: nowrap;
}
.ch-ping {
  font-size: 10.5px; white-space: nowrap; flex: none;
  font-variant-numeric: tabular-nums;
}
.ch-fps {
  font-size: 10.5px; color: var(--muted); text-align: right;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.home-searchbar {
  position: relative; z-index: 12; display: flex; justify-content: flex-end;
  padding: 0 12px 10px;
}
.home-searchbar .hs-inner {
  display: flex; align-items: center; gap: 8px; width: 100%;
  height: 40px; padding: 0 6px 0 12px; background: #fff; border-radius: 10px;
  border: 1px solid #EEF1F6; box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
  transition: var(--transition);
}
.home-searchbar input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none;
  font-size: 13.5px; color: #1F2430;
}
.home-searchbar input::placeholder { color: #A8AEB8; font-size: 13.5px; }
.home-searchbar .hs-btn {
  flex: none; height: 30px; padding: 0 14px; border-radius: 8px; background: var(--primary);
  color: #fff; font-size: 13px; font-weight: 600;
}
.method-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.method-item {
  flex: 0 1 calc(50% - 5px); min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 8px; transition: var(--transition);
}
.method-item img, .method-item .mi-ico { width: 32px; height: 32px; border-radius: var(--radius-s); object-fit: cover; flex: none; }
.method-item .mi-name { font-size: 13.5px; font-weight: 600; color: var(--text); }
.method-item .mi-sub { font-size: 11px; color: var(--muted-2); }
.method-item .mi-check { position: absolute; right: 6px; top: 6px; color: var(--primary); visibility: hidden; }
.method-item .mi-check svg { width: 16px; height: 16px; }
.store-pc .pgrid {
  display: flex; flex-direction: row; flex-wrap: nowrap; gap: 12px;
  min-width: 0; max-width: 100%;
  


  overflow-x: auto; overflow-y: hidden;
  

  touch-action: auto;
  overscroll-behavior-x: contain;
  


  scroll-snap-type: none;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.store-pc .pay-list { display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.store-pc .pay {
  flex: 0 1 calc(50% - 5px); min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 12px 10px; text-align: center;
  border: 1px solid #E3E8EF; border-radius: 10px; background: #fff; transition: all .2s ease;
}
.store-pc .pay .scene { margin-left: 0; flex: none; font-size: 11.5px; color: #8A909C; white-space: nowrap; }


.cdk-page { padding: 0 2px; }
.cdk-page .cdk-info { margin-top: 12px; }
.cdk-page-bar { display: flex; gap: 10px; margin-top: 16px; }
.cdk-page-bar .btn { flex: 1; }
.cdk-page-bar .flex1 { flex: 1; }


.cdk-rules {
  margin-top: 18px; padding: 12px 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cdk-rules-title {
  font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.cdk-rules-title::before { content: ''; width: 3px; height: 13px; border-radius: 2px; background: var(--primary); }
.cdk-rules ol { margin: 0; padding-left: 18px; }
.cdk-rules li { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.cdk-rules li b { color: var(--text); font-weight: 600; }
.cdk-rules li + li { margin-top: 2px; }















.tkchat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.tkchat-head {
  position: relative;   
  flex: 0 0 auto;       
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--card);
  border-bottom: 1px solid var(--line-2);
}
.tkchat-banner {
  margin: 10px 14px 0; padding: 9px 12px;
  background: var(--green-bg); border: 1px solid #BFE3CE;
  border-radius: 8px; color: var(--green); font-size: 12px; line-height: 1.6;
}

.tkchat-banner.closed {
  background: #FDF1EF; border-color: #F0CBC5; color: #C23A2C;
}

.tkchat.closed .tkchat-input textarea,
#tk-chat.closed .tkchat-input textarea {
  background: var(--line-2); color: var(--text-3, #9aa0a8); cursor: not-allowed;
}


.tkmsg-recall {
  align-self: flex-end; margin-top: 3px; padding: 0 2px; border: 0; background: transparent;
  color: var(--text-3, #9aa0a8); font: inherit; font-size: 11px; cursor: pointer; text-decoration: underline;
}
.tkmsg-recall:hover { color: #C23A2C; }
.tkmsg-recall:disabled { opacity: .5; }


.tkmsg.recalled .tkmsg-bubble,
.tkmsg.me.recalled .tkmsg-bubble,
.tkmsg.from-staff.recalled .tkmsg-bubble,
.tkmsg.from-admin.recalled .tkmsg-bubble,
.tkmsg.from-supplier.recalled .tkmsg-bubble {
  background: var(--bg) !important;
  border-color: var(--line-2) !important;
  color: var(--text-3, #9aa0a8) !important;
  font-style: italic; box-shadow: none !important;
}
.tkmsg.recalled .tkmsg-head { opacity: .7; }
.tkchat-body {
  flex: 1 1 auto; overflow-y: auto; min-height: 0;
  padding: 12px 14px 6px; background: var(--bg);
  display: flex; flex-direction: column; gap: 12px;
}




.tk-rate-wrap:empty { display: none; }
.tk-rate-wrap { padding: 8px 14px 0; background: var(--bg); }
.tk-rate {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px;
}
.tk-rate-t { font-size: 13px; font-weight: 600; color: var(--text); }
.tk-rate-stars { display: flex; gap: 8px; }
.tk-rate-star {
  width: 38px; height: 38px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--card);
  color: #c9ced9; font-size: 22px; line-height: 1; cursor: pointer;
}
.tk-rate-star.on { color: #f5a623; border-color: #f6d79a; background: #fffaf0; }
.tk-rate-lb { font-size: 12px; color: var(--muted-2); min-height: 16px; }
.tk-rate-lb.on { color: #b7791f; font-weight: 600; }
.tk-rate textarea {
  width: 100%; box-sizing: border-box; resize: none;
  border: 1px solid var(--line-2); border-radius: 8px;
  padding: 8px 10px; font: inherit; font-size: 13px; background: var(--card);
}
.tk-rate textarea:focus { outline: 0; border-color: var(--primary); }
.tk-rate-row { display: flex; align-items: center; gap: 8px; }
.tk-rate-row .spacer { flex: 1 1 auto; }
.tk-rate-row .btn { flex: none; padding: 8px 14px; }
.tk-rate-thanks {
  flex-direction: row; align-items: center; gap: 10px;
  background: #fffaf0; border-color: #f6e3bd;
  font-size: 13px; color: var(--text); padding: 10px 12px;
}
.tk-rate-thanks-stars { color: #f5a623; font-size: 15px; letter-spacing: 1px; }
.tkmsg { display: flex; flex-direction: column; max-width: 82%; }

.tkmsg.me { align-self: flex-end; align-items: flex-end; }
.tkmsg.them { align-self: flex-start; align-items: flex-start; }
.tkmsg-head { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 11px; color: var(--muted-2); margin-bottom: 4px; }
.tkmsg.me .tkmsg-head { justify-content: flex-end; }
.tkmsg-name { font-weight: 600; }
.tkmsg-time { color: var(--muted-2); font-weight: 400; }
.tkmsg-badge {
  display: inline-block; padding: 0 7px; border-radius: 20px;
  font-size: 10.5px; line-height: 17px; font-weight: 600; letter-spacing: .2px;
}

.tkmsg-badge.staff { background: #0f6b5f; color: #fff; }
.tkmsg-badge.supplier { background: #0e7490; color: #fff; }


.tkmsg-badge.auto { background: #eef1f5; color: #5b6478; box-shadow: inset 0 0 0 1px #dbe1e8; }
.tkmsg-tag-auto { background: #eef1f5; color: #5b6478; box-shadow: inset 0 0 0 1px #dbe1e8; }
.tkmsg-bubble {
  padding: 9px 12px; border-radius: 10px;
  font-size: 13.5px; line-height: 1.6;
  white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere;
}
.tkmsg.them .tkmsg-bubble { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.tkmsg.me .tkmsg-bubble { background: var(--primary); border: 1px solid var(--primary); color: #fff; }





.tkmsg.from-staff .tkmsg-bubble {
  background: linear-gradient(135deg, #0f6b5f 0%, #0c7f6d 100%);
  border: 1px solid #0b5f57; color: #fff;
  box-shadow: 0 2px 10px rgba(15, 107, 95, .18);
}
.tkmsg.from-staff .tkmsg-name { color: #0b5f57; }
.tkmsg.from-admin .tkmsg-bubble {
  background: #f5f0ff; border: 1px solid #d8c7f7; border-left: 3px solid #6d28d9;
  color: #3d2a70;
}
.tkmsg.from-admin .tkmsg-name { color: #5b21b6; }
.tkmsg.from-supplier .tkmsg-bubble {
  background: #e8fbff; border: 1px solid #a9e7f3; border-left: 3px solid #0e7490;
  color: #0b5566;
}
.tkmsg.from-supplier .tkmsg-name { color: #0e7490; }
.tkmsg-tag {
  display: inline-block; font-size: 11px;
  background: var(--blue-bg); color: var(--primary);
  border-radius: 4px; padding: 1px 6px;
}
.tkmsg.me .tkmsg-tag { background: rgba(255,255,255,.22); color: #fff; }
.tkmsg .tk-shotrow {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px;
}

.tkmsg .tk-shotrow .tk-shot {
  width: 92px; height: 92px; padding: 0; border-radius: 8px;
  overflow: hidden; background: var(--line-3);
  display: flex; align-items: center; justify-content: center;
}
.tkmsg .tk-shotrow .tk-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in;
}
.tkmsg.me .tk-shotrow { justify-content: flex-end; }







.tkmsg.has-av {
  flex-direction: row; align-items: flex-start; gap: 7px;
  
  max-width: 90%;
}
.tkmsg.has-av.me { flex-direction: row-reverse; align-items: flex-start; }
.tkmsg-main { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.tkmsg.has-av.me .tkmsg-main { align-items: flex-end; }
.tkmsg-av {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; user-select: none;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  color: #fff; background: #7d8aa3;
}
.tkmsg-av img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.tkmsg.from-staff .tkmsg-av { background: #0f6b5f; }
.tkmsg.from-admin .tkmsg-av { background: #5b21b6; }
.tkmsg.from-supplier .tkmsg-av { background: #0e7490; }
.tkmsg.me .tkmsg-av { background: var(--primary, #2f6feb); }
.tkmsg.auto .tkmsg-av { background: #eef1f5; color: #5b6478; box-shadow: inset 0 0 0 1px #dbe1e8; }
.tkmsg.recalled .tkmsg-av { opacity: .55; }

.tkmsg-bubble { -webkit-touch-callout: none; }




.tk-sheet-mask {
  position: fixed; inset: 0; z-index: 9600;
  background: rgba(12, 18, 28, .38);
  display: flex; align-items: flex-end;
  animation: tkSheetIn .12s ease-out;
}
@keyframes tkSheetIn { from { opacity: 0; } to { opacity: 1; } }
.tk-sheet {
  width: 100%; background: var(--card, #fff);
  border-radius: 14px 14px 0 0;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 28px rgba(16, 24, 40, .18);
  display: flex; flex-direction: column; gap: 1px;
}
.tk-sheet-item {
  width: 100%; padding: 15px 12px; border: 0; background: transparent;
  border-radius: 10px; font: inherit; font-size: 15px;
  color: var(--text, #1f2733); text-align: center; cursor: pointer;
}
.tk-sheet-item:active { background: var(--line-3, #eef1f5); }
.tk-sheet-item.danger { color: #c23a2c; }
.tk-sheet-item.cancel { margin-top: 5px; color: var(--muted-2, #7d8aa3); }

.tkchat-input {
  border-top: 1px solid var(--line-2); background: var(--card);
  padding: 8px 12px 10px;
}
.tkchat-input .select-tip { padding: 4px 2px 0; margin: 0; }
.tkchat-stage { display: flex; flex-wrap: wrap; gap: 6px; }
.tkchat-stage:not(:empty) { margin-bottom: 7px; }
.tkchat-bar { display: flex; align-items: flex-end; gap: 7px; }
.tkchat-bar textarea {
  flex: 1 1 auto; min-width: 0; resize: none; line-height: 1.5;
  font: inherit; font-size: 13.5px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-input); color: var(--text);
  max-height: 96px;
}
.tkchat-bar textarea:focus { outline: 0; border-color: var(--primary); }
.tkchat-bar .btn { flex: none; padding: 9px 14px; }













.kefu-bar {
  margin: 10px 12px 0; padding: 9px 12px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.65;
  border: 1px solid var(--line); background: var(--bg-sub, #f6f8fb); color: var(--text-2, #5b6478);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
}
.kefu-bar .kb-dot { width: 7px; height: 7px; border-radius: 50%; background: #1fa463; flex: 0 0 auto; }
.kefu-bar.on { background: #eefaf2; border-color: #c6ecd6; color: #18794e; }
.kefu-bar.busy { background: #fff8e8; border-color: #f4e0b0; color: #8a5a06; }
.kefu-bar.busy .kb-dot { background: #d99419; }
.kefu-bar.away { background: #fff6ed; border-color: #f5d6ba; color: #9a4c0c; }
.kefu-bar.away b { color: #8a3f06; }
.kefu-bar .kb-sub { display: block; width: 100%; opacity: .85; font-size: 11.5px; }

.kefu-bar.note { background: #f4f6f9; border-color: #e2e8ef; color: #5b6478; font-size: 11.5px; }


.tk-filter { padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.tk-filter .input {
  width: 100%; padding: 8px 11px; font: inherit; font-size: 13px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-input, #fff); color: var(--text);
}
.tk-filter .input:focus { outline: 0; border-color: var(--primary); }
.tk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-chip {
  border: 1px solid var(--line); background: var(--bg-sub, #f6f8fb);
  color: var(--text-2, #5b6478); font: inherit; font-size: 12px;
  padding: 4px 11px; border-radius: 20px; cursor: pointer;
}
.tk-chip.on { background: var(--primary, #2f6feb); border-color: var(--primary, #2f6feb); color: #fff; }


.tkmsg-st { font-size: 10.5px; color: var(--text-3, #9aa0a8); text-align: right; margin-top: 3px; }
.tkmsg-st.read { color: var(--primary, #2f6feb); }


.tabbar .tab { position: relative; }
.tab-dot {
  position: absolute; top: 3px; right: 50%; transform: translateX(26px);
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 20px; background: #e5484d; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-weight: 600;
}


.tk-unread {
  display: inline-block; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 20px; background: #e5484d; color: #fff;
  font-size: 10.5px; line-height: 16px; text-align: center; font-weight: 600;
  vertical-align: middle;
}
.tkmsg-imgnote { font-size: 11.5px; color: var(--text-3, #9aa0a8); margin-top: 3px; }






.tk-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.tk-foot .mini-btn { flex: none; }
.tk-foot .select-tip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tk-sound-arm {
  position: fixed; right: 12px; bottom: calc(var(--tabbar-h, 56px) + 14px);
  z-index: 55;
  height: 30px; padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(20, 24, 32, .86);
  color: #fff; font-size: 12px; line-height: 28px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  cursor: pointer;
}
.tk-sound-arm:active { transform: scale(.98); }







.fb-form-card{
  margin: 12px; padding: 16px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); box-shadow: var(--shadow-sm, 0 1px 3px rgba(16,24,40,.06));
}
.fb-form-card .form-label{ margin-top: 14px; }
.fb-form-card .form-label:first-of-type{ margin-top: 0; }
.fb-type-chips{ margin-top: 4px; }
.fb-type-chips .price-chip{ flex: 1 1 calc(50% - 4px); min-width: 0; text-align: center; }
.fb-textarea{
  width: 100%; box-sizing: border-box; min-height: 132px;
  padding: 11px 12px; line-height: 1.7; resize: vertical;
  border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg-input); color: var(--text); font: inherit; font-size: 13px;
  outline: 0;
}
.fb-textarea:focus{ border-color: var(--primary); box-shadow: 0 0 0 3px var(--grad-soft); }
.fb-count{ margin-top: 4px; text-align: right; font-size: 11px; color: var(--muted-2); }
.fb-upload-btn{ margin-top: 8px; }
.fb-submit{ margin-top: 18px; }
.fb-thanks{
  display: flex; flex-direction: column; gap: 3px;
  margin-bottom: 14px; padding: 11px 13px;
  border: 1px solid #BFE3CE; border-radius: var(--radius);
  background: var(--green-bg); color: var(--green); font-size: 12.5px;
}
.fb-thanks b{ font-size: 13px; }
.fb-thanks span{ color: #2F7A52; font-size: 11.5px; }
.fb-thanks.fb-thanks-in{ animation: fbThanksIn .28s ease; }
@keyframes fbThanksIn{ from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none} }

.fb-list-title{ margin: 16px 14px 8px; }
#fb-list{ padding: 0 12px 18px; display: flex; flex-direction: column; gap: 10px; }
.fb-item{
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 12px 13px;
}
.fb-item-hd{ display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fb-id{ font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: var(--muted-2); }
.fb-item-hd .spacer{ flex: 1 1 auto; }
.fb-time{ font-size: 11px; color: var(--muted-2); white-space: nowrap; }
.fb-item-type{ font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 3px; }
.fb-item-content{ font-size: 13px; line-height: 1.7; color: var(--text); white-space: pre-wrap; word-break: break-word; }
.fb-item-imgs{ display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.fb-item-img{
  width: 68px; height: 68px; border: 1px solid var(--line); border-radius: var(--radius-s);
  overflow: hidden; background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
}
.fb-item-img img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-img-bad{ font-size: 10px; color: var(--muted-2); padding: 4px; text-align: center; }
.fb-reply{
  margin-top: 9px; padding: 8px 10px;
  border: 1px solid #D9E6FD; border-left: 3px solid var(--primary);
  border-radius: var(--radius-s); background: #F7FAFF;
}
.fb-reply-hd{ display: flex; align-items: baseline; gap: 7px; margin-bottom: 3px; font-size: 11px; color: var(--muted-2); }
.fb-reply-hd b{ font-size: 11.5px; color: var(--primary); }
.fb-reply-body{ font-size: 12.5px; line-height: 1.65; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.fb-wait{ margin-top: 8px; font-size: 11px; color: var(--muted-2); }









.tk-cp-wrap {
  position: absolute; top: 7px; right: 14px; z-index: 6;
  display: inline-flex; align-items: center;
}
.tkchat-head.tk-has-cp {
  padding-right: calc(var(--tk-cp-w, 80px) + 24px);
  
  min-height: calc(var(--tk-cp-h, 44px) + 14px);
}
.tk-cp-btn {
  border-color: rgba(229, 77, 77, .35); color: var(--red); background: #FDF1EF;
}
.tk-cp-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--muted-2);
  white-space: nowrap;
}
.tk-cp-tag.warn { color: #9a641c; border-color: #eeddba; background: #fdf6e8; }
.tk-cp-tag.err { color: #c23a2c; border-color: #f0cbc5; background: #fdf1ef; }
.tk-cp-tag.ok { color: #178a52; border-color: #c2e7d1; background: #edf8f1; }


.tk-cp-kv {
  display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: baseline;
  padding: 9px 11px; margin-bottom: 4px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--bg-soft);
}
.tk-cp-kv > div { display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.tk-cp-kv span { color: var(--muted-2); font-size: 11.5px; }
.tk-cp-kv b { color: var(--text); }
.tk-cp-lb { font-size: 12px; color: var(--muted-2); margin: 12px 0 6px; font-weight: 600; }
.tk-cp-types { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-cp-type {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; color: var(--text); padding: 6px 11px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
}
.tk-cp-type input { accent-color: var(--primary); margin: 0; }
.tk-cp-text {
  width: 100%; box-sizing: border-box; resize: vertical;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-input); color: var(--text);
  font: inherit; font-size: 13px; line-height: 1.75; min-height: 96px;
}
.tk-cp-text:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,111,235,.12); }
.tk-cp-imgs { display: flex; gap: 9px; flex-wrap: wrap; }
.tk-cp-img { position: relative; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.tk-cp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-cp-img-del {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; line-height: 1;
  border: 0; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 13px;
}
.tk-cp button.btn-block { margin-top: 8px; }
.select-tip.err { color: var(--red); }



.device-card .device-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.device-card .device-screen .dc-preview { position: relative; z-index: 1; }


.mine-service {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border: 0; margin: 0 0 10px; padding: 14px 16px; box-sizing: border-box;
  background: var(--card); border-radius: var(--radius, 14px);
  box-shadow: 0 6px 18px rgba(20, 25, 40, .05);
}
.mine-service .ms-ico { width: 46px; height: 46px; border-radius: 12px; flex: none; background: #EEF3FF; color: #2F6BFF; display: flex; align-items: center; justify-content: center; }
.mine-service .ms-ico svg { width: 22px; height: 22px; }
.mine-service .ms-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mine-service .ms-main b { font-size: 15px; font-weight: 600; color: #242A33; }
.mine-service .ms-main em { font-style: normal; font-size: 12px; color: #8A9099; }
.mine-service .ms-arrow { flex: none; color: #C2C7D0; display: flex; align-items: center; }


.control-side { flex: 0 0 50px; width: 50px; min-width: 50px; padding: 6px 0; }
.control-side .side-group { gap: 4px; }
.control-side .sd { max-width: 44px; padding: 6px 0; gap: 2px; border-radius: 7px; }
.control-side .sd svg { width: 15px; height: 15px; }
.control-side .sd span { font-size: 9.5px; }


.control-body { overflow: hidden; }
.control-main { width: 100%; overflow: hidden; }
.control-side { flex: 0 0 46px; width: 46px; min-width: 46px; margin-left: auto; padding: 4px 0; }
.control-side .sd { max-width: 42px; padding: 5px 0; }
.control-side .sd svg { width: 14px; height: 14px; }
.control-side .sd span { font-size: 9px; }
.control-side .side-group { gap: 3px; }
.control-footer { min-height: 38px; }
.control-footer .fw { min-height: 38px; padding: 2px 0; gap: 1px; }
.control-footer .fw svg { width: 16px; height: 16px; }
.control-footer .fw span { font-size: 9.5px; }


.control-main { justify-content: center !important; align-items: center !important; }



.control-main { position: relative; }
.control-side { position: absolute; right: 4px; top: 8px; bottom: 8px; width: 46px; min-width: 46px; z-index: 6; margin: 0; padding: 4px 0;
  background: rgba(246,247,249,.93); border: 1px solid rgba(0,0,0,.06); border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.16); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); overflow-y: auto; }
.control-side .sd { background: #fff; }


.control-main { position: relative; justify-content: center !important; align-items: center !important; }
.control-side { position: static !important; right: auto !important; top: auto !important; bottom: auto !important;
  flex: 0 0 46px !important; width: 46px !important; min-width: 46px !important; margin: 0 0 0 auto !important;
  z-index: auto !important; background: #F6F7F9 !important; border: 0 !important; border-left: 1px solid #E6E8EE !important;
  border-radius: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  padding: 6px 0 !important; }


.control-frame-wrap iframe { width: 100% !important; height: 100% !important; }


.control-header { height: 34px !important; min-height: 34px !important; padding: 0 6px 0 2px !important; }
.control-header .ch-left, .control-header .ch-right { gap: 4px !important; }
.control-header .ch-quality, .control-header .ch-fps, .control-header .ch-ping { font-size: 10.5px !important; padding: 1px 4px !important; }
.control-header .ch-avatar { width: 20px !important; height: 20px !important; border-radius: 5px !important; }
.control-header .ch-avatar svg, .control-header .ch-avatar [data-icon] svg { width: 12px !important; height: 12px !important; }
.control-header .ch-name { font-size: 14px !important; }
.control-footer { min-height: 28px !important; }
.control-footer .fw { min-height: 28px !important; padding: 0 !important; gap: 0 !important; }
.control-footer .fw svg { width: 13px !important; height: 13px !important; }
.control-footer .fw span { font-size: 8px !important; margin-top: 1px !important; }
.control-side { flex: 0 0 42px !important; width: 42px !important; min-width: 42px !important; padding: 4px 0 !important; }
.control-side .side-group { gap: 3px !important; }
.control-side .sd { max-width: 38px !important; padding: 4px 0 !important; gap: 1px !important; border-radius: 6px !important; }
.control-side .sd svg { width: 13px !important; height: 13px !important; }
.control-side .sd span { font-size: 8.5px !important; }


.control-header { height: 30px !important; min-height: 30px !important; padding: 0 5px 0 2px !important; }
.control-header .ch-name { font-size: 12.5px !important; }
.control-header .ch-quality, .control-header .ch-fps, .control-header .ch-ping { font-size: 9.5px !important; padding: 0 3px !important; }
.control-header .ch-avatar { width: 18px !important; height: 18px !important; }
.control-header .ch-avatar svg, .control-header .ch-avatar [data-icon] svg { width: 11px !important; height: 11px !important; }
.control-footer { min-height: 24px !important; }
.control-footer .fw { min-height: 24px !important; padding: 0 !important; gap: 0 !important; }
.control-footer .fw svg { width: 11px !important; height: 11px !important; }
.control-footer .fw span { font-size: 7px !important; }
.control-side { flex: 0 0 36px !important; width: 36px !important; min-width: 36px !important; padding: 3px 0 !important; }
.control-side .side-group { gap: 2px !important; }
.control-side .sd { max-width: 32px !important; padding: 3px 0 !important; gap: 1px !important; border-radius: 5px !important; }
.control-side .sd svg { width: 11px !important; height: 11px !important; }
.control-side .sd span { font-size: 7.5px !important; }


.control-header { height: 26px !important; min-height: 26px !important; padding: 0 4px 0 2px !important; }
.control-header .ch-name { font-size: 11.5px !important; }
.control-header .ch-quality, .control-header .ch-fps, .control-header .ch-ping { font-size: 8.5px !important; padding: 0 2px !important; }
.control-header .ch-avatar { width: 16px !important; height: 16px !important; }
.control-header .ch-avatar svg, .control-header .ch-avatar [data-icon] svg { width: 10px !important; height: 10px !important; }
.control-footer { min-height: 21px !important; }
.control-footer .fw { min-height: 21px !important; padding: 0 !important; gap: 0 !important; }
.control-footer .fw svg { width: 10px !important; height: 10px !important; }
.control-footer .fw span { font-size: 6.5px !important; }
.control-side { flex: 0 0 42px !important; width: 42px !important; min-width: 42px !important; padding: 3px 0 !important; }
.control-side .side-group { gap: 2px !important; }
.control-side .sd { max-width: 38px !important; padding: 3px 0 !important; gap: 1px !important; border-radius: 5px !important; }
.control-side .sd svg { width: 12px !important; height: 12px !important; }
.control-side .sd span { font-size: 8px !important; }


.control-header { height: 30px !important; min-height: 30px !important; display: flex; align-items: center; }


.control-header { height: 30px !important; min-height: 30px !important; }
.control-header .ch-name { font-size: 12.5px !important; }
.control-header .ch-quality, .control-header .ch-fps, .control-header .ch-ping { font-size: 9.5px !important; padding: 0 3px !important; }
.control-footer { min-height: 25px !important; }
.control-footer .fw { min-height: 25px !important; padding: 0 !important; gap: 0 !important; }
.control-footer .fw svg { width: 11px !important; height: 11px !important; }
.control-footer .fw span { font-size: 7.5px !important; }
.control-side { position: static !important; flex: 0 0 36px !important; width: 36px !important; min-width: 36px !important; margin: 0 0 0 auto !important; padding: 3px 0 !important; background: #F6F7F9 !important; border: 0 !important; border-left: 1px solid #E6E8EE !important; border-radius: 0 !important; box-shadow: none !important; }
.control-side .side-group { gap: 2px !important; }
.control-side .sd { max-width: 32px !important; padding: 3px 0 !important; gap: 1px !important; border-radius: 5px !important; }
.control-side .sd svg { width: 11px !important; height: 11px !important; }
.control-side .sd span { font-size: 7.5px !important; }









.control-body { --ctrl-side-w: 34px; --ctrl-sd-w: 32px; }
.control-header { height: 28px !important; min-height: 28px !important; padding: 0 4px 0 2px !important; }
.control-header .ch-name { font-size: 12px !important; }
.control-header .ch-quality, .control-header .ch-fps, .control-header .ch-ping { font-size: 9px !important; padding: 0 2px !important; }



.control-header .ch-quality {
  min-height: 20px !important; height: 20px !important; line-height: 18px !important;
  padding: 0 6px !important; border-radius: 4px !important; box-sizing: border-box !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  white-space: nowrap !important;
}
.control-header .ch-fps, .control-header .ch-ping { line-height: 18px !important; }
.control-header .ch-avatar { width: 16px !important; height: 16px !important; border-radius: 4px !important; }
.control-header .ch-avatar svg, .control-header .ch-avatar [data-icon] svg { width: 10px !important; height: 10px !important; }
.control-footer { min-height: 23px !important; }
.control-footer .fw { min-height: 23px !important; padding: 0 !important; gap: 0 !important; }
.control-footer .fw svg { width: 10.5px !important; height: 10.5px !important; }
.control-footer .fw span { font-size: 7px !important; }
.control-side {
  flex: 0 0 var(--ctrl-side-w) !important;
  width: var(--ctrl-side-w) !important;
  min-width: var(--ctrl-side-w) !important;
  margin: 0 0 0 auto !important;
  padding: 3px 0 !important;
}
.control-side .side-group { gap: 3px !important; }



.control-side .sd {
  min-height: 42px !important;
  max-width: var(--ctrl-sd-w) !important;
  width: 100% !important;
  padding: 2.5px 0 !important;
  gap: 2px !important;
  border-radius: 5px !important;
}
.control-side .sd svg { width: 11.5px !important; height: 11.5px !important; }
.control-side .sd span { font-size: 7.5px !important; }
.control-side .side-top .sd i img { width: 12px !important; height: 12px !important; }






.tk-badge {
  position: absolute;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ff3b30;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(220, 38, 38, .35);
  pointer-events: none;
}
.tk-badge.hidden { display: none !important; }
.mine-service { position: relative; }
.mine-tk-badge { top: 7px; right: 8px; }
.icon-btn.tk-head-btn { position: relative; overflow: visible; }
.tk-head-badge { top: -3px; right: -5px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10px; border-width: 1.5px; }
.tk-history-badge { top: 6px; right: 10px; }

/* ★ 2026-10-31 手机端控制栏收窄：图标模式，避免占掉画面宽度 */
@media (max-width: 520px) {
  .control-body { --ctrl-side-w: 48px !important; --ctrl-sd-w: 43px !important; }
  .control-side {
    flex: 0 0 48px !important; width: 48px !important;
    min-width: 48px !important; max-width: 48px !important;
    padding: 2px 0 !important;
  }
  .control-side .side-group { gap: 2px !important; }
  .control-side .sd {
    min-height: 36px !important; max-width: 43px !important;
    padding: 2px 0 !important; gap: 1px !important; border-radius: 5px !important;
  }
  .control-side .sd svg, .control-side .sd [data-icon] svg { width: 16px !important; height: 16px !important; }
  .control-side .sd > span:not([data-icon]):not(.ctrl-audio-ico) { display: none !important; }
}


/* ★ 2026-10-31 手机端：尽量把高度让给画面；顶栏/底栏压薄，不覆盖画面 */
@media (max-width: 520px) {
  .control-header {
    height: 22px !important; min-height: 22px !important;
    padding: 0 3px !important;
  }
  .control-header .ch-avatar { width: 14px !important; height: 14px !important; margin-right: 3px !important; border-radius: 3px !important; }
  .control-header .ch-avatar svg, .control-header .ch-avatar [data-icon] svg { width: 9px !important; height: 9px !important; }
  .control-header .ch-name { font-size: 11px !important; }
  .control-header .ch-quality {
    height: 16px !important; min-height: 16px !important; line-height: 14px !important;
    font-size: 8px !important; padding: 0 4px !important; border-radius: 3px !important;
  }
  .control-header .ch-fps, .control-header .ch-ping {
    font-size: 8px !important; line-height: 16px !important; margin-left: 4px !important;
  }
  .control-footer { min-height: 22px !important; padding-bottom: 0 !important; }
  .control-footer .fw { min-height: 22px !important; padding: 0 !important; gap: 1px !important; }
  .control-footer .fw svg { width: 12px !important; height: 12px !important; }
  .control-footer .fw span:not([data-icon]) { display: inline !important; font-size: 8px !important; }
}



/* ★ 2026-10-31 顶部摄像头/声音开关 */
.control-header .ch-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  height: 18px; padding: 0 5px; margin-right: 5px;
  border: 1px solid #D8DBE2; border-radius: 4px; background: #fff;
  color: #3A4049; font-size: 9px; white-space: nowrap; flex: none;
}
.control-header .ch-toggle.on { color: #0A7A4A; border-color: #8FD9B8; background: #F0FFF8; }
.control-header .ch-toggle .ctrl-audio-ico svg { width: 10px; height: 10px; }
@media (max-width: 520px) {
  .control-header .ch-toggle { height: 16px; padding: 0 3px; margin-right: 3px; font-size: 7.5px; }
  .control-header .ch-toggle .ctrl-audio-ico svg { width: 8px; height: 8px; }
}

