.news-article {
    color: #333;
}

.article-header {
    margin-bottom: 16px;
}

.meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 20px;
}

.meta-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-btn {
    height: 30px;
    padding: 0 12px;
    border: 1px solid transparent;
    border: none;
    
    border-radius: 6px;
    background: #fff;
    color: #4d525a;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.action-btn:hover {
    color: #2575fc;
    border-color: #cdd6f6;
   background: #fafafa;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.meta .category {
    padding: 4px 12px;
    color: #fff;
    background: linear-gradient(90deg, #2575fc 0%, #b2b8ff 100%);
    /* box-shadow: 0 6px 16px rgba(37, 117, 252, 0.25); */
    border-radius: 4px;
}

.meta .date {
    color: #9aa0a6;
}

.article-title {
    font-size: 28px;
    line-height: 1.25;
    margin: 10px 0 10px;
}

.article-content {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.85;
}

.article-content img {
    max-width: 100%;
    display: block;
    margin: 16px 0;
}

.news-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    box-sizing: border-box;
}

.sidebar-block {
    background: #fff;

 

    /* box-shadow: 0 6px 16px rgba(37, 117, 252, 0.08); */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease;
}

.sidebar-block h3 {
    margin: 0 0 12px;
    font-size: 18px;
    position: relative;
}


.qrcode-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qrcode-box img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fafafa;
    margin-bottom: 8px;
}
.qrcode-box span{
    color: #999;
}
.sidebar-block.qrcode {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}
.sidebar-block.qrcode .qrcode-box {
    flex: 1 1 140px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
    background: #fafafa;
    /* border: 1px solid #eee; */
    border-radius: 8px;
    padding: 8px;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
    position: relative;
}

.related-list li a::after {
    content: '';
    /* width: 16px;
    height: 16px;
    background: url('../img/arrow-right.png') no-repeat center;
    background-size: 16px auto;
    opacity: .6;
    margin-left: auto; */
    width: 0;
  height: 0;
       opacity: .1;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #000;
}

.related-list img {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 4px;
}

.related-list .title {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.products-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-list li {
    position: relative;
}

.related-products .products-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fafafa;
    color: #333;
    transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.related-products .products-list li a::after {
    content: '';
    /* width: 16px;
    height: 16px;
    background: url('../img/arrow-right.png') no-repeat center;
    background-size: 16px auto;

    margin-left: 8px; */
        opacity: .1;
       width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #000;
}
.related-products .products-list li a:hover {
    background: #fafafa;
       box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.products-list a {
    color: #333;
}

@media (max-width: 768px) {
    .news-sidebar {
        position: static;
    }

    .article-title {
        font-size: 28px;
    }
    .sidebar-block.qrcode {
        flex-direction: column;
    }
}

.related-list li a:hover {
    background: #fafafa;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.news-sidebar {
    transition: box-shadow .2s ease, transform .2s ease;
}



.sidebar-block.visible {
    opacity: 1;
    transform: none;
}


.news-sidebar.affix {
    max-height: none;
    overflow: visible;
}

.side-toolbar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    z-index: 1000;
    box-sizing: border-box;
}

.side-toolbar .sidebar-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-toolbar .sidebar-block {
    opacity: 1;
    transform: none;
}

.side-toolbar .action-btn {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.side-toolbar .action-btn:active {
    transform: scale(.96);
}

.share-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-group.open {
    display: flex;
}

.wechat-qr {
    display: none;
    padding: 8px;
    border-radius: 8px;
    background: #fafafa;
}

.wechat-qr img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.side-toolbar .action-btn.is-liked {
    color: #e0245e;
    border-color: #ffc0cb;
    background: #fff0f5;
}

.side-toolbar .action-btn.is-liked .icon-like {
    color: #e0245e;
}

.icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.icon-back {
    background-image: url("../img/back.png");
}

.icon-share {
    background-image: url('../img/arrow-right.png');
}

.icon-like {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect width='50' height='50' rx='12' fill='%23ffffff'/%3E%3Cpath d='M25 36s-9-6.2-12-10.2C10 22.9 11.9 18 16.6 18c2.6 0 4.3 1.5 5.4 3.3C23.1 19.5 24.8 18 27.4 18 32.1 18 34 22.9 32 25.8 29 29.8 25 36 25 36z' fill='%239aa0a6'/%3E%3C/svg%3E");
}
.is-liked .icon-like {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect width='50' height='50' rx='12' fill='%23ffffff'/%3E%3Cpath d='M25 36s-9-6.2-12-10.2C10 22.9 11.9 18 16.6 18c2.6 0 4.3 1.5 5.4 3.3C23.1 19.5 24.8 18 27.4 18 32.1 18 34 22.9 32 25.8 29 29.8 25 36 25 36z' fill='%23e0245e'/%3E%3C/svg%3E");
}

.icon-wechat {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect width='50' height='50' rx='10' fill='%2329b200'/%3E%3Ccircle cx='20' cy='21' r='9' fill='%23fff'/%3E%3Ccircle cx='32' cy='28' r='9' fill='%23fff'/%3E%3Ccircle cx='18' cy='21' r='1.6' fill='%2329b200'/%3E%3Ccircle cx='22' cy='21' r='1.6' fill='%2329b200'/%3E%3Ccircle cx='30' cy='28' r='1.6' fill='%2329b200'/%3E%3Ccircle cx='34' cy='28' r='1.6' fill='%2329b200'/%3E%3C/svg%3E");
}

.icon-weibo {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Crect width='50' height='50' rx='10' fill='%23e6162d'/%3E%3Cellipse cx='25' cy='27' rx='12' ry='9' fill='%23fff'/%3E%3Ccircle cx='25' cy='27' r='3.5' fill='%23e6162d'/%3E%3Cpath d='M31 18c5 0 9 4 9 9' stroke='%23fff' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .side-toolbar {
        position: static;
    }
    .side-toolbar .sidebar-block {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
        gap: 12px;
        justify-items: center;
        align-items: center;
    }
}

.share-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 2000;
    background: rgba(0,0,0,.4);
}

.share-modal[aria-hidden="false"] {
    display: block;
}

.share-modal.closing {
    display: block;
    animation: modalFadeOut .45s ease-in forwards;
}

.share-modal__overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.share-modal__dialog {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, 0);
    width: 300px;
    max-width: 86%;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,.18);
    padding: 20px;
}

.share-modal[aria-hidden="false"] .share-modal__dialog {
    animation: slideUpCenter .5s ease-out forwards;
}

.share-modal.closing .share-modal__dialog {
    animation: slideDownOut .45s ease-in forwards;
}

@keyframes slideUpCenter {
    0% { top: 100%; transform: translate(-50%, 0); opacity: .6; }
    60% { top: 60%; transform: translate(-50%, -30%); opacity: .9; }
    100% { top: 50%; transform: translate(-50%, -50%); opacity: 1; }
}

@keyframes slideDownOut {
    0% { top: 50%; transform: translate(-50%, -50%); opacity: 1; }
    40% { top: 65%; transform: translate(-50%, -35%); opacity: .9; }
    100% { top: 100%; transform: translate(-50%, 0); opacity: 0; }
}

@keyframes modalFadeOut {
    0% { background: rgba(0,0,0,.4); }
    100% { background: rgba(0,0,0,0); }
}

.share-modal__close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: rgba(0,0,0,.06);
    cursor: pointer;
}

.share-modal__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.share-modal__content img {
    width: 240px;
    height: 240px;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
}

.share-tips {
    font-size: 14px;
    color: #4d525a;
}
