/* ============================================================
   扫码签到系统 SignIn - PC端样式 v2（高端大气版）
   主题色：金色 #b8860b
   修改时间：2026-09-12
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei","PingFang SC",sans-serif; background: #f6f4ee; color: #333; font-size: 14px; }

/* ---------- 容器 ---------- */
.signin-wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 60px; }
.signin-card { background: #fff; border-radius: 12px; box-shadow: 0 3px 16px rgba(0,0,0,.07); padding: 24px; margin-bottom: 18px; border: 1px solid #f0e8d5; transition: box-shadow .25s, transform .25s; }
.signin-card:hover { box-shadow: 0 10px 26px rgba(184,134,11,.14); }

/* ---------- 面包屑 ---------- */
.signin-crumb { font-size: 15px; color: #999; padding: 14px 2px 4px; }
.signin-crumb a { color: #999; text-decoration: none; }
.signin-crumb a:hover { color: #b8860b; }

/* ---------- 页头横幅 ---------- */
.signin-top { position: relative; text-align: center; padding: 46px 24px 38px; border-radius: 14px; margin-bottom: 20px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #1e1a10 0%, #3a2f16 48%, #8a6a1d 100%);
  box-shadow: 0 10px 28px rgba(30,26,16,.28); }
.signin-top::before { content: ""; position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(212,165,42,.38), transparent 70%); }
.signin-top::after { content: ""; position: absolute; bottom: -90px; left: -50px; width: 280px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(230,192,74,.2), transparent 70%); }
.signin-top h1 { position: relative; font-size: 32px; font-weight: 700; letter-spacing: 3px; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.signin-top .sub { position: relative; font-size: 15px; opacity: .92; letter-spacing: 1px; line-height: 1.8; }
.signin-top .time { position: relative; display: inline-block; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); border-radius: 22px; padding: 6px 20px; font-size: 14px; margin-top: 14px; }

/* ---------- 两栏布局 ---------- */
.signin-cols { display: flex; gap: 18px; align-items: flex-start; }
.signin-col-main { flex: 1; min-width: 0; }
.signin-col-side { width: 360px; flex-shrink: 0; }

/* ---------- 信息行 ---------- */
.signin-info-row { display: flex; font-size: 14px; color: #666; padding: 9px 0; border-bottom: 1px dashed #ece2ca; line-height: 1.8; }
.signin-info-row:last-child { border-bottom: none; }
.signin-info-row .label { flex-shrink: 0; width: 90px; color: #b8860b; font-weight: 700; }
.signin-info-row .val { flex: 1; color: #555; }

/* ---------- 状态徽章 ---------- */
.signin-tag { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.signin-tag-on { background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; box-shadow: 0 2px 8px rgba(184,134,11,.35); }
.signin-tag-wait { background: #fff3e0; color: #e65100; border: 1px solid #ffd9a0; }
.signin-tag-off { background: #f0f0f0; color: #999; border: 1px solid #e2e2e2; }

/* ---------- 表单 ---------- */
.signin-form-item { margin-bottom: 18px; }
.signin-form-item label { display: block; font-size: 14px; color: #555; margin-bottom: 7px; font-weight: 600; }
.signin-input { width: 100%; height: 42px; border: 1px solid #ddd; border-radius: 8px; padding: 0 14px; font-size: 14px; background: #fafafa; transition: border-color .2s, box-shadow .2s; }
.signin-input:focus { outline: none; border-color: #b8860b; background: #fff; box-shadow: 0 0 0 3px rgba(184,134,11,.12); }

/* ---------- 语音签到 ---------- */
.signin-voice { margin-top: 8px; }
.signin-voice-tip { font-size: 14px; color: #888; margin-bottom: 12px; line-height: 1.7; }
.signin-rec-btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; border: none; border-radius: 28px; padding: 12px 32px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(184,134,11,.35); transition: transform .2s, box-shadow .2s; }
.signin-rec-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(184,134,11,.45); }
.signin-rec-btn.disabled { background: #ccc; cursor: not-allowed; box-shadow: none; opacity: .45; }
.signin-rec-btn .signin-rec-timer { font-variant-numeric: tabular-nums; }
.signin-rec-btn.recording { background: linear-gradient(135deg,#c62828,#e53935); animation: signin-pulse 1s infinite; }
@keyframes signin-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(198,40,40,.4);} 50% { box-shadow: 0 0 0 12px rgba(198,40,40,0);} }
.signin-result { margin-top: 14px; padding: 12px 16px; border-radius: 8px; font-size: 14px; line-height: 1.7; }
.signin-result-ok { background: #f0faf0; color: #2e7d32; border: 1px solid #cde8cd; }
.signin-result-fail { background: #fdecea; color: #c62828; border: 1px solid #f5c6c0; }
.signin-result-wait { background: #fff8ec; color: #a0750a; border: 1px solid #f0dfb8; }
.signin-result-idle { background: #fafafa; color: #888; border: 1px solid #eee; }
.signin-submit-btn { display: inline-block; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; border: none; border-radius: 28px; padding: 12px 36px; font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(184,134,11,.35); transition: transform .2s, box-shadow .2s; }
.signin-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(184,134,11,.45); }

/* ---------- 签到成功 ---------- */
.signin-success { text-align: center; padding: 26px 10px 14px; }
.signin-success .icon { width: 72px; height: 72px; line-height: 72px; border-radius: 50%; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; font-size: 36px; margin: 0 auto 14px; box-shadow: 0 8px 20px rgba(184,134,11,.35); }
.signin-success .again { color: #b8860b; font-size: 14px; cursor: pointer; text-decoration: underline; }

/* ---------- 列表 ---------- */
.signin-list-head { display: flex; align-items: center; justify-content: space-between; font-size: 16px; font-weight: 700; color: #2b2416; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid #f0e8d5; }
.signin-list-head span { position: relative; padding-left: 14px; }
.signin-list-head span::before { content: ""; position: absolute; left: -15px; top: 50%; transform: translateY(-50%); width: 5px; height: 18px; border-radius: 3px; background: #b8860b; }
.signin-list-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; border-bottom: 1px dashed #f0ece0; font-size: 14px; }
.signin-list-item:last-child { border-bottom: none; }
.signin-list-item .name { color: #444; }
.signin-list-item .time { color: #999; font-size: 13px; }
.signin-list-item .st { font-size: 13px; }
.st-pass { color: #2e7d32; }
.st-wait { color: #a0750a; }
.st-fail { color: #c62828; }

/* ---------- 二维码卡 ---------- */
.signin-qr { text-align: center; }
.signin-qr img { border-radius: 10px; border: 2px solid #f0e8d5; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.signin-qr .query-code { display: inline-block; margin-top: 12px; padding: 6px 22px; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 4px; border-radius: 22px; box-shadow: 0 4px 12px rgba(184,134,11,.3); }

/* ---------- 项目卡片 ---------- */
.signin-project-card { display: block; text-decoration: none; color: #333; }
.signin-project-card .pname { font-size: 18px; font-weight: 700; color: #2b2416; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.signin-project-card .pmeta { margin-top: 10px; font-size: 14px; color: #888; line-height: 1.8; }
.signin-project-card .pfoot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #f0ece0; }
.signin-project-card .pfoot .num { font-size: 14px; color: #b8860b; font-weight: 700; }
.signin-project-card .pfoot .go { display: inline-block; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; padding: 8px 26px; border-radius: 22px; font-size: 14px; font-weight: 600; box-shadow: 0 3px 10px rgba(184,134,11,.3); transition: transform .2s, box-shadow .2s; }
.signin-project-card:hover .pfoot .go { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(184,134,11,.45); }

/* ---------- 查询入口大卡 ---------- */
.signin-query-entry { display: block; text-decoration: none; color: #333; background: linear-gradient(135deg,#fdf8ec,#fffdf5); border: 1px solid #e6cf9c !important; }
.signin-query-entry .q-icon { width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0; box-shadow: 0 4px 12px rgba(184,134,11,.3); }
.signin-query-entry .q-btn { display: inline-block; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; font-size: 14px; font-weight: 600; padding: 11px 30px; border-radius: 24px; box-shadow: 0 4px 12px rgba(184,134,11,.35); flex-shrink: 0; transition: transform .2s; }
.signin-query-entry:hover .q-btn { transform: translateY(-2px); }

/* ---------- 空状态 ---------- */
.signin-empty { text-align: center; padding: 40px 10px; color: #999; }

.signin-empty p { font-size: 15px; }

/* ---------- 我的签到 ---------- */
.signin-my-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; border-bottom: 1px dashed #f0ece0; }
.signin-my-item .t { font-size: 15px; color: #444; }
.signin-my-item .d { font-size: 13px; color: #999; }

/* ---------- 分页 ---------- */
.signin-more { display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 24px; }
.signin-btn { display: inline-block; background: linear-gradient(135deg,#b8860b,#d4a52a); color: #fff; padding: 9px 26px; border-radius: 22px; font-size: 14px; text-decoration: none; box-shadow: 0 3px 10px rgba(184,134,11,.3); transition: transform .2s, box-shadow .2s; }
.signin-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 16px rgba(184,134,11,.45); }
.signin-btn-plain { background: #faf6ee; color: #a0750a; border: 1px solid #e6cf9c; box-shadow: none; }
.signin-btn-plain:hover { background: #f5ecd8; box-shadow: none; }

/* ---------- 页脚说明 ---------- */
.signin-note { text-align: center; font-size: 13px; color: #b0a890; margin-top: 8px; }

/* ---------- 签到记录表格 ---------- */
.signin-record-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 6px; }
.signin-record-table thead th { background: linear-gradient(135deg,#2b2416,#4a3c1e); color: #f5e9c9; font-weight: 600; padding: 12px 16px; text-align: center; border: 1px solid #3a2f16; }
.signin-record-table thead th:first-child { border-radius: 8px 0 0 0; }
.signin-record-table thead th:last-child { border-radius: 0 8px 0 0; }
.signin-record-table tbody td { padding: 11px 16px; text-align: center; border: 1px solid #f0e8d5; color: #555; }
.signin-record-table tbody tr:nth-child(odd) { background: #fdfaf3; }
.signin-record-table tbody tr:hover { background: #f8f1de; }
.signin-record-table .rec-name { color: #2b2416; font-weight: 600; }
.signin-record-table .rec-time { color: #999; font-variant-numeric: tabular-nums; }
.signin-record-table .st { font-size: 13px; }

/* ========== 二维码放大弹窗 ========== */
.qr-zoom-mask { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, 0.45); display: flex; align-items: center; justify-content: center; }
.qr-zoom-box { position: relative; background: #fff; border-radius: 14px; padding: 26px 30px 22px; text-align: center; box-shadow: 0 12px 40px rgba(0,0,0,.35); max-width: 92vw; }
.qr-zoom-box img { width: 320px; height: 320px; max-width: 78vw; max-height: 60vh; object-fit: contain; display: block; margin: 0 auto; border-radius: 8px; }
.qr-zoom-box .query-code { font-size: 16px; letter-spacing: 1px; color: #333; margin-top: 10px; font-weight: 600; }
.qr-zoom-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; line-height: 28px; border-radius: 50%; border: none; background: #f0ece0; color: #6b5b38; font-size: 18px; cursor: pointer; }
.qr-zoom-close:hover { background: #b8860b; color: #fff; }

/* ===== 防乱码：CSS 图标替代 emoji ===== */
.q-icon {
	width: 20px;
	height: 20px;
	border: 3px solid #b8860b;
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
}
.q-icon::after {
	content: '';
	position: absolute;
	right: -7px;
	bottom: -5px;
	width: 9px;
	height: 3px;
	background: #b8860b;
	border-radius: 2px;
	transform: rotate(45deg);
}
.signin-empty .ico {
	width: 46px;
	height: 46px;
	border: 3px solid #c9a86a;
	border-radius: 50%;
	position: relative;
	margin: 0 auto 10px;
}
.signin-empty .ico::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 8px;
	width: 3px;
	height: 14px;
	background: #c9a86a;
	border-radius: 2px;
}
.signin-empty .ico::after {
	content: '';
	position: absolute;
	left: 22px;
	top: 14px;
	width: 10px;
	height: 3px;
	background: #c9a86a;
	border-radius: 2px;
}
.query-lock {
	width: 40px;
	height: 32px;
	border: 3px solid #b8860b;
	border-radius: 6px;
	position: relative;
	margin: 0 auto;
}
.query-lock::before {
	content: '';
	position: absolute;
	top: -15px;
	left: 6px;
	width: 22px;
	height: 17px;
	border: 3px solid #b8860b;
	border-bottom: none;
	border-radius: 11px 11px 0 0;
}
.query-lock::after {
	content: '';
	position: absolute;
	top: 10px;
	left: 16px;
	width: 5px;
	height: 9px;
	background: #b8860b;
	border-radius: 2px;
}

/* ========== 班级签到页动态时间戳 ========== */
.signin-now {
    text-align: center;
    margin: 4px 0 18px;
    padding: 14px 0 10px;
    border-top: 1px dashed #e8dcbf;
    border-bottom: 1px dashed #e8dcbf;
}
.signin-now .now-date {
    font-size: 26px;
    font-weight: 700;
    color: #b8860b;
    letter-spacing: 1px;
}
.signin-now .now-time {
    font-size: 30px;
    font-weight: 700;
    color: #b8860b;
    font-family: "Consolas", "Courier New", monospace;
    margin-left: 10px;
}
.signin-now small {
    display: block;
    font-size: 13px;
    color: #999;
    margin-top: 4px;
}

/* 空状态图标：CSS 时钟（替代 emoji，保留样式） */
.signin-empty .ico {
	width: 46px;
	height: 46px;
	border: 3px solid #c9a86a;
	border-radius: 50%;
	position: relative;
	margin: 0 auto 10px;
}
.signin-empty .ico::before {
	content: '';
	position: absolute;
	left: 22px;
	top: 8px;
	width: 3px;
	height: 14px;
	background: #c9a86a;
	border-radius: 2px;
	transform-origin: bottom center;
}
.signin-empty .ico::after {
	content: '';
	position: absolute;
	left: 22px;
	top: 14px;
	width: 10px;
	height: 3px;
	background: #c9a86a;
	border-radius: 2px;
	transform-origin: left center;
}
