:root {
  --blue-950: #041934;
  --blue-900: #06274e;
  --blue-800: #073d78;
  --blue-700: #075aa5;
  --blue-600: #0a76d3;
  --cyan-500: #20c8d6;
  --cyan-100: #e7fbff;
  --text: #17253f;
  --muted: #5b6b83;
  --line: #d7e4f0;
  --bg: #f3f8fc;
  --white: #fff;
  --shadow: 0 18px 48px rgba(7, 61, 120, .12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(32, 200, 214, .16), transparent 30rem),
    linear-gradient(180deg, #fff 0%, #f5f9fc 44%, #eef7fb 100%);
  font-family: "Noto Sans TC", "Microsoft JhengHei", "PingFang TC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue-600); }
button, input { font: inherit; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 9999;
  transform: translateY(-160%);
  background: #fff; color: #063b7a; padding: 8px 12px; border: 2px solid #063b7a; border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(215, 228, 240, .86);
}

.header-top {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand img { width: min(380px, 44vw); height: auto; }

.quick-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.quick-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px;
  color: #253653;
  font-size: 15px;
  border-radius: 999px;
}
.quick-nav a:hover,
.quick-nav a:focus-visible {
  background: #edf7ff;
  color: var(--blue-700);
  outline: none;
}
.nav-ico {
  width: 30px;
  height: 30px;
  color: var(--blue-700);
  display: inline-grid;
  place-items: center;
  flex: 0 0 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #edf7ff, #e7fbff);
  border: 1px solid rgba(23, 98, 173, .18);
}
.nav-ico svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid rgba(215, 228, 240, .86);
  border-bottom: 1px solid rgba(215, 228, 240, .86);
  box-shadow: 0 10px 28px rgba(7, 61, 120, .06);
}
.primary-nav-inner {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5vw, 72px);
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  color: #163454;
  font-weight: 700;
  letter-spacing: .03em;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  border-radius: 99px;
  transform: translateX(-50%);
  transition: width .25s ease;
}
.primary-nav a:hover::after,
.primary-nav a:focus-visible::after { width: 100%; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #10345e;
  align-items: center;
  gap: 6px;
  padding: 8px;
}
.menu-toggle span:not(.menu-toggle-text) {
  width: 22px; height: 2px; background: #10345e; display: block;
}
.menu-toggle-text { margin-left: 2px; }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #041934;
}
.hero-slider { position: relative; min-height: 520px; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 1;
  visibility: visible;
  transform: translateX(100%);
  transition: transform .78s cubic-bezier(.45, 0, .18, 1);
  will-change: transform;
  z-index: 1;
}
.hero-slide.is-active {
  transform: translateX(0);
  z-index: 3;
}
.hero-slide.is-prev {
  transform: translateX(-100%);
  z-index: 2;
}
.hero-bg {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 38, .78) 0%, rgba(3, 24, 50, .55) 43%, rgba(3, 24, 50, .12) 100%),
    linear-gradient(180deg, rgba(2, 11, 28, .08), rgba(2, 11, 28, .28));
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 72px 96px;
  color: #fff;
}
.eyebrow {
  margin: 0 0 10px;
  color: #99f1ff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero h1,
.hero h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.15;
  letter-spacing: .02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}
.hero-lead {
  max-width: 680px;
  margin: 18px 0 28px;
  font-size: clamp(17px, 1.6vw, 22px);
  color: rgba(255,255,255,.92);
}
.hero-search {
  display: grid;
  grid-template-columns: 1fr 72px;
  width: min(620px, 100%);
  min-height: 64px;
  padding: 6px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .22);
}
.hero-search input {
  border: 0;
  min-width: 0;
  padding: 0 24px;
  color: #152740;
  background: transparent;
  outline: none;
}
.hero-search input::placeholder { color: #8a9bb0; }
.hero-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(10, 118, 211, .35);
}
.hero-search button:hover { filter: brightness(1.08); }
.hot-keywords {
  margin: 18px 0 0;
  color: rgba(255,255,255,.82);
}
.hot-keywords a {
  margin-left: 13px;
  color: #d8fbff;
  border-bottom: 1px solid rgba(216,251,255,.5);
}
.hot-keywords a:hover { color: #fff; }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}
.slider-dots button {
  width: 12px; height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  cursor: pointer;
}
.slider-dots button.is-active {
  width: 34px;
  background: #fff;
}

/* Sections */
.section { padding: 64px 0; }
.section + .section { padding-top: 38px; }
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 32px;
  text-align: center;
}
.section-heading h2 {
  margin: 0;
  color: #0b2d55;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.25;
  letter-spacing: .05em;
}
.section-heading span {
  width: 58px;
  height: 10px;
  background:
    radial-gradient(circle, var(--blue-600) 0 4px, transparent 5px) 0 50% / 18px 10px repeat-x;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}
