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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 导航栏样式 */
#navbar {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 移动导航菜单样式 - 左侧滑出 */
#mobileMenu {
    pointer-events: none;
}

#mobileMenu.active {
    pointer-events: auto;
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* 霓虹按钮效果 */
.neon-text {
    color: #fff;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #ff00de,
        0 0 40px #ff00de,
        0 0 80px #ff00de,
        0 0 90px #ff00de,
        0 0 100px #ff00de,
        0 0 150px #ff00de;
}

.neon-text:hover {
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #00f9ff,
        0 0 40px #00f9ff,
        0 0 80px #00f9ff,
        0 0 90px #00f9ff,
        0 0 100px #00f9ff,
        0 0 150px #00f9ff;
    transition: all 0.3s ease;
}    visibility: visible;
    pointer-events: auto;
}

/* 标题样式 */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* 按钮样式 */
.btn-primary {
    background-color: #0071e3;
    color: white;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 图片缩放效果 */
.img-zoom {
    transition: transform 0.7s ease;
}

.img-zoom:hover {
    transform: scale(1.05);
}

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 防止内容被导航栏遮挡 */
section {
    scroll-margin-top: 64px;
}

/* 内容淡入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 渐入渐出动画 */
.fade-transition {
    transition: opacity 0.5s ease;
}

/* 下划线动画效果 */
.underline-animation {
    position: relative;
}

.underline-animation::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0071e3;
    transition: width 0.3s ease;
}

.underline-animation:hover::after {
    width: 100%;
}

/* 网盘解析页面风格卡片 */

/* 统一卡片基础样式 */
.cyberpunk-card {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.cyberpunk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* 网盘解析 - 粉蓝渐变 */
.card-blue {
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.card-blue .card-icon-area {
    height: 12rem;
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.2) 0%, 
        rgba(59, 130, 246, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* MOON TV - 蓝紫渐变 */
.card-purple {
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.card-purple .card-icon-area {
    height: 12rem;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.2) 0%, 
        rgba(147, 51, 234, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 合租平台 - 绿青渐变 */
.card-green {
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.card-green .card-icon-area {
    height: 12rem;
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.2) 0%, 
        rgba(20, 184, 166, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 金铲铲 - 橙红渐变 */
.card-golden {
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.card-golden .card-icon-area {
    height: 12rem;
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.2) 0%, 
        rgba(239, 68, 68, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 哔哩哔哩 - 红紫渐变 */
.card-red {
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.card-red .card-icon-area {
    height: 12rem;
    background: linear-gradient(135deg, 
        rgba(239, 68, 68, 0.2) 0%, 
        rgba(147, 51, 234, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 抖音 - 粉橙渐变 */
.card-pink {
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.card-pink .card-icon-area {
    height: 12rem;
    background: linear-gradient(135deg, 
        rgba(236, 72, 153, 0.2) 0%, 
        rgba(245, 158, 11, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 卡片内容样式 */
.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.card-description {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* 图标样式 */
.card-icon {
    font-size: 3rem;
    color: white;
    opacity: 0.9;
}

.card-blue:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(59, 130, 246, 0.4),
        0 0 30px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.6);
}

.card-purple:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(147, 51, 234, 0.4),
        0 0 30px rgba(147, 51, 234, 0.2);
    border-color: rgba(147, 51, 234, 0.6);
}

.card-green:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(34, 197, 94, 0.4),
        0 0 30px rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.6);
}

.card-golden:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(245, 158, 11, 0.4),
        0 0 30px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.6);
}

.card-red:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(239, 68, 68, 0.4),
        0 0 30px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.6);
}

.card-pink:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(236, 72, 153, 0.4),
        0 0 30px rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.6);
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    h3 {
        font-size: 1.5rem !important;
    }
}

/* 回到顶部按钮 */
#backToTop {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

/* 移动端汉堡菜单样式 */
#mobileMenu {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999; /* 提高z-index确保菜单在最上层 */
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none; /* 确保不可见时不可点击 */
}

#mobileMenu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto; /* 确保可见时可点击 */
}

/* 菜单打开时的背景模糊效果 */
body.menu-open {
    overflow: hidden;
}

/* 移动端菜单链接样式 */
#mobileMenu a {
    display: block; /* 使用block代替flex，可能更容易点击 */
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    position: relative;
    z-index: 10000;
    margin: 5px 0;
    border-radius: 4px;
}

#mobileMenu a:hover {
    background-color: rgba(255, 56, 166, 0.2);
    color: #FF38A6;
    text-shadow: 0 0 10px #FF38A6, 0 0 20px #FF38A6;
}

/* 回到顶部按钮显示样式 */
#backToTop.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 移动端菜单背景模糊效果 */
body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99;
    transition: all 0.3s ease-in-out;
}

/* 汉堡按钮样式增强 */
#menuBtn {
    position: relative;
    z-index: 101; /* 确保按钮始终在菜单之上 */
    left: 0; /* 左对齐 */
    padding: 0.75rem 1rem; /* 增加内边距，使按钮更宽 */
    width: 48px; /* 设置固定宽度 */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer; /* 明确指示这是可点击的元素 */
    border-radius: 4px; /* 添加圆角 */
    transition: background-color 0.2s ease; /* 添加悬停效果 */
}

#menuBtn:hover {
    background-color: rgba(255, 255, 255, 0.1); /* 悬停时的背景色 */
}

