/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei";
}

a {
    text-decoration: none;
}

a:hover {
    color: #ff4d4f;
}

.by-sidebar-toggle {
    display: none;  
}

/* ===== HEADER ===== */
.site-header {
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 999;
}
.header-container {
    max-width: 1300px;
    margin: 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
/* =========================
   Logo
========================= */

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-wrap img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.logo-title {
    height: 44px;
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 800;
    color: #111;
    white-space: nowrap;
    line-height: 1;
    position: relative;
    top: -1px;
}
/* =========================
   Desktop Nav
========================= */

.desktop-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.desktop-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 45px;
}
.desktop-nav li {
    white-space: nowrap;
}
.desktop-nav a {
    text-decoration: none;
    color: #222;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.25s;
}
.desktop-nav a i {
    font-size: 16px;
    color: #ff4d4f;
}
.desktop-nav a i.bi-person-check {
    font-size: 18px;
}

.desktop-nav a:hover {
    color: #ff4d4f;
}
/* =========================
   Right Area
========================= */

.header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.desktop-search {
    width: 160px;
    height: 35px;
    border: 1px solid #666666;
    border-radius: 999px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    padding-left: 14px;
}
.desktop-search input {
    width: 80%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 12px;
    color: #666666;
    line-height: 35px;
    padding: 0;
    margin: 0;
}
.desktop-search input::placeholder {
color:#999;
}
.desktop-search-btn {
    width: 40px;
    height: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    flex-shrink: 0;
}
.desktop-search-btn i {
    font-size: 16px;
}
.user-btn {
    text-decoration: none;
    color: #666;
    display: flex;
    align-items: center;
    transition: 0.25s;
    font-size: 25px;
    height: 32px;
    width: 32px;
    justify-content: center;
    align-items: center;
    
}

.user-btn.desktop-user {
    border: 1px solid #666666;
    border-radius: 100%;
    height: 32px;
    width: 32px;
    font-size: 21px;
}

.user-btn.desktop-user i {
    height: 29px;
}

.user-btn.desktop-user:hover {
    border: 1px solid #ff4d4f;
}


.user-btn:hover {
    color: #ff4d4f;
}




/* =========================
   Mobile Actions
========================= */

.mobile-actions {
    display: none;
    align-items: center;
    gap: 16px;
}
.mobile-icon {
    font-size: 28px;
    color: #555;
    cursor: pointer;
}
.mobile-icon.bi-search {
	font-size: 21px;
}
/* =========================
   Mobile Full Search
========================= */

.mobile-search-full {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    align-items: center;
    padding: 0 18px;
    z-index: 20;
}
.mobile-search-full.active {
    display: flex;
}
.mobile-search-full-box {
    flex: 1;
    height: 42px;
    border: 2px solid #ff4d4f;
    border-radius: 999px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #fff;
    padding-left: 14px;
}
.mobile-search-full-box input {
    flex: 1;
    height: 38px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    line-height: 38px;
    padding: 0;
    margin: 0;
    display: block;
}
.mobile-search-full-box input::placeholder {
color:#999;
}
.mobile-search-submit {
    width: 42px;
    height: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: pointer;
    flex-shrink: 0;
}
.mobile-search-submit i {
    font-size: 17px;
}
.mobile-search-close {
    width: 34px;
    height: 34px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
}
/* =========================
   Mobile Menu
========================= */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 38%;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: 0.35s ease;
    padding: 26px;
    box-shadow: -5px 0 20px rgba(0,0,0,0.08);
}
.mobile-menu.active {
    right: 0;
}
.mobile-menu-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}
.close-menu {
    font-size: 20px;
    cursor: pointer;
    color: #333;
}
.mobile-menu ul {
    list-style: none;
}
.mobile-menu li {
    margin-bottom: 28px;
}
.mobile-menu a {
    text-decoration: none;
    color: #222;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.mobile-menu a i {
    color: #ff4d4f;
    font-size: 21px;
}
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 9998;
}
.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================
   Responsive
========================= */

@media(max-width:1200px) {
.desktop-nav ul {
    gap: 18px;
}
.desktop-nav a {
    font-size: 15px;
}
.desktop-search {
    width: 180px;
}
}
	
