body {
    background: #f7f8fa;
}



/* Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 0;
    margin-bottom: 10px;
}

.main-header .layui-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

 .main-header .nav-links .nav-link { 
    position: relative;
 }

.header-left {
    display: flex;
    align-items: center;
}

.site-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    margin-right: 12px;
}

.site-name {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    letter-spacing: 1px;
}

.header-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 24px;
}

.header-nav .nav-links {
    display: flex;
    gap: 10px;
}

.header-nav .nav-link {
    color: #555;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}

.header-nav .nav-link:hover,
.header-nav .nav-link.active {
    background: #e6f3ff;
    color: #0b4e7e;
}

.header-nav .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 10px;
}

.header-nav .nav-toggle span {
    display: block;
    height: 4px;
    width: 28px;
    background: #192b38;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

.action-link {
    display: inline;
    padding: 0 6px;
    margin: 0 2px;
    border-radius: 0;
    font-size: 13px;
    color: #192b38;
    background: none;
    text-decoration: none;
    border: none;
    font-weight: normal;
    transition: color 0.2s;
}

.action-link:hover {
    color: #192b38;
    text-decoration: underline;
}

.action-link.detail {
    color: #16baaa;
}

.action-link.keywords {
    color: #16b777;
}

.action-link.inspect {
    color: #192b38;
}

.sort-th {
    cursor: pointer;
}

.nav-user-menu {
    display: inline-flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-right: 6px;
}

.nav-username {
    font-size: 15px;
    color: #333;
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 36px;
    right: 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    min-width: 120px;
    z-index: 99;
}

.nav-user-menu:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
}

.nav-dropdown a:hover {
    background: #f5f5f5;
}



/* 手机端样式 */
@media (max-width: 768px) {
    .main-header .layui-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: auto;
        padding: 8px 0;
    }

    .header-left {
        flex: 1;
        display: flex;
        align-items: center;
    }

    .header-nav {
        margin-left: auto;
        display: flex;
        align-items: center;
        position: relative;
    }

    .header-nav .nav-toggle {
        display: flex;
        margin-right: 0;
        margin-left: 10px;
        align-self: flex-end;
    }

    .header-nav .nav-links {
        position: absolute;
        top: 48px;
        right: 0;
        left: auto;
        min-width: 200px;
        background: #fff;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 4px 16px rgba(30, 159, 255, 0.08);
        border-radius: 12px 0 12px 12px;
        z-index: 999;
        display: none;
        animation: fadeInDown 0.3s;
        overflow: hidden;
    }

    .header-nav .nav-links.open {
        display: flex;
    }

    .header-nav .nav-link {
        padding: 14px 24px;
        font-size: 13px;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        text-align: right;
    }

    .header-nav .nav-link:last-child {
        border-bottom: none;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-login-pc {
    font-size: 15px;
    color: #192b38;
    cursor: pointer;
    padding: 6px 18px;
    border-radius: 4px;
    border: 1px solid #192b38;
    background: #fff;
    transition: background 0.2s, color 0.2s;
}

.header-login-pc:hover {
    background: #192b38;
    color: #fff;
}

.header-login {
    display: none !important;
}

.user-center-phone {
    display: none !important;
}

.user-center-pc {
    display: inline-block !important;
}

/* Footer */
.main-footer {
    margin-top: 40px;
    padding: 24px 0 16px 0;
    background: #fff;
    text-align: center;
    color: #888;
    font-size: 14px;
    border-top: 1px solid #f0f0f0;
}

.footer-nav {
    margin-bottom: 8px;
}

.footer-link {
    color: #464a4a;
    margin: 0 10px;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: #888;
    font-size: 13px;
}

.layui-btn-normal {
    background-color: #192b38;
}

.layui-laypage .layui-laypage-curr .layui-laypage-em {
    background-color: #192b38;
}

@media (max-width: 768px) {

    .main-header .layui-container {
        flex-direction: column;
        height: auto;
        padding: 8px 0;
    }

    .header-left {
        margin-bottom: 8px;
    }

    .site-name {
        font-size: 16px;
    }

    .header-nav {
        margin-left: 0;
    }

    .header-nav a {
        font-size: 14px;
        margin-right: 10px;
    }

    .header-login-pc {
        display: none !important;
    }

    .user-center-phone {
        display: inline-block !important;
    }

    .user-center-pc {
        display: none !important;
    }


    .header-nav .nav-links .header-login {
        display: block !important;
        text-align: right;
        font-size: 16px;
        padding: 14px 24px;
        border-bottom: none;
        border-radius: 0;
        color: #192b38;
        background: #fff;
        border-top: 1px solid #f0f0f0;
        margin-top: 4px;
    }

    .banner {
        padding: 20px 8px 18px 8px;
        border-radius: 8px;
    }

    .banner-title {
        font-size: 20px;
    }

    .banner-desc {
        font-size: 13px;
    }

    .footer-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-bottom: 6px;
    }

    .footer-link {
        font-size: 13px;
        margin: 0 6px;
    }

    .footer-copyright {
        font-size: 12px;
    }

}

