/* 用户头像样式 */
.user-avatar-dropdown {
    position: relative;
    display: inline-block;
}

.user-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
}

.avatar-icon {
    font-size: 36px;
    color: #666;
    cursor: pointer;
}

/* 下拉菜单样式 */
.user-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    padding: 12px 0;
    display: none;
    z-index: 1000;
    margin-top: 8px;
}

.user-avatar-dropdown:hover .user-dropdown-content {
    display: block;
}

.user-info {
    padding: 0 16px 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

.user-info strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.user-info small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    color: #666;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout i {
    color: #dc3545;
}

.dropdown-divider {
    height: 1px;
    background: #eee;
    margin: 8px 0;
}

/* 登录链接样式 */
.login-link {
    display: flex;
    align-items: center;
    color: #666;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: 14px;
    transition: all 0.3s;
}

.login-link:hover {
    background-color: #f5f5f5;
    color: #333;
}

.login-link i {
    margin-right: 6px;
}

.login-text {
    font-size: 14px;
}


/* ==================== 装备页面样式 ==================== */

/* 分组块样式 */
.group-block {
    margin-bottom: 40px;
}

.group-block:last-child {
    margin-bottom: 0;
}

/* 装备网格布局 */
.equipments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 10px;
    margin: 10px 0;/*20*/
}

.equipment-item {
    break-inside: avoid;
}

.equipment-card {
    background: #1e1e1e;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 卡片悬停效果 - 只改变阴影和边框，容器不动 */
.equipment-card:hover {
    border: 1px solid #3a3a3a;
    transform: none;
}

.equipment-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--end-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
    transform-origin: center;
}

/* 只在图片上应用缩放效果 */
.equipment-card:hover .equipment-image {
    transform: scale(1.08);
}

.equipment-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--end-text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

/* 占位符的悬停效果 */
.equipment-card:hover .equipment-placeholder {
    transform: scale(1.05);
    opacity: 0.7;
}

.equipment-info {
    padding: 15px 15px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.equipment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.equipment-spec {
    font-size: 0.85rem;
    color: var(--end-text-secondary);
    margin: 0 0 8px 0;
    font-weight: 500;
    background: #2a2a2a;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 2px 6px;
    display: inline-block;
    width: fit-content;
    white-space: nowrap;

}


.equipment-desc {
    font-size: 0.9rem;
    color: var(--end-text-secondary);
    line-height: 1.5;
    flex: 1;
}

.equipment-link {
    display: inline-block;
    padding: 8px 16px;
    background: var(--end-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.equipment-link:hover {
    background: #06ae56;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .equipments-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    .equipment-image-container {
        height: 180px;
    }
    
    .equipment-info {
        padding: 16px;
    }
    
    .equipment-title {
        font-size: 1.1rem;
    }
    
    /* 移动端减小缩放效果 */
    .equipment-card:hover .equipment-image {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .equipments-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .equipment-image-container {
        height: 160px;
    }
    
    .equipment-info {
        padding: 12px;
    }
    
    .group-block {
        margin-bottom: 30px;
    }
    
    /* 移动端进一步减小缩放效果 */
    .equipment-card:hover .equipment-image {
        transform: scale(1.03);
    }
}

/* ==================== 装备加载动画 ==================== */
.equipment-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.equipment-loading.show {
    opacity: 1;
}

.loading-content {
    text-align: center;
    color: white;
    transform: translateY(-20px);
    animation: fadeInUp 0.6s ease;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    position: relative;
}

.loading-spinner-large .spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--end-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content p {
    font-size: 1.1rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* 装备项目进入动画 */
.equipment-item {
    animation: fadeInUp 0.6s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 延迟动画，让装备项目依次出现 */
.equipment-item:nth-child(1) { animation-delay: 0.1s; }
.equipment-item:nth-child(2) { animation-delay: 0.2s; }
.equipment-item:nth-child(3) { animation-delay: 0.3s; }
.equipment-item:nth-child(4) { animation-delay: 0.4s; }
.equipment-item:nth-child(5) { animation-delay: 0.5s; }
.equipment-item:nth-child(6) { animation-delay: 0.6s; }
.equipment-item:nth-child(7) { animation-delay: 0.7s; }
.equipment-item:nth-child(8) { animation-delay: 0.8s; }
.equipment-item:nth-child(9) { animation-delay: 0.9s; }
.equipment-item:nth-child(10) { animation-delay: 1.0s; }

/* 加载更多区域动画 */
.equipments-container .load-more-container {
    animation: fadeIn 0.8s ease 0.5s;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 空状态动画 */
.equipments-container .photos-empty-state {
    animation: fadeInUp 0.8s ease;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .loading-spinner-large {
        width: 50px;
        height: 50px;
    }
    
    .loading-content p {
        font-size: 1rem;
    }
    
    .equipment-item:nth-child(1) { animation-delay: 0.05s; }
    .equipment-item:nth-child(2) { animation-delay: 0.1s; }
    .equipment-item:nth-child(3) { animation-delay: 0.15s; }
    .equipment-item:nth-child(4) { animation-delay: 0.2s; }
    .equipment-item:nth-child(5) { animation-delay: 0.25s; }
    .equipment-item:nth-child(6) { animation-delay: 0.3s; }
    .equipment-item:nth-child(7) { animation-delay: 0.35s; }
    .equipment-item:nth-child(8) { animation-delay: 0.4s; }
}

@media (max-width: 480px) {
    .loading-spinner-large {
        width: 44px;
        height: 44px;
    }
    
    .loading-content p {
        font-size: 0.95rem;
    }
}

/* ==================== 装备外部链接样式 ==================== */
.equipment-external-link {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-10px);
    z-index: 2;
}

.equipment-card:hover .equipment-external-link {
    opacity: 1;
    transform: translateY(0);
}

.equipment-external-link:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(0) scale(1.05);
    color: white;
    text-decoration: none;
}

.link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
}

.link-icon svg {
    width: 100%;
    height: 100%;
}

.link-text {
    white-space: nowrap;
    font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .equipment-external-link {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        gap: 4px;
    }
    
    .link-text {
        font-size: 0.7rem;
    }
    
    .link-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .equipment-external-link {
        top: 8px;
        right: 8px;
        padding: 8px 11px;
    }
    
    /* 在小屏幕上默认显示链接，而不是悬停显示 */
    .equipment-external-link {
        opacity: 0.8;
        transform: translateY(0);
    }
    
    .equipment-card:hover .equipment-external-link {
        opacity: 1;
    }
}

/* ==================== 装备标题链接样式 ==================== */
.equipment-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.equipment-title-link:hover .equipment-title {
    color: var(--end-primary);
    text-decoration: none;
}

/* 确保标题保持原有样式 */
.equipment-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--end-text);
    margin: 0 0 8px 0;
    line-height: 1.4;
    transition: color 0.2s ease;
}