/* 网址导航内容页专用样式 */

/* 内容页布局变量 */
:root {
    --content-primary: #2563eb;
    --content-secondary: #7c3aed;
    --content-accent: #dc2626;
    --content-success: #059669;
    --content-warning: #d97706;
    --content-bg: #f8fafc;
    --content-card-bg: #ffffff;
    --content-border: #e2e8f0;
    --content-text: #1e293b;
    --content-text-light: #64748b;
    --content-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --content-radius: 12px;
    --content-radius-sm: 8px;
    --content-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* 站内提醒样式 */
.site-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    padding: 1rem 1.5rem;
    border-radius: var(--content-radius);
    box-shadow: var(--content-shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInRight 0.3s ease-out;
    transition: var(--content-transition);
}

.site-notification.success {
    background: linear-gradient(135deg, var(--content-success), #047857);
    color: white;
}

.site-notification.warning {
    background: linear-gradient(135deg, var(--content-warning), #b45309);
    color: white;
}

.site-notification.error {
    background: linear-gradient(135deg, var(--content-accent), #b91c1c);
    color: white;
}

.site-notification.info {
    background: linear-gradient(135deg, var(--content-primary), #1d4ed8);
    color: white;
}

.site-notification .notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.site-notification .notification-content {
    flex: 1;
}

.site-notification .notification-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.site-notification .notification-message {
    font-size: 0.875rem;
    opacity: 0.9;
}

.site-notification .notification-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.7;
    transition: var(--content-transition);
}

.site-notification .notification-close:hover {
    opacity: 1;
}

.site-notification.fade-out {
    animation: fadeOut 0.3s ease-in forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 顶部居中提醒样式 */
.site-notification.top-center {
    top: 20px;
    right: 50%;
    transform: translateX(50%);
}

.site-notification.top-center.fade-out {
    animation: fadeOutTop 0.3s ease-in forwards;
}

@keyframes fadeOutTop {
    from {
        opacity: 1;
        transform: translateX(50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(50%) translateY(-20px);
    }
}

/* 内容页主容器 */
.content-page {
    background: var(--content-bg);
    min-height: 100vh;
    padding: 2rem 0;
    position: relative;
}

/* 网站卡片容器 */
.website-card {
    background: var(--content-card-bg);
    border-radius: var(--content-radius);
    box-shadow: var(--content-shadow);
    border: 1px solid var(--content-border);
    overflow: hidden;
    transition: var(--content-transition);
    margin-bottom: 2rem;
}

.website-card:hover {
    /* 移除transform避免布局跳动，改用其他视觉效果 */
    /* transform: translateY(-4px); */
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: var(--content-primary);
    transition: box-shadow 0.2s ease, border-color 0.2s ease; /* 只过渡阴影和边框 */
}

/* 两列布局 - 动态高度匹配 */
.two-column-layout {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: flex-start; /* 改为顶部对齐，避免拉伸 */
    /* 防止滚动时布局变化 */
    min-height: 300px; /* 设置最小高度 */
    contain: layout style; /* 限制重排范围 */
    will-change: transform; /* 优化重绘性能 */
}

.left-column {
    flex: 7;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 300px;
    height: auto;
}

.right-column {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 200px;
    height: auto;
    /* 整个板块形成正方形，宽度和高度一致 */
    aspect-ratio: 1/1; /* 强制1:1比例 */
    max-width: 400px; /* 限制最大宽度 */
    align-self: flex-start; /* 顶部对齐 */
    /* 防止滚动条跳动 */
    will-change: transform; /* 优化重绘性能 */
    contain: layout style; /* 限制重排范围 */
}

/* 缩略图容器 - 填充整个正方形区域 */
.thumbnail-container {
    background: var(--content-card-bg);
    border-radius: var(--content-radius-sm);
    border: 1px solid var(--content-border);
    overflow: hidden;
    transition: var(--content-transition);
    display: flex;
    flex-direction: column;
    height: 100%; /* 填充整个正方形区域 */
    min-height: 200px;
    max-height: 100%; /* 限制最大高度 */
    flex: 1; /* 填充可用空间 */
}

/* 图片区域 - 填充整个正方形区域 */
.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 100%; /* 填充整个正方形区域 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    flex: 1; /* 填充剩余空间 */
    min-height: 150px;
}

/* 确保图片100%填充整个正方形区域 */
.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，裁剪多余部分 */
    transition: var(--content-transition);
    min-height: 100%; /* 确保最小高度100% */
    min-width: 100%; /* 确保最小宽度100% */
}

/* 按钮区域 - 固定高度 */
.thumbnail-actions {
    flex-shrink: 0; /* 按钮区域不收缩 */
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--content-bg);
    border-top: 1px solid var(--content-border);
    height: 60px; /* 固定按钮区域高度 */
    align-items: center;
    justify-content: center;
}

/* 紧凑版样式 */
.website-meta-grid.compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    padding: 0;
    width: 100%;
}

.meta-card.compact {
    padding: 0.75rem;
    border-left-width: 3px;
    height: 60px;
    display: flex;
    align-items: center;
    min-height: 60px;
}

.meta-card.compact i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    width: 24px;
}

.meta-label {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.meta-value {
    font-size: 1rem;
    line-height: 1.2;
}

/* 紧凑版按钮 */
.visit-btn.compact {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-count {
    font-size: 0.75rem;
    min-width: 1.25rem;
}

/* 紧凑版统计网格 */
.stats-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 0;
}

.stat-card.compact {
    padding: 0.75rem;
    text-align: center;
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60px;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.stat-value {
    font-size: 1.1rem;
    line-height: 1.2;
}

/* 紧凑版联系网格 */
.contact-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 0;
}

.contact-card.compact {
    padding: 1rem;
    text-align: center;
}

.contact-icon {
    font-size: 1.75rem;
}

.contact-label {
    font-size: 0.8rem;
}

.contact-value {
    font-size: 0.9rem;
}

/* 网站头部区域 */
.website-header {
    background: linear-gradient(135deg, #b6a41c, #2b0b62);
    color: white;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.website-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-20px, -20px) rotate(360deg); }
}

/* 网站标题图标 */
.website-title-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.site-title-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: var(--content-transition);
    background: white;
    padding: 4px;
}

