/* Index page */
html {
  scroll-behavior: smooth;
}

body.page-index {
  --mobile-search-border: #eef0f3;
  font-size: var(--ht-type-body);
  color: #111827;
  background: #fff;
}

body.page-index main {
  line-height: 1.75;
}

/* ── 廣告版位 ── */
.index-banner-test-video {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

body.page-index .sec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  min-height: 2.75rem;
}

body.page-index .sec-header .section-title {
  line-height: 1.2;
}

body.page-index .sec-arrows {
  display: flex;
  gap: 0.375rem;
}

body.page-index .slider-control,
body.page-index .sec-arrow {
  box-sizing: border-box;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  border: 0;
  box-shadow: 0 0.625rem 1.875rem rgba(17, 24, 39, 0.12), inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.68);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: transform .16s cubic-bezier(.2, .8, .2, 1), background .16s cubic-bezier(.2, .8, .2, 1), color .16s cubic-bezier(.2, .8, .2, 1), box-shadow .16s cubic-bezier(.2, .8, .2, 1), opacity .16s cubic-bezier(.2, .8, .2, 1);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

body.page-index .slider-control svg,
body.page-index .sec-arrow svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

body.page-index .slider-control:hover:not(:disabled),
body.page-index .sec-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-600, #ff5722);
  box-shadow: 0 0.875rem 2.25rem rgba(17, 24, 39, 0.16), inset 0 0 0 0.0625rem rgba(255, 87, 34, 0.18);
}

body.page-index .slider-control:active:not(:disabled),
body.page-index .sec-arrow:active:not(:disabled) {
  transform: scale(0.96);
}

body.page-index .slider-control:disabled,
body.page-index .sec-arrow:disabled {
  opacity: 0.42;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

body.page-index .ab-row {
  display: flex;
  gap: 2.5rem;
  align-items: stretch;
}

body.page-index .a-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

body.page-index .b-col {
  flex-shrink: 0;
  width: 25%;
  display: none;
  flex-direction: column;
}

@media (min-width:64rem) {
  body.page-index .b-col {
    display: flex;
  }
}

body.page-index .a_area {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  flex: 1;
  aspect-ratio: 660 / 322;
}

body.page-index .main-focus-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 0.75rem;
  padding-bottom: 1.25rem;
}

body.page-index .main-focus-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -2rem;
  background-image: var(--main-focus-background);
  background-position: center;
  background-size: cover;
  filter: blur(5rem);
  transform: scale(1.08);
}

body.page-index .main-focus-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 68%, rgba(255, 255, 255, 0.94) 88%, #fff 100%);
}

@media (min-width: 80rem) {
  body.page-index.page-main-home .main-focus-hero {
    padding-top: 2.55rem;
  }
}

@media (min-width: 64rem) and (max-width: 79.9375rem) {
  body.page-index.page-main-home .main-focus-hero {
    padding-top: 2rem;
  }
}

body.page-index .main-focus-banner-media {
  overflow: hidden;
  border-radius: 1rem;
  background: #f3f4f6;
}

body.page-index .main-focus-banner-media a,
body.page-index .main-focus-banner-media>div,
body.page-index .main-focus-banner-media img {
  display: block;
  width: 100%;
}

body.page-index .main-focus-banner-media img {
  height: auto;
  aspect-ratio: 64 / 25;
  object-fit: cover;
}

body.page-index .main-focus-banner-media,
body.page-index .a_area,
body.page-index .b_area,
body.page-index .mob-b-grid-item,
body.page-index .a1-card .ht-skeleton-media {
  transition: box-shadow 150ms ease;
}

body.page-index .main-focus-banner-media img,
body.page-index .main-focus-banner-media video,
body.page-index .a_area img,
body.page-index .a_area video,
body.page-index .b_area img,
body.page-index .b_area video,
body.page-index .mob-b-grid-item img,
body.page-index .a1-card img {
  backface-visibility: hidden;
  transition: transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body.page-index .main-focus-banner-media:hover,
  body.page-index .a_area:hover,
  body.page-index .b_area:hover,
  body.page-index .mob-b-grid-item:hover,
  body.page-index .a1-card:hover .ht-skeleton-media {
    box-shadow: 0 0.625rem 1.5rem rgba(17, 24, 39, 0.1);
  }

  body.page-index .main-focus-banner-media:hover img,
  body.page-index .main-focus-banner-media:hover video,
  body.page-index .a_area:hover img,
  body.page-index .a_area:hover video,
  body.page-index .b_area:hover img,
  body.page-index .b_area:hover video,
  body.page-index .mob-b-grid-item:hover img,
  body.page-index .a1-card:hover img {
    transform: scale(1.02);
  }
}

body.page-index .main-mobile-win-shell {
  display: contents;
}

@media (min-width:64rem) {
  body.page-index .main-mobile-win-shell+.budget-projects {
    margin-top: 0.5625rem;
  }
}

body.page-index .index-cover-ad {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.62);
}

body.page-index .index-cover-ad.is-open {
  display: flex;
}

body.page-index .index-cover-card {
  position: relative;
  width: min(90vw, 65.625rem);
  overflow: hidden;
  border-radius: 0.875rem;
  background: #fff;
  box-shadow: 0 1.75rem 5rem rgba(15, 23, 42, 0.34);
}

body.page-index .index-cover-link,
body.page-index .index-cover-link.ht-skeleton-media {
  display: block;
}

