/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: #1f2d3d;
  background: #f5f7fb;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* ========== 顶部导航 ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: linear-gradient(135deg, #09162b 0%, #102a4c 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-block;
  background: linear-gradient(135deg, #f3e2aa, #c9a54a);
  transform: rotate(45deg);
  border-radius: 4px;
  position: relative;
  box-shadow: 0 4px 12px rgba(201, 165, 74, 0.4);
}

.brand-mark::after {
  content: "顺";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  color: #102a4c;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-links a {
  color: #cfdbee;
  font-size: 15px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 22px;
  transition: all 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.12);
  color: #f3e2aa;
}

/* ========== Hero 区域 ========== */
.hero {
  background: linear-gradient(135deg, #0b1f3a 0%, #102a4c 60%, #163a5f 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 20px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(201, 165, 74, 0.25), transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  color: #fff;
  font-size: 36px;
  letter-spacing: 8px;
  margin-bottom: 14px;
}

.hero p {
  color: #a9bad4;
  font-size: 16px;
  letter-spacing: 2px;
}

/* ========== 主体内容 ========== */
.page {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.filter-tabs {
  display: flex;
  background: #e9edf4;
  border-radius: 28px;
  padding: 4px;
}

.filter-tab {
  padding: 10px 28px;
  border-radius: 24px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: #5a6a7e;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-tab.active {
  background: #0b1f3a;
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 31, 58, 0.25);
}

.toolbar-meta {
  color: #6b7a8d;
  font-size: 14px;
}

/* ========== 地区分组 ========== */
.region-group {
  margin-bottom: 36px;
}

.region-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.region-title {
  font-size: 22px;
  font-weight: 700;
  color: #0b1f3a;
  letter-spacing: 2px;
}

.region-title::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 22px;
  background: linear-gradient(180deg, #c9a54a, #f3e2aa);
  border-radius: 3px;
  margin-right: 12px;
  vertical-align: middle;
}

.region-count {
  background: #c9a54a;
  color: #fff;
  font-size: 13px;
  border-radius: 20px;
  padding: 4px 12px;
  font-weight: 600;
}

/* ========== 标录表格 ========== */
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8edf4;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1500px;
}

thead th {
  background: #102a4c;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 15px 12px;
  text-align: left;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

tbody td {
  padding: 14px 12px;
  border-bottom: 1px solid #edf1f7;
  font-size: 14px;
  color: #2a3950;
  vertical-align: top;
}

tbody tr:hover {
  background: #f8fafd;
}

.tender-title {
  font-weight: 700;
  color: #0b1f3a;
  min-width: 220px;
  max-width: 280px;
}

.cell-desc {
  min-width: 160px;
  max-width: 260px;
  white-space: normal;
  word-break: break-all;
}

.amount {
  color: #b28c32;
  font-weight: 700;
  white-space: nowrap;
}

.btn-bid {
  display: inline-block;
  background: linear-gradient(135deg, #c9a54a, #b28c32);
  color: #fff;
  padding: 9px 20px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-bid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 165, 74, 0.35);
}

.status-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-no {
  background: #f0f2f6;
  color: #8a94a6;
}

/* ========== 未登录提示 ========== */
.not-login-overlay {
  text-align: center;
  padding: 100px 20px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8edf4;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  max-width: 600px;
  margin: 40px auto;
}

.lock-icon {
  margin-bottom: 24px;
}

.not-login-overlay h2 {
  font-size: 28px;
  color: #0b1f3a;
  margin-bottom: 12px;
}

.not-login-overlay p {
  color: #6b7a8d;
  margin-bottom: 32px;
}

.overlay-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========== 按钮 ========== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #c9a54a, #b28c32);
  color: #fff;
  border: none;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201, 165, 74, 0.3);
}

.btn-outline-gold {
  display: inline-block;
  border: 2px solid #c9a54a;
  color: #b28c32;
  background: #fff;
  padding: 11px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-outline-gold:hover {
  background: #fdf9f0;
  border-color: #b28c32;
}

/* ========== 登录/注册页 ========== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #09162b 0%, #102a4c 55%, #1a3a63 100%);
  padding: 24px;
  position: relative;
}

.auth-page::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 165, 74, 0.22), transparent 70%);
  border-radius: 50%;
}

.auth-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.98);
  width: 440px;
  max-width: 100%;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  padding: 44px 38px;
}

.auth-card-wide {
  width: 520px;
}

.auth-brand {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: #0b1f3a;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.gold-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #c9a54a, #f3e2aa);
  border-radius: 2px;
  margin: 0 auto 22px;
}

.auth-card h2 {
  text-align: center;
  font-size: 23px;
  color: #0b1f3a;
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  color: #8a94a6;
  font-size: 14px;
  margin-bottom: 28px;
}

.auth-footer {
  text-align: center;
  margin-top: 22px;
  color: #6b7a8d;
  font-size: 14px;
}

.auth-footer a {
  color: #b28c32;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2a3950;
  margin-bottom: 8px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  font-size: 15px;
  background: #fcfdff;
  transition: all 0.2s ease;
}

input:focus {
  outline: none;
  border-color: #c9a54a;
  box-shadow: 0 0 0 3px rgba(201, 165, 74, 0.15);
}

.form-message {
  min-height: 20px;
  margin-bottom: 12px;
  color: #d9534f;
  font-size: 14px;
  text-align: center;
}

/* ========== 文件上传 ========== */
.file-upload {
  position: relative;
  border: 1px dashed #c9cdd9;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background: #f8fafd;
  transition: all 0.2s ease;
}

.file-upload:hover {
  border-color: #c9a54a;
  background: #fdf9f0;
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-label {
  color: #68788d;
  font-size: 14px;
}

/* ========== 加载 / 空状态 ========== */
.loading {
  text-align: center;
  color: #6b7a8d;
  font-size: 16px;
  padding: 80px 0;
}

.loading::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e8edf4;
  border-top-color: #c9a54a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 12px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state {
  text-align: center;
  padding: 80px 0;
  color: #8a94a6;
  font-size: 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8edf4;
}

.error {
  background: #fff3f3;
  color: #d9534f;
  border: 1px solid #f5c6c6;
  border-radius: 8px;
  padding: 16px 20px;
  text-align: center;
}

/* ========== 页脚 ========== */
.site-footer {
  text-align: center;
  padding: 28px 20px;
  color: #8a94a6;
  font-size: 13px;
  border-top: 1px solid #e8edf4;
  background: #fff;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .site-nav {
    padding: 0 16px;
  }

  .nav-links a {
    padding: 8px 12px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 28px;
    letter-spacing: 4px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-card,
  .auth-card-wide {
    padding: 32px 22px;
  }
}
