/* telegram-cos 前端样式（frontend-style-desc 规范：类名前缀 telegram-cos_） */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #eeeeee;
  color: #181818;
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
}

/* ---------- 头部 ---------- */

.telegram-cos_header {
  background: #366ef4;
  color: #ffffff;
  text-align: center;
  padding: 28px 20px;
}

.telegram-cos_title {
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
}

.telegram-cos_subtitle {
  font-size: 14px;
  line-height: 22px;
  opacity: 0.85;
}

/* ---------- 布局 ---------- */

.telegram-cos_container {
  max-width: 960px;
  margin: 20px auto;
  padding: 0 20px;
}

.telegram-cos_card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.telegram-cos_card-title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.telegram-cos_row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.telegram-cos_label {
  width: 72px;
  flex-shrink: 0;
  color: #777777;
}

.telegram-cos_hint {
  font-size: 12px;
  line-height: 20px;
  color: #777777;
}

/* ---------- 输入区域 ---------- */

.telegram-cos_input {
  flex: 1;
  min-width: 200px;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 22px;
  font-family: inherit;
  color: #181818;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.telegram-cos_input:hover {
  border-color: #366ef4;
}

.telegram-cos_input:focus {
  border-color: #366ef4;
  box-shadow: 0 0 0 4px #d9e1ff;
}

.telegram-cos_file {
  font-size: 14px;
  line-height: 22px;
  color: #777777;
}

/* ---------- 按钮 ---------- */

.telegram-cos_btn {
  padding: 8px 20px;
  font-size: 14px;
  line-height: 22px;
  font-weight: 600;
  font-family: inherit;
  color: #366ef4;
  background: #ffffff;
  border: 1px solid #366ef4;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.telegram-cos_btn:hover {
  background: #d9e1ff;
}

.telegram-cos_btn-primary {
  color: #ffffff;
  background: #366ef4;
}

.telegram-cos_btn-primary:hover {
  color: #366ef4;
  background: #d9e1ff;
}

.telegram-cos_btn-danger {
  color: #f6685d;
  border-color: #f6685d;
}

.telegram-cos_btn-danger:hover {
  background: #ffd8d2;
}

.telegram-cos_btn-sm {
  padding: 4px 10px;
  font-size: 12px;
  line-height: 20px;
}

.telegram-cos_btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- 表格 ---------- */

.telegram-cos_table-wrap {
  overflow-x: auto;
}

.telegram-cos_table {
  width: 100%;
  border-collapse: collapse;
}

.telegram-cos_table th,
.telegram-cos_table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #eeeeee;
}

.telegram-cos_table th {
  color: #777777;
  font-weight: 600;
}

.telegram-cos_table td {
  word-break: break-all;
  vertical-align: middle;
}

.telegram-cos_table tbody tr {
  transition: background 0.2s ease;
}

.telegram-cos_table tbody tr:hover {
  background: #d9e1ff;
}

.telegram-cos_col-size {
  width: 90px;
}

.telegram-cos_col-time {
  width: 180px;
}

.telegram-cos_col-action {
  width: 140px;
}

.telegram-cos_path-name {
  font-weight: 600;
}

.telegram-cos_path-dir {
  color: #777777;
  font-size: 12px;
  line-height: 20px;
}

/* ---------- 状态 ---------- */

.telegram-cos_status {
  font-size: 12px;
  line-height: 20px;
  color: #777777;
}

.telegram-cos_status-success {
  color: #56c08d;
}

.telegram-cos_status-error {
  color: #f6685d;
}

.telegram-cos_empty {
  display: none;
  text-align: center;
  color: #777777;
  padding: 24px 0;
}

.telegram-cos_empty-show {
  display: block;
}

/* ---------- 分页 ---------- */

.telegram-cos_pager {
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 0;
}
