* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none
}

a {
    color: #303030
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px
}

::-webkit-scrollbar-track {
    background: 0 0
}

::-webkit-scrollbar-thumb {
    background-color: rgba(155,155,155,.5);
    border-radius: 4px
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(155,155,155,.7)
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6
}

.container {
    max-width: 1400px;
    margin: 0 auto
}
.load-more-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.load-more-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.load-more-btn.loading {
    background-color: #cccccc;
    cursor: not-allowed;
    position: relative;
}

.load-more-btn.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.site-header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    border-bottom: 1px solid var(--border-color)
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    height: 70px;
    position: relative
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    transition: transform .3s
}

.logo:hover {
    transform: scale(1.05)
}

.logo img {
    height: 48px
}

.logo i {
    margin-right: .5rem;
    color: #2563eb
}

.main-nav {
    display: flex;
    align-items: center
}

.nav-list {
    display: flex;
    list-style: none
}

.nav-item {
    position: relative;
    margin: 0 .5rem
}

.nav-link {
    display: flex;
    align-items: center;
    padding: .8rem 1rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all .3s;
    border-radius: 0
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: #2563eb
}

.nav-link.active {
    background-color: #f1f5f9;
    color: #2563eb
}

.nav-link i {
    margin-left: .5rem;
    font-size: .8rem;
    transition: transform .3s
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg)
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    border: 1px solid var(--border-color);
    z-index: 100
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.dropdown-item {
    display: block;
    padding: .8rem 20px;
    color: #64748b;
    text-decoration: none;
    transition: all .3s;
    border-left: 3px solid transparent
}

.dropdown-item:hover {
    color: #2563eb;
    background-color: #f1f5f9;
    border-left-color: #2563eb
}

.dropdown-item i {
    margin-right: .8rem;
    width: 1rem;
    text-align: center
}

.search-box {
    flex: 0 1 400px;
    margin: 0 20px;
    position: relative
}

.search-input {
    width: 100%;
    padding: .7rem 1rem .7rem 2.5rem;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    color: #1e293b;
    font-size: .95rem;
    border-radius: 0;
    transition: all .3s
}

.search-input:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37,99,235,.2)
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b
}

.user-area {
    display: flex;
    align-items: center
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform .3s;
    border: 2px solid transparent
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: #2563eb
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 2rem;
    background-color: #fff;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    border: 1px solid var(--border-color);
    z-index: 100
}

.user-area:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0)
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: .8rem 20px;
    color: #64748b;
    text-decoration: none;
    transition: all .3s
}

.user-dropdown-item:hover {
    color: #2563eb;
    background-color: #f1f5f9
}

.user-dropdown-item i {
    margin-right: .8rem;
    width: 1rem;
    text-align: center
}

.divider {
    height: 1px;
    background-color: var(--border-color);
    margin: .5rem 0
}

.mobile-menu-btn {
    display: none;
    font-size: 20px;
    cursor: pointer;
    color: #1e293b;
    transition: color .3s;
    z-index: 1001;
    border: 1px solid rgb(0 122 255 / 15%);
    color: #667eea;
    background-color: #e4f3ff;
    width: 38px;
    height: 38px;
    border-radius: 6px
}

.mobile-menu-btn:hover {
    color: #2563eb
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    z-index: 1002;
    transition: transform .3s;
    box-shadow: 2px 0 10px rgba(0,0,0,.1);
    overflow-y: auto;
    padding-top: 70px
}

.mobile-menu.active {
    transform: translateX(280px)
}

.mobile-nav-list {
    list-style: none;
    padding: 1rem 0
}

.mobile-nav-item {
    position: relative
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    transition: all .3s
}

.mobile-nav-link:hover {
    background-color: #f1f5f9;
    color: #2563eb
}

.mobile-nav-link i {
    transition: transform .3s
}

.mobile-nav-item.active .mobile-nav-link i {
    transform: rotate(180deg)
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s;
    background-color: #f8fafc
}

.mobile-nav-item.active .mobile-dropdown-menu {
    max-height: 500px
}

.mobile-dropdown-item {
    display: block;
    padding: .8rem 20px .8rem 2.5rem;
    color: #64748b;
    text-decoration: none;
    transition: all .3s
}

.mobile-dropdown-item:hover {
    color: #2563eb;
    background-color: #f1f5f9
}

.mobile-dropdown-item i {
    margin-right: .8rem;
    width: 1rem;
    text-align: center
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all .3s
}

.overlay.active {
    opacity: 1;
    visibility: visible
}