/* Banner */
.banner {
    background: linear-gradient(90deg, #0a344f 0%, #021725 100%);
    color: #fff;
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 36px 24px 32px 24px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(30, 159, 255, 0.08);
}

.banner-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.banner-desc {
    font-size: 16px;
    opacity: 0.95;
}

.highlight-count {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    margin: 0 4px;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* App Detail Slider Styles */
.app-detail-slider {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.app-detail-slider.active {
    right: 0;
}

.slider-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slider-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slider-header .app-basic-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-header .detail-app-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-header .detail-app-meta {
    flex: 1;
}

.slider-header .detail-app-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.slider-header .detail-app-company {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.close-slider {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    color: #666;
}

.slider-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.app-screenshots {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.app-screenshots img {
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.app-description {
    line-height: 1.6;
    color: #444;
}

/* 模糊遮罩样式 */
.vip-lock {
    position: relative;
    color: transparent;
    /* 隐藏原文字 */
}

.vip-lock::after {
    content: "VIP Only";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: rgba(255, 87, 34, 0.85);
    font-size: 13px;
    border-radius: 4px;
}

.vip-inline-card {
    background: #fff8f0;
    border: 1px solid #ffd8a8;
    border-radius: 10px;
    padding: 22px;
    margin: 18px 0;
    display: flex;
    gap: 18px;
    align-items: center;
    box-shadow: 0 6px 20px rgba(23, 0, 0, 0.06);
    min-height: 450px;
}

.vip-inline-card .icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd666, #ff9a00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    
}

.vip-inline-card .content {
    flex: 1
}

.vip-inline-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #192b38
}

.vip-inline-card p {
    margin: 0;
    color: #586070;
    font-size: 14px
}

.vip-inline-card .features {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.vip-inline-card .features span {
    background: #fff2e8;
    padding: 6px 10px;
    border-radius: 8px;
    color: #ad5b00;
    font-size: 13px
}

.vip-inline-card .actions {
    display: flex;
    gap: 10px
}

.vip-btn {
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600
}

.vip-btn-primary {
    background: #1677ff;
    color: #fff
}

.vip-btn-ghost {
    background: transparent;
    color: #1677ff;
    border: 1px solid rgba(22, 119, 255, 0.12)
}

.vip-lock {
    cursor: pointer
}

@media (max-width:640px) {
    .vip-inline-card {
        flex-direction: column;
        align-items: flex-start
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 100;
        flex-direction: column;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 16px;
        border-bottom: 1px solid #eee;
    }
}


    .hot-flag {
      position: absolute;
      top: -8px;
      right: -8px;
      background: #ff4d4f;
      color: #fff;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 2px;
      line-height: 1;
      transform: rotate(18deg);
      box-shadow: 0 1px 2px rgba(0,0,0,0.15);
      text-transform: uppercase;
      white-space: nowrap;
      z-index: 2;
    }


    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 640px) {
      .hot-flag {
        top: -6px;
        right: -6px;
        font-size: 9px;
        padding: 1px 6px;
        transform: rotate(12deg);
      }
      .hot-flag::after { right: -5px; bottom: -3px; border-left-width:5px; border-top-width:5px; }
    }