:root {
  --xmwcc-bg: #f6f8fb;
  --xmwcc-bg-soft: #ffffff;
  --xmwcc-panel: rgba(255,255,255,.94);
  --xmwcc-panel-2: #ffffff;
  --xmwcc-text: #1f2937;
  --xmwcc-muted: #64748b;
  --xmwcc-muted-2: #94a3b8;
  --xmwcc-line: rgba(15,23,42,.08);
  --xmwcc-line-strong: rgba(15,23,42,.14);
  --xmwcc-accent: #4b7bec;
  --xmwcc-accent-2: #65a7ff;
  --xmwcc-vip: #ff5b6e;
  --xmwcc-shadow: 0 8px 24px rgba(15,23,42,.08);
  --xmwcc-shadow-hover: 0 14px 34px rgba(15,23,42,.13);
  --xmwcc-hero-fade: #f6f8fb;
  --xmwcc-hero-panel: rgba(255,255,255,.92);
  --xmwcc-hero-panel-hover: #ffffff;
}

body.dark-theme {
  --xmwcc-bg: #292a2d;
  --xmwcc-bg-soft: #2f3033;
  --xmwcc-panel: #323335;
  --xmwcc-panel-2: #3a3b3e;
  --xmwcc-text: #e5eef7;
  --xmwcc-muted: #b9c1cf;
  --xmwcc-muted-2: #8f98a6;
  --xmwcc-line: rgba(229,238,247,.08);
  --xmwcc-line-strong: rgba(229,238,247,.14);
  --xmwcc-shadow: 0 0 10px rgba(24,24,24,.1);
  --xmwcc-shadow-hover: 0 10px 28px rgba(20,20,20,.24);
  --xmwcc-hero-fade: #292a2d;
  --xmwcc-hero-panel: rgba(50,51,53,.92);
  --xmwcc-hero-panel-hover: rgba(58,59,62,.96);
}

body {
  letter-spacing: 0 !important;
}

.navbar-brand,
.logo,
.navbar-logo,
.navbar-brand a,
.logo a {
  color: var(--xmwcc-text) !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

.navbar-brand,
.logo {
  display: inline-flex !important;
  align-items: center;
  min-width: 166px;
  min-height: 42px;
}

.navbar-brand:before,
.logo:before {
  content: "" !important;
  display: block;
  width: 162px;
  height: 38px;
  background: url("/wp-content/uploads/xmwcc-assets/xmwcc-logo.svg") left center / contain no-repeat;
}

.navbar-brand:after,
.logo:after {
  content: none !important;
  display: none !important;
}

.xmwcc-hero-wrap {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.xmwcc-hero {
  position: relative;
  width: 100%;
  min-height: 348px;
  margin: -88px auto 0;
  padding: 104px 24px 34px;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(8,9,12,.42) 0%, rgba(8,9,12,.22) 58%, var(--xmwcc-hero-fade) 100%),
    url("/wp-content/uploads/xmwcc-assets/earth-hero-poster.jpg") center top / cover no-repeat !important;
  box-shadow: none !important;
  color: var(--xmwcc-text) !important;
}

.xmwcc-hero-main {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.xmwcc-logo-mark {
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #3a3b3e;
  color: #fff;
  box-shadow: var(--xmwcc-shadow);
  font-size: 28px;
  font-weight: 900;
}

.xmwcc-hero h1 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: 0 !important;
  text-shadow: 0 2px 8px rgba(0,0,0,.34);
}

.xmwcc-subtitle {
  margin: 0 0 38px;
  color: var(--xmwcc-text);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,.34);
}

.xmwcc-hero-search {
  position: relative;
  display: flex;
  align-items: center;
  width: min(720px, 100%);
  height: 56px;
  margin: 0 auto 18px;
  padding: 0 8px 0 24px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.44);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}

.xmwcc-hero-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 0;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #333 !important;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}

.xmwcc-hero-search input[type="search"]::placeholder {
  color: rgba(40,43,48,.58);
}

.xmwcc-hero-search button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.22) !important;
  color: #333 !important;
  font-size: 0;
  cursor: pointer;
}

.xmwcc-hero-search button:before {
  content: "\f002";
  font-family: FontAwesome, Arial, sans-serif;
  font-size: 17px;
  line-height: 1;
}

