/* 公共样式 */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", sans-serif; background: #f5f5f5; }
.main-content { min-height: calc(100vh - 120px); padding: 20px; }

.site-header {
    background: #1a73e8;
    color: #fff;
    padding: 12px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { color: #fff; text-decoration: none; font-weight: bold; font-size: 1.1rem; }
.nav-links { display: flex; gap: 16px; }
.nav-links--spaced { gap: 28px; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: #fff; }
.user-info { margin-right: 12px; }
.btn-logout { padding: 6px 14px; cursor: pointer; background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.5); color: #fff; border-radius: 4px; }
.btn-logout:hover { background: rgba(255,255,255,0.3); }

.site-footer {
    text-align: center;
    padding: 16px;
    color: #666;
    font-size: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

/* 登录页 */
.login-page .login-main { display: flex; justify-content: center; align-items: center; min-height: calc(100vh - 120px); }
.login-box {
    width: 100%;
    max-width: 380px;
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.login-title { margin: 0 0 24px; font-size: 1.25rem; text-align: center; color: #333; }
.login-form .form-group { margin-bottom: 16px; }
.login-form label { display: block; margin-bottom: 6px; color: #555; font-size: 14px; }
.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}
.login-form input:focus { outline: none; border-color: #1a73e8; }
.form-msg { min-height: 20px; margin-bottom: 12px; font-size: 13px; color: #c00; }
.btn-submit {
    width: 100%;
    padding: 10px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}
.btn-submit:hover { background: #1557b0; }
.btn-submit:disabled { background: #ccc; cursor: not-allowed; }

.page-placeholder { text-align: center; padding: 40px; color: #666; }

/* 管理列表 */
.admin-card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.admin-card h2 { margin: 0 0 16px; font-size: 1.1rem; }
.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; }
table.data-table th, table.data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; }
table.data-table th { background: #f8f8f8; font-weight: 600; }
table.data-table .btn-sm { padding: 4px 10px; margin-right: 6px; font-size: 12px; cursor: pointer; border-radius: 4px; border: 1px solid #ddd; background: #fff; }
table.data-table .btn-sm:hover { background: #f0f0f0; }
table.data-table .btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; }
.filter-bar { margin-bottom: 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.filter-bar .filter-label { margin-right: 4px; color: #666; font-size: 14px; }
.filter-bar select, .filter-bar button { padding: 6px 12px; margin-right: 8px; }
.modal-mask { display: none; position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; }
.modal-mask.show { display: flex; }
.modal-box { background: #fff; padding: 24px; border-radius: 8px; min-width: 320px; max-width: 90%; }
.form-row { margin-bottom: 12px; }
.form-row label { display: inline-block; width: 80px; }
.form-row input, .form-row select { padding: 6px 10px; width: 200px; }
.stat-cards { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.stat-card { background: #fff; padding: 20px; border-radius: 8px; min-width: 140px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-card .num { font-size: 1.5rem; font-weight: bold; color: #1a73e8; }
.stat-card .label { font-size: 12px; color: #666; margin-top: 4px; }
