/* 全局样式 */
body {
    background: linear-gradient(135deg, #f0f4f8 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* 添加背景装饰效果 */
body::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(100, 181, 246, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(147, 112, 219, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 25s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.row {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.col-md-8,
.col-lg-6 {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* 头像/Logo区域 */
.avatar-container {
    margin-bottom: 30px;
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 3px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15), 0 15px 15px -5px rgba(0, 0, 0, 0.05);
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.avatar:hover img {
    transform: scale(1.1);
}

.avatar i {
    font-size: 3.5rem;
    color: #64b5f6;
    transition: all 0.3s ease;
}

.avatar:hover i {
    transform: scale(1.1) rotate(5deg);
    color: #9370db;
}

/* 系统名称 */
.site-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #374151;
    margin-bottom: 12px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.025em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* 系统描述 */
.site-description {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 35px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-weight: 400;
}

/* 收藏提示 */
.favorite-tip {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    background: rgba(255, 255, 255, 0.8);
    padding: 12px 24px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.favorite-tip:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.favorite-tip i {
    font-size: 1.1rem;
    color: #f59e0b;
    animation: pulse 2s ease-in-out infinite;
}

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

/* 链接容器 */
.links-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    position: relative;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* 确保对话框不被容器限制 */
#app {
    position: relative;
    z-index: 1;
    width: 100%;
}

/* 密码对话框样式优化 - 移除可能导致冲突的z-index */
.password-dialog {
    /* 移除自定义z-index，使用Element UI默认值 */
}

/* 链接项样式 */
.link-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 14px;
    display: flex;
    flex-direction: column;
    min-height: 100px;
    cursor: pointer;
}

.link-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* 链接头部信息 */
.link-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* 链接图标容器 */
.link-icon-container {
    margin-right: 10px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    margin-right: 10px;
}

/* 链接图标 */
.link-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

/* 链接信息 */
.link-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

/* 链接名称 */
.link-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    color: #000000;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    margin-bottom: 2px;
}

/* 链接速度容器 */
.link-speed-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    margin: 0;
}



/* 链接速度文本 */
.link-speed {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
}

/* 速度指示器 */
.speed-indicator {
    position: relative;
    width: 60px;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.speed-indicator::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: #10b981;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.speed-indicator.fast::after {
    width: 100%;
    background: #10b981;
}

.speed-indicator.medium::after {
    width: 70%;
    background: #f59e0b;
}

.speed-indicator.slow::after {
    width: 40%;
    background: #ef4444;
}

/* 链接描述 */
.link-description {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 16px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 链接操作区域 */
.link-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

/* 访问按钮 */
.visit-button {
    flex: 1;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.visit-button:hover {
    transform: translateY(-2px);
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.visit-button i {
    margin-right: 8px;
}

/* 复制按钮 */
.copy-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    color: #6b7280;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-color: #6b7280;
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: none;
    background: #f3f4f6;
    border-color: #4b5563;
}

.copy-button.copied {
    background: #10b981;
    color: white;
    border-color: #059669;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.copy-button.error {
    background: #ef4444;
    color: white;
    border-color: #dc2626;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

/* 密码保护的复制按钮 */
.copy-button.password-protected {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.copy-button.password-protected:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #ef4444;
}

/* 复制提示 */
.copy-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    white-space: nowrap;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.copy-tooltip.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* 复制图标 */
.copy-icon {
    position: relative;
    width: 18px;
    height: 18px;
}

.copy-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 14px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.copy-icon::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 14px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: #ffffff;
}

.copy-button:hover .copy-icon::after {
    background: #f9fafb;
}

.copy-button:active .copy-icon::after {
    background: #f3f4f6;
}

/* 版权信息 */
.copyright {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 1s both;
    font-weight: 400;
    background: rgba(255, 255, 255, 0.8);
    padding: 15px 25px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* 动画效果 */
@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);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 40px 25px;
    }
    
    .container {
        max-width: 600px;
    }
    
    .site-name {
        font-size: 2.2rem;
    }
    
    .site-description {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
    
    .favorite-tip {
        font-size: 0.9rem;
        margin-bottom: 30px;
        padding: 10px 20px;
    }
    
    .link-item {
        padding: 18px 24px;
    }
    
    .link-icon {
        font-size: 1.5rem;
        margin-right: 18px;
        width: 28px;
        height: 28px;
    }
    
    .link-name {
        font-size: 1.1rem;
    }
    
    .link-arrow {
        width: 28px;
        height: 28px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
    }
    
    .avatar img {
        width: 80px;
        height: 80px;
    }
    
    .avatar i {
        font-size: 3.5rem;
    }
    
    .links-container {
        gap: 16px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 30px 20px;
    }
    
    .site-name {
        font-size: 2rem;
    }
    
    .site-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .favorite-tip {
        margin-bottom: 25px;
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .link-item {
        padding: 16px 20px;
        border-radius: 20px;
    }
    
    .link-icon {
        font-size: 1.4rem;
        margin-right: 16px;
        width: 26px;
        height: 26px;
    }
    
    .link-name {
        font-size: 1rem;
    }
    
    .link-arrow {
        width: 26px;
        height: 26px;
        font-size: 1rem;
    }
    
    .links-container {
        gap: 14px;
    }
    
    .avatar {
        width: 90px;
        height: 90px;
    }
    
    .avatar img {
        width: 70px;
        height: 70px;
    }
    
    .avatar i {
        font-size: 3rem;
    }
    
    .copyright {
        font-size: 0.85rem;
        padding: 12px 20px;
    }
}