:root {
  --tg-primary: #0088cc;
  --tg-secondary: #318fd3;
  --tg-bg: #ffffff;
  --tg-surface: #ffffff;
  --tg-surface-soft: #f5f8fb;
  --tg-text: #333333;
  --tg-heading: #222222;
  --tg-muted: #6f7f89;
  --tg-border: rgba(0, 0, 0, 0.12);
  --tg-on-primary: var(--on-primary, #ffffff);
  --tg-radius: 8px;
  --tg-radius-sm: 3px;
  --tg-fast: 180ms ease;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--tg-bg);
  color: var(--tg-text);
  font-family: "Lucida Grande", "Lucida Sans Unicode", "PingFang SC", "Microsoft YaHei", Arial, Helvetica, Verdana, sans-serif;
  letter-spacing: 0;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--tg-bg);
  color: var(--tg-text);
  font-size: 15px;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--tg-primary);
  text-decoration: none;
  transition: color var(--tg-fast), background-color var(--tg-fast), border-color var(--tg-fast), transform var(--tg-fast);
}

a:hover,
a:focus-visible {
  color: var(--tg-secondary);
}

a:focus-visible {
  outline: 2px solid var(--tg-primary);
  outline-offset: 3px;
}

.tg-container {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.tg-topbar {
  min-height: 50px;
  border-bottom: 1px solid var(--tg-border);
  background: var(--tg-surface);
}

.tg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 20px;
}

.tg-nav-brand,
.tg-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--tg-heading);
  font-size: 18px;
  font-weight: 700;
}

.tg-nav-brand img,
.tg-footer-brand img {
  width: 32px;
  height: 32px;
}

.tg-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.tg-nav-links a {
  color: var(--tg-text);
}

.tg-nav-links a:hover,
.tg-nav-links a:focus-visible {
  color: var(--tg-primary);
}

body .site-header.wh-unified-site-header .wh-site-header-brand,
body .site-header.wh-unified-site-header .wh-site-header-brand-text {
  line-height: 1.35;
}

body .site-header.wh-unified-site-header .wh-site-header-brand-text {
  min-height: 1.35em;
}

.tg-hero {
  padding: 16px 0 44px;
}

.tg-hero-head {
  position: relative;
  min-height: 286px;
}

.tg-logo-wrap {
  width: min(100%, 400px);
  margin: 0 auto;
  padding-top: 28px;
  text-align: center;
}

.tg-logo-mark {
  width: 118px;
  height: 118px;
  margin: 0 auto 10px;
}

.tg-wordmark {
  margin: 0;
  color: var(--tg-heading);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.12;
  padding-bottom: 2px;
}

.tg-logo-lead {
  margin: 8px 0 0;
  color: var(--tg-heading);
  font-size: 20px;
  line-height: 1.35;
}

.tg-logo-sublead {
  margin: 10px auto 0;
  max-width: 360px;
  color: var(--tg-muted);
  font-size: 14px;
}

.tg-side-news {
  position: absolute;
  top: 10px;
  right: 0;
  width: 252px;
}

.tg-side-news-title {
  display: block;
  margin-bottom: 8px;
  color: var(--tg-heading);
  font-weight: 700;
}

.tg-side-news-list {
  display: grid;
  gap: 2px;
}

.tg-side-news-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  padding: 8px 0;
  color: var(--tg-text);
  border-top: 1px solid var(--tg-border);
}

.tg-side-news-item span {
  color: var(--tg-muted);
  font-size: 12px;
}

.tg-side-news-item strong {
  color: var(--tg-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.tg-download-mobile {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100% - 32px, 740px);
  min-height: 300px;
  margin-top: 22px;
  overflow: hidden;
}

.tg-download-device {
  position: relative;
  min-height: 300px;
  padding: 0 16px 22px;
  color: var(--tg-primary);
  text-align: center;
}

.tg-download-device:hover,
.tg-download-device:focus-visible {
  color: var(--tg-secondary);
  transform: translateY(-2px);
}

.tg-device-label {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  z-index: 1;
  font-size: 15px;
}

.tg-device-visual {
  display: block;
  width: 304px;
  height: 240px;
  max-width: 100%;
  margin: 0 auto 32px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;
}

.is-android .tg-device-visual {
  background-image: url("/images/android-preview.webp");
}

.is-ios .tg-device-visual {
  background-image: url("/images/ios-preview.webp");
}

.tg-more-wrap {
  width: min(100% - 32px, 740px);
  text-align: center;
}

.tg-more-btn,
.tg-primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid var(--tg-primary);
  border-radius: var(--tg-radius-sm);
  background: var(--tg-primary);
  color: var(--tg-on-primary);
  font-weight: 700;
  line-height: 1.2;
}

