/* ==========================================================
   域名信息管理 —— 极简白
   设计基调：纯白背景 / 浅灰分割线 / 近黑点缀 / 大留白
   ========================================================== */
html,
body {
  background: #fff;
}

body {
  color: #1f2328;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #1f2328;
  transition: color 0.15s ease;
}

a:hover,
a:focus {
  color: #000;
  text-decoration: none;
}

.container {
  max-width: 1020px;
  padding-left: 20px;
  padding-right: 20px;
}

.hidden {
  display: none !important;
}

.muted {
  color: #8b8f96;
}

/* ---------- 顶栏 ---------- */
.topbar {
  border-bottom: 1px solid #f0f1f2;
  padding: 18px 0;
  background: #fff;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #111;
}

.topbar-brand i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-right: 8px;
  border: 1px solid #ececec;
  border-radius: 50%;
  font-size: 12px;
  color: #555;
}

.topbar-right a {
  display: inline-block;
  margin-left: 22px;
  font-size: 13px;
  color: #8b8f96;
}

.topbar-right a i {
  margin-right: 4px;
}

.topbar-right a:hover {
  color: #111;
}

/* ---------- 首页 ---------- */
.page-home {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-home .home-main {
  flex: 1;
  padding: 20vh 0 90px;
}

.home-brand {
  text-align: center;
  margin-bottom: 38px;
}

.home-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border: 1px solid #ececec;
  border-radius: 50%;
  color: #555;
  font-size: 18px;
}

.home-brand h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #111;
}

.home-slogan {
  margin: 0;
  font-size: 13px;
  color: #a0a4aa;
  letter-spacing: 2px;
}

.search-box {
  position: relative;
}

.search-input {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 16px;
  font-size: 16px;
  color: #c3c7cc;
}

