/* 全局样式 */
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: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    position: relative;
}

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

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

/* 链接项样式 */
.link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    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 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    flex: 0 0 calc(50% - 8px);
    min-height: 80px;
}

.link-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(100, 181, 246, 0.1) 0%, rgba(147, 112, 219, 0.1) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.link-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #64b5f6 0%, #9370db 100%);
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.link-item > * {
    position: relative;
    z-index: 2;
}

.link-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    background: #ffffff;
    color: #64b5f6;
    border-color: rgba(100, 181, 246, 0.3);
}

.link-item:hover::before {
    transform: scaleX(1);
}

.link-item:hover::after {
    transform: scaleY(1);
}

/* 链接图标 */
.link-icon {
    font-size: 1.5rem;
    margin-right: 16px;
    color: #64b5f6;
    width: 28px;
    height: 28px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: rgba(100, 181, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-item:hover .link-icon {
    transform: scale(1.1);
    background: rgba(100, 181, 246, 0.2);
    color: #9370db;
}

/* 链接名称 */
.link-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover .link-name {
    letter-spacing: 0.01em;
}

/* 链接箭头 */
.link-arrow {
    font-size: 1rem;
    color: #9ca3af;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    opacity: 0.7;
    background: rgba(156, 163, 175, 0.1);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-item:hover .link-arrow {
    transform: translateX(6px);
    color: #64b5f6;
    opacity: 1;
    background: rgba(100, 181, 246, 0.15);
}

/* 版权信息 */
.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;
        flex: 0 0 calc(50% - 8px);
    }
    
    .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: 640px) {
    /* 在小屏幕设备上显示为1行1个 */
    .link-item {
        flex: 0 0 100%;
    }
    
    .container {
        max-width: 100%;
    }
}

@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;
    }
}