* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
  color: #32445c;
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
}

body {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #dfe7ef;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-inner {
  align-items: center;
  display: flex;
  min-height: 76px;
  gap: 24px;
}

.logo img {
  height: 35px;
  width: auto;
}

.desktop-nav {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 22px;
  justify-content: flex-end;
  white-space: nowrap;
}

.desktop-nav a {
  color: #3d4d62;
  font-size: 14px;
  font-weight: 700;
}

.search-btn,
.menu-btn,
.close-btn {
  align-items: center;
  background: none;
  border: 0;
  color: #466177;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.search-btn {
  font-size: 21px;
}

.menu-btn {
  display: none;
  font-size: 22px;
}

.top-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 270px;
  gap: 18px;
  padding-top: 22px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.feature-card {
  aspect-ratio: 16 / 9;
  background: #1e2d3b;
  overflow: hidden;
  position: relative;
}

.feature-card.large {
  grid-column: span 2;
}

.feature-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.feature-card::after {
  background: linear-gradient(180deg, transparent 32%, rgba(8, 18, 29, 0.9));
  content: "";
  inset: 0;
  position: absolute;
}

.feature-card a {
  bottom: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  left: 0;
  line-height: 1.28;
  padding: 18px;
  position: absolute;
  right: 0;
  z-index: 1;
}

.feature-card:not(.large) a {
  font-size: 15px;
  padding: 12px;
}

.feature-card:hover img {
  transform: scale(1.04);
}

.headline-card {
  border: 1px solid #aebdca;
  min-height: 100%;
  padding: 12px;
}

.headline-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.headline-card h1 {
  color: #2172b2;
  font-size: 23px;
  line-height: 1.28;
  margin: 15px 0 10px;
}

.headline-card p {
  color: #5c6c7b;
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 16px;
}

.headline-card a {
  background: #1d70b8;
  color: #ffffff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  padding: 9px 22px;
}

.columns {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(3, 1fr);
  padding: 35px 0 46px;
}

.news-column h2,
.foot-column h2 {
  border-bottom: 1px solid #d8e2ea;
  color: #74889b;
  font-size: 18px;
  margin: 0 0 18px;
  padding-bottom: 12px;
}

.column-hero {
  margin-bottom: 18px;
}

.column-hero img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.column-hero a {
  color: #405266;
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 9px;
}

.small-item {
  align-items: center;
  border-bottom: 1px solid #e2e9ef;
  display: grid;
  gap: 12px;
  grid-template-columns: 92px 1fr;
  min-height: 75px;
  padding: 10px 0;
}

.small-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 92px;
}

.small-item a {
  color: #4c5d6b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.banner {
  padding: 16px 0 48px;
}

.banner img {
  width: 100%;
}

.content-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 2fr) 300px;
  padding-bottom: 58px;
}

.story-mosaic {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.story-mosaic .feature-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.story-mosaic .feature-card.large a {
  font-size: 18px;
}

.side-list .small-item {
  grid-template-columns: 96px 1fr;
}

.footer-board {
  background: #f3f6f8;
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr 1fr 300px;
  margin-bottom: 90px;
  padding: 34px 36px 42px;
}

.ad-card img {
  width: 100%;
}

.site-footer {
  background: #38536b;
  color: #ffffff;
  padding: 52px 0 32px;
}

.footer-inner {
  display: grid;
  gap: 36px;
}

.footer-inner p,
.footer-inner small {
  font-size: 13px;
  margin: 0 0 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  justify-content: center;
}

.footer-inner a {
  font-size: 13px;
}

.footer-inner small {
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  display: block;
  padding-top: 28px;
  text-align: center;
}

.mobile-panel {
  background: rgba(11, 21, 31, 0.96);
  bottom: 0;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.24);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 44px 28px;
  position: fixed;
  right: 0;
  top: 0;
  width: min(310px, 86vw);
  z-index: 60;
}

.mobile-panel a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 15px;
  font-weight: 800;
  padding: 10px 0;
}

.close-btn {
  color: #ffffff;
  font-size: 24px;
  position: absolute;
  right: 16px;
  top: 12px;
}

.socials {
  display: flex;
  gap: 9px;
  padding-top: 18px;
}

.socials span {
  background: #ffffff;
  border-radius: 50%;
  height: 7px;
  opacity: 0.8;
  width: 7px;
}

@media (max-width: 900px) {
  .wrap {
    width: min(420px, calc(100% - 28px));
  }

  .header-inner {
    min-height: 46px;
  }

  .logo img {
    height: 24px;
  }

  .desktop-nav,
  .search-btn {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    margin-left: auto;
  }

  .top-grid,
  .columns,
  .content-grid,
  .footer-board {
    display: block;
  }

  .top-grid {
    padding-top: 0;
  }

  .feature-grid,
  .story-mosaic {
    display: block;
  }

  .feature-card,
  .feature-card.large,
  .story-mosaic .feature-card.large {
    aspect-ratio: 1.76 / 1;
    margin-bottom: 8px;
  }

  .feature-card a,
  .feature-card:not(.large) a,
  .story-mosaic .feature-card.large a {
    font-size: 14px;
    padding: 12px;
  }

  .headline-card {
    margin: 14px 0 26px;
  }

  .headline-card h1 {
    font-size: 18px;
  }

  .news-column {
    margin-bottom: 30px;
  }

  .news-column h2,
  .foot-column h2 {
    font-size: 15px;
  }

  .banner {
    padding: 8px 0 28px;
  }

  .content-grid {
    padding-bottom: 24px;
  }

  .side-list {
    margin-top: 18px;
  }

  .footer-board {
    margin-bottom: 38px;
    padding: 22px 18px;
  }

  .foot-column {
    margin-bottom: 24px;
  }

  .ad-card {
    padding-top: 8px;
  }

  .site-footer {
    padding: 34px 0 24px;
  }
}
