/* 全局样式 */
* {margin: 0;padding: 0;box-sizing: border-box;font-family: "Microsoft YaHei", sans-serif;}
body {background: #f5f7fa;color: #333;}
a {text-decoration: none;color: #1677ff;}
.btn {display: inline-block;padding: 8px 16px;border: none;border-radius: 6px;cursor: pointer;font-size: 14px;}
.btn-primary {background: #1677ff;color: #fff;}
.btn-success {background: #00b42a;color: #fff;}
.btn-warning {background: #fa8c16;color: #fff;}
.btn-danger {background: #f53f3f;color: #fff;}
.container {max-width: 1200px;margin: 0 auto;padding: 0 20px;}

/* 验证首页样式 */
.header {background: #fff;padding: 15px 0;box-shadow: 0 2px 10px rgba(0,0,0,0.05);}
.header .logo {display: flex;align-items: center;gap: 10px;font-size: 22px;font-weight: bold;}
.header .logo img {height: 40px;width: auto;}
.main {padding: 60px 0;}
.ver-card {max-width: 500px;margin: 0 auto;background: #fff;border-radius: 16px;box-shadow: 0 8px 30px rgba(0,0,0,0.08);padding: 40px;}
.ver-card h2 {text-align: center;margin-bottom: 30px;color: #1677ff;font-size: 24px;}
.ver-card .tip {text-align: center;color: #666;margin-bottom: 20px;font-size: 14px;}
.ver-card .tip img {height: 80px;width: auto;margin: 10px 0;}
.ver-card input {width: 100%;height: 50px;padding: 0 20px;border: 1px solid #e5e6eb;border-radius: 8px;font-size: 16px;outline: none;margin-bottom: 20px;}
.ver-card button {width: 100%;height: 50px;background: #1677ff;color: #fff;border: none;border-radius: 8px;font-size: 16px;cursor: pointer;}
.result {padding: 15px;border-radius: 8px;margin-top: 20px;text-align: center;font-size: 16px;}
.result.success {background: #e6ffed;color: #00b42a;}
.result.warning {background: #fff7e6;color: #fa8c16;}
.result.danger {background: #fff1f0;color: #f53f3f;}
.footer {text-align: center;padding: 30px 0;color: #999;font-size: 14px;border-top: 1px solid #eee;margin-top: 50px;}

/* 管理后台样式 */
.admin-main {max-width: 1200px;margin: 30px auto;background: #fff;border-radius: 12px;padding: 25px;}
.admin-main h2 {margin-bottom: 20px;color: #333;}
.table {width: 100%;border-collapse: collapse;margin-top: 20px;}
.table th,.table td {border: 1px solid #e5e6eb;padding: 12px;text-align: center;}
.table th {background: #f7f8fa;font-weight: normal;}
.qrcode {width: 80px;height: 80px;object-fit: cover;}

/* 刮开涂层印刷样式 */
.print-page {width: 210mm;padding: 10mm;margin: 0 auto;background: #fff;}
.print-title {text-align: center;font-size: 18px;font-weight: bold;margin-bottom: 20px;}
.code-list {display: flex;flex-wrap: wrap;gap: 15px;justify-content: center;}
.code-item {width: 80mm;height: 40mm;border: 1px solid #333;border-radius: 8px;padding: 8px;position: relative;display: flex;flex-direction: column;justify-content: center;align-items: center;}
.code-item .code-text {font-size: 16px;font-weight: bold;letter-spacing: 2px;margin: 10px 0;}
.code-item .scratch {width: 70mm;height: 20px;background: #666;border-radius: 4px;display: flex;align-items: center;justify-content: center;color: #fff;font-size: 12px;cursor: pointer;}
.code-item .qrcode-print {width: 60px;height: 60px;margin-top: 5px;}
.code-item .tip-print {font-size: 10px;color: #666;margin-top: 5px;text-align: center;}
/* 打印样式适配 */
@media print {
    body {background: #fff;}
    .print-page {box-shadow: none;padding: 0;border: none;}
    .btn {display: none;}
}