@import url('../fonts/iconfont.css');
/* 全站公用基础样式 common.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Inter", "PingFang SC", sans-serif;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}
ul, li {
    list-style: none;
}
a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s;
}
a:hover {
    color: #357abd;
}
button, .btn {
    font-family: inherit;
    font-size: 14px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

/* ==========================================================================
   导航栏样式
   ========================================================================== */

/* 导航栏 */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 24px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: #4a90e2;
}
.logo img {
    height: 32px;
    vertical-align: middle;
    display: inline-block;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4a90e2;
}

/* 桌面端二级菜单 */
.nav-menu li {
    position: relative;
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 10px 16px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sub-menu a:hover {
    background: #f8f9fa;
    color: #4a90e2;
    padding-left: 20px;
}

/* ==========================================================================
   搜索按钮 - 简约版
   ========================================================================== */

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #666;
}

.search-toggle:hover {
    background: #f5f5f5;
    color: #333;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   搜索弹窗 - 仿图片UI风格
   ========================================================================== */

.vpsba-search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.3) !important;
    z-index: 9999 !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding: 120px 16px 16px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    overscroll-behavior: contain !important;
}

.vpsba-search-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.vpsba-search-modal {
    background: #ffffff !important;
    border-radius: 8px !important;
    width: 100% !important;
    max-width: 672px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-20px) scale(0.95) !important;
    transition: transform 0.3s ease !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #e5e7eb !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vpsba-search-overlay.active .vpsba-search-modal {
    transform: translateY(0) scale(1) !important;
}

.vpsba-search-close {
    margin-left: 12px !important;
    padding: 4px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    transition: all 0.2s ease !important;
    font-family: inherit !important;
    border-radius: 4px !important;
}

.vpsba-search-close:hover {
    color: #6b7280 !important;
    background: #f3f4f6 !important;
}

/* 自定义清除按钮 */
.vpsba-search-clear {
    margin-left: 8px !important;
    padding: 2px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    color: #9ca3af !important;
    transition: all 0.2s ease !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
}

.vpsba-search-clear:hover {
    color: #6b7280 !important;
    background: #f3f4f6 !important;
}

.vpsba-search-clear.show {
    display: flex !important;
}

.vpsba-search-box {
    display: flex !important;
    align-items: center !important;
    padding: 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    margin: 0 !important;
}

.vpsba-search-icon {
    color: #9ca3af !important;
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

.vpsba-search-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    font-size: 16px !important;
    outline: none !important;
    color: #1f2937 !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

.vpsba-search-input::placeholder {
    color: #9ca3af !important;
    font-weight: 400 !important;
}

/* 隐藏输入框自带的清除按钮 */
.vpsba-search-input::-webkit-search-cancel-button,
.vpsba-search-input::-webkit-search-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
}

.vpsba-search-input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.vpsba-search-input::-ms-reveal {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.vpsba-search-content {
    padding: 16px !important;
    max-height: 384px !important;
    overflow-y: auto !important;
    margin: 0 !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
}

.vpsba-search-section {
    margin-bottom: 24px !important;
    margin-top: 0 !important;
    padding: 0 !important;
}

.vpsba-search-section:last-child {
    margin-bottom: 0 !important;
}

.vpsba-section-header {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
    color: #374151 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 !important;
}

.vpsba-section-header svg {
    width: 16px !important;
    height: 16px !important;
}

.vpsba-section-header .vpsba-hot-search-icon {
    color: #3b82f6 !important;
}



.vpsba-search-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vpsba-search-tag {
    display: inline-block !important;
    background: #f8f9fa !important;
    color: #666 !important;
    padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1.5vw, 8px) !important;
    border-radius: clamp(4px, 1vw, 6px) !important;
    font-size: clamp(10px, 2vw, 11px) !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    margin: 0 !important;
    text-decoration: none !important;
    font-family: inherit !important;
    border: none !important;
}

.vpsba-search-tag:hover {
    background: #e9ecef !important;
    color: #495057 !important;
    text-decoration: none !important;
}



.vpsba-search-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    background: #f9fafb !important;
    border-top: 1px solid #f3f4f6 !important;
    border-radius: 0 0 8px 8px !important;
    margin: 0 !important;
}

.vpsba-search-tip {
    font-size: 12px !important;
    color: #6b7280 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
}

/* 桌面端和移动端提示词控制 */
.vpsba-search-tip.mobile-only {
    display: none !important;
}