.tg-more-btn:hover,
.tg-more-btn:focus-visible,
.tg-primary-cta:hover,
.tg-primary-cta:focus-visible {
  border-color: var(--tg-secondary);
  background: var(--tg-secondary);
  color: var(--tg-on-primary);
}

.tg-desktop-section {
  width: min(100% - 32px, 740px);
  margin-top: 42px;
}

.tg-desktop-preview {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  background-color: var(--tg-surface-soft);
  background-image: url("/images/desktop-preview.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.tg-desktop-links {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 0 20px;
}

.tg-desktop-links a {
  color: var(--tg-primary);
  font-size: 15px;
  font-weight: 500;
}

.tg-section {
  padding: 48px 0;
  border-top: 1px solid var(--tg-border);
}

.tg-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.tg-section h2,
.tg-main-body-header {
  margin: 0;
  color: var(--tg-heading);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.2;
}

.tg-news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.tg-news-card {
  display: block;
  padding: 15px;
  color: var(--tg-text);
  border: 1px solid transparent;
  border-radius: var(--tg-radius);
}

.tg-news-card:hover,
.tg-news-card:focus-visible {
  border-color: var(--tg-border);
  background: var(--tg-surface);
  color: var(--tg-text);
}

.tg-news-card img {
  width: 100%;
  aspect-ratio: 1.53;
  object-fit: cover;
  border-radius: var(--tg-radius-sm);
}

.tg-news-card span {
  display: block;
  margin-top: 12px;
  color: var(--tg-muted);
  font-size: 13px;
}

.tg-news-card h2,
.tg-news-card h3 {
  margin: 7px 0 7px;
  color: var(--tg-primary);
  font-size: 18px;
  line-height: 1.4;
}

.tg-news-card p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 14px;
}

.tg-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px 56px;
  margin-top: 28px;
}

.tg-feature-grid article {
  text-align: center;
}

.tg-feature-icon {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 0 auto 14px;
  border: 1px solid var(--tg-border);
  border-radius: 50%;
  color: var(--tg-primary);
  background: var(--tg-surface);
}

.tg-feature-icon svg {
  width: 58px;
  height: 58px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.tg-feature-grid h3 {
  margin: 0 0 8px;
  color: var(--tg-primary);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}

.tg-feature-grid p {
  margin: 0;
  color: var(--tg-muted);
  font-size: 14px;
}

.tg-page-shell {
  padding: 42px 0 64px;
}

.tg-narrow {
  width: min(100% - 32px, 800px);
  margin: 0 auto;
}

.tg-page-title {
  margin-bottom: 30px;
}

.tg-page-title h1,
.tg-article-head h1 {
  margin: 0 0 12px;
  color: var(--tg-heading);
  font-size: 32px;
  line-height: 1.25;
}

.tg-page-title p,
.tg-article-head p {
  margin: 0;
  max-width: 660px;
  color: var(--tg-muted);
}

.tg-apps-summary {
  padding: 24px 0;
  border-top: 1px solid var(--tg-border);
}

.tg-apps-summary h2,
.tg-source-note h2,
.tg-download-cta h2 {
  margin: 0 0 12px;
  color: var(--tg-heading);
  font-size: 20px;
  line-height: 1.3;
}

.tg-app-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tg-app-link-grid a {
  padding: 12px 14px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius-sm);
  background: var(--tg-surface);
  font-weight: 700;
}

.tg-app-link-grid a:hover,
.tg-app-link-grid a:focus-visible {
  border-color: var(--tg-primary);
}

.tg-download-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  background: var(--tg-surface-soft);
}

.tg-download-cta p,
.tg-source-note p {
  margin: 0;
  color: var(--tg-muted);
}

