/* 佳木斯市第十五小学校园公务平台 · 手机端样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f2f4f8; color: #1f2937; line-height: 1.5; }
a { color: #2563eb; text-decoration: none; }

.container { max-width: 720px; margin: 0 auto; padding: 12px; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 10; }
.topbar .title { font-size: 16px; font-weight: 700; color: #111827; }
.topbar a { font-size: 13px; color: #6b7280; margin-left: 10px; }

.nav { display: flex; flex-wrap: wrap; gap: 6px; background: #fff; padding: 8px 12px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.nav a { padding: 6px 12px; border-radius: 16px; font-size: 13px; color: #374151; background: #f3f4f6; }
.nav a.active, .nav a:hover { background: #2563eb; color: #fff; }

.card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.card h3 { font-size: 15px; margin-bottom: 8px; color: #111827; }
.card .muted { color: #6b7280; font-size: 13px; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.stat { background: #fff; border-radius: 12px; padding: 14px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.stat .num { font-size: 26px; font-weight: 700; color: #2563eb; }
.stat .label { font-size: 12px; color: #6b7280; margin-top: 4px; }

form .field { margin-bottom: 12px; }
form label { display: block; font-size: 13px; color: #374151; margin-bottom: 4px; }
form input, form select, form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 15px; background: #fff; }
form input:focus, form select:focus { outline: none; border-color: #2563eb; }
.btn { display: inline-block; padding: 10px 18px; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; text-align: center; }
.btn-primary { background: #2563eb; color: #fff; width: 100%; }
.btn-ok { background: #16a34a; color: #fff; }
.btn-warn { background: #f59e0b; color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.flash.ok { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.list-item { border-bottom: 1px solid #f3f4f6; padding: 10px 0; }
.list-item:last-child { border-bottom: none; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag-pending { background: #fef3c7; color: #92400e; }
.tag-pass { background: #dcfce7; color: #166534; }
.tag-doing { background: #dbeafe; color: #1e40af; }
.tag-done { background: #e5e7eb; color: #374151; }
.tag-reject { background: #fee2e2; color: #991b1b; }
.tag-admin { background: #ede9fe; color: #6d28d9; }
.tag-leader { background: #dcfce7; color: #166534; }
.tag-teacher { background: #dbeafe; color: #1e40af; }

.login-wrap { display: flex; flex-direction: column; justify-content: center; min-height: 80vh; padding: 24px; }
.login-box { background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.login-box h1 { font-size: 20px; text-align: center; margin-bottom: 4px; }
.login-box .sub { text-align: center; color: #6b7280; font-size: 13px; margin-bottom: 20px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 6px; border-bottom: 1px solid #f3f4f6; text-align: left; }
th { color: #6b7280; font-weight: 600; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.empty { text-align: center; color: #9ca3af; padding: 24px 0; font-size: 14px; }
@media (max-width: 480px) { table { font-size: 12px; } }