.site-footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color)
}
.site-footer p{margin: 10px 0;}
.site-footer a{
    color: #64749a;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 2rem;
    margin-bottom: 2rem
}

.footer-column h3 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: .5rem
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(to right,#2563eb,#3b82f6)
}

.footer-links {
    list-style: none
}

.footer-link {
    display: block;
    padding: .5rem 0;
    color: #64748b;
    text-decoration: none;
    transition: all .3s
}

.footer-link:hover {
    color: #2563eb;
    transform: translateX(5px)
}

.footer-link i {
    margin-right: .5rem;
    width: 1rem;
    text-align: center
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #fff;
    color: #1e293b;
    transition: all .3s;
    box-shadow: 0 4px 6px rgba(0,0,0,.05)
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1)
}

.social-link:nth-child(1):hover {
    background-color: #4267b2;
    color: #fff
}

.social-link:nth-child(2):hover {
    background-color: #1da1f2;
    color: #fff
}

.social-link:nth-child(3):hover {
    background-color: #e1306c;
    color: #fff
}

.social-link:nth-child(4):hover {
    background-color: red;
    color: #fff
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    color: #64748b;
    font-size: 15px;
    text-align: center;
}

.back-to-top {
    display: flex;
    align-items: center;
    color: #64748b;
    text-decoration: none;
    transition: all .3s
}

.back-to-top:hover {
    color: #2563eb
}

.back-to-top i {
    margin-left: .5rem;
    transition: transform .3s
}

.back-to-top:hover i {
    transform: translateY(-3px)
}

@media (max-width: 1024px) {
    .header-container {
        padding:0 20px
    }

    .search-box {
        flex: 0 1 300px;
        margin: 0 1rem
    }
}

@media (max-width: 768px) {
    .header-container {
        height:60px;
        padding: 0 1rem
    }

    .main-nav {
        display: none
    }

    .search-box {
        display: none
    }

    .mobile-menu-btn {
        display: block
    }

    .footer-columns {
        grid-template-columns: repeat(auto-fit,minmax(150px,1fr))
    }
}

@media (max-width: 480px) {
    .footer-columns {
        grid-template-columns:1fr
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem
    }
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

.site-header {
    animation: fadeIn .5s ease-out
}

.site-footer {
    animation: fadeIn .5s ease-out .2s both
}

.square-scope .main-container {
    display: flex;
    margin: 20px auto;
    gap: 20px;
    padding: 0 15px
}

 
.square-scope .content-area {
    flex: 1
}

.square-scope .sidebar {
    width: 300px
}

.square-scope .sidebar .sticky {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 20px
}

.square-scope .tag-cloud {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05)
}

.square-scope .tag-cloud h2 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #2d3748
}

.square-scope .tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem
}

.square-scope .tag {
    display: inline-block;
    padding: .3rem .8rem;
    background-color: #edf2f7;
    color: #3c3c3c;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    transition: all .3s ease
}

.square-scope .tag:hover {
    background-color: #d9e2ec;
    color: #495af4;
    transform: translateY(-2px)
}

.square-scope .code-posts {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(268px,1fr));
    gap: 20px
}

.square-scope .post-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,.05);
    transition: all .3s ease
}

.square-scope .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,.1)
}

.square-scope .post-image {
    height: 160px;
    overflow: hidden;
    position: relative
}

.square-scope .post-image::after {
    content: "";
    position: absolute;
    left: 0;
    background-color: rgb(0 0 0 / 10%);
    top: 0;
    bottom: 0;
    z-index: 9;
    right: 0;
}


.square-scope .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all .3s ease
}

.square-scope .post-card:hover .post-image img {
    transform: scale(1.05)
}

.square-scope .post-default-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,#a0aec0,#e2e8f0);
    color: #fff;
    font-size: 3rem
}

.square-scope .post-content {
    padding: 20px
}

.square-scope .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem
}

.square-scope .post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: .8rem
}

.square-scope .post-author {
    font-weight: 600;
    font-size: .9rem
}

.square-scope .post-time {
    font-size: .8rem;
    color: #718096
}

.square-scope .post-title {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.square-scope .post-desc {
    color: #718096;
    font-size: .9rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.square-scope .post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
    height: 30px;
    overflow: hidden;
}

.square-scope .post-tag {
    font-size: .7rem;
    padding: .2rem .6rem;
    background-color: #edf2f7;
    border-radius: 4px;
    color: #718096
}

.square-scope .post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 1rem;
    font-size: .9rem
}