.site-title-icon:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 网站标题内容 */
.website-title-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.website-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 2.4em;
}

.website-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

/* 网站基本信息网格 */
.website-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.meta-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--content-bg);
    border-radius: var(--content-radius-sm);
    border-left: 4px solid var(--content-primary);
    transition: var(--content-transition);
}

.meta-card:hover {
    background: #f1f5f9;
    /* 移除transform避免布局跳动 */
    /* transform: translateX(4px); */
    border-left-color: var(--content-primary);
    transition: background 0.2s ease, border-left-color 0.2s ease;
}

.meta-card i {
    font-size: 1.5rem;
    color: var(--content-primary);
    margin-right: 1rem;
    width: 32px;
    text-align: center;
}

.meta-content {
    flex: 1;
}

.meta-label {
    font-size: 0.875rem;
    color: var(--content-text-light);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.meta-value {
    font-size: 1.125rem;
    color: var(--content-text);
    font-weight: 600;
}

/* 立即访问按钮样式 */
.visit-btn {
    background: linear-gradient(135deg, var(--content-primary), var(--content-secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--content-transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

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

.visit-btn:hover {
    /* 移除transform避免布局跳动 */
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.visit-btn:hover::before {
    left: 100%;
}

.visit-btn:active {
    transform: translateY(0);
}

.btn-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

/* 加载状态样式 */
.visit-btn-loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.visit-btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 禁用状态样式 */
.visit-btn.disabled {
    background: #9ca3af;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
}

.visit-btn.disabled:hover {
    background: #9ca3af;
    box-shadow: none;
}

.visit-btn.disabled::before {
    display: none;
}

.visit-btn:disabled {
    background: #9ca3af;
    color: #ffffff;
    cursor: not-allowed;
    box-shadow: none;
}

.visit-btn:disabled:hover {
    background: #9ca3af;
    box-shadow: none;
}

.visit-btn:disabled::before {
    display: none;
}


/* 二级域名样式 */
.subdomain {
    color: var(--content-success);
    font-weight: 600;
}

.subdomain::after {
    content: '.zhe7.com';
    color: var(--content-text-light);
    font-weight: 400;
}

/* 缩略图容器 - 已移动到自适应布局部分 */
/* 缩略图悬停效果 */
.thumbnail-container:hover {
    /* 移除transform避免布局跳动 */
    /* transform: translateY(-2px); */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--content-primary);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* 图片悬停效果 */
.thumbnail-wrapper:hover .thumbnail-image {
    /* 移除transform避免布局跳动 */
    /* transform: scale(1.05); */
    filter: brightness(1.1); /* 使用滤镜效果代替缩放 */
    transition: filter 0.2s ease;
}

/* 缩略图加载效果 */
.thumbnail-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--content-text-light);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.thumbnail-image.loading {
    filter: blur(2px);
    opacity: 0.7;
}

.thumbnail-image.loading ~ .thumbnail-loading {
    opacity: 1;
}

.thumbnail-image.loaded {
    filter: none;
    opacity: 1;
}

.thumbnail-image.error {
    background: var(--content-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--content-text-light);
    font-size: 0.8rem;
}

.thumbnail-loading i {
    font-size: 1.5rem;
    animation: spin 1s linear infinite;
}

/* 缩略图操作按钮 */
.thumbnail-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--content-bg);
    border-top: 1px solid var(--content-border);
}

.action-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 1px solid var(--content-border);
    background: var(--content-card-bg);
    color: var(--content-text);
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--content-transition);
}

