
:root {
  --tg-blue: #2481cc;
  --tg-blue-hover: #1a6bab;
  --tg-text: #222;
  --tg-muted: #8c8c8c;
  --tg-border: #e8e8e8;
  --tg-bg: #fff;
  --tg-max: 1100px;
  --mobile-gutter: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--tg-text);
  background: var(--tg-bg);
}

a {
  color: var(--tg-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--tg-max);
  margin: 0 auto;
  padding: 0 24px;
}


.topbar {
  border-bottom: 1px solid var(--tg-border);
  background: #fff;
}

.topbar-search {
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--tg-border);
}

.scout-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-bottom: 12px;
}

.scout-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scout-category {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--tg-muted);
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  font: inherit;
  line-height: inherit;
}


.pc-soft404 {
  max-width: 640px;
  margin: 12vh auto 0;
  padding: 24px 20px;
  text-align: center;
  color: var(--tg-text, #222);
  -webkit-user-select: none;
  user-select: none;
}

.pc-soft404-code {
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  color: var(--tg-muted, #999);
}

.pc-soft404-title {
  margin: 16px 0 8px;
  font-size: 28px;
  font-weight: 600;
}

.pc-soft404-msg {
  margin: 0 0 20px;
  color: var(--tg-muted, #666);
}

.pc-soft404-kw,
.pc-soft404-des {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.pc-soft404-des {
  color: var(--tg-muted, #666);
}

.scout-category:hover {
  color: var(--tg-blue);
  text-decoration: none;
}

.scout-category.scout-selected {
  color: #fff;
  background: var(--tg-blue);
  border-color: var(--tg-blue);
}

.scout-form {
  display: flex;
  flex: 1;
  min-width: 200px;
  max-width: 420px;
  gap: 8px;
}

.scout-query {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--tg-border);
  border-radius: 4px;
  font-size: 14px;
}

.scout-button {
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 4px;
  background: var(--tg-blue);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.scout-button:hover {
  background: var(--tg-blue-hover);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.nav-main {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  display: block;
  padding: 16px 0;
  color: var(--tg-blue);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.nav-main a:hover {
  text-decoration: none;
}

.nav-main a.is-active {
  border-bottom-color: var(--tg-blue);
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.lang-btn,
.x-link {
  color: var(--tg-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.lang-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.x-link img {
  width: 16px;
  height: 16px;
}

body.home-page {
  background: #fff;
}


.hero-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 16px;
}

.hero-brand {
  flex: 1 1 280px;
  text-align: center;
}

.hero-logo {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto;
}

.hero-index-title {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
}

.hero-tagline {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.48;
  max-width: 285px;
  margin: 12px auto 0;
  color: #4d4d4d;
}

.hero-tagline strong {
  font-weight: 600;
}

.news-box {
  flex: 0 1 260px;
  max-width: 100%;
  padding: 5px 0 5px 20px;
  border-left: 2px solid var(--tg-blue);
}

.news-box h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 15px;
}

.news-box h2 a {
  color: #0088cc;
  text-decoration: none;
}

.news-box h2 a:hover {
  text-decoration: underline;
}

.news-item {
  margin-bottom: 10px;
}

.news-item time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #000;
  margin-bottom: 2px;
}

.news-item p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.news-item p a {
  color: #0088cc;
  text-decoration: none;
}

.news-item p a:hover {
  text-decoration: underline;
}


.dl-section {
  padding: 8px 0 12px;
}

.dl-block {
  max-width: 1028px;
  margin: 0 auto;
  text-align: center;
}

.dl-mobile {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.dl-link {
  position: relative;
  display: inline-block;
  text-align: center;
  color: var(--tg-blue);
  font-size: 15px;
  text-decoration: none;
}

.dl-link:hover {
  text-decoration: none;
}

.dl-link--android,
.dl-link--ios {
  height: 300px;
  padding-top: 262px;
  padding-bottom: 20px;
  margin: 40px 0;
  max-width: 100%;
}

.dl-link--android {
  width: 28%;
  min-width: 245px;
}

.dl-link--ios {
  width: 43%;
  min-width: 350px;
}

.dl-link--android::after,
.dl-link--ios::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -1px;
  height: 3px;
  border-radius: 2px;
  background: #179cde;
  opacity: 0;
  transform: scaleX(0.3) scaleY(0);
  transform-origin: bottom;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dl-link--android:hover::after,
.dl-link--ios:hover::after {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

.dl-icon {
  display: inline-block;
  vertical-align: text-top;
  width: 25px;
  height: 27px;
  margin-right: 8px;
  margin-top: -4px;
}

.dl-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  pointer-events: none;
  background: center top / contain no-repeat;
}

.dl-preview--android {
  width: 304px;
  height: 240px;
  margin: -150px 0 0 -152px;
  background-image: url("../img/download/SiteAndroid.webp");
}

.dl-preview--ios {
  width: 304px;
  height: 240px;
  margin: -150px 0 0 -152px;
  background-image: url("../img/download/SiteiOS.webp");
}

.dl-extra {
  margin-top: 4px;
}

.dl-link--desktop {
  display: block;
  margin: 0 0 12px;
}

.dl-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--tg-blue);
  text-decoration: none;
}

.dl-more:hover {
  text-decoration: underline;
}

.dl-more-arrow {
  display: block;
  width: 6px;
  height: 11px;
}


.recent-news {
  padding: 12px 0 28px;
}

.recent-news-heading {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin: 42px 0 8px;
}

.recent-news-heading a {
  color: #0088cc;
  text-decoration: none;
}

.recent-news-heading a:hover {
  text-decoration: underline;
}

.recent-news-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -10px;
}

.news-card {
  display: block;
  flex: 1 1 100%;
  max-width: 100%;
  padding: 15px 10px;
  color: inherit;
  text-decoration: none;
}

.news-card:hover {
  text-decoration: none;
}

.news-card-image {
  display: block;
  width: calc(100% - 30px);
  max-width: 520px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}

.news-card:hover .news-card-image {
  opacity: 0.9;
}

.news-card-title {
  margin: 12px 0 2px;
  padding: 0 15px;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  color: #0088cc;
}

.news-card:hover .news-card-title {
  text-decoration: underline;
}

.news-card-lead {
  margin: 0;
  padding: 0 15px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

.news-card-date {
  display: block;
  margin-top: 4px;
  padding: 0 15px;
  font-size: 14px;
  color: #888;
}

@media (min-width: 641px) {
  .news-card {
    flex: 1 1 50%;
    max-width: 50%;
  }
}


.features {
  padding: 20px 0 72px;
}

.features h2 {
  text-align: center;
  font-size: 28px;
  font-weight: 300;
  margin: 0 0 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
  max-width: 950px;
  margin: 0 auto;
}

.feature-sticker {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 15px;
}

.feature-icon {
  display: block;
  width: 160px;
  height: 160px;
  margin: 0 auto 15px;
  object-fit: contain;
}

.feature-sticker .feature-icon {
  margin-bottom: 0;
}

.feature-sticker canvas {
  display: block;
  width: 160px !important;
  height: 160px !important;
  margin: 0 auto;
}

.feature-card {
  text-align: center;
  max-width: 260px;
  margin: 0 auto;
  padding: 20px 0 9px;
}

.feature-card h3 {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.5px;
  margin: 0 0 6px;
  color: #0088cc;
}

.feature-card p {
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.58;
}


.page-head {
  padding-top: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tg-border);
}

.page-head h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 300;
}

.page-body {
  padding-top: 32px;
  padding-bottom: 64px;
  max-width: 720px;
}

.page-body h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.page-body h2:first-child {
  margin-top: 0;
}

.page-body p,
.page-body li {
  font-size: 16px;
  line-height: 1.65;
  color: #333;
}

.page-body ul {
  padding-left: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.app-card {
  border: 1px solid var(--tg-border);
  border-radius: 8px;
  padding: 20px;
}

.app-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.app-card p {
  margin: 0 0 12px;
  color: #555;
}

.api-block {
  background: #f7f9fb;
  border-radius: 8px;
  padding: 20px;
  margin: 16px 0;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
  overflow-x: auto;
}


.hottag {
  max-width: var(--tg-max);
  margin: 0 auto;
  padding: 24px 24px 8px;
}

.hottag-title h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--tg-text);
}

.hottagmain {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.hottagmain a {
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--tg-blue);
  background: #f3f7fb;
  border-radius: 4px;
  text-decoration: none;
}

.hottagmain a:hover {
  background: #e5eff8;
  text-decoration: none;
}


.site-footer {
  border-top: 1px solid var(--tg-border);
  padding: 28px 0 48px;
  background: #fafafa;
}

.footer-d3 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 8px 0 20px;
}

.footer-d3-link {
  margin: 4px 6px;
  color: #8a8a8a;
  font-size: 13px;
}

.footer-d3-link:hover {
  color: var(--tg-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 24px;
}

.footer-grid h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  font-size: 14px;
  color: var(--tg-blue);
}

.footer-about p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

.footer-meta {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--tg-border);
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--tg-muted);
}