.square-scope .post-stats {
    display: flex;
    gap: 1rem;
    color: #718096
}

.square-scope .post-stats span {
    display: flex;
    align-items: center;
    gap: .3rem
}

.square-scope .view-btn {
    padding: .4rem 1rem;
    background-color: #667eea;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    transition: all .3s ease
}

.square-scope .view-btn:hover {
    background-color: #5a67d8
}

.square-scope .sidebar-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,.05)
}

.square-scope .sidebar-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748
}

.square-scope .top-authors {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.square-scope .author-item {
    display: flex;
    align-items: center;
    gap: .8rem
}

.square-scope .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover
}

.square-scope .author-info {
    flex: 1
}

.square-scope .author-name {
    font-weight: 600;
    font-size: .9rem
}

.square-scope .author-posts {
    font-size: .8rem;
    color: #718096
}

.square-scope .trending-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem
}

.square-scope .trending-item {
    display: flex;
    gap: .8rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid #edf2f7
}

.square-scope .trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.square-scope .trending-thumbnail {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    word-wrap: break-word
}

.square-scope .trending-thumbnail img {
    width: 100%;
    height: 100%
}

.square-scope .trending-title {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: calc(100% - 60px);
    white-space: pre-wrap;
    word-wrap: break-word
}

.square-scope .categories {
    display: flex;
    flex-direction: column;
    gap: .5rem
}

.square-scope .category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5rem 0;
    color: #2d3748;
    transition: all .3s ease
}

.square-scope .category-item:hover {
    color: #667eea
}

.square-scope .category-count {
    font-size: .8rem;
    color: #718096;
    background-color: #edf2f7;
    padding: .2rem .5rem;
    border-radius: 10px
}

@media (max-width: 992px) {
    .square-scope .main-container {
        flex-direction:column
    }

    .square-scope .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
        gap: 20px
    }
}

@media (max-width: 768px) {
    .square-scope .code-posts {
        grid-template-columns:1fr
    }
}

@media (max-width: 480px) {
    .square-scope .post-stats {
        gap:.5rem
    }
}

.item-scope .container {
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px
}

.item-scope .article-container {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    overflow: hidden;
    transition: all .3s ease
}

.item-scope .sidebar {
    width: 320px;
    display: flex;
    flex-direction: column;
    gap: 20px
}

.item-scope .sidebar .sticky {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 20px
}

.item-scope .article-header {
    padding: 20px 30px 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 20px;
}

.item-scope .article-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222
}

.item-scope .author-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px
}

.item-scope .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px
}

.item-scope .author-name {
    font-weight: 500;
    color: #333
}

.item-scope .publish-time {
    font-size: 13px;
    color: #999;
    margin-right: 20px
}

.item-scope .article-content {
    padding: 0 30px 25px;
    position: relative
}

.item-scope .free-content {
    margin-bottom: 30px
}

.item-scope .paid-content {
    position: relative;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    opacity: .7;
    transition: all .3s ease
}

.item-scope .paid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.8);
    z-index: 2;
    border-radius: 8px
}

.item-scope .unlock-btn {
    background: linear-gradient(135deg,#6e8efb,#a777e3);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(110,142,251,.3);
    transition: all .3s ease;
    margin-bottom: 20px
}

.item-scope .unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(110,142,251,.4)
}

.item-scope .price-tag {
    font-size: 14px;
    color: #666;
    margin-top: 10px
}

.item-scope .article-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa
}

.item-scope .action-group {
    display: flex;
    gap: 20px
}

.item-scope .action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: 0 0;
    border: none;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all .2s ease
}

.item-scope .action-btn i {
    font-size: 16px
}

.item-scope .action-btn:hover {
    background: rgba(0,0,0,.05);
    color: #333
}

.item-scope .action-btn.liked {
    color: #ff4757
}

.item-scope .action-btn.favorited {
    color: #ffa502
}

.item-scope .reward-btn {
    background: linear-gradient(135deg,#ff9a9e,#fad0c4);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255,154,158,.3);
    transition: all .3s ease
}

.item-scope .reward-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255,154,158,.4)
}

.item-scope .sidebar-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    padding: 20px
}

.item-scope .author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center
}

.item-scope .author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #f5f7fa
}

.item-scope .author-card-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px
}

.item-scope .author-card-bio {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5
}

.item-scope .follow-btn {
    background: #f5f7fa;
    color: #333;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    width: 100%;
    max-width: 150px
}

.item-scope .follow-btn:hover {
    background: #e1e5eb
}

