@font-face {
    font-family: 'LXGW WenKai';
    src: url('../ttf/LXGWWenKai-Regular-CUVmuHes.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================================
   风格主题样式 - 寻道云海
   采用美观大气的渐变设计风格
   ================================ */

/* CSS变量定义 - 按照项目规范调整配色 */
:root {
    /* 主色调 - 科技蓝系 */
    --primary-color: #0ea5e9;
    --primary-hover: #0284c7;
    --primary-light: #0ea5e9;
    --secondary-color: #06d6a0;
    
    /* 渐变背景 - 科技蓝绿配色 */
    --bg-gradient: linear-gradient(135deg, #e0f2fe 0%, #ecfdf5 100%);
    --search-gradient: linear-gradient(-12deg, #0ea5e9, #06d6a0);
    --button-gradient: linear-gradient(90deg, #0ea5e9 0%, #06d6a0 100%);
    
    /* 文本颜色 */
    --text-primary: #222;
    --text-secondary: #666;
    --text-light: #9ca3af;
    
    /* 阴影定义 */
    --shadow-subtle: 0 1px 4px rgba(14, 165, 233, 0.06);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-hover: 0 4px 16px rgba(14, 165, 233, 0.13);
    --shadow-search: 0 4px 20px rgba(14, 165, 233, 0.25);
    --shadow-button: 0 8px 25px rgba(6, 214, 160, 0.3);
    
    /* 圆角 */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 48px;
    
    /* 动画时长 */
    --transition-fast: 0.18s;
    --transition-normal: 0.3s;
}

/* 全局重置与基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* 主容器样式 */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 改为顶部对齐以消除多余间距 */
    min-height: 75vh;
    padding: 24px 8px 0 8px;
}

/* Logo和标题区域 */
.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo-title img {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(111, 85, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-normal) ease, box-shadow var(--transition-normal) ease;
    cursor: pointer;
    animation: logoFloat 4s ease-in-out infinite;
}

.logo-title img:hover {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 12px 35px rgba(111, 85, 255, 0.4), 0 6px 20px rgba(0, 0, 0, 0.15);
    animation-play-state: paused;
}

.logo-title h1 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    color: var(--primary-color);
    transition: transform var(--transition-normal) ease, text-shadow var(--transition-normal) ease;
    cursor: pointer;
    user-select: none;
    text-shadow: 0 2px 4px rgba(111, 85, 255, 0.1);
}

.logo-title h1:hover {
    transform: scale(1.03);
    text-shadow: 0 4px 12px rgba(111, 85, 255, 0.25);
}

.logo-title h1 .pro-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.45em;
    font-weight: 800;
    line-height: 1.3;
    color: #fff;
    background: var(--button-gradient);
    border-radius: 10px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
    transition: all var(--transition-normal) ease;
    margin-left: 6px;
    position: relative;
    overflow: hidden;
}

.logo-title h1 .pro-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.logo-title h1 .pro-badge:hover::before {
    left: 100%;
}

/* 重新设计搜索框 - 简洁美观版本 */
.search-box {
    position: relative !important;
    width: 100% !important;
    max-width: 600px !important;
    margin: 0 auto 20px auto !important; /* 调整底部外边距 */
    background: linear-gradient(-12deg, #0ea5e9, #06d6a0) !important;
    border-radius: 50px !important;
    padding: 2px !important;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.25), 0 2px 8px rgba(6, 214, 160, 0.15) !important;
    transition: all 0.3s ease, transform 0.3s ease, opacity 0.3s ease !important;
}

.search-box:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 25px rgba(14, 165, 233, 0.3), 0 3px 12px rgba(6, 214, 160, 0.2) !important;
}

.search-box-inner {
    display: flex !important;
    align-items: center !important;
    background: white !important;
    border-radius: 48px !important;
    padding: 4px !important;
    width: 100% !important;
}

.search-box input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 1.1rem !important;
    padding: 12px 20px !important;
    color: #000 !important;
    border-radius: 48px !important;
}

.search-box input::placeholder {
    color: #9ca3af !important;
}

.search-buttons {
    display: flex !important;
    align-items: center !important;
    padding-right: 8px !important;
}

.search-btn {
    padding: 10px 16px !important;
    border: none !important;
    background: transparent !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    border-radius: 8px !important;
}

.doc-btn {
    color: #0ea5e9 !important;
}

.pan-btn {
    color: #06d6a0 !important;
}

.search-btn:hover {
    transform: scale(1.05) !important;
    background: rgba(14, 165, 233, 0.1) !important;
}

.pan-btn:hover {
    background: rgba(6, 214, 160, 0.1) !important;
}

