* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #555; font-family: "Microsoft YaHei", Arial, sans-serif; }
.page { width: 1200px; margin: 0 auto; }
.top-ad { position: relative; height: 89px; margin-bottom: 35px; }
.top-ad > .ad-image { display: block; width: 100%; height: 100%; }
.image-loading { position: relative; overflow: hidden; background: #e2e2e2; }
.image-loading::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, .55) 50%, transparent 75%); animation: image-loading 1.2s infinite; }
@keyframes image-loading { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.top-ad > .search-area { position: absolute; top: 50%; right: 60px; display: flex; width: 467px; height: 40px; overflow: hidden; border-radius: 20px; transform: translateY(-50%); box-shadow: inset 0 2px 7px rgba(76, 34, 18, .38); }
.top-ad > .search-area::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 2px 7px rgba(76, 34, 18, .38); pointer-events: none; }
.top-search-input { flex: 1; min-width: 0; height: 100%; padding: 0 14px; border: 0; border-radius: 20px 0 0 20px; outline: 0; background: #fff; color: #555; font: 14px/40px "Microsoft YaHei", Arial, sans-serif; }
.top-search-button { position: relative; z-index: 1; display: grid; flex: 0 0 auto; place-items: center; width: 56px; height: 100%; padding: 0; border: 0; border-radius: 0 20px 20px 0; background: #96210c; color: #fff; cursor: pointer; }
.top-search-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.layout { display: grid; grid-template-columns: 830px 357px; gap: 13px; }
.tabs { height: 36px; border-bottom: 1px solid #e6e6e6; display: flex; gap: 42px; align-items: flex-start; }
.tabs button { height: 36px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #aaa; font: 600 16px/27px "Microsoft YaHei", Arial, sans-serif; text-decoration: none; }
.tabs button.active { color: #397a35; border-bottom-color: #397a35; }
.region-area { position: relative; height: 300px; margin-top: 37px; }
.data-state { display: flex; align-items: center; justify-content: center; color: #999; font-size: 14px; margin: 0; }
.data-state--error { color: #a85d5d; margin:0;}
.weather-detail .data-state { height: 100%; }
.cards > .data-state { grid-column: 1 / -1; min-height: 136px; }
.map-placeholder { position: absolute; left: 0; top: 0; width: 90px; height: 87px; object-fit: fill; }
.regions { position: relative; height: 100%; display: flex; flex-direction: row; justify-content: flex-start; align-items: flex-start; flex-wrap: wrap; gap:10px;}
.regions:before{
  content: "";
  width: 86px;
  height: 85px;
  background: url("../imgs/地标星阵.png") no-repeat;
}
.region { position: relative; height: 82px; padding: 18px 8px 8px; border: 1px solid #579251; border-radius: 6px; margin-top: 2px;}
.region strong { position: absolute; top: -12px; left: 10px; padding: 0 5px; background: #fff; color: #397a35; font-size: 14px; line-height: 18px; cursor: pointer;}
.region strong:before{
  content: "";
  position: absolute;
  left: 50%;
  transform: translate(-50%, 0);
  top: 100%;
  width: 80%;
  height: 2px;
  background: #9f9f9f;
}
.region .cities { display: flex; gap: 8px; }
.city { width: 69px; height: 48px; padding-top: 7px; border: 1px solid #d4d4d4; border-radius: 6px; color: #777; text-align: center; font-size: 14px; line-height: 16px; text-decoration: none; cursor: pointer; }
.city:hover { text-decoration: none; }
.city small { display: block; color: #bbb; font-size: 10px; line-height: 14px; }
.category-area { display: block; height: 337px; margin-top: 15px; padding-top: 0; }
.category-group { position: absolute; min-width: 0; }
.category-group.food { top: 0; left: 0; width: 100%; }
.category-group.herbal { top: 176px; left: 0; width: 66.666%; }
.category-group.non-food { top: 176px; left: 66.666%; width: 16.667%; }
.category-group.hybrid { top: 176px; left: 83.333%; width: 16.667%; }
.category-group-header { display: flex; align-items: center; justify-content: space-between; height: 39px; padding-left: 8px; padding-right: 30px; border-left: 3px solid #397a35; color: #397a35; font-size: 14px; font-weight: 700; }
.category-group-header a { color: #397a35; font-size: 10px; text-decoration: none; }
.category-group-header span { cursor: pointer; }
.category-group.non-food .category-group-header, .category-group.hybrid .category-group-header { align-items: center; height: 39px; padding: 0 11px 0 7px; font-size: 14px; line-height: 16px; }
.category-group.non-food .category-group-header span, .category-group.hybrid .category-group-header span { overflow-wrap: anywhere; }
.category-group.non-food .category-group-header a, .category-group.hybrid .category-group-header a { display: none; }
.category-items { display: flex; gap: 30px; width: 100%; overflow-x: scroll; padding: 5px 4px 8px; overscroll-behavior-x: contain; scrollbar-width: none; }
.category-items::-webkit-scrollbar { display: none; }
.category-item { flex: 0 0 110px; width: 110px; height: 124px; padding: 4px; overflow: hidden; border-radius: 0 0 4px 4px; background: #ffffff; color: #397a35; text-align: center; transition: box-shadow .16s ease; text-decoration: none; }
.category-item:hover, .category-item:focus-visible { border-radius: 5px; box-shadow: 0 0 0 2px #397a35; outline: 0; }
.category-item:hover{ text-decoration: none; }
.category-item-innter{background: #f5f5f5; border-radius: 0 0 4px 4px;}
.category-photo { height: 61px; border-radius: 4px 4px 0 0; background: #aaa; overflow: hidden; }
.category-item span { display: block; padding-top: 9px; font-size: 14px; line-height: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.category-item small { display: block; padding-bottom: 9px; font-size: 11px; line-height: 16px; }
.weather { height: 373px; overflow: hidden; border: 1px solid #ddd; border-radius: 3px; margin-top: 0; }
.weather-banner { height: 267px; background: #aaa; }
.weather-banner img, .card-image img, .category-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.weather-detail { height: 105px; padding: 9px 17px 0; }
.weather-header { display: flex; align-items: center; min-height: 24px; flex-wrap: wrap;}
.place { color: #3f3f3f; font-size: 18px; font-weight: 700; }
.pin { position: relative; width: 14px; height: 14px; margin-right: 7px; border: 3px solid #47733e; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin::after { content: ""; position: absolute; top: 2px; left: 2px; width: 4px; height: 4px; border-radius: 50%; background: #47733e; }
.air { margin-left: 10px; color: #5d8b50; font-size: 11px; }
.weather-categories { display: flex; gap: 10px; margin-left: 12px; color: #c2c2c2; font-size: 10px; }
.forecast { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4px; padding-top: 8px; border-top: 2px solid #6f9d68; color: #57834d; font-size: 10px; line-height: 15px; text-align: center; }
.forecast.forecast--three { grid-template-columns: repeat(3, 1fr); }
.forecast span + span { border-left: 1px solid #ddd; }
.forecast b { display: block; font-size: 15px; }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; height: 33px; margin-top: 21px; border-bottom: 1px solid #e2e2e2; }
.section-title h2 { margin: 0; padding-bottom: 4px; border-bottom: 3px solid #397a35; color: #397a35; font-size: 18px; font-weight: 700; }
.more { margin-bottom: 1px; padding: 2px 15px; background: #397a35; color: #fff; font-size: 10px; font-weight: bold; text-decoration: none; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-top: 15px; }
.card { display: grid; grid-template-columns: 173px 1fr; gap: 11px; min-width: 0; }
.card-image { width: 173px; height: 136px; background: #aaa; }
.card h3 { margin: 1px 0 3px; color: #666; font-size: 16px; font-weight: 700; height: 43px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.card .meta { margin: 0 0 4px; color: #aaa; font-size: 12px; }
.card p { margin: 0; color: #999; font-size: 11px; line-height: 16px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.card a { display: inline-block; margin-top: 5px; color: #4e8b48 !important; font-size: 10px; font-weight: bold; text-decoration: none; }
@media (max-width: 1230px) { .page { width: calc(100% - 30px); } .layout { grid-template-columns: minmax(0, 1fr) 360px; } }
@media (max-width: 850px) { .page { padding-top: 24px; } .layout { grid-template-columns: 1fr; } .weather { display: none; } .region-area { transform-origin: top left; transform: scale(.78); width: 128.2%; margin-bottom: -66px; } .cards { grid-template-columns: 1fr; gap: 15px; } }