.item-scope .follow-btn.following {
    background: #6e8efb;
    color: #fff
}

.item-scope .recommend-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0
}

.item-scope .recommend-list {
    display: flex;
    flex-direction: column;
    gap: 15px
}

.item-scope .recommend-item {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f5f5f5
}

.item-scope .recommend-item:last-child {
    border-bottom: none;
    padding-bottom: 0
}

.item-scope .recommend-cover {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover
}

.item-scope .recommend-content {
    flex: 1
}

.item-scope .recommend-item-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.item-scope .recommend-item-meta {
    font-size: 12px;
    color: #999
}

@media (max-width: 992px) {
    .item-scope .container {
        flex-direction:column
    }

    .item-scope .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap
    }

    .item-scope .sidebar-card {
        flex: 1;
        min-width: 300px
    }
}

@media (max-width: 768px) {
    .item-scope .article-content,.item-scope .article-header {
        padding:20px
    }

    .item-scope .article-title {
        font-size: 24px
    }

    .item-scope .action-group {
        gap: 10px
    }

    .item-scope .sidebar {
        flex-direction: column
    }
}

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.1)
    }

    100% {
        transform: scale(1)
    }
}

.item-scope .pulse {
    animation: pulse .5s ease
}

.item-scope .reward-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 100;
    align-items: center;
    justify-content: center
}

.item-scope .reward-modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalFadeIn .3s ease
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.item-scope .reward-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px
}

.item-scope .reward-amounts {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 25px;
    margin-top: 25px
}

.item-scope .reward-amount {
    background: #f5f7fa;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all .2s ease
}

.item-scope .reward-amount:hover {
    background: #e1e5eb
}

.item-scope .reward-amount.selected {
    background: #6e8efb;
    color: #fff;
    border-color: #6e8efb
}

.item-scope .custom-amount {
    width: 100%;
    padding: 12px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center
}

.item-scope .confirm-reward {
    background: linear-gradient(135deg,#ff9a9e,#fad0c4);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all .3s ease
}

.item-scope .confirm-reward:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255,154,158,.4)
}

.item-scope .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: 0 0;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999
}

.message-content h1,.message-content h2,.message-content h3,.message-content h4,.message-content h5,.message-content h6 {
    margin-top: 1.5em;
    margin-bottom: .5em;
    font-weight: 600;
    line-height: 1.25
}

.message-content h1 {
    font-size: 1.5em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: .3em
}

.message-content h2 {
    font-size: 1.3em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: .3em
}

.message-content h3 {
    font-size: 1.2em
}

.message-content h4 {
    font-size: 1.1em
}

.message-content p {
    margin-bottom: 10px
}

.message-content img {
    margin: 10px 0;
    border-radius: 10px;
    margin-right: 10px;
}

.message-content p:last-child {
    margin-bottom: 0
}

.message-content ol,.message-content ul {
    margin-bottom: 1em;
    padding-left: 2em
}

.message-content ul {
    list-style-type: disc
}

.message-content ol {
    list-style-type: decimal
}

.message-content li {
    margin-bottom: .5em
}

.message-content li:last-child {
    margin-bottom: 0
}

.message-content blockquote {
    border-left: 4px solid #60a5fa;
    padding-left: 1em;
    margin-left: 0;
    margin-bottom: 1em;
    color: #718096
}

.message-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
    border: 1px solid #e2e8f0
}

.message-content td,.message-content th {
    border: 1px solid #e2e8f0;
    padding: .5em;
    text-align: left
}

.message-content th {
    background-color: #f3f4f6;
    font-weight: 600
}

.message-content pre {
    color: #f0f8ff;
    border-radius: 6px;
    background-color: #272822;
    padding: 12px;
    padding-top: 52px;
    overflow-x: auto;
    margin: 10px 0;
    position: relative;
    border: 1px solid #e2e8f0;
    display: grid
}

.message-content pre>code {
    overflow: auto;
    padding: 10px;
    outline: 0
}

.message-content pre td,.message-content pre th {
    border: 1px solid #1e293b;
    border: unset;
    padding: 2px 10px;
    text-align: left
}

.message-content pre .hljs-ln-numbers {
    border-right: 1px solid #7c7c7c
}

.message-content pre table {
    width: 100%;
    margin-bottom: unset;
    border: unset
}

.message-content pre::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 25px 0 0 #ffbd2e,50px 0 0 #27c93f
}

.message-content code {
    font-family: 'Fira Code',Consolas,monospace
}