@media(max-width:1050px) {

.desktop-nav {
    display: none;
}

}

@media(max-width:1330px) {
    .header-container {
        padding: 0 30px;
    }
}

@media(max-width:992px) {
.header-container {
    height: 56px;
    padding: 0 16px;
}
.desktop-search, .desktop-user {
    display: none;
}
.logo-wrap img {
    width: 28px;
    height: 28px;
}
.logo-title {
    font-size: 24px;
}
.mobile-actions {
    display: flex;
}
}

@media(max-width:768px) {
.logo-title {
    display: none;
}
}

/* ===== 通用布局 ===== */
.main {
    padding: 30px;
    background: #f6f7f8;
}

.layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    max-width: 1300px;
    margin: 0 auto;
}

/* ===== 右侧通用 ===== */
.right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box {
    background: #fff;
    padding: 18px 18px 20px 18px;
    border-radius: 12px;
}

/* 标题 */
.box-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom: 18px;
}

.box-name{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:16px;
    font-weight:700;
    color:#1f2b3d;
}

.news-line{
    width:3px;
    height:16px;
    border-radius:30px;
    background:linear-gradient(#ff6b6b,#ff2d55);
    transform: translateY(1px);
}

.more-link{
    font-size:13px;
    color:#a7b0bd;
    text-decoration:none;
}

/* 博主 */
.author {
    text-align: center;
}

.avatar {
    width: 84px;
    height: 84px;
    margin-top: 4px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #efefef;
    padding: 3px;
	background: linear-gradient(144deg, #ff1f1f, #f08300);
}

.desc {
    font-size: 14px;
    color: #666;
    margin: 12px 0;
    line-height: 1.6;
}

.social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 20px 0;
}

.social a {
    color: #666;
    width: 36px;
    height: 36px;
    border-radius: 100%;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 21px;
    transition: .25s;
}

.social a.youtube i{
    display: inline-block;
    font-size: 18px;
}

.social a.telegram i {
    font-size: 18px;
}

.social a.twitter i {
    font-size: 15px;
}

.social a.tiktok i{
    display: inline-block;
    font-size: 14px;
}

.social a.bilibili svg{
    height: 20px;
    width: 20px;
}

.social a.bilibili svg path {
    fill: currentColor !important;
}

.social a:hover {
    color: #ff4d4f;
    background-color: #fff5f5;
}

/* 咖啡按钮 */
.donate-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    margin-bottom: 4px;
    padding: 11px;
    border-radius: 25px;
    background: #f9f9f9cf;
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: 0.25s;
	border: 1px solid #ddd;
}

.donate-btn:hover {
    background: #fff1f1;
    color: #ff4d4f;
	border: 1px solid #ff8385;
}

