/**
 * WP微信机器人（WP WeChat Robot）自定义样式
 * 版本: 1.0.0
 * 作者: naigou
 * 
 * 所有样式都使用ng-前缀以避免与WordPress自带样式冲突
 */

/* ===== 基础样式 ===== */
.ng-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ng-section {
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.ng-section-header {
  padding: 15px 20px;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.ng-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.ng-section-content {
  padding: 20px;
}

.ng-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.ng-col {
  flex: 1;
  padding: 0 15px;
  box-sizing: border-box;
}

.ng-col-2 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 15px;
  box-sizing: border-box;
}

.ng-col-3 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 15px;
  box-sizing: border-box;
}

.ng-col-4 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 15px;
  box-sizing: border-box;
}

/* ===== 文本和排版 ===== */
.ng-text-primary {
  color: #2271b1;
}

.ng-text-success {
  color: #46b450;
}

.ng-text-warning {
  color: #ffb900;
}

.ng-text-danger {
  color: #dc3232;
}

.ng-text-center {
  text-align: center;
}

.ng-text-right {
  text-align: right;
}

.ng-text-bold {
  font-weight: 600;
}

.ng-text-small {
  font-size: 13px;
}

.ng-text-large {
  font-size: 18px;
}

/* ===== 表单元素 ===== */
.ng-form-group {
  margin-bottom: 20px;
}

.ng-form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.ng-form-control {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.ng-form-control:focus {
  border-color: #2271b1;
  outline: 0;
  box-shadow: 0 0 0 1px #2271b1;
}

.ng-form-help {
  margin-top: 5px;
  font-size: 13px;
  color: #666;
}

.ng-form-check {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.ng-form-check-input {
  margin-right: 8px;
}

.ng-form-check-label {
  font-size: 14px;
  color: #333;
}

.ng-form-select {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  box-sizing: border-box;
}

.ng-form-select:focus {
  border-color: #2271b1;
  outline: 0;
  box-shadow: 0 0 0 1px #2271b1;
}

.ng-form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ===== 按钮 ===== */
.ng-btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 4px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}

.ng-btn:focus, .ng-btn:hover {
  text-decoration: none;
  outline: 0;
}

.ng-btn-primary {
  color: #fff;
  background-color: #2271b1;
  border-color: #2271b1;
}

.ng-btn-primary:hover {
  background-color: #135e96;
  border-color: #135e96;
}

.ng-btn-success {
  color: #fff;
  background-color: #46b450;
  border-color: #46b450;
}

.ng-btn-success:hover {
  background-color: #389a41;
  border-color: #389a41;
}

.ng-btn-danger {
  color: #fff;
  background-color: #dc3232;
  border-color: #dc3232;
}

.ng-btn-danger:hover {
  background-color: #c02828;
  border-color: #c02828;
}

.ng-btn-outline {
  color: #2271b1;
  background-color: transparent;
  border-color: #2271b1;
}

.ng-btn-outline:hover {
  color: #fff;
  background-color: #2271b1;
  border-color: #2271b1;
}

.ng-btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.ng-btn-lg {
  padding: 10px 20px;
  font-size: 16px;
}

.ng-btn-block {
  display: block;
  width: 100%;
}

/* ===== 表格 ===== */
.ng-table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
}

.ng-table th,
.ng-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.ng-table th {
  background-color: #f9f9f9;
  font-weight: 600;
  color: #333;
}

.ng-table tr:hover {
  background-color: #f5f5f5;
}

.ng-table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0, 0, 0, 0.02);
}

.ng-table-bordered {
  border: 1px solid #eee;
}

.ng-table-bordered th,
.ng-table-bordered td {
  border: 1px solid #eee;
}

/* ===== 卡片和面板 ===== */
.ng-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ng-card-header {
  padding: 15px 20px;
  margin-bottom: 0;
  background-color: #f9f9f9;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.ng-card-body {
  flex: 1 1 auto;
  padding: 20px;
}

.ng-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.ng-card-subtitle {
  margin-top: 5px;
  margin-bottom: 0;
  font-size: 14px;
  color: #666;
}

.ng-card-footer {
  padding: 15px 20px;
  background-color: #f9f9f9;
  border-top: 1px solid rgba(0, 0, 0, 0.125);
}

/* ===== 导航和菜单 ===== */
.ng-nav {
  display: flex;
  flex-wrap: wrap;
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
  border-bottom: 1px solid #ddd;
}

.ng-nav-item {
  margin-bottom: -1px;
}

.ng-nav-link {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #666;
  border: 1px solid transparent;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  transition: all 0.2s ease-in-out;
}

.ng-nav-link:hover {
  color: #2271b1;
  border-color: transparent;
}

.ng-nav-link.ng-active {
  color: #333;
  background-color: #fff;
  border-color: #ddd #ddd #fff;
}

/* ===== 通知和提示 ===== */
.ng-alert {
  position: relative;
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: 4px;
}

.ng-alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}

.ng-alert-info {
  color: #31708f;
  background-color: #d9edf7;
  border-color: #bce8f1;
}

.ng-alert-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
  border-color: #faebcc;
}

.ng-alert-danger {
  color: #a94442;
  background-color: #f2dede;
  border-color: #ebccd1;
}

.ng-badge {
  display: inline-block;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 10px;
  color: #fff;
  background-color: #777;
}

.ng-badge-primary {
  background-color: #2271b1;
}

.ng-badge-success {
  background-color: #46b450;
}

.ng-badge-warning {
  background-color: #ffb900;
}

.ng-badge-danger {
  background-color: #dc3232;
}

/* ===== 微信特定样式 ===== */
.ng-wx-message {
  position: relative;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  background-color: #f1f1f1;
  max-width: 80%;
}

.ng-wx-message-in {
  margin-right: auto;
  background-color: #f1f1f1;
}

.ng-wx-message-out {
  margin-left: auto;
  background-color: #a0e75a;
}

.ng-wx-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
}

.ng-wx-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ng-wx-menu {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.ng-wx-menu-item {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ng-wx-menu-item:last-child {
  border-bottom: none;
}

.ng-wx-menu-item:hover {
  background-color: #f5f5f5;
}

.ng-wx-qrcode