/* 参考六安市公共资源交易中心交易查询页风格 */
:root {
  --primary: #0090e9;
  --primary-dark: #0077c2;
  --danger: #ff0000;
  --text: #333333;
  --muted: #999999;
  --border: #e6e6e6;
  --bg: #f5f7fa;
  --white: #ffffff;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: var(--text);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ewb-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 20deg,
      #2f80ed,
      #27ae60,
      #f2c94c,
      #eb5757,
      #9b51e0,
      #2f80ed
    );
  box-shadow: inset 0 0 0 6px #fff;
  flex-shrink: 0;
}

.brand-text h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.brand-text p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.header-nav {
  display: flex;
  gap: 8px;
}

.header-nav a {
  display: inline-block;
  padding: 8px 18px;
  color: var(--text);
  border-radius: 2px;
}

.header-nav a.active,
.header-nav a:hover {
  background: var(--primary);
  color: #fff;
}

/* Main */
.ewb-main {
  padding: 16px 16px 40px;
}

.breadcrumb {
  margin-bottom: 12px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb span {
  margin: 0 6px;
}

.ewb-policy {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0 20px 20px;
}

.ewb-policy-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--border);
}

.ewb-policy-hd h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 10px;
  line-height: 1.2;
}

.search-bar {
  display: flex;
  align-items: stretch;
  border: 1px solid #cfd8e3;
  background: #fff;
  min-width: 280px;
  max-width: 420px;
  flex: 1;
}

.search-bar input {
  flex: 1;
  border: 0;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  font-family: inherit;
}

.btn-search {
  width: 44px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-search:hover {
  background: var(--primary-dark);
}

.ewb-policy-list {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}

.ewb-policy-list > label {
  flex-shrink: 0;
  width: 72px;
  color: #666;
  line-height: 28px;
}

.ewb-policy-box {
  flex: 1;
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}

.filter-list li a {
  display: inline-block;
  min-width: 56px;
  padding: 4px 12px;
  text-align: center;
  color: var(--text);
  line-height: 20px;
}

.filter-list li.cur a,
.filter-list li a:hover {
  background: var(--primary);
  color: #fff;
}

.filter-list li.disabled a {
  color: #b0b0b0;
}

.filter-list li.tip a {
  color: #999;
  cursor: default;
}

.filter-list li.tip.cur a,
.filter-list li.tip a:hover {
  background: transparent;
  color: #999;
}

.filter-list li.disabled.cur a,
.filter-list li.disabled a:hover {
  background: #cfd8e3;
  color: #666;
}

.filter-list .city-tag {
  margin-left: 4px;
  font-size: 12px;
  color: #b85c38;
}

.filter-list li.cur .city-tag,
.filter-list li a:hover .city-tag {
  color: #ffe8d9;
}

.list-meta {
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.result-meta-cond {
  color: #ff0000;
  font-weight: 600;
}

.notice-list {
  border-top: 1px solid var(--border);
}

.notice-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--border);
}

.notice-list .title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.notice-list .title:hover {
  color: var(--primary);
}

.notice-list .city,
.notice-list .status {
  color: var(--danger);
}

.notice-list .info-type {
  color: var(--text);
}

.notice-list .date {
  flex-shrink: 0;
  color: var(--muted);
  width: 96px;
  text-align: right;
}

.notice-list .empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  border-bottom: 0;
  display: block;
}

/* Pager */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 0 8px;
}

.pager[hidden] {
  display: none !important;
}

.pager-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pager-pages button {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.pager-pages button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pager-pages button.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pager-pages button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pager-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pager-jump input {
  width: 56px;
  height: 32px;
  border: 1px solid var(--border);
  padding: 0 8px;
  font-family: inherit;
}

.pager-jump button {
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}

/* About */
.about-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 32px;
}

.about-card h2 {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 22px;
}

.about-card h3 {
  margin: 24px 0 10px;
  font-size: 16px;
}

.about-card ul {
  padding-left: 20px;
  list-style: disc;
}

.about-card li {
  margin: 6px 0;
}

.feedback-block {
  margin-top: 8px;
  width: 100%;
  max-width: none;
  padding: 18px 20px 20px;
  background: #f8fbfe;
  border: 1px solid #dceaf5;
  border-left: 3px solid var(--primary);
  box-sizing: border-box;
}

.feedback-block h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 16px;
}

.feedback-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.feedback-form {
  display: block;
  width: 100%;
}

.feedback-field {
  display: block;
  width: 100%;
  margin: 0 0 14px;
}

