/* ==========================================================================    全局变量与基础样式    ========================================================================== */
:root {
    --wechat-green: #07C160;
    --wechat-green-dark: #06ad56;
    --wechat-green-light: #e8f7ed;
    --wechat-green-ultra-light: #f0faf5;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --card-shadow: 0 4px 20px rgba(7, 193, 96, 0.08);
    --card-hover-shadow: 0 12px 40px rgba(7, 193, 96, 0.15);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, #f7f7f7 0%, #e8f7ed 50%, #f0faf5 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><circle cx="25" cy="25" r="1" fill="%2307C160" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2307C160" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%2307C160" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="%2307C160" opacity="0.1"/><circle cx="90" cy="30" r="1" fill="%2307C160" opacity="0.1"/></svg>');
    background-size: 100px 100px;
    z-index: -1;
    opacity: 0.5;
}
/* ==========================================================================
绿色滚动条样式
   ========================================================================== */

/* --- 1. Firefox (使用纯色，因为Firefox不支持渐变) --- */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--wechat-green) #f1f1f1;
}

/* --- 2. Webkit内核浏览器 (Chrome, Edge, Opera等) --- */
::-webkit-scrollbar {
    width: 12px;
    height: 12px; /* 添加水平滚动条样式 */
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: var(--wechat-green); /* 主色改为纯色，增强兼容性 */
    border-radius: 6px;
    border: 2px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wechat-green-dark);
}

/* --- 3. Safari特殊处理 (Safari对滚动条样式支持较差) --- */
@supports (-webkit-appearance: none) {
    ::-webkit-scrollbar {
        width: 8px; /* Safari中细一点更好看 */
        height: 8px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent; /* 透明轨道 */
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--wechat-green);
        border-radius: 4px;
        border: none; /* Safari中去掉边框更简洁 */
    }
}

/* --- 4. 强制显示滚动条 (针对某些自动隐藏的设备) --- */
html {
    overflow-y: scroll; /* 强制显示垂直滚动条 */
}

/* --- 5. 移动设备优化 (保留原生体验) --- */
@media (pointer: coarse) {
    /* 在触摸设备上，恢复原生滚动条，因为自定义样式可能不生效 */
    html {
        scrollbar-width: auto;
    }
    
    ::-webkit-scrollbar {
        width: auto;
        height: auto;
    }
    
    ::-webkit-scrollbar-track,
    ::-webkit-scrollbar-thumb {
        background: initial;
        border: initial;
        border-radius: initial;
    }
}

/* ==========================================================================    页面加载动画    ========================================================================== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}
.page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    text-align: center;
    position: relative;
}
.loader-logo {
    width: 120px;
    height: 120px;
    background: var(--wechat-green);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: loaderPulse 1.5s ease-in-out infinite;
}
@keyframes loaderPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
.loader-text {
    font-size: 2rem;
    font-weight: 600;
    color: var(--wechat-green);
}

/* ==========================================================================    主体内容与头部    ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    opacity: 0;
}
.container.show {
    opacity: 1;
    animation: pageLoad 0.8s ease forwards;
}
@keyframes pageLoad {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
header {
    text-align: center;
    padding: 40px 0 60px;
    position: relative;
}
header::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.1) 0%, rgba(7, 193, 96, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}
.title-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    white-space: nowrap;
}
.site-logo {
    width: 50px;
    height: 50px;
    background: var(--wechat-green);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
    flex-shrink: 0;
}
.site-logo i { font-size: 1.5rem; color: white; }
.site-title-wrapper {
    display: flex;
    align-items: flex-end;
    position: relative;
    flex-shrink: 0;
}
.site-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--wechat-green);
    letter-spacing: -1px;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    from { text-shadow: 0 0 10px rgba(7, 193, 96, 0.3); }
    to { text-shadow: 0 0 20px rgba(7, 193, 96, 0.5); }
}
.slogan-display {
    position: absolute;
    left: 100%;
    top: 22px;
    margin-left: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}
.slogan-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
    min-width: 10px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.typing { position: relative; }
.typing::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 2px;
    bottom: 2px;
    width: 3px;
    background: var(--wechat-green);
    border-radius: 2px;
    animation: typingCursor 1.2s ease infinite;
}
@keyframes typingCursor {
    0%, 100% { opacity: 0; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ==========================================================================    搜索与分类 (全面优化版)    ========================================================================== */