.separator {
    color: #d1d5db !important;
    margin: 0 4px !important;
    font-weight: 300 !important;
}

/* 标签云样式 */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 900px;
    margin: 0 auto 18px auto;
    animation: fadeInUp 1.4s ease-out;
    text-decoration: none;
}

.tag {
    background: #fff;
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 0.88rem;
    margin: 0;
    box-shadow: var(--shadow-subtle);
    cursor: pointer;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast), background var(--transition-fast);
    user-select: none;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.tag:hover {
    background: var(--button-gradient);
    color: #fff !important;
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px) scale(1.08);
}

.tag:hover::before {
    left: 100%;
}

/* 友情链接样式 */
.friend-links {
    text-align: center;
    padding: 10px 0 5px 0;
    color: #8a76ff;
    font-size: 0.95rem;
}

.friend-links span {
    margin-right: 5px;
}

.friend-links a {
    color: #8a76ff;
    text-decoration: none;
    margin: 0 5px;
}

.friend-links a:hover {
    text-decoration: none;
}

/* 页脚样式 */
.footer {
    text-align: center;
    color: #8a76ff8a;
    font-size: 0.95rem;
    padding: 6px 0 16px 0;
    letter-spacing: 1px;
    background: none;
}

/* 动画定义 */
@keyframes fadeInDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 搜索框光晕脉冲动画 */
@keyframes searchPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.5;
    }
}

/* Logo旋转动画 */
@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(2deg);
    }
}

/* 标签闪烁动画 */
@keyframes tagShimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 背景粒子动画 */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.5;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(-15px);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.6;
    }
}

/* 移动端响应式 */
@media (max-width: 600px) {
    .container {
        justify-content: flex-start;
        padding-top: 15vh;
    }
    
    .logo-title {
        margin-top: 0;
    }
    
    .logo-title img {
        width: 60px;
        height: 60px;
        user-select: none;
    }
    
    .logo-title h1 {
        font-size: 1.2rem;
    }
    
    .logo-title h1 .pro-badge {
        margin-left: 2px;
        border-radius: 4px;
    }
    
    /* 移动端搜索框优化 - 减少高度和内边距 */
    .search-box {
        max-width: 95% !important;
        margin: 0 auto 24px auto !important;
        padding: 1px !important;
    }
    
    .search-box-inner {
        padding: 2px !important;
        border-radius: 42px !important;
    }
    
    .search-box input {
        font-size: 1rem !important;
        padding: 8px 16px !important;
    }
    
    .search-buttons {
        padding-right: 4px !important;
    }
    
    .search-btn {
        padding: 6px 12px !important;
        font-size: 0.85rem !important;
        font-weight: 500 !important;
    }
    
    .separator {
        margin: 0 2px !important;
        font-size: 0.8rem !important;
    }
    
    .tags {
        gap: 8px;
        max-width: 95%;
        flex-wrap: wrap;
        overflow-y: auto;
        justify-content: center;
        max-height: 45vh;
        padding: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .tags::-webkit-scrollbar {
        display: none;
    }
    
    .tag {
        font-size: 0.88rem;
        padding: 4px 10px;
        border-radius: 16px;
    }
    
    .footer {
        font-size: 0.85rem;
        padding: 0px 0 8px 0;
        max-width: 90%;
        margin-left: 5%;
    }
}

/* 可访问性优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 跳转链接 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 6px;
}

/* NoScript警告 */
.noscript-warning {
    background: #f59e0b;
    color: white;
    padding: 1rem;
    text-align: center;
    border-radius: var(--radius-sm);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-card);
}

/* 顶部认证按钮样式 */
#top-right-auth {
    position: fixed;
    top: 20px;
    right: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
}

#top-right-auth a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.2s ease-in-out;
    border-radius: 8px;
    border: 1px solid transparent;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

#top-right-auth #login-register-btn,
#top-right-auth #user-info-btn {
    border: 1px solid #8b5cf678;
    color: #6928ff;
    background-color: #ffffff;
    margin-right: 12px;
}

#top-right-auth #login-register-btn:hover,
#top-right-auth #user-info-btn:hover {
    background-color: #7c3aed;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

#top-right-auth #logout-btn {
    background-color: rgb(255 255 255);
    color: #f75c5c;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

#top-right-auth #logout-btn:hover {
    background-color: #ef4444;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@media (max-width: 768px) {
    #top-right-auth {
        top: 15px;
        right: 20px;
    }
    #top-right-auth a {
        padding: 6px 12px;
        font-size: 14px;
    }
    #user-info-btn {
        margin-right: 4px !important;
    }
}

