:root{
  /* 主色调 - 温暖的蓝色 */
  --primary:#2563eb;
  --primary-d:#1d4ed8;
  --primary-light:#dbeafe;
  
  /* 辅助色 */
  --success:#10b981;
  --warning:#f59e0b;
  --danger:#ef4444;
  --urgent:#dc2626;
  --pin:#f97316;
  --short:#06b6d4;
  --fav:#ec4899;
  
  /* 背景色 */
  --bg:#f8fafc;
  --card:#ffffff;
  --surface:#f1f5f9;
  
  /* 文字色 */
  --text:#0f172a;
  --text-secondary:#475569;
  --text-muted:#94a3b8;
  
  /* 边框和线条 */
  --line:#e2e8f0;
  --line-light:#f1f5f9;
  
  /* 阴影 */
  --shadow-sm:0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow:0 4px 6px -1px rgba(0,0,0,0.1),0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg:0 10px 15px -3px rgba(0,0,0,0.1),0 4px 6px -4px rgba(0,0,0,0.1);
  
  /* 圆角 */
  --radius-sm:8px;
  --radius:12px;
  --radius-lg:16px;
  --radius-xl:20px;
  
  /* 动画 */
  --transition:all 0.2s ease;
}

*{
  box-sizing:border-box;
  -webkit-tap-highlight-color:transparent;
}

html,body{
  margin:0;
  padding:0;
}

body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text);
  font-size:15px;
  line-height:1.6;
  max-width:480px;
  margin:0 auto;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}

.view{
  min-height:100vh;
}

.hidden{
  display:none !important;
}

/* ========== Header 头部 ========== */
.app-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px;
  background:linear-gradient(135deg,var(--primary) 0%,#3b82f6 100%);
  color:#fff;
  box-shadow:var(--shadow);
}

.app-header.sticky{
  position:sticky;
  top:0;
  z-index:30;
}

.brand{
  font-size:18px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:8px;
}

.brand::before{
  content:"🏭";
  font-size:20px;
}

.header-btn{
  background:rgba(255,255,255,0.2);
  border:none;
  color:#fff;
  padding:8px 16px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:var(--transition);
  backdrop-filter:blur(8px);
}

.header-btn:hover,
.header-btn:active{
  background:rgba(255,255,255,0.35);
}

/* ========== Filter Bar 筛选栏 ========== */
.filter-bar{
  background:var(--card);
  padding:12px 16px;
  position:sticky;
  top:56px;
  z-index:20;
  box-shadow:var(--shadow-sm);
  border-bottom:1px solid var(--line-light);
}

.search-row{
  position:relative;
}

.search-row::before{
  content:"🔍";
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  opacity:0.5;
}

.search-row input{
  width:100%;
  padding:12px 12px 12px 40px;
  border:2px solid var(--line);
  border-radius:var(--radius-lg);
  font-size:15px;
  background:var(--bg);
  outline:none;
  transition:var(--transition);
}

.search-row input:focus{
  border-color:var(--primary);
  background:var(--card);
  box-shadow:0 0 0 3px var(--primary-light);
}

.search-row input::placeholder{
  color:var(--text-muted);
}

.chips{
  display:flex;
  gap:8px;
  margin-top:12px;
  overflow-x:auto;
  padding-bottom:4px;
  scrollbar-width:none;
}

.chips::-webkit-scrollbar{
  display:none;
}

.chip{
  flex:0 0 auto;
  border:1.5px solid var(--line);
  background:var(--card);
  color:var(--text-secondary);
  padding:8px 16px;
  border-radius:999px;
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  white-space:nowrap;
  transition:var(--transition);
}

.chip:hover{
  border-color:var(--primary);
  color:var(--primary);
}

.chip.active{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
  box-shadow:var(--shadow-sm);
}

.sort-row{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:12px;
  font-size:13px;
  color:var(--text-secondary);
}

.sort-row select{
  flex:1;
  padding:10px 12px;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  font-size:14px;
  color:var(--text);
  outline:none;
  cursor:pointer;
  transition:var(--transition);
}

.sort-row select:focus{
  border-color:var(--primary);
}