.action-btn:hover {
    background: var(--content-primary);
    color: white;
    border-color: var(--content-primary);
}

.report-btn:hover {
    background: var(--content-warning);
    border-color: var(--content-warning);
}

.delete-btn:hover {
    background: var(--content-accent);
    border-color: var(--content-accent);
}

/* 网站封面图片 */
.website-cover {
    padding: 0 2rem 2rem;
}

.cover-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--content-radius-sm);
    box-shadow: var(--content-shadow);
}

/* 网站简介 */
.website-brief {
    padding: 0 2rem 2rem;
}

.brief-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--content-radius-sm);
    padding: 2rem;
    border-left: 4px solid var(--content-primary);
}

.brief-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--content-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brief-title::before {
    content: '📝';
    font-size: 1.5rem;
}

.brief-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--content-text);
    margin: 0;
}

/* 免责声明 */
.disclaimer-section {
    padding: 0 2rem 1rem;
}

.disclaimer-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-radius: var(--content-radius-sm);
    padding: 1.5rem;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
}

.disclaimer-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #d35400;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.disclaimer-title::before {
    content: '⚠️';
    font-size: 1rem;
}

.disclaimer-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #7d6608;
    margin: 0;
}

/* AI文章生成提示 */
.ai-notice-section {
    padding: 0 0 1.5rem 0;
}

.ai-notice-card {
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border-radius: var(--content-radius-sm);
    padding: 1.5rem;
    border: 1px solid #cce7ff;
    border-left: 4px solid #4da6ff;
}

.ai-notice-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ai-notice-icon {
    font-size: 1.5rem;
    color: #4da6ff;
    background: white;
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.2);
}

.ai-notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0066cc;
    margin: 0;
}

.ai-notice-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #4d4d4d;
    margin: 0;
}

/* 网站详细描述 */
.website-detail {
    padding: 0 2rem 2rem;
}

