:root {
  --bg: #f6f7fb;
  --card-bg: #fff;
  --text: #1f2d3d;
  --muted: #6b7a90;
  --primary: #3399fe;
  --success: #16c37b;
  --danger: #ff4d4f;
  --warning: #ffaf38;
  --border: #e5e9f2;
  --radius: 12px;
  /* 顶部固定区域高度变量，用于计算 tabs 贴顶偏移 */
  --status-bar-h: env(safe-area-inset-top, 0px);
  --header-h: 44px;
  --tabs-top: calc(var(--status-bar-h) + var(--header-h) - 5px);
  --tabs-h: 48px; /* 稍微增高标签栏 */
  /* 动条滚动速度（越大越慢，线性无限循环） */
  --strip-speed: 0.96s; /* 速度提升至原来的2.5倍（2.4s -> 0.96s） */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.status-bar { position: fixed; top: 0; width: 100%; z-index: 100; display:block; height: var(--status-bar-h); padding:0 12px; background:#fff; }
/* 给 body 增加顶部内边距，防止内容被固定的顶部遮挡 */
body { padding-top: calc(var(--status-bar-h) + var(--header-h)); }
.sb-time { font-weight:700; }
.sb-icons { opacity:.7; }

.app-header {
  position: fixed;
  top: var(--status-bar-h); /* 让标题栏贴紧状态栏下方 */
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px; /* 轻微减小上下内边距 */
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 100; /* 高于 tabs，确保底部边线不被遮挡 */
}
.app-header h1 { flex: 1; font-size: 18px; font-weight: 500; margin: 0; text-align: center; }
.back-btn, .feedback-btn {
  border: none; background: transparent; color: var(--primary); font-size: 14px; cursor: pointer;
}
.back-btn { font-size: 18px; color: #000; }
/* 右上角“反馈”按钮改为黑色 */
.feedback-btn { color: #000; }

.view { width: 100%; margin: 0; padding: 0; }
.hidden { display: none; }

.tabs { display: flex; justify-content: space-between; padding: 0; border-bottom: none; background: var(--card-bg); position: fixed; top: calc(var(--status-bar-h) + var(--header-h)); width: 100%; height: var(--tabs-h); z-index: 98; }
/* tabs 固定后，下方的提示条需要增加上边距 */
.tabs + .howto { margin-top: var(--tabs-h); }
.tab { flex: 1 0 0; appearance: none; border: none; background: transparent; font-size: 15px; padding: 0; line-height: var(--tabs-h); color: #9aa0a6; cursor: pointer; position: relative; text-align: center; font-weight: 400; }
.tab.active { color: #3399fe; font-weight: 500; }
.tab.active::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; height: 4px; width: 80px; background: #3399fe; border-radius: 2px; }

.howto { margin: 0; background: #ffa200; color: #fff; border-radius: 0; height: 20px; padding: 0 12px; font-size: 12px; font-weight: 400; display: flex; align-items: center; justify-content: center; gap: 8px; }
.howto .circle { display:inline-flex; align-items:center; justify-content:center; width:14px; height:14px; border-radius:50%; background:#fff; color:#ffa200; font-weight:800; font-size:12px; }

.card {
  background: var(--card-bg);
  border: none;
  border-radius: 0;
  padding: 14px 14px 6px;
  margin-bottom: 14px;
  box-shadow: none;
}
/* 去除滚动条（横幅）下方紧邻卡片的上边线 */
.status-banner + .card { border-top: none; }
.card-title { font-size: 16px; margin: 0 0 10px; }
.card-title.row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0; }
.card-title.row h2 { margin: 0; font-size: 14.5px; font-weight: normal; margin-left: 5px; position: relative; z-index: 99; transform: translateY(-10px); }
.pill { background: #e6f4ff; color: #3399fe; border: 0.75px solid #3399fe; padding: 4px 10px; border-radius: 4px; font-size: 12px; position: relative; display: inline-block; transform: translate(-5px, 25px); z-index: 1; }
#durationPill { font-weight: 800; font-family: "PingFang SC", -apple-system, "Microsoft YaHei", "Noto Sans", Arial, sans-serif; font-size: 15px; }
.link { color: #3399fe; background: transparent; border: none; cursor: pointer; }
.link.sm { font-size: 13px; }

.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item.inline { flex-direction: row; align-items: center; }
input[type="checkbox"] {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  cursor: pointer;
  accent-color: var(--primary);
}
.form-item span { color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; background: #fff;
}
textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 6px; }

.btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--border); color: var(--text); }
.btn:disabled, .btn.disabled { opacity: .6; cursor: not-allowed; pointer-events: none; }

.status-banner {
  background: linear-gradient(
    180deg,
    #08a45a 0%,
    #00db71 100%
  );
  color: #fff;
  border-radius: 0;
  margin: 0;
  padding: 8px 14px 0; /* 底部不留空隙，条纹与背景对齐 */
  overflow: hidden;
}
.status-head { display: flex; align-items: center; justify-content: center; position: relative; }
.status-head .link { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
/* 让“个人信息 >”与“审批已通过”一致，且无超链接效果 */
.status-head #btnProfile {
  position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: calc(1em - 2px);
  font-weight: 500; letter-spacing: 1.2px; color: #fff; opacity: 1;
  cursor: default; pointer-events: none; text-decoration: none;
  background: transparent; border: none;
}
.passed { display: flex; align-items: center; gap: 6px; font-weight: 500; letter-spacing: 1.2px; }
.check { display: inline-block; width: 16px; height: 16px; line-height: 16px; text-align: center; border-radius: 50%; background: #fff; color: var(--check-color, #0dbf6b); border: none; font-weight: 700; font-size: 0; position: relative; }
.check::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 4px; border-left: 2px solid var(--check-color, #0dbf6b); border-bottom: 2px solid var(--check-color, #0dbf6b); transform: translate(-50%, -55%) rotate(-45deg); }
.link { color: #fff; background: transparent; border: none; cursor: pointer; opacity: .9; }

/* 专用于“销假规则”后方的查看链接，改为蓝色 */
#ruleLink { color: #3399fe; opacity: 1; }
.status-big { text-align: center; font-size: 32px; font-weight: 400; padding: 4px 0 0; letter-spacing: 5px; }
.banner-strip {
  margin-top: 8px; height: 17px; /* 条纹高度含刚才的1px底边 */
  /* 让条纹条全宽贴边，取消左右间隙（抵消父容器14px内边距） */
  display: block;
  width: calc(180% + 28px); /* 元素长度缩短为容器宽度的 1.8 倍 */
  margin-left: calc(-40% - 14px); /* 额外 80% 的一半向左偏移并抵消内边距 */
  margin-right: calc(-40% - 14px); /* 额外 80% 的一半向右偏移并抵消内边距 */
  position: relative;
  overflow: hidden;
  z-index: 10;
}

/* 使用伪元素以 GPU transform 平滑滚动，不改变布局 */
.banner-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, #fff 0 22px, rgba(255,255,255,0) 22px 44px);
  animation: stripeSlide var(--strip-speed, 2.4s) linear infinite;
  will-change: transform;
  transform: translate3d(0,0,0);
  z-index: 11;
}

@keyframes stripeSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(62.225px); } /* 44px / cos(45deg)，确保循环无缝 */
}

@keyframes bannerSlideRight {
  0%   { background-position: 0 0; }
  100% { background-position: 44px 0; }
}

.kv { display: grid; grid-template-columns: 1fr; gap: 8px; }
.kv-2col { grid-template-columns: 1fr 1fr; row-gap: 1px; }
.kv-2col .kv-item.full { grid-column: 1 / -1; }
/* 将指定三行整体右移 1px */
.kv-2col .kv-item.kv-sm { margin-left: 3px; }
.kv-2col .kv-item.kv-shift-3 { margin-left: 3px; }
.kv-item.nowrap .kv-v { white-space: nowrap; }
.kv-item.nowrap .kv-k { white-space: nowrap; }
.kv-item { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 2em; border-bottom: none; padding-bottom: 8px; }
.kv-2col .kv-item { padding-bottom: 1px; }
/* 当行被标记为 hidden 时，确保覆盖 .kv-item 的 display 样式 */
.kv-item.hidden { display: none; }
/* 缩小“销假规则”所在行的标签与信息间距 */
.kv-item.nowrap { column-gap: 0; }
.kv-k { color: var(--muted); font-size: 13px; }
.kv-v { font-size: 13px; }
#kvType, #kvHandover, #kvDuration { color: #676c6e; }
.kv-2col .kv-item:has(#kvType) .kv-k,
.kv-2col .kv-item:has(#kvHandover) .kv-k,
.kv-2col .kv-item:has(#ruleLink) .kv-k,
.kv-2col .kv-item:has(#kvDuration) .kv-k { color: #adadaf; }
/* 取消特定项的标签与信息间距 */
.kv-item.nogap { column-gap: 0; }
.type-k { font-size: 12.5px; line-height: 1.5; }
.type-v-sm { font-size: 12.5px; line-height: 1.5; }
/* 指定某些键值行整体缩小到12px（与请假类型一致） */
.kv-sm .kv-k, .kv-sm .kv-v { font-size: 13px; }
#myApplyKV {}
/* 首卡（上方信息卡）内的 kv-sm 行统一为 12px */
.kv-2col .kv-item.kv-sm .kv-k,
.kv-2col .kv-item.kv-sm .kv-v { font-size: 12px; line-height: 1.5; }
/* 将“审批流程”中的“查看>”链接改为蓝色 */
.kv-sm .link.sm { color: #3399fe; opacity: 1; font-size: 12.5px; padding: 0; line-height: 1; }
/* 首卡（上方信息卡）内“查看>”按钮也统一为 12px */
.kv-2col .kv-item.kv-sm .link.sm { font-size: 12px; }
/* 仅为“审批流程”中的查看按钮增加微小左侧间距 */
#kvFlow .link.sm { margin-left: 0.25em; }
/* 确保“销假规则”行内高亮文字继承同字号，不放大 */
.kv-sm .kv-v .highlight { font-size: 12.5px; }
/* 让“我的请假申请”整体间距与上方一栏一致：更紧凑 */
.kv-sm { row-gap: 2px; }
.kv-sm .kv-item { padding-bottom: 2px; column-gap: 0; }
/* 仅将“我的请假申请”键值列表整体右移 5px */
#myApplyKV { margin-left: 5px; margin-top: -10px; margin-bottom: 5px; }
/* 将“我的 请假申请”区域的 kv-sm 行与首卡一致：字号与上下间距 */
#myApplyKV { row-gap: 1px; }
#myApplyKV .kv-item { padding-bottom: 1px; }
#myApplyKV .kv-k, #myApplyKV .kv-v { font-size: 12px; }
#myApplyKV .link.sm { font-size: 12px; }
#myApplyKV .kv-item.attach-row { align-items: start; }
/* 让“我的请假申请”所有行的值列对齐到同一竖线 */
#myApplyKV .kv-item { grid-template-columns: 80px 1fr; column-gap: 0.5em; }
/* 取消附件行标签与内容间距：标签宽度随内容自适应且无列间距 */
#myApplyKV .kv-item.attach-row { grid-template-columns: auto 1fr; column-gap: 0.5em; }
/* 取消开始/结束/审批流程/请假原因/发起位置的标签与值间距 */
#myApplyKV .kv-item.nogap { grid-template-columns: auto 1fr; column-gap: 0.5em; }
/* 为需要一个字间距的行设置列间距（约1em） */
#myApplyKV .kv-item.gap1 { column-gap: 0.5em; }
#myApplyKV .kv-item:has(#kvCc) { column-gap: 1.2em; }
/* 指定“我的请假申请”区域的值文本颜色为 #676c6e（标签不变） */
#myApplyKV .kv-v { color: #676c6e; }
#myApplyKV .kv-v.time-strong { color: #676c6e; }
/* 指定“我的请假申请”区域的标签颜色为 #a5a8b1 */
#myApplyKV .kv-k { color: #a5a8b1; }
#myApplyKV .kv-v {}
#myApplyKV .kv-item { align-items: start; }
#myApplyKV .kv-k, #myApplyKV .kv-v { line-height: 1.5; }
/* 开始/结束时间的值（我的 请假申请区域）：与首卡 kv-sm 保持一致 12px */
#myApplyKV .kv-v.time-strong { font-size: 12px; }
.kv-sm .kv-v.time-strong { font-weight: 800; color: var(--muted); font-family: "PingFang SC", -apple-system, "Microsoft YaHei", "Noto Sans", Arial, sans-serif; }
#myApplyKV #kvLocation { color: #3399fe; }
/* 附件缩略图样式 */
.attach-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 0; border: none; display: block; }
/* 附件行顶部对齐，使缩略图顶部与“附件：”标签对齐 */
.kv-item.attach-row { align-items: start; }
.highlight { color: #ff9800; }
.warn { color: #ff9800; font-size: 12.8px; margin: 8px 0 0; transform: translateY(-7px); margin-left: 5px; }

/* 审批流程时间线样式优化 - 1:1还原参考图 */
.timeline {
  position: relative;
  padding: 0 0 0 10px; /* 左侧留出空间 */
}
.timeline li {
  display: flex; /* 改为flex布局，更灵活控制左右 */
  gap: 12px;
  padding-bottom: 16px; /* 略微增加间距，使竖线变长 */
  position: relative;
  align-items: flex-start; /* 顶部对齐 */
}
/* 连线 */
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 8px; /* 居中对齐圆点 (17px/2 - 1px/2) */
  top: 21px; /* 起始位置：更靠近圆圈 (19px底 + 2px缝隙) */
  bottom: 0px; /* 结束位置：更靠近下一个圆圈 */
  width: 1px; /* 细线 */
  background: #e5e5e5; /* 浅灰色 */
}
/* 圆点 */
.timeline .dot {
  width: 17px; height: 17px; /* 再次缩小5% (18px -> ~17px) */
  border-radius: 50%;
  border: 1px solid #3399fe; /* 默认蓝色空心 */
  background: #fff;
  flex-shrink: 0;
  z-index: 1;
  margin-top: 2px; /* 微调垂直对齐 */
}
.timeline .dot.ok {
  border-color: #16c37b; /* 绿色 */
}

/* 内容区域 */
.timeline .content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.timeline .row-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.timeline .label {
  font-size: 12px; /* 调整为与请假原因一致的12px */
  color: #676c6e; /* 与请假原因后信息颜色一致 */
  line-height: 1.4;
}
.timeline .time {
  font-size: 13px;
  color: #999; /* 浅灰时间 */
  white-space: nowrap;
  margin-left: 8px;
}
.timeline .okword {
  color: #16c37b; /* 绿色通过 */
}

/* 审批意见气泡 */
.opinion-bubble {
    background: #f7f8fa;
    border: 1px solid #d8dbe0;
    border-radius: 4px;
    padding: 6.5px 12px 6.5px 5px; /* 微调上下内边距 */
    font-size: 12px; /* 调整字号为12px，与节点文字一致 */
    color: #999;
    margin-top: 4px;
}
.opinion-label {
    color: #999;
}
/* 隐藏旧的审批意见盒子 */
.opinion-box { display: none; }
/* 审批流程记录标题按参考图加大 */
.flow-card .card-title { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.small { margin-top: 10px; }

/* 关键修改：对齐方式调整为顶部对齐 */
.kv-item { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 2em; border-bottom: none; padding-bottom: 8px; }
/* 修正 .kv-item 内部的对齐 */
#myApplyKV .kv-item { align-items: start; }
/* 修正“我的请假申请”区域内的行高一致性 */
#myApplyKV .kv-k { line-height: 1.5; margin-top: 0; }
#myApplyKV .kv-v { line-height: 1.5; margin-top: 0; }

input.locked-input {
  background-color: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

/* Bottom Bar Fixed */
.bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  padding: 0; background: #fff; border-top: none;
  z-index: 1000;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.05);
  height: auto;
  padding-bottom: 0;
}

.bottom-bar > .btn,
.bottom-bar > .btn-container {
  height: calc(50px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
}

#resultView {
  padding-bottom: 100px;
}
.bottom-bar .btn { 
  border-radius: 0; 
  border: none; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  font-weight: 500; 
  font-size: 16px; 
  height: 100%;
  width: 100%;
  padding: 0;
  text-align: center;
  background: transparent;
}

.bottom-bar .ghost { background: #fff; color: #333; box-shadow: none; border-right: 1px solid #eee; }
.bottom-bar .btn-container.primary-bg {
  background-color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.bottom-bar .primary { background: transparent; color: #fff; width: 100%; height: 100%; }

/* Merged button style override */
.bottom-bar .btn.primary.merged {
    background-color: #5297f6;
}

.bottom-bar .btn.disabled { color: #666; pointer-events: none; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: rgba(0,0,0,.8); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; }

/* 响应式布局 */
@media (min-width: 560px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-item:nth-child(4), .form-item:nth-child(5), .form-item.dorm, .form-item.attachment, .form-item.inline { grid-column: 1 / -1; }
  .kv { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .view { padding: 24px; }
  .card { padding: 18px; }
}

/* 二维码占位 */
.qrbox { display: flex; justify-content: center; align-items: center; }
.qrdummy { width: 240px; height: 240px; background: repeating-linear-gradient(45deg,#eee 0 12px,#ddd 12px 24px); border: 1px solid var(--border); border-radius: 8px; display:flex; align-items:center; justify-content:center; color: var(--muted); }
.home-indicator { height: env(safe-area-inset-bottom, 0px); }
.assistant-fab { position: fixed; right: 0; top: 80%; transform: translateY(-50%); background: transparent; border:none; padding: 0; box-shadow:none; font-size:0; overflow: hidden; }
.assistant-fab img { width: 24px; height: auto; display: block; border-radius: 6px 0 0 6px; box-shadow: -2px 2px 10px rgba(0,0,0,0.2); }
/* 让“审批流程记录”标题与“我的 请假申请”标题一致 */
.flow-card .card-title { font-size: 14.5px; font-weight: normal; margin-left: 5px; margin-bottom: 0; transform: translateY(-5px); position: relative; z-index: 99; }

/* ===============================
   Cyberpunk Theme for Form View - DISABLED
   =============================== */

/* 
body.cyber-mode {
  background-color: #0a0e17;
  color: #e0e0e0;
  --border: #1f2937;
  --muted: #6b7a90;
}
*/

/* Header styling in Cyber Mode */
/* 
body.cyber-mode .status-bar {
  background-color: #0a0e17;
}
body.cyber-mode .app-header {
  background-color: rgba(10, 14, 23, 0.95);
  border-bottom: 1px solid #1f2937;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.1);
}
body.cyber-mode .app-header h1 {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  font-family: 'Segoe UI', sans-serif;
  letter-spacing: 2px;
}
body.cyber-mode .back-btn, 
body.cyber-mode .feedback-btn {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

body.cyber-mode #formView {
  position: relative;
  min-height: calc(100vh - var(--header-h) - var(--status-bar-h));
  overflow: hidden;
}

body.cyber-mode .cyber-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, #1a1f2e 0%, #0a0e17 100%);
  z-index: -2;
}
body.cyber-mode .cyber-grid {
  position: fixed;
  top: 0; left: 0; width: 200%; height: 200%;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  animation: cyber-grid-move 20s linear infinite;
  z-index: -1;
  pointer-events: none;
}
@keyframes cyber-grid-move {
  0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
  100% { transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px); }
}

body.cyber-mode #formView .card {
  background: rgba(16, 20, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.05), inset 0 0 20px rgba(0, 240, 255, 0.05);
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

body.cyber-mode #formView .card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 20px; height: 20px;
  border-top: 2px solid #00f0ff; border-left: 2px solid #00f0ff;
}
body.cyber-mode #formView .card::after {
  content: ''; position: absolute; bottom: 0; right: 0; width: 20px; height: 20px;
  border-bottom: 2px solid #00f0ff; border-right: 2px solid #00f0ff;
}

body.cyber-mode #formView .card-title {
  color: #fff;
  text-align: center;
  font-size: 20px;
  letter-spacing: 4px;
  position: relative;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.8), 0 0 20px rgba(0, 240, 255, 0.4);
}
body.cyber-mode #formView .card-title::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  color: #00f0ff;
  opacity: 0.5;
  transform: translate(-2px, 0);
  mix-blend-mode: screen;
  animation: glitch-anim 2s infinite linear alternate-reverse;
}
*/
@keyframes glitch-anim {
  0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px,0); }
  20% { clip-path: inset(60% 0 10% 0); transform: translate(2px,0); }
  40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px,0); }
  60% { clip-path: inset(80% 0 5% 0); transform: translate(2px,0); }
  80% { clip-path: inset(10% 0 70% 0); transform: translate(-2px,0); }
  100% { clip-path: inset(30% 0 50% 0); transform: translate(2px,0); }
}

/* Tech Divider */
.tech-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f0ff, transparent);
  margin: 10px 0 20px;
  position: relative;
  display: none; /* Hidden by default, shown in cyber mode */
}
body.cyber-mode .tech-divider { display: block; }
body.cyber-mode .tech-divider::after {
  content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 4px; background: #ffffff; box-shadow: 0 0 10px #ffffff;
}

/* Inputs */
body.cyber-mode #formView input,
body.cyber-mode #formView select,
body.cyber-mode #formView textarea {
  background: rgba(10, 14, 23, 0.8);
  border: 1px solid #1f2937;
  color: #00f0ff;
  font-family: 'Courier New', monospace;
  transition: all 0.3s ease;
}
body.cyber-mode #formView input:focus,
body.cyber-mode #formView select:focus,
body.cyber-mode #formView textarea:focus {
  border-color: #00f0ff;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 10px rgba(0, 240, 255, 0.1);
  outline: none;
}
body.cyber-mode #formView .form-item span {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

/* Custom Checkbox (Hologram Tick) */
body.cyber-mode #formView input[type='checkbox'] {
  appearance: none;
  width: 18px; height: 18px;
  border: 1px solid #00f0ff;
  background: transparent;
  position: relative;
  cursor: pointer;
}
body.cyber-mode #formView input[type='checkbox']:checked {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 10px #00f0ff;
}
body.cyber-mode #formView input[type='checkbox']:checked::after {
  content: '�?;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  color: #00f0ff; font-size: 12px; text-shadow: 0 0 5px #00f0ff;
}

/* Submit Button */
body.cyber-mode #formView .btn.primary {
  background: linear-gradient(45deg, #00f0ff, #0077ff);
  border: none;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}
body.cyber-mode #formView .btn.primary:hover {
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.8);
  transform: scale(1.02);
}
body.cyber-mode #formView .btn.primary::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 60%);
  opacity: 0; transform: scale(0.5); transition: opacity 0.3s, transform 0.3s;
}
body.cyber-mode #formView .btn.primary:hover::before {
  opacity: 1; transform: scale(1); animation: pulse 1s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Footer */
.cyber-footer {
  display: none;
  text-align: center;
  margin-top: 30px;
  color: #1f2937;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
}
body.cyber-mode .cyber-footer {
  display: block;
  color: rgba(0, 240, 255, 0.4);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}


/* ===============================
   ����У԰ Home View Styles
   =============================== */
#homeView {
  background: #f6f7f9;
  min-height: 100vh;
  padding-bottom: 60px; /* TabBar space */
}

/* Home Header */
.home-header {
  background: #fff;
  padding: 44px 16px 12px; /* ���䶥����ȫ�� */
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
}
.home-top-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px;
}
.campus-name {
  font-size: 17px; font-weight: 600; color: #333; display: flex; align-items: center; gap: 6px;
}
.home-icons {
  display: flex; gap: 16px; color: #333; font-size: 18px;
}
.home-search {
  background: #f2f3f5; border-radius: 18px; padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: #999;
}
.home-search input {
  border: none; background: transparent; padding: 0; color: #333; font-size: 14px; width: 100%;
}

/* Banner */
.home-banner {
  padding: 12px 16px;
}
.banner-item {
  height: 140px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 600; box-shadow: 0 4px 12px rgba(51, 153, 254, 0.2);
}

/* Grid (King Kong Area) */
.home-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 0; padding: 8px 16px 20px; background: #fff; margin-bottom: 10px;
}
.grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer;
}
.grid-icon {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.grid-item span { font-size: 12px; color: #333; }

/* News Feed */
.home-news {
  background: #fff; padding: 16px;
}
.news-title {
  margin: 0 0 16px; font-size: 16px; font-weight: 600; border-left: 4px solid #3399fe; padding-left: 8px;
}
.news-item {
  display: flex; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; margin-bottom: 16px;
}
.news-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.news-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-content h4 { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.4; color: #333; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: #999; margin-top: 8px; }
.news-img {
  width: 100px; height: 64px; background: #e0e0e0; border-radius: 4px; flex-shrink: 0;
}

/* TabBar */
.home-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; height: 50px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid #eee; z-index: 1000;
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: #999; font-size: 10px; flex: 1; cursor: pointer;
}
.tab-item i { font-size: 20px; margin-bottom: 2px; }
.tab-item.active { color: #3399fe; }


/* ===============================
   1:1 ��ԭ����У԰ Home Styles
   =============================== */
#homeView {
  background: #f6f7f9;
  min-height: 100vh;
  padding-bottom: 0; /* TabBar ���� */
}

/* ��ɫ������������ */
.blue-header-bg {
  background-color: #3b64f0; /* ���� */
  padding-bottom: 12px;
}

/* Home Header */
.home-header {
  background: transparent; /* ����ɫ�Ƶ����� */
  padding: 44px 16px 0; /* ���䶥����ȫ�� */
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
}
.home-top-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;
}
.campus-name {
  font-size: 20px; font-weight: 500; color: #fff; /* ��ɫ���� */
  letter-spacing: 0.5px;
}
.home-icons {
  display: flex; gap: 16px; color: #fff; font-size: 20px;
}
.home-search {
  background: #fff; border-radius: 8px; padding: 10px 12px; display: flex; align-items: center; gap: 8px; color: #999;
  margin-bottom: 20px;
}
.home-search i { color: #ccc; font-size: 14px; }
.home-search input {
  border: none; background: transparent; padding: 0; color: #333; font-size: 15px; width: 100%;
}
.home-search input::placeholder { color: #999; }

/* Grid (King Kong Area) */
.home-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0 8px 20px;
  background: transparent; margin-bottom: 0;
}
.grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
}
.grid-icon.white-icon {
  width: 48px; height: 48px; background: #fff; border-radius: 12px; 
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.grid-item span { font-size: 12px; color: #fff; font-weight: 400; }

/* TabBar (�����ַ��) */
.home-tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; background: #fff; height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: space-around; align-items: center;
  border-top: none; z-index: 1000;
  box-shadow: 0 -1px 10px rgba(0,0,0,0.03);
}
.tab-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; flex: 1; cursor: pointer;
}
.tab-item span {
  font-size: 16px; color: #999; font-weight: 400;
}
.tab-item.active span {
  color: #333; font-weight: 600; font-size: 17px;
}


/* Cyber Particles Canvas */
#cyberParticles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1; /* Above grid and bg, below content */
  pointer-events: none;
}
/* ��ǿ�����Ч��ɨ���� */
body.cyber-mode #formView .form-item {
  position: relative;
  overflow: hidden;
}
body.cyber-mode #formView input:focus ~ .scan-line,
body.cyber-mode #formView select:focus ~ .scan-line,
body.cyber-mode #formView textarea:focus ~ .scan-line {
  opacity: 1;
}
/* ���ӱ����㼶���� */
body.cyber-mode .cyber-grid { z-index: -2; opacity: 0.3; }
body.cyber-mode .cyber-bg { z-index: -3; }