.message-content li code,.message-content p code {
    background-color: #f3f4f6;
    padding: .2em .4em;
    border-radius: 3px;
    font-size: .9em;
    color: #5e72e4
}

.hljs {
    color: #d3d3d3;
    border-radius: 6px
}

.hljs-comment,.hljs-quote {
    color: #6b7280;
    font-style: italic
}

.hljs-keyword {
    color: #5fc4d6;
    font-weight: 700
}
.hljs-selector-tag {
    color: #5fc4d6;
    font-weight: 700
}
.hljs-subst {
    color: #5fc4d6;
    font-weight: 700
}
.hljs-doctag,.hljs-regexp,.hljs-string {
    color: #dad06f;
}

.hljs-literal,.hljs-number {
    color: #d97706
}

.hljs-section,.hljs-selector-id,.hljs-title {
    color: #59b7c8;
    font-weight: 700
}

.hljs-subst {
    font-weight: 400
}

.hljs-attr {
    color: #a6e22e;
    font-weight: 400
}
.hljs-name {
    color: #f92672;
    font-weight: 400
}
.hljs-tag {
    color: #FF5722;
    font-weight: 400
}
.hljs-attribute {
    color: #d97706
}

.hljs-template-variable,.hljs-variable {
    color: #a2dd2e;
}

.hljs-built_in,.hljs-builtin-name {
    color: #0284c7
}

.hljs-type {
    color: #0369a1;
    font-weight: 700
}

.hljs-class .hljs-title {
    color: #2563eb;
    font-weight: 700
}

.hljs-bullet,.hljs-symbol {
    color: #9333ea
}

.hljs-meta {
    color: #6b7280;
    font-weight: 700
}

.hljs-deletion {
    background-color: #ef4444
}

.hljs-addition {
    background-color: #10b981
}

.hljs-emphasis {
    font-style: italic
}

.hljs-strong {
    font-weight: 700
}

.code-buttons {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 1
}

.code-button {
    padding: 5px 12px;
    border: none;
    border-radius: 40px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,.1)
}

.copy-button {
    background-color: #f0f0f0;
    color: #333
}

.copy-button:hover {
    background-color: #e0e0e0
}

.run-button {
    background-color: #4caf50;
    color: #fff
}

.run-button:hover {
    background-color: #45a049
}

.code-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
    opacity: 0;
    animation: fadeIn .3s ease forwards
}

@keyframes fadeIn {
    to {
        opacity: 1
    }
}

.code-preview-content {
    background-color: #fff;
    width: calc(100% - 60px);
    height: calc(100% - 60px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    border-radius: 10px
}

.code-preview-header {
    padding: 12px 20px;
    background-color: #f5f5f5;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.device-switcher {
    display: flex;
    gap: 8px
}

.device-button {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s ease
}

.device-button.active {
    background-color: #4caf50;
    color: #fff;
    border-color: #45a049
}

.close-button {
    background: 0 0;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #777;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .2s ease
}

.close-button:hover {
    background-color: #eee;
    color: #333
}

.preview-frame-container {
    flex: 1;
    position: relative;
    overflow: auto;
    background-color: #f9f9f9
}

.preview-frame-container.pc {
    overflow: hidden
}

.preview-frame-container.pc .preview-frame {
    width: 100%;
    height: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff
}

.preview-frame-container.mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px
}

.preview-frame-container.mobile .preview-frame {
    width: 375px;
    height: 667px;
    border: 10px solid #333;
    border-radius: 30px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.3)
}

.payment-card {
    width: 100%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 4px 3px 13px rgba(0,0,0,.08);
    border: 1px solid #efefef;
    overflow: hidden;
    display: flex;
    transition: transform .3s ease,box-shadow .3s ease;
    margin: 20px 0;
}

.payment-card .payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,.12)
}

.payment-card .card-left {
    flex: 1;
    padding: 40px;
    background: linear-gradient(135deg,#f5f7fa 0,#e4e8ed 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center
}

.payment-card .card-right {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center
}

.payment-card .lock-icon {
    font-size: 48px;
    color: #4a6cf7;
    text-align: center
}

.payment-card .card-title {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px
}

.payment-card .card-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px
}

.payment-card .price-tag {
    display: inline-block;
    background: #4a6cf7;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 30px;
    font-size: 18px;
    text-align: center
}

.payment-card .payment-btn {
    background: linear-gradient(135deg,#4a6cf7 0,#2541b2 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(74,108,247,.3);
    position: relative;
    overflow: hidden
}

.payment-card .payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74,108,247,.4)
}