body.page-index .index-cover-img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-index .index-cover-close {
  --ad-countdown-progress: 0deg;
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  border: 0;
  color: #6b7280;
  background: conic-gradient(var(--brand-600, #ff5722) var(--ad-countdown-progress), rgba(229, 231, 235, 0.88) 0deg);
  box-shadow: 0 0.5rem 1.5rem rgba(15, 23, 42, 0.16);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

body.page-index .index-cover-close::before {
  content: '';
  position: absolute;
  inset: 0.125rem;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.92);
}

body.page-index .index-cover-close svg {
  position: relative;
  z-index: 1;
}

body.page-index .index-cover-close:hover {
  color: #111827;
  transform: translateY(-1px);
}

body.page-index .index-cover-close.is-ready {
  --ad-countdown-progress: 360deg;
}

@media (min-width:48rem) {
  body.page-index .index-cover-ad--mobile.is-open {
    display: none;
  }
}

@media (max-width:47.9375rem) {
  body.page-index .index-cover-ad {
    padding: 1rem;
  }

  body.page-index .index-cover-ad--desktop.is-open {
    display: none;
  }

  body.page-index .index-cover-card {
    width: min(88vw, 19.375rem);
    border-radius: 0.75rem;
  }

  body.page-index .index-cover-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-index .index-cover-close {
    transition: none;
  }

  body.page-index .main-focus-banner-media,
  body.page-index .a_area,
  body.page-index .b_area,
  body.page-index .mob-b-grid-item,
  body.page-index .a1-card .ht-skeleton-media,
  body.page-index .main-focus-banner-media img,
  body.page-index .main-focus-banner-media video,
  body.page-index .a_area img,
  body.page-index .a_area video,
  body.page-index .b_area img,
  body.page-index .b_area video,
  body.page-index .mob-b-grid-item img,
  body.page-index .a1-card img {
    transition: none;
  }
}

body.page-index .a-scroll {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  height: 100%;
}

body.page-index .a-scroll::-webkit-scrollbar {
  display: none;
}

body.page-index .a-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

body.page-index .a-slide a,
body.page-index .a-slide .ht-skeleton-media {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-index .a-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@keyframes b-fill {
  from {
    width: 0
  }

  to {
    width: 100%
  }
}

body.page-index .b-progress-run {
  animation: b-fill 4s linear forwards;
}

body.page-index .b_area {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  flex: 1;
}

body.page-index .b-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

body.page-index .b-slide--active {
  opacity: 1;
  pointer-events: auto;
}

body.page-index .b-slide a,
body.page-index .b-slide .ht-skeleton-media {
  display: block;
  width: 100%;
  height: 100%;
}

body.page-index .b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-index .index-b1-test-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── 手機版 b_area（標題＋兩欄格狀） ── */
body.page-index .mob-b-section {
  display: none;
}

body.page-index .mob-b-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0;
}

body.page-index .mob-b-card {
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

body.page-index .mob-b-grid-item {
  aspect-ratio: 184/240;
  border-radius: 0.75rem;
  overflow: hidden;
  display: block;
}

body.page-index .mob-b-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.page-index .mob-b-desc {
  display: block;
  margin-top: 0.5rem;
  font-size: var(--ht-type-meta);
  line-height: 1.3;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-index .a1_area {
  margin-top: 2rem;
}

body.page-index .a1-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.75rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body.page-index .a1-scroll::-webkit-scrollbar {
  display: none;
}

body.page-index .a1-card {
  flex-shrink: 0;
  width: calc((100% - 2.25rem) / 3.5);
  min-width: 8.75rem;
  text-decoration: none;
  color: #111827;
  display: block;
  scroll-snap-align: start;
}

body.page-index .a1-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
}

body.page-index .a1-card-name {
  font-size: var(--ht-type-meta);
  color: #374151;
  padding: 0.3125rem 0 0.1875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (hover: hover) and (pointer: fine) {
  body.page-index .a1-card:hover .a1-card-name {
    color: var(--brand-600, #ff5722);
  }
}

@media (min-width:64rem) {
  body.page-index .a1-card-name {
    display: none;
  }
}

@media (max-width:63.9375rem) {
  body.page-index .main-mobile-win-shell {
    position: relative;
    isolation: isolate;
    display: flex;
    overflow: hidden;
    flex-direction: column;
  }

  body.page-index .main-mobile-win-shell::before,
  body.page-index .main-mobile-win-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: 0;
  }

  body.page-index .main-mobile-win-shell::before {
    z-index: -2;
    inset: -2rem;
    background-image: var(--main-mobile-win-background);
    background-position: center;
    background-size: cover;
    filter: blur(5rem);
    transform: scale(1.08);
  }

  body.page-index .main-mobile-win-shell::after {
    z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.55) 72%, #fff 100%);
  }

  body.page-index .main-mobile-win-shell>.search-area,
  body.page-index .main-mobile-win-shell>.main-focus-hero {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
  }

  body.page-index.page-main-home .main-focus-hero {
    padding-top: 1rem;
    padding-bottom: 0;
    margin-top: 0;
  }

  body.page-index.page-main-home .main-focus-hero::before,
  body.page-index.page-main-home .main-focus-hero::after {
    content: none;
  }

  body.page-index .a1-scroll {
    gap: 0.75rem;
    padding: 0 1rem 0.25rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
    scroll-snap-type: x proximity;
  }

  body.page-index:not(.page-main-home) .a1-scroll {
    margin-left: 0;
    padding-left: 0;
    padding-right: 1rem;
    scroll-padding-left: 0;
    scroll-padding-right: 1rem;
  }

  body.page-index .a1-card {
    flex: 0 0 8.75rem;
    width: 8.75rem;
    min-width: 0;
  }

  body.page-index .a1-card-name {
    display: block;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0;
    text-align: center;
    font-size: var(--ht-type-meta);
    font-weight: 500;
    color: #6b7280;
    line-height: 1.3;
  }

  body.page-index .mob-b-desc {
    text-align: center;
  }
}

/* ── new_area 最新公開 ── */
body.page-index .new_area {
  margin-top: 2.5rem;
}

body.page-index .two-col-area .new_area {
  margin-top: 0;
}

body.page-index .two-col-area .new_area:first-child {
  margin-top: 0;
}

body.page-index .new-list {
  display: flex;
  flex-direction: column;
}

body.page-index .new-item {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 0.0625rem solid #f3f4f6;
  text-decoration: none;
  color: #111827;
  transition: color .15s;
  flex-wrap: wrap;
}

body.page-index .new-item:last-child {
  border-bottom: none;
}

body.page-index .new-item:hover {
  color: var(--brand-600, #ff5722);
}

body.page-index .new-item:hover .new-item-name {
  color: var(--brand-600, #ff5722);
}

body.page-index .new-item-cat {
  font-size: var(--ht-text-base);
  color: #9ca3af;
  flex-shrink: 0;
}

body.page-index .new-item-name {
  font-size: var(--ht-text-base);
  font-weight: 600;
  color: #111827;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .15s;
}

body.page-index .new-item-price {
  font-size: var(--ht-text-base);
  color: #6b7280;
  flex-shrink: 0;
  white-space: nowrap;
}

body.page-index .new_area .new-item-name {
  flex: 0 1 auto;
}

body.page-index .new_area .new-item-price {
  margin-left: auto;
}

body.page-index .new-list .new-item:last-child {
  padding-bottom: 0;
}

body.page-index .mob-new-section .new-list .new-item:first-child,
body.page-index .two-col-area .new_area .new-list .new-item:first-child,
body.page-index .stat-panel .new-list .new-item:first-child {
  padding-top: 0;
}

/* ── c_area 熱門建案 ── */
body.page-index .c_area {
  margin-top: 2rem;
}

body.page-index .list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

body.page-index .budget-projects {
  margin-top: 2rem;
}

body.page-index .budget-dropdown {
  position: relative;
  flex-shrink: 0;
}

body.page-index .budget-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.625rem;
  color: #374151;
  font-family: inherit;
  font-size: var(--ht-type-meta);
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 0.5rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color .12s, background .12s, border-color .12s;
}

@media (max-width: 79.9375rem) {
  body.page-index .budget-dropdown-toggle:not([aria-expanded="true"]) {
    border-color: var(--mobile-search-border);
  }

  body.page-index .budget-dropdown-toggle {
    gap: 0.25rem;
    min-height: 2.75rem;
    padding: 0.375rem 0.875rem;
    color: #6b7280;
    font-size: var(--ht-text-base);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 0.5rem;
    transition: background .18s, color .18s, box-shadow .18s;
    user-select: none;
  }
}

body.page-index .budget-dropdown-toggle:hover,
body.page-index .budget-dropdown-toggle[aria-expanded="true"] {
  color: var(--brand-600, #e4007f);
  background: var(--brand-50, #fdf2f8);
  border-color: var(--brand-600, #e4007f);
}

body.page-index .budget-dropdown-toggle:focus-visible,
body.page-index .budget-dropdown-menu button:focus-visible {
  outline: 0.125rem solid var(--brand-600, #e4007f);
  outline-offset: 0.125rem;
}

body.page-index .budget-dropdown-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 10rem;
  padding: 0.375rem 0;
  background: #fff;
  border: 0;
  border-radius: 0.625rem;
  box-shadow: 0 0.75rem 2.25rem rgba(0, 0, 0, .13);
}

body.page-index .budget-dropdown-menu button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  color: #6b7280;
  font: inherit;
  font-size: var(--ht-text-base);
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background .15s, color .15s;
}

body.page-index .budget-dropdown-menu button:hover {
  color: var(--brand-600, #e4007f);
  background: var(--brand-50, #fdf2f8);
}

body.page-index .budget-dropdown-menu button[aria-selected="true"] {
  color: var(--brand-600, #e4007f);
  font-weight: 600;
  background: none;
}

body.page-index .budget-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

body.page-index .project-source-badge {
  position: absolute;
  top: 0;
  right: auto;
  bottom: auto;
  left: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  color: #fff;
  font-size: var(--ht-text-sm);
  font-weight: 600;
  line-height: 1.2;
  background: var(--brand-600, #e4007f);
  border: 0;
  border-radius: 0 0 0.75rem 0;
  box-shadow: none;
}

body.page-index .youtube-shorts {
  margin-top: 2.5rem;
}

body.page-index .youtube-shorts-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

body.page-index .youtube-short-card {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.page-index .youtube-short-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #f3f4f6;
  border-radius: 1rem;
}

body.page-index .youtube-short-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform .2s ease;
}

body.page-index .youtube-short-card:hover .youtube-short-media img {
  transform: scale(1.05);
}

body.page-index .youtube-short-card .media-play-btn {
  width: 3rem;
  height: 3rem;
}

body.page-index .youtube-short-card .media-play-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-left: 0;
  transform: translateX(-0.03125rem);
}

body.page-index .budget-projects-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

body.page-index .listing-page-loading {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(17, 24, 39, 0.34);
  -webkit-backdrop-filter: blur(0.625rem) saturate(115%);
  backdrop-filter: blur(0.625rem) saturate(115%);
}

body.page-index .listing-page-loading[hidden] {
  display: none;
}

body.page-index .listing-page-loading-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-width: 9.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.125rem;
  color: #111827;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: rgba(255, 255, 255, 0.9);
  border: 0.0625rem solid rgba(255, 255, 255, 0.72);
  border-radius: 0.875rem;
  box-shadow: 0 1rem 2.75rem rgba(15, 23, 42, 0.2);
}

body.page-index .listing-page-loading-dot {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--page-brand-color, #e4007f);
  border-radius: 50%;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--page-brand-color, #e4007f) 28%, transparent);
  animation: listing-filter-pulse 1.15s ease-out infinite;
}

@keyframes listing-filter-pulse {
  70% { box-shadow: 0 0 0 0.5rem transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-index .listing-page-loading-dot {
    animation: none;
  }
}

body.page-index .budget-projects-empty {
  padding: 3rem 1rem;
  color: #6b7280;
  text-align: center;
  border: 0.0625rem dashed #d1d5db;
  border-radius: 0.75rem;
}

body.page-index .overseas-projects {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

body.page-index .home-editorial {
  margin-top: 2rem;
  margin-bottom: 0;
}

body.page-index .home-seo-introduction {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

body.page-index .home-editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

body.page-index .home-editorial-column {
  min-width: 0;
}

body.page-index .home-editorial-feature {
  display: grid;
  grid-template-columns: 42% minmax(0, 1fr);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 0.0625rem solid #f3f4f6;
  border-radius: 1rem;
  transition: border-color .15s, box-shadow .15s;
}

body.page-index .home-editorial-feature:hover {
  border-color: #e5e7eb;
  box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, .08);
}

body.page-index .home-editorial-feature-media {
  display: block;
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #f3f4f6;
}

body.page-index .home-editorial-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.page-index .home-editorial-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand-600, #e4007f);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--brand-50, #fdf2f8);
}

body.page-index .home-editorial-feature-body {
  display: flex;
  min-width: 0;
  padding: 1rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
}

body.page-index .home-editorial-date,
body.page-index .home-editorial-list time {
  color: #9ca3af;
  font-size: var(--ht-type-meta);
  white-space: nowrap;
}

body.page-index .home-editorial-feature-body strong {
  display: -webkit-box;
  overflow: hidden;
  color: #111827;
  font-size: var(--ht-type-card-title);
  line-height: 1.375;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-index .home-editorial-excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7280;
  font-size: var(--ht-text-base);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-index .home-editorial-list {
  margin-top: 0.5rem;
}

body.page-index .home-editorial-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.25rem;
  color: #374151;
  text-decoration: none;
  border-bottom: 0.0625rem solid #f3f4f6;
}

body.page-index .home-editorial-list a span {
  overflow: hidden;
  flex: 1;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.page-index .home-editorial-list a:hover span {
  color: var(--brand-600, #e4007f);
}

body.page-index .overseas-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

body.page-index .overseas-project-card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 0.0625rem solid #f3f4f6;
  border-radius: 1rem;
  transition: border-color .15s, box-shadow .15s;
}

body.page-index .overseas-project-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 0.625rem 1.5rem rgba(17, 24, 39, .1);
}

body.page-index .overseas-project-media {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #f3f4f6;
}

body.page-index .overseas-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .2s;
}

body.page-index .overseas-project-card:hover .overseas-project-media img {
  transform: scale(1.02);
}

body.page-index .overseas-project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
}

body.page-index .overseas-project-title {
  overflow: hidden;
  color: #111827;
  font-size: var(--ht-type-card-title);
  font-weight: 700;
  line-height: 1.375;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-index .overseas-project-description {
  display: -webkit-box;
  overflow: hidden;
  color: #6b7280;
  font-size: var(--ht-text-base);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.page-index .overseas-project-category-wrap {
  align-self: flex-start;
  margin-top: auto;
}

@media (min-width: 64rem) {
  body.page-index .c_area .list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

body.page-index .hot-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.25rem 0.875rem;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #374151;
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 6.1875rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}

body.page-index .hot-tag:hover {
  color: var(--brand-600, #ff5722);
  border-color: var(--brand-600, #ff5722);
}

/* ── 搜尋列 ── */
body.page-index .search-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem;
  border: 0.0938rem solid var(--brand-600, #ff5722);
  border-radius: 6.1875rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

body.page-index .search-pill:hover {
  border-color: var(--brand-600, #ff5722);
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, .06);
}

body.page-index .search-pill.active {
  border-color: var(--brand-600, #ff5722);
  box-shadow: 0 0.125rem 0.5rem color-mix(in srgb, var(--brand-600, #ff5722) 10%, transparent);
  cursor: default;
}

body.page-index .index-desktop-search-row {
  align-items: center;
  gap: 1.25rem;
}

body.page-index .index-desktop-search-links {
  display: inline-flex;
  align-items: center;
  flex: 1 1 60%;
  min-width: 0;
  gap: 1.25rem;
  color: #374151;
  font-size: var(--ht-type-body);
  font-weight: 400;
  white-space: nowrap;
}

body.page-index .index-desktop-search-links a {
  color: inherit;
  text-decoration: none;
  transition: color .15s;
}

body.page-index .index-desktop-search-links .index-ai-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body.page-index .index-desktop-search-links .index-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

body.page-index .index-desktop-search-links .index-service-link svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  color: color-mix(in srgb, var(--brand-600, #ff5722) 62%, white);
}

body.page-index .index-desktop-search-links .index-ai-quick-link svg {
  flex-shrink: 0;
  color: color-mix(in srgb, var(--brand-600, #ff5722) 62%, white);
  animation: ai-sparkle 2.2s ease-in-out infinite;
  transform-origin: center;
}

body.page-index .index-desktop-search-links a + a::before,
body.page-index .index-mobile-search-links a + a::before {
  content: '|';
  display: inline-block;
  margin: 0 1.25rem 0 0;
  color: #e5e7eb;
}

body.page-index .index-desktop-search-links a:hover {
  color: var(--brand-600, #ff5722);
}

body.page-index .index-mobile-search-links {
  display: none;
}

body.page-index .index-mobile-secondary-nav {
  display: none;
}

body.page-index .search-trigger-btn,
body.page-index .mob-search-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: inherit;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  color: inherit;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}

body.page-index .search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: var(--ht-text-base);
  color: #374151;
  background: transparent;
  font-family: inherit;
  min-width: 0;
  padding: 0;
  margin: 0;
  line-height: 1.5;
  height: 1.5em;
  display: block;
}

body.page-index .search-input::placeholder {
  font-size: inherit;
  color: #6b7280;
  opacity: 1;
}

body.page-index .search-pill.active .search-input {
  cursor: text;
}

body.page-index .search-ai-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  align-self: center;
  margin-left: auto;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border-radius: 6.1875rem;
  flex-shrink: 0;
  background-color: var(--brand-600, #ff5722);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, 0) 100%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand-600, #ff5722) 65%, white) 0%, var(--brand-600, #ff5722) 100%);
  color: #fff;
  font-size: var(--ht-text-sm);
  font-weight: 600;
  line-height: 1;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}

body.page-index .search-ai-btn:hover {
  opacity: .85;
  color: #fff;
}

body.page-index .search-ai-btn svg {
  animation: ai-sparkle 2.2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes ai-sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  30% {
    opacity: .4;
    transform: scale(.7) rotate(22deg);
  }

  60% {
    opacity: .7;
    transform: scale(.9) rotate(-12deg);
  }
}

body.page-index .search-suggestions {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1.75rem rgba(0, 0, 0, .12);
  z-index: 500;
  overflow: hidden;
  display: none;
}

body.page-index .search-suggestions.show {
  display: block;
}

body.page-index .search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-index .sugg-label {
  font-size: var(--ht-type-label);
  font-weight: 600;
  color: #9ca3af;
  padding: 0.625rem 0.875rem 0.25rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

body.page-index .sugg-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5625rem 0.875rem;
  color: #374151;
  font-size: var(--ht-type-meta);
  text-decoration: none;
  transition: background .1s;
}

body.page-index .sugg-history-row {
  justify-content: space-between;
}

body.page-index .sugg-history-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

body.page-index .sugg-item:hover,
body.page-index .sugg-item.is-active,
body.page-index .sugg-history-row:has(.sugg-history-link.is-active) {
  background: #f9fafb;
  color: var(--brand-600, #ff5722);
}

body.page-index .sugg-icon {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.5rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9ca3af;
}

body.page-index .sugg-empty {
  padding: 0.875rem;
  text-align: center;
  color: #9ca3af;
  font-size: var(--ht-type-meta);
}

body.page-index .sugg-hist-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-index .sugg-del {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  font-size: var(--ht-text-md);
  border-radius: 50%;
  transition: color .1s, background .1s;
  padding: 0;
  line-height: 1;
  font-family: inherit;
}

body.page-index .sugg-del:hover {
  color: #6b7280;
  background: #f3f4f6;
}

body.page-index .sugg-clear-wrap {
  padding: 0.5rem 0.875rem;
  border-top: 0.0625rem solid #f3f4f6;
}

body.page-index .sugg-clear-btn {
  width: 100%;
  padding: 0.4375rem 0;
  font-size: var(--ht-type-meta);
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .1s;
}

body.page-index .sugg-clear-btn:hover {
  color: #6b7280;
}

body.page-index #mob-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 700;
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

body.page-index #mob-search-overlay.open {
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {

  body.page-index .search-pill,
  body.page-index .search-ai-btn,
  body.page-index .sugg-item,
  body.page-index .sugg-del,
  body.page-index .sugg-clear-btn,
  body.page-index #mob-search-overlay,
  body.page-index .mob-search-pill {
    transition: none;
  }

  body.page-index .search-ai-btn svg {
    animation: none;
  }

  body.page-index .index-desktop-search-links .index-ai-quick-link svg {
    animation: none;
  }

  body.page-index .index-mobile-secondary-nav .index-mobile-ai-label svg {
    animation: none;
  }
}

/* ── layout sections ── */
body.page-index .search-area {
  padding-top: 2.5rem;
  padding-bottom: 0.25rem;
}

@media (min-width: 64rem) {
  body.page-index .main-focus-hero {
    padding-bottom: 0;
  }

  body.page-index .main-focus-hero+.search-area {
    padding-top: 2.5rem;
    padding-bottom: 1.4375rem;
  }

  body.page-index .main-focus-hero+.search-area+.c-wrap .c_area {
    margin-top: 0;
  }

  body.page-index .main-focus-hero+.search-area+.budget-projects {
    margin-top: 0;
  }
}

@media (max-width:63.9375rem) {
  body.page-index.page-main-home .budget-projects {
    order: 3;
  }

  body.page-index .youtube-shorts {
    order: 4;
    margin-top: 2.5rem;
  }

  body.page-index.page-main-home .market-area {
    order: 5;
  }

  body.page-index.page-main-home .overseas-projects {
    order: 6;
  }

  body.page-index.page-main-home .home-editorial {
    order: 7;
    margin-top: 2.5rem;
  }

  body.page-index .youtube-shorts-list {
    display: flex;
    gap: 0.875rem;
    margin-right: -1rem;
    padding-right: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.page-index .youtube-shorts-list::-webkit-scrollbar {
    display: none;
  }

  body.page-index .youtube-short-card {
    flex: 0 0 min(42vw, 12rem);
    scroll-snap-align: start;
  }

  body.page-index .home-editorial-grid {
    grid-template-columns: 1fr;
  }

  body.page-index .budget-projects {
    order: 3;
    margin-top: 2.5rem;
  }

  body.page-index .budget-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-index .overseas-projects {
    order: 5;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }

  body.page-index .overseas-projects-grid {
    display: flex;
    gap: 0.75rem;
    margin-right: -1rem;
    padding-right: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.page-index .overseas-projects-grid::-webkit-scrollbar {
    display: none;
  }

  body.page-index .overseas-project-card {
    flex: 0 0 min(78vw, 20rem);
    scroll-snap-align: start;
  }

  body.page-index .search-area {
    position: relative;
    order: 0;
    overflow: hidden;
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: linear-gradient(180deg, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 7%, transparent) 0%, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 3%, transparent) 62%, transparent 100%);
    margin-bottom: -0.625rem;
  }

  body.page-index .search-area.search-area--has-bg {
    background: linear-gradient(180deg, color-mix(in srgb, var(--page-brand-color, var(--brand-600, #ff5722)) 2%, transparent) 0%, transparent 100%);
  }

  body.page-index .search-area::before,
  body.page-index .search-area::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  body.page-index .search-area::before {
    background-image: var(--index-mobile-search-bg);
    background-size: cover;
    background-position: center;
    filter: blur(5rem);
    opacity: 0.14;
    transform: scale(1.08);
  }

  body.page-index .search-area.search-area--has-bg::before {
    opacity: 1;
  }

  body.page-index .search-area::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 68%, rgba(255, 255, 255, 0.94) 88%, #fff 100%);
  }

  body.page-index .search-area>* {
    position: relative;
    z-index: 1;
  }

  body.page-index.page-main-home .search-area {
    order: -1;
    margin-bottom: 0;
    padding-bottom: 0;
    background: none;
  }

  body.page-index.page-main-home .search-area::before,
  body.page-index.page-main-home .search-area::after {
    content: none;
    background: none;
  }

  body.page-index.page-main-home .main-mobile-win-shell+.budget-projects {
    margin-top: 2.5rem;
  }

}

@media (max-width:39.9375rem) {
  body.page-index .home-editorial-feature-media {
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto;
  }

  body.page-index .home-editorial-feature-media img {
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  body.page-index .budget-projects .sec-header {
    align-items: center;
    flex-direction: row;
    gap: 0.5rem;
  }

  body.page-index .budget-projects .sec-header-right,
  body.page-index .budget-dropdown {
    width: auto;
    margin-left: auto;
  }

  body.page-index .budget-dropdown-toggle {
    justify-content: flex-end;
    width: auto;
  }

  body.page-index .budget-dropdown-menu {
    width: 100%;
  }

  body.page-index .budget-projects-grid {
    grid-template-columns: 1fr;
  }

}

body.page-index .search-wrapper {
  flex: 0 1 40%;
  width: auto;
  min-width: 0;
  position: relative;
}

body.page-index .search-icon {
  flex-shrink: 0;
  display: block;
  color: color-mix(in srgb, var(--brand-600, #ff5722) 62%, white);
}

body.page-index .search-ai-btn .search-icon {
  color: #fff;
}

body.page-index .search-placeholder {
  flex: 1;
  font-size: var(--ht-text-base);
  color: #6b7280;
}

body.page-index .keywords-area {
  padding-top: 1.625rem;
  padding-bottom: 0.75rem;
}

@media (min-width:64rem) {
  body.page-index:not(.page-main-home) .keywords-area {
    padding-top: 2.1875rem;
  }
}

body.page-index .keywords-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 79.9375rem) {
  body.page-index .keywords-area {
    order: 0;
    overflow: hidden;
  }

  body.page-index .keywords-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  body.page-index .keywords-row::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width:63.9375rem) {
  body.page-index .keywords-area {
    overflow: hidden;
    width: 100%;
    padding-bottom: 0.5rem;
  }

  body.page-index .keywords-row {
    gap: 0.625rem;
    padding: 0 1rem 0.25rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    scroll-padding-left: 1rem;
    scroll-padding-right: 1rem;
    scroll-snap-type: x proximity;
  }

  body.page-index .keywords-row>* {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  body.page-index .keywords-row>*:first-child {
    margin-left: 0.25rem;
  }

  body.page-index:not(.page-main-home) .keywords-row {
    margin-left: 0;
    padding-left: 0;
    padding-right: 1rem;
    scroll-padding-left: 0;
    scroll-padding-right: 1rem;
  }

  body.page-index:not(.page-main-home) .keywords-row>*:first-child {
    margin-left: 0;
  }

}

@media (min-width: 40rem) and (max-width: 63.9375rem) {
  body.page-index:not(.page-main-home) .keywords-row {
    padding-right: 1.5rem;
    scroll-padding-right: 1.5rem;
  }
}

body.page-index .keywords-label {
  font-size: var(--ht-text-base);
  font-weight: 600;
  color: var(--brand-600, #ff5722);
  white-space: nowrap;
}

body.page-index .banners-area {
  padding-top: 1.25rem;
  padding-bottom: 0;
}

body.page-index .sec-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.page-index .two-col-area {
  margin-top: 2rem;
}

body.page-index .mob-new-section {
  display: block;
}

@media (min-width:64rem) {
  body.page-index .mob-new-section {
    display: none;
  }
}

@media (max-width:63.9375rem) {
  body.page-index .mob-new-section {
    order: 5;
    margin-top: 2.5rem;
  }

  body.page-index .two-col-area .col-55 {
    display: none;
  }
}

/* ── progress bar ── */
body.page-index .progress-track {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.1875rem;
  background: rgba(229, 231, 235, 0.5);
  overflow: hidden;
  z-index: 5;
}

body.page-index .progress-bar {
  height: 100%;
  background: var(--brand-600, #ff5722);
  width: 0;
}

/* ── price in new-item ── */
body.page-index .price-label {
  color: #6b7280;
}

body.page-index .price-value {
  color: #6b7280;
  font-weight: 400;
}

body.page-index .price-value.has-price {
  color: var(--brand-600, #ff5722);
  font-weight: 700;
}

/* ── market grid ── */
body.page-index .market-area {
  margin-top: 2rem;
}

body.page-index .market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (min-width: 64rem) {
  body.page-index .market-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 44.9375rem) {
  body.page-index .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.page-index .market-cell {
  background: var(--brand-50, #fef3ee);
  border-radius: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 0.0625rem solid transparent;
  transition: border-color .15s;
}

body.page-index .market-cell:hover {
  border-color: var(--brand-600, #ff5722);
}

body.page-index .market-cell-name {
  font-size: var(--ht-text-base);
  color: #6b7280;
  margin-bottom: 0.375rem;
}

body.page-index .market-cell-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
  line-height: 1.3;
}

body.page-index .market-value-row {
  align-items: baseline;
}

body.page-index .market-meta-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

body.page-index .market-price-main {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  white-space: nowrap;
}

body.page-index .market-change-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: fit-content;
  min-height: 1.5rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  font-size: var(--ht-text-2xs-plus);
  font-weight: 600;
  line-height: 1.2;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
}

body.page-index .market-change-tag--flat {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
}

body.page-index .market-change-tag--up {
  color: #b45309;
  background: rgba(254, 243, 199, 0.8);
}

body.page-index .market-change-tag--none {
  color: #6b7280;
  background: rgba(255, 255, 255, 0.72);
}

body.page-index .market-change-tag--down {
  color: #047857;
  background: rgba(209, 250, 229, 0.8);
}

body.page-index .market-change-tag--mobile {
  display: none;
}

body.page-index .market-change-tag--desktop {
  display: inline-flex;
}

body.page-index .market-num {
  font-size: var(--ht-type-market-value);
  font-weight: 700;
  color: var(--brand-600, #ff5722);
}

body.page-index .market-unit {
  font-size: var(--ht-text-base);
  color: #374151;
  line-height: 1.3;
}

body.page-index .market-price-fallback {
  font-size: var(--ht-text-base);
  line-height: 1.3;
  color: #6b7280;
}

body.page-index .market-empty-price-mark {
  font-size: var(--ht-type-market-value);
  font-weight: 700;
  line-height: 1.3;
  color: #6b7280;
}

@media (max-width: 39.9375rem) {
  body.page-index .market-cell-name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.375rem;
  }

  body.page-index .market-cell-name>span:first-child {
    min-width: 0;
  }

  body.page-index .market-cell {
    padding: 0.875rem;
  }

  body.page-index .market-cell-price {
    gap: 0.25rem 0.375rem;
  }

  body.page-index .market-num {
    font-size: var(--ht-text-market-mobile);
  }

  body.page-index .market-unit {
    font-size: var(--ht-text-xs);
  }

  body.page-index .market-change-tag {
    min-height: 1.375rem;
    padding: 0.1875rem 0.4375rem;
    font-size: var(--ht-text-2xs);
  }

  body.page-index .market-change-tag--mobile {
    display: inline-flex;
  }

  body.page-index .market-change-tag--desktop,
  body.page-index .market-cell-price .market-meta-line {
    display: none;
  }
}

body.page-index .market-area .mkt-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

body.page-index .market-area .section-title {
  margin: 0;
  line-height: 1.2;
}

body.page-index .market-area .market-title-text {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

@media (min-width: 48rem) and (max-width: 79.9375rem) {
  body.page-index .keywords-row,
  body.page-index .a1-scroll {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--brand-600, #ff5722) 35%, transparent) transparent;
  }

  body.page-index .keywords-row::-webkit-scrollbar,
  body.page-index .a1-scroll::-webkit-scrollbar {
    display: block;
    height: 0.375rem;
  }

  body.page-index .keywords-row::-webkit-scrollbar-thumb,
  body.page-index .a1-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-600, #ff5722) 35%, transparent);
  }
}

/* ── stat panel ── */
body.page-index .stat-panel {
  display: flex;
  flex-direction: column;
}

body.page-index .stat-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.25rem;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

body.page-index .stat-data-cell {
  background: var(--brand-50, #fef3ee);
  border-radius: 1rem;
  padding: 1rem;
  box-sizing: border-box;
  min-width: 0;
}

@media (min-width:64rem) {
  body.page-index .stat-data-grid {
    padding-top: 0;
  }
}

body.page-index .stat-data-label {
  font-size: var(--ht-text-base);
  color: #6b7280;
  margin-bottom: 0.375rem;
}

body.page-index .stat-data-value {
  font-size: var(--ht-text-md);
  font-weight: 500;
  color: var(--brand-600, #ff5722);
  line-height: 1.15;
}

/* ── two-col layout ── */
body.page-index .two-col-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

@media (min-width:64rem) {
  body.page-index .two-col-layout {
    flex-direction: row;
    gap: 3rem;
  }
}

body.page-index .col-55 {
  width: 100%;
  min-width: 0;
}

body.page-index .col-45 {
  width: 100%;
  min-width: 0;
}

@media (min-width: 64rem) {
  body.page-index .col-55 {
    flex: 55 0 0px;
  }

  body.page-index .col-45 {
    flex: 45 0 0px;
  }
}

/* ── mobile search overlay ── */
body.page-index .mob-search-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  flex-shrink: 0;
  border-bottom: 0.0625rem solid #f3f4f6;
}

body.page-index .mob-search-input-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  padding: 0 0.875rem;
  border: 0.0625rem solid #e5e7eb;
  border-radius: 6.1875rem;
  background: #fff;
  box-sizing: border-box;
}

body.page-index .mob-search-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  font-size: var(--ht-text-base);
  color: #374151;
  background: transparent;
  font-family: inherit;
}

body.page-index .mob-search-input::placeholder {
  font-size: inherit;
  color: #6b7280;
  opacity: 1;
}

body.page-index .mob-search-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
}

body.page-index .mob-search-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── 手機版三欄搜尋列 ── */
body.page-index .mob-search-bar {
  display: none;
  align-items: stretch;
  gap: 0.5rem;
  padding-top: 0;
}

@media (max-width:79.9375rem) {
  body.page-index .mob-search-bar {
    display: flex;
  }

  body.page-index .index-mobile-search-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    border-top: 0;
    color: #6b7280;
    font-size: var(--ht-type-body);
    font-weight: 400;
    line-height: 1.4;
  }

  body.page-index .index-mobile-search-links a + a::before {
    content: none;
  }

  body.page-index .index-mobile-search-links a {
    display: block;
    width: auto;
    padding: 0;
    color: inherit;
    text-decoration: none;
    transition: color .15s;
  }

  body.page-index .index-mobile-search-links a:hover {
    color: var(--brand-600, #ff5722);
  }
}

@media (max-width:79.9375rem) {
  body.page-index .index-mobile-secondary-nav {
    display: block;
    margin-top: 2.5rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
  }

  body.page-index .index-mobile-secondary-inner {
    margin: 0 auto;
    padding: 1.25rem 1rem 0;
    max-width: 80rem;
  }

  body.page-index .index-mobile-secondary-nav h2 {
    margin: 0 0 0.5rem;
    color: #374151;
    font-size: var(--ht-type-body);
    font-weight: 600;
    line-height: 1.4;
  }

  body.page-index .index-mobile-secondary-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    border-bottom: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: var(--ht-type-body);
    line-height: 1.5;
    text-decoration: none;
  }

  body.page-index .index-mobile-secondary-nav a:last-child {
    border-bottom: 0;
  }

  body.page-index .index-mobile-secondary-nav svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
  }

  body.page-index .index-mobile-secondary-nav .index-mobile-ai-label,
  body.page-index .index-mobile-secondary-nav .index-mobile-service-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
  }

  body.page-index .index-mobile-secondary-nav .index-mobile-ai-label > span,
  body.page-index .index-mobile-secondary-nav .index-mobile-service-label > span {
    color: #374151;
  }

  body.page-index .index-mobile-secondary-nav .index-mobile-service-label svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    color: color-mix(in srgb, var(--brand-600, #ff5722) 62%, white);
  }

  body.page-index .index-mobile-secondary-nav .index-mobile-ai-label svg {
    width: 1.25rem;
    height: 1.25rem;
    color: color-mix(in srgb, var(--brand-600, #ff5722) 62%, white);
    fill: currentColor;
    stroke: none;
    animation: ai-sparkle 2.2s ease-in-out infinite;
    transform-origin: center;
  }
}

/* Tablet-specific density and full-bleed horizontal tracks. */
@media (min-width: 45rem) and (max-width: 63.9375rem) {
  body.page-index:not(.page-main-home) .search-area {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 0;
  }

  body.page-index .budget-projects-grid,
  body.page-index .c_area .list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-index .budget-projects-grid > :last-child:nth-child(odd),
  body.page-index .c_area .list-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 1rem) / 2);
    justify-self: center;
  }

  body.page-index .a1-card {
    flex: 0 0 calc((100vw - 2rem) / 2.5);
    width: calc((100vw - 2rem) / 2.5);
  }

}

@media (min-width: 38.25rem) and (max-width: 63.9375rem) {
  body.page-index:not(.page-main-home) .c_area .list-grid > :last-child:nth-child(odd) {
    display: none;
  }
}

@media (max-width: 39.9375rem) {
  body.page-index:not(.page-main-home) .a1-card {
    flex: 0 0 calc((100vw - 2.5rem) / 2.5);
    width: calc((100vw - 2.5rem) / 2.5);
  }
}

@media (min-width: 40rem) and (max-width: 44.9375rem) {
  body.page-index:not(.page-main-home) .a1-card {
    flex: 0 0 calc((100vw - 3rem) / 2.5);
    width: calc((100vw - 3rem) / 2.5);
  }
}

@media (min-width: 40rem) and (max-width: 63.9375rem) {
  body.page-index:not(.page-main-home) .a1-scroll {
    padding-right: 1.5rem;
    scroll-padding-right: 1.5rem;
  }

  body.page-index .youtube-shorts-list,
  body.page-index .overseas-projects-grid {
    margin-right: -1.5rem;
    padding-right: 1.5rem;
  }

  body.page-index .keywords-row,
  body.page-index .a1-scroll {
    scrollbar-width: none;
  }

  body.page-index .keywords-row::-webkit-scrollbar,
  body.page-index .a1-scroll::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 64rem) and (max-width: 79.9375rem) {
  body.page-index.page-main-home .search-area {
    padding-top: 2rem;
    padding-bottom: 0;
  }

  body.page-index:not(.page-main-home) .search-area {
    padding-top: 2rem;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  body.page-index:not(.page-main-home) .keywords-area {
    padding-top: 2rem;
  }

  body.page-index.page-main-home .budget-projects {
    margin-top: 2.5rem;
  }

  body.page-index:not(.page-main-home) .ab-row {
    gap: 1.5rem;
  }

  body.page-index:not(.page-main-home) .a1-scroll,
  body.page-index:not(.page-main-home) .c_area .list-grid {
    gap: 1.25rem;
  }

  body.page-index .keywords-row,
  body.page-index .a1-scroll {
    margin-right: -2rem;
    padding-right: 2rem;
    scrollbar-width: none;
  }

  body.page-index .keywords-row::-webkit-scrollbar,
  body.page-index .a1-scroll::-webkit-scrollbar {
    display: none;
  }
}

body.page-index .mob-area-btn {
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  width: auto;
  max-width: 6.25rem;
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  min-height: 2.75rem;
  background: rgba(255, 255, 255, 0.7);
  border: 0.0625rem solid var(--mobile-search-border);
  border-radius: 8px;
  box-shadow: none;
  font-size: var(--ht-text-base);
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  font-family: inherit;
  white-space: nowrap;
  min-width: 4.5rem;
  overflow: hidden;
  user-select: none;
}

body.page-index .mob-area-btn:hover {
  background: #e5e7eb;
  color: #111827;
}

body.page-index .mob-area-btn[aria-expanded="true"] {
  color: #374151;
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--mobile-search-border);
  font-weight: 600;
}

body.page-index.page-main-home .mob-area-btn,
body.page-index.page-main-home .mob-area-btn[aria-expanded="true"] {
  color: #374151;
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--mobile-search-border);
  font-weight: 500;
}

body.page-index .mob-area-btn svg {
  flex-shrink: 0;
}

body.page-index .mob-area-btn .filter-btn-text {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.page-index.page-main-home .mob-area-btn {
  max-width: none;
  min-width: 7rem;
  padding-right: 0.625rem;
  padding-left: 0.625rem;
}

body.page-index .mob-search-pill {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
  min-height: 2.875rem;
  padding: 0 0.25rem 0 0.875rem;
  border: 0.0625rem solid var(--mobile-search-border);
  border-radius: 6.1875rem;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  transition: background .18s, border-color .18s, box-shadow .18s;
  overflow: hidden;
  box-sizing: border-box;
}

body.page-index .mob-search-trigger-btn {
  flex: 1;
  justify-content: flex-start;
  min-width: 0;
  text-align: left;
}

body.page-index .mob-search-pill:hover {
  background: #fff;
  border-color: #e5e7eb;
}

body.page-index .mob-search-pill .search-ai-btn {
  height: 2.375rem;
  min-height: 2.375rem;
  padding: 0 0.625rem;
  border-radius: 6.1875rem;
}

body.page-index .mob-search-pill .search-icon {
  flex-shrink: 0;
}

body.page-index .mob-search-trigger-btn .search-icon,
body.page-index .mob-search-input-wrap > .search-icon {
  color: #9ca3af;
}

body.page-index .mob-search-pill .search-placeholder {
  flex: 1;
  min-width: 0;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* ── 手機版整體間隔統一 ── */
@media (max-width:63.9375rem) {
  body.page-index .sec-header {
    margin-bottom: 1rem;
    min-height: 2.75rem;
  }

  body.page-index .sec-header .section-title {
    line-height: 1.2;
  }

  body.page-index .market-area .sec-header .section-title {
    line-height: 1.2;
  }

  body.page-index .market-area .market-title-text {
    line-height: 1.2;
  }

  body.page-index main {
    display: flex;
    flex-direction: column;
  }

  body.page-index main>.max-w-7xl {
    width: 100%;
  }

  body.page-index .banners-area {
    order: 1;
    padding-top: 0.5rem;
    padding-bottom: 0;
    overflow-x: hidden;
  }

  body.page-index .c-wrap {
    order: 6;
    margin-top: 2.5rem;
  }

  body.page-index .two-col-area {
    order: 7;
    margin-top: 2.5rem;
  }

  body.page-index .market-area {
    order: 2;
    margin-top: 2.5rem;
  }

  body.page-index .mob-b-section {
    display: block;
    order: 3;
    margin-top: 2.5rem;
  }

  body.page-index .a1_area {
    order: 4;
    margin-top: 2.5rem;
  }

  body.page-index .home-seo-introduction {
    order: 99;
    margin-top: 1rem;
  }

  body.page-index main > .index-mobile-secondary-nav {
    order: 98;
  }

  body.page-index .c_area {
    margin-top: 0;
  }

  body.page-index .two-col-layout {
    gap: 2.5rem;
  }

  body.page-index .new_area {
    margin-top: 0;
  }
}
