/* TelegramTLG original-site style restoration — readable, unminified */
* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    color: #333333;
    background: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #168acd;
    text-decoration: none;
}

a:hover {
    color: #0d6fa6;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

code,
pre {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

pre {
    overflow: auto;
    padding: 14px 16px;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
    background: #f8f8f8;
    line-height: 1.6;
}

code {
    padding: 2px 4px;
    border-radius: 3px;
    background: #f4f4f4;
}

pre code {
    padding: 0;
    background: transparent;
}

.site-topbar {
    min-height: 50px;
    border-bottom: 1px solid #e8e8e8;
    background: #ffffff;
}

.site-topbar-inner {
    width: 960px;
    max-width: calc(100% - 30px);
    min-height: 50px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
}

.site-nav,
.site-social {
    display: flex;
    align-items: stretch;
}

.site-topbar a {
    min-height: 50px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    color: #168acd;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    white-space: nowrap;
}

.site-topbar a:hover {
    background: #fafafa;
    text-decoration: none;
}

.site-topbar a.active {
    border-bottom-color: #168acd;
}

.twitter-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    border-radius: 50%;
    display: inline-block;
    background: #1da1f2;
}

.page-shell {
    width: 960px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
}

.standard-main {
    padding: 42px 0 54px;
}

.content-narrow {
    width: 760px;
    max-width: 100%;
    margin: 0 auto;
}

.post-layout {
    display: grid;
    grid-template-columns: minmax(0, 650px) 235px;
    gap: 48px;
    align-items: start;
}

.post-title {
    margin: 0 0 7px;
    color: #333333;
    font-size: 27px;
    line-height: 1.28;
    font-weight: 400;
}

.post-date,
.archive-date {
    color: #999999;
    font-size: 12px;
}

.post-rating {
    margin: 12px 0 20px;
    color: #777777;
    font-size: 12px;
}

.post-content {
    color: #444444;
    font-size: 15px;
    line-height: 1.78;
}

.post-content > :first-child {
    margin-top: 0;
}

.post-content p {
    margin: 0 0 18px;
}

.post-content ul,
.post-content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.post-content li {
    margin: 5px 0;
}

.post-content h2 {
    margin: 34px 0 14px;
    color: #333333;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 400;
}

.post-content h3 {
    margin: 28px 0 12px;
    color: #444444;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
}

.post-content h4 {
    margin: 23px 0 10px;
    color: #444444;
    font-size: 16px;
    font-weight: 600;
}

.post-content .lead {
    margin-bottom: 20px;
    color: #555555;
    font-size: 16px;
    line-height: 1.7;
}

.post-content .cover,
.post-content > img {
    display: block;
    max-height: 580px;
    margin: 21px auto 25px;
    object-fit: contain;
}

.post-content blockquote,
.faq-intro {
    margin: 20px 0;
    padding: 3px 0 3px 18px;
    border-left: 5px solid #2ca5e0;
    color: #666666;
    font-size: 15px;
}

.post-content .tip {
    margin: 24px 0;
    padding: 15px 18px;
    border-left: 4px solid #2ca5e0;
    background: #f5fafe;
}

.toc-box {
    margin: 20px 0 28px;
    border: 1px solid #e5e5e5;
    background: #fbfbfb;
}

.toc-title {
    padding: 11px 14px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 600;
}

.toc-title span {
    margin-left: 8px;
    color: #999999;
    font-weight: 400;
}

.toc-list {
    margin: 0;
    padding: 11px 18px 11px 34px;
}

.toc-list li {
    margin: 4px 0;
}

.recent-sidebar {
    margin-top: 6px;
}

.recent-sidebar h2,
.recent-bottom h2 {
    margin: 0 0 16px;
    color: #168acd;
    font-size: 18px;
    font-weight: 400;
}

.recent-side-item {
    display: block;
    margin-bottom: 16px;
}

.recent-side-date {
    display: block;
    margin-bottom: 2px;
    color: #999999;
    font-size: 12px;
}

.recent-side-title {
    color: #168acd;
    font-size: 14px;
    line-height: 1.35;
}

.recent-bottom {
    width: 650px;
    max-width: 100%;
    margin-top: 42px;
    padding-top: 22px;
    border-top: 1px solid #eeeeee;
}

.recent-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.recent-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 13px;
    color: #444444;
}

.recent-card:hover {
    text-decoration: none;
}

.recent-card img {
    width: 104px;
    height: 78px;
    border-radius: 2px;
    object-fit: cover;
    background: #f2f2f2;
}

.recent-card h3 {
    margin: 0 0 5px;
    color: #168acd;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 400;
}

.recent-card p {
    margin: 0 0 5px;
    color: #777777;
    font-size: 12px;
    line-height: 1.45;
}

.recent-card time {
    color: #aaaaaa;
    font-size: 11px;
}

.archive-wrap {
    width: 750px;
    max-width: 100%;
    margin: 0 auto;
}

