/* 以下為客製化調整 */
.r {
  color: red;
}

.blue {
  background: #4095f5;
  color: #fff;
}

.gray-btn {
  background-color: #dedede;
  display: inline-block;
  width: 60px;
  height: 26px;
  line-height: 26px;
  color: #4c4c4c;
  font-size: 12px;
  border: none;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 6px;
}

.receive {
  background: url(../images/btn.png) no-repeat center top;
  display: inline-block;
  width: 60px;
  height: 26px;
  line-height: 26px;
  color: #fff;
  font-size: 12px;
  border: none;
  margin: 5px 0;
  cursor: pointer;
  border-radius: 6px;
}

.verify-box {
  display: inline-block;
  position: relative;
}

.verify-box input {
  margin: 0 !important;
}

.verify-img {
  position: absolute;
  height: 34px;
  border: 1px solid #cfdbe8;
  cursor: pointer;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
}

.img {
  max-width: 200px;
  max-height: 200px;
  vertical-align: middle;
}


/* 以下為公用模組(不調整) */
a {
  color: #000;
}

.btn:hover {
  cursor: pointer;
  filter: brightness(1.2);
}

body,
html,
#app {
  height: 100%;
  background: url("../images/bg.jpg");
  background-size: 100%;
  background-repeat: no-repeat;
  background-color: #cfdef3;
  font-size: 14px;
  font-family: sans-serif, Arial, "Microsoft YaHei", "微軟雅黑體", "微软雅黑体";
}

/* 頂部 */
header {
  height: 100px;
  background-color: #fff;
  border-bottom: 1px solid #cfdbe8;
}

header .h-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
}

header .h-box .logo {
  width: 300px;
}

header .h-box .text {
  width: 350px;
}

header .h-box .menu {
  display: flex;
  justify-content: flex-end;
  width: 350px;
}

header .h-box .menu .item {
  border: 1px solid #4095f5;
  padding: 6px;
  margin-left: 6px;
  border-radius: 4px;
  text-align: center;
  font-size: 12px;
}

header .h-box .menu .item img {
  height: 30px;
}

/* 最新資訊 */
.news {
  background: #ffffff;
  border-bottom: 1px solid #cfdbe8;
}

.news .n-box {
  display: flex;
  height: 26px;
  line-height: 26px;
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  font-size: 12px;
  letter-spacing: 1px;
}

.news .n-box .title {
  width: 66px;
}

.news .n-box marquee {
  width: calc(100% - 66px);
}

.news .n-box marquee .item {
  margin-right: 50px
}

/* 分類 */
.catrgory-box {
  margin-top: 10px;
  margin-bottom: 16px;
}

.catrgory-box .item {
  display: inline-block;
  border: 1px solid #808080;
  border-radius: 4px;
  padding: 4px;
  margin: 6px 6px 0 0;
  min-width: 60px;
  text-align: center;
  color: #000;
  font-size: 13px;
}

.catrgory-box .item:hover {
  color: #76869a;
  border: 1px solid #b5b5b5;
  cursor: pointer;
}

/* 列表 */
.img-list-box {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: space-between;
  width: calc(100% - 40px);
  padding: 20px;
}

.img-list-box li {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  justify-content: center;
  width: 32%;
  border: 1px solid #0096fc;
  border-radius: 10px;
  margin-bottom: 20px;
  padding-bottom: 2px;
}

.img-list-box li .image {
  width: 100%;
  height: 250px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
}

.img-list-box li .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 90%;
  font-size: 16px;
  text-align: center;
  margin: 15px 0 5px 0;
  line-height: 1.5;
}

.img-list-box li .event-btn {
  display: inline-block;
  width: 100px;
  height: 32px;
  line-height: 32px;
  background: url(../images/btn.png);
  background-position: center;
  color: #fff;
  font-size: 14px;
  text-align: center;
  border-radius: 25px;
  margin: 10px;
}

/* 內容 */
main {
  width: 1000px;
  max-width: 90%;
  margin: 0 auto;
}

/* 優惠名稱 */
main .t-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
}

main .t-box .title {
  width: 800px;
  color: #4095f5;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
}

/* 站點關閉訊息 */
main .close-message {
  background-color: #fff;
  border: 1px solid #cfdbe8;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 40px;
  font-size: 20px;
  min-height: 150px;
}

/* 切換按鈕 */
main .row {
  background-color: #f5f7fa;
  display: inline-flex;
  width: 100%;
  border: 1px solid #cfdbe8;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom: none;
  margin-top: 0px;
}

main .row .item {
  border-bottom: transparent;
  width: 100px;
  text-align: center;
  height: 40px;
  line-height: 40px;
  color: #909399;
  cursor: pointer;
}

main .row .item.active {
  border-bottom: #4095f5 2px solid;
  color: #4095f5;
}

