/* 邻创区县联盟网 - 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; color: #2c3e50; background: #f5f7fa; line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { color: #2d6cdf; text-decoration: none; }
a:hover { color: #1a4ba8; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font-family: inherit; font-size: 14px; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* 顶部品牌栏 */
.site-header {
  background: linear-gradient(135deg, #1a3a6c 0%, #2d6cdf 100%);
  color: #fff;
  padding: 12px 0;
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.brand { display: flex; flex-direction: column; }
.brand .site-name { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.brand .slogan { font-size: 12px; opacity: 0.85; margin-top: 2px; }
.nav-menu { display: flex; gap: 4px; flex-wrap: wrap; }
.nav-menu a { color: #fff; padding: 8px 14px; border-radius: 6px; font-size: 14px; transition: background 0.2s; }
.nav-menu a:hover, .nav-menu a.active { background: rgba(255,255,255,0.2); }
.nav-menu a.active { background: rgba(255,255,255,0.3); font-weight: 600; }
.user-entry { display: flex; align-items: center; gap: 8px; }
.user-entry button { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.3); padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.user-entry button:hover { background: rgba(255,255,255,0.25); }
.user-entry .user-name { font-size: 13px; }

/* 通用按钮 */
.btn { display: inline-block; padding: 8px 18px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; transition: all 0.2s; background: #2d6cdf; color: #fff; }
.btn:hover { background: #1a4ba8; }
.btn-secondary { background: #95a5a6; }
.btn-secondary:hover { background: #7f8c8d; }
.btn-danger { background: #e74c3c; }
.btn-danger:hover { background: #c0392b; }
.btn-success { background: #27ae60; }
.btn-success:hover { background: #229954; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-lg { padding: 12px 28px; font-size: 16px; }
.btn-outline { background: transparent; border: 1px solid #2d6cdf; color: #2d6cdf; }
.btn-outline:hover { background: #2d6cdf; color: #fff; }

/* 卡片 */
.card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); margin-bottom: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; margin-right: 4px; }
.tag-benchmark { background: #fee; color: #c0392b; border: 1px solid #c0392b; }
.tag-new { background: #e8f8e8; color: #27ae60; border: 1px solid #27ae60; }
.tag-normal { background: #e8f0fd; color: #2d6cdf; border: 1px solid #2d6cdf; }
.tag-internal { background: #fff3e0; color: #e67e22; border: 1px solid #e67e22; }
.tag-public { background: #e8f8f5; color: #16a085; border: 1px solid #16a085; }

/* 表格 */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 14px; }
th { background: #f8f9fa; font-weight: 600; color: #5a6478; }
tr:hover { background: #f8f9fa; }

/* 表单 */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 13px; color: #5a6478; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 8px 10px; border: 1px solid #dcdfe6; border-radius: 4px; outline: none; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #2d6cdf; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }

/* 分页 */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.pagination button { padding: 6px 12px; border: 1px solid #dcdfe6; background: #fff; border-radius: 4px; cursor: pointer; }
.pagination button.active { background: #2d6cdf; color: #fff; border-color: #2d6cdf; }
.pagination button:disabled { opacity: 0.5; cursor: not-allowed; }

/* 状态徽章 */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }

/* 面包屑 */
.breadcrumb { padding: 10px 0; font-size: 13px; color: #999; }
.breadcrumb a { color: #2d6cdf; }
.breadcrumb .sep { margin: 0 6px; color: #ccc; }

/* 页脚 */
.site-footer { background: #2c3e50; color: #ecf0f1; padding: 30px 0 20px; margin-top: auto; flex-shrink: 0; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { font-size: 14px; margin-bottom: 10px; color: #fff; }
.footer-col p, .footer-col a { font-size: 13px; color: #bdc3c7; line-height: 1.8; }
.footer-bottom { text-align: center; padding-top: 16px; margin-top: 16px; border-top: 1px solid #34495e; font-size: 12px; color: #95a5a6; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 8px; max-width: 600px; width: 100%; max-height: 90vh; overflow: auto; }
.modal-header { padding: 14px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 16px; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 8px; }

/* 移动端适配 */
@media (max-width: 768px) {
  .container { padding: 0 12px; }
  .site-header .container { flex-direction: column; align-items: flex-start; }
  .nav-menu { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .nav-menu a { white-space: nowrap; }
  .form-row { flex-direction: column; }
  .site-footer .container { flex-direction: column; }
  table { font-size: 12px; }
  th, td { padding: 6px 8px; }
}
