* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #f5f7fa; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.login-card { width: 380px; max-width: 100%; }
.login-card h2 { margin: 0 0 20px; text-align: center; color: #1f2937; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-img { cursor: pointer; height: 40px; flex: none; }

.layout { display: flex; min-height: 100vh; }
.aside { width: 210px; background: #001529; flex: none; }
.aside .logo { height: 56px; line-height: 56px; color: #fff; font-size: 17px; font-weight: 600; text-align: center; }
.aside .el-menu { border-right: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.header { height: 56px; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.header .title { font-size: 16px; font-weight: 600; }
.menu-btn { display: none; }
.content { padding: 16px; }

.panel { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.panel h3 { margin: 0 0 12px; font-size: 15px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar .el-input, .toolbar .el-select { width: 180px; }
.pager { margin-top: 12px; display: flex; justify-content: flex-end; }
.muted { color: #9ca3af; font-size: 12px; }
.url { word-break: break-all; }
.tip { color: #6b7280; font-size: 13px; line-height: 1.7; margin: 0 0 12px; }

@media (max-width: 768px) {
  .aside { display: none; }
  .menu-btn { display: inline-flex; }
  .content { padding: 10px; }
  .toolbar .el-input, .toolbar .el-select { width: 100%; }
  .el-dialog { width: 94% !important; }
  /* 手机端表格：整张表横向滑动，不固定右侧操作列；操作按钮不换行，行高一致 */
  .el-table .el-table__cell.el-table-fixed-column--right { position: static !important; box-shadow: none !important; }
  .el-table .el-table__cell.el-table-fixed-column--right::before { display: none !important; }
  .el-table th.el-table__cell, .el-table td.el-table__cell { white-space: nowrap; }
  .el-table td.el-table__cell .cell { white-space: nowrap; }
}

/* 域名商城 */
.shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-balance { font-size: 30px; font-weight: 650; color: #0b0b0b; font-variant-numeric: tabular-nums; }
.shop-balance small { font-size: 14px; font-weight: 400; color: #52514e; }
.shop-search { display: flex; gap: 8px; }
.result-title { margin: 18px 0 10px; font-size: 14px; color: #1f2937; }
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.dcard { border-radius: 10px; padding: 14px 16px; border: 1px solid; min-height: 84px; display: flex; flex-direction: column; justify-content: space-between; }
.dcard .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dcard .name { font-weight: 600; color: #1f2937; word-break: break-all; }
.dcard .icon { flex: none; width: 22px; height: 22px; border-radius: 5px; color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center; }
.dcard .bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; min-height: 24px; }
.dcard .st { font-size: 13px; }
.dcard .price { color: #067a3a; font-weight: 650; font-variant-numeric: tabular-nums; }
.dcard .price small { color: #52514e; font-weight: 400; font-size: 12px; }
.dcard.ok { background: #e9f7ef; border-color: #7fcf9f; }
.dcard.ok .icon { background: #1baf7a; }
.dcard.taken { background: #fdeeee; border-color: #f0a8a8; }
.dcard.taken .icon { background: none; color: #e34948; font-size: 20px; }
.dcard.taken .st { color: #c0322f; }
.dcard.premium, .dcard.error { background: #f5f6f7; border-color: #dfe1e5; }
.dcard.premium .icon, .dcard.error .icon { background: none; color: #9ca3af; font-size: 18px; }
.dcard.premium .st, .dcard.error .st { color: #6b7280; }
.money-in { color: #067a3a; font-weight: 600; }
.money-out { color: #c0322f; font-weight: 600; }
@media (max-width: 768px) {
  .dcards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dcard { padding: 10px 12px; }
  .dcard .bottom { flex-wrap: wrap; }
}

/* 仪表盘 */
.tiles { display: grid; gap: 20px; margin-bottom: 20px; }
.tiles.cols5 { grid-template-columns: repeat(5, 1fr); }
.tiles.user { grid-template-columns: repeat(12, 1fr); }
.tiles.user .tile { grid-column: span 3; }
.tiles.user .tile.wide { grid-column: span 4; }
.tile { display: flex; justify-content: space-between; align-items: flex-start; background: #fff; border-radius: 10px;
  padding: 24px 24px 30px; text-decoration: none; color: inherit; box-shadow: 0 1px 3px rgba(16,24,40,.04); transition: box-shadow .15s; }
a.tile[href]:hover { box-shadow: 0 4px 14px rgba(16,24,40,.08); }
.tile .label { color: #6b7280; font-size: 14px; }
.tile .value { font-size: 30px; font-weight: 600; color: #111827; margin-top: 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .value small { font-size: 15px; font-weight: 600; }
.ticon { flex: none; width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ticon svg { width: 24px; height: 24px; }
.tile.blue .ticon { background: #e8f3ff; color: #1677ff; }
.tile.green .ticon { background: #effbe6; color: #52c41a; }
.tile.orange .ticon { background: #fff4e5; color: #fa8c16; }
.tile.red .ticon { background: #fff0f0; color: #f5222d; }
.tile.purple .ticon { background: #f4ecff; color: #722ed1; }
.tile.cyan .ticon { background: #e6fbfb; color: #13a8a8; }
.tile.yellow .ticon { background: #fffbe0; color: #d4a106; }
.tile.gray .ticon { background: #f3f4f6; color: #9ca3af; }
.tile.teal .ticon { background: #e6f7f2; color: #0e9f6e; }
.tile.pink .ticon { background: #fdeef6; color: #db2777; }
.svc h3 { font-size: 18px; margin: 4px 0 16px 8px; }
.dots { list-style: none; margin: 0; padding: 0 0 0 8px; }
.dots li { position: relative; padding: 0 0 24px 34px; color: #4b5563; font-size: 14px; line-height: 20px; }
.dots li::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #10b981; }
.dots li::after { content: ""; position: absolute; left: 8px; top: 22px; bottom: 2px; width: 2px; background: #e5e7eb; }
.dots li:last-child { padding-bottom: 4px; }
.dots li:last-child::after { display: none; }
.dots a { color: #3b82f6; text-decoration: none; }
@media (max-width: 1100px) {
  .tiles.cols5, .tiles.user { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tiles.user .tile, .tiles.user .tile.wide { grid-column: span 1; }
  .tiles.user .tile:last-child { grid-column: span 2; }
}
@media (max-width: 768px) {
  .tiles { gap: 10px; margin-bottom: 12px; }
  .tile { padding: 16px; }
  .tile .value { font-size: 24px; }
  .ticon { width: 40px; height: 40px; }
  .ticon svg { width: 20px; height: 20px; }
}
.tile.accent.green .value { color: #52c41a; }
.tile.accent.purple .value { color: #722ed1; }

/* 手机端菜单抽屉：去掉默认白边，深色铺满 */
.nav-drawer { background: #001529; }
.nav-drawer .el-drawer__body { padding: 0; }
.nav-drawer .aside { display: block; width: 100%; min-height: 100%; }