.category-card {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 188px;
  padding: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(215, 228, 240, .92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.category-card img { width: 148px; height: 112px; object-fit: contain; }
.category-card strong {
  color: #17395e;
  font-size: 20px;
}
.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(32, 200, 214, .7);
  box-shadow: 0 22px 56px rgba(7, 61, 120, .18);
  outline: none;
}

/* News */
.news-panel {
  padding: 24px 34px;
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(215, 228, 240, .92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.news-item {
  display: grid;
  grid-template-columns: 128px 68px 1fr 126px;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed #c3d3e2;
}
.news-item time {
  color: #476078;
  font-weight: 700;
}
.news-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}
.news-item h3 a { color: #174d86; }
.news-item h3 a:hover { color: var(--blue-600); }
.tag {
  justify-self: start;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 999px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.tag-blue { background: #1c78d3; }
.tag-green { background: #1c9e8d; }
.tag-gold { background: #c98713; }
.ghost-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 6px 14px;
  color: #17518d;
  border: 1px solid #94b4d0;
  border-radius: 999px;
  font-weight: 700;
}
.ghost-btn::after { content: "›"; margin-left: 10px; font-size: 20px; line-height: 1; }
.ghost-btn:hover { background: #edf7ff; }

.more-row {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.more-row a {
  color: #0f5fa8;
  font-weight: 800;
}
.more-row a::after {
  content: "  →";
}

/* Popular data */
.section-popular {
  background:
    linear-gradient(180deg, rgba(255,255,255,.35), rgba(224, 246, 252, .52));
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.data-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(215, 228, 240, .92);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.data-card > img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}
.data-body { padding: 22px 24px 24px; }
.data-body time {
  display: inline-flex;
  align-items: center;
  color: #5f7389;
  font-weight: 700;
}
.data-body time::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: url("../images/icon-calendar.png") center / contain no-repeat;
  flex: 0 0 20px;
}
.data-body h3 {
  margin: 10px 0 8px;
  color: #102e52;
  font-size: 24px;
  line-height: 1.35;
}
.data-body p {
  margin: 0 0 16px;
  color: #596a80;
}
.data-body a {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #8fb3d2;
  color: #17518d;
  font-weight: 800;
  font-size: 14px;
}
.data-body a:hover { background: #edf7ff; }

/* Steps */
.section-steps { background: #fff; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  position: relative;
}
.step-card {
  position: relative;
  min-height: 265px;
  padding: 26px 20px 24px;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #f1fbff 100%);
  border: 1px solid rgba(215, 228, 240, .92);
  border-radius: var(--radius-lg);
}
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -26px;
  top: 48%;
  width: 26px;
  height: 2px;
  background: repeating-linear-gradient(90deg, #5abfe0 0 7px, transparent 7px 14px);
}
.step-card b {
  display: block;
  color: #126cbe;
  font-size: 42px;
  line-height: 1;
  letter-spacing: .05em;
}
.step-card img {
  width: 180px;
  height: 112px;
  object-fit: contain;
  margin: 10px auto 4px;
}
.step-card h3 {
  margin: 4px 0 0;
  color: #0d315a;
  font-size: 23px;
}
.step-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 700;
}

/* Footer */
.site-footer {
  color: #dcecff;
  background:
    radial-gradient(circle at 16% 0%, rgba(32, 200, 214, .35), transparent 26rem),
    linear-gradient(135deg, #061e3e 0%, #083d68 56%, #042144 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr) 190px;
  gap: 28px;
  padding: 54px 0 34px;
}
.footer-group {
  border: 0;
}
.footer-group summary,
.follow h2,
.footer-bottom h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
.footer-group a,
.footer-bottom a,
.footer-bottom p {
  display: block;
  margin: 6px 0;
  color: rgba(220, 236, 255, .86);
  font-size: 15px;
}
.footer-group a:hover,
.footer-bottom a:hover { color: #fff; }

.socials {
  display: flex;
  gap: 10px;
  align-items: center;
}
.socials img { width: 42px; height: 42px; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 28px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.footer-bottom strong {
  display: inline-block;
  padding: 1px 8px;
  margin-left: 4px;
  color: #fff;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px;
  letter-spacing: .12em;
}
.copyright {
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(220, 236, 255, .78);
}
.copyright .container {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.copyright p { margin: 0; }

/* RWD */
@media (max-width: 1120px) {
  .header-top { min-height: 78px; }
  .quick-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    display: none;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 42px rgba(7, 61, 120, .12);
  }
  .primary-nav.is-open { display: block; }
  .primary-nav-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    padding-block: 10px;
  }
  .primary-nav a {
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #e2edf6;
  }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .data-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step-card:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .brand img { width: min(300px, 70vw); }
  .hero, .hero-slider, .hero-bg { min-height: 620px; }
  .hero-content { padding-block: 60px 90px; }
  .hero-search { grid-template-columns: 1fr; border-radius: 24px; padding: 8px; gap: 8px; }
  .hero-search input { min-height: 48px; }
  .hero-search button { min-height: 48px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-card { min-height: 156px; }
  .category-card img { width: 120px; height: 92px; }
  .news-panel { padding: 18px; }
  .news-item {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }
  .news-item h3 { grid-column: 1 / -1; }
  .news-item .ghost-btn { grid-column: 1 / -1; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; }
  .copyright .container { flex-direction: column; align-items: flex-start; padding-block: 16px; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .primary-nav-inner { grid-template-columns: 1fr; }
}

/* Active nav */
.primary-nav a.is-active { color: var(--blue-700); }
.primary-nav a.is-active::after { width: 100%; }

/* Inner page: Data market list */
.inner-hero {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  color: #fff;
  background: #041934;
}
.inner-hero-market {
  /* 內頁 Banner 底圖替換方式：更換 images/banner-market.png，或修改下方 url。建議 PNG 尺寸 1920x500 或 1920x400。 */
  --market-banner: url("../images/banner-market.png");
  background-image: var(--market-banner);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.inner-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 28%, rgba(32, 200, 214, .24), transparent 22rem),
    linear-gradient(90deg, rgba(4, 25, 52, .86) 0%, rgba(4, 34, 70, .64) 48%, rgba(4, 25, 52, .22) 100%),
    linear-gradient(180deg, rgba(4, 25, 52, .12), rgba(4, 25, 52, .48));
}
.inner-hero-content {
  position: relative;
  z-index: 1;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 58px 66px;
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 7px 13px;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 15px;
  backdrop-filter: blur(8px);
}
.breadcrumb a { color: #e7fbff; font-weight: 700; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb strong { color: #fff; }
.inner-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.18;
  letter-spacing: .06em;
  text-shadow: 0 10px 26px rgba(0,0,0,.24);
}
.inner-hero-content > p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(17px, 1.6vw, 21px);
}

.market-query {
  position: relative;
  z-index: 4;
  margin-top: -54px;
  padding-bottom: 22px;
}
.query-panel {
  padding: 28px 30px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(215, 228, 240, .95);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 54px rgba(7, 61, 120, .13);
  backdrop-filter: saturate(160%) blur(12px);
}
.query-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
}
.query-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.query-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 0 6px rgba(32, 200, 214, .16);
}
.query-head h2,
.market-list-head h2 {
  margin: 2px 0 0;
  color: #0b2d55;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.25;
  letter-spacing: .04em;
}
.query-head p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
}
.filter-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 420px);
  gap: 18px;
  align-items: center;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid #a9c4db;
  border-radius: 999px;
  color: #17456f;
  background: linear-gradient(180deg, #fff, #f2f8fd);
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(32, 200, 214, .8);
  outline: none;
}
.filter-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  box-shadow: none;
}
.market-search {
  display: grid;
  grid-template-columns: 1fr 74px;
  min-height: 50px;
  padding: 5px;
  background: #fff;
  border: 1px solid #bfd2e4;
  border-radius: 999px;
}
.market-search input {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  outline: none;
  color: #152740;
  background: transparent;
}
.market-search input::placeholder { color: #8798ad; }
.market-search button {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-weight: 800;
  cursor: pointer;
}
.market-search button:hover { filter: brightness(1.08); }

.market-list-section {
  padding-top: 34px;
  background: #fff;
}
.market-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}
.result-count {
  margin: 0;
  padding: 7px 13px;
  color: #17456f;
  background: rgba(255,255,255,.84);
  border: 1px solid rgba(191, 210, 228, .95);
  border-radius: 999px;
  font-weight: 800;
}
.market-grid {
  display: grid;
  gap: 22px;
}
.market-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  overflow: hidden;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(215, 228, 240, .96);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(7, 61, 120, .07);
  transition: transform .25s ease, border-color .25s ease;
}
.market-card[hidden],
.market-card.is-hidden {
  display: none !important;
}

.market-card:hover {
  transform: translateY(-2px);
  border-color: rgba(32, 200, 214, .58);
  box-shadow: 0 16px 36px rgba(7, 61, 120, .10);
}
.market-thumb {
  position: relative;
  min-height: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf7ff 0%, #f8fcff 100%);
  border-right: 1px solid rgba(215, 228, 240, .94);
}
.market-thumb::after {
  display: none;
}
.market-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .35s ease;
}
.market-card:hover .market-thumb img { transform: scale(1.04); }
.market-card-body { padding: 25px 30px 27px; }
.market-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 10px;
}
.market-meta-top time {
  color: #667b90;
  font-size: 14px;
  font-weight: 700;
}
.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
}
.category-badge.human { background: #7f55c7; }
.category-badge.geo { background: #0b7f97; }
.category-badge.medical { background: #167c64; }
.category-badge.traffic { background: #126cbe; }
.category-badge.energy { background: #c07115; }
.category-badge.agri { background: #4f7f18; }
.market-card h3 {
  margin: 0 0 9px;
  color: #0d315a;
  font-size: clamp(22px, 2vw, 27px);
  line-height: 1.32;
}
.market-card h3 a:hover { color: var(--blue-600); }
.market-card p {
  margin: 0 0 18px;
  color: #52677e;
}
.market-info {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}
.market-info div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #c6d7e5;
}
.market-info dt {
  margin: 0;
  color: #183b62;
  font-weight: 900;
}
.market-info dd {
  margin: 0;
  color: #5a6e83;
}
.market-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.market-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}
.detail-link {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: none;
}
.subscribe-link {
  color: #17518d;
  background: #f3f9fe;
  border: 1px solid #94b4d0;
}
.detail-link::after,
.subscribe-link::after { content: "→"; margin-left: 8px; }
.detail-link:hover { color: #fff; filter: brightness(1.08); }
.subscribe-link:hover { background: #e7f4ff; }
.empty-state {
  margin-top: 20px;
  padding: 38px 24px;
  text-align: center;
  background: rgba(255,255,255,.92);
  border: 1px dashed #9ebbd4;
  border-radius: var(--radius-lg);
}
.empty-state strong {
  display: block;
  color: #0d315a;
  font-size: 22px;
}
.empty-state p { margin: 8px 0 0; color: var(--muted); }

.market-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}
.market-pagination[hidden] { display: none; }
.page-btn {
  min-width: 42px;
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid #a9c4db;
  border-radius: 999px;
  color: #17456f;
  background: #fff;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.page-btn:hover:not(:disabled),
.page-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(32, 200, 214, .8);
  outline: none;
}
.page-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  box-shadow: none;
}
.page-btn:disabled {
  color: #98a6b5;
  background: #eef4f9;
  cursor: not-allowed;
}
.page-prev,
.page-next { min-width: 82px; }


@media (max-width: 1120px) {
  .inner-hero,
  .inner-hero-content { min-height: 360px; }
  .filter-toolbar { grid-template-columns: 1fr; }
  .market-card { grid-template-columns: 280px 1fr; }
}

@media (max-width: 820px) {
  .query-head,
  .market-list-head { display: block; }
  .query-head p { margin-top: 10px; }
  .result-count { display: inline-flex; margin-top: 12px; }
  .market-card { grid-template-columns: 1fr; }
  .market-thumb {
    min-height: 240px;
    border-right: 0;
    border-bottom: 1px solid rgba(215, 228, 240, .94);
  }
  .market-thumb img { width: 100%; height: 100%; }
}

@media (max-width: 720px) {
  .inner-hero,
  .inner-hero-content { min-height: 340px; }
  .market-query { margin-top: -34px; }
  .query-panel { padding: 23px 18px; }
  .filter-buttons { gap: 8px; }
  .filter-btn { min-height: 40px; padding-inline: 13px; }
  .market-search { grid-template-columns: 1fr; border-radius: 22px; gap: 7px; padding: 7px; }
  .market-search input { min-height: 44px; }
  .market-search button { min-height: 44px; }
  .market-card-body { padding: 22px 18px 24px; }
  .market-info div { grid-template-columns: 1fr; gap: 3px; }
}


/* Data market detail page */
.detail-page-hero {
  position: relative;
  padding: 38px 0 30px;
  background:
    radial-gradient(circle at 12% 22%, rgba(32, 200, 214, .13), transparent 22rem),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  border-bottom: 1px solid rgba(215, 228, 240, .92);
}
.detail-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  color: #61778e;
  font-size: 15px;
  font-weight: 700;
}
.detail-breadcrumb a { color: #335f8a; }
.detail-breadcrumb a:hover { color: var(--blue-600); }
.detail-breadcrumb strong { color: #0b5270; }
.detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
}
.detail-title-row h1 {
  margin: 4px 0 10px;
  color: #0b2d55;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.18;
  letter-spacing: .06em;
}
.detail-title-row p {
  max-width: 760px;
  margin: 0;
  color: #52677e;
  font-size: 18px;
}
.back-market-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid #9cbad4;
  border-radius: 999px;
  color: #17456f;
  background: #fff;
  font-weight: 900;
  white-space: nowrap;
}
.back-market-link::before { content: "←"; margin-right: 8px; }
.back-market-link:hover { background: #eef7ff; }
.detail-content-section,
.detail-sample-section,
.related-data-section {
  padding: 44px 0;
  background: #fff;
}
.detail-sample-section { padding-top: 20px; }
.related-data-section { padding-top: 28px; padding-bottom: 72px; }
.detail-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-bottom: 22px;
  color: #61778e;
  font-weight: 800;
}
.detail-stat-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.detail-stat-row i { font-style: normal; }
.detail-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  gap: 34px;
  align-items: start;
}
.detail-info-panel,
.detail-description-card,
.sample-panel,
.field-panel,
.related-data-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(215, 228, 240, .96);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 34px rgba(7, 61, 120, .08);
  overflow: hidden;
}
.detail-info-panel { box-shadow: none; border-radius: 0; border-left: 0; border-right: 0; }
.detail-meta-table {
  margin: 0;
  display: grid;
  border-top: 1px solid #d7e4f0;
}
.detail-meta-table div {
  display: grid;
  grid-template-columns: 142px 1fr;
  min-height: 48px;
  border-bottom: 1px solid #d7e4f0;
}
.detail-meta-table dt {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  margin: 0;
  color: #243d58;
  background: #f2f6fa;
  font-weight: 900;
}
.detail-meta-table dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 20px;
  color: #314c68;
  font-weight: 700;
}
.format-row dd a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 5px 13px;
  color: #fff;
  background: #1d92cf;
  border-radius: 6px;
  font-weight: 900;
}
.format-row dd a:hover { filter: brightness(1.07); color: #fff; }
.detail-description-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8.8;
  height: auto;
  object-fit: cover;
}
.detail-description-body { padding: 24px 26px 28px; }
.detail-description-body h2,
.field-panel-head h2,
.detail-section-title h2 {
  margin: 0;
  color: #0b2d55;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.25;
  letter-spacing: .04em;
}
.detail-description-body h2::before { content: "▤"; margin-right: 8px; color: var(--blue-600); }
.detail-description-body p {
  margin: 14px 0 0;
  color: #5a6e83;
}
.detail-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.detail-card-actions a,
.field-subscribe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
}
.detail-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, .7fr);
  gap: 34px;
  align-items: start;
}
.detail-section-title {
  margin-bottom: 18px;
}
.detail-section-title.center {
  text-align: center;
  margin-bottom: 26px;
}
.detail-section-title.center .query-kicker { justify-content: center; }
.sample-panel,
.field-panel { padding: 26px; }
.sample-table-wrap {
  overflow: auto;
  border: 1px solid #c7dbe9;
  border-radius: 12px;
  background: #fff;
}
.sample-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}
.sample-table th,
.sample-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #dce8f2;
  text-align: left;
  white-space: nowrap;
}
.sample-table th {
  color: #fff;
  background: linear-gradient(135deg, #0d5f90, #1bb7c7);
  font-weight: 900;
}
.sample-table td { color: #405a72; }
.sample-table tbody tr:nth-child(even) td { background: #f7fbfe; }
.field-panel-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.field-panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  font-weight: 900;
}
.field-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.field-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #c6d7e5;
}
.field-list dt {
  margin: 0;
  color: #183b62;
  font-weight: 900;
}
.field-list dd {
  margin: 0;
  color: #5a6e83;
}
.field-subscribe { margin-top: 22px; }
.related-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.related-data-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.related-data-card:hover {
  transform: translateY(-3px);
  border-color: rgba(32, 200, 214, .58);
  box-shadow: 0 18px 40px rgba(7, 61, 120, .12);
}
.related-data-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7.6;
  height: auto;
  object-fit: cover;
}
.related-data-body { padding: 18px 20px 22px; }
.related-data-body time {
  display: block;
  color: #61778e;
  font-weight: 800;
  margin-bottom: 8px;
}
.related-data-body h3 {
  margin: 0 0 8px;
  color: #0d315a;
  font-size: 22px;
  line-height: 1.35;
}
.related-data-body p {
  margin: 0 0 12px;
  color: #5a6e83;
}
.related-data-body span {
  display: block;
  color: #183b62;
  font-weight: 800;
  font-size: 15px;
}
.related-more {
  display: inline-flex;
  margin-top: 12px;
  color: var(--blue-600);
  font-weight: 900;
}
.related-more::after { content: "→"; margin-left: 6px; }