/* ========== Job List 招工列表 ========== */
.job-list{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:16px;
  padding-bottom:100px;
}

.empty-tip{
  text-align:center;
  color:var(--text-muted);
  padding:60px 20px;
  font-size:15px;
}

.empty-tip::before{
  content:"📋";
  display:block;
  font-size:48px;
  margin-bottom:16px;
  opacity:0.3;
}

/* ========== Job Card 招工卡片 ========== */
.card{
  background:var(--card);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:16px;
  position:relative;
  overflow:hidden;
  transition:var(--transition);
  border:1px solid transparent;
}

.card:active{
  transform:scale(0.98);
}

.card.pinned{
  border:2px solid #fed7aa;
  background:linear-gradient(135deg,#fff 0%,#fff7ed 100%);
}

.card-top{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.badge{
  font-size:11px;
  padding:4px 10px;
  border-radius:20px;
  font-weight:600;
  color:#fff;
  display:flex;
  align-items:center;
  gap:4px;
}

.badge::before{
  font-size:10px;
}

.badge.urgent{
  background:linear-gradient(135deg,var(--urgent) 0%,#f87171 100%);
}

.badge.urgent::before{
  content:"🔥";
}

.badge.pin{
  background:linear-gradient(135deg,var(--pin) 0%,#fb923c 100%);
}

.badge.pin::before{
  content:"📌";
}

.badge.short{
  background:linear-gradient(135deg,var(--short) 0%,#22d3ee 100%);
}

.badge.short::before{
  content:"⏱";
}

.card-title{
  font-size:18px;
  font-weight:700;
  color:var(--text);
  margin:4px 0 6px;
  line-height:1.4;
}

.card-factory{
  font-size:14px;
  color:var(--text-secondary);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:6px;
}

.card-factory::before{
  content:"🏭";
}

.card-salary{
  color:var(--urgent);
  font-size:24px;
  font-weight:800;
  margin:8px 0;
  display:flex;
  align-items:baseline;
  gap:4px;
}

.card-salary small{
  font-size:13px;
  color:var(--text-muted);
  font-weight:500;
}

.card-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:10px 0;
}

.tag{
  font-size:12px;
  background:var(--surface);
  color:var(--text-secondary);
  padding:5px 12px;
  border-radius:20px;
  font-weight:500;
}

.tag.addr{
  background:var(--primary-light);
  color:var(--primary);
}

.card-desc{
  font-size:13px;
  color:var(--text-secondary);
  margin:10px 0;
  padding:12px;
  background:var(--surface);
  border-radius:var(--radius);
  line-height:1.6;
}

.card-img{
  width:100%;
  height:180px;
  object-fit:cover;
  border-radius:var(--radius);
  margin-top:10px;
}

/* 卡片多图轮播 */
.card-media{
  position:relative;
  margin-top:12px;
}

.card-imgs{
  display:flex;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  border-radius:var(--radius);
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}

.card-imgs::-webkit-scrollbar{
  display:none;
}

.card-imgs .card-img{
  flex:0 0 100%;
  width:100%;
  scroll-snap-align:start;
  margin-top:0;
  border-radius:var(--radius);
}

.img-dots{
  display:flex;
  justify-content:center;
  gap:6px;
  margin-top:10px;
}

.dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--line);
  transition:var(--transition);
  cursor:pointer;
}

.dot.on{
  background:var(--primary);
  width:20px;
  border-radius:3px;
}

/* 卡片视频预览 */
.card-video{
  width:100%;
  max-height:240px;
  border-radius:var(--radius);
  margin-top:12px;
  background:#000;
  display:block;
}

/* 弹窗内图片视频 */
.modal-imgs{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:12px 0;
}

.modal-img{
  width:100%;
  border-radius:var(--radius);
  object-fit:cover;
  max-height:200px;
}

.modal-video{
  width:100%;
  max-height:300px;
  border-radius:var(--radius);
  margin-top:8px;
  background:#000;
}

.card-actions{
  display:flex;
  gap:12px;
  margin-top:14px;
}

.btn-contact,
.btn-fav{
  flex:1;
  padding:14px;
  border-radius:var(--radius);
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  border:none;
  transition:var(--transition);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.btn-contact{
  background:linear-gradient(135deg,var(--primary) 0%,#3b82f6 100%);
  color:#fff;
  box-shadow:0 4px 14px rgba(37,99,235,0.3);
}

.btn-contact:hover,
.btn-contact:active{
  background:linear-gradient(135deg,var(--primary-d) 0%,#2563eb 100%);
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(37,99,235,0.4);
}

.btn-fav{
  background:var(--card);
  border:2px solid var(--line);
  color:var(--text-muted);
}

.btn-fav:hover{
  border-color:var(--fav);
  color:var(--fav);
}

.btn-fav.on{
  color:var(--fav);
  border-color:var(--fav);
  background:#fdf2f8;
}

.fav-corner{
  position:absolute;
  top:12px;
  right:12px;
  font-size:24px;
  cursor:pointer;
  z-index:5;
  filter:grayscale(1);
  opacity:0.4;
  transition:var(--transition);
}

.fav-corner:hover{
  opacity:0.7;
}

.fav-corner.on{
  filter:none;
  opacity:1;
  color:var(--fav);
}

/* ========== Bottom Nav 底部导航 ========== */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:50%;
  transform:translateX(-50%);
  width:100%;
  max-width:480px;
  display:flex;
  background:var(--card);
  border-top:1px solid var(--line);
  z-index:25;
  box-shadow:0 -4px 20px rgba(0,0,0,0.05);
  padding-bottom:env(safe-area-inset-bottom,0);
}

.bottom-nav button{
  flex:1;
  padding:14px;
  border:none;
  background:var(--card);
  color:var(--text-muted);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  transition:var(--transition);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

.bottom-nav button::before{
  font-size:20px;
}

.bottom-nav button[data-tab="all"]::before{
  content:"📋";
}

.bottom-nav button[data-tab="fav"]::before{
  content:"⭐";
}

.bottom-nav button.active{
  color:var(--primary);
  font-weight:600;
}

.bottom-nav button.active::before{
  filter:drop-shadow(0 2px 4px rgba(37,99,235,0.3));
}

/* ========== Admin 后台 ========== */
.admin-login{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100vh;
  padding:20px;
  background:linear-gradient(135deg,var(--primary) 0%,#3b82f6 100%);
}

.login-card{
  background:var(--card);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow-lg);
  padding:32px 24px;
  width:100%;
  max-width:360px;
  animation:fadeInUp 0.4s ease;
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(20px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.login-card h2{
  margin:0 0 8px;
  text-align:center;
  font-size:24px;
  color:var(--text);
}

.login-card .hint{
  color:var(--text-muted);
  font-size:13px;
  text-align:center;
  margin:0 0 24px;
}

.login-card input{
  width:100%;
  padding:14px 16px;
  margin-bottom:16px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  font-size:15px;
  transition:var(--transition);
  outline:none;
}

.login-card input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-light);
}

.login-card .btn-primary{
  width:100%;
  margin-top:8px;
}

.admin-tabs{
  display:flex;
  background:var(--card);
  border-bottom:1px solid var(--line);
  position:sticky;
  top:56px;
  z-index:20;
  overflow-x:auto;
  scrollbar-width:none;
}

.admin-tabs::-webkit-scrollbar{
  display:none;
}

.admin-tabs button{
  flex:1;
  min-width:70px;
  padding:14px 8px;
  border:none;
  background:var(--card);
  color:var(--text-muted);
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  border-bottom:3px solid transparent;
  transition:var(--transition);
  white-space:nowrap;
}

.admin-tabs button.active{
  color:var(--primary);
  font-weight:600;
  border-bottom-color:var(--primary);
}

.admin-section{
  padding:20px;
  padding-bottom:40px;
}

.admin-section h3{
  margin:0 0 16px;
  font-size:18px;
  color:var(--text);
  display:flex;
  align-items:center;
  gap:8px;
}

/* ========== Form 表单 ========== */
.form label{
  display:block;
  font-size:13px;
  color:var(--text-secondary);
  margin-bottom:16px;
  font-weight:500;
}

.form input,
.form textarea,
.form select{
  width:100%;
  margin-top:6px;
  padding:12px 14px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  font-size:15px;
  background:var(--card);
  font-family:inherit;
  outline:none;
  transition:var(--transition);
}

.form input:focus,
.form textarea:focus,
.form select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-light);
}

.form textarea{
  resize:vertical;
  min-height:80px;
}

.grid2{
  display:flex;
  gap:12px;
}

.grid2 label{
  flex:1;
}

.divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:24px 0 16px;
  color:var(--text-muted);
  font-size:13px;
  font-weight:500;
}

.divider::before,
.divider::after{
  content:"";
  flex:1;
  height:1px;
  background:var(--line);
}

.checks{
  display:flex;
  gap:20px;
  margin-bottom:12px;
}

.check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px;
  color:var(--text);
  margin:0;
  cursor:pointer;
}

.check input{
  width:20px;
  height:20px;
  margin:0;
  accent-color:var(--primary);
}

.qr-preview{
  max-width:120px;
  margin-top:10px;
  border:2px solid var(--line);
  border-radius:var(--radius);
}

.thumbs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.thumbs img{
  width:80px;
  height:80px;
  object-fit:cover;
  border-radius:var(--radius-sm);
  border:2px solid var(--line);
  transition:var(--transition);
}

.thumbs img:hover{
  border-color:var(--primary);
  transform:scale(1.05);
}

.video-preview{
  max-width:100%;
  max-height:200px;
  margin-top:10px;
  border-radius:var(--radius);
}

.form-actions{
  display:flex;
  gap:12px;
  margin-top:24px;
}

.btn-primary{
  flex:1;
  background:linear-gradient(135deg,var(--primary) 0%,#3b82f6 100%);
  color:#fff;
  border:none;
  padding:14px;
  border-radius:var(--radius);
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  box-shadow:0 4px 14px rgba(37,99,235,0.3);
}

.btn-primary:hover,
.btn-primary:active{
  background:linear-gradient(135deg,var(--primary-d) 0%,#2563eb 100%);
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(37,99,235,0.4);
}

.btn-primary.small{
  flex:0 0 auto;
  padding:10px 16px;
  font-size:14px;
}

.btn-ghost{
  background:var(--card);
  border:2px solid var(--line);
  color:var(--text-secondary);
  padding:14px 20px;
  border-radius:var(--radius);
  font-size:15px;
  font-weight:500;
  cursor:pointer;
  transition:var(--transition);
}

.btn-ghost:hover{
  border-color:var(--primary);
  color:var(--primary);
}

/* ========== Manage List 管理列表 ========== */
.manage-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.m-item{
  background:var(--card);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:16px;
  border:1px solid var(--line-light);
  transition:var(--transition);
}

.m-item:hover{
  box-shadow:var(--shadow-lg);
}

.m-item .m-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
}

.m-item .m-title{
  font-weight:700;
  font-size:16px;
  color:var(--text);
}

.m-item .m-sub{
  font-size:13px;
  color:var(--text-secondary);
  margin:6px 0 12px;
}

.m-item .m-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.m-item .m-actions button{
  flex:1;
  min-width:60px;
  padding:10px 8px;
  border-radius:var(--radius-sm);
  border:1.5px solid var(--line);
  background:var(--card);
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  color:var(--text-secondary);
  transition:var(--transition);
}

.m-item .m-actions button:hover{
  border-color:var(--primary);
  color:var(--primary);
}

.m-item .m-actions button.primary{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}

.m-item .m-actions button.danger{
  color:var(--danger);
  border-color:#fecaca;
}

.m-item .m-actions button.danger:hover{
  background:#fef2f2;
}

.m-item .m-actions button.on{
  background:var(--pin);
  color:#fff;
  border-color:var(--pin);
}

/* ========== Cloud 云端 ========== */
.sync-status{
  padding:12px 16px;
  font-size:13px;
  text-align:center;
  background:var(--primary-light);
  color:var(--primary);
  font-weight:500;
}

.sync-status.ok{
  background:#d1fae5;
  color:var(--success);
}

.sync-status.err{
  background:#fee2e2;
  color:var(--danger);
}

.cloud-box{
  background:var(--card);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:20px;
  margin-bottom:12px;
  border:1px solid var(--line-light);
}

.cloud-box label{
  display:block;
  font-size:13px;
  color:var(--text-secondary);
  margin-bottom:14px;
  font-weight:500;
}

.cloud-box input{
  width:100%;
  margin-top:6px;
  padding:12px 14px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  font-size:14px;
  outline:none;
  transition:var(--transition);
}

.cloud-box input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-light);
}