/* ============================================= */
/* 弹窗样式 - 宣传弹窗                              */
/* ============================================= */

/* 弹窗遮罩层 */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 197, 94, 0.1);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.promo-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 弹窗主体 */
.promo-modal {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.98),
        rgba(240, 253, 244, 0.95),
        rgba(236, 253, 245, 0.98)
    );
    backdrop-filter: blur(20px);
    border: 2px solid rgba(34, 197, 94, 0.2);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow:
        0 25px 50px -12px rgba(34, 197, 94, 0.15),
        0 0 0 1px rgba(34, 197, 94, 0.1) inset,
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.promo-modal-overlay.show .promo-modal {
    transform: scale(1) translateY(0);
}

/* 关闭按钮 */
.promo-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(148, 163, 184, 0.1);
    border-radius: 50%;
    color: rgba(148, 163, 184, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.promo-modal-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: scale(1.1);
}

/* 弹窗头部 */
.promo-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.promo-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a, #059669);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.promo-modal-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
}

/* 弹窗内容 */
.promo-modal-content {
    margin-bottom: 1.5rem;
}

/* 底部操作 */
.promo-modal-footer {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(34, 197, 94, 0.1);
}

.promo-reminder-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.promo-reminder-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #059669;
    cursor: pointer;
}

.promo-reminder-checkbox label {
    color: #4b5563;
    font-size: 0.9rem;
    cursor: pointer;
}

.promo-later-btn {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.promo-later-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* 移动端弹窗适配 */
@media (max-width: 640px) {
    .promo-modal {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 20px;
        width: 95%;
    }

    .promo-modal-title {
        font-size: 1.25rem;
    }
}

/* ============================================= */
/* LoadingManager 所需的样式                         */
/* ============================================= */

/* 加载状态样式 */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 3rem;
}