.feedback-label {
  display: block !important;
  margin: 0 0 6px !important;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.feedback-label .req,
span.req {
  color: #ff0000 !important;
  font-weight: 700;
  margin-left: 4px;
}

.feedback-label .opt {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  background: #eef3f8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.feedback-control,
.feedback-form textarea,
.feedback-form input[type="text"] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid #cfd8e3;
  border-radius: 2px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea.feedback-control,
.feedback-form textarea {
  min-height: 140px;
  resize: vertical;
  vertical-align: top;
}

.feedback-control::placeholder {
  color: #b0b8c2;
}

.feedback-control:hover {
  border-color: #b7c7d8;
}

.feedback-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 144, 233, 0.12);
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
  flex-wrap: wrap;
}

.feedback-submit {
  flex-shrink: 0;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 9px 22px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 2px;
}

.feedback-submit:hover {
  background: var(--primary-dark);
}

.feedback-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.feedback-status {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  min-height: 1.2em;
}

.feedback-status.is-ok {
  color: #1a7f37;
}

.feedback-status.is-err {
  color: #c0392b;
}

/* 关于本站右上角三击彩蛋 */
.site-header {
  position: relative;
}

.feedback-egg-zone {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  z-index: 5;
}

.fb-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  background: rgba(15, 23, 42, 0.45);
  overflow: auto;
}

.fb-admin-modal[hidden] {
  display: none !important;
}

body.fb-admin-open {
  overflow: hidden;
}

.fb-admin-dialog {
  width: 100%;
  max-width: 860px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.fb-admin-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: #f8fbfe;
}

.fb-admin-hd h3 {
  margin: 0;
  font-size: 18px;
  color: var(--primary);
}

.fb-admin-close {
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 4px;
}

.fb-admin-close:hover {
  color: var(--text);
}

.fb-admin-tip {
  margin: 0;
  padding: 10px 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.fb-admin-body {
  padding: 14px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: min(70vh, 720px);
  overflow: auto;
}

.fb-admin-empty {
  margin: 20px 0;
  text-align: center;
  color: var(--muted);
}

.fb-admin-empty.is-err {
  color: #c0392b;
}

.fb-admin-card {
  border: 1px solid #dceaf5;
  background: #f8fbfe;
  padding: 12px 14px;
}

.fb-admin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.fb-admin-meta .muted {
  color: #b0b8c2;
}

.fb-admin-content {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  border: 1px solid #e6eef6;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.fb-admin-edit label {
  display: block;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}

.fb-admin-status {
  display: block;
  margin-top: 4px;
  width: 160px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #cfd8e3;
  font: inherit;
  background: #fff;
}

.fb-admin-remark-label textarea {
  display: block;
  margin-top: 4px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #cfd8e3;
  font: inherit;
  resize: vertical;
  min-height: 56px;
}

.fb-admin-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fb-admin-save {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 7px 16px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.fb-admin-save:hover {
  background: var(--primary-dark);
}

.fb-admin-save:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fb-admin-msg {
  font-size: 12px;
  color: var(--muted);
}

.fb-admin-msg.is-ok {
  color: #1a7f37;
}

.fb-admin-msg.is-err {
  color: #c0392b;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 20px 0 28px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--primary);
}

.visit-stats {
  margin-top: 8px;
  color: var(--muted);
}

.visit-stats .visit-sep {
  margin: 0 8px;
  color: #ccc;
}

.visit-stats span[id] {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* Notice landing page */
.notice-detail .ewb-policy-hd h2 {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 600;
}

.notice-disclaimer {
  margin: 12px 0 20px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #f0e0b2;
  border-radius: 4px;
  color: #7a5b00;
  font-size: 13px;
}

.notice-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 24px;
}

.notice-meta-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.notice-meta-label {
  flex: 0 0 72px;
  color: var(--muted);
}

.notice-meta-value {
  color: var(--text);
  word-break: break-word;
}

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 14px;
}

.btn-primary {
  background: var(--primary);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

.notice-related h2 {
  margin: 0 0 12px;
  font-size: 16px;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}

.notice-related-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.notice-related-list .date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.notice-gone-text {
  color: var(--muted);
  margin: 8px 0 20px;
}

@media (max-width: 768px) {
  .notice-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    min-height: auto;
  }

  .brand-text h1 {
    font-size: 18px;
  }

  .ewb-policy-hd {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar {
    max-width: none;
    min-width: 0;
  }

  .ewb-policy-list {
    flex-direction: column;
    gap: 8px;
  }

  .notice-list li {
    flex-direction: column;
    gap: 6px;
  }

  .notice-list .title {
    white-space: normal;
  }

  .notice-list .date {
    text-align: left;
    width: auto;
  }
}
