/* 闪光下载页叠在 Android Studio 原站样式之上。页头和两张卡片用 #f65835。 */

.dac-studio-page .devsite-landing-row-hero,
.dac-studio-page .devsite-landing-row-hero.android-row-background-grey-900,
.dac-studio-page .devsite-landing-row-hero.android-row-background-grey-900 .devsite-landing-row-item-description {
  background-color: #f65835 !important;
  background-image: none !important;
  --devsite-background-color: #f65835 !important;
}

.dac-studio-page .android-item-background-grey-900,
.dac-studio-page .android-item-dark-background-grey-900,
.dac-studio-page .android-item-background-grey-900 .devsite-landing-row-item-description,
.dac-studio-page .android-item-dark-background-grey-900 .devsite-landing-row-item-description {
  background-color: #f65835 !important;
  background-image: none !important;
  --devsite-background-color: #f65835 !important;
}

.devsite-dialog,
.devsite-banner-translated,
.devsite-tabs-dropdown,
.devsite-article .devsite-landing-row-item-labels,
.devsite-landing-row-header-icon-container,
.devsite-article .devsite-landing-row-item-media,
.devsite-article img.block,
.devsite-article .devsite-landing-row-item-description-content img,
.android-page-preview-link,
.android-row-background-grey-50,
.android-promo,
.devsite-landing-row:has([id="5qC45b-D5Yqf6IO9"]),
.devsite-landing-row:has(h3[data-text="闪光安装入门"]),
.devsite-landing-row:has(#wallpapers),
.android-grouped-resources-contained--primary .devsite-landing-row-header-buttons,
devsite-footer-promos,
.devsite-footer-linkboxes,
.devsite-footer-sites,
devsite-header devsite-search,
devsite-header devsite-language-selector,
devsite-header devsite-appearance-selector,
devsite-header devsite-openid-user,
.devsite-footer-utility devsite-language-selector {
  display: none !important;
}

.dac-studio-page .devsite-landing-row-hero .devsite-landing-row-item-description {
  grid-column: 1 / span 12 !important;
}

.dac-studio-page .devsite-landing-row-hero .devsite-landing-row-item-media {
  display: none !important;
}

.sg-icon {
  width: 24px;
  height: 24px;
  display: block;
}

#devsite-hamburger-menu:before,
#sgNavClose:before {
  content: none !important;
}

#sgNavClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #202124;
}

.devsite-footer-utility-list {
  flex-wrap: wrap;
}

devsite-header .devsite-site-logo,
.devsite-site-logo {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
}

.sg-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
  margin-top: 40px;
}

.sg-platforms-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.dac-studio-page .devsite-landing-row-hero .sg-platforms .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  margin-top: 0 !important;
  width: auto;
  max-width: none;
  min-width: 220px;
  height: 48px;
  padding: 0 24px;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dac-studio-page .devsite-landing-row-hero .sg-platforms .button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.dac-studio-page .devsite-landing-row-hero .sg-platforms .button:hover,
.dac-studio-page .devsite-landing-row-hero .sg-platforms .button:focus,
.dac-studio-page .devsite-landing-row-hero .sg-platforms .button:active,
.dac-studio-page .devsite-landing-row-hero .sg-platforms .button:visited {
  text-decoration: none;
}

@media screen and (max-width: 840px) {
  #devsite-hamburger-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    color: #202124;
  }

  .devsite-site-logo-link {
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
  }

  .devsite-product-id .devsite-breadcrumb-link {
    font: 500 14px/20px "Google Sans", "Noto Sans SC", "PingFang SC", sans-serif;
    letter-spacing: 0.08em;
    color: #202124;
    text-decoration: none;
  }

  .dac-studio-page .devsite-landing-row-hero .devsite-landing-row-item-description {
    grid-column: unset !important;
    padding: 32px 0 48px !important;
  }

  .sg-platforms {
    flex-direction: column;
    align-items: center;
    margin-top: 48px;
    width: 100%;
  }

  .sg-platforms-col {
    align-items: center;
    width: auto;
  }

  .dac-studio-page .devsite-landing-row-hero .sg-platforms .button {
    width: auto !important;
    min-width: 0;
    max-width: 100%;
    --devsite-button-width: auto;
  }
}

.sg-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10020;
}

.sg-nav.open {
  display: block;
}

.sg-nav-mask {
  position: absolute;
  inset: 0;
  background: rgba(32, 33, 36, 0.46);
}

.sg-nav-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(85vw, 320px);
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.sg-nav-head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 0 8px;
  border-bottom: 1px solid #dadce0;
}