.cloud-state{
  padding:14px;
  border-radius:var(--radius);
  background:var(--surface);
  font-size:14px;
  margin-bottom:16px;
  color:var(--text-secondary);
  font-weight:500;
}

.cloud-state.on{
  background:#d1fae5;
  color:var(--success);
}

.cloud-actions{
  display:flex;
  gap:10px;
  margin-bottom:12px;
}

.cloud-actions button{
  flex:1;
}

.qr-box{
  display:flex;
  justify-content:center;
  margin-top:16px;
}

.qr-box img,
.qr-box canvas{
  border:2px solid var(--line);
  border-radius:var(--radius);
  padding:12px;
  background:var(--card);
}

.cloud-box .hint{
  color:var(--text-muted);
  font-size:12px;
  margin:8px 0 0;
  line-height:1.6;
}

/* ========== Apps 报名管理 ========== */
.apps-toolbar{
  display:flex;
  gap:12px;
  margin-bottom:16px;
}

.apps-toolbar select{
  flex:1;
  padding:12px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  background:var(--card);
  font-size:14px;
  outline:none;
}

.apps-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.app-item{
  background:var(--card);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow);
  padding:16px;
  font-size:14px;
  border:1px solid var(--line-light);
}

.app-item .a-top{
  display:flex;
  justify-content:space-between;
  font-weight:700;
  color:var(--text);
  margin-bottom:6px;
}

