﻿/*
Theme Name: Telegram
Theme URI: https://example.com/
Author: Dabolo
Author URI: https://example.com/
Description: A custom WordPress theme for Telegram style.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: telegram
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/
*,:after,:before{box-sizing:border-box}
body{background-color:#fff;color:#333;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.6;margin:0;min-height:100vh;overflow-x:hidden;padding:0}
.site-content{flex:1;position:relative;z-index:1}
/* 如果首页内容较少，取消自动拉伸填满屏幕高度，让页脚自然紧贴内容 */
body.home .site-content, body.front-page .site-content {flex:none}
a{color:#0056b3;text-decoration:none;transition:color .2s}
a:hover{color:#003d82;text-decoration:underline}
img{display:block;height:auto;max-width:100%}
h1,h2,h3,h4,h5,h6{color:#111;line-height:1.2;margin-top:0}
.hq-header{background:#ffffff !important;border-bottom:1px solid #ddd;padding:0;transition:background .3s;height:60px;position:relative;z-index:9999}
.hq-header.sticky{animation:slideDown .3s ease;left:0;position:fixed;top:0;width:100%;z-index:1000}
body.home.has-sticky-header .hq-header{left:0;position:fixed;top:0;width:100%;z-index:999}
body.admin-bar.home.has-sticky-header .hq-header{top:32px}
@media (max-width:782px){body.admin-bar.home.has-sticky-header .hq-header{top:46px}
}
.hq-wrap{justify-content:space-between;margin:0 auto;max-width:1170px;padding:0 15px;height:100%}
.hq-brand,.hq-wrap{align-items:center;display:flex}
.hq-brand{gap:15px}
.hq-link{align-items:center;display:flex;max-width:240px}
.hq-logo{display:block;max-height:50px;width:auto}
.hq-title{font-size:1.5rem;font-weight:700;letter-spacing:1px;margin:0}
.hq-title-link{color:#2d5cf6;text-decoration:none;transition:color .3s}
.hq-title-link:hover{color:#0b45d9}
.hq-nav{align-items:center;display:flex;gap:30px}
.hq-nav-link{color:#3390ec;font-size:17px;font-weight:normal;text-decoration:none;transition:color .3s;position:relative;line-height:60px;display:inline-block}
.hq-nav-link::after{content:'';position:absolute;left:0;bottom:-1px;width:100%;height:3px;background-color:#3390ec;opacity:0;transition:all .3s ease}
.hq-nav-active::after,.hq-nav-link:hover::after{opacity:1}
.hq-nav-active,.hq-nav-link:hover{color:#3390ec;text-decoration:none}
.hq-actions{align-items:center;display:flex;gap:20px;margin-left:auto;}
.hq-action-link{color:#555;font-size:14px;font-weight:normal;text-decoration:none;transition:color .3s}
.hq-action-link:hover{color:#2d5cf6;text-decoration:none}
.site-main{padding:40px 0}
.post-article{background:#fff;border-radius:8px;box-shadow:0 2px 5px rgba(0,0,0,.05);margin-bottom:30px;padding:30px}
.single-article .entry-header,
.page-article .entry-header {
    text-align: center;
    margin-bottom: 30px;
}
.entry-title{font-size:1.8rem;margin-bottom:10px}
.entry-meta{color:#777;font-size:.85rem;margin-bottom:20px}
.entry-meta a{color:#777}
/* 文章详情与页面内容排版 (参照截图优化) */
.entry-content{color:#444;font-size:16px;line-height:1.8;word-wrap:break-word}
.entry-content p{margin:0 0 15px}
.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6{color:#222;font-weight:700;line-height:1.4;margin:30px 0 15px}
.entry-content h1{font-size:24px;border-bottom:1px solid #eee;padding-bottom:10px}
.entry-content h2{background-color:#f2f7ff;border-left:4px solid #2d5cf6;font-size:20px;padding:10px 15px;margin-top:35px}
.entry-content h3{font-size:18px;margin-top:25px}
.entry-content h4{font-size:16px}
.entry-content a{color:#2d5cf6;text-decoration:none;border-bottom:1px solid rgba(45,92,246,0.3);transition:all 0.3s}
.entry-content a:hover{color:#0b45d9;border-bottom-color:#0b45d9}
.entry-content b,.entry-content strong{color:#111;font-weight:700}
.entry-content ol,.entry-content ul{margin:0 0 20px 20px;padding:0;color:#444}
.entry-content li{margin-bottom:8px}
.entry-content blockquote{background:#f4f8ff;border:1px solid #a3c2f9;border-left:4px solid #2d5cf6;color:#2d5cf6;font-style:normal;margin:0 0 20px;padding:15px;border-radius:4px;font-size:15px}
.entry-content hr{border:0;border-top:1px dashed #eaeaea;margin:30px 0}
.entry-content img{border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,0.05);margin-bottom:15px}
.container{margin:0 auto;max-width:1200px;padding:0 20px}
.hq-post-grid{display:grid;gap:25px;margin-bottom:40px}
.hq-grid-cols-2{grid-template-columns:repeat(2,1fr)}
.hq-grid-cols-3{grid-template-columns:repeat(3,1fr)}
.hq-grid-cols-4{grid-template-columns:repeat(4,1fr)}
@media (max-width:992px){.hq-grid-cols-3,.hq-grid-cols-4{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:768px){.hq-grid-cols-2,.hq-grid-cols-3,.hq-grid-cols-4{grid-template-columns:1fr}
}
.hq-post-card{background:#fff;border-radius:12px;box-shadow:0 4px 15px rgba(0,0,0,.05);display:flex;flex-direction:column;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease}
.hq-post-card:hover{box-shadow:0 10px 25px rgba(0,0,0,.1);transform:translateY(-5px)}
.hq-post-thumb{aspect-ratio:16/10;overflow:hidden;width:100%}
.hq-post-thumb img{height:100%;object-fit:cover;transition:transform .5s ease;width:100%}
.hq-post-card:hover .hq-post-thumb img{transform:scale(1.05)}
.hq-post-content{display:flex;flex:1;flex-direction:column;padding:20px}
.hq-post-meta{color:#999;font-size:13px;margin-bottom:12px}
.hq-post-title{font-size:18px;font-weight:700;line-height:1.4;margin:0 0 12px}
.hq-post-title a{color:#333;text-decoration:none;transition:color .3s}
.hq-post-title a:hover{color:#2d5cf6}
.hq-post-excerpt{color:#666;display:-webkit-box;font-size:14px;-webkit-line-clamp:3;line-height:1.6;margin-bottom:0;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.hq-pagination{display:flex;justify-content:center;margin-bottom:30px;margin-top:50px}
.hq-pagination ul{display:flex;gap:8px;list-style:none;margin:0;padding:0}
.hq-pagination li{margin:0}
.hq-pagination a,.hq-pagination span{align-items:center;background:#fff;border:1px solid #eaeaea;border-radius:6px;color:#555;display:flex;font-size:14px;height:40px;justify-content:center;min-width:40px;padding:0 15px;text-decoration:none;transition:all .3s ease}
.hq-pagination a:hover{border-color:#333;color:#333}
.hq-pagination .current{background:#333;border-color:#333;color:#fff;font-weight:700}
.hq-pagination .dots{background:0 0;border:none;color:#999}
.post-thumbnail{text-align:center}
.post-thumbnail img{display:inline-block;height:auto;max-width:100%}
.entry-content img{display:block;height:auto;margin:0 auto;max-width:100%}
.entry-content .wp-block-image,.entry-content figure{display:block;margin-left:auto;margin-right:auto;text-align:center}
.entry-content figure.wp-block-image:not(.alignleft):not(.alignright){display:table;margin-left:auto!important;margin-right:auto!important}
.entry-content .wp-block-image img,.entry-content figure img{margin:0 auto}
.entry-content p:has(>a:only-child>img),.entry-content p:has(>img:only-child){text-align:center}
.entry-content .aligncenter{display:block;margin-left:auto!important;margin-right:auto!important;text-align:center}
.entry-content .alignleft{float:left;margin-bottom:20px;margin-right:20px}
.entry-content .alignright{float:right;margin-bottom:20px;margin-left:20px}
.hq-post-navigation{clear:both;margin-top:40px}
.hq-post-navigation .nav-links{display:flex;gap:15px;justify-content:space-between}
.hq-post-navigation .nav-next,.hq-post-navigation .nav-previous{background:#fff;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.05);flex:1;transition:all .3s ease}
.hq-post-navigation .nav-next:hover,.hq-post-navigation .nav-previous:hover{box-shadow:0 4px 12px rgba(0,0,0,.08);transform:translateY(-2px)}
.hq-post-navigation a{display:block;padding:24px;text-decoration:none}
.hq-post-navigation .nav-wrap{align-items:center;display:flex;justify-content:space-between;width:100%}
.hq-post-navigation .prev-wrap .nav-text{text-align:right}
.hq-post-navigation .next-wrap .nav-text{text-align:left}
.hq-post-navigation .nav-subtitle{color:#b0b0b0;display:block;font-size:14px;margin-bottom:6px}
.hq-post-navigation .nav-title{color:#444;display:block;font-size:16px;line-height:1.4;transition:color .3s ease}
.hq-post-navigation a:hover .nav-title{color:#2d5cf6}
.hq-post-navigation .nav-arrow{align-items:center;color:#555;display:flex;justify-content:center}
.hq-random-posts-wrap{margin-top:40px;padding-top:20px}
.hq-random-posts-title{border-left:4px solid #2d5cf6;color:#333;font-size:20px;line-height:1.2;margin-bottom:20px;padding-left:12px}
.hq-random-post-card .hq-post-title{font-size:16px;margin-bottom:10px}
.hq-breadcrumb{color:#333;font-size:16px;margin-bottom:20px}
.hq-breadcrumb ol{flex-wrap:wrap;list-style:none;margin:0;padding:0}
.hq-breadcrumb li,.hq-breadcrumb ol{align-items:center;display:flex}
.hq-breadcrumb li+li:before{color:#999;content:"/";margin:0 10px}
.hq-breadcrumb a{color:#666;text-decoration:none}
.hq-breadcrumb a:hover{color:#007bff}
.hq-breadcrumb .current{color:#333;font-weight:500}
.hq-archive-header{margin-bottom:40px;text-align:center}
.hq-archive-header .page-title{color:#333;font-size:2.2rem;font-weight:700;margin:0 0 10px}
.hq-archive-header .archive-description{color:#666;font-size:1.1rem;line-height:1.6;margin:0 auto;max-width:800px}
.hq-footer{background:#fff;border-top:1px solid #eaeaea;margin-top:40px}
.hq-footer-top{padding:60px 0}
.hq-footer-columns{display:flex;flex-wrap:wrap;gap:40px}
.hq-footer-col{flex:1;min-width:200px}
.hq-footer-col-1{flex:2;min-width:300px;padding-right:40px}
.hq-footer-logo{margin-bottom:20px}
.hq-footer-logo img{max-height:45px;width:auto}
.hq-footer-title{color:#123;font-size:1.15rem;font-weight:700;margin-bottom:10px}
.hq-footer-desc{color:#777;font-size:.95rem;line-height:1.8}
.hq-footer-col-title{color:#123;font-size:1.15rem;font-weight:700;margin-bottom:25px}
.hq-footer-col-content{color:#666;font-size:.95rem;line-height:1.8}
.hq-footer-col-content p{margin:0 0 15px}
.hq-footer-col-content a{color:#2d5cf6;text-decoration:none;transition:color .3s}
.hq-footer-col-content a:hover{color:#0b45d9;text-decoration:underline}
.hq-footer-bottom{border-top:1px solid #eaeaea;padding:20px 0}
.hq-footer-copyright{color:#888;font-size:.9rem;line-height:1.8}
.hq-footer-copyright p{margin:0 0 5px}
.hq-footer-copyright p:last-child{margin:0}
.hq-footer-copyright a{color:#888}
.hq-footer-copyright a:hover{color:#2d5cf6}
.hq-header .hq-wrap {
    justify-content: space-between;
    max-width: 1170px;
    height: 100%;
}
.hq-header .hq-actions {
    border: none;
    margin: 0;
    padding: 0;
}
.hq-header .hq-action-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #3390ec;
    font-size: 15px;
}
.hq-header .hq-action-link svg {
    flex-shrink: 0;
}
.hq-header .hq-action-link .svg-arrow {
    margin-left: 2px;
}
.hq-header .hq-action-link .svg-twitter {
    font-size: 20px;
}

/* Language Switcher Dropdown */
.hq-lang-switcher {
    position: relative;
    display: inline-block;
}

/* 增加透明桥接层，解决鼠标移动到下拉菜单时消失的问题 */
.hq-lang-switcher::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    display: none;
    z-index: 1; /* 保持在链接下方但足以覆盖间隙 */
}

.hq-lang-switcher:hover::after,
.hq-lang-switcher:focus-within::after {
    display: block;
}

.hq-lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #ffffff !important;
    opacity: 1 !important;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    padding: 20px;
    min-width: 380px;
    z-index: 99999 !important;
    display: none;
    margin-top: 15px;
    animation: hqFadeIn 0.2s ease-out;
}

/* 默认隐藏移动端元素 */
.hq-mobile-handle,
.hq-mobile-title {
    display: none;
}

@keyframes hqFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 使用 pure CSS 控制：hover 时显示，且 focus 时保持显示（兼容点击交互） */
.hq-lang-switcher:hover .hq-lang-dropdown,
.hq-lang-switcher:focus-within .hq-lang-dropdown {
    display: block;
}

.hq-lang-dropdown::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #ffffff !important;
    z-index: 100000 !important;
}

.hq-lang-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hq-lang-item {
    margin: 0;
}

.hq-lang-item a {
    color: #3390ec;
    text-decoration: none;
    font-size: 15px;
    display: block;
    padding: 5px 0;
    transition: color 0.2s;
}

.hq-lang-item a:hover {
    color: #2d5cf6;
}

.hq-lang-item.active a {
    color: #333;
    font-weight: bold;
    cursor: default;
}

@media (max-width: 768px) {
    /* 禁用移动端桥接层 */
    .hq-lang-switcher::after {
        display: none !important;
    }

    .hq-lang-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        min-width: 100%;
        max-height: 80vh; /* 限制最大高度，避免遮挡全部 */
        overflow-y: auto; /* 允许内部滚动 */
        border-radius: 15px 15px 0 0;
        margin-top: 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        padding: 20px;
        padding-bottom: env(safe-area-inset-bottom, 40px); /* 兼容 iOS 底部安全区域 */
        animation: hqMobileSlideUp 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    }

    @keyframes hqMobileSlideUp {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
    
    .hq-lang-dropdown::before {
        display: none;
    }

    /* 移动端标题和手柄 */
    .hq-mobile-handle {
        display: block;
        width: 40px;
        height: 5px;
        background: #eee;
        border-radius: 10px;
        margin: 0 auto 15px;
    }

    .hq-mobile-title {
        display: block;
        font-weight: bold;
        font-size: 18px;
        color: #333;
        text-align: center;
        margin-bottom: 20px;
    }

    /* 移动端网格布局调整 */
    .hq-lang-list {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .hq-lang-item a {
        font-size: 16px;
        padding: 10px 0;
        text-align: center; /* 移动端文字居中显示更自然 */
    }
}

/* Footer Styles */
.tg-footer {
    background-color: #fff;
    padding: 40px 0 40px;
    margin-top: 80px;
    border-top: 1px solid #eee;
}
.tg-footer > .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}
.tg-footer-col-info {
    flex: 0 1 350px;
    margin-right: 80px;
}
.tg-footer-col-info .footer-title {
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
    color: #333;
}
.tg-footer-col-info .footer-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}
.tg-footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    flex: 1;
    justify-content: flex-end;
}
.tg-footer-nav-col {
    min-width: 120px;
}
.tg-footer-nav-col .footer-col-title {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}
.tg-footer-nav-col .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tg-footer-nav-col .footer-links a {
    color: #3390ec;
    font-size: 14px;
    text-decoration: none;
}
.tg-footer-bottom {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.tg-footer-copyright {
    font-size: 13px;
    color: #999;
}

.tg-main-content {
    background-color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #222;
    text-align: center;
    padding-bottom: 50px;
}

.tg-hero-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 80px 15px 40px; /* 增大顶部间距 (从 30px 增至 80px) */
    position: relative;
    text-align: center;
}

.tg-hero {
    display: inline-block;
}
.tg-hero-logo {
    width: 150px;
    height: 150px;
    margin: 0 auto 5px; /* 进一步缩小底部间距 (从 10px 降至 5px) */
    display: block;
}
.tg-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #222;
}
.tg-hero-subtitle {
    font-size: 22px;
    color: #777;
    margin: 0;
}

.tg-devices {
    max-width: 920px; /* 增大容器宽度以适配更大的图片 */
    margin: 120px auto 100px; /* 增大底部间距以保持平衡 */
    padding: 0 15px;
}

.tg-device-group {
    display: flex;
    justify-content: center;
    gap: 60px; /* 增大左右间距 (从 30px 到 60px) */
    margin-bottom: 100px; /* 增大上下间距 (从 60px 到 100px) */
    align-items: flex-end;
}

.tg-device-item {
    text-align: center;
    width: 380px; /* 增大宽度 */
    text-decoration: none;
    display: block;
    position: relative;
}

.tg-image-box {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 25px;
}

.tg-image-box img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* 增大图片最大高度 */
    display: block;
}

.tg-device-link {
    color: #3390ec;
    font-size: 18px; /* 调整为用户要求的 18px */
    font-weight: 400;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    padding-bottom: 8px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    width: auto;
    margin: 0 auto;
    cursor: pointer; /* 显式设置手型 */
}

.tg-device-link strong {
    font-weight: 700;
}

.tg-device-item:hover .tg-device-link {
    border-bottom: 3px solid #3390ec;
}

.tg-link-icon {
    width: 32px; /* 增大图标尺寸 */
    height: 32px;
    vertical-align: middle;
    margin-top: -4px;
    margin-right: 2px; /* 缩小与文字之间的间距 */
    display: inline-block;
}

/* 桌面端特殊排版 */
.tg-desktop-wrapper {
    width: 100%;
    max-width: 680px; /* 增大桌面端图片尺寸 */
    margin: 0 auto;
    position: relative;
}

.tg-desktop-main-img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
}

.tg-desktop-area {
    position: absolute;
    top: 0;
    height: calc(100% - 60px); /* 同步调整点击区域高度 */
    width: 50%;
    z-index: 5;
    text-decoration: none;
    cursor: pointer; /* 手型 */
}

.tg-desktop-area.left-area {
    left: 0;
}

.tg-desktop-area.right-area {
    left: 50%;
}

.tg-desktop-links {
    display: flex;
    justify-content: center;
    gap: 100px; /* 增加两个链接之间的间距 */
    position: relative;
    z-index: 1;
}

.tg-desktop-text-link {
    text-decoration: none;
    width: auto;
    cursor: pointer; /* 手型 */
}

/* 悬停联动逻辑 */
.tg-desktop-area.left-area:hover ~ .tg-desktop-links .pc-link .tg-device-link,
.tg-desktop-text-link.pc-link:hover .tg-device-link {
    border-bottom: 3px solid #3390ec;
}

.tg-desktop-area.right-area:hover ~ .tg-desktop-links .mac-link .tg-device-link,
.tg-desktop-text-link.mac-link:hover .tg-device-link {
    border-bottom: 3px solid #3390ec;
}

.tg-news-sidebar {
    width: 280px;
    padding-left: 15px;
    text-align: left;
    position: absolute;
    right: 15px;
    top: 80px; /* 同步调整顶部位置，保持与 Hero 区域对齐 (从 30px 增至 80px) */
}

.tg-news-sidebar::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #3390ec;
    border-radius: 2px; /* 线条两端改为弧形 */
}

.tg-news-sidebar h2 {
    color: #3390ec;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    margin-top: 0;
}

.tg-news-item {
    margin-bottom: 15px;
}

.tg-news-date {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    color: #000;
}

.tg-news-link {
    color: #3390ec;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 限制标题最多显示 2 行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tg-news-link:hover {
    text-decoration: underline; /* 鼠标移动到链接文字要有下划线 */
}

.tg-no-news {
    font-size: 14px;
    color: #777;
}

.tg-features-section {
    max-width: 1200px;
    margin: 150px auto 0; /* 减小与上方设备区域的间距 (从 250px 降至 150px) */
    padding: 0 20px;
}
.tg-features-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 50px; /* 减小标题下方间距 (从 80px 降至 50px) */
}
.tg-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px 60px; /* 减小网格间距 (从 80px 降至 60px) */
}
.tg-feature {
    text-align: center;
}
.tg-feature img {
    width: 140px; /* 增大图标尺寸 (从 120px 增至 140px) */
    height: 140px;
    margin: 0 auto 15px;
}
.tg-feature h3 {
    font-size: 18px;
    color: #3390ec;
    margin: 0 0 10px;
    font-weight: 600;
}
.tg-feature p {
    font-size: 15px;
    color: #000;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 768px) {
    /* Header optimization */
    .hq-header {
        height: auto !important;
        padding: 20px 0 !important;
    }
    .hq-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        height: auto;
        padding: 0 15px;
    }
    .hq-brand {
        margin-bottom: 5px;
    }
    .hq-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        line-height: 1.2;
    }
    .hq-nav-link {
        line-height: 2; /* 增大行高增加点击区域 */
        font-size: 16px;
        padding: 5px 10px;
        display: inline-block;
    }
    .hq-actions {
        justify-content: center;
        width: 100%;
        margin: 0;
        padding-top: 15px;
        border-top: 1px solid #eee;
        gap: 30px; /* 增大动作按钮间距 */
    }
    .hq-action-link {
        padding: 10px; /* 增加点击区域 */
        font-size: 16px !important;
    }
    
    /* Hero section optimization */
    .tg-hero-wrapper {
        padding: 60px 15px 40px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .tg-hero {
        margin-bottom: 40px;
        display: block !important;
        text-align: center;
        width: 100%;
    }
    .tg-hero-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto 20px !important;
    }
    .tg-hero-title {
        font-size: 32px;
        margin-bottom: 10px;
    }
    .tg-hero-subtitle {
        font-size: 18px;
        padding: 0 20px;
    }
    
    /* News sidebar optimization */
    .tg-news-sidebar {
        width: 100% !important;
        border-left: none !important;
        padding: 25px 15px !important; /* 增加内边距 */
        border-top: 4px solid #3390ec !important;
        text-align: center !important;
        position: static !important;
        margin-top: 20px;
        background: #f9f9f9; /* 轻微背景区分 */
        border-radius: 8px;
    }
    .tg-news-sidebar::before {
        display: none;
    }
    .tg-news-sidebar h2 {
        text-align: center;
        font-size: 18px;
        margin-bottom: 20px;
    }
    .tg-news-item {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .tg-news-item:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    .tg-news-link {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Device links optimization */
    .tg-devices {
        margin: 50px auto 30px;
    }
    .tg-device-group {
        flex-direction: column;
        align-items: center;
        gap: 50px;
        margin-bottom: 50px;
    }
    .tg-device-item {
        width: 100%;
        max-width: 320px;
    }
    .tg-image-box {
        height: auto;
        margin-bottom: 20px;
    }
    .tg-image-box img {
        max-height: 260px;
    }
    .tg-device-link {
        font-size: 17px;
        padding: 12px 20px;
        background: #f0f7ff;
        border-radius: 30px;
        width: 100%;
        border-bottom: none !important;
    }
    .tg-device-item:hover .tg-device-link {
        background: #e1efff;
    }
    
    /* Show and optimize desktop download links on mobile */
    .desktop-group {
        display: block !important;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    .tg-desktop-wrapper {
        position: relative;
        width: 100%;
    }
    .tg-desktop-main-img {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    .tg-desktop-area {
        display: none !important; /* Hide absolute hover areas on mobile */
    }
    .tg-desktop-links {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .tg-desktop-text-link {
        width: 100%;
    }
    
    /* Features grid optimization */
    .tg-features-section {
        margin-top: 60px;
        padding: 0 15px;
    }
    .tg-features-title {
        font-size: 26px;
        margin-bottom: 40px;
    }
    .tg-features-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .tg-feature {
        padding: 20px;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    }
    .tg-feature img {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    .tg-feature h3 {
        font-size: 20px;
    }
    .tg-feature p {
        font-size: 16px;
    }
    
    /* Footer optimization */
    .tg-footer {
        margin-top: 50px;
        padding: 50px 0 30px;
    }
    .tg-footer > .container {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        text-align: center;
        padding: 0 20px;
    }
    .tg-footer-col-info {
        flex: 1 1 100%;
        margin-right: 0;
        max-width: 100%;
    }
    .tg-footer-nav {
        justify-content: center;
        width: 100%;
        gap: 40px 20px;
        flex-wrap: wrap;
    }
    .tg-footer-nav-col {
        min-width: 140px;
        flex: 1 1 40%;
    }
    .tg-footer-nav-col .footer-links {
        gap: 15px; /* 增大页脚链接间距 */
    }
    .tg-footer-nav-col .footer-links a {
        padding: 8px 0;
        font-size: 15px;
    }
    .tg-footer-bottom {
        margin-top: 40px;
        padding: 20px 0;
        text-align: center;
    }
    .tg-footer-copyright {
        text-align: center !important;
        font-size: 14px;
        line-height: 1.6;
    }

    /* Single post and Page optimization */
    .site-main {
        padding: 20px 0;
    }
    .post-article {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    .entry-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .entry-meta {
        font-size: 13px;
        flex-wrap: wrap;
        display: flex;
        gap: 5px;
        line-height: 1.4;
    }
    .entry-meta span {
        margin: 0 !important;
    }
    .entry-meta span:not(:last-child)::after {
        content: "|";
        margin-left: 5px;
        color: #ccc;
    }
    .entry-content {
        font-size: 16px;
    }
    .entry-content h2 {
        font-size: 18px;
        padding: 8px 12px;
    }
    .hq-post-navigation .nav-links {
        flex-direction: column;
        gap: 15px;
    }
    .hq-post-navigation a {
        padding: 15px;
    }
    .hq-post-navigation .nav-title {
        font-size: 14px;
    }

    /* Archive and Search optimization */
    .hq-archive-header {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .hq-archive-header .page-title {
        font-size: 24px;
    }
    .hq-post-card {
        margin-bottom: 10px;
    }
    .hq-post-content {
        padding: 15px;
    }
    .hq-post-title {
        font-size: 16px;
    }
    .hq-pagination ul {
        gap: 5px;
    }
    .hq-pagination a, .hq-pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 10px;
        font-size: 13px;
    }
}