.search-section {
    max-width: 500px;
    margin: 0 auto 30px;
    position: relative;
    animation: fadeIn 1s ease 0.3s both;
}
@keyframes fadeIn {
    from { opacity: 0 }
    to { opacity: 1 }
}
.search-container {
    position: relative;
    background: white;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
}
.search-container:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}
.search-box {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    font-size: 16px;
    background: transparent;
    outline: none;
    transition: all 0.3s ease;
}
.search-box:focus {
    box-shadow: inset 0 0 0 2px var(--wechat-green-light);
}
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--wechat-green);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-small);
    color: white;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-btn:hover { background: var(--wechat-green-dark); transform: translateY(-50%) scale(1.05); box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3); }
.category-section {
    margin-bottom: 30px;
    animation: fadeIn 1s ease 0.5s both;
    position: relative;
    z-index: 2;
}
.category-container {
    background: white;
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--card-shadow);
}
.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-title i { color: var(--wechat-green); }
.scroll-hint-text {
    font-size: 0.8rem;
    color: var(--wechat-green);
    background: var(--wechat-green-ultra-light);
    padding: 3px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: hint-slide 2.5s ease-in-out infinite;
}
.scroll-hint-text i { font-size: 0.9rem; }
@keyframes hint-slide {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}
.category-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-small);
}
.category-grid-container {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-grid-container::-webkit-scrollbar { display: none; }
.category-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: 90px;
    grid-auto-flow: column;
    gap: 18px;
    width: max-content;
    padding: 0 5px;
}
.category-item {
    width: 90px;
    height: 55px;
    background: var(--wechat-green-ultra-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.category-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--wechat-green);
    transform: translateY(100%);
    transition: transform 0.3s var(--transition-smooth);
    z-index: 0;
}
.category-item:hover::before { transform: translateY(0); }
.category-item i { font-size: 1.2rem; color: var(--wechat-green); margin-bottom: 3px; position: relative; z-index: 1; transition: all 0.3s ease; }
.category-item span { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-primary); position: relative; z-index: 1; transition: all 0.3s ease; }
.category-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(7, 193, 96, 0.2);
}
.category-item:hover i, .category-item:hover span { color: white; }
.category-item.active { background: var(--wechat-green); border-color: var(--wechat-green); }
.category-item.active i, .category-item.active span { color: white; }