.app-item .a-meta{
  color:var(--text-secondary);
  font-size:13px;
  margin:4px 0;
}

.app-item .a-note{
  background:var(--surface);
  padding:12px;
  border-radius:var(--radius);
  margin-top:10px;
  font-size:13px;
  color:var(--text-secondary);
  border-left:3px solid var(--primary);
}

.app-empty{
  text-align:center;
  color:var(--text-muted);
  padding:40px;
}

/* ========== Modal 弹窗 ========== */
.modal-mask{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.6);
  z-index:50;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  backdrop-filter:blur(4px);
}

.modal-sheet{
  background:var(--card);
  width:100%;
  max-width:480px;
  border-radius:var(--radius-xl) var(--radius-xl) 0 0;
  max-height:88vh;
  overflow-y:auto;
  animation:slideUp 0.3s ease;
}

@keyframes slideUp{
  from{
    transform:translateY(100%);
  }
  to{
    transform:translateY(0);
  }
}

.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px;
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:var(--card);
  z-index:2;
}

.modal-head h3{
  margin:0;
  font-size:18px;
  color:var(--text);
}

.modal-close{
  border:none;
  background:none;
  font-size:24px;
  color:var(--text-muted);
  cursor:pointer;
  width:40px;
  height:40px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  transition:var(--transition);
}