/* ����ɨ���Ч */
body.cyber-mode #formView .card-title::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
  animation: title-scan 3s infinite;
}
@keyframes title-scan {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* �����ɨ���� */
.scan-line {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 2px;
  background: #00f0ff;
  transform: scaleX(0);
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px #00f0ff;
  pointer-events: none;
  opacity: 0;
}
body.cyber-mode #formView input:focus ~ .scan-line,
body.cyber-mode #formView select:focus ~ .scan-line,
body.cyber-mode #formView textarea:focus ~ .scan-line {
  transform: scaleX(1);
  opacity: 1;
}


/* �޸�������ڵ������ */
#entryLeave {
  position: relative;
  z-index: 10; /* �����㼶 */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#entryLeave:active {
  opacity: 0.7;
  transform: scale(0.95);
  transition: transform 0.1s;
}


/* �޸�����ģʽ������ѡ�����Ĳ㼶���� */
body.cyber-mode input[type='datetime-local']::-webkit-calendar-picker-indicator {
  filter: invert(1) drop-shadow(0 0 2px #00f0ff); /* ��ɫ���ӹ��� */
  cursor: pointer;
  opacity: 0.8;
  position: relative;
  z-index: 5;
}
body.cyber-mode input[type='datetime-local'] {
  position: relative;
  z-index: 2; /* ȷ������������ӱ���֮�� */
}


/* ===============================
   1:1 ��ԭ��ͼ��ҳ��ʽ
   =============================== */
#homeView {
  background: #f5f5f5; /* �·���ɫ���� */
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ��ɫͷ������ (Blue Header) */
.blue-header {
  background: #334eb4; /* ��ͼ�е���ɫ */
  padding: 0 16px 20px;
  position: relative;
}
.status-bar-placeholder {
  height: env(safe-area-inset-top, 20px);
}

/* Header Top (У�� + ɨ��) */
.header-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 16px; color: #fff;
}
.campus-name {
  font-size: 18px; font-weight: 500; letter-spacing: 0.5px;
}
.header-scan {
  font-size: 20px; opacity: 0.9;
}