.vpsba-search-tip.desktop-only {
    display: flex !important;
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-menu-toggle:hover {
    background-color: #f3f4f6;
}

.mobile-menu-toggle:focus {
    outline: none;
    background-color: #f3f4f6;
}

.mobile-menu-toggle:active {
    background-color: #e5e7eb;
    transform: scale(0.95);
}

/* 使用伪元素创建汉堡包图标 */
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #374151;
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle::before {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(-6px);
}

.mobile-menu-toggle::after {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(6px);
}

/* 中间的线条 */
.mobile-menu-toggle .hamburger-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background-color: #374151;
    border-radius: 1px;
    transform: translate(-50%, -50%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 移动端菜单按钮激活状态动画 */
.mobile-menu-toggle.active::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile-menu-toggle.active::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.mobile-menu-toggle.active .hamburger-line {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
}

/* 移动端侧滑菜单 */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: none;
    z-index: 9999;
    transition: left 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
}

/* 菜单头部 */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f3f4;
    background: #f8f9fa;
}

.mobile-menu-logo {
    font-size: 20px;
    font-weight: 700;
    color: #4a90e2;
}

.mobile-menu-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close:hover {
    background-color: #e9ecef;
}

.mobile-menu-close svg {
    width: 20px;
    height: 20px;
    color: #666;
}

/* 主体内容推走效果 */
body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .main-wrapper {
    transform: translateX(280px);
    transition: transform 0.3s ease;
}

.main-wrapper {
    transition: transform 0.3s ease;
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 16px 0;
}

.mobile-nav-menu li {
    margin: 0;
}

.mobile-nav-menu > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
}

.mobile-nav-menu > li:last-child > a {
    border-bottom: none;
}

.mobile-nav-menu > li > a:hover,
.mobile-nav-menu > li > a:active {
    background-color: #f8f9fa;
    color: #4a90e2;
}