/* 排行 */
.rank {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rank-item {
    display: flex;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

.rank-item:hover .title {
    color: #ff4d4f;
}

.rank-item .title {
    color: #444444;
}

.num {
    min-width: 21px;
    height: 21px;
    border-radius: 6px;
    background: #ddd;
    color: #fff;
    font-size: 11px;
    text-align: center;
    line-height: 21px;
}

.num.top {
    background: linear-gradient(135deg,#ff4d4f,#ff7875);
}

.title {
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 标签 */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tags a {
    background: #f3f3f3;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    color: #555;
}

.tags a:hover {
    background: #ff4d4f;
    color: #fff;
}

/* ===== FOOTER ===== */
.footer {
    background: #fafafa;
    text-align: center;
    padding: 28px 10px;
    border-top: 1px solid #eee;
}

.footer-copy {
    font-size: 14px;
    color: #777;
}

.footer-text {
  font-size: 14px;
  color: #555;
  text-align: center;
  margin-bottom: 10px;
}

.footer-text a {
  color: #555;
  text-decoration: none;
  margin: 0 10px;
  transition: all 0.3s ease;
}

.footer-text a:hover {
  color: #ff4d4f;
}

/* ===== 响应式 ===== */
@media (max-width: 1375px) {
    .header {
        padding: 22px 30px;
    }
}

@media (max-width: 1000px) {
    .header {
        padding: 22px 20px;
    }
    .main {
        padding: 20px;
    }
    .layout {
        grid-template-columns: 1fr;
    }
    .nav,.ouser {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    .footer-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 16px;
    }
    .main {
        padding: 16px;
    }
    .article-box {
        box-shadow: none!important;
    }
    .search-container.active .search-box {
        width: 200px;
    }
}

    /* 返回顶部按钮 */
    #backToTop {
        position: fixed;
        right: 30px;
        bottom: 30px;
        width: 42px;
        height: 42px;
        background: #222222;
        color: #fff;
        border: none;
        border-radius: 100%; /* 比圆形更高级 */
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        box-shadow: 0 6px 18px rgba(0,0,0,0.2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        z-index: 999;
    }

    /* 显示状态 */
    #backToTop.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    #backToTop:hover {
        background: #222;
        transform: translateY(-3px);
    }

    /* 📱 手机适配 */
    @media (max-width: 768px) {
        #backToTop {
            right: 16px;
            bottom: 16px;
            width: 44px;
            height: 44px;
            font-size: 18px;
        }
    }
    
    
/* 应用列表 */
.app-list {
    display: flex;
    flex-direction: column;
    margin: -15px 0;
}
/* 单个应用 */
.app-item {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 78px;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    transition: .2s;
}
.app-item:last-child {
    border-bottom: none;
}
.app-item:hover {
    opacity: .88;
}
/* 图片 */
.app-cover {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f3f3f3;
}
.app-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* 内容 */
.app-list-info {
    flex: 1;
    min-width: 0;
}
.app-list-info .app-name {
    font-size: 15px;
    color: #222;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-list-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* 按钮 */
.app-btn {
    height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #666;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: .2s;
    border: 1px solid #e5e7eb;
}
.app-item:hover .app-btn {
    background: #ff5f5f;
    color: #fff;
    border-color: #ff5f5f;
}

/* 平板 */
@media (max-width:1200px) {
.sidebar {
    width: 320px;
}
}

/* 手机 */
@media (max-width:768px) {
.app-item {
    min-height: 72px;
    gap: 12px;
}
.app-cover {
    width: 46px;
    height: 46px;
}
}











/* =========================
           请我喝咖啡
        ========================= */

.coffee-popup-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.62);
}
/* =========================
           弹窗主体
        ========================= */

.coffee-popup {
    position: relative;
    width: 100%;
    max-width: 690px;
    padding: 38px 40px 32px;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: coffeePopupIn 0.2s ease;
}
@keyframes coffeePopupIn {
from {
opacity: 0;
transform: translateY(12px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
}
}
/* =========================
           装饰
        ========================= */

.coffee-decoration {
    position: absolute;
    top: -35px;
    right: -20px;
    font-size: 180px;
    color: #ff4d5a;
    opacity: 0.08;
    pointer-events: none;
    transform: rotate(-12deg);
}
/* =========================
           关闭按钮
        ========================= */

.coffee-popup-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 5;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #999;
    font-size: 22px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}
.coffee-popup-close:hover {
    background: #fff0f1;
    color: #ff4d5a;
}
/* =========================
           标题
        ========================= */

.coffee-popup-title {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
}
.coffee-popup-title-icon {
    color: #ff4d5a;
    font-size: 27px;
}
.coffee-popup-subtitle {
    position: relative;
    z-index: 1;
    margin: 9px 0 30px;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}
/* =========================
           支付方式选择
        ========================= */

.coffee-pay-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.coffee-pay-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 170px;
    padding: 25px 15px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: 0.25s;
}
.coffee-pay-item:hover {
    border-color: #ffb8be;
    background: #fff8f9;
    box-shadow: 0 8px 25px rgba(255, 77, 90, 0.08);
    transform: translateY(-2px);
}
.coffee-pay-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 14px;
    border-radius: 17px;
    font-size: 35px;
}
.coffee-pay-alipay {
    color: #1296db;
    background: #eef8fd;
}
.coffee-pay-wechat {
    color: #07c160;
    background: #effaf4;
}
.coffee-pay-bitcoin {
    color: #f7931a;
    background: #f7faef;
}
.coffee-pay-usdt {
    color: #53ae94;
    background: #f2faef;
}
.coffee-pay-name {
    color: #444;
    font-size: 15px;
    font-weight: 500;
}
/* =========================
           底部提示
        ========================= */