.footer-copy a {
  color: var(--tg-muted);
}

@media (max-width: 900px) {
  .wrap {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .topbar-search {
    padding: 10px var(--mobile-gutter) 0;
  }

  .topbar-inner.wrap {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .scout-box {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .scout-form {
    max-width: none;
    width: 100%;
  }

  .scout-category {
    padding: 3px 8px;
    font-size: 12px;
  }

  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-bottom: 8px;
  }

  .topbar-inner nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-main {
    gap: 20px;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
  }

  .nav-main a {
    padding: 12px 0;
    font-size: 14px;
    white-space: nowrap;
  }

  .topbar-right {
    gap: 16px;
    font-size: 13px;
    flex-wrap: wrap;
    padding-bottom: 4px;
  }

  .page-head {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .page-head h1 {
    font-size: 26px;
    line-height: 1.3;
    word-break: break-word;
  }

  .page-body {
    max-width: 100%;
    padding-top: 24px;
    padding-bottom: 48px;
    overflow-wrap: anywhere;
  }

  .page-body h2 {
    font-size: 20px;
    word-break: break-word;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .hero-head {
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    padding-bottom: 8px;
  }

  .hero-brand {
    width: 100%;
  }

  .hero-tagline {
    font-size: 16px;
    max-width: 224px;
  }

  .news-box {
    width: 100%;
    flex: 1 1 auto;
    border-left: none;
    border-top: 2px solid var(--tg-blue);
    padding-top: 16px;
    margin-top: 8px;
    align-self: stretch;
  }

  .dl-link--android,
  .dl-link--ios {
    height: auto;
    padding-top: 220px;
    margin: 20px 0;
    min-width: 0;
    width: 48%;
  }

  .dl-preview--android,
  .dl-preview--ios {
    width: 205px;
    height: 162px;
    margin: -118px 0 0 -102px;
    background-size: contain;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-sticker,
  .feature-icon {
    width: 140px;
    height: 140px;
  }

  .feature-sticker canvas {
    width: 140px !important;
    height: 140px !important;
  }

  .feature-card h3 {
    font-size: 22px;
  }

  .recent-news-heading {
    margin-top: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hottag {
    padding: 20px var(--mobile-gutter) 8px;
  }

  .site-footer .wrap {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }
}

@media (max-width: 480px) {
  :root {
    --mobile-gutter: 28px;
  }

  .dl-link--android,
  .dl-link--ios {
    width: 100%;
    padding-top: 200px;
  }

  .dl-link--desktop {
    display: none;
  }

  .dl-preview--android {
    width: 196px;
    height: 183px;
    margin: -109px 0 0 -98px;
  }

  .dl-preview--ios {
    width: 206px;
    height: 165px;
    margin: -104px 0 0 -103px;
  }

  .x-link {
    font-size: 0;
    gap: 0;
  }

  .x-link img {
    width: 18px;
    height: 18px;
  }

  .lang-btn {
    font-size: 13px;
  }

  .scout-button {
    padding: 0 10px;
    font-size: 13px;
  }
}


.tg-tag-panel {
  margin: 24px auto 32px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tg-tag-panel h1 {
  font-size: 22px;
  margin: 0 0 12px;
  line-height: 1.35;
}

.tg-tag-panel p {
  font-size: 15px;
  line-height: 1.75;
  color: #333;
  margin: 0 0 16px;
}

.tg-tag-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-tag-actions .tg-tag-dl {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--tg-blue);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.tg-tag-actions .tg-tag-dl:hover {
  opacity: 0.92;
}

.tg-tag-actions .tg-tag-home {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #d0d7de;
  color: var(--tg-blue);
  font-weight: 600;
  text-decoration: none;
}

.tg-tag-actions .tg-tag-home:hover {
  background: #f6f8fa;
}