.search-input .form-control {
  height: 52px;
  padding: 6px 46px 6px 46px;
  font-size: 15px;
  color: #1f2328;
  border: 1px solid #e8e9eb;
  border-radius: 26px;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.search-input .form-control:focus {
  border-color: #d5d7da;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.search-input .form-control::-webkit-input-placeholder {
  color: #c3c7cc;
}

.search-clear {
  position: absolute;
  right: 18px;
  top: 17px;
  color: #cfd2d6;
  cursor: pointer;
  transition: color 0.15s ease;
}

.search-clear:hover {
  color: #8b8f96;
}

.search-result {
  width: 100%;
  margin: 10px 0 0;
  padding: 6px;
  border: 1px solid #f0f1f2;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(17, 19, 24, 0.08);
  max-height: 400px;
  overflow-y: auto;
}

.search-result .result-item {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: #1f2328;
  transition: background 0.12s ease;
}

.search-result .result-item:hover,
.search-result .result-item.active {
  background: #f7f8f9;
}

.result-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.result-uri {
  font-size: 14px;
  font-weight: 600;
  word-break: break-all;
}

.result-nic {
  flex: 1;
  color: #6b7076;
  font-size: 13px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.result-idx {
  color: #c3c7cc;
  font-size: 12px;
}

.result-meta {
  margin-top: 2px;
  color: #a0a4aa;
  font-size: 12px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.result-empty,
.result-loading {
  padding: 22px 16px;
  text-align: center;
  font-size: 13px;
  color: #a0a4aa;
}

.search-hint {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #b0b4ba;
  letter-spacing: 0.5px;
}

.search-hint a {
  color: #8b8f96;
  border-bottom: 1px dotted #dcdfe3;
}

/* ---------- 卡片 ---------- */
.card {
  background: #fff;
  border: 1px solid #f0f1f2;
  border-radius: 10px;
  padding: 22px 24px;
}

/* ---------- 页头（列表/编辑） ---------- */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 36px 0 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #f0f1f2;
  flex-wrap: wrap;
}

.page-head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 2px;
}

.page-head .page-desc {
  margin: 0;
  color: #a0a4aa;
  font-size: 13px;
}

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.toolbar .toolbar-search {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.toolbar .toolbar-search i {
  position: absolute;
  left: 14px;
  top: 11px;
  color: #c3c7cc;
}

.toolbar .toolbar-search .form-control {
  height: 38px;
  padding-left: 34px;
  border-radius: 19px;
}

/* ---------- 表格 ---------- */
.table-wrap {
  border: 1px solid #f0f1f2;
  border-radius: 10px;
  overflow: hidden;
}

.table-list {
  margin-bottom: 0;
}

.table-list > thead > tr > th {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f1f2;
  background: #fcfcfd;
  color: #8b8f96;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.table-list > tbody > tr > td {
  padding: 14px 16px;
  border-top: 0;
  border-bottom: 1px solid #f6f7f8;
  vertical-align: middle;
}

.table-list > tbody > tr:last-child > td {
  border-bottom: 0;
}

.table-list > tbody > tr {
  transition: background 0.12s ease;
}

.table-list > tbody > tr:hover > td {
  background: #fbfbfc;
}

.cell-idx {
  color: #c3c7cc;
  font-size: 12px;
}

.cell-uri {
  font-weight: 600;
  word-break: break-all;
}

.cell-uri .cell-sub {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 12px;
  color: #a0a4aa;
  word-break: break-all;
}

.cell-nic {
  color: #4b5056;
}

.cell-muted {
  color: #a0a4aa;
  font-size: 12px;
}

.row-actions {
  white-space: nowrap;
  text-align: right;
}

.row-actions a {
  color: #a0a4aa;
  font-size: 12px;
  margin-left: 14px;
}

.row-actions a:hover {
  color: #111;
}

.row-actions a.text-danger:hover {
  color: #c0392b;
}

.tag-mini {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #eceef0;
  border-radius: 10px;
  color: #8b8f96;
  font-size: 11px;
  line-height: 1.6;
}

.badge-soft {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  background: #f5f6f7;
  color: #6b7076;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}

.badge-soft.ok {
  background: #eef7f1;
  color: #2f7a4d;
}

.badge-soft.warn {
  background: #fdf4ea;
  color: #a8661b;
}

.badge-soft.bad {
  background: #fdeeee;
  color: #b5382f;
}

.empty-state {
  padding: 80px 0;
  text-align: center;
  color: #b0b4ba;
}

.empty-state i {
  display: block;
  font-size: 28px;
  margin-bottom: 12px;
  color: #dfe2e5;
}

.pager-mini {
  margin: 26px 0 0;
  text-align: center;
  color: #a0a4aa;
  font-size: 12px;
}

.pager-mini a {
  margin: 0 12px;
  color: #6b7076;
}

.pager-mini a:hover {
  color: #111;
}

.pager-mini a.disabled {
  color: #d5d8db;
  cursor: default;
}

/* ---------- 表单 ---------- */
.form-control {
  border: 1px solid #e8e9eb;
  border-radius: 4px;
  box-shadow: none;
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
  border-color: #c9ccd0;
  box-shadow: 0 0 0 3px rgba(17, 19, 24, 0.04);
}

textarea.form-control {
  resize: vertical;
  font-family: Menlo, Consolas, 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.control-label {
  font-weight: 400;
  color: #6b7076;
  font-size: 13px;
}

.form-horizontal .control-label {
  padding-top: 8px;
}

.form-horizontal .control-label .field-key {
  color: #c3c7cc;
  font-size: 11px;
}

.form-card {
  border: 1px solid #f0f1f2;
  border-radius: 10px;
  padding: 6px 24px 18px;
  margin-bottom: 18px;
}

.section-title {
  margin: 18px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f5f6f7;
  font-size: 12px;
  color: #8b8f96;
  letter-spacing: 2px;
}

.form-actions {
  margin: 8px 0 10px;
  padding-top: 20px;
  border-top: 1px solid #f0f1f2;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  border-radius: 4px;
  font-size: 13px;
  padding: 8px 20px;
  transition: all 0.15s ease;
}

.btn-default {
  border-color: #e4e6e8;
  background: #fff;
  color: #4b5056;
}

.btn-default:hover {
  border-color: #b9bdc2;
  background: #fff;
  color: #111;
}

.btn-primary {
  background: #111;
  border-color: #111;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:disabled:hover {
  background: #000;
  border-color: #000;
}

.btn-link {
  color: #a0a4aa;
}

.btn-link:hover {
  color: #111;
}

.btn-sm {
  padding: 6px 14px;
}

/* ---------- 登录 ---------- */
.page-login {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-login .login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 0;
}

.login-card {
  width: 360px;
  max-width: 100%;
  border: 1px solid #f0f1f2;
  border-radius: 12px;
  padding: 34px 32px 28px;
  box-shadow: 0 16px 40px rgba(17, 19, 24, 0.04);
}

.login-card h2 {
  margin: 0 0 26px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
}

.login-card .form-group {
  margin-bottom: 16px;
}

.login-card .form-control {
  height: 42px;
}

.login-card .btn {
  width: 100%;
  height: 42px;
  margin-top: 6px;
  letter-spacing: 2px;
}

.login-error {
  color: #c0392b;
  font-size: 12px;
  min-height: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.login-tip {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f5f6f7;
  text-align: center;
  font-size: 12px;
  color: #b0b4ba;
}

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid #f0f1f2;
  padding: 30px 0 38px;
  text-align: center;
  color: #a0a4aa;
  font-size: 12px;
  line-height: 2;
}

.site-footer a {
  color: #a0a4aa;
}

.site-footer a:hover {
  color: #4b5056;
}

.site-footer .footer-sep {
  margin: 0 10px;
  color: #e0e2e5;
}

.site-footer .footer-copy {
  margin-bottom: 2px;
}

/* ---------- 弹窗 ---------- */
.modal-content {
  border: 1px solid #f0f1f2;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(17, 19, 24, 0.12);
}

.modal-header {
  border-bottom: 1px solid #f5f6f7;
  padding: 16px 20px;
}

.modal-title {
  font-size: 15px;
  font-weight: 500;
}

.modal-body {
  padding: 20px;
  color: #6b7076;
}

.modal-footer {
  border-top: 1px solid #f5f6f7;
  padding: 14px 20px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
  .page-home .home-main {
    padding: 9vh 0 60px;
  }
  .home-brand h1 {
    font-size: 22px;
    letter-spacing: 2px;
  }
  .page-head {
    padding-top: 26px;
  }
  .form-card {
    padding: 4px 16px 14px;
  }
  .table-responsive {
    border: 0;
  }
  .row-actions a {
    margin-left: 10px;
  }
}
