* { box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at 50% 0%, #1a1a2e 0%, #0f0f1a 100%);
  color: #e0e0e0;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
.container {
  max-width: 720px;
  margin: 48px auto;
  background: rgba(30, 30, 45, 0.85);
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 0 40px rgba(100, 100, 255, 0.15);
  border: 1px solid rgba(120, 120, 255, 0.2);
}
h2 {
  margin-top: 0;
  color: #7eaaff;
  text-shadow: 0 0 12px rgba(120, 150, 255, 0.5);
}
label { display: block; margin-top: 16px; font-size: 14px; color: #aaa; }
input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid rgba(120, 120, 255, 0.3);
  border-radius: 6px;
  font-size: 15px;
  background: #181828;
  color: #e0e0e0;
}
input:focus {
  outline: none;
  border-color: #7eaaff;
  box-shadow: 0 0 8px rgba(120, 150, 255, 0.5);
}
button {
  width: 100%;
  margin-top: 24px;
  padding: 12px;
  background: linear-gradient(90deg, #5a7bff, #8f5aff);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(120, 120, 255, 0.4);
}
button:hover { background: linear-gradient(90deg, #6f8bff, #a06eff); }
.error {
  background: rgba(255, 60, 60, 0.15);
  color: #ff8080;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 14px;
  border: 1px solid rgba(255, 80, 80, 0.3);
}
a { color: #7eaaff; text-decoration: none; }
a:hover { text-shadow: 0 0 8px rgba(120, 150, 255, 0.7); }
ul { padding-left: 20px; }
li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; }
th { color: #7eaaff; text-align: left; padding: 10px; }
td { padding: 10px; }
code {
  background: #181828;
  padding: 2px 6px;
  border-radius: 4px;
  color: #7eaaff;
}

/* 主页卡片菜单 */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.menu-card {
  background: linear-gradient(135deg, #1c1c30, #252540);
  border: 1px solid rgba(120, 120, 255, 0.25);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  text-decoration: none;
  color: #e0e0e0;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}
.menu-card:hover {
  border-color: #7eaaff;
  box-shadow: 0 0 20px rgba(120, 150, 255, 0.4);
  transform: translateY(-2px);
  text-shadow: none;
}
.menu-icon {
  font-size: 28px;
  margin-bottom: 8px;
}
.menu-title {
  font-size: 15px;
  font-weight: 600;
  color: #7eaaff;
}
.menu-sub {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* 通用组件 */
.section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(120, 120, 255, 0.15);
}
.section h3 {
  color: #7eaaff;
  margin: 0 0 16px 0;
  font-size: 18px;
}

/* 消息提示 */
.alert-success {
  background: rgba(60, 200, 120, 0.15);
  color: #7fe0a0;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  border: 1px solid rgba(60, 200, 120, 0.3);
}
.alert-error {
  background: rgba(255, 60, 60, 0.15);
  color: #ff8080;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  border: 1px solid rgba(255, 80, 80, 0.3);
}

/* 卡片列表 */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.account-card {
  background: linear-gradient(135deg, #1c1c30, #252540);
  border: 1px solid rgba(120, 120, 255, 0.25);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: #e0e0e0;
  transition: all 0.2s;
}
.account-card:hover {
  border-color: #7eaaff;
  box-shadow: 0 0 20px rgba(120, 150, 255, 0.3);
  transform: translateY(-2px);
  text-shadow: none;
}
.account-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.account-name {
  font-size: 16px;
  font-weight: 600;
  color: #7eaaff;
}
.account-phone {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}
.account-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #888;
}
.account-phone-line {
  color: #aaa;
  font-size: 14px;
}

/* 徽章 */
.badge-online, .badge-offline, .badge-error {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.badge-online {
  background: rgba(60, 200, 120, 0.2);
  color: #7fe0a0;
}
.badge-offline {
  background: rgba(120, 120, 120, 0.2);
  color: #999;
}
.badge-error {
  background: rgba(255, 60, 60, 0.2);
  color: #ff8080;
}

/* 开关按钮 */
.toggle-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.toggle-grid form {
  display: inline-block;
}
.toggle-btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 110px;
}
.toggle-btn.on {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.4);
}
.toggle-btn.off {
  background: #444;
}
.toggle-btn:hover {
  transform: translateY(-1px);
}

/* 数据统计卡片 */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.stat-card {
  background: linear-gradient(135deg, #1c1c30, #252540);
  border: 1px solid rgba(120, 120, 255, 0.2);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.stat-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #7eaaff;
}

/* 日志框 */
.log-box {
  background: #12121e;
  border: 1px solid rgba(120, 120, 255, 0.15);
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  font-family: "Consolas", "Monaco", monospace;
  max-height: 360px;
  overflow-y: auto;
}
.log-line {
  padding: 6px 0;
  border-bottom: 1px solid rgba(120, 120, 255, 0.08);
}
.log-line:last-child {
  border-bottom: none;
}
.log-time {
  color: #666;
  margin-right: 8px;
}
.log-level {
  margin-right: 6px;
}
.log-success {
  color: #7fe0a0;
}
.log-error {
  color: #ff8080;
}
.log-info {
  color: #7eaaff;
}
.log-msg {
  color: #ccc;
}

/* 按钮 */
.btn-primary, .btn-orange {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, #5a7bff, #8f5aff);
  box-shadow: 0 0 16px rgba(120, 120, 255, 0.3);
}
.btn-orange {
  background: linear-gradient(135deg, #e67e22, #c0392b);
  box-shadow: 0 0 16px rgba(230, 126, 34, 0.3);
}
.btn-primary:hover, .btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(120, 120, 255, 0.4);
}





/* 分页 */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(120, 120, 255, 0.1);
  color: #7eaaff;
  text-decoration: none;
  font-size: 13px;
  min-width: 32px;
  text-align: center;
  transition: all 0.2s;
}
.page-btn:hover {
  background: rgba(120, 120, 255, 0.25);
  text-shadow: none;
}
.page-btn.active {
  background: linear-gradient(135deg, #5a7bff, #8f5aff);
  color: #fff;
  box-shadow: 0 0 10px rgba(120, 150, 255, 0.5);
}
.page-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
}

/* 频道列表 */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.channel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #1c1c30, #252540);
  border: 1px solid rgba(120, 120, 255, 0.2);
  border-radius: 10px;
  padding: 14px 18px;
  gap: 16px;
}
.channel-name {
  color: #e0e0e0;
  font-size: 15px;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  word-break: break-all;
}
.channel-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  align-items: center;
}
.channel-actions form {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}
.btn-mini {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 36px;
  font-size: 14px;
  border-radius: 8px;
  border: none;
  background: rgba(120, 120, 255, 0.15);
  color: #7eaaff;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  line-height: 1;
  font-family: inherit;
  transition: all 0.15s;
}
.btn-mini:hover {
  background: rgba(120, 120, 255, 0.3);
  text-shadow: none;
}
.btn-mini.btn-danger {
  background: rgba(255, 80, 80, 0.15);
  color: #ff8080;
}
.btn-mini.btn-danger:hover {
  background: rgba(255, 80, 80, 0.3);
}

/* 返回按钮 */
.btn-back {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(120, 120, 255, 0.12);
  border: 1px solid rgba(120, 120, 255, 0.3);
  color: #7eaaff;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}
.btn-back:hover {
  background: rgba(120, 120, 255, 0.25);
  border-color: #7eaaff;
  box-shadow: 0 0 12px rgba(120, 150, 255, 0.3);
  text-shadow: none;
}

textarea, select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid rgba(120, 120, 255, 0.3);
  border-radius: 6px;
  font-size: 15px;
  background: #181828;
  color: #e0e0e0;
  font-family: inherit;
}
textarea:focus, select:focus {
  outline: none;
  border-color: #7eaaff;
  box-shadow: 0 0 8px rgba(120, 150, 255, 0.5);
}

/* 勾选框强制靠左 */
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  justify-content: flex-start;
}
.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #7eaaff;
  flex-shrink: 0;
  margin: 0;
}
.check-row .check-name {
  color: #e0e0e0;
  font-size: 14px;
  flex: 1;
  text-align: left;
}
.check-row .check-phone {
  color: #888;
  font-size: 12px;
  font-family: monospace;
  flex-shrink: 0;
}
.check-row .badge-online,
.check-row .badge-offline {
  flex-shrink: 0;
}

/* 操作类型标签 */
.op-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.op-tab {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid rgba(120, 120, 255, 0.25);
  background: transparent;
  color: #7eaaff;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  width: auto;
  margin: 0;
  font-family: inherit;
}
.op-tab:hover {
  background: rgba(120, 120, 255, 0.1);
}
.op-tab.active {
  background: linear-gradient(135deg, #5a7bff, #8f5aff);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 16px rgba(120, 120, 255, 0.4);
}
.op-panel {
  display: none;
}
.op-panel.active {
  display: block;
}

/* 文件上传 */
.file-upload {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(120, 120, 255, 0.12);
  border: 1px dashed rgba(120, 120, 255, 0.4);
  color: #7eaaff;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 12px;
  text-align: center;
}
.file-upload:hover {
  background: rgba(120, 120, 255, 0.22);
  border-color: #7eaaff;
}
.file-upload input[type="file"] {
  display: none;
}
.file-upload span {
  font-size: 14px;
}

.log-account {
  color: #b18aff;
  margin-right: 6px;
  font-weight: 500;
}

/* 今日汇总 */
.today-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.today-stat {
  background: linear-gradient(135deg, #1c1c30, #252540);
  border: 1px solid rgba(120, 120, 255, 0.2);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
.today-label {
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}
.today-value {
  font-size: 24px;
  font-weight: 700;
  color: #7eaaff;
}

/* 深色按钮，跟 btn-primary / btn-orange 一样的尺寸 */
.btn-dark {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3a3a5a, #2a2a45);
  color: #e0e0e0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid rgba(120, 120, 255, 0.25);
}
.btn-dark:hover {
  background: linear-gradient(135deg, #4a4a7a, #3a3a60);
  border-color: #7eaaff;
  transform: translateY(-2px);
  text-shadow: none;
}

/* 账号卡片：外层 div，内层 a 可点 */
.account-card {
  background: linear-gradient(135deg, #1c1c30, #252540);
  border: 1px solid rgba(120, 120, 255, 0.25);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.account-card:hover {
  border-color: #7eaaff;
  box-shadow: 0 0 20px rgba(120, 150, 255, 0.3);
  transform: translateY(-2px);
}
.account-main {
  text-decoration: none;
  color: #e0e0e0;
  display: block;
}
.account-main:hover {
  text-shadow: none;
}

.account-username {
  color: #7eaaff;
  font-size: 12px;
  margin-top: 2px;
}
.account-bio {
  color: #888;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.3;
}
.check-username {
  color: #7eaaff;
  font-size: 12px;
  margin-left: 6px;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.account-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(120, 120, 255, 0.4);
  flex-shrink: 0;
}
.account-avatar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5a7bff, #8f5aff);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}