.xmwcc-hero-search button:hover {
  background: rgba(255,255,255,.36) !important;
}

.xmwcc-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1170px;
  margin: 42px auto 16px;
}

.xmwcc-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 16px 20px;
  border: 1px solid rgba(255,255,255,.03);
  border-radius: 8px;
  background: var(--xmwcc-hero-panel);
  color: var(--xmwcc-text);
  box-shadow: var(--xmwcc-shadow);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  gap: 7px;
}

.xmwcc-shortcuts a:hover {
  transform: translateY(-2px);
  background: var(--xmwcc-hero-panel-hover);
  color: var(--xmwcc-text) !important;
}

.xmwcc-shortcuts span {
  margin-left: 0;
}

.xmwcc-shortcut-title {
  display: block !important;
  color: var(--xmwcc-text);
  font-size: 16px !important;
  line-height: 1.2 !important;
}

.xmwcc-shortcut-desc {
  display: block !important;
  color: var(--xmwcc-muted) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.xmwcc-shortcuts a.is-active,
.xmwcc-shortcuts a.is-copied {
  border-color: rgba(101,167,255,.34);
  background: var(--xmwcc-hero-panel-hover);
}

.xmwcc-shortcuts a > span:not(.xmwcc-shortcut-title):not(.xmwcc-shortcut-desc) {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 8px;
  background: #4b7bec;
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
}

.xmwcc-site-map {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 900px;
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid var(--xmwcc-line);
  border-radius: 8px;
  background: var(--xmwcc-hero-panel);
  box-shadow: var(--xmwcc-shadow);
}

.xmwcc-site-map.is-open,
.xmwcc-site-map:target {
  display: grid;
}

.xmwcc-site-map a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--xmwcc-line);
  border-radius: 8px;
  background: rgba(255,255,255,.68);
  color: var(--xmwcc-text);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.xmwcc-site-map a:hover {
  background: #4b7bec;
  color: #fff !important;
}

/* ACG home_ssk module alignment */
body.home #page-wrapper {
  position: relative;
  margin-top: -70px !important;
  padding-bottom: 0 !important;
  background: transparent !important;
}

body.home .home-banner {
  min-height: 448px;
  overflow: hidden;
  background: var(--xmwcc-bg) !important;
}

body.home .home-banner .section {
  height: 448px !important;
  max-height: none !important;
}

body.home .home-banner .section .video-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
}

body.home .home-banner .section .video-overlay {
  background: linear-gradient(180deg, rgba(8,9,12,.42) 0%, rgba(8,9,12,.22) 58%, var(--xmwcc-hero-fade) 100%) !important;
}

body.home #page-wrapper .wrapper.poa {
  top: 126px !important;
  left: 50%;
  width: min(820px, calc(100% - 32px)) !important;
  margin: 0 !important;
  transform: translateX(-50%);
}

body.home .home-banner-content .slogan-text.por.fl {
  margin-bottom: 36px !important;
}

body.home .home-banner-content .slogan-text p:nth-of-type(1) {
  margin: 0 0 8px !important;
  color: #fff !important;
  font-size: 30px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
  letter-spacing: 0 !important;
}

body.home .home-banner-content .slogan-text p.promote-sub-title {
  color: #e5eef7 !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

body.home .home-banner .corner {
  display: none !important;
}

body.home .home-banner-search {
  width: min(720px, 100%) !important;
}

body.home .home-banner-search .left-cont {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 8px 0 24px;
  border: 1px solid rgba(255,255,255,.24) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.44) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(8px);
}

body.home .home-banner-search form.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

body.home .home-banner-search form > input.s {
  flex: 1;
  min-width: 0;
  height: 100% !important;
  padding: 0 12px 0 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #333 !important;
  font-size: 15px !important;
  font-weight: 700;
}

body.home .home-banner-search form > input.s::placeholder {
  color: rgba(40,43,48,.58);
}

body.home .primary-menus .left-cont button.btn {
  position: static !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px !important;
  width: 44px;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.22) !important;
  color: #333 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  transform: none !important;
}

body.home .primary-menus .left-cont button.btn:before {
  content: "\f002";
  font-family: FontAwesome, Arial, sans-serif;
  font-size: 17px;
}

body.home .home-banner-search .tag {
  display: none !important;
}

