@font-face {
  font-family: Noto;
  src: url("/fonts/NotoSans.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: NotoCJK;
  src: url("/fonts/NotoSansCJKsc.otf") format("opentype");
  font-display: swap;
}
:root {
  --primary: #1e9fff;
  --primary-hover: #168be0;
  --ink: #1f2d3d;
  --text: #45566c;
  --muted: #8794a5;
  --border: #e5e7eb;
}
body {
  font-family: Noto, NotoCJK, sans-serif;
  color: var(--text);
  background: #f5f6f8;
}
button,
input,
select,
textarea {
  font-family: inherit;
}
h1 {
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 24px;
}
h2 {
  font-size: 18px;
  margin-bottom: 18px;
}
.layui-btn:not(.layui-btn-primary) {
  background-color: var(--primary);
}
.layui-btn:not(.layui-btn-primary):hover {
  background-color: var(--primary-hover);
}
.layui-btn {
  min-height: 38px;
  height: auto;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 4px;
}
.layui-input,
.layui-select {
  min-height: 38px;
}
.layui-form-select dl dd.layui-this {
  background-color: var(--primary);
}
.layui-elem-quote {
  border-left-color: var(--primary);
}
.layui-table-view {
  max-width: 100%;
  overflow: hidden;
}
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.site-header .layui-container,
#site-nav,
.toolbar,
.quota-strip,
.site-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.brand {
  font-size: 21px;
  font-weight: 700;
  color: var(--primary);
  margin-right: auto;
}
#site-nav form {
  display: inline-block;
}
.language-form select {
  max-width: 130px;
  min-height: 38px;
  border: 1px solid var(--border);
  background: white;
}
.site-content {
  padding-top: 28px;
  padding-bottom: 32px;
  min-height: 65vh;
}
.site-footer {
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
}
.mobile-menu {
  display: none;
}
.portal-reserved {
  min-height: 55vh;
}
.auth-panel {
  max-width: 460px;
  margin: 32px auto;
}
.auth-panel .layui-card-body {
  padding: 28px;
}
label {
  display: block;
  margin-bottom: 8px;
}
.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0 18px;
}
.form-error {
  color: #b42318;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.captcha-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.captcha-row input {
  min-width: 0;
}
.captcha-refresh {
  border: 0;
  background: none;
  cursor: pointer;
}
.captcha-refresh img {
  width: 150px;
  height: 42px;
}
.toolbar,
.quota-strip {
  margin: 18px 0;
}
.toolbar .layui-input {
  flex: 1;
  min-width: 160px;
  max-width: 360px;
}
.quota-strip {
  background: #edf7ff;
  padding: 16px;
  border-radius: 6px;
}
.price {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 20px;
}
.contact-qr {
  display: block;
  max-width: 100%;
  width: 240px;
  margin: 0 auto 16px;
}
.layui-layer {
  max-width: calc(100vw - 24px);
}
.layui-layer-content {
  overflow-wrap: anywhere;
}
.admin-page .site-content {
  min-height: 100vh;
  padding: 0;
}
.admin-page h1 {
  font-size: 18px;
  margin-bottom: 18px;
}
.detail-list {
  padding: 20px;
}
.detail-list dt {
  font-weight: bold;
  margin-top: 12px;
}
.detail-list dd {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .mobile-menu {
    display: inline-block;
  }
  #site-nav {
    display: none;
    width: 100%;
    align-items: stretch;
  }
  #site-nav.open {
    display: flex;
    flex-direction: column;
  }
  #site-nav a {
    padding: 8px 0;
  }
  .site-content {
    padding-top: 20px;
  }
  .auth-panel {
    margin: 12px auto;
  }
  .auth-panel .layui-card-body {
    padding: 20px;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar .layui-btn {
    margin-left: 0;
  }
}

/* 所有表格统一12px；表头支持三语长标题自然换行。 */
.layui-table,
.layui-table th,
.layui-table td,
.layui-table-view .layui-table-cell {
  font-size: 12px;
}
.layui-table-view .layui-table-none {
  font-size: 12px;
}
.layui-table-header .layui-table-cell {
  height: auto;
  min-height: 28px;
  line-height: 18px;
  padding-top: 7px;
  padding-bottom: 7px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
.layui-btn.layui-btn-xs {
  min-height: 28px;
  line-height: 28px;
  font-size: 14px;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em {
  background-color: var(--primary);
}
.layui-laypage a:hover {
  color: var(--primary);
}
.layui-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.site-content-wide {
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 767px) {
  .site-content-wide {
    padding-left: 12px;
    padding-right: 12px;
  }
}