/* 顯示內容 */
main .content {
  background: #fff;
  min-height: 160px;
  padding: 10px;
  width: calc(100% - 20px);
  border: 1px solid #cfdbe8;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

main .content .item {
  width: 100%;
  display: none;
}

main .content .item.active {
  display: block;
}

/* 表單 */
main .f-box {
  background: #fff;
  border-radius: 4px;
  margin-bottom: 40px;
}

main .f-box .content .item {
  padding: 40px 0;
}

main .f-box table {
  width: 60%;
  margin: 0 auto;
}

main .f-box table tr td:first-child {
  text-align: right;
  width: 180px;
}

main .f-box table tr td:first-child div {
  margin-bottom: 10px;
}

main .f-box table input[type="text"],
main .f-box table input[type="file"],
main .f-box table select {
  width: 320px;
  line-height: 44px;
  height: 44px;
  text-indent: 10px;
  color: #000;
  border-radius: 4px;
  border: 1px solid #dbe1e6;
  margin-bottom: 10px;
  background-color: #f5faff;
}

main .f-box table select {
  line-height: 46px;
  height: 46px;
  text-indent: 6px;
}

main .f-box table .apply {
  background: url(../images/btn.png) no-repeat center top;
  width: 120px;
  height: 40px;
  line-height: 40px;
  color: #fff;
  border-radius: 4px;
  border: 0;
  margin-top: 10px;
}


main .d-box {
  margin-bottom: 40px;
}

/* 底部 */
footer {
  width: 100%;
  padding: 10px 0;
  background: #404448;
  color: #c0c0c0;
  text-align: center;
}

footer img {
  max-width: calc(100% - 20px);
  padding: 10px 0;
  margin: 0 10px;
  margin-bottom: 5px;
  border-bottom: 1px solid #cfdbe875;
}

footer .text {
  font-size: 12px;
}

/* 查詢  */
.search-box,
.apply-box {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.apply-box .close-message {
  text-align: center;
  font-size: 20px;
}

.search-box .bg,
.apply-box .bg {
  position: fixed;
  z-index: 3;
  width: 100%;
  height: 100%;
  background: #0000004d;
}

.search-box .wrap,
.apply-box .wrap {
  z-index: 4;
  width: 700px;
  max-width: 96%;
  background-color: #fff;
  border-radius: 12px;
}

.search-box .wrap .t-box,
.apply-box .wrap .t-box {
  position: relative;
  height: 80px;
  background-color: #edf6ff;
  border-bottom: 2px solid #cfdbe8;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box .wrap .t-box .title,
.apply-box .wrap .t-box .title {
  width: 80%;
  color: #4095f5;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
}

.search-box .wrap .t-box .close-btn,
.apply-box .wrap .t-box .close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
}

.search-box .wrap .search,
.apply-box .wrap .search {
  padding: 50px 0;
  max-height: 70vh;
  overflow: auto;
}

.search-box .wrap .search .item,
.apply-box .wrap .search .item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.search-box .wrap .search .item .title,
.apply-box .wrap .search .item .title {
  width: 120px;
  text-align: right;
}

.search-box .wrap .search .item input,
.search-box .wrap .search .item select {
  width: 320px;
  line-height: 40px;
  height: 40px;
  background-color: #f5faff;
  text-indent: 15px;
  border-radius: 5px;
  border: 1px solid #cfdbe8;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.search-box .wrap .search .item select {
  line-height: 42px;
  height: 42px;
  text-indent: 10px;
}

.apply-box .wrap .search .item input,
.apply-box .wrap .search .item select {
  width: 320px;
  line-height: 40px;
  height: 40px;
  background-color: #f5faff;
  text-indent: 15px;
  border-radius: 5px;
  border: 1px solid #cfdbe8;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.apply-box .wrap .search .item select {
  line-height: 42px;
  height: 42px;
  text-indent: 10px;
}


.search-box .wrap .search .submit-btn,
.apply-box .wrap .search .submit-btn {
  display: block;
  background: url(../images/btn.png) no-repeat center top;
  background-size: 100% 100%;
  width: 120px;
  height: 40px;
  line-height: 40px;
  color: #fff;
  font-weight: bold;
  border: 0;
  margin: 10px auto 0;
}

.search-box .wrap .result {
  padding: 40px 0 20px 0;
  min-height: 150px;
  max-height: 70vh;
  overflow: auto;
  font-size: 12px;
}

.search-box .wrap .result table {
  width: 90%;
  margin: 0 auto;
  table-layout: fixed;
}

.search-box .wrap .result th {
  height: 30px;
  line-height: 30px;
  padding: 0 5px;
  background-color: #f5faff;
  border: 1px solid #cfdbe8;
}

.search-box .wrap .result td {
  height: 20px;
  line-height: 20px;
  padding: 5px;
  border: 1px solid #cfdbe8;
  text-align: center;
}

@media (max-width:960px) {
  header .h-box .menu {
    width: auto;
    margin-right: 10px;
  }

  header .h-box .menu .link {
    display: none;
  }

  main .f-box table {
    width: 80%;
  }
}

@media (max-width:765px) {
  header {
    height: 60px;
  }

  header .h-box .text {
    display: none;
  }

  header .h-box .logo {
    width: auto;
    max-height: 100%;
  }

  header .h-box .menu .item {
    padding: 4px;
  }

  header .h-box .menu .item img {
    height: 20px;
  }

  main .f-box table {
    width: 70%;
  }

  main .f-box table tr td:first-child {
    text-align: right;
    width: 70px;
  }

  main .f-box table input[type="text"],
  main .f-box table select {
    width: 100%;
  }

  main .d-box {
    margin-bottom: 20px;
  }

  .search-box .wrap .search .item .title,
  .apply-box .wrap .search .item .title {
    width: 100px;
    text-align: right;
  }

  .search-box .wrap .search .item input,
  .apply-box .wrap .search .item input {
    max-width: 60%;
  }

  .search-box .wrap .result table {
    width: 600px;
    max-width: 96%;
    margin: 0 auto;
  }

  .search-box .wrap .t-box,
  .apply-box .wrap .t-box {
    height: 60px;
  }

  .search-box .wrap .t-box .title,
  .apply-box .wrap .t-box .title {
    font-size: 20px;
  }

  .search-box .wrap .t-box .close-btn,
  .apply-box .wrap .t-box .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
  }

  .search-box .wrap .result {
    padding: 25px 0 0px 0;
  }
}