.coffee-note {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 24px;
    color: #999;
    font-size: 13px;
}
.coffee-note i {
    color: #ff4d5a;
}
/* =========================
           二维码页面
        ========================= */

.coffee-qr-page {
    display: none;
    position: relative;
    z-index: 1;
    text-align: center;
}
.coffee-qr-page-title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    color: #333;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.5;
}
.coffee-qr-page-title i {
    color: #ff4d5a;
    font-size: 25px;
}
/* =========================
           二维码
        ========================= */

.coffee-qr {
    display: block;
    width: 320px;
    height: 320px;
    margin: 0 auto;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
}

.bcoin .coffee-qr {
    height: 180px;
}

.coffee-qr-tip {
    margin: 18px 0 23px;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
}


.bcoin .bcoin-address {
    display: flex;
    align-items: center;
    gap: 12px;
    width: calc(100% - 80px);
    max-width: 425px;
    margin: 0 auto 20px;
}

.bcoin .bcoin-address input {
    flex: 1;
    min-width: 0;
    height: 45px;
    padding: 0 12px;
    border: 2px solid #e5e5e5;
    border-radius: 0;
    background: #fff;
    color: #888;
    font-family: monospace;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.bcoin .bcoin-copy-btn {
    flex-shrink: 0;
    height: 45px;
    padding: 0 22px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.bcoin .bcoin-copy-btn:hover {
    background: #555;
}

@media (max-width: 576px) {
    .bcoin .bcoin-address {
        width: 100%;
        gap: 8px;
    }

    .bcoin .bcoin-address input {
        font-size: 12px;
        padding: 0 8px;
    }

    .bcoin .bcoin-copy-btn {
        padding: 0 16px;
        font-size: 16px;
    }
}



/* =========================
           返回按钮
        ========================= */

.coffee-back {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 130px;
    padding: 10px 22px;
    border: 1px solid #ddd;
    border-radius: 22px;
    background: #fff;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.coffee-back:hover {
    border-color: #ff4d5a;
    background: #ff4d5a;
    color: #fff;
}

/* =========================
           手机端
        ========================= */

@media (max-width: 600px) {
.coffee-popup-mask {
    padding: 15px;
}
.coffee-popup {
    max-width: 100%;
    padding: 30px 20px 25px;
    border-radius: 18px;
}
.coffee-popup-title {
    font-size: 21px;
}
.coffee-popup-title-icon {
    font-size: 24px;
}
.coffee-popup-subtitle {
    margin-bottom: 24px;
    padding: 0 8px;
    font-size: 13px;
}
.coffee-pay-list {
    grid-template-columns: 1fr;
    gap: 10px;
}
.coffee-pay-item {
    min-height: 90px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 14px 18px;
}
.coffee-pay-icon {
    width: 50px;
    height: 50px;
    margin-right: 14px;
    margin-bottom: 0;
    border-radius: 14px;
    font-size: 28px;
}
.coffee-pay-name {
    font-size: 14px;
}
.coffee-note {
    margin-top: 19px;
    font-size: 12px;
}
.coffee-qr-page-title {
    margin-bottom: 18px;
    font-size: 20px;
}
.coffee-qr {
    width: 280px;
    height: 280px;
    padding: 9px;
}
.coffee-qr-tip {
    margin: 16px 0 20px;
    font-size: 13px;
}
}

@media (max-width: 380px) {
.coffee-popup {
    padding-left: 15px;
    padding-right: 15px;
}
.coffee-qr {
    width: 250px;
    height: 250px;
}
}
/* === Centered Search Override === */
@media (min-width: 993px) {
    .desktop-nav {
        position: static;
        transform: none;
        margin-left: auto;
    }
    .header-right {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .desktop-search {
        width: 280px;
    }
}

/* === Full-width Left Column Override === */
.layout .left {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}