.detail-card {
    background: var(--content-card-bg);
    border-radius: var(--content-radius-sm);
    padding: 2rem;
    border: 1px solid var(--content-border);
}

.detail-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--content-text);
}

/* 问答样式 - h3标题美化 */
.detail-card h3 {
    position: relative;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--content-primary);
    margin: 1.5rem 0 0.75rem 0;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--content-radius-sm);
    border-left: 4px solid var(--content-primary);
    transition: var(--content-transition);
}

.website-detail .detail-card h3:hover {
    background: linear-gradient(135deg, #e0f2fe, #d0e8ff);
    transform: translateX(4px);
}

.website-detail .detail-card h3::before {
    content: '\f292'; /* Font Awesome hashtag图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: var(--content-primary);
}

/* 知识问答样式 - h3后面第一个p标签美化 */
.website-detail .detail-card h3 + p {
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--content-text);
    margin: 0 0 1.5rem 0;
    padding: 1rem 1rem 1rem 3rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--content-radius-sm);
    border-left: 3px solid var(--content-warning);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: var(--content-transition);
}

.website-detail .detail-card h3 + p:hover {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    transform: translateX(2px);
}

.website-detail .detail-card h3 + p::before {
    content: '\f518'; /* Font Awesome lightbulb icon (知识类图标) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--content-warning);
    background: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.2);
}

/* 其他p标签保持原样 */
.detail-card p:not(h3 + p) {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--content-text);
    margin-bottom: 1rem;
}

/* 问答展开/收起效果 */
.detail-card .qa-item {
    margin-bottom: 1.5rem;
}

.detail-card .qa-question {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: var(--content-radius-sm);
    border-left: 4px solid var(--content-primary);
    cursor: pointer;
    transition: var(--content-transition);
}

.detail-card .qa-question:hover {
    background: linear-gradient(135deg, #e0f2fe, #d0e8ff);
    transform: translateX(4px);
}

.detail-card .qa-question i {
    font-size: 1.2rem;
    color: var(--content-primary);
    width: 24px;
    text-align: center;
}

.detail-card .qa-question span {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--content-primary);
    flex: 1;
}

.detail-card .qa-answer {
    padding: 1rem 1rem 1rem 3rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 0 0 var(--content-radius-sm) var(--content-radius-sm);
    border-left: 3px solid var(--content-success);
    margin-top: -4px;
    display: none;
}

.detail-card .qa-item.active .qa-answer {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}


/* 紧凑版AI提示样式 */
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ai-notice-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #f0f8ff, #e6f3ff);
    border: 1px solid #cce7ff;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #0066cc;
    white-space: nowrap;
}

.ai-notice-inline .ai-notice-icon {
    font-size: 0.9rem;
    color: #4da6ff;
}

/* 统计数据展示样式 */
.stats-section {
    padding: 0 2rem 1.5rem;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stats-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: var(--content-radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--content-border);
    text-align: center;
    transition: var(--content-transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stats-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.stats-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--content-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-label {
    font-size: 0.85rem;
    color: var(--content-text-light);
    font-weight: 500;
}

.stats-rating {
    display: flex;
    justify-content: center;
    gap: 0.1rem;
    margin-bottom: 0.5rem;
}

.stats-rating i {
    font-size: 0.9rem;
    color: #ffc107;
}

.stats-count {
    font-size: 0.8rem;
    color: var(--content-text-light);
}

/* 统计数据卡片颜色变体 */
.stats-card.click {
    border-left: 4px solid #4da6ff;
}

.stats-card.like {
    border-left: 4px solid #28a745;
}

.stats-card.dislike {
    border-left: 4px solid #dc3545;
}

.stats-card.comment {
    border-left: 4px solid #6f42c1;
}

.stats-card.rating {
    border-left: 4px solid #ffc107;
}

.stats-card.outbound {
    border-left: 4px solid #17a2b8;
}

.stats-card.visit {
    border-left: 4px solid #6c757d;
}
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--content-primary);
}