.modal-close:hover{
  background:var(--surface);
  color:var(--text);
}

.modal-body{
  padding:20px;
}

.cm-salary{
  color:var(--urgent);
  font-size:28px;
  font-weight:800;
  margin-bottom:16px;
}

.cm-line{
  display:flex;
  gap:12px;
  margin:10px 0;
  font-size:14px;
  align-items:flex-start;
}

.cm-line .k{
  color:var(--text-muted);
  flex:0 0 70px;
  font-weight:500;
}

.cm-line span{
  color:var(--text);
  flex:1;
}

.cm-qr{
  text-align:center;
  margin:16px 0;
  padding:16px;
  background:var(--surface);
  border-radius:var(--radius);
}

.cm-qr img{
  width:160px;
  height:160px;
  object-fit:cover;
  border:2px solid var(--line);
  border-radius:var(--radius);
}

.cm-contact-btns{
  display:flex;
  gap:12px;
  margin:20px 0;
}

.cm-contact-btns a{
  flex:1;
  text-align:center;
  padding:14px;
  border-radius:var(--radius);
  font-weight:600;
  text-decoration:none;
  font-size:15px;
  transition:var(--transition);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}

.btn-dial{
  background:linear-gradient(135deg,var(--success) 0%,#34d399 100%);
  color:#fff;
  box-shadow:0 4px 14px rgba(16,185,129,0.3);
}

.btn-dial:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(16,185,129,0.4);
}