.loading-text {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

/* 增强加载器 */
.enhanced-loader {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(111, 85, 255, 0.15);
    border-top: 3px solid #6f55ff;
    border-radius: 50%;
    animation: spin 1s linear infinite, pulse 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(111, 85, 255, 0.25);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes progressShine {
    0% {
        box-shadow: 0 2px 8px rgba(111, 85, 255, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(111, 85, 255, 0.5), 0 0 20px rgba(71, 252, 255, 0.3);
    }
    100% {
        box-shadow: 0 2px 8px rgba(111, 85, 255, 0.3);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px) scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

/* 搜索覆盖层样式 */
.no-scroll { overflow: hidden; }

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fade-in-fast { animation: fadeInFast 200ms ease-out; }
.fade-out-fast { animation: fadeOutFast 200ms ease-in forwards; }
@keyframes fadeInFast { from { opacity: 0 } to { opacity: 1 } }
@keyframes fadeOutFast { from { opacity: 1 } to { opacity: 0 } }

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e0e7ff 0%, #f0fdfa 100%);
    backdrop-filter: blur(12px);
}

.overlay-content {
    position: relative;
    width: min(92vw, 600px);
    border-radius: 24px;
    padding: 2rem;
    border: 2px solid rgba(111, 85, 255, 0.15);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.98),
        rgba(240, 253, 244, 0.95),
        rgba(236, 253, 245, 0.98)
    );
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(111, 85, 255, 0.12),
        0 4px 16px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    text-align: center;
    animation: fadeIn 1.2s ease-out;
}

.overlay-logo { 
    margin-bottom: 1.5rem; 
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo-core { 
    position: relative; 
    width: 80px; 
    height: 80px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 20px;
    animation: logoFloat 3s ease-in-out infinite;
    overflow: hidden;
}
.logo-core img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
}
.overlay-title {
    font-weight: 600;
    font-size: 2rem;
    margin: 0.5rem 0;
    letter-spacing: 1px;
    color: #6f55ff;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
}
.overlay-subtitle {
    color: #374151;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.overlay-progress { margin: 1.5rem 0; }
.progress-track { 
    position: relative; 
    height: 8px; 
    border-radius: 50px; 
    background: rgba(111, 85, 255, 0.1); 
    overflow: hidden; 
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}
.progress-bar { 
    height: 100%; 
    border-radius: 50px; 
    background: linear-gradient(-12deg, #6f55ff, #47fcff); 
    box-shadow: 0 2px 8px rgba(111, 85, 255, 0.3); 
    transition: width 420ms ease-out; 
    animation: progressShine 2s ease-in-out infinite;
}
.progress-shimmer { 
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); 
    transform: translateX(-100%); 
    animation: shimmer 1.6s ease-in-out infinite; 
    mix-blend-mode: screen; 
}

.text-primary-soft {
    color: #6f55ff;
    font-weight: 600;
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: .5rem;
    margin-top: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 500;
}
.progress-steps .step {
    position: relative;
    opacity: 0.6;
    padding: 0.25rem;
    transition: opacity 0.3s ease-out, color 0.3s ease-out;
    border-radius: 8px;
}
.progress-steps .step.active {
    opacity: 1;
    color: #6f55ff;
    background: rgba(111, 85, 255, 0.1);
    font-weight: 600;
}
.progress-steps .step.active::after { 
    content: ''; 
    position: absolute; 
    left: 20%; 
    right: 20%; 
    bottom: -4px; 
    height: 2px; 
    border-radius: 2px; 
    background: linear-gradient(90deg, transparent, #6f55ff, transparent); 
    opacity: 1; 
}

.overlay-tips {
    color: #6b7280;
    font-size: 0.9rem;
    margin-top: 1rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.overlay-cancel {
    margin-top: 1.5rem;
    background: transparent;
    color: #6b7280;
    border: 1px solid rgba(111, 85, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}
.overlay-cancel:hover {
    color: #6f55ff;
    border-color: #6f55ff;
    background: rgba(111, 85, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 85, 255, 0.15);
}

@media (max-width: 480px) {
    .overlay-content { 
        width: 94vw; 
        padding: 1.5rem; 
        border-radius: 20px; 
        margin: 1rem;
    }
    .logo-core { 
        width: 64px; 
        height: 64px; 
        border-radius: 16px;
    }
    .overlay-title {
        font-size: 1.5rem;
    }
    .overlay-subtitle {
        font-size: 0.9rem;
    }
    .progress-steps {
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    .overlay-tips {
        font-size: 0.8rem;
    }
}

/* ============================================= */
/* 工具类样式 - 支持LoadingManager             */
/* ============================================= */

/* Flexbox 布局 */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }

/* Grid 布局 */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 尺寸 */
.w-2 { width: 0.5rem; }
.w-6 { width: 1.5rem; }
.w-64 { width: 16rem; }
.h-2 { height: 0.5rem; }
.h-6 { height: 1.5rem; }
.h-full { height: 100%; }

/* 内外边距 */
.p-3 { padding: 0.75rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* 定位 */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* 背景 */
.bg-blue-500 { background-color: #3b82f6; }
.bg-slate-700 { background-color: #334155; }
.bg-slate-800\/50 { background-color: rgba(30, 41, 59, 0.5); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

/* 圆角 */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }

/* 文本 */
.text-center { text-align: center; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-2xl { font-size: 1.5rem; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-white { color: #ffffff; }
.text-gray-200 { color: #e5e7eb; }
.text-yellow-300 { color: #fde047; }

/* 动画 */
.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
}
@keyframes bounce {
    0%, 100% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

/* 渐变 */
.from-blue-500 { --tw-gradient-from: #3b82f6; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-purple-500 { --tw-gradient-to: #8b5cf6; }

/* 过渡 */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }

/* 透明度 */
.opacity-75 { opacity: 0.75; }

/* 溢出 */
.overflow-hidden { overflow: hidden; }

/* 响应式断点 */
@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =================================================================== */
/* ✨ 全新美化版 - 结果卡片 v3 (网格布局)                               */
/* =================================================================== */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem 1.5rem; /* 移除了顶部内边距 */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.result-card-v2 {
    background-color: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}

.result-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.result-card-v2 .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.type-tag, .source-tag, .date-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #4b5563;
}

.type-tag {
    background-color: rgba(14, 165, 233, 0.1);
    color: var(--primary-color);
}

.result-card-v2 .card-body {
    flex-grow: 1;
}

.result-card-v2 .title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    word-break: break-all;
}

.result-card-v2 .description {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: break-all;
}

.result-card-v2 .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* Pushes footer to the bottom */
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.password-tag {
    background-color: #fff1f2;
    color: #ef4444;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.result-card-v2 .action-button {
    background: var(--button-gradient);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.result-card-v2 .action-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(6, 214, 160, 0.3);
}

/* 卡片入场动画 */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card-enter {
    opacity: 0;
}

.card-enter-active {
    animation: cardEnter 0.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

/* ============================================= */
/* ✨ 分页控件美化样式 v2                         */
/* ============================================= */

.pagination-container {
    display: flex;
    justify-content: space-between; /* 两端对齐 */
    align-items: center;
    width: 100%;
    max-width: 600px; /* 与搜索框同宽 */
    margin: 2rem auto; /* 上下边距 */
    padding: 0 1rem;
}

.pagination-button {
    background: var(--button-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal) ease;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.pagination-button:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    box-shadow: none;
}


