统一样式

This commit is contained in:
biss committed 2026-04-26 10:28:58 +08:00
1 parent ef001c7460
commit c54e5209af
7 files changed
+1813 -1024

No files matched your search

+137 -173
View File
@@ -3,160 +3,84 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>荣誉证书核验 - 详细信息</title> <title>证书核验详情</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Orbitron:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../css/tech-query.css">
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<style>
:root { --primary: #1a73e8; }
body {
margin: 0; padding: 0; background: #f0f2f5;
display: flex; flex-direction: column; align-items: center;
min-height: 100vh;
font-family: system-ui, -apple-system, sans-serif;
}
/* 顶部工具栏 */
.toolbar {
width: 100%; padding: 15px; background: white;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
position: sticky; top: 0; z-index: 100;
display: flex; justify-content: center; gap: 15px;
}
.btn {
padding: 8px 20px; border-radius: 6px; cursor: pointer;
font-weight: 500; text-decoration: none; font-size: 14px; border: none;
}
.btn-print { background: var(--primary); color: white; }
.btn-back { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
/* 主体内容 */
.main-content {
width: 100%; max-width: 850px;
display: flex; flex-direction: column; padding: 20px;
}
/* 证书预览区域 */
#cert-viewport {
width: 100%; background: white;
box-shadow: 0 10px 30px rgba(0,0,0,0.1);
margin-bottom: 40px;
display: flex; justify-content: center;
cursor: pointer;
position: relative;
min-height: 400px;
align-items: center;
}
#cert-img { width: 100%; height: auto; display: none; }
/* 点击加载提示 */
.click-hint {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #64748b;
font-size: 16px;
}
.click-hint-icon {
font-size: 48px;
margin-bottom: 10px;
color: var(--primary);
}
/* 详细信息表卡片 */
.info-card {
width: 100%; background: white; border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.05);
overflow: hidden; margin-bottom: 40px;
}
.info-header {
background: #f8fafc; padding: 15px 20px;
border-bottom: 1px solid #edf2f7; font-weight: 600;
display: flex; justify-content: space-between;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
padding: 16px 20px; text-align: left; border-bottom: 1px solid #f1f5f9;
font-size: 14px;
}
.info-table th { color: #64748b; width: 25%; font-weight: 500; background: #fafbfc; }
.info-table td { color: #1e293b; }
.status-tag { padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.status-valid { background: #dcfce7; color: #166534; }
/* --- 核心修改:打印分页样式 --- */
@media print {
body { background: white; }
.toolbar, .footer { display: none !important; }
.main-content { padding: 0; max-width: none; width: 100%; }
/* 第一页:证书 */
#cert-viewport {
box-shadow: none;
margin: 0;
width: 100%;
page-break-after: always; /* 旧版浏览器兼容 */
break-after: page; /* 现代浏览器:强制在此元素后分页 */
}
/* 第二页:详情表 */
.info-card {
box-shadow: none;
border: 1px solid #e2e8f0;
margin: 0;
break-before: page; /* 确保详情表从新页面开始 */
}
.info-table th { background: #f8fafc !important; -webkit-print-color-adjust: exact; }
@page {
size: A4 portrait;
margin: 10mm; /* 设置页边距 */
}
}
.footer { padding: 40px 0; text-align: center; color: #94a3b8; font-size: 13px; }
</style>
</head> </head>
<body> <body>
<main class="detail-shell">
<div class="toolbar"> <div class="top-actions">
<a href="javascript:history.back()" class="btn btn-back">返回查询</a> <a href="javascript:history.back()" class="tech-link-button secondary">返回查询</a>
<button class="btn btn-print" onclick="window.print()">打印证书及明细</button> <div class="top-actions-group">
</div> <button type="button" class="tech-button secondary" onclick="loadCertificateImage()">加载证书图片</button>
<button type="button" class="tech-button" onclick="printCertificate()">打印证书与明细</button>
<div class="main-content">
<div id="cert-viewport" onclick="loadCertificateImage()">
<img id="cert-img" alt="荣誉证书原件">
<div class="click-hint" id="click-hint">
<div class="click-hint-icon">🖼️</div>
<div>点击查看证书图片</div>
</div> </div>
</div> </div>
<div class="info-card" id="info-card" style="display: none;"> <section class="detail-grid">
<div class="info-header"> <section class="preview-panel">
<span>证书明细</span> <div class="section-kicker">Certificate Preview</div>
<span id="display-status"></span> <h1 class="section-heading">证书原件预览</h1>
</div> <p class="section-copy">点击下方预览区域或使用顶部按钮,即可加载对应证书原件图片。</p>
<table class="info-table"> <div id="cert-viewport" class="certificate-stage" onclick="loadCertificateImage()">
<tr><th>证书编号</th><td id="d-cert-number">-</td></tr> <img id="cert-img" alt="证书原件">
<tr><th>持有人姓名</th><td id="d-holder-name">-</td></tr> <div class="certificate-hint" id="click-hint">
<tr><th>荣誉名称</th><td id="d-honor-title">-</td></tr> <span class="hint-orb">证</span>
<tr><th>颁发日期</th><td id="d-issue-date">-</td></tr> <strong>点击加载证书图片</strong>
<tr><th>颁发机构</th><td id="d-issuer">-</td></tr> <span>原件图片将从当前证书编号对应的 `img/*.svg` 文件中读取。</span>
<tr><th>详细描述</th><td id="d-desc">-</td></tr> </div>
<tr><th>系统备注</th><td id="d-remarks">-</td></tr> </div>
<tr><th>核验时间</th><td id="d-verify-time">-</td></tr> </section>
</table>
</div>
</div>
<footer class="footer"> <aside class="summary-panel">
<p>© 2026 BI</p> <div class="section-kicker">Verify Status</div>
<h2 class="section-heading">核验摘要</h2>
<p class="section-copy">证书基础信息与系统核验状态会在这里同步展示。</p>
<div class="summary-stack">
<div class="summary-tile">
<span class="summary-label">证书编号</span>
<div class="summary-value emphasis" id="summary-cert-number">-</div>
</div>
<div class="summary-tile">
<span class="summary-label">持有人</span>
<div class="summary-value" id="summary-holder-name">-</div>
</div>
<div class="summary-tile">
<span class="summary-label">核验状态</span>
<div id="display-status"><span class="status-pill pending">待核验</span></div>
</div>
<div class="summary-tile">
<span class="summary-label">最近核验时间</span>
<div class="summary-value" id="summary-verify-time">-</div>
</div>
</div>
</aside>
</section>
<section class="detail-panel" id="info-card" style="display: none; margin-top: 18px;">
<div class="section-kicker">Certificate Detail</div>
<h2 class="section-heading">证书明细信息</h2>
<p class="section-copy">以下信息由证书数据库实时读取,用于核验与归档展示。</p>
<div class="info-table-shell">
<table class="info-table">
<tr><th>证书编号</th><td id="d-cert-number">-</td></tr>
<tr><th>持有人姓名</th><td id="d-holder-name">-</td></tr>
<tr><th>荣誉名称</th><td id="d-honor-title">-</td></tr>
<tr><th>颁发日期</th><td id="d-issue-date">-</td></tr>
<tr><th>颁发机构</th><td id="d-issuer">-</td></tr>
<tr><th>详细描述</th><td id="d-desc">-</td></tr>
<tr><th>系统备注</th><td id="d-remarks">-</td></tr>
<tr><th>核验时间</th><td id="d-verify-time">-</td></tr>
</table>
</div>
</section>
</main>
<footer class="page-footer">
<p>© 2026 BI Intelligent Query Interface</p>
</footer> </footer>
<script> <script>
@@ -175,56 +99,55 @@
.eq('id', id) .eq('id', id)
.single(); .single();
if (error || !data) throw error; if (error || !data) throw error || new Error('未找到证书信息');
// 填充数据 const verifyTime = new Date().toLocaleString('zh-CN');
document.getElementById('info-card').style.display = 'block'; document.getElementById('info-card').style.display = 'block';
document.getElementById('d-cert-number').innerText = data.cert_number; document.getElementById('d-cert-number').innerText = data.cert_number || '-';
document.getElementById('d-holder-name').innerText = data.holder_name; document.getElementById('d-holder-name').innerText = data.holder_name || '-';
document.getElementById('d-honor-title').innerText = data.honor_title; document.getElementById('d-honor-title').innerText = data.honor_title || '-';
document.getElementById('d-issue-date').innerText = data.issue_date || '-'; document.getElementById('d-issue-date').innerText = data.issue_date || '-';
document.getElementById('d-issuer').innerText = data.issuer || '官方授权机构'; document.getElementById('d-issuer').innerText = data.issuer || '官方授权机构';
document.getElementById('d-desc').innerText = data.description || '官方荣誉认证'; document.getElementById('d-desc').innerText = data.description || '官方荣誉认证';
document.getElementById('d-remarks').innerText = data.remarks || '无'; document.getElementById('d-remarks').innerText = data.remarks || '无';
document.getElementById('d-verify-time').innerText = new Date().toLocaleString(); document.getElementById('d-verify-time').innerText = verifyTime;
document.getElementById('summary-cert-number').innerText = data.cert_number || '-';
document.getElementById('summary-holder-name').innerText = data.holder_name || '-';
document.getElementById('summary-verify-time').innerText = verifyTime;
if (data.status === 'valid') { if (data.status === 'valid') {
document.getElementById('display-status').innerHTML = '<span class="status-tag status-valid">有效</span>'; document.getElementById('display-status').innerHTML = '<span class="status-pill done">有效</span>';
} else if (data.status === 'invalid') {
document.getElementById('display-status').innerHTML = '<span class="status-pill pending">无效</span>';
} else {
document.getElementById('display-status').innerHTML = '<span class="status-pill pending">待核验</span>';
} }
if (data.status === 'invalid') {
document.getElementById('display-status').innerHTML = '<span class="status-tag">无效</span>';
}
// 图片改为点击加载,初始不加载
window.currentCertNumber = data.cert_number; window.currentCertNumber = data.cert_number;
} catch (e) { } catch (e) {
console.error("加载失败:", e); console.error('加载失败:', e);
alert("证书信息检索失败"); alert('证书信息检索失败。');
} }
} }
// 点击加载证书图片
function loadCertificateImage() { function loadCertificateImage() {
const certNumber = window.currentCertNumber; const certNumber = window.currentCertNumber;
if (!certNumber) return; if (!certNumber) return;
const img = document.getElementById('cert-img'); const img = document.getElementById('cert-img');
const hint = document.getElementById('click-hint'); const hint = document.getElementById('click-hint');
// 如果图片已加载,直接显示
if (img.src && img.complete) { if (img.src && img.complete) {
img.style.display = 'block'; img.style.display = 'block';
if (hint) hint.style.display = 'none'; if (hint) hint.style.display = 'none';
return; return;
} }
// 加载中提示
if (hint) { if (hint) {
hint.innerHTML = '<div class="click-hint-icon">⏳</div><div>图片加载中...</div>'; hint.innerHTML = '<span class="hint-orb">载</span><strong>图片加载中</strong><span>正在读取证书原件,请稍候。</span>';
} }
img.src = `img/${certNumber}.svg`; img.src = `img/${certNumber}.svg`;
img.onload = () => { img.onload = () => {
img.style.display = 'block'; img.style.display = 'block';
@@ -232,14 +155,55 @@
}; };
img.onerror = () => { img.onerror = () => {
if (hint) { if (hint) {
hint.innerHTML = '<div class="click-hint-icon">❌</div><div>图片加载失败</div>'; hint.innerHTML = '<span class="hint-orb">!</span><strong>图片加载失败</strong><span>未找到对应证书图片文件,请检查 `img` 目录资源。</span>';
} }
}; };
} }
loadData(); async function ensureCertificateImageLoaded() {
const certNumber = window.currentCertNumber;
const img = document.getElementById('cert-img');
const hint = document.getElementById('click-hint');
if (!certNumber) {
throw new Error('未找到证书编号');
}
if (img.src && img.complete && img.naturalWidth > 0) {
img.style.display = 'block';
if (hint) hint.style.display = 'none';
return;
}
if (hint) {
hint.innerHTML = '<span class="hint-orb">载</span><strong>图片加载中</strong><span>正在为打印准备证书原件,请稍候。</span>';
}
await new Promise((resolve, reject) => {
img.onload = () => {
img.style.display = 'block';
if (hint) hint.style.display = 'none';
resolve();
};
img.onerror = () => {
reject(new Error('证书图片加载失败'));
};
img.src = `img/${certNumber}.svg`;
});
}
async function printCertificate() {
try {
await ensureCertificateImageLoaded();
window.print();
} catch (error) {
console.error('打印前加载证书失败:', error);
alert('证书原件加载失败,无法打印。');
}
}
loadData();
</script> </script>
<script src="https://cdn.jsdmirror.cn/gh/bishshi/wechat-detect@main/wechat-detect.js"></script> <script src="https://cdn.jsdmirror.cn/gh/bishshi/wechat-detect@main/wechat-detect.js"></script>
</body> </body>
</html> </html>
+191 -316
View File
@@ -3,335 +3,210 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>荣誉证书查询系统</title> <title>证书查询系统</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&family=Orbitron:wght@500;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="../css/tech-query.css">
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
<script src="https://unpkg.com/html5-qrcode"></script> <script src="https://unpkg.com/html5-qrcode"></script>
</head>
<style> <body>
:root { <main class="page-shell">
--primary-color: #1a73e8; <section class="page-header">
--bg-color: #f8fafc; <div class="hero-card">
--card-bg: #ffffff; <span class="eyebrow">Certificate Search</span>
--text-main: #1e293b; <h1>荣誉证书智能核验平台</h1>
--text-muted: #64748b; <p>支持按证书编号、持有人姓名与发证日期进行检索,也可以直接扫码快速定位证书记录。</p>
--border-color: #e2e8f0; <div class="hero-meta">
<span class="meta-chip">数据范围:2024 年 10 月至今</span>
<span class="meta-chip">查询方式:文本检索 / 二维码扫描</span>
</div>
</div>
<aside class="stat-card">
<div>
<div class="stat-label">Module</div>
<div class="stat-value">CERT</div>
</div>
<p></p>
</aside>
</section>
<section class="panel-card">
<div class="panel-title-row">
<div>
<h2 class="panel-title">检索条件</h2>
<div class="panel-subtitle">输入编号或姓名后即可开始查询</div>
</div>
</div>
<div class="search-grid">
<div class="form-group">
<label class="form-label" for="searchTerm">编号 / 姓名</label>
<div class="input-with-action">
<input type="text" id="searchTerm" class="tech-input" placeholder="输入编号或姓名,或点击右侧扫码">
<button type="button" class="icon-action" id="startScanBtn" title="扫码查询" aria-label="扫码查询">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2"></path><path d="M17 3h2a2 2 0 0 1 2 2v2"></path><path d="M21 17v2a2 2 0 0 1-2 2h-2"></path><path d="M7 21H5a2 2 0 0 1-2-2v-2"></path><rect x="7" y="7" width="10" height="10"></rect></svg>
</button>
</div>
</div>
<div class="form-group">
<label class="form-label" for="dateStart">开始日期</label>
<input type="date" id="dateStart" class="tech-input">
</div>
<div class="form-group">
<label class="form-label" for="dateEnd">结束日期</label>
<input type="date" id="dateEnd" class="tech-input">
</div>
<button id="searchBtn" class="tech-button">执行查询</button>
</div>
</section>
<section class="panel-card results-card">
<div class="panel-title-row">
<div>
<h2 class="panel-title">查询结果</h2>
<div class="panel-subtitle">点击“查看详情”进入证书详情页</div>
</div>
</div>
<div id="resultsArea" class="results-shell">
<div class="empty-state">请输入查询条件,或使用扫码功能快速检索证书。</div>
</div>
</section>
</main>
<div id="scanner-overlay" class="scanner-overlay">
<div class="scanner-frame">
<div id="reader"></div>
<div class="scanner-line"></div>
</div>
<div class="scanner-text">请将二维码置于识别框内</div>
<button class="tech-button secondary" id="stopScanBtn" type="button">退出扫描</button>
</div>
<footer class="page-footer">
<p>© 2026 BI Intelligent Query Interface</p>
</footer>
<script>
const SUPABASE_URL = 'https://chixssrphfgxvqqigkzo.supabase.co';
const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNoaXhzc3JwaGZneHZxcWlna3pvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ2OTE0OTEsImV4cCI6MjA5MDI2NzQ5MX0.Az_Ew2J2zdOMcSV0UNAjBS-LPqGpqhsaN4IyZ5R7iqU';
const sbClient = supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
const html5QrCode = new Html5Qrcode("reader");
const scannerOverlay = document.getElementById('scanner-overlay');
document.getElementById('startScanBtn').addEventListener('click', async () => {
scannerOverlay.style.display = 'flex';
const config = {
fps: 15,
qrbox: { width: 300, height: 180 },
aspectRatio: 1.0
};
try {
await html5QrCode.start(
{ facingMode: "environment" },
config,
(decodedText) => {
document.getElementById('searchTerm').value = decodedText;
closeScanner();
handleSearch();
},
() => {}
);
} catch (err) {
alert("无法启动摄像头,请检查 HTTPS 权限或设备连接。");
scannerOverlay.style.display = 'none';
}
});
async function closeScanner() {
if (html5QrCode.isScanning) {
await html5QrCode.stop();
}
scannerOverlay.style.display = 'none';
} }
* { box-sizing: border-box; } document.getElementById('stopScanBtn').addEventListener('click', closeScanner);
body {
background: var(--bg-color);
font-family: system-ui, -apple-system, sans-serif;
margin: 0; padding: 10px;
color: var(--text-main);
line-height: 1.5;
}
.container { async function handleSearch() {
max-width: 1000px; const term = document.getElementById('searchTerm').value.trim();
margin: 20px auto; const start = document.getElementById('dateStart').value;
background: var(--card-bg); const end = document.getElementById('dateEnd').value;
padding: 24px; const display = document.getElementById('resultsArea');
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
h1 { if (!term) {
text-align: center; alert("请输入证书编号或持有人姓名。");
color: var(--primary-color); return;
font-size: clamp(20px, 5vw, 26px); }
margin-bottom: 30px;
}
.search-section { display.innerHTML = '<div class="loading-state">正在连接证书数据库并执行检索...</div>';
background: var(--bg-color);
padding: 20px;
border-radius: 12px;
margin-bottom: 24px;
border: 1px solid var(--border-color);
}
.search-grid { try {
display: grid; let query = sbClient.from('certificates').select('*');
grid-template-columns: 1fr; query = query.or(`cert_number.ilike.%${term}%,holder_name.ilike.%${term}%`);
gap: 16px;
}
@media (min-width: 768px) { if (start) query = query.gte('issue_date', start);
.search-grid { if (end) query = query.lte('issue_date', end);
grid-template-columns: 2fr 1fr 1fr auto;
align-items: end; const { data, error } = await query.order('issue_date', { ascending: false });
if (error) throw error;
renderResults(data);
} catch (err) {
display.innerHTML = `<div class="error-state">检索失败:${err.message}</div>`;
} }
} }
.form-group { display: flex; flex-direction: column; } function renderResults(data) {
.form-group label { const display = document.getElementById('resultsArea');
font-size: 13px; if (!data || data.length === 0) {
color: var(--text-muted); display.innerHTML = '<div class="empty-state">未找到匹配的证书记录。</div>';
margin-bottom: 6px; return;
font-weight: 600; }
}
/* 搜索框容器:容纳扫码图标 */ let html = `
.input-with-icon { <div class="table-wrapper">
position: relative; <table class="result-table">
display: flex; <thead>
align-items: center; <tr>
} <th>证书编号</th>
<th>持有人</th>
.form-control { <th>荣誉标题</th>
padding: 10px 45px 10px 14px; /* 右侧留出空间给图标 */ <th>颁发日期</th>
border: 1px solid var(--border-color); <th>操作</th>
border-radius: 8px; </tr>
font-size: 15px; </thead>
width: 100%; <tbody>
height: 42px;
}
.scan-trigger {
position: absolute;
right: 10px;
cursor: pointer;
color: var(--primary-color);
padding: 5px;
display: flex;
align-items: center;
transition: transform 0.2s;
}
.scan-trigger:hover { transform: scale(1.1); }
.btn-search {
height: 42px;
padding: 0 30px;
background: var(--primary-color);
color: #fff;
border: none;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: 0.2s;
}
/* 扫码弹出层 */
#scanner-overlay {
display: none;
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background: rgba(0,0,0,0.85);
z-index: 9999;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 20px;
}
#reader {
width: 100%;
max-width: 400px;
border-radius: 12px;
overflow: hidden;
background: #000;
}
.scanner-controls {
margin-top: 20px;
display: flex;
gap: 15px;
}
.btn-cancel {
padding: 10px 24px;
background: #ef4444;
color: white;
border: none;
border-radius: 6px;
cursor: pointer;
}
/* 表格样式 */
.table-wrapper { overflow-x: auto; margin-top: 10px; }
.result-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.result-table th {
text-align: left; padding: 14px;
background: #f1f5f9; color: var(--text-muted);
font-size: 13px; border-bottom: 2px solid var(--border-color);
}
.result-table td { padding: 14px; border-bottom: 1px solid var(--bg-color); font-size: 14px; }
@media (max-width: 640px) { .hide-on-mobile { display: none; } }
.btn-link { color: var(--primary-color); text-decoration: none; cursor: pointer; font-weight: 600; }
.loading, .no-result { text-align: center; padding: 40px; color: var(--text-muted); }
</style>
</head>
<body>
<div class="container">
<h1>证书查询系统</h1>
<p>说明:可以输入编号或姓名进行查询,也可以点击右侧图标扫码查询;查询范围2024年10月至今</p>
<div class="search-section">
<div class="search-grid">
<div class="form-group">
<label>编号 / 姓名</label>
<div class="input-with-icon">
<input type="text" id="searchTerm" class="form-control" placeholder="输入或扫码查询">
<div class="scan-trigger" id="startScanBtn" title="请扫描条形码">
<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7V5a2 2 0 0 1 2-2h2"></path><path d="M17 3h2a2 2 0 0 1 2 2v2"></path><path d="M21 17v2a2 2 0 0 1-2 2h-2"></path><path d="M7 21H5a2 2 0 0 1-2-2v-2"></path><rect x="7" y="7" width="10" height="10"></rect></svg>
</div>
</div>
</div>
<div class="form-group">
<label>颁发起</label>
<input type="date" id="dateStart" class="form-control">
</div>
<div class="form-group">
<label>颁发止</label>
<input type="date" id="dateEnd" class="form-control">
</div>
<button id="searchBtn" class="btn-search">查询</button>
</div>
</div>
<div id="resultsArea">
<div class="no-result">请输入信息或点击右侧图标扫码</div>
</div>
</div>
<div id="scanner-overlay">
<div id="reader"></div>
<div class="scanner-controls">
<button class="btn-cancel" id="stopScanBtn">退出扫描</button>
</div>
</div>
<footer class="footer">
<p>© 2026 BI All rights reserved</p>
</footer>
<script>
// Supabase 配置
const SUPABASE_URL = 'https://chixssrphfgxvqqigkzo.supabase.co';
const SUPABASE_ANON_KEY = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImNoaXhzc3JwaGZneHZxcWlna3pvIiwicm9sZSI6ImFub24iLCJpYXQiOjE3NzQ2OTE0OTEsImV4cCI6MjA5MDI2NzQ5MX0.Az_Ew2J2zdOMcSV0UNAjBS-LPqGpqhsaN4IyZ5R7iqU';
const sbClient = supabase.createClient(SUPABASE_URL, SUPABASE_ANON_KEY);
// 初始化扫码器
const html5QrCode = new Html5Qrcode("reader");
const scannerOverlay = document.getElementById('scanner-overlay');
// --- 扫码逻辑 ---
document.getElementById('startScanBtn').addEventListener('click', async () => {
scannerOverlay.style.display = 'flex';
// 扫码配置:qrbox 设为长方形有助于识别条形码
const config = {
fps: 15,
qrbox: { width: 300, height: 180 },
aspectRatio: 1.0
};
try {
await html5QrCode.start(
{ facingMode: "environment" }, // 使用后置摄像头
config,
(decodedText) => {
// 识别成功
document.getElementById('searchTerm').value = decodedText;
closeScanner();
handleSearch(); // 自动执行查询
},
(errorMessage) => { /* 扫描中不抛出错误 */ }
);
} catch (err) {
alert("无法启动摄像头,请检查 HTTPS 权限或设备连接");
scannerOverlay.style.display = 'none';
}
});
async function closeScanner() {
if (html5QrCode.isScanning) {
await html5QrCode.stop();
}
scannerOverlay.style.display = 'none';
}
document.getElementById('stopScanBtn').addEventListener('click', closeScanner);
// --- 查询逻辑 ---
async function handleSearch() {
const term = document.getElementById('searchTerm').value.trim();
const start = document.getElementById('dateStart').value;
const end = document.getElementById('dateEnd').value;
const display = document.getElementById('resultsArea');
if (!term) {
alert("请输入证书编号或持有人姓名");
return;
}
display.innerHTML = '<div class="loading">正在检索数据库...</div>';
try {
let query = sbClient.from('certificates').select('*');
query = query.or(`cert_number.ilike.%${term}%,holder_name.ilike.%${term}%`);
if (start) query = query.gte('issue_date', start);
if (end) query = query.lte('issue_date', end);
const { data, error } = await query.order('issue_date', { ascending: false });
if (error) throw error;
renderResults(data);
} catch (err) {
display.innerHTML = `<div style="color:#dc2626; text-align:center;">检索失败: ${err.message}</div>`;
}
}
function renderResults(data) {
const display = document.getElementById('resultsArea');
if (!data || data.length === 0) {
display.innerHTML = '<div class="no-result">未找到匹配的证书</div>';
return;
}
let html = `
<div class="table-wrapper">
<table class="result-table">
<thead>
<tr>
<th>证书编号</th>
<th>持有人</th>
<th>荣誉标题</th>
<th>颁发日期</th>
<th>操作</th>
</tr>
</thead>
<tbody>
`;
data.forEach(item => {
html += `
<tr>
<td><strong>${item.cert_number}</strong></td>
<td>${item.holder_name}</td>
<td>${item.honor_title}</td>
<td>${item.issue_date || '-'}</td>
<td><a class="btn-link" onclick="goToDetail('${item.id}')">详情</a></td>
</tr>
`; `;
data.forEach(item => {
html += `
<tr>
<td class="table-highlight">${item.cert_number || '-'}</td>
<td>${item.holder_name || '-'}</td>
<td>${item.honor_title || '-'}</td>
<td>${item.issue_date || '-'}</td>
<td><button class="tech-link-button secondary" type="button" onclick="goToDetail('${item.id}')">查看详情</button></td>
</tr>
`;
});
html += '</tbody></table></div>';
display.innerHTML = html;
}
function goToDetail(id) {
window.location.href = `certificate.html?id=${id}`;
}
document.getElementById('searchBtn').addEventListener('click', handleSearch);
document.getElementById('searchTerm').addEventListener('keypress', e => {
if (e.key === 'Enter') handleSearch();
}); });
</script>
html += '</tbody></table></div>'; <script src="https://cdn.jsdmirror.cn/gh/bishshi/wechat-detect@main/wechat-detect.js"></script>
display.innerHTML = html;
}
function goToDetail(id) {
window.location.href = `certificate.html?id=${id}`;
}
document.getElementById('searchBtn').addEventListener('click', handleSearch);
document.getElementById('searchTerm').addEventListener('keypress', e => {
if (e.key === 'Enter') handleSearch();
});
</script>
<script src="https://cdn.jsdmirror.cn/gh/bishshi/wechat-detect@main/wechat-detect.js"></script>
</body> </body>
</html> </html>
+1000
View File
@@ -0,0 +1,1000 @@
:root {
--bg-primary: #07111f;
--bg-secondary: #0d1b31;
--panel: rgba(9, 20, 40, 0.78);
--panel-strong: rgba(10, 24, 46, 0.92);
--line: rgba(98, 180, 255, 0.22);
--line-strong: rgba(98, 180, 255, 0.45);
--text-primary: #ecf6ff;
--text-secondary: #93afd1;
--accent: #67d5ff;
--accent-strong: #3ea2ff;
--accent-soft: rgba(103, 213, 255, 0.14);
--success: #2de2a6;
--warning: #ffcc66;
--danger: #ff6b8a;
--shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
--radius-xl: 28px;
--radius-lg: 20px;
--radius-md: 14px;
--radius-sm: 10px;
--content-width: 1180px;
--grid-gap: 18px;
--font-display: "Orbitron", "Segoe UI", sans-serif;
--font-body: "Noto Sans SC", "Segoe UI", sans-serif;
}
* {
box-sizing: border-box;
}
html {
color-scheme: dark;
}
body {
margin: 0;
min-height: 100vh;
color: var(--text-primary);
font-family: var(--font-body);
background:
radial-gradient(circle at top left, rgba(62, 162, 255, 0.18), transparent 28%),
radial-gradient(circle at top right, rgba(45, 226, 166, 0.08), transparent 22%),
linear-gradient(135deg, #040914 0%, #07111f 45%, #0a1730 100%);
position: relative;
overflow-x: hidden;
}
body::before,
body::after {
content: "";
position: fixed;
inset: 0;
pointer-events: none;
z-index: -1;
}
body::before {
background-image:
linear-gradient(rgba(103, 213, 255, 0.06) 1px, transparent 1px),
linear-gradient(90deg, rgba(103, 213, 255, 0.06) 1px, transparent 1px);
background-size: 42px 42px;
mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.65), transparent 92%);
}
body::after {
background:
radial-gradient(circle at 20% 20%, rgba(103, 213, 255, 0.08), transparent 16%),
radial-gradient(circle at 80% 35%, rgba(103, 213, 255, 0.05), transparent 18%);
}
a {
color: inherit;
}
.page-shell {
width: min(calc(100% - 32px), var(--content-width));
margin: 0 auto;
padding: 36px 0 48px;
}
.page-header {
display: grid;
gap: 18px;
grid-template-columns: 1.35fr 0.85fr;
align-items: stretch;
margin-bottom: 24px;
}
.hero-card,
.stat-card,
.panel-card {
position: relative;
overflow: hidden;
background: linear-gradient(180deg, rgba(10, 24, 46, 0.9), rgba(7, 18, 35, 0.82));
border: 1px solid var(--line);
border-radius: var(--radius-xl);
box-shadow: var(--shadow);
backdrop-filter: blur(18px);
}
.hero-card {
padding: 32px;
}
.hero-card::before,
.stat-card::before,
.panel-card::before,
.entry-card::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(103, 213, 255, 0.12), transparent 42%, rgba(103, 213, 255, 0.06));
pointer-events: none;
}
.eyebrow {
display: inline-flex;
align-items: center;
gap: 10px;
padding: 8px 14px;
border-radius: 999px;
border: 1px solid rgba(103, 213, 255, 0.28);
background: rgba(103, 213, 255, 0.08);
color: var(--accent);
font-size: 12px;
letter-spacing: 0.24em;
text-transform: uppercase;
}
.hero-card h1,
.landing-hero h1 {
margin: 18px 0 12px;
font-family: var(--font-display);
font-size: clamp(28px, 4.4vw, 48px);
line-height: 1.08;
letter-spacing: 0.06em;
}
.hero-card p,
.landing-hero p,
.stat-card p,
.panel-subtitle,
.empty-state,
.loading-state,
.error-state {
color: var(--text-secondary);
}
.hero-meta {
display: flex;
flex-wrap: wrap;
gap: 12px;
margin-top: 22px;
}
.meta-chip {
padding: 10px 14px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(147, 175, 209, 0.14);
font-size: 13px;
color: var(--text-primary);
}
.stat-card {
padding: 28px;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 18px;
}
.stat-label {
color: var(--text-secondary);
font-size: 13px;
letter-spacing: 0.18em;
text-transform: uppercase;
}
.stat-value {
font-family: var(--font-display);
font-size: clamp(28px, 4vw, 44px);
color: var(--accent);
text-shadow: 0 0 18px rgba(103, 213, 255, 0.28);
}
.panel-card {
padding: 24px;
}
.panel-title-row {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: center;
margin-bottom: 18px;
}
.panel-title {
margin: 0;
font-size: 20px;
font-weight: 700;
letter-spacing: 0.04em;
}
.search-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: var(--grid-gap);
align-items: end;
}
.search-grid.compact {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.form-group {
display: flex;
flex-direction: column;
gap: 8px;
}
.form-label {
color: var(--text-secondary);
font-size: 13px;
letter-spacing: 0.06em;
}
.tech-input,
.tech-button,
.tech-link-button {
border-radius: var(--radius-md);
border: 1px solid var(--line);
min-height: 48px;
font: inherit;
}
.tech-input {
width: 100%;
padding: 0 16px;
background: rgba(6, 14, 28, 0.8);
color: var(--text-primary);
outline: none;
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.tech-input::placeholder {
color: rgba(147, 175, 209, 0.68);
}
.tech-input:focus {
border-color: var(--line-strong);
box-shadow: 0 0 0 4px rgba(62, 162, 255, 0.14);
}
.input-with-action {
position: relative;
}
.input-with-action .tech-input {
padding-right: 56px;
}
.icon-action {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 12px;
border: 1px solid transparent;
background: transparent;
color: var(--accent);
cursor: pointer;
transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.icon-action:hover {
transform: translateY(-50%) scale(1.04);
background: rgba(103, 213, 255, 0.1);
border-color: rgba(103, 213, 255, 0.18);
}
.tech-button,
.tech-link-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
padding: 0 20px;
background: linear-gradient(135deg, rgba(103, 213, 255, 0.24), rgba(62, 162, 255, 0.44));
color: #f7fbff;
font-weight: 700;
letter-spacing: 0.03em;
text-decoration: none;
cursor: pointer;
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.tech-button:hover,
.tech-link-button:hover {
transform: translateY(-1px);
border-color: rgba(103, 213, 255, 0.4);
box-shadow: 0 12px 30px rgba(62, 162, 255, 0.2);
}
.tech-button.secondary,
.tech-link-button.secondary {
background: rgba(255, 255, 255, 0.04);
color: var(--text-primary);
}
.results-card {
min-height: 260px;
}
.results-shell {
border-radius: var(--radius-lg);
border: 1px solid rgba(103, 213, 255, 0.16);
overflow: hidden;
background: rgba(3, 8, 18, 0.46);
}
.table-wrapper {
overflow-x: auto;
}
.result-table {
width: 100%;
min-width: 720px;
border-collapse: collapse;
}
.result-table th,
.result-table td {
padding: 16px 18px;
border-bottom: 1px solid rgba(103, 213, 255, 0.08);
text-align: left;
}
.result-table th {
background: rgba(103, 213, 255, 0.08);
color: var(--text-secondary);
font-size: 13px;
font-weight: 600;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.result-table td {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.01);
}
.result-table tbody tr:hover td {
background: rgba(103, 213, 255, 0.04);
}
.table-highlight {
color: var(--accent);
font-weight: 700;
}
.text-truncate {
display: inline-block;
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: bottom;
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 12px;
border-radius: 999px;
font-size: 13px;
font-weight: 700;
line-height: 1;
border: 1px solid transparent;
}
.status-pill.done {
color: #081a14;
background: rgba(45, 226, 166, 0.9);
}
.status-pill.pending {
color: #251400;
background: rgba(255, 204, 102, 0.92);
}
.loading-state,
.empty-state,
.error-state {
min-height: 220px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
padding: 36px 24px;
font-size: 15px;
}
.error-state {
color: #ffd7df;
}
.page-footer {
width: min(calc(100% - 32px), var(--content-width));
margin: 0 auto 24px;
color: rgba(147, 175, 209, 0.74);
font-size: 13px;
text-align: center;
}
.scanner-overlay {
display: none;
position: fixed;
inset: 0;
z-index: 9999;
background: rgba(2, 7, 16, 0.92);
backdrop-filter: blur(14px);
align-items: center;
justify-content: center;
flex-direction: column;
gap: 18px;
padding: 24px;
}
.scanner-frame {
position: relative;
width: min(88vw, 360px);
height: min(88vw, 360px);
border-radius: 28px;
overflow: hidden;
border: 1px solid rgba(103, 213, 255, 0.28);
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
background: #000;
}
.scanner-frame::before,
.scanner-frame::after {
content: "";
position: absolute;
inset: 16px;
border: 1px solid rgba(103, 213, 255, 0.25);
border-radius: 18px;
pointer-events: none;
}
.scanner-line {
position: absolute;
left: 8%;
width: 84%;
height: 2px;
background: linear-gradient(90deg, transparent, var(--accent), transparent);
box-shadow: 0 0 18px rgba(103, 213, 255, 0.7);
animation: scanner-sweep 2.2s linear infinite;
z-index: 2;
}
@keyframes scanner-sweep {
0% {
top: 16%;
}
100% {
top: 84%;
}
}
#reader {
width: 100% !important;
height: 100% !important;
}
.scanner-text {
color: var(--text-secondary);
font-size: 14px;
letter-spacing: 0.04em;
}
.landing-shell {
width: min(calc(100% - 32px), 1240px);
margin: 0 auto;
padding: 36px 0 48px;
}
.landing-hero {
position: relative;
padding: 38px;
border-radius: 34px;
overflow: hidden;
background:
linear-gradient(135deg, rgba(10, 24, 46, 0.95), rgba(7, 18, 35, 0.86)),
linear-gradient(90deg, rgba(103, 213, 255, 0.18), transparent);
border: 1px solid var(--line);
box-shadow: var(--shadow);
}
.landing-grid {
margin-top: 24px;
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 18px;
}
.entry-card {
position: relative;
overflow: hidden;
display: grid;
gap: 18px;
padding: 24px;
border-radius: 24px;
text-decoration: none;
background: linear-gradient(180deg, rgba(9, 20, 40, 0.88), rgba(7, 18, 35, 0.86));
border: 1px solid var(--line);
box-shadow: var(--shadow);
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.entry-card:hover {
transform: translateY(-4px);
border-color: rgba(103, 213, 255, 0.4);
box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}
.entry-kicker {
color: var(--accent);
font-size: 12px;
letter-spacing: 0.22em;
text-transform: uppercase;
}
.entry-card h2 {
margin: 0;
font-size: 24px;
}
.entry-card p {
margin: 0;
color: var(--text-secondary);
line-height: 1.7;
}
.entry-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
color: var(--text-primary);
font-size: 14px;
}
.entry-arrow {
width: 42px;
height: 42px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(103, 213, 255, 0.12);
color: var(--accent);
}
.detail-shell {
width: min(calc(100% - 32px), 1120px);
margin: 0 auto;
padding: 28px 0 48px;
}
.top-actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 14px;
margin-bottom: 18px;
}
.top-actions-group {
display: flex;
flex-wrap: wrap;
gap: 12px;
}
.detail-grid {
display: grid;
grid-template-columns: 1.1fr 0.9fr;
gap: 18px;
}
.preview-panel,
.summary-panel,
.detail-panel {
position: relative;
overflow: hidden;
border-radius: var(--radius-xl);
border: 1px solid var(--line);
background: linear-gradient(180deg, rgba(10, 24, 46, 0.92), rgba(7, 18, 35, 0.84));
box-shadow: var(--shadow);
}
.preview-panel,
.summary-panel,
.detail-panel {
padding: 24px;
}
.preview-panel::before,
.summary-panel::before,
.detail-panel::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(103, 213, 255, 0.08), transparent 45%, rgba(103, 213, 255, 0.05));
pointer-events: none;
}
.section-kicker {
color: var(--accent);
font-size: 12px;
letter-spacing: 0.22em;
text-transform: uppercase;
}
.section-heading {
margin: 12px 0 10px;
font-size: 26px;
line-height: 1.2;
}
.section-copy {
margin: 0;
color: var(--text-secondary);
line-height: 1.75;
}
.summary-stack {
display: grid;
gap: 14px;
margin-top: 20px;
}
.summary-tile {
padding: 16px 18px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(103, 213, 255, 0.12);
}
.summary-label {
display: block;
margin-bottom: 8px;
color: var(--text-secondary);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.summary-value {
font-size: 18px;
font-weight: 700;
color: var(--text-primary);
word-break: break-word;
}
.summary-value.emphasis {
color: var(--accent);
}
.certificate-stage {
position: relative;
min-height: 520px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 24px;
border: 1px solid rgba(103, 213, 255, 0.14);
background: #ffffff;
overflow: hidden;
cursor: pointer;
}
.certificate-stage img {
width: 100%;
height: auto;
display: none;
position: relative;
z-index: 1;
}
.certificate-hint {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
text-align: center;
color: #64748b;
padding: 24px;
}
.certificate-hint strong {
color: #0f172a;
font-size: 18px;
}
.hint-orb {
width: 72px;
height: 72px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(103, 213, 255, 0.1);
border: 1px solid rgba(103, 213, 255, 0.18);
color: var(--accent);
font-size: 30px;
box-shadow: 0 0 24px rgba(103, 213, 255, 0.12);
}
.info-table-shell {
overflow: hidden;
border-radius: 20px;
border: 1px solid rgba(103, 213, 255, 0.14);
background: rgba(3, 8, 18, 0.4);
}
.info-table {
width: 100%;
border-collapse: collapse;
}
.info-table th,
.info-table td {
padding: 16px 18px;
border-bottom: 1px solid rgba(103, 213, 255, 0.08);
text-align: left;
vertical-align: top;
}
.info-table th {
width: 28%;
color: var(--text-secondary);
font-size: 13px;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
background: rgba(103, 213, 255, 0.06);
}
.info-table td {
color: var(--text-primary);
line-height: 1.7;
}
.ticket-header {
display: flex;
justify-content: space-between;
gap: 16px;
align-items: flex-start;
margin-bottom: 20px;
}
.ticket-title {
margin: 10px 0 6px;
font-size: clamp(26px, 4vw, 36px);
line-height: 1.16;
}
.ticket-subtitle {
margin: 0;
color: var(--text-secondary);
}
.ticket-detail-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
}
.detail-item {
padding: 16px 18px;
border-radius: 18px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(103, 213, 255, 0.12);
}
.detail-item.wide {
grid-column: 1 / -1;
}
.detail-label {
display: block;
margin-bottom: 8px;
color: var(--text-secondary);
font-size: 12px;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.detail-value {
color: var(--text-primary);
font-size: 16px;
line-height: 1.65;
word-break: break-word;
}
.detail-value.money {
color: var(--accent);
font-weight: 700;
}
.feedback-card {
min-height: 220px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: var(--text-secondary);
font-size: 15px;
}
@media (max-width: 1040px) {
.page-header,
.landing-grid,
.detail-grid {
grid-template-columns: 1fr;
}
.search-grid,
.search-grid.compact {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 720px) {
.page-shell,
.landing-shell,
.detail-shell {
width: min(calc(100% - 20px), var(--content-width));
padding-top: 20px;
}
.hero-card,
.stat-card,
.panel-card,
.landing-hero,
.entry-card,
.preview-panel,
.summary-panel,
.detail-panel {
border-radius: 22px;
}
.hero-card,
.landing-hero,
.panel-card,
.entry-card,
.preview-panel,
.summary-panel,
.detail-panel {
padding: 20px;
}
.search-grid,
.search-grid.compact {
grid-template-columns: 1fr;
}
.result-table {
min-width: 620px;
}
.ticket-header,
.top-actions {
flex-direction: column;
align-items: stretch;
}
.ticket-detail-grid {
grid-template-columns: 1fr;
}
.certificate-stage {
min-height: 360px;
}
}
@media print {
body {
background: #ffffff;
color: #111827;
}
body::before,
body::after,
.page-footer,
.top-actions {
display: none !important;
}
.detail-shell,
.page-shell {
width: 100%;
max-width: none;
padding: 0;
}
.detail-grid {
display: block;
}
.preview-panel,
.summary-panel,
.detail-panel,
.panel-card,
.hero-card,
.stat-card {
background: #ffffff !important;
color: #111827 !important;
box-shadow: none !important;
border: 1px solid #d1d5db !important;
}
.preview-panel::before,
.summary-panel::before,
.detail-panel::before,
.panel-card::before,
.hero-card::before,
.stat-card::before {
display: none !important;
}
.section-kicker,
.summary-label,
.detail-label,
.info-table th,
.ticket-subtitle,
.section-copy,
.summary-value,
.detail-value,
.top-actions-group,
.status-pill,
.page-shell * {
color: inherit !important;
}
.certificate-stage {
min-height: 0;
border: none !important;
background: #ffffff !important;
page-break-after: always;
break-after: page;
}
.preview-panel {
padding: 0 !important;
border: none !important;
background: #ffffff !important;
}
.preview-panel > .section-kicker,
.preview-panel > .section-heading,
.preview-panel > .section-copy,
.summary-panel {
display: none !important;
}
.certificate-hint {
display: none !important;
}
.certificate-stage img {
display: block !important;
}
.info-table-shell {
border: 1px solid #d1d5db !important;
background: #ffffff !important;
}
.detail-panel {
break-before: page;
}
@page {
size: A4 portrait;
margin: 10mm;
}
}
Loaded 3 of 7 files, more files were not shown because too many files have changed in this diff. Show more