/*
 * Privacy page
 *
 * Important scroll rules (tablet / WebView):
 * - Do NOT use html{height:100%; overflow:hidden} + body{overflow-y:auto}.
 *   That makes the outer scrollbar hit bottom while body content continues,
 *   so the last lines look "cut off" even though the scrollbar is at the end.
 * - Use normal document scrolling (html/body height:auto).
 * - Prevent horizontal swipe without locking vertical scroll.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: clip;
  overflow-y: visible;
  -webkit-text-size-adjust: 100%;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 calc(96px + env(safe-area-inset-bottom, 0px));
  height: auto;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: visible;
  font-family: "Microsoft Yahei", sans-serif;
  -webkit-overflow-scrolling: touch;
}

@supports not (overflow-x: clip) {
  body {
    overflow-x: hidden;
  }
}

img,
video,
iframe,
table {
  max-width: 100%;
  height: auto;
}

.main-content {
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.content,
.article,
.right-content,
.article-content {
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.article::after {
  content: "";
  display: block;
  clear: both;
}

/* Extra space so last lines are never flush against the screen edge */
.scroll-end-spacer {
  display: block;
  width: 100%;
  height: 48px;
  clear: both;
  pointer-events: none;
}

/*
 * Phones + tablets (incl. large iPad landscape)
 * and touch-first devices
 */
@media only screen and (max-width: 1366px),
  only screen and (hover: none) and (pointer: coarse) {
  .right-content .tab,
  .right-content .title {
    display: none !important;
  }

  .header .logo {
    width: 100%;
    text-align: center;
    padding-top: 30px;
  }

  .menus {
    position: relative;
    background: url("../img/menu_bg.png") no-repeat center;
    background-size: cover;
    width: 100%;
    height: 35px;
  }

  .article {
    display: block;
    width: 90.6667%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0;
  }

  .left-nav {
    border: 1px solid #ccc;
    background-color: #d1dbdd;
    width: 100%;
    float: none;
    flex: none;
    height: auto;
    margin-top: 0;
  }

  .left-nav ul {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #d1dbdd;
  }

  .left-nav ul li {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    padding: 16px 4%;
    float: none;
    width: auto;
    height: auto;
  }

  .left-nav ul li a {
    font-size: 18px;
    color: #808080;
  }

  .right-content {
    width: 100% !important;
    float: none;
    flex: none;
    margin: 12px 0 0;
    text-align: left;
  }

  .p0,
  .p18,
  .p17,
  .p16 {
    overflow-wrap: anywhere;
    word-break: break-word;
    text-align: left;
  }

  .content > img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
  }

  .article-content {
    width: 100%;
    text-align: left;
  }
}

/* Wide desktop — 左灰块 + 青色按钮与正文左对齐；红框标题居中 */
@media only screen and (min-width: 1367px) and (hover: hover) and (pointer: fine) {
  a {
    color: #808080;
  }

  .menus {
    position: relative;
    background: url(../img/menu_bg.png) no-repeat center;
    width: 100%;
    max-width: 1920px;
    height: 35px;
  }

  .menu-list {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }

  .menu-list ul li {
    position: relative;
    float: left;
    height: 32px;
    margin-right: 4.2%;
    color: #fff;
    margin-top: 5px;
  }

  .menu-list ul li a {
    color: #fff;
  }

  .content > img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
  }

  .article {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 16px 40px;
  }

  .article .left-nav {
    display: block !important;
    flex: 0 0 170px;
    width: 170px;
    float: none;
    margin: 0;
    background-color: #d1dbdd;
    border: 1px solid #ccc;
  }

  .article .left-nav ul {
    margin-top: 12px;
    margin-bottom: 12px;
    color: #808080;
    display: block;
  }

  .article .left-nav ul li {
    width: 100%;
    height: auto;
    min-height: 28px;
    margin-top: 5px;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
    float: none;
  }

  .article .left-nav ul li:hover,
  .left-nav .active {
    background-color: #808080;
  }

  .article .left-nav ul li:hover span,
  .left-nav .active span {
    color: #fff;
  }

  /* 与灰块顶边齐平 */
  .article .right-content {
    display: block;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    overflow: visible;
    text-align: left;
    float: none;
  }

  .right-content .tab,
  .right-content .title {
    display: block !important;
  }

  /* 青色按钮：收窄高度，与正文左对齐 */
  .tab {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
  }

  .tab span {
    display: block;
    box-sizing: border-box;
    color: #fff;
    font-size: 13px;
    width: 163px;
    padding: 6px 0;
    height: auto;
    line-height: 1.2;
    text-align: center;
    background: url(../img/tab_bg.png) no-repeat center;
    background-size: 100% 100%;
  }

  /* 红框标题：在内容区水平居中 */
  .title {
    display: block;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    color: #808080;
    margin-top: 10px;
    text-align: center;
  }

  .article-content {
    display: block;
    width: 100%;
    margin: 12px 0 0;
    padding: 0;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .article-content .p0,
  .article-content .p18,
  .article-content .p17,
  .article-content .p16 {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
  }
}

#appInfo {
  display: none;
  margin-bottom: 20px;
}

.privacyIconBox,
.appNameBox,
.devNameBox,
.companyNameBox {
  display: none;
  font-family: "Microsoft YaHei";
  font-size: 12px;
  line-height: 35px;
}

.privacyIconBox {
  margin-top: 20px;
}
