/* ====================== HK Index Market Page CSS ==================== */

/* CSS Variables - 继承自 bundle.css 的主题色 */
:root {
  --hk-market-black: #0a0a0a;
  --hk-market-black-two: #111111;
  --hk-market-gray: #2a2a2a;
  --hk-market-white: #ffffff;
  --hk-market-base: #f5c400;
  --hk-market-base-two: #ffdf6a;
}

/* ====================== Market Hero/Breadcrumb Start ==================== */
.hk-market-hero {
  position: relative;
  min-height: 377px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding: 0;
  margin-bottom: 0;
}

.hk-market-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  filter: grayscale(100%);
  animation: hk-market-heroZoom 10s ease-in-out infinite;
  z-index: 0;
}

.hk-market-hero__overlay {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,15,0.4) 0%, rgba(10,10,15,0.9) 100%);
  z-index: 1;
}

@keyframes hk-market-heroZoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.hk-market-hero__title {
  position: relative;
  z-index: 2;
  text-align: center;
  font-size: 57px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.349);
  letter-spacing: 8px;
  text-transform: capitalize;
  margin-top: 97px;
  margin-bottom: 0;
}

.hk-market-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hk-market-hero__breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hk-market-hero__breadcrumb-item a {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.3s;
}

.hk-market-hero__breadcrumb-item a:hover {
  color: var(--hk-market-base);
}

.hk-market-hero__breadcrumb-item--active {
  color: var(--hk-market-base);
}

@media screen and (max-width: 991px) {
  .hk-market-hero__title {
    font-size: 55px;
  }
}

@media screen and (max-width: 767px) {
  .hk-market-hero {
    min-height: 200px;
  }
  .hk-market-hero__title {
    font-size: 36px;
    letter-spacing: 4px;
  }
}

/* ====================== TradingView Ticker Tape ==================== */
#tradingview-ticker-tape {
  background-color: rgba(42, 42, 42, 0.15);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(201, 169, 98, 0.1);
}

/* ====================== Market Section ==================== */
.hk-market-section {
  background-color: #161619;
  padding: 80px 0 100px;
}

.hk-market-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

@media screen and (max-width: 1199px) {
  .hk-market-layout {
    grid-template-columns: 1fr 340px;
    gap: 30px;
  }
}

@media screen and (max-width: 991px) {
  .hk-market-layout {
    grid-template-columns: 1fr;
  }
}

/* ====================== Market Cards ==================== */
.hk-market-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hk-market-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  background-color: rgba(42, 42, 42, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.08);
  border-radius: 16px;
  overflow: hidden;
  padding: 20px;
  transition: all 0.35s ease;
}

.hk-market-card:hover {
  box-shadow: 0 8px 30px rgba(201, 169, 98, 0.08);
  border-color: rgba(201, 169, 98, 0.15);
  transform: translateY(-3px);
}

.hk-market-card:hover .hk-market-card__image img {
  transform: scale(1.05);
}

.hk-market-card__image {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 16/10;
}

.hk-market-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hk-market-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hk-market-card__time {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  margin-bottom: 8px;
}

.hk-market-card__title {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hk-market-card__title a {
  color: var(--hk-market-white);
  transition: color 0.3s;
}

.hk-market-card__title a:hover {
  color: var(--hk-market-base);
}

.hk-market-card__desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.hk-market-card__btn {
  text-decoration: none;
}

.hk-market-card__btn:hover {
  text-decoration: none;
}

/* Market buttons: outlined default, hover highlight; plain arrow (no background) */
.hk-market-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 12px;

  letter-spacing: 0.02em;
  color: #cbcbcb;
  background: rgba(26, 26, 46, 0.55);
  border: 1.5px solid #9f7907;
  backdrop-filter: blur(10px);
  transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease, border-color 250ms ease, color 250ms ease;
  width: fit-content;
}

.hk-market-btn i {
  font-size: 14px;
  line-height: 1;
  transition: transform 250ms ease;
}

.hk-market-btn:hover {
  background: #ff9100;
  border-color: #ff9100;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(255, 145, 0, 0.22);
  transform: translateY(-1px);
}

.hk-market-btn:hover i {
  transform: translateX(4px);
}

.hk-market-btn:active {
  transform: translateY(0);
}

.hk-market-btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}

.hk-market-btn--lg i {
  font-size: 15px;
}

@media screen and (max-width: 767px) {
  .hk-market-card {
    grid-template-columns: 1fr;
    padding: 15px;
  }
  .hk-market-card__title {
    font-size: 1.15rem;
  }
}

/* ====================== Market Sidebar ==================== */
.hk-market-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hk-market-widget {
  background: rgba(42, 42, 42, 0.15);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.08);
}

.hk-market-widget__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hk-market-white);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Market News Widget */
.hk-market-news {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hk-market-news__item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 12px;
  background-color: rgba(17, 17, 17, 0.5);
  border-radius: 10px;
  transition: all 0.35s;
  align-items: center;
}

.hk-market-news__item:hover {
  transform: translateY(-3px);
  background-color: rgba(17, 17, 17, 0.8);
}

.hk-market-news__image {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
}

.hk-market-news__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hk-market-news__item:hover .hk-market-news__image img {
  transform: scale(1.08);
}

.hk-market-news__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.hk-market-news__date::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--hk-market-base);
  border-radius: 50%;
}

.hk-market-news__title {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

.hk-market-news__title a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hk-market-news__title a:hover {
  color: var(--hk-market-base);
}

/* TradingView Widget Container */
.hk-marketview-widget {
  padding: 0;
  background: transparent;
  border: none;
}

.marketview-widget-container {
  padding: 0 10px 15px;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(42, 42, 42, 0.15);
  border: 1px solid rgba(201, 169, 98, 0.08) !important;
}

/* ====================== Call To Action ==================== */
.hk-market-cta {
  background-color: #161619;
  padding: 0 0 80px;
}

.hk-market-cta__box {
  position: relative;

  border: 1px solid rgba(201, 169, 98, 0.15);
  border-radius: 24px;
  padding: 60px 50px;
  overflow: hidden;
}

.hk-market-cta__shape {
  position: absolute;
  top: 20px;
  left: 30px;
  opacity: 0.6;
}

.hk-market-cta__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hk-market-cta__text {
  text-align: left;
}

.hk-market-cta__subtitle {
  color: var(--hk-market-base);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.hk-market-cta__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--hk-market-white);
  line-height: 1.3;
  margin-bottom: 24px;
}

.hk-market-cta__btn {
  text-decoration: none;
}

.hk-market-cta__btn:hover {
  text-decoration: none;
}

.hk-market-cta__image {
  text-align: right;
}

.hk-market-cta__image img {
  max-width: 100%;
  height: auto;
}

@media screen and (max-width: 991px) {
  .hk-market-cta__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hk-market-cta__text {
    text-align: center;
  }
  .hk-market-cta__image {
    text-align: center;
  }
  .hk-market-cta__title {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 767px) {
  .hk-market-cta__box {
    padding: 40px 25px;
  }
  .hk-market-cta__title {
    font-size: 1.5rem;
  }
}

/* ====================== Responsive Adjustments ==================== */
@media screen and (max-width: 575px) {
  .hk-market-section {
    padding: 60px 0 80px;
  }

  .hk-market-widget {
    padding: 20px;
  }

  .hk-market-news__item {
    grid-template-columns: 65px 1fr;
    gap: 12px;
    padding: 10px;
  }
}