.detail-title::before {
    content: '🌐';
    font-size: 1.5rem;
}

.detail-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--content-text);
}

.detail-text p {
    margin-bottom: 1rem;
}

.detail-text ul, .detail-text ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.detail-text li {
    margin-bottom: 0.5rem;
}

/* 联系信息网格 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

.contact-card {
    background: var(--content-card-bg);
    border-radius: var(--content-radius-sm);
    padding: 1.5rem;
    border: 1px solid var(--content-border);
    transition: var(--content-transition);
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--content-shadow);
}

.contact-icon {
    font-size: 2rem;
    color: var(--content-primary);
    margin-bottom: 1rem;
    display: block;
}

.contact-label {
    font-size: 0.875rem;
    color: var(--content-text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-value {
    font-size: 1.125rem;
    color: var(--content-text);
    font-weight: 600;
}

.contact-link {
    color: var(--content-primary);
    text-decoration: none;
    transition: var(--content-transition);
}

.contact-link:hover {
    color: var(--content-secondary);
    text-decoration: underline;
}

/* 站点图标样式 */
.site-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--content-border);
    transition: var(--content-transition);
}

.site-icon:hover {
    transform: scale(1.1);
    border-color: var(--content-primary);
}

/* 收录类型和AI状态样式 */
.record-type, .ai-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.record-type.active {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.record-type.auto {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.ai-status.pending {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.ai-status.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.ai-status.failed {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* 统计数据网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--content-primary), var(--content-secondary));
    color: white;
    border-radius: var(--content-radius-sm);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .two-column-layout {
        flex-direction: column;
        gap: 1rem;
    }
    
    .left-column, .right-column {
        flex: none;
        width: 100%;
    }
    
    .thumbnail-container {
        max-width: 400px;
        margin: 0 auto;
        height: auto;
        min-height: 300px;
    }
    
    .thumbnail-wrapper {
        aspect-ratio: 1/1; /* 保持正方形 */
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .website-header {
        padding: 1.5rem;
    }
    
    .website-title {
        font-size: 2rem;
    }
    
    .website-meta-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .meta-card {
        padding: 1rem;
    }
    
    .website-cover,
    .website-brief,
    .website-detail,
    .contact-grid,
    .stats-grid {
        padding: 0 1.5rem 1.5rem;
    }
    
    .brief-card,
    .detail-card {
        padding: 1.5rem;
    }
    
    .contact-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail-container {
        max-width: 100%;
        min-height: 250px;
    }
    
    .thumbnail-wrapper {
        aspect-ratio: 1/1; /* 保持正方形 */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .contact-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .thumbnail-container {
        min-height: 200px;
    }
    
    .thumbnail-wrapper {
        aspect-ratio: 1/1; /* 保持正方形 */
        min-height: 150px;
    }
    
    .thumbnail-actions {
        padding: 0.75rem;
        height: 50px; /* 手机端按钮区域稍小 */
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.website-card > * {
    animation: fadeInUp 0.6s ease-out;
}

.website-card > *:nth-child(1) { animation-delay: 0.1s; }
.website-card > *:nth-child(2) { animation-delay: 0.2s; }
.website-card > *:nth-child(3) { animation-delay: 0.3s; }
.website-card > *:nth-child(4) { animation-delay: 0.4s; }
.website-card > *:nth-child(5) { animation-delay: 0.5s; }
.website-card > *:nth-child(6) { animation-delay: 0.6s; }

/* 内容关键词样式 */
.keyword-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    padding: 0.2rem 0.5rem;
    margin: 0 0.1rem;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    border-bottom: 2px dashed currentColor;
    cursor: pointer;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 随机深色文字 */
.keyword-link:nth-child(1) { color: #2c3e50; }
.keyword-link:nth-child(2) { color: #34495e; }
.keyword-link:nth-child(3) { color: #2c2c2c; }
.keyword-link:nth-child(4) { color: #4a235a; }
.keyword-link:nth-child(5) { color: #1b4f72; }
.keyword-link:nth-child(6) { color: #0e4d3e; }
.keyword-link:nth-child(7) { color: #7d3c98; }
.keyword-link:nth-child(8) { color: #1a5276; }
.keyword-link:nth-child(9) { color: #186a3b; }
.keyword-link:nth-child(10) { color: #7e5109; }

/* Font Awesome图标 */
.keyword-link .fas.fa-hashtag {
    font-size: 0.8rem;
    margin-right: 0.3rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 鼠标滑过效果 */
.keyword-link:hover {
    background: linear-gradient(135deg, #4a90e2, #5d9cec);
    color: white !important;
    border-bottom: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.keyword-link:hover .fas.fa-hashtag {
    opacity: 1;
    transform: scale(1.1);
}

/* 自定义提示工具 */
.keyword-link::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* 箭头指向关键词中间 */
.keyword-link::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border: 6px solid transparent;
    border-bottom-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* 鼠标悬停时显示提示 */
.keyword-link:hover::after,
.keyword-link:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* TAG标签样式 */
.tag-links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem 0;
    margin: 1rem 0;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    opacity: 0.9;
}

/* 随机背景色循环 */
.tag-link:nth-child(1) { background: linear-gradient(135deg, #ff6b6b, #ff8e8e); color: white; }
.tag-link:nth-child(2) { background: linear-gradient(135deg, #4ecdc4, #88d3ce); color: white; }
.tag-link:nth-child(3) { background: linear-gradient(135deg, #45b7d1, #96d7e8); color: white; }
.tag-link:nth-child(4) { background: linear-gradient(135deg, #96ceb4, #b8e0d2); color: white; }
.tag-link:nth-child(5) { background: linear-gradient(135deg, #feca57, #ffeaa7); color: #2d3436; }
.tag-link:nth-child(6) { background: linear-gradient(135deg, #ff9ff3, #f368e0); color: white; }
.tag-link:nth-child(7) { background: linear-gradient(135deg, #54a0ff, #74b9ff); color: white; }
.tag-link:nth-child(8) { background: linear-gradient(135deg, #5f27cd, #341f97); color: white; }
.tag-link:nth-child(9) { background: linear-gradient(135deg, #00d2d3, #54a0ff); color: white; }
.tag-link:nth-child(10) { background: linear-gradient(135deg, #ff9f43, #feca57); color: white; }

/* 循环动画 */
@keyframes tagPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0.9;
    }
    50% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        opacity: 1;
    }
}

/* 兼容的平滑动态效果 */

/* 平滑的呼吸动画 - 避免闪屏 */
@keyframes tagBreathing {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        opacity: 0.9;
    }
    50% {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
        opacity: 1;
    }
}

/* 轮流激活动画 */
.tag-link.animate {
    animation: tagBreathing 4s ease-in-out infinite;
}

/* 每个标签不同的动画延迟，创建轮流呼吸效果 */
.tag-link:nth-child(1).animate { animation-delay: 0s; }
.tag-link:nth-child(2).animate { animation-delay: 0.4s; }
.tag-link:nth-child(3).animate { animation-delay: 0.8s; }
.tag-link:nth-child(4).animate { animation-delay: 1.2s; }
.tag-link:nth-child(5).animate { animation-delay: 1.6s; }
.tag-link:nth-child(6).animate { animation-delay: 2s; }
.tag-link:nth-child(7).animate { animation-delay: 2.4s; }
.tag-link:nth-child(8).animate { animation-delay: 2.8s; }
.tag-link:nth-child(9).animate { animation-delay: 3.2s; }
.tag-link:nth-child(10).animate { animation-delay: 3.6s; }

/* 悬停效果 */
.tag-link {
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: 
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 滑过效果 - 使用::after伪元素 */
.tag-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: left 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.tag-link:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
    /* 悬停时暂停呼吸动画 */
    animation-play-state: paused;
}

.tag-link:hover::after {
    left: 100%;
    opacity: 1;
}

/* # 图标样式 - 使用::before伪元素 */
.tag-link::before {
    content: '\f292'; /* Font Awesome hashtag图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.8;
    position: static;
    background: none;
    z-index: 2;
}

/* 文章数量显示 - 使用span元素 */
.tag-link .count-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    min-width: 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tag-links-container {
        gap: 0.3rem;
        padding: 0.5rem 0;
    }
    
    .tag-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .tag-link::after {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
        margin-left: 0.3rem;
    }
}

@media (max-width: 480px) {
    .tag-links-container {
        justify-content: flex-start;
    }
    
    .tag-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .tag-link::before {
        margin-right: 0.3rem;
        font-size: 0.7rem;
    }
    
    .tag-link::after {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
        margin-left: 0.2rem;
    }
}

/* 电流线条容器 */
.electric-line-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.electric-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #2563eb, transparent);
    height: 2px;
    border-radius: 1px;
    filter: drop-shadow(0 0 8px #2563eb) drop-shadow(0 0 16px #7c3aed);
    animation: electricFlow 0.8s linear forwards;
    transform-origin: left center;
}

/* 抓取终点效果 */
.grab-effect {
    position: fixed;
    width: 16px;
    height: 16px;
    border: 2px solid #60a5fa;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    animation: grabPulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 10px #60a5fa;
}

.grab-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #60a5fa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: grabInnerPulse 1.5s ease-in-out infinite;
}

@keyframes grabPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

@keyframes grabInnerPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(0.8);
    }
}

/* 激活标题高亮效果 */
/* 默认h3样式 */
.detail-text h3 {
    position: relative;
    padding: 12px 16px 12px 3rem;
    margin: 12px 0;
    transition: all 0.3s ease;
}

.detail-text h3::before {
    content: '\f292'; /* Font Awesome hashtag图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #64748b;
    z-index: 1;
}

.detail-text h3.active,
.detail-text strong.active {
    position: relative;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.15), rgba(147, 197, 253, 0.08));
    border-left: 4px solid #60a5fa;
    padding: 12px 16px 12px 3rem;
    margin: 12px 0;
    border-radius: 0 12px 12px 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.15);
    overflow: hidden;
}

/* 充电进度条效果 */
.detail-text h3.active::before {
    content: '\f292'; /* Font Awesome hashtag图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    color: #60a5fa;
    z-index: 1;
}

.detail-text h3.active::after,
.detail-text strong.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.5), rgba(96, 165, 250, 0.3));
    animation: chargingProgress 6s ease-in-out infinite;
    z-index: 0;
}

.detail-text h3.active + p,
.detail-text strong.active + p {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(241, 245, 249, 0.7));
    padding: 16px 20px;
    margin: 0 0 20px 0;
    border-radius: 8px;
    border-left: 3px solid #dbeafe;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

/* 充电进度条动画 */
@keyframes chargingProgress {
    0% {
        width: 0%;
        opacity: 0.8;
    }
    50% {
        width: 100%;
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* 悬浮导航激活状态背景 */
.floating-title-nav.active {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid rgba(96, 165, 250, 0.2);
    box-shadow: 0 8px 32px rgba(96, 165, 250, 0.15);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(147, 197, 253, 0.05));
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.15);
}





/* 鼠标位置跟踪器（隐藏，仅用于计算） */
.mouse-tracker {
    position: fixed;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
}

/* 3D效果增强 */
.electric-line {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.electric-line::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 2px;
    opacity: 0.6;
    transform: translateZ(1px);
    animation: shineMove 0.8s linear forwards;
}

@keyframes shineMove {
    0% {
        transform: translateX(-100%) translateZ(1px);
    }
    100% {
        transform: translateX(100%) translateZ(1px);
    }
}

/* 持续电流流动动画 */
@keyframes continuousElectricFlow {
    0% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: -24; /* 8+4=12，移动2个周期 */
        opacity: 1;
    }
}

/* 电流流动动画 */
@keyframes electricFlow {
    0% {
        width: 0;
        opacity: 0;
        transform: scaleX(0);
    }
    20% {
        opacity: 1;
        transform: scaleX(1);
    }
    80% {
        opacity: 1;
    }
    100% {
        width: var(--line-length, 100px);
        opacity: 0;
        transform: scaleX(1);
    }
}

@keyframes photonGlow {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

/* 右侧悬浮标题导航 */
.floating-title-nav {
    position: fixed;
    top: 50%;
    right: 60px; /* 进一步向左移动，靠近main-content-C */
    transform: translateY(-50%);
    width: 150px;
    max-height: 70vh;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
    padding: 16px 12px;
    z-index: 1000;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-smooth: always;
    backdrop-filter: none;
    filter: none;
    text-rendering: optimizeLegibility;
    image-rendering: -webkit-optimize-contrast;
    will-change: transform; /* 防止模糊 */
}

.floating-title-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    animation: navSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-title-nav:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%);
}

.floating-title-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #dc2626);
    border-radius: 12px 12px 0 0;
}

.nav-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.nav-icon {
    color: #2563eb;
    font-size: 14px;
}

.nav-title {
    font-size: 12px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: calc(70vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.3) transparent;
}

.nav-items::-webkit-scrollbar {
    width: 4px;
}

.nav-items::-webkit-scrollbar-track {
    background: transparent;
}

.nav-items::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.3);
    border-radius: 2px;
}

.nav-items::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.5);
}

.nav-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-rendering: optimizeLegibility;
}

.nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-item:hover::before {
    left: 100%;
}

.nav-item:hover {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.3);
    filter: none;
}

.nav-item.active {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.item-number {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.nav-item:hover .item-number {
    background: #dc2626;
}

.item-text {
    flex: 1;
    font-size: 11px;
    line-height: 1.3;
    color: #1e293b;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 26px;
    transition: all 0.3s ease;
}

.nav-item:hover .item-text {
    color: #2563eb;
}

.nav-empty {
        text-align: center;
        padding: 20px 0;
        color: #64748b;
        font-size: 11px;
        font-style: italic;
    }

    /* 动画效果 */
    @keyframes navSlideIn {
        0% {
            opacity: 0;
            transform: translateY(-50%) translateX(100px) scale(0.8);
        }
        100% {
            opacity: 1;
            transform: translateY(-50%) translateX(0) scale(1);
        }
    }

    .external-icon {
    font-size: 0.7rem;
    color: var(--content-primary);
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: scale(0.9);
}

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

    @keyframes glow {
        0%, 100% {
            box-shadow: 0 0 5px rgba(37, 99, 235, 0.3);
        }
        50% {
            box-shadow: 0 0 15px rgba(37, 99, 235, 0.6);
        }
    }

    .nav-item {
        animation: itemSlideIn 0.5s ease-out forwards;
        animation-delay: calc(var(--item-index, 0) * 0.1s);
        opacity: 0;
        transform: translateX(20px);
    }

    @keyframes itemSlideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .item-number {
        animation: numberPulse 2s ease-in-out infinite;
        animation-delay: calc(var(--item-index, 0) * 0.2s);
    }

    @keyframes numberPulse {
        0%, 100% {
            transform: scale(1);
            box-shadow: 0 0 0 rgba(37, 99, 235, 0.4);
        }
        50% {
            transform: scale(1.1);
            box-shadow: 0 0 10px rgba(37, 99, 235, 0.6);
        }
    }

/* 响应式设计 */
@media (max-width: 1024px) {
    .floating-title-nav {
        right: 10px;
        width: 140px;
    }
}

@media (max-width: 768px) {
    .floating-title-nav {
        display: none;
    }
}