/* Search Bar */
.search-bar-wrap {
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.search-bar-wrap i { color: #999; font-size: 14px; }
.search-bar-wrap input {
  border: none; background: transparent; width: 100%; font-size: 14px; color: #333;
}
.search-bar-wrap input::placeholder { color: #999; }

/* Icon Grid (���������) */
.icon-grid {
  display: flex; justify-content: space-between;
  padding: 0 10px;
}
.icon-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; cursor: pointer;
}
.icon-box {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.icon-box i { font-size: 22px; }
.icon-item span { font-size: 12px; opacity: 0.9; }

/* Grey Content Area */
.grey-content {
  flex: 1; background: #f5f5f5;
}

/* TabBar (�ײ�����) */
.home-tabbar {
  background: #fff;
  height: 50px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: space-around; align-items: center;
  border-top: none; /* ��ͼ�����ޱ߿��ܵ� */
}
.tab-item {
  flex: 1; display: flex; justify-content: center; align-items: center;
  height: 100%; cursor: pointer;
}
.tab-text {
  font-size: 15px; color: #999; font-weight: 400;
}
.tab-item.active .tab-text {
  color: #333; font-weight: 500;
}


/* ===============================
   Restored Home View Styles (Like Screenshot)
   =============================== */
#homeView {
  background: #f6f6f6;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Blue Header Area */
.blue-header {
  background: #334eb4; /* Similar to screenshot blue */
  padding: 0 16px 20px;
  padding-top: calc(env(safe-area-inset-top, 20px) + 10px);
  color: #fff;
}

/* Top Row: School Name & Scan Icon */
.home-top-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.campus-name {
  font-size: 18px; font-weight: 500; letter-spacing: 0.5px;
}
.home-icons {
  font-size: 20px;
}

/* Search Bar */
.home-search {
  background: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.home-search i { color: #999; font-size: 16px; }
.home-search input {
  border: none; background: transparent; padding: 0;
  color: #333; font-size: 15px; width: 100%;
}
.home-search input::placeholder { color: #999; }

/* Grid Icons (White rounded squares) */
.home-grid {
  display: flex; justify-content: space-between;
  padding: 0 8px;
}
.grid-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; cursor: pointer; width: 64px;
}
.grid-icon {
  width: 48px; height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: #333; font-size: 22px;
}
/* Specific icon colors based on screenshot context if needed, 
   but screenshot shows icons inside white boxes. 
   Let's make icons dark grey/black inside white box. */

.grid-item span {
  font-size: 12px; opacity: 0.9;
}

/* Content Placeholder (Grey area) */
.home-content-placeholder {
  flex: 1; background: #f6f6f6;
}

/* Bottom TabBar */
.home-tabbar {
  background: #fff;
  height: 56px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex; justify-content: space-around; align-items: center;
  border-top: 1px solid #eee;
}
.tab-item {
  font-size: 16px; color: #999; font-weight: 500;
  height: 100%; display: flex; align-items: center; padding: 0 10px;
  position: relative;
}
.tab-item.active {
  color: #333; font-weight: 600; font-size: 17px;
}
/* Active indicator if needed, but screenshot is simple text tabs? 
   Actually screenshot bottom has 'Today', 'Message', etc. 
   Let's match the screenshot: simple text or icons? 
   Screenshot bottom is cut off in description but '���� ѶϢ ���� У԰ �ҵ�' text usually implies standard tab bar.
   I will use text only based on typical 'Today Campus' old design or text-heavy design. 
*/


/* Grid Icon Specifics */
#entryLeave .grid-icon i { color: #333; } 
/* Adjust grid layout to match screenshot spacing */
.home-grid { justify-content: space-between; padding: 0 12px; }
.grid-item { width: auto; }


/* ===============================
   Home View Styles (1:1 Replica)
   =============================== */
#homeView {
  background-color: #f5f5f5;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

.home-header {
  background-color: #2563eb; /* Blue matching screenshot */
  color: #fff;
  padding-top: max(env(safe-area-inset-top), 20px);
  padding-bottom: 15px;
}

.home-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

.school-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.scan-icon svg {
  display: block;
}

.home-search-wrapper {
  padding: 5px 15px 15px;
}

.home-search-bar {
  background-color: #fff;
  border-radius: 6px;
  height: 40px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.search-icon {
  color: #999;
  margin-right: 8px;
  font-size: 16px;
}

.search-placeholder {
  color: #999;
  font-size: 14px;
}

.king-kong-area {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 5px;
}

.kk-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  cursor: pointer;
}

.kk-icon-box {
  width: 48px;
  height: 48px;
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.kk-emoji {
  font-size: 24px;
}

.kk-label {
  color: #fff;
  font-size: 12px;
  opacity: 0.9;
}

.home-content {
  flex: 1;
  background-color: #f7f7f7;
}

/* Bottom Tab Bar */
.home-tab-bar {
  background-color: #fff;
  height: calc(50px + env(safe-area-inset-bottom));
  display: flex;
  border-top: 1px solid #eee;
  padding-bottom: env(safe-area-inset-bottom);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  cursor: pointer;
}

.tab-item.active {
  color: #999; /* In screenshot, 'Service' tab looks active but same color or slightly darker */
}
.tab-item.active .tab-label {
  color: #333;
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.tab-label {
  font-size: 10px;
  transform: scale(0.9);
}


/* ===============================
   Home Page Styles (1:1 Restore)
   =============================== */

body.home-page {
  background-color: #f5f5f5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-bottom: 60px; /* Space for bottom nav */
}

.home-header {
  background-color: #335eea;
  padding: 0 16px 16px;
  color: #fff;
}

.status-bar-placeholder {
  height: var(--status-bar-h);
}

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

.university-name {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.5px;
}

.scan-btn {
  background: none;
  border: none;
  color: #fff;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container {
  margin-bottom: 16px;
}

.search-box {
  background-color: #fff;
  border-radius: 8px;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.search-icon {
  margin-right: 8px;
}

.search-box .placeholder {
  color: #999;
  font-size: 14px;
}

.app-grid {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
}

.app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 25%;
}

.app-icon {
  width: 48px;
  height: 48px;
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.app-name {
  color: #fff;
  font-size: 12px;
  opacity: 0.9;
}

.home-content {
  background-color: #f5f5f5;
  min-height: 300px;
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 10px;
  flex: 1;
  height: 100%;
}

.nav-item svg {
  margin-bottom: 2px;
  stroke: #999;
}

.nav-item.active {
  color: #335eea;
}

.nav-item.active svg {
  stroke: #335eea;
}

/* 卡密验证弹窗样式 */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  transition: opacity 0.3s;
}
.modal.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: #fff;
  width: 90%;
  max-width: 320px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes modalPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}
.close-modal {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #999;
  cursor: pointer;
  padding: 0;
}
.modal-body {
  padding: 20px;
}
.modal-desc {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
  text-align: center;
}
.full-width {
  width: 100%;
}
#authMsg {
  text-align: center;
  min-height: 20px;
}

/* 认证视图样式 */
#authView {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #fff;
  z-index: 3000; /* 高于 homeView */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-container {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.auth-header {
  text-align: center;
}
.auth-logo {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(50, 80, 230, 0.2);
}
.auth-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.inline-captcha {
  flex-direction: row !important;
  align-items: center;
}
.inline-captcha input {
  flex: 1;
}
#captchaCanvas {
  width: 100px;
  height: 40px;
  background: #f0f2f5;
  border-radius: 8px;
  cursor: pointer;
  margin-left: 10px;
}
.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}
.auth-switch .link {
  font-size: 14px;
  margin-left: 5px;
  color: #3399fe; /* Force blue color to override global white link */
  opacity: 1;
}