/* 移动端菜单动画 */
#mobileMenu {
    /* 增加选择器特异性，确保覆盖Tailwind的默认样式 */
    transform: translateX(100%) !important;
    transition: transform 0.3s ease-in-out !important;
    position: fixed;
    top: 64px; /* 调整位置，避免遮挡导航栏 */
    right: 0;
    height: calc(100vh - 64px);
    width: 80%;
    max-width: 300px;
    background-color: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    overflow-y: auto;
}

#mobileMenu.active {
    /* 增加选择器特异性，确保active状态能够覆盖默认样式 */
    transform: translateX(0) !important;
}

/* 移动端菜单项样式 */
#mobileMenu a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s ease;
}

#mobileMenu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#mobileMenu a:last-child {
    border-bottom: none;
}

/* 网格布局 */
.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 图片容器 */
.img-container {
    overflow: hidden;
    border-radius: 12px;
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 文本截断 */
.text-truncate-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 链接样式 */
a.link-primary {
    color: #0071e3;
    text-decoration: none;
    transition: color 0.2s ease;
}

a.link-primary:hover {
    color: #0077ed;
    text-decoration: underline;
}

/* 分隔线 */
.divider {
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    background-color: rgba(0, 0, 0, 0.05);
    color: #666;
    margin-right: 8px;
    margin-bottom: 8px;
}

/* 引用样式 */
blockquote {
    border-left: 3px solid #0071e3;
    padding-left: 1rem;
    font-style: italic;
    color: #666;
    margin: 1.5rem 0;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
}

table th, table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

table th {
    font-weight: 600;
}

table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 密码模态框样式 */
#passwordModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 9999 !important; /* 确保模态框在最顶层 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#passwordModal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

#passwordModal > div {
    background-color: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(236, 72, 153, 0.5) !important;
    border-radius: 0.75rem !important;
    padding: 2rem !important;
    max-width: 28rem !important;
    width: 100% !important;
    margin: 1rem !important;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3) !important;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

#passwordModal:not(.hidden) > div {
    transform: scale(1);
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    border-top: 1px solid var(--neon-pink);
}

/* 访问统计样式 */
.visitor-counter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-pink);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

.counter-item {
    text-align: center;
}

.counter-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.counter-label {
    display: block;
    font-size: 0.8rem;
    color: var(--neon-pink);
    margin-top: 5px;
}

.counter-divider {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, var(--neon-pink), transparent);
}

.neon-glow {
    animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    from {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .visitor-counter {
        bottom: 10px;
        right: 10px;
        padding: 10px;
        gap: 10px;
    }
    
    .counter-number {
        font-size: 1.2rem;
    }
    
    .counter-label {
        font-size: 0.7rem;
    }
}

/* 静态卡片网格样式 */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

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

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

.gap-8 {
    gap: 2rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}