:root {
  --tvs-font-sans: "Noto Sans SC Variable", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --bs-font-sans-serif: var(--tvs-font-sans);
  --bs-body-font-family: var(--tvs-font-sans);
}

html,
body,
button,
input,
select,
textarea {
  font-family: var(--tvs-font-sans);
}

* {
  margin: 0;
  padding: 0;
  list-style: none;
}
* a {
  color: #fff;
  text-decoration: none;
}

/* Shared hero platform labels follow the international site's icon baseline.
 * A localized Smart TV label may wrap, but it must not shift any icon. */
.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;
}

.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;
}

/* Keep the FAQ surface consistent across Home, Products and Features. */
html body section.faq-container[data-faq-page] .faq-question,
html body section.faq-container[data-faq-page] .faq-answer {
  background-color: #fbfafe;
}
@media screen and (max-width: 576px) {
  .row > * {
    width: unset !important;
    max-width: 100%;
  }
}
@media screen and (min-width: 720px) {
  html {
    font-size: 14.4px;
  }
}
@media screen and (min-width: 750px) {
  html {
    font-size: 15px;
  }
}
@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: 768px) {
  html {
    font-size: 15.36px;
  }
}
@media screen and (min-width: 992px) {
  html {
    font-size: 19.84px;
  }
}
@media screen and (min-width: 1200px) {
  html {
    font-size: 24px;
  }
}
@media screen and (min-width: 1640px) {
  html {
    font-size: 32.8px;
  }
  .container {
    width: 1440px !important;
    max-width: 1440px !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;
}

/* Guidance and Newsroom share the reading-page download bar. It remains fixed
 * until footer.php docks it in the reserved space immediately above footer. */
.global-download-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 990;
  box-sizing: border-box;
  width: 100%;
  height: 120px;
  padding: 24px 0;
  background: linear-gradient(180deg, #f7f6ff 0%, #fff 127.28%);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

body:has(.global-download-bar) footer {
  margin-top: 140px;
}

.global-download-bar.is-docked {
  position: absolute;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
}

.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: var(--tvs-font-sans);
}

.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: var(--tvs-font-sans);
  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; }
}
