* {
  margin: 0;
  padding: 0;
  list-style: none;
}
* a {
  color: #fff;
  text-decoration: none;
}
html {
  font-size: 30px;
  /* Prevent viewport-width and fractional-pixel layouts from creating a
     page-level horizontal scrollbar, notably on Windows at 150% scaling. */
  overflow-x: hidden;
  overflow-x: clip;
}

/* Shared hero platform labels: keep every icon on the same top baseline even
 * when a localized TV label needs a second centered line. Japanese keeps its
 * approved explicit word boundary; other long translations (for example
 * Russian with a non-breaking hyphen) may wrap inside their own item. */
.banner-downloads .download-group {
  align-items: flex-start !important;
}

.banner-downloads .download-group .download-item {
  align-items: flex-start !important;
}

.banner-downloads .download-group .download-img {
  justify-content: flex-start !important;
}

.banner-downloads .download-group .download-item:has(.platform-download-label),
.banner-downloads .download-group .download-img:has(.platform-download-label) {
  height: auto !important;
}

.banner-downloads .download-group .platform-download-label {
  display: block;
  width: 100%;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

.banner-downloads .download-group .platform-download-label:not([lang="ja"]) {
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Let translated platform names claim their natural text width when there is
 * room. This keeps long desktop labels on one clean line, while flex-wrap still
 * moves the whole item to the next row on narrow screens. */
.banner-downloads .download-group .download-item:has(.platform-download-label:not([lang="ja"])),
.banner-downloads .download-group .download-img:has(.platform-download-label:not([lang="ja"])) {
  min-width: max-content !important;
}
body {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}
@media screen and (min-width: 1024px) and (max-width: 1319.9px) {
  html {
    font-size: 26px;
  }
}
@media screen and (min-width: 768px) and (max-width: 1023.9px) {
  html {
    font-size: 22px;
  }
}
@media screen and (max-width: 767.9px) {
  html {
    font-size: 16px;
  }
}
@media screen and (max-width: 576px) {
  .row > * {
    width: unset !important;
    max-width: 100%;
  }
}
@media screen and (max-width: 768px) {
  nav .col-md-8 {
    display: none !important;
  }
  nav .nav-ico {
    display: block !important;
    display: flex !important;
  }
}
@media screen and (min-width: 1640px) {
  /* 宽屏放宽 .container 到 1440，但必须同时用 auto 外边距居中：
     否则被本规则强制加宽(!important)、又把 margin 覆写为非 auto 的页面
     (如 Guidance 的 .tutorials/.guidance-* .container 设了 margin:0)
     会被钉在左侧，内容整体偏左。 */
  .container {
    width: 1440px !important;
    max-width: 1440px !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
}

/* ── 还原博客正文的表格/列表/链接样式 ── */
/* 全局 * { list-style: none } 和 Bootstrap Reboot 导致表格边框丢失 */
.article table,
.article-content table,
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
}
/* 移动端表格可横向滑动（用 display:block 触发生成滚动容器，保护表格原生布局） */
.article table,
.article-content table,
.wp-block-table table {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.article table td,
.article table th,
.article-content table td,
.article-content table th,
.wp-block-table table td,
.wp-block-table table th {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}
.article table th,
.article-content table th,
.wp-block-table table th {
  background-color: #f5f5f5;
  font-weight: bold;
}
.article ul,
.article-content ul,
ul.wp-block-list {
  list-style: disc !important;
  padding-left: 2rem !important;
  margin-bottom: 0.5rem;
}
.article ul li,
.article-content ul li,
ul.wp-block-list li {
  list-style-type: disc !important;
}
.article ol,
.article-content ol,
ol.wp-block-list {
  list-style: decimal !important;
  padding-left: 2rem !important;
  margin-bottom: 0.5rem;
}
.article ol li,
.article-content ol li,
ol.wp-block-list li {
  list-style-type: decimal !important;
}
.article a,
.article-content a {
  color: #000;
  text-decoration: underline;
}
.article a:hover,
.article-content a:hover {
  color: #0d6efd;
}

[data-faq-page] .faq-answer__paragraph + .faq-answer__paragraph,
[data-faq-page] .faq-answer__paragraph + .faq-answer__list,
[data-faq-page] .faq-answer__list + .faq-answer__paragraph {
  margin-top: 12px;
}

[data-faq-page] .faq-answer a {
  color: inherit;
  text-decoration: underline;
}

/* Global floating download bar. It is fixed during reading and is switched
   to document positioning by footer.php when the footer reaches it. */
.global-download-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  /* 用 100% 而非 100vw：100vw 含竖向滚动条宽度，会让这个 fixed 底栏比内容区宽约一个
     滚动条，从而在页面底部出现横向滚动条（仅在页面够高、有竖向滚动条的尺寸下复现）。
     overflow-x:hidden 无法裁剪 fixed 元素，所以必须从源头用 100%。 */
  width: 100%;
  z-index: 990;
  box-sizing: border-box;
  height: 120px;
  padding: 24px 0;
  /* 从上到下缓慢渐变，底端 #fff 与 footer 顶部 #fff 无缝衔接。 */
  background: linear-gradient(180deg, #f7f6ff 0%, #fff 127.28%);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* 悬浮条停靠在 footer 上方时，正文最下方一块内容会被条带盖住。给 footer 留出
   ≥ 条带高度的顶部外边距，让 dock 逻辑把条带停进这段空白而非正文上。仅在渲染了
   .global-download-bar 的页面（Guidance / Newsroom）生效。 */
body:has(.global-download-bar) footer {
  margin-top: 140px;
}

.global-download-bar.is-docked {
  position: absolute;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%; /* 同上：避免 100vw 触发底部横向滚动条 */
}

.global-download-bar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(1200px, calc(100vw - 64px));
  height: 100%;
  margin: 0 auto;
}

.global-download-bar__logo {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.global-download-bar__copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: #181818;
  font-family: "Segoe UI", Arial, sans-serif;
}

.global-download-bar__copy strong {
  font-size: 20px;
  font-weight: 600;
  line-height: 26px;
}

.global-download-bar__copy span {
  font-size: 15px;
  font-weight: 400;
  line-height: 20px;
}

.global-download-bar__button {
  display: inline-flex;
  flex: 0 0 200px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 200px;
  height: 44px;
  border-radius: 50px;
  color: #fff;
  background: linear-gradient(90deg, #79a9f0 0%, #a22bf6 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
}

.global-download-bar__button:hover {
  color: #fff;
}

.global-download-bar__button img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

@media (max-width: 1199.98px) {
  .global-download-bar {
    height: 112px;
  }

  .global-download-bar__inner {
    gap: 18px;
    width: min(864px, calc(100vw - 64px));
  }

  .global-download-bar__logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .global-download-bar__copy {
    gap: 6px;
  }

  .global-download-bar__copy strong {
    font-size: 18px;
    line-height: 24px;
  }

  .global-download-bar__copy span {
    font-size: 14px;
    line-height: 18px;
  }

  .global-download-bar__button {
    flex-basis: 180px;
    width: 180px;
    height: 42px;
    font-size: 15px;
    line-height: 20px;
  }

  .global-download-bar__button img {
    width: 16px;
    height: 16px;
  }

  body:has(.global-download-bar) footer {
    margin-top: 132px;
  }
}

@media (max-width: 768px) {
  .global-download-bar {
    height: 130px;
    padding: 20px;
  }

  .global-download-bar__inner {
    display: grid;
    grid-template-columns: 40px auto;
    grid-template-rows: 40px 34px;
    align-content: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
  }

  .global-download-bar__logo {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .global-download-bar__copy {
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .global-download-bar__copy strong {
    font-size: 16px;
    line-height: 22px;
  }

  .global-download-bar__copy span {
    display: none;
  }

  .global-download-bar__button {
    grid-column: 1 / -1;
    justify-self: center;
    flex-basis: 38px;
    width: 140px;
    height: 38px;
    font-size: 14px;
    line-height: 18px;
  }

  .global-download-bar__button img {
    width: 14px;
    height: 14px;
  }

  body:has(.global-download-bar) footer {
    margin-top: 150px;
  }
}

@media (max-width: 575.98px) {
  .global-download-bar {
    height: 120px;
    padding: 16px;
  }

  .global-download-bar__inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .global-download-bar__logo {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .global-download-bar__copy {
    flex: 0 0 auto;
  }

  .global-download-bar__copy strong {
    font-size: 13px;
    line-height: 18px;
  }

  body:has(.global-download-bar) footer {
    margin-top: 140px;
  }
}

@media screen and (max-width: 1199px) {
  /*
   * Mobile store download badges used across Feature pages. Product pages
  * use the same 40px mobile size in platform-pages.css.
   */
  :where(
    body:has(link[href*="/css/screen-mirroring.css"]),
    body:has(link[href*="/css/file-transfer.css"]),
    body:has(link[href*="/css/mirror-camera.css"]),
    body:has(link[href*="/css/screen-receiver.css"]),
    body:has(link[href*="/css/send-to-files-to-tv-from-pc-mac.css"]),
    body:has(link[href*="/css/usb-screen-mirroring.css"]),
    body:has(link[href*="/css/whiteboard.css"])
  ) :is(.show-on-android, .show-on-ios) {
    width: auto !important;
    height: 40px !important;
    max-width: 100%;
    flex: 0 0 auto;
  }

  :where(
    body:has(link[href*="/css/screen-mirroring.css"]),
    body:has(link[href*="/css/file-transfer.css"]),
    body:has(link[href*="/css/mirror-camera.css"]),
    body:has(link[href*="/css/screen-receiver.css"]),
    body:has(link[href*="/css/send-to-files-to-tv-from-pc-mac.css"]),
    body:has(link[href*="/css/usb-screen-mirroring.css"]),
    body:has(link[href*="/css/whiteboard.css"])
  ) :is(.show-on-android, .show-on-ios) > a,
  :where(
    body:has(link[href*="/css/screen-mirroring.css"]),
    body:has(link[href*="/css/file-transfer.css"]),
    body:has(link[href*="/css/mirror-camera.css"]),
    body:has(link[href*="/css/screen-receiver.css"]),
    body:has(link[href*="/css/send-to-files-to-tv-from-pc-mac.css"]),
    body:has(link[href*="/css/usb-screen-mirroring.css"]),
    body:has(link[href*="/css/whiteboard.css"])
  ) :is(.show-on-android, .show-on-ios) > a > img {
    display: block;
    width: auto !important;
    height: 40px !important;
    max-width: 100%;
    object-fit: contain;
  }
}