.tg-source-note {
  padding: 24px 0;
  border-top: 1px solid var(--tg-border);
}

.tg-download-body {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--tg-border);
}

.tg-list-shell {
  width: min(100% - 32px, 860px);
}

.tg-list-title {
  width: min(100%, 680px);
}

.tg-news-grid-list {
  margin-top: 20px;
}

.tg-empty-state {
  grid-column: 1 / -1;
  padding: 32px;
  border: 1px solid var(--tg-border);
  border-radius: var(--tg-radius);
  background: var(--tg-surface-soft);
}

.tg-empty-state h2 {
  margin: 0 0 8px;
}

.tg-empty-state p {
  margin: 0 0 18px;
  color: var(--tg-muted);
}

.tg-article-layout {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 600px);
  column-gap: 48px;
  align-items: start;
  justify-content: center;
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.tg-article-side {
  position: static;
  width: 220px;
}

.tg-article {
  width: 100%;
  max-width: 600px;
  margin: 0;
}

.tg-article-head {
  margin-bottom: 10px;
}

.tg-article-hero {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  margin: 0 0 26px;
  border-radius: var(--tg-radius-sm);
}

.tg-prose {
  color: var(--tg-text);
  font-size: 16px;
  line-height: 1.75;
}

.tg-prose h2,
.tg-prose h3,
.tg-prose h4 {
  margin: 1.8em 0 0.65em;
  color: var(--tg-heading);
  line-height: 1.3;
}

.tg-prose p,
.tg-prose ul,
.tg-prose ol,
.tg-prose blockquote {
  margin: 0 0 1.1em;
}

.tg-prose a {
  font-weight: 700;
}

.tg-prose img {
  width: auto;
  height: auto;
  margin: 18px auto;
  border-radius: var(--tg-radius-sm);
}

.tg-prose blockquote {
  padding: 14px 18px;
  border-left: 3px solid var(--tg-primary);
  background: var(--tg-surface-soft);
  color: var(--tg-muted);
}

.tg-other-news {
  margin-top: 48px;
}

.tg-other-news h2 {
  margin-bottom: 18px;
}

.tg-content-section {
  padding-top: 24px;
}

.tg-footer {
  border-top: 1px solid var(--tg-border);
  background: var(--tg-surface);
}

.tg-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 36px;
  padding: 34px 0;
}

.tg-footer p {
  margin: 12px 0 0;
  color: var(--tg-muted);
}

.tg-footer h2 {
  margin: 0 0 12px;
  color: var(--tg-heading);
  font-size: 15px;
}

.tg-footer a:not(.tg-footer-brand) {
  display: block;
  margin: 7px 0;
  color: var(--tg-muted);
}

.tg-footer a:not(.tg-footer-brand):hover,
.tg-footer a:not(.tg-footer-brand):focus-visible {
  color: var(--tg-primary);
}

@media (max-width: 980px) {
  .tg-side-news,
  .tg-article-side {
    position: static;
    width: min(100%, 600px);
    margin: 0 auto 24px;
  }

  .tg-hero-head {
    min-height: auto;
  }

  .tg-logo-wrap {
    padding-top: 14px;
  }

  .tg-article-layout {
    display: block;
  }

  .tg-article {
    margin: 0 auto;
  }
}

@media (max-width: 760px) {
  .tg-container,
  .tg-narrow,
  .tg-list-shell,
  .tg-article-layout {
    width: min(100% - 24px, 980px);
  }

  .tg-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0 12px;
  }

  .tg-nav-links {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .tg-wordmark {
    font-size: 42px;
  }

  .tg-download-mobile,
  .tg-news-grid,
  .tg-feature-grid,
  .tg-app-link-grid,
  .tg-download-cta,
  .tg-footer-grid {
    grid-template-columns: 1fr;
  }

  .tg-download-device {
    min-height: 270px;
  }

  .tg-device-visual {
    height: 214px;
  }

  .tg-desktop-links {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 230px 16px 18px;
  }

  .tg-feature-grid {
    gap: 28px;
  }

  .tg-feature-icon {
    width: 112px;
    height: 112px;
  }

  .tg-feature-grid h3 {
    font-size: 23px;
  }

  .tg-page-title h1,
  .tg-article-head h1 {
    font-size: 27px;
  }
}
