body {
  font-family: "Helvetica", "Tahoma", "Arial", "lucida grande", "lucida sans unicode", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  margin: 0;
  padding: 5px;
}

.services {
  background: #1c3e57;
  width: 100%;
  color: #fff;
}

.services a {
  color: #fff;
  text-decoration: none;
}

.services a:hover {
  color: brown;
}

.container {
  padding: 1em;
  border: none;
}

.w100 { width: 100%; }

.w50 {
  float: left;
  width: 45%;
  margin-right: 5%;
}

.w50 p {
  padding-right: 10px;
  line-height: 1em;
}

.w50 h5 {
  color: #fff;
  font-size: 1em;
  font-weight: 600;
  margin: 1em 0 .2em 0;
}

.fl { float: left; }

.dp {
  font-size: .9em;
  line-height: 1.8em;
}

.dp a {
  white-space: nowrap;
}

.sendform {
  display: block;
  background: #fff;
  text-indent: 10px;
  padding: 10px 0;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  outline: none;
  font-size: 0.9em;
  color: #333;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.clear {
  clear: both;
  display: block;
}

.wli {
  background: #f1f1f1;
  padding: 0.5em;
  margin-bottom: 1.5em;
  box-shadow: 2px 8px 10px 0px rgba(50, 46, 46, 0.23);
}

.wli h4 {
  border-bottom: 1px solid #1c3e57;
  color: #1c3e57;
  padding: 0;
  margin: 8px 0 0 0;
}

.wli h4 label {
  color: #1c3e57;
}

.rec-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 90%;
  text-align: left;
}

.rec-row:last-child {
  border-bottom: none;
}

.rec-time {
  color: #888;
  white-space: nowrap;
  min-width: 60px;
}

.rec-name {
  color: #1c3e57;
  font-weight: 600;
  white-space: nowrap;
  min-width: 50px;
}

.rec-area {
  white-space: nowrap;
  min-width: 40px;
}

.rec-info {
  flex: 1;
  word-break: break-all;
}

.btn-del {
  background: none;
  border: none;
  color: #ccc;
  font-size: 0.85em;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}

.btn-del:hover {
  color: #c0392b;
  background: #fdecea;
}

.search-bar {
  margin: 1em 0;
  display: flex;
  gap: 0.5em;
  flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
  padding: 0.4em 0.6em;
  font-size: 0.9em;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
}

.search-bar input:focus,
.search-bar select:focus {
  border-color: #1c3e57;
}

.area-tag {
  display: inline-block;
  background: #1c3e57;
  color: #fff;
  font-size: 0.75em;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

.search-btn {
  background: #e8edf1;
  border: none;
  border-left: 1px solid #ccc;
  padding: 0 16px;
  height: 40px;
  font-size: 1.1em;
  cursor: pointer;
  color: #1c3e57;
  border-radius: 0;
  -webkit-appearance: none;
  flex-shrink: 0;
}

.name-label {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 10px;
  font-size: 0.95em;
}

.search-btn:hover {
  background: #d0d8e0;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-box {
  background: #fff;
  border-radius: 6px;
  width: 90%;
  max-width: 480px;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #1c3e57;
  color: #fff;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4em;
  cursor: pointer;
  line-height: 1;
}

.modal-box .search-bar {
  padding: 16px;
  margin: 0;
  flex-direction: column;
}

.modal-box .search-bar input,
.modal-box .search-bar select {
  width: 100%;
  box-sizing: border-box;
}

.modal-search-btn {
  background: #1c3e57;
  color: #fff;
  border: none;
  padding: 0.5em;
  font-size: 0.95em;
  border-radius: 3px;
  cursor: pointer;
}

.modal-search-btn:hover {
  background: #15304a;
}

.modal-clear-btn {
  background: #fff;
  color: #1c3e57;
  border: 1px solid #1c3e57;
  padding: 0.5em;
  font-size: 0.95em;
  border-radius: 3px;
  cursor: pointer;
}

.modal-clear-btn:hover {
  background: #f0f0f0;
}

.year-bar {
  background: #f5f5f5;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #e0e0e0;
}

.year-btn {
  background: #fff;
  border: 1px solid #ccc;
  color: #555;
  padding: 4px 12px;
  font-size: 0.85em;
  border-radius: 3px;
  cursor: pointer;
}

.year-btn:hover {
  border-color: #1c3e57;
  color: #1c3e57;
}

.year-btn.active {
  background: #1c3e57;
  color: #fff;
  border-color: #1c3e57;
}

.footer {
  background: #1c3e57;
  color: #fff;
  padding: 1em;
  text-align: center;
}

.loading {
  text-align: center;
  padding: 0;
  color: #999;
}

.loading-mask {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.8);
  z-index: 10;
  align-items: center;
  justify-content: center;
  font-size: 1em;
  color: #1c3e57;
}

@media (max-width: 640px) {
  .w50 {
    float: left;
    width: 100%;
    margin-right: 0;
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar input,
  .search-bar select {
    width: 100%;
  }

  .rec-row {
    flex-wrap: wrap;
    padding: 6px 0;
  }

  .rec-info {
    flex-basis: 100%;
    width: 100%;
    padding-top: 4px;
    word-break: break-all;
  }

  .btn-del {
    display: none;
  }

  .year-bar {
    display: none;
  }
}