.mobile-arrow {
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

/* 移动端二级菜单 */
.mobile-sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-item-has-children.active .mobile-sub-menu {
    max-height: 300px;
}

.mobile-menu-item-has-children.active .mobile-arrow {
    transform: rotate(45deg);
}

.mobile-sub-menu li a {
    display: block;
    padding: 12px 24px 12px 40px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.mobile-sub-menu li:last-child a {
    border-bottom: none;
}

.mobile-sub-menu li a:hover,
.mobile-sub-menu li a:active {
    background-color: #e9ecef;
    color: #4a90e2;
    padding-left: 44px;
}

/* ==========================================================================
   返回顶部按钮
   ========================================================================== */

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(74, 144, 226, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(74, 144, 226, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(74, 144, 226, 0.4);
}

.back-to-top:active {
    transform: translateY(0);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease;
}

.back-to-top:hover svg {
    transform: translateY(-1px);
}

/* ==========================================================================
   底部样式
   ========================================================================== */

/* 底部样式 */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-content p {
    font-size: 14px;
    color: #bdc3c7;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   移动端导航响应式
   ========================================================================== */

@media (max-width: 768px) {
    /* 移动端导航样式 */
    .nav-menu-desktop {
        display: none;
    }

    .nav-container {
        position: relative;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
    }

    .mobile-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        order: 1;
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        order: 2;
    }

    .search-toggle {
        width: 44px;
        height: 44px;
        order: 3;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-toggle svg {
        width: 20px;
        height: 20px;
    }



    .navbar {
        position: relative;
        padding: 0;
    }

    /* 底部移动端响应式 */
    .site-footer {
        margin-top: 20px;
    }

    .footer-content {
        padding: 0 16px;
    }

    .footer-content p {
        font-size: 13px;
    }

    /* 移动端搜索弹窗 */
    .vpsba-search-overlay {
        padding: 20px 12px !important;
        align-items: center !important;
    }

    .vpsba-search-modal {
        max-width: 100% !important;
        border-radius: 4px !important;
        margin: 0 !important;
    }

    .vpsba-search-box {
        padding: 16px 20px !important;
        border-bottom: 1px solid #f1f3f4 !important;
    }

    .vpsba-search-icon {
        margin-right: 12px !important;
        width: 20px !important;
        height: 20px !important;
    }

    .vpsba-search-input {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }

    .vpsba-search-input::placeholder {
        font-size: 16px !important;
        color: #9ca3af !important;
    }

    /* 移动端隐藏输入框自带的清除按钮 */
    .vpsba-search-input::-webkit-search-cancel-button,
    .vpsba-search-input::-webkit-search-decoration {
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    .vpsba-search-close {
        margin-left: 12px !important;
        padding: 4px !important;
        width: 32px !important;
        height: 32px !important;
    }

    .vpsba-search-content {
        padding: 20px !important;
        max-height: 50vh !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }

    .vpsba-search-content::-webkit-scrollbar {
        display: none !important;
    }

    .vpsba-search-section {
        margin-bottom: 24px !important;
    }

    .vpsba-section-header {
        margin-bottom: 16px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        gap: 10px !important;
        color: #1f2937 !important;
        letter-spacing: -0.025em !important;
    }

    .vpsba-section-header svg {
        width: 16px !important;
        height: 16px !important;
    }

    .vpsba-search-tags {
        gap: 8px !important;
        line-height: 1.2 !important;
    }

    .vpsba-search-tag {
        padding: 10px 16px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .vpsba-search-tag:active {
        transform: scale(0.98) !important;
        background: #e9ecef !important;
    }



    .vpsba-search-footer {
        padding: 16px 20px !important;
        background: #f8f9fa !important;
        border-top: 1px solid #e5e7eb !important;
        border-radius: 0 0 4px 4px !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .vpsba-search-tip {
        font-size: 13px !important;
        color: #6b7280 !important;
        margin: 0 !important;
        text-align: center !important;
    }

    /* 移动端专用提示词 */
    .vpsba-search-tip.mobile-only {
        display: block !important;
    }

    .vpsba-search-tip.desktop-only {
        display: none !important;
    }

    .section-header {
        margin-bottom: 14px;
        font-size: 12px;
        gap: 8px;
    }

    .search-tags {
        gap: 8px;
    }

    .search-tag {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 18px;
    }

    .recent-item {
        padding: 8px 10px;
        font-size: 13px;
        gap: 12px;
    }

    .vpsba-search-footer {
        padding: 10px 16px !important;
        flex-direction: column !important;
        gap: 4px !important;
        align-items: center !important;
        text-align: center !important;
    }

    .vpsba-search-tip {
        font-size: 11px !important;
    }
}

/* ==========================================================================
   Alert 提醒组件样式
   ========================================================================== */

/* 全站Alert提醒组件 - 简化版 */
.alert {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}
.alert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    font-weight: normal !important;
    margin-right: 6px;
    line-height: 1;
}
.alert-icon .icon {
    font-weight: normal !important;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.alert-content {
    flex: 1;
    min-width: 0;
    font-weight: normal !important;
    font-size: 14px;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.alert-success .alert-icon {
    color: #67c23a;
}

.alert-info .alert-icon {
    color: #409eff;
}

.alert-warning .alert-icon {
    color: #e6a23c;
}

.alert-error .alert-icon {
    color: #f56c6c;
}

.alert-close {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    margin-left: 8px;
}

.alert-close:hover {
    opacity: 1;
}

.alert-close svg {
    width: 14px;
    height: 14px;
}

/* Alert类型样式 - Element Plus 官方配色 */
.alert-success {
    background-color: #f0f9ff;
    border-color: #b3e19d;
    color: #67c23a;
}

.alert-info {
    background-color: #f4f4f5;
    border-color: #b3d8ff;
    color: #409eff;
}

.alert-warning {
    background-color: #fdf6ec;
    border-color: #f5dab1;
    color: #e6a23c;
}

.alert-error {
    background-color: #fef0f0;
    border-color: #fbc4c4;
    color: #f56c6c;
}

/* 不同效果样式 */
.alert-light {
    background-color: transparent;
    border-width: 1px;
}

.alert-dark {
    background-color: currentColor;
    color: white;
    opacity: 0.9;
}

/* 全站提醒容器 */
.site-alerts {
    position: fixed;
    top: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
    min-width: 220px;
    max-width: 96vw;
    pointer-events: none;
}

.site-alerts .alert {
    pointer-events: auto;
    margin-bottom: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .07), 0 1px 4px rgba(0, 0, 0, .07);
    backdrop-filter: blur(10px);
    animation: alertSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 4px;
}

@keyframes alertSlideIn {
    from {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.alert-fade-out {
    animation: alertFadeOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes alertFadeOut {
    from {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    to {
        transform: translateY(-30px) scale(0.95);
        opacity: 0;
    }
}

/* ==========================================================================
   分页样式 - 全站公用
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 32px 0;
    padding: 20px 0;
    /* 确保分页区域不被固定导航栏遮挡 */
    scroll-margin-top: 80px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}



.pagination-btn[disabled] {
    color: #ccc !important;
    cursor: not-allowed;
    border-color: #f0f0f0;
    background: #f8f9fa !important;
}

/* 单页分页样式 */
.pagination.single-page {
    padding: 16px 0;
}

.pagination-single-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination-summary {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}



.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.current-page {
    font-weight: 600;
    color: #4a90e2;
}

.total-pages {
    color: #999;
}

.separator {
    color: #ccc;
}

/* ==========================================================================
   通用标签样式 - 全站公用
   ========================================================================== */

.tag-item {
    background: #f8f9fa;
    color: #666;
    padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1.5vw, 8px);
    border-radius: clamp(4px, 1vw, 6px);
    font-size: clamp(10px, 2vw, 11px);
    text-decoration: none;
    display: inline-block;
}

.feature-tag {
    background: #e8f4fd;
    color: #4a90e2;
    padding: clamp(4px, 1vw, 6px) clamp(8px, 2vw, 10px);
    border-radius: clamp(6px, 1.5vw, 8px);
    font-size: clamp(10px, 2.2vw, 11px);
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
}

.feature-tag.cn2 {
    background: #e8f5e8;
    color: #28a745;
    border-color: #b3e5b3;
}

.feature-tag.hot {
    background: #fff8f0;
    color: #f39c12;
    border-color: #ffe0c0;
}

/* 标签链接样式 */
a.tag-item,
a.feature-tag {
    text-decoration: none;
    transition: all 0.3s ease;
}

a.tag-item:hover,
a.feature-tag:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

a.feature-tag.cn2:hover {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

a.feature-tag.hot:hover {
    background: #f39c12;
    color: white;
    border-color: #f39c12;
}



/* ==========================================================================
   统一区域块样式系统 - 全站通用
   ========================================================================== */

/* 基础区域块样式 */
.section-block {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

/* 区域块标题 */
.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #4a90e2;
}

/* 区域块子标题 */
.section-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #495057;
    margin: 16px 0 12px 0;
}

/* 区域块内容 */
.section-content {
    color: #374151;
    line-height: 1.6;
}

/* 区域块列表 */
.section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.section-list-item {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 20px;
}

.section-list-item:last-child {
    border-bottom: none;
}

.section-list-item::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 8px;
    color: #4a90e2;
    font-weight: bold;
}

/* 区域块网格 */
.section-grid {
    display: grid;
    gap: 16px;
}

.section-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.section-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* 区域块变体 */
.section-block.info {
    border-left: 4px solid #4a90e2;
    background: #f8fbff;
}

.section-block.success {
    border-left: 4px solid #28a745;
    background: #f8fff8;
}

.section-block.warning {
    border-left: 4px solid #ffc107;
    background: #fffdf8;
}

.section-block.danger {
    border-left: 4px solid #dc3545;
    background: #fff8f8;
}

/* 紧凑型区域块 */
.section-block.compact {
    padding: 16px;
    margin: 16px 0;
}

.section-block.compact .section-title {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
}

/* 无边框区域块 */
.section-block.borderless {
    border: none;
    background: transparent;
    padding: 16px 0;
}

.section-block.borderless .section-title {
    border-bottom: 1px solid #e9ecef;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .section-block {
        padding: 20px;
        margin: 20px 0;
        border-radius: 6px;
    }

    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }

    .section-title::before {
        width: 30px;
    }

    .section-subtitle {
        font-size: 15px;
        margin: 12px 0 10px 0;
    }

    .section-grid-2,
    .section-grid-3 {
        grid-template-columns: 1fr;
    }

    .section-block.compact {
        padding: 12px;
        margin: 12px 0;
    }
}

@media (max-width: 480px) {
    .section-block {
        padding: 16px;
        margin: 16px 0;
    }

    .section-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .section-title::before {
        width: 25px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-block.compact {
        padding: 10px;
        margin: 10px 0;
    }
}

.meta-tag {
    background: #4a90e2;
    color: white;
    padding: clamp(2px, 0.5vw, 4px) clamp(6px, 1.5vw, 8px);
    border-radius: clamp(3px, 0.5vw, 4px);
    font-size: clamp(12px, 2.2vw, 13px);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.brand-tag {
    background: #4a90e2;
    color: white;
    padding: clamp(3px, 1vw, 4px) clamp(8px, 2.5vw, 12px);
    border-radius: clamp(4px, 1vw, 6px);
    font-size: clamp(10px, 2.2vw, 12px);
    font-weight: 600;
    text-decoration: none;
}
.brand-tag:hover {
    color: white;
}
/* ==========================================================================
   通用按钮样式 - 全站公用
   ========================================================================== */

.buy-btn {
    background: #67c23a;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none;
}

/* ==========================================================================
   移动端响应式样式 - 全站公用
   ========================================================================== */

@media (max-width: 768px) {
    .pagination {
        gap: 12px;
        margin: 24px 0;
        padding: 16px 0;
    }

    .pagination-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .pagination-btn svg {
        width: 14px;
        height: 14px;
    }

    .pagination-info {
        font-size: 13px;
    }

    .pagination-summary {
        font-size: 13px;
        padding: 6px 12px;
    }

    .tag-item {
        padding: 2px 6px;
        font-size: 10px;
    }

    .feature-tag {
        padding: 3px 6px;
        font-size: 10px;
    }

    .meta-tag {
        padding: 2px 6px;
        font-size: 11px;
    }

    .brand-tag {
        padding: 3px 6px;
        font-size: 10px;
    }

    .buy-btn {
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .pagination-summary {
        font-size: 12px;
        padding: 5px 10px;
        text-align: center;
    }
}