/* =====================================================================
   页面级样式：首页/详情/会议/履职/我的/风味等
   ===================================================================== */

/* ---------------- 文章详情 ---------------- */
.article-title{font-family:SimSun,STSong,serif;font-size:19.5px;font-weight:700;line-height:1.45;letter-spacing:.01em}
.article-meta{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:9px;font-size:11.5px;color:var(--ink-3)}
.article-badge{font-size:11px;padding:2px 8px;border-radius:99px;border:1px solid #f2dfc3;background:#fdf3e2;color:#a5641f}
.article-badge.ok{color:var(--ok);background:#eaf7f1;border-color:#cdece0}
.article-body{padding:16px var(--page-pad);background:#fff;font-size:15.5px;line-height:1.95;color:#3a2a22}
.article-body p{margin:0 0 12px;text-indent:2em}
.article-body p:last-child{margin-bottom:0}
.article-body img{border-radius:10px;margin:12px auto;max-width:100%}
.article-file{
  display:flex;align-items:center;gap:9px;margin-top:16px;padding:11px 13px;
  background:var(--paper);border:1px solid #f1e3d4;border-radius:10px;
}
.article-file .ic{width:28px;height:28px;flex:0 0 28px;border-radius:7px;display:grid;place-items:center;background:var(--red-soft);color:var(--red);font-size:13px}
.article-file .name{flex:1;min-width:0;font-size:12.5px;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.article-file .act{font-size:12px;font-weight:600;color:var(--red)}

/* ---------------- 会议 / 履职任务卡 ---------------- */
.mt{margin:12px var(--page-pad) 0;background:#fff;border-radius:14px;border:1px solid #f4e7d8;box-shadow:var(--shadow);overflow:hidden}
.mt .top-r{display:flex;gap:10px;padding:13px 14px 10px;align-items:flex-start}
.mt .live{
  width:46px;height:46px;flex:0 0 46px;border-radius:11px;display:grid;place-items:center;
  font-size:12px;font-weight:700;line-height:1.15;text-align:center;color:#fff;
  background:linear-gradient(150deg,#d3473a,#8e1d15);
  /* 兼容：line-clamp 在旧 WebView 无效时用最小高度兜住 */
  min-height:46px;
}
.mt .live.end{background:#f2ece3;color:#a8978a;font-size:11.5px}
.mt .name{flex:1;min-width:0}
.mt .name b{
  display:block;font-size:14px;line-height:1.4;
  /* 标题最多两行，防止长标题把卡片撑高 */
  overflow:hidden;text-overflow:ellipsis;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.mt .name span{display:block;margin-top:3px;font-size:11.5px;color:var(--ink-3);line-height:1.5}
/* 底部行：删除 justify-content:space-between，改为「描述占剩余宽度 + 按钮不压缩」的 flex 写法，
   避免部分 WebView 里「space-between + 子元素为 button」导致按钮被挤出容器 */
.mt .bottom{
  display:flex;align-items:center;gap:10px;
  padding:9px 14px;border-top:1px dashed #f2e4d4;font-size:11.5px;color:var(--ink-2);
}
.mt .bottom > :first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mt .bottom .btn,
.mt .bottom .btn.sm{flex:0 0 auto;width:auto;max-width:none;white-space:nowrap}

/* 会议室 */
.room{background:#1b1210;color:#fff;flex:1;display:flex;flex-direction:column;overflow-y:auto}
.room .head{display:flex;align-items:center;justify-content:space-between;padding:14px var(--page-pad) 12px;font-size:13px}
.room .video{
  position:relative;margin:0 var(--page-pad);aspect-ratio:16/10;border-radius:14px;overflow:hidden;
  background:radial-gradient(60% 60% at 50% 35%,#5d3a2c,#2a1712 75%);
}
.room .video .speaker{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);text-align:center}
.room .video .speaker .face{
  width:76px;height:76px;margin:0 auto;border-radius:50%;display:grid;place-items:center;
  font-family:SimSun,serif;font-size:28px;color:#4a2011;
  background:linear-gradient(150deg,#e9b184,#b76d3c);box-shadow:0 0 0 3px rgba(247,220,164,.55);
}
.room .video .speaker .n{margin-top:10px;font-size:13px}
.room .video .speaker .s{margin-top:2px;font-size:11px;opacity:.65}
.room .video .tag{position:absolute;right:10px;top:10px;font-size:11px;padding:3px 8px;border-radius:99px;background:rgba(255,215,150,.16);border:1px solid rgba(247,220,164,.4)}
.room .members{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:10px var(--page-pad)}
.room .members .m{aspect-ratio:3/4;border-radius:10px;display:grid;place-items:center;font-family:SimSun,serif;font-size:19px;color:#c9a888;background:#2a1a15;border:1px solid #3a2721}
.room .ops{padding:12px var(--page-pad) calc(14px + var(--safe-b));background:linear-gradient(180deg,transparent,#120a08 30%)}
.room .ops-row{display:flex;justify-content:space-around;align-items:flex-end}
.room .ops-row .o{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;opacity:.85}
.room .ops-row .o i{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;font-size:18px;font-style:normal;background:#2f1d17;border:1px solid #4a322a}
.room .ops-row .o.on i{background:#8e1d15;border-color:#c0392b}

/* ---------------- 扫码结果 ---------------- */
.scan-hero{
  position:relative;padding:14px var(--page-pad) 30px;text-align:center;color:#FFF3DF;
  background:linear-gradient(160deg,#a3221d,#7a1512);
}
.scan-hero .badge{
  width:78px;height:78px;margin:24px auto 0;border-radius:50%;display:grid;place-items:center;
  font-size:34px;color:#5c3a08;
  background:radial-gradient(circle at 34% 28%,#FBE3A6,#D9A441 60%,#B07D1F);
  box-shadow:0 0 0 4px rgba(247,220,164,.28),0 12px 30px rgba(40,6,4,.35);
}
.scan-hero h2{margin:16px 0 0;font-family:SimSun,serif;font-size:21px;letter-spacing:.08em}
.scan-hero .sub{margin-top:6px;font-size:12.5px;color:#F3D5B8}
.scan-hero .pills{display:inline-flex;gap:8px;margin-top:10px;font-size:11px}
.scan-hero .pills span{border:1px solid rgba(247,220,164,.5);border-radius:99px;padding:2px 9px}

/* ---------------- 扫码确认页 ---------------- */
.scan-frame{
  position:relative;width:100%;max-width:240px;aspect-ratio:1/1;margin:0 auto;
  border-radius:14px;overflow:hidden;
  background:radial-gradient(70% 70% at 50% 40%,#3a2019,#1b1210 78%);
}
.scan-frame .corner{position:absolute;width:26px;height:26px;border:3px solid var(--gold-light);border-radius:3px}
.scan-frame .corner.tl{left:12px;top:12px;border-right:0;border-bottom:0}
.scan-frame .corner.tr{right:12px;top:12px;border-left:0;border-bottom:0}
.scan-frame .corner.bl{left:12px;bottom:12px;border-right:0;border-top:0}
.scan-frame .corner.br{right:12px;bottom:12px;border-left:0;border-top:0}
.scan-frame .scan-line{
  position:absolute;left:14%;right:14%;top:20%;height:2px;border-radius:2px;
  background:linear-gradient(90deg,transparent,#F7DCA4,transparent);
  box-shadow:0 0 12px rgba(247,220,164,.9);
  animation:scanmove 2.2s ease-in-out infinite;
}
@keyframes scanmove{0%,100%{top:20%}50%{top:76%}}
.scan-frame .scan-tip{position:absolute;left:0;right:0;bottom:22px;text-align:center;color:#F3D5B8}
.scan-frame .scan-tip b{display:block;font-size:13px}
.scan-frame .scan-tip span{display:block;margin-top:4px;font-size:11px;line-height:1.6;opacity:.75}

/* ---------------- 我的 ---------------- */
/* 头部只负责身份信息，不再用负 margin 让统计卡上浮：
   上浮会导致统计卡与头部重叠，滚动时上半截被头部裁掉（截图问题的根因）。 */
.mine-hero{padding-bottom:20px}
.mine-scroll{padding-top:14px}
.mine-stat{margin:0 var(--page-pad);position:relative;z-index:1}

/* ---------------- 履职风采卡片 ---------------- */
.style-card{margin-bottom:11px;background:#fff;border-radius:13px;border:1px solid #f4e7d8;box-shadow:0 4px 14px rgba(120,60,30,.06);overflow:hidden}
.style-card .cover{
  height:118px;display:grid;place-items:center;font-family:SimSun,serif;font-size:32px;
  color:rgba(255,227,181,.9);background:linear-gradient(150deg,#c9483a,#8e1d15);
}
.style-card .cover img{width:100%;height:100%;object-fit:cover}
.style-card .txt{padding:11px 13px}
.style-card .txt b{font-size:14.5px;line-height:1.4}
.style-card .txt .m{margin-top:5px;font-size:11.5px;color:var(--ink-3)}

/* ---------------- 代表卡 ---------------- */
.rep-card{display:flex;gap:11px;margin-top:10px;padding:10px;background:#fff;border-radius:13px;border:1px solid #f4e7d8}
.rep-card .ph{
  width:52px;height:64px;flex:0 0 52px;border-radius:8px;overflow:hidden;display:grid;place-items:center;
  font-family:SimSun,serif;font-size:17px;color:#572614;background:linear-gradient(150deg,#e9b184,#c07a44);
}
.rep-card .ph img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}
.rep-card .info{flex:1;min-width:0}
.rep-card .info b{font-size:13.5px;font-weight:600}
.rep-card .info .sub{margin-top:2px;font-size:11.5px;color:var(--ink-3)}
.rep-card .info .tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}
.rep-card .info .tags span{font-size:10.5px;padding:1px 6px;border-radius:4px;background:#fdf1e3;color:#a0642a;border:1px solid #f2e0c8}

/* 代表详情竖版照片 */
.rep-photo{width:78px;height:104px;flex:0 0 78px;border-radius:10px;overflow:hidden;display:grid;place-items:center;
  font-family:SimSun,serif;font-size:26px;color:#572614;background:linear-gradient(150deg,#e9b184,#c07a44);
  box-shadow:inset 0 0 0 1.5px rgba(247,220,164,.6)}
.rep-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}

/* ---------------- 代表详情（对齐参考截图） ---------------- */
.rep-head{display:flex;gap:14px;padding:18px 16px 20px;border-bottom:1px solid #f3e8db}
.rep-head .left{flex:1;min-width:0}
.rep-head h1{margin:0 0 10px;font-size:25px;font-weight:700;letter-spacing:.02em;line-height:1.2}
.rep-head .line{margin-top:3px;font-size:14px;color:#3a2a22;line-height:1.55}
.rep-head .facts{display:grid;grid-template-columns:1fr 1fr;gap:7px 10px;margin:14px 0 0}
.rep-head .facts > div{display:flex;font-size:13px;color:#5b4a3f;min-width:0}
.rep-head .facts dt{margin:0;color:var(--ink-3);white-space:nowrap}
.rep-head .facts dd{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 证件照 3:4，与后台/大屏的裁切锚点一致 */
.rep-head .photo{
  width:96px;height:128px;flex:0 0 96px;border-radius:6px;overflow:hidden;
  display:grid;place-items:center;font-family:SimSun,serif;font-size:34px;color:#572614;
  background:linear-gradient(150deg,#e9b184,#c07a44);
  box-shadow:inset 0 0 0 1px rgba(160,120,80,.25);
}
.rep-head .photo img{width:100%;height:100%;object-fit:cover;object-position:50% 22%}

/* 代表二维码卡片 */
.qr-card{text-align:center;padding:20px 16px 18px}
.qr-title{font-size:16px;font-weight:700;letter-spacing:.06em}
.qr-sub{min-height:17px;margin-top:4px;font-size:12px;color:var(--ink-3)}
.qr-box{position:relative;width:200px;height:200px;margin:14px auto 0;display:grid;place-items:center}
.qr-box img{width:200px;height:200px;display:block;border-radius:4px}
.qr-box .qr-logo{
  position:absolute;left:50%;top:50%;width:34px;height:34px;transform:translate(-50%,-50%);
  border-radius:50%;overflow:hidden;background:#fff;box-shadow:0 0 0 3px #fff;
}
.qr-box .qr-empty{
  width:100%;height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;
  border:1px dashed #e2cfb8;border-radius:10px;color:var(--ink-3);font-size:13px;line-height:1.9;background:#fdfaf5;
}
.qr-box .qr-empty span{font-size:11.5px}
.qr-hint{display:flex;align-items:center;justify-content:center;gap:5px;margin-top:10px;font-size:11.5px;color:var(--ink-3)}
.qr-hint .wx{width:15px;height:15px;border-radius:50%;display:grid;place-items:center;font-size:9px;color:#fff;background:#07C160}
.qr-actions{margin-top:12px;display:flex;flex-direction:column;gap:10px}
.qr-actions .duo{display:flex;gap:10px}
.qr-actions .btn{height:42px;font-size:14px}
.qr-meta{font-size:11.5px;color:var(--ink-3)}

/* 履职记录：分类 tab + 列表 */
.duty-tabs{display:flex;gap:4px;overflow-x:auto;padding:6px 12px 0;border-bottom:1px solid #f3e8db;scrollbar-width:none}
.duty-tabs::-webkit-scrollbar{display:none}
.duty-tabs button{
  position:relative;flex:none;padding:12px 10px 11px;font-size:15px;font-weight:600;
  color:var(--ink-2);white-space:nowrap;
}
.duty-tabs button.on{color:var(--ink)}
.duty-tabs button.on::after{
  content:"";position:absolute;left:10px;right:10px;bottom:0;height:3px;border-radius:2px;
  background:linear-gradient(90deg,#d3473a,#a3221d);
}
.duty-tabs button i{
  margin-left:4px;font-style:normal;font-size:10.5px;font-weight:600;color:var(--ink-3);
  background:#f4ece2;border-radius:99px;padding:1px 6px;vertical-align:1px;
}
.duty-records{padding:2px 16px 8px}
.duty-record{display:flex;align-items:flex-start;gap:10px;padding:14px 0;border-bottom:1px solid #f5ebdf}
.duty-record:last-child{border-bottom:0}
.duty-record .txt{flex:1;min-width:0}
.duty-record .txt b{display:block;font-size:15px;font-weight:500;line-height:1.45;color:#2b1612}
.duty-record .txt span{display:block;margin-top:6px;font-size:12px;color:var(--ink-3)}
.duty-record .type{
  flex:none;align-self:flex-start;margin-top:1px;padding:4px 9px;border-radius:4px;
  font-size:11.5px;color:var(--ink-2);background:#f6f1ea;border:1px solid #ece1d4;white-space:nowrap;
}

/* 站点横滑 */
.station-rail{display:flex;gap:10px;padding:10px var(--page-pad) 0;overflow-x:auto;scrollbar-width:none}
.station-rail::-webkit-scrollbar{display:none}
.station{flex:0 0 168px;background:#fff;border-radius:13px;border:1px solid #f4e7d8;box-shadow:0 4px 14px rgba(120,60,30,.06);overflow:hidden}
.station .ph{height:82px;display:grid;place-items:center;font-family:SimSun,serif;color:#ffe3b5;background:linear-gradient(150deg,#c9483a,#8e1d15)}
.station .txt{padding:9px 10px}
.station .txt b{display:block;font-size:12.5px}
.station .txt span{font-size:11px;color:var(--ink-3)}

/* ---------------- 登录 / 门禁 ---------------- */
.auth{flex:1;display:flex;flex-direction:column;overflow-y:auto;color:#FFF3DF;
  background:radial-gradient(120% 70% at 50% 0%,#d64a33 0%,#b3301f 32%,#8e1d15 62%,#6e1512 100%)}
.auth .brand{padding-top:72px;text-align:center}
.auth .brand .seal{width:66px;height:66px;margin:0 auto;border-radius:50%;display:grid;place-items:center;
  background:rgba(255,240,214,.1);box-shadow:0 0 0 1px rgba(247,220,164,.5),0 10px 30px rgba(60,8,6,.35)}
.auth .brand h1{margin:14px 0 0;font-family:SimSun,STSong,serif;font-size:22px;letter-spacing:.12em}
.auth .brand .en{margin-top:4px;font-size:11.5px;letter-spacing:.34em;color:#F3D5B8}
.auth .panel{margin:34px 20px 0;padding:20px 18px 18px;background:#fff;border-radius:18px;color:var(--ink);box-shadow:0 18px 40px rgba(50,8,6,.28)}
.auth .panel h2{margin:0;font-size:16px}
.auth .panel .hint{margin-top:3px;font-size:12px;color:var(--ink-3)}
.auth .code-row{display:flex;justify-content:space-between;align-items:center}
.auth .code-btn{font-size:12px;font-weight:600;color:var(--red)}
.auth .code-btn[disabled]{color:var(--ink-3)}
.auth .divider{display:flex;align-items:center;gap:10px;margin:16px 0 12px;font-size:11px;color:#cbb9a8}
.auth .divider::before,.auth .divider::after{content:"";flex:1;height:1px;background:#f0e3d4}
.auth .wechat{justify-content:flex-start;padding-left:16px}
.auth .wechat .w{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:#07C160;color:#fff}
.auth .to-public{margin-top:16px;text-align:center;font-size:12.5px;color:var(--ink-2)}
.auth .to-public b{color:var(--red)}
.auth .legal{margin:auto 0 28px;padding-top:26px;text-align:center;font-size:11px;color:rgba(255,236,210,.72)}
.auth .legal u{text-underline-offset:3px}

/* 门禁引导 */
.gate{flex:1;overflow-y:auto;background:#f6efe6}
.gate .card{margin-top:14px}
.gate .lock-ic{
  width:52px;height:52px;margin:0 auto;border-radius:50%;display:grid;place-items:center;font-size:22px;
  background:linear-gradient(150deg,#fdf0dd,#f3ddb8);border:1px solid #efd6ad;color:#b3261e;
}
.gate .head{padding:16px 15px 14px;text-align:center;border-bottom:1px solid #f6ebdd}
.gate .head b{display:block;margin-top:10px;font-size:16px}
.gate .head span{display:block;margin-top:5px;font-size:12px;line-height:1.7;color:var(--ink-3)}
.gate .can{padding:12px 15px 4px;font-size:12px;color:var(--ink-3)}
.gate .item{display:flex;gap:8px;align-items:flex-start;padding:7px 15px;font-size:13px;color:#3a2a22}
.gate .item i{font-style:normal;font-size:12px;color:var(--ok);margin-top:2px}
.gate .note{display:flex;gap:6px;align-items:center;padding:12px 15px;border-top:1px dashed #f2e4d4;font-size:11.5px;color:var(--ink-2)}