.btn-wechat{
  background:linear-gradient(135deg,#07c160 0%,#10b981 100%);
  color:#fff;
  box-shadow:0 4px 14px rgba(7,193,96,0.3);
}

.btn-wechat:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(7,193,96,0.4);
}

.cm-form label{
  display:block;
  font-size:13px;
  color:var(--text-secondary);
  margin-bottom:14px;
  font-weight:500;
}

.cm-form input,
.cm-form textarea{
  width:100%;
  margin-top:6px;
  padding:12px 14px;
  border:2px solid var(--line);
  border-radius:var(--radius);
  font-size:15px;
  outline:none;
  transition:var(--transition);
}

.cm-form input:focus,
.cm-form textarea:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 3px var(--primary-light);
}

.cm-form textarea{
  resize:vertical;
  min-height:80px;
}

.cm-form .btn-primary{
  margin-top:8px;
}

/* ========== Toast 提示 ========== */
.toast{
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  background:rgba(15,23,42,0.9);
  color:#fff;
  padding:12px 24px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  z-index:99;
  opacity:0;
  transition:all 0.3s ease;
  pointer-events:none;
  backdrop-filter:blur(8px);
}

.toast.show{
  opacity:1;
  transform:translateX(-50%) translateY(-10px);
}

/* ========== Install Bar 安装提示 ========== */
.install-bar{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:80px;
  width:calc(100% - 32px);
  max-width:440px;
  background:var(--text);
  color:#fff;
  border-radius:var(--radius-lg);
  padding:16px;
  z-index:60;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:14px;
  box-shadow:var(--shadow-lg);
  animation:slideUp 0.3s ease;
}

.install-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.install-bar button{
  border:none;
  border-radius:var(--radius-sm);
  padding:10px 16px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  background:var(--primary);
  color:#fff;
  transition:var(--transition);
}

.install-bar button:hover{
  background:var(--primary-d);
}

.install-bar button.ghost{
  background:transparent;
  color:var(--text-muted);
  padding:8px;
  font-size:20px;
}

.install-bar button.ghost:hover{
  color:#fff;
}

/* ========== iOS Guide iOS安装指引 ========== */
.ios-guide{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,0.7);
  z-index:70;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:0 0 20px;
  backdrop-filter:blur(4px);
}

.ios-guide .box{
  background:var(--card);
  border-radius:var(--radius-xl);
  padding:24px;
  margin:16px;
  max-width:340px;
  text-align:center;
  font-size:15px;
  line-height:1.7;
  animation:slideUp 0.3s ease;
  box-shadow:var(--shadow-lg);
}

.ios-guide .box b{
  color:var(--primary);
}

.ios-guide .box button{
  margin-top:16px;
  background:linear-gradient(135deg,var(--primary) 0%,#3b82f6 100%);
  color:#fff;
  border:none;
  border-radius:var(--radius);
  padding:12px 28px;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  transition:var(--transition);
  box-shadow:0 4px 14px rgba(37,99,235,0.3);
}

.ios-guide .box button:hover{
  transform:translateY(-1px);
  box-shadow:0 6px 20px rgba(37,99,235,0.4);
}

/* ========== Safe Area 安全区域 ========== */
@supports(padding:max(0px)){
  .bottom-nav{
    padding-bottom:max(12px,env(safe-area-inset-bottom));
  }
  .install-bar{
    bottom:max(80px,calc(80px + env(safe-area-inset-bottom)));
  }
}

/* ========== Scrollbar 滚动条美化 ========== */
::-webkit-scrollbar{
  width:6px;
  height:6px;
}

::-webkit-scrollbar-track{
  background:transparent;
}

::-webkit-scrollbar-thumb{
  background:var(--line);
  border-radius:3px;
}

::-webkit-scrollbar-thumb:hover{
  background:var(--text-muted);
}