/* ==========================================================================    网站卡片与加载指示器 (全面增强版)    ========================================================================== */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-size: 1.2rem;
}
.loading-indicator i { font-size: 2rem; color: var(--wechat-green); animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 23px 20px;
    margin-top: 20px;
}
.card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s var(--transition-smooth);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.card.lazy {
    opacity: 0;
    transform: translateY(30px);
}
.card.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.05) 0%, rgba(7, 193, 96, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.card:hover::before { opacity: 1; }
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--wechat-green);
}
.card-icon {
    width: 50px;
    height: 50px;
    background: var(--wechat-green-light);
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--wechat-green);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    z-index: 1;
}
.card-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--wechat-green);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s var(--transition-bounce);
    z-index: 0;
}
.card-icon i { position: relative; z-index: 1; transition: all 0.3s ease; }
.card:hover .card-icon::before { width: 100%; height: 100%; border-radius: var(--border-radius-small); }
.card:hover .card-icon { transform: scale(1.05) rotate(5deg); box-shadow: 0 5px 15px rgba(7, 193, 96, 0.3); }
.card:hover .card-icon i { color: white; transform: scale(1.1); }
.card-content { flex: 1; z-index: 1; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 5px; color: var(--text-primary); transition: all 0.3s ease; }
.card:hover .card-title { color: var(--wechat-green); transform: translateX(3px); }
.card-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.3; transition: all 0.3s ease; }
.card:hover .card-desc { color: var(--text-primary); }
.card-latency {
    /* --- 核心修改：从绝对定位改为Flexbox布局 --- */
    position: static; /* 不再绝对定位 */
    margin-left: auto; /* 自动推到最右边 */
    flex-shrink: 0; /* 防止被压缩 */

    font-size: 0.65rem;
    color: var(--wechat-green);
    background: var(--wechat-green-ultra-light);
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
    opacity: 0.8;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.card:hover .card-latency {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.latency-number {
    display: inline-block;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}
.card-arrow { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #ccc; transition: all 0.3s var(--transition-smooth); z-index: 1; }
.card:hover .card-arrow { transform: translateY(-50%) translateX(5px); color: var(--wechat-green); }

/* ==========================================================================    辅助功能与模态框 (增强hover)    ========================================================================== */
.ripple {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(7, 193, 96, 0.3) 0%, transparent 70%);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
    z-index: 9999;
}
@keyframes rippleEffect { to { transform: scale(4); opacity: 0; } }
.redirect-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.redirect-modal.show { display: flex !important; }
.redirect-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    animation: modalSlideIn 0.3s ease;
    position: relative;
}
@keyframes modalSlideIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.redirect-logo { width: 60px; height: 60px; background: var(--wechat-green); border-radius: var(--border-radius-small); display: flex; align-items: center; justify-content: center; margin: 0 auto 15px; }
.redirect-logo i { font-size: 1.5rem; color: white; }
.redirect-title { font-size: 1.2rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
.redirect-desc {
    background: var(--wechat-green-ultra-light);
    padding: 10px;
    border-radius: var(--border-radius-small);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.redirect-url { background: var(--wechat-green-ultra-light); padding: 8px; border-radius: var(--border-radius-small); font-family: monospace; font-size: 0.8rem; color: var(--wechat-green); margin-bottom: 15px; word-break: break-all; }
.redirect-buttons { display: flex; gap: 10px; justify-content: center; }
.redirect-btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--border-radius-small);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    min-width: 88px;
    white-space: nowrap;
}
.redirect-btn.confirm { background: var(--wechat-green); color: white; }
.redirect-btn.confirm:hover {
    background: var(--wechat-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(7, 193, 96, 0.3);
}
.redirect-btn.cancel { background: #f0f0f0; color: var(--text-secondary); }
.redirect-btn.cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.redirect-countdown { margin-top: 10px; font-size: 0.85rem; color: var(--text-secondary); }
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: var(--wechat-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(7, 193, 96, 0.3);
    z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
    background: var(--wechat-green-dark);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(7, 193, 96, 0.4);
}

/* ==========================================================================    响应式设计 (全面优化)    ========================================================================== */
@media (min-width: 1200px) {
    .search-section { max-width: 80%; }
}
@media (max-width: 768px) {
    .container { padding: 15px; }
    .title-container { transform: scale(0.8); transform-origin: center center; }
    .cards-grid { grid-template-columns: 1fr; gap: 15px; }
    .card { padding: 15px; }
    .card-icon { width: 45px; height: 45px; font-size: 18px; }
    .card-title { font-size: 1rem; }
    .card-desc { font-size: 0.8rem; }
    .search-container { max-width: 100%; }
    .search-box { padding: 12px 45px 12px 15px; font-size: 15px; }
    .search-btn { width: 35px; height: 35px; }
    .redirect-content { padding: 20px; max-width: 320px; }
    .redirect-logo { width: 50px; height: 50px; }
    .redirect-title { font-size: 1.1rem; }
    .back-to-top { width: 40px; height: 40px; bottom: 15px; right: 15px; }
}
@media (max-width: 480px) {
    .title-container { transform: scale(0.7); }
}

/* ==========================================================================    Footer    ========================================================================== */
.load-more-indicator {
    text-align: center;
    padding: 40px 0;
    color: #aaa;
    font-size: 0.85rem;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}
.load-more-indicator span {
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.load-more-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
    z-index: 1;
}
.site-footer {
    background-color: #f8f8f8;
    border-top: 1px solid #eaeaea;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
}
.site-footer p { margin: 5px 0; }
.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.site-footer a:hover { color: var(--wechat-green); }
#runTime { font-weight: 600; color: var(--wechat-green); }
.icp-icon {
    vertical-align: middle;
    margin-right: 6px;
    color: #8a8a8a;
    transition: color 0.3s ease;
}
.site-footer a:hover .icp-icon { color: var(--wechat-green); }
.bounce {
    display: inline-block;
    animation: bounce 1.5s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ==========================================================================    自定义鼠标指针 (纸飞机)    ========================================================================== */
/* 隐藏系统默认光标 */
* {
    cursor: none !important;
}
/* 纸飞机容器 */
.lazy-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
/* 纸飞机图标样式 */
.lazy-cursor i {
    color: #3498db;
    font-size: 24px;
    line-height: 1;
    display: block;
    transition: color 0.3s ease, font-size 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
    transform: scaleX(-1);
}
/* 悬停效果 */
.lazy-cursor.hover {
    transform: translate(-50%, -50%) rotate(0deg) !important;
}
.lazy-cursor.hover i {
    color: #5dade2;
    font-size: 28px;
    text-shadow: 0 0 10px rgba(93, 173, 226, 0.8), 0 0 20px rgba(93, 173, 226, 0.5);
}
/* 点击效果 */
.lazy-cursor.click i {
    font-size: 20px;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.7);
}
/* 确保在移动设备上不显示自定义鼠标 */
@media (pointer: coarse) {
    .lazy-cursor {
        display: none;
    }
    body, a, button, input, select, textarea {
        cursor: auto !important;
    }
}

/* ==========================================================================
   优雅的粒子拖尾特效
   ========================================================================== */
.cursor-particle {
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    width: 6px;
    height: 6px;
    background-color: var(--wechat-green);
    border-radius: 50%;
    opacity: 0;
    animation: particleFade 1.2s ease-out forwards;
}

/* 粒子淡出并轻微飘动 */
@keyframes particleFade {
    0% {
        opacity: 0.6;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--drift-x), var(--drift-y)) scale(0.2);
    }
}

/* ==========================================================================
   防红页面样式
   ========================================================================== */
.blocked-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background-color: #e8f5e9; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    min-height: 100vh; 
    color: #333;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(7, 193, 96, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(7, 193, 96, 0.08) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰粒子 */
.blocked-page .bg-particle {
    position: absolute;
    background: var(--wechat-green, #07c160);
    border-radius: 50%;
    opacity: 0.05;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
}

.blocked-page .browser-prompt { 
    background-color: #e8f5e9; 
    border-radius: 24px; 
    padding: 50px 35px; 
    box-shadow: 
        20px 20px 60px #c3d4c5,
        -20px -20px 60px #ffffff,
        inset 1px 1px 2px rgba(255, 255, 255, 0.3),
        inset -1px -1px 2px rgba(0, 0, 0, 0.1); 
    text-align: center; 
    max-width: 90%; 
    width: 420px; 
    position: relative; 
    animation: fadeInScale 0.6s ease-out;
    z-index: 10;
}

@keyframes fadeInScale { 
    from { opacity: 0; transform: scale(0.9); } 
    to { opacity: 1; transform: scale(1); } 
}

.blocked-page .prompt-icon { 
    font-size: 72px; 
    color: var(--wechat-green, #07c160); 
    margin-bottom: 25px; 
    animation: bounce 2.5s infinite;
    filter: drop-shadow(0 4px 8px rgba(7, 193, 96, 0.2));
}

@keyframes bounce { 
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 
    40% { transform: translateY(-10px); } 
    60% { transform: translateY(-5px); } 
}

.blocked-page .prompt-title { 
    font-size: 24px; 
    font-weight: 600; 
    color: #333; 
    margin-bottom: 12px;
    background: linear-gradient(135deg, #07c160, #0a9b4c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blocked-page .prompt-desc { 
    font-size: 15px; 
    color: #666; 
    margin-bottom: 30px; 
    line-height: 1.6;
    opacity: 0.9;
}

.blocked-page .url-display { 
    width: 100%; 
    padding: 18px; 
    border: none; 
    border-radius: 16px; 
    background: #e8f5e9; 
    box-shadow: 
        inset 8px 8px 16px #c3d4c5,
        inset -8px -8px 16px #ffffff; 
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace; 
    font-size: 13px; 
    color: #555; 
    word-break: break-all; 
    margin-bottom: 35px; 
    resize: none; 
    -webkit-user-select: all; 
    user-select: all; 
    cursor: text; 
    min-height: 70px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.blocked-page .url-display:hover {
    border-color: rgba(7, 193, 96, 0.2);
}

.blocked-page .url-display:focus {
    outline: none;
    border-color: var(--wechat-green, #07c160);
    box-shadow: 
        inset 8px 8px 16px #c3d4c5,
        inset -8px -8px 16px #ffffff,
        0 0 0 3px rgba(7, 193, 96, 0.1);
}

.blocked-page .btn { 
    padding: 16px 32px; 
    border: none; 
    border-radius: 16px; 
    font-size: 16px; 
    font-weight: 600; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.blocked-page .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.blocked-page .btn:active::before {
    width: 300px;
    height: 300px;
}

.blocked-page .btn-copy { 
    background: linear-gradient(145deg, #f0f9f2, #dceadd); 
    color: #07c160; 
    box-shadow: 
        8px 8px 16px #c3d4c5,
        -8px -8px 16px #ffffff; 
}

.blocked-page .btn-copy:hover { 
    transform: translateY(-2px); 
    box-shadow: 
        10px 10px 20px #c3d4c5,
        -10px -10px 20px #ffffff;
}

.blocked-page .btn-copy.copied {
    background: linear-gradient(145deg, #4caf50, #45a049);
    color: white;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.blocked-page .copy-feedback { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.8); 
    background: linear-gradient(145deg, #4caf50, #45a049); 
    color: white; 
    padding: 16px 24px; 
    border-radius: 12px; 
    font-size: 15px; 
    font-weight: 500;
    opacity: 0; 
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    pointer-events: none; 
    box-shadow: 
        0 10px 30px rgba(76, 175, 80, 0.3),
        0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blocked-page .copy-feedback.show { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1);
}

.blocked-page .copy-feedback i {
    font-size: 18px;
}

/* 添加一个页脚提示 */
.blocked-page .footer-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #999;
    opacity: 0.7;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}
/* ==========================================================================
   Blocked Page 特定样式
   ========================================================================== */
.browser-prompt {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    transition: all 0.4s var(--transition-smooth);
}

.browser-prompt:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-3px);
}

.prompt-icon {
    font-size: 64px;
    color: var(--wechat-green);
    margin-bottom: 20px;
    animation: bounce 2.5s infinite;
    filter: drop-shadow(0 4px 8px rgba(7, 193, 96, 0.2));
}

.prompt-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--wechat-green), var(--wechat-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prompt-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.url-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.url-display {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: var(--border-radius-small);
    background: var(--wechat-green-ultra-light);
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    color: var(--text-primary);
    word-break: break-all;
    resize: none;
    -webkit-user-select: all;
    user-select: all;
    cursor: text;
    min-height: 60px;
    transition: all 0.3s ease;
}

.url-display:hover {
    border-color: rgba(7, 193, 96, 0.2);
}

.url-display:focus {
    outline: none;
    border-color: var(--wechat-green);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.btn-copy {
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius-small);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    background: var(--wechat-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn-copy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-copy:active::before {
    width: 300px;
    height: 300px;
}

.btn-copy:hover {
    background: var(--wechat-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.btn-copy.copied {
    background: #4caf50;
    animation: successPulse 0.6s ease;
}

.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(145deg, #4caf50, #45a049);
    color: white;
    padding: 16px 24px;
    border-radius: var(--border-radius-small);
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.4s var(--transition-bounce);
    pointer-events: none;
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-feedback.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.copy-feedback i {
    font-size: 18px;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .browser-prompt {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .prompt-icon {
        font-size: 48px;
    }
    
    .prompt-title {
        font-size: 20px;
    }
    
    .prompt-desc {
        font-size: 14px;
    }
    
    .url-display {
        font-size: 13px;
        padding: 12px;
    }
    
    .btn-copy {
        padding: 12px 24px;
        font-size: 14px;
    }
}
