[v-cloak] { display: none; }

* { box-sizing: border-box; }

/* 表单标签不换行，避免被按钮/输入框遮挡 */
.el-form-item__label { white-space: nowrap; }

/* 查价表单紧凑排版：缩小字体、收紧间距 */
.query-form { font-size: 12px; }
.query-form .el-form-item { margin-right: 8px; margin-bottom: 0; }
.query-form .el-form-item__label { font-size: 12px; padding-right: 4px; }
.query-form .el-input-number .el-input__inner { font-size: 12px; }
.query-form .el-button { font-size: 12px; }

/* 表单行之间的空行间隔 */
.form-row-gap { width: 100%; height: 18px; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: #f0f2f5;
  color: #303133;
}

/* ---------- 访客端布局 ---------- */
.sidebar {
  background: #001529;
  overflow-y: auto;
}
.sidebar .logo {
  height: 60px;
  line-height: 60px;
  text-align: center;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1px;
  background: #002140;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar .el-menu {
  border-right: none;
}

.main-body {
  padding: 20px;
  overflow-y: auto;
}

.page-header {
  margin-bottom: 16px;
}
.page-header h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #303133;
}
.page-header .sub {
  color: #909399;
  font-size: 13px;
}

/* ---------- 首页欢迎 ---------- */
.hero {
  background: linear-gradient(135deg, #409eff, #2563eb);
  color: #fff;
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 20px;
}
.hero h1 { margin: 0 0 8px; font-size: 26px; }
.hero p { margin: 0; opacity: .9; font-size: 32px; }

/* ---------- 报价结果 ---------- */
.quote-result .total-price {
  font-size: 34px;
  font-weight: 700;
  color: #f56c6c;
}
.quote-result .currency {
  font-size: 18px;
  color: #f56c6c;
  margin-right: 4px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.stat-item {
  background: #f7f9fc;
  border: 1px solid #ebeef5;
  border-radius: 6px;
  padding: 14px;
  text-align: center;
}
.stat-item .label { color: #909399; font-size: 13px; }
.stat-item .value { font-size: 20px; font-weight: 600; margin-top: 6px; color: #303133; }

/* ---------- 管理后台 ---------- */
.login-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1f3b73, #2b5ca8);
}
.login-card {
  width: 380px;
  background: #fff;
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}
.login-card h2 {
  margin: 0 0 6px;
  text-align: center;
  font-size: 22px;
}
.login-card .login-sub {
  text-align: center;
  color: #909399;
  font-size: 13px;
  margin-bottom: 24px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.admin-header .title { font-size: 18px; font-weight: 600; }

.filter-bar {
  margin-bottom: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.table-toolbar {
  margin-bottom: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 移动端适配 ---------- */
.mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 14px;
  background: #001529;
  color: #fff;
  align-items: center;
  gap: 12px;
}
.mobile-menu-btn {
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
.mobile-logo {
  font-size: 17px;
  font-weight: 600;
}
.mobile-drawer .el-drawer__body {
  padding: 0;
  background: #001529;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }
  .mobile-header {
    display: flex;
    margin: -12px -12px 12px;
  }
  .main-body {
    padding: 12px;
  }

  /* 查价表单竖排 */
  .query-form .el-form-item {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 10px;
  }
  .query-form .el-form-item__label {
    width: 100% !important;
    text-align: left;
    padding: 0 0 2px;
  }
  .query-form .el-form-item__content {
    width: 100%;
  }
  .query-form .el-input-number,
  .query-form .el-select {
    width: 100% !important;
  }
  .form-row-gap {
    height: 6px;
  }

  /* 结果统计 2 列 */
  .quote-result .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 横幅收窄内边距 */
  .hero {
    padding: 20px;
  }
}