.archive-title {
    margin: 0 0 28px;
    color: #333333;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 400;
}

.archive-item {
    margin: 0 0 28px;
    padding: 0 0 28px;
    border-bottom: 1px solid #eeeeee;
}

.archive-item h2,
.archive-item h3 {
    margin: 0 0 7px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 400;
}

.archive-item p {
    margin: 0 0 7px;
    color: #777777;
    font-size: 14px;
    line-height: 1.55;
}

.archive-item time {
    color: #aaaaaa;
    font-size: 12px;
}

.pagination {
    margin: 30px 0 5px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    min-width: 32px;
    padding: 6px 10px;
    border: 1px solid #dddddd;
    text-align: center;
    color: #168acd;
}

.pagination .current {
    border-color: #168acd;
    background: #168acd;
    color: #ffffff;
}

.download-detail {
    min-height: 480px;
    display: grid;
    grid-template-columns: 470px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.download-visual {
    text-align: center;
}

.download-visual img {
    max-height: 420px;
    object-fit: contain;
}

.download-copy h1 {
    margin: 0 0 16px;
    color: #333333;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 300;
}

.download-copy p {
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
}

.download-button {
    display: inline-block;
    margin: 8px 0 14px;
    padding: 10px 19px;
    border-radius: 3px;
    background: #2ca5e0;
    color: #ffffff;
    font-size: 15px;
}

.download-button:hover {
    background: #168acd;
    color: #ffffff;
    text-decoration: none;
}

.apps-page h1,
.faq-page h1,
.standard-page h1 {
    margin: 0 0 18px;
    color: #333333;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 300;
}

.apps-page h2,
.faq-page h2,
.standard-page h2 {
    margin: 34px 0 14px;
    font-size: 22px;
    font-weight: 400;
}

.apps-page h3,
.faq-page h3,
.standard-page h3 {
    margin: 27px 0 11px;
    font-size: 18px;
    font-weight: 500;
}

.apps-page p,
.apps-page li,
.faq-page p,
.faq-page li,
.standard-page p,
.standard-page li {
    font-size: 15px;
    line-height: 1.72;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 15px 0 34px;
}

.app-link-card {
    min-height: 150px;
    padding: 18px;
    border: 1px solid #e6e6e6;
    text-align: center;
}

.app-link-card img {
    max-height: 100px;
    margin-bottom: 10px;
}

.app-link-card strong {
    display: block;
    color: #168acd;
    font-size: 16px;
    font-weight: 400;
}

.faq-index {
    margin: 25px 0 38px;
    padding: 0;
    list-style: none;
    columns: 2;
    column-gap: 44px;
}

.faq-index li {
    margin: 5px 0;
    break-inside: avoid;
}

.faq-group {
    margin-top: 36px;
}

.faq-group > h2 {
    margin-bottom: 14px;
}

.faq-question {
    padding: 16px 0 4px;
    border-top: 1px solid #eeeeee;
}

.faq-question h3 {
    margin-top: 0;
    color: #333333;
    font-size: 17px;
}

.site-footer {
    margin-top: 18px;
    padding: 34px 0 40px;
    border-top: 1px solid #e8e8e8;
    background: #ffffff;
}

.site-footer-inner {
    width: 960px;
    max-width: calc(100% - 30px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.25fr 1fr;
    gap: 36px;
}

.site-footer h3 {
    margin: 0 0 10px;
    color: #555555;
    font-size: 15px;
    font-weight: 500;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: #777777;
    font-size: 12px;
    line-height: 1.65;
}

.site-footer a:hover {
    color: #168acd;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 3px 0;
}

.notfound-box {
    padding: 80px 0 100px;
    text-align: center;
}

.notfound-box h1 {
    margin: 0 0 14px;
    color: #333333;
    font-size: 56px;
    font-weight: 300;
}

.notfound-box p {
    color: #777777;
    font-size: 16px;
}

@media (max-width: 850px) {
    .post-layout,
    .download-detail {
        grid-template-columns: 1fr;
    }

    .recent-sidebar {
        padding-top: 24px;
        border-top: 1px solid #eeeeee;
    }

    .download-detail {
        min-height: 0;
        gap: 25px;
    }

    .download-visual img {
        max-height: 330px;
    }

    .site-footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .site-topbar-inner {
        max-width: 100%;
        overflow-x: auto;
    }

    .site-topbar a {
        padding: 0 12px;
    }

    .site-social {
        display: none;
    }

    .standard-main {
        padding-top: 28px;
    }

    .post-title,
    .apps-page h1,
    .faq-page h1,
    .standard-page h1,
    .download-copy h1 {
        font-size: 25px;
    }

    .recent-bottom-grid,
    .app-grid,
    .site-footer-inner {
        grid-template-columns: 1fr;
    }

    .faq-index {
        columns: 1;
    }

    .recent-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .recent-card img {
        width: 90px;
        height: 68px;
    }
}