.sg-nav-head span {
  font: 500 18px/24px "Google Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #202124;
}

#sgNavClose,
.sg-nav-back {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: #202124;
  cursor: pointer;
}

.sg-nav-list {
  display: flex;
  flex-direction: column;
  padding: 8px 0 24px;
}

.sg-nav-list a {
  display: block;
  padding: 14px 24px;
  color: #202124;
  text-decoration: none;
  font: 500 14px/20px "Google Sans Text", "Noto Sans SC", "PingFang SC", sans-serif;
}

.sg-nav-list a:active {
  background: #f1f3f4;
}

.sg-wx {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
  padding: 24px 28px 0 0;
  text-align: right;
}

.sg-wx.is-on {
  display: block;
}

.sg-wx p {
  margin: 0 0 8px;
  color: #fff;
  font: 16px/1.6 -apple-system, "PingFang SC", sans-serif;
}

.sg-wx .sg-wx-sub {
  font-size: 14px;
  opacity: 0.7;
}

.sg-wx button {
  -webkit-appearance: none;
  appearance: none;
  margin-top: 24px;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  background: transparent;
  color: #fff;
  font: 14px/20px -apple-system, "PingFang SC", sans-serif;
  cursor: pointer;
}

#sgTf {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
}

#sgTf.on {
  display: block;
}

#sgTfMask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#sgTfPanel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 24px 20px calc(20px + env(safe-area-inset-bottom, 0px));
}

#sgTfPanel h3 {
  margin: 0 0 8px;
  font: 600 18px/26px -apple-system, "PingFang SC", sans-serif;
  color: #111;
}

#sgTfPanel p {
  margin: 0 0 20px;
  font: 14px/22px -apple-system, "PingFang SC", sans-serif;
  color: #666;
}

#sgTfYes,
#sgTfNo,
#sgTfX {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font: 600 16px/22px -apple-system, "PingFang SC", sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

#sgTfYes {
  background: #111;
  color: #fff;
}

#sgTfNo {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

#sgTfX {
  background: none;
  color: #888;
  font-weight: 400;
  margin: 0;
  border: 0;
}

#sg-hw {
  background: #fff;
  padding: 0 0 48px;
}

.sg-hw-panel {
  background: #e8f0fe;
  border-radius: 28px;
  padding: 36px 40px 28px;
}

.sg-hw-head {
  max-width: 36rem;
  margin: 0 0 8px;
}

.sg-hw-head h2 {
  margin: 0 0 8px;
  font: 400 36px/44px "Google Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #202124;
}

.sg-hw-head p {
  margin: 0;
  font: 14px/22px "Google Sans Text", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #3c4043;
}

.sg-hw-steps {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.sg-hw-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 496px);
  gap: 24px 40px;
  align-items: start;
  margin: 0;
  padding: 28px 0;
  border-top: 1px solid rgba(32, 33, 36, 0.1);
}

.sg-hw-copy {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.sg-hw-n {
  display: block;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font: 600 15px/32px "Google Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  text-align: center;
}

.sg-hw-copy h3 {
  margin: 4px 0 8px;
  font: 500 20px/28px "Google Sans", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #202124;
}

.sg-hw-copy p {
  margin: 0;
  max-width: 36rem;
  font: 14px/22px "Google Sans Text", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #3c4043;
}

.sg-hw-shot {
  display: block;
  margin: 0;
  width: 100%;
  max-width: 496px;
  height: auto;
  align-self: start;
  overflow: hidden;
}

.sg-hw-step > .sg-hw-shot {
  justify-self: stretch;
}

.sg-hw-shots {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 496px;
  justify-self: stretch;
  align-items: start;
}

.devsite-article #sg-hw img.sg-hw-img,
.devsite-article .sg-hw img.sg-hw-img {
  display: block !important;
  box-sizing: content-box;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: top center !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
}

.sg-hw-shot figcaption,
.sg-hw-credit {
  margin: 8px 0 0;
  font: 12px/18px "Google Sans Text", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #5f6368;
}

.sg-hw-note {
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(32, 33, 36, 0.1);
  font: 14px/22px "Google Sans Text", "Noto Sans SC", "PingFang SC", sans-serif;
  color: #3c4043;
}

.sg-hw-credit {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .sg-hw-panel {
    padding: 24px 20px 20px;
    border-radius: 20px;
  }

  .sg-hw-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sg-hw-shots {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    justify-self: stretch;
  }

  .sg-hw-shot,
  .sg-hw-step > .sg-hw-shot {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
  }
}

@media (max-width: 520px) {
  .sg-hw-head h2 {
    font-size: 28px;
    line-height: 36px;
  }
}