@media (max-width: 980px) {
  .detail-title-row,
  .detail-overview-grid,
  .detail-two-column,
  .related-data-grid { grid-template-columns: 1fr; }
  .detail-title-row { display: block; }
  .back-market-link { margin-top: 18px; }
}

@media (max-width: 680px) {
  .detail-page-hero { padding-top: 28px; }
  .detail-meta-table div { grid-template-columns: 1fr; }
  .detail-meta-table dt { border-bottom: 1px solid #d7e4f0; }
  .sample-panel, .field-panel, .detail-description-body { padding: 20px 18px; }
  .field-list div { grid-template-columns: 1fr; gap: 3px; }
}

/* Detail page: keep list-page banner and category filter block */
.detail-intro-after-query {
  padding-top: 34px;
  background: #fff;
  border-bottom: 0;
}
.market-query-detail .filter-btn.is-active {
  pointer-events: auto;
}

/* Detail page v03 refinements */
.detail-page-hero .detail-breadcrumb {
  display: none;
}
.detail-title-row p {
  display: none;
}
.detail-stat-row {
  gap: 12px 16px;
  margin-bottom: 26px;
}
.detail-stat-row span {
  min-height: 42px;
  padding: 6px 12px 6px 7px;
  color: #315a7b;
  background: linear-gradient(180deg, #ffffff, #f4f9fd);
  border: 1px solid rgba(177, 203, 225, .95);
  border-radius: 999px;
  font-size: 15px;
  box-shadow: 0 8px 20px rgba(7, 61, 120, .06);
}
.detail-stat-row strong {
  color: #163f66;
  font-weight: 900;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-500));
  box-shadow: 0 6px 14px rgba(10, 118, 211, .18);
}
.stat-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-download {
  background: linear-gradient(135deg, #0b7f97, #1bc2d1);
}
.stat-update {
  background: linear-gradient(135deg, #245a9a, #23b7c8);
}
.detail-overview-grid,
.detail-two-column {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
}
.detail-description-card,
.field-panel {
  width: 100%;
}
@media (max-width: 980px) {
  .detail-overview-grid,
  .detail-two-column {
    grid-template-columns: 1fr;
  }
}

/* v04 detail page refinements */
.sample-panel {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.sample-table-wrap {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.sample-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.sample-table th,
.sample-table td {
  padding: 10px 9px;
  white-space: normal;
  word-break: keep-all;
}
.detail-description-card img {
  height: 170px;
  aspect-ratio: auto;
  object-fit: cover;
}
@media (max-width: 980px) {
  .sample-panel { padding: 0; }
  .sample-table-wrap { overflow-x: auto; }
  .sample-table { min-width: 680px; }
  .detail-description-card img { height: 190px; }
}
