/*!
 * OZUI 3.3 - 小心窝导航 3.0 适配版基础 UI 框架（OZDAO 兼容）
 * 作者：小心窝  QQ:460551
 * 提供栅格 / 按钮 / 表单 / 时间线 / 分页 等基础类，模板可在其上自由扩展
 */
* { -webkit-tap-highlight-color: transparent; }
.oz-box-sizing, .oz-box-sizing * { box-sizing: border-box; }
.oz-clearfix:after { content: ""; display: table; clear: both; }
.oz-center { text-align: center; }
.oz-left { text-align: left; }
.oz-right { text-align: right; }
.oz-transform { transform: translateZ(0); }
.oz-transition { transition: all .25s ease; }
.oz-selection::selection { background: #10a37f; color: #fff; }

/* ===== 栅格（12 列） ===== */
.oz-row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
[class*="oz-xs-"], [class*="oz-sm-"], [class*="oz-md-"], [class*="oz-lg-"] { position: relative; min-height: 1px; padding: 0 8px; box-sizing: border-box; }
.oz-xs-1 { width: 8.333%; } .oz-xs-2 { width: 16.666%; } .oz-xs-3 { width: 25%; }
.oz-xs-4 { width: 33.333%; } .oz-xs-5 { width: 41.666%; } .oz-xs-6 { width: 50%; }
.oz-xs-7 { width: 58.333%; } .oz-xs-8 { width: 66.666%; } .oz-xs-9 { width: 75%; }
.oz-xs-10 { width: 83.333%; } .oz-xs-11 { width: 91.666%; } .oz-xs-12 { width: 100%; }
@media (min-width: 768px) {
  .oz-sm-1 { width: 8.333%; } .oz-sm-2 { width: 16.666%; } .oz-sm-3 { width: 25%; }
  .oz-sm-4 { width: 33.333%; } .oz-sm-5 { width: 41.666%; } .oz-sm-6 { width: 50%; }
  .oz-sm-7 { width: 58.333%; } .oz-sm-8 { width: 66.666%; } .oz-sm-9 { width: 75%; }
  .oz-sm-10 { width: 83.333%; } .oz-sm-11 { width: 91.666%; } .oz-sm-12 { width: 100%; }
}
@media (min-width: 992px) {
  .oz-md-1 { width: 8.333%; } .oz-md-2 { width: 16.666%; } .oz-md-3 { width: 25%; }
  .oz-md-4 { width: 33.333%; } .oz-md-5 { width: 41.666%; } .oz-md-6 { width: 50%; }
  .oz-md-7 { width: 58.333%; } .oz-md-8 { width: 66.666%; } .oz-md-9 { width: 75%; }
  .oz-md-10 { width: 83.333%; } .oz-md-11 { width: 91.666%; } .oz-md-12 { width: 100%; }
}
@media (min-width: 1200px) {
  .oz-lg-1 { width: 8.333%; } .oz-lg-2 { width: 16.666%; } .oz-lg-3 { width: 25%; }
  .oz-lg-4 { width: 33.333%; } .oz-lg-5 { width: 41.666%; } .oz-lg-6 { width: 50%; }
  .oz-lg-7 { width: 58.333%; } .oz-lg-8 { width: 66.666%; } .oz-lg-9 { width: 75%; }
  .oz-lg-10 { width: 83.333%; } .oz-lg-11 { width: 91.666%; } .oz-lg-12 { width: 100%; }
}

/* ===== 按钮 ===== */
.oz-btn { display: inline-block; padding: 8px 18px; border: none; border-radius: 6px; background: #eee; color: #555; font-size: 14px; line-height: 1.5; cursor: pointer; text-align: center; transition: all .2s; text-decoration: none; }
.oz-btn:hover { opacity: .88; text-decoration: none; }
.oz-btn:active { transform: scale(.97); }
.oz-btn-lg { padding: 12px 24px; font-size: 16px; border-radius: 8px; }
.oz-btn-sm { padding: 4px 10px; font-size: 12px; }
.oz-btn-block { display: block; width: 100%; }
.oz-btn-primary, .oz-bg-blue { background: #3474f6; color: #fff; }
.oz-bg-green { background: #10a37f; color: #fff; }
.oz-bg-orange { background: #ff943e; color: #fff; }
.oz-bg-red { background: #f05b57; color: #fff; }
.oz-bg-purple { background: #8153e0; color: #fff; }
.oz-bg-cyan { background: #19b3b1; color: #fff; }

/* ===== 表单 ===== */
.oz-form-group { margin-bottom: 14px; }
.oz-form-label { display: block; margin-bottom: 6px; color: #555; font-size: 14px; }
.oz-form-field { display: flex; align-items: center; }
.oz-form-field input, .oz-form-field select, .oz-form-field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #dfe4ea; border-radius: 6px;
  font-size: 14px; outline: none; transition: border .2s; background: #fff; color: #333;
}
.oz-form-field input:focus, .oz-form-field select:focus, .oz-form-field textarea:focus { border-color: #10a37f; }
.oz-form-field + .oz-form-field { margin-top: 8px; }

/* ===== 时间线 ===== */
.oz-timeline { position: relative; }
.oz-timeline-item { position: relative; padding: 0 0 16px 18px; display: block; text-decoration: none; }
.oz-timeline-item:before { content: ""; position: absolute; left: 2px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #10a37f; }
.oz-timeline-item:after { content: ""; position: absolute; left: 4px; top: 16px; bottom: 2px; width: 2px; background: #eef1f4; }
.oz-timeline-item:last-child:after { display: none; }
.oz-timeline-time { font-size: 12px; color: #999; margin-bottom: 4px; }
.oz-timeline-main { color: #444; font-size: 14px; }
.oz-timeline-main .icon img { width: 16px; height: 16px; vertical-align: -2px; margin-right: 5px; border-radius: 3px; }

/* ===== 徽章 / 标签 ===== */
.oz-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; color: #fff; background: #999; }
.oz-badge.green { background: #10a37f; } .oz-badge.red { background: #f05b57; }
.oz-badge.orange { background: #ff943e; } .oz-badge.blue { background: #3474f6; }
.oz-badge.purple { background: #8153e0; }

/* ===== 提示条 ===== */
.oz-alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.oz-alert.info { background: #eef4ff; color: #3474f6; }
.oz-alert.ok { background: #e8f7f1; color: #10a37f; }
.oz-alert.warn { background: #fff4e8; color: #ff943e; }
.oz-alert.err { background: #feeeed; color: #f05b57; }

/* ===== 表格 ===== */
.oz-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.oz-table th, .oz-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f2f5; word-break: break-all; }
.oz-table th { background: #f7f9fb; color: #666; font-weight: 500; white-space: nowrap; }
.oz-table tr:hover td { background: #fafbfc; }

/* ===== 分页辅助（模板主题可覆盖） ===== */
.oz-pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; justify-content: center; }
.oz-pagination li a, .oz-pagination li span { display: inline-block; min-width: 34px; padding: 6px 10px; text-align: center; border-radius: 6px; background: #f2f4f7; color: #555; text-decoration: none; font-size: 13px; }
.oz-pagination li.active a { background: #10a37f; color: #fff; }