.payment-card .payment-btn:active {
    transform: translateY(0)
}

.payment-card .payment-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: rgba(255,255,255,.2);
    transform: rotate(30deg);
    transition: all .3s ease
}

.payment-card .payment-btn:hover::after {
    left: 100%
}

.payment-card .benefits-list {
    list-style: none;
    margin-bottom: 30px
}

.payment-card .benefits-list li {
    margin-bottom: 12px;
    color: #4a5568;
    font-size: 15px;
    display: flex;
    align-items: center
}

.payment-card .benefits-list li i {
    color: #4a6cf7;
    margin-right: 10px;
    font-size: 14px
}

@media (max-width: 768px) {
    .payment-card {
        flex-direction:column
    }

    .payment-card .card-left,.payment-card .card-right {
        padding: 30px
    }
}

.ios-password-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease
}

.ios-password-modal.active {
    opacity: 1;
    pointer-events: all
}

.ios-password-container {
    width: 270px;
    background-color: #f8f8f8;
    border-radius: 13px;
    overflow: hidden;
    transform: scale(.9);
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,.2)
}

.ios-password-modal.active .ios-password-container {
    transform: scale(1)
}

.ios-password-title {
    padding: 15px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    border-bottom: .5px solid rgba(0,0,0,.1)
}

.ios-password-input {
    padding: 15px;
    border-bottom: .5px solid rgba(0,0,0,.1)
}

.ios-password-input input {
    width: 100%;
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    background-color: #fff;
    outline: 0;
    transition: border-color .3s
}

.ios-password-input input:focus {
    border-color: #007aff
}

.ios-password-buttons {
    display: flex;
    border-top: .5px solid rgba(0,0,0,.1)
}

.ios-password-button {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-size: 17px;
    font-weight: 500;
    color: #007aff;
    cursor: pointer;
    transition: background-color .2s
}

.ios-password-button:hover {
    background-color: rgba(0,0,0,.05)
}

.ios-password-button.cancel {
    color: #ff3b30;
    border-right: .5px solid rgba(0,0,0,.1)
}

@keyframes shake {
    0%,100% {
        transform: translateX(0)
    }

    10%,30%,50%,70%,90% {
        transform: translateX(-5px)
    }

    20%,40%,60%,80% {
        transform: translateX(5px)
    }
}

.ios-password-container.shake {
    animation: shake .5s
}

.modal-overlay-scope {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s ease
}

.modal-overlay-scope.show {
    opacity: 1
}

.modal-container-scope {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    width: 420px;
    max-width: 90%;
    transform: translateY(-20px);
    transition: transform .3s cubic-bezier(.175,.885,.32,1.275)
}

.modal-overlay-scope.show .modal-container-scope {
    transform: translateY(0)
}

.modal-header-scope {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 18px;
    font-weight: 600;
    color: #333
}

.modal-body-scope {
    padding: 24px;
    font-size: 15px;
    line-height: 1.5;
    color: #666
}

.modal-footer-scope {
    padding: 12px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px
}

.modal-btn-scope {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid transparent
}

.modal-btn-cancel-scope {
    background-color: #f5f5f5;
    color: #666;
    border-color: #d9d9d9
}

.modal-btn-cancel-scope:hover {
    background-color: #eee
}

.modal-btn-confirm-scope {
    background-color: #1890ff;
    color: #fff
}

.modal-btn-confirm-scope:hover {
    background-color: #40a9ff
}

.modal-btn-confirm-scope.primary-scope {
    background-color: #1890ff
}

.modal-btn-confirm-scope.primary-scope:hover {
    background-color: #40a9ff
}

.modal-btn-confirm-scope.danger-scope {
    background-color: #ff4d4f
}

.modal-btn-confirm-scope.danger-scope:hover {
    background-color: #ff7875
}
.no-data-container {
    text-align: center;
    max-width: 500px;
    padding: 30px;
    margin: auto;
}

.no-data-icon {
    font-size: 60px;
    color: #c0c4cc;
    margin-bottom: 20px;
}

.no-data-title {
    font-size: 18px;
    font-weight: 500;
    color: #909399;
    margin-bottom: 10px;
}

.no-data-desc {
    font-size: 14px;
    color: #c0c4cc;
    margin-bottom: 20px;
    line-height: 1.5;
}

.no-data-action {
    margin-top: 20px;
}

.action-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #409eff;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s;
}

.action-btn:hover {
    background-color: #66b1ff;
}