/* gysxx 前端样式（与 admin 共用部分样式）*/
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif; background:#f5f6fa; color:#1a1a2e; }

/* 登录页 */
.login-page { display:flex; align-items:center; justify-content:center; min-height:100vh; background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); }
.login-container { background:#fff; border-radius:12px; padding:40px; width:400px; box-shadow:0 20px 60px rgba(0,0,0,0.15); }
.login-container h1 { text-align:center; margin-bottom:4px; font-size:24px; }
.login-container .subtitle { text-align:center; color:#95a5a6; margin-bottom:28px; font-size:14px; }
.form-group { margin-bottom:18px; }
.form-group label { display:block; margin-bottom:6px; font-size:14px; color:#555; }
.form-group input[type="text"],.form-group input[type="password"],.form-group select,.form-group textarea { width:100%; padding:10px 12px; border:1px solid #ddd; border-radius:6px; font-size:14px; outline:none; transition:border 0.2s; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { border-color:#667eea; }
button { padding:10px 20px; border:none; border-radius:6px; font-size:14px; cursor:pointer; transition:all 0.2s; }
button[type="submit"],.btn-primary { background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); color:#fff; width:100%; padding:12px; font-size:16px; }
button[type="submit"]:hover,.btn-primary:hover { opacity:0.9; }
.btn { background:#f0f0f0; color:#333; }
.btn:hover { background:#e0e0e0; }
.error-msg { background:#ffeaea; color:#e74c3c; padding:10px 14px; border-radius:6px; margin-bottom:16px; font-size:14px; display:none; }

/* 弹窗 */
.modal { position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.5); z-index:1000; display:flex; align-items:center; justify-content:center; }
.modal-content { background:#fff; border-radius:12px; width:90%; max-width:700px; max-height:90vh; overflow-y:auto; }
.modal-header { display:flex; justify-content:space-between; align-items:center; padding:16px 24px; border-bottom:1px solid #eee; font-size:16px; font-weight:bold; }
.modal-close { font-size:24px; cursor:pointer; color:#999; }
.modal-close:hover { color:#333; }
.modal-body { padding:24px; }
.modal-footer { padding:16px 24px; border-top:1px solid #eee; display:flex; justify-content:flex-end; gap:8px; }
.modal-footer .btn-primary { width:auto; }

/* 工具条 */
.toolbar { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; align-items:center; }
.toolbar input[type="text"] { flex:1; min-width:200px; padding:8px 12px; border:1px solid #ddd; border-radius:6px; }
.toolbar select { padding:8px 12px; border:1px solid #ddd; border-radius:6px; }

/* 卡片 */
.card { background:#fff; border-radius:8px; padding:20px; box-shadow:0 1px 3px rgba(0,0,0,0.05); margin-bottom:16px; }
.supplier-card { border:1px solid #eee; border-radius:8px; padding:16px; margin-bottom:12px; cursor:pointer; transition:all 0.2s; }
.supplier-card:hover { border-color:#667eea; box-shadow:0 2px 8px rgba(102,126,234,0.1); }
.supplier-name { font-size:16px; font-weight:bold; margin-bottom:6px; }
.supplier-info { font-size:13px; color:#666; display:grid; grid-template-columns:1fr 1fr; gap:4px 16px; }
.tag { display:inline-block; padding:2px 8px; border-radius:4px; font-size:12px; }
.tag-ok { background:#2ecc7122; color:#2ecc71; }
.tag-pending { background:#f39c122; color:#f39c12; }

/* 分页 */
.pager { display:flex; gap:4px; align-items:center; justify-content:center; }
.pager button { padding:6px 12px; border:1px solid #ddd; background:#fff; cursor:pointer; border-radius:4px; }
.pager button.active { background:#667eea; color:#fff; border-color:#667eea; }
.pager button:disabled { opacity:0.5; cursor:not-allowed; }

/* 水印 */
#watemark { position:fixed; top:0; left:0; width:100vw; height:100vh; pointer-events:none; opacity:0.06; font-size:18px; color:#000; z-index:9999; display:none; overflow:hidden; white-space:nowrap; }