body.home #home-row-qukuai {
  margin-top: -140px;
  margin-bottom: 24px;
  z-index: 5;
}

body.home #home-row-qukuai > .wrapper {
  width: min(1170px, calc(100% - 32px));
  margin-top: 0 !important;
}

body.home #home-row-qukuai .sort {
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

body.home #home-row-qukuai .sort-config {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
}

body.home #home-row-qukuai .sort-config > li {
  min-width: 0;
  list-style: none !important;
}

body.home #home-row-qukuai .sort-config-item {
  position: relative;
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 90px;
  padding: 16px 20px;
  border: 1px solid var(--xmwcc-line);
  border-radius: 8px;
  background: var(--xmwcc-hero-panel);
  color: var(--xmwcc-text);
  box-shadow: var(--xmwcc-shadow);
}

body.home #home-row-qukuai .sort-config-item:hover,
body.home #home-row-qukuai .sort-config-item.is-active,
body.home #home-row-qukuai .sort-config-item.is-copied {
  border-color: rgba(101,167,255,.34);
  background: var(--xmwcc-hero-panel-hover);
}

body.home #home-row-qukuai .sort-config-item img.sort-config-icon {
  grid-row: 1 / 3;
  width: 46px !important;
  height: 46px !important;
  margin: 0 12px 0 0 !important;
  border-radius: 12px;
}

body.home #home-row-qukuai .sort-config-item a {
  display: block;
  text-decoration: none;
}

body.home #home-row-qukuai .sort-config-title {
  float: none !important;
  margin: 0 0 7px !important;
  color: var(--xmwcc-text) !important;
  font-size: 16px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

body.home #home-row-qukuai .sort-config-desc {
  float: none !important;
  color: var(--xmwcc-muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
}

.xmwcc-hot-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 0;
  display: none;
}

.xmwcc-hot-tags a {
  padding: 7px 11px;
  border: 1px solid var(--xmwcc-line);
  border-radius: 8px;
  color: var(--xmwcc-muted);
  background: var(--xmwcc-hero-panel);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.xmwcc-hot-tags a:hover {
  color: #fff !important;
  background: var(--xmwcc-accent);
}

@media (max-width: 768px) {
  .xmwcc-hero {
    min-height: 340px;
    margin: -72px auto 0;
    padding: 88px 16px 22px;
    background-position: center top !important;
  }

  .xmwcc-logo-mark {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .xmwcc-hero h1 {
    font-size: 28px;
  }

  .xmwcc-subtitle {
    margin-bottom: 28px;
    font-size: 16px;
  }

  .xmwcc-hero-search {
    height: 52px;
    border-width: 4px;
    padding-left: 18px;
  }

  .xmwcc-hero-search button {
    min-width: 42px;
    width: 42px;
    height: 42px;
  }

  .xmwcc-shortcuts {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .xmwcc-shortcuts a {
    min-height: 58px;
  }

  .xmwcc-site-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-left: 0;
    margin-right: 0;
  }

  body.home #page-wrapper {
    display: block !important;
    margin-top: -52px !important;
  }

  body.home .home-banner,
  body.home .home-banner .section {
    min-height: 390px;
    height: 390px !important;
  }

  body.home #page-wrapper .wrapper.poa {
    top: 92px !important;
    width: calc(100% - 32px) !important;
  }

  body.home .home-banner-content .slogan-text.por.fl {
    margin-bottom: 28px !important;
  }

  body.home .home-banner-content .slogan-text p:nth-of-type(1) {
    font-size: 28px !important;
  }

  body.home .home-banner-content .slogan-text p.promote-sub-title {
    font-size: 16px !important;
  }

  body.home .home-banner-search .left-cont {
    height: 52px;
    padding-left: 18px;
  }

  body.home .primary-menus .left-cont button.btn {
    min-width: 42px !important;
    width: 42px;
    height: 42px !important;
  }

  body.home #home-row-qukuai {
    display: block !important;
    margin-top: -128px;
  }

  body.home #home-row-qukuai > .wrapper {
    width: calc(100% - 32px);
  }

  body.home #home-row-qukuai .sort-config {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home #home-row-qukuai .sort-config-item {
    min-height: 64px;
    padding: 12px 14px;
  }

  body.home #home-row-qukuai .sort-config-item img.sort-config-icon {
    width: 38px !important;
    height: 38px !important;
  }
}
