/* 艺术家信息区块样式 */

.artist-info-section {
    padding: 0 20px;
    /* margin-bottom: 20px; */
}

/* 艺术家横幅和头像容器 */
.artist-banner-container {
    position: relative;
    margin-bottom: 20px;
}

/* 艺术家横幅 */
.artist-banner {
    width: 100%;
    height: 0;
    padding-bottom: 25%; /* 4:1 宽高比 = 25% */
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: filter 0.3s ease;
    border-radius: 8px;
}

/* 视频banner样式 */
.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.artist-banner:hover .banner-video {
    filter: brightness(0.7);
}

/* 上传覆盖层 */
.banner-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

/* 只有当存在上传覆盖层时，hover效果才生效 */
.artist-banner:has(.banner-upload-overlay):hover .banner-upload-overlay {
    opacity: 1;
}

.artist-banner:has(.banner-upload-overlay):hover .banner-image {
    filter: brightness(0.7);
}

.artist-banner:has(.banner-upload-overlay):hover .banner-video {
    filter: brightness(0.7);
}

.upload-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #333;
    transition: transform 0.2s ease;
}

.upload-icon:hover {
    transform: scale(1.1);
}

.upload-text {
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 4px;
}

.upload-requirements {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    white-space: nowrap;
    max-width: none;
}

/* 加载动画 */
.artist-banner-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 艺术家头像 */
.artist-avatar {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -50px;
    z-index: 10;
}

.artist-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.artist-avatar img:hover {
    /* transform: scale(1.05); */
}

/* 艺术家详细信息 */
.artist-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 0 20px 0;
    position: relative;
}

.artist-details {
    flex: 1;
    text-align: center;
}

.artist-name {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1;
}

.artist-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

/* 关注数和粉丝数悬浮样式 */
.following-count,
.followers-count {
    cursor: pointer;
    transition: color 0.2s ease;
}

/* .following-count:hover,
.followers-count:hover {
    color: #10b981;
} */

.separator {
    color: #333;
    font-weight: bold;
}

.view-profile {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s ease;
}

.view-profile:hover {
    text-decoration: underline;
    color: #005a8b;
}

/* 艺术家简介 */
.artist-bio {
    margin-top: 10px;
    text-align: center;
}

.artist-bio p {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    text-align: center;
}

/* Bio编辑功能样式 */
.bio-editable {
    position: relative;
}

.bio-content {
    display: inline; /* 改为inline，让内容真正内联显示 */
}

.bio-text {
    margin: 0;
    display: inline; /* 确保文本内联显示 */
}

.edit-bio-btn {
    opacity: 0;
    padding: 4px;
    border: none;
    background: none;
    color: #6b7280;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 4px; /* 在图标和文字之间添加小间距 */
    vertical-align: middle; /* 垂直居中对齐 */
}

.bio-editable:hover .edit-bio-btn {
    opacity: 1;
}

.edit-bio-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.bio-edit-form {
    background: white;
    /* border: 2px solid #000000; */
    border-radius: 8px;
    padding: 16px;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bio-textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    padding: 8px 0;
}

.form-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.save-btn, .cancel-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-btn {
    background: #000000;
    color: white;
    border-color: #000000;
}

.save-btn:hover {
    background: #374151;
}

.cancel-btn {
    background: white;
    color: #374151;
}

.cancel-btn:hover {
    background: #f3f4f6;
}

.artist-actions {
    position: absolute;
    right: 0;
    top: 0;
    transform: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-btn:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #adb5bd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8"/><polyline points="16,6 12,2 8,6"/><line x1="12" y1="2" x2="12" y2="15"/></svg>') no-repeat center;
    background-size: contain;
}

/* 关注按钮样式 */
.follow-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 12px 24px;
    background: #c41e3b;
    border: 1px solid #c41e3b;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.follow-btn:hover {
    background: #c41e3b;
    border-color: #c41e3b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.follow-btn.following {
    background: #ffffff;
    border: 1px solid #dee2e6;
    color: #6b7280;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.follow-btn.following:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

.follow-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.follow-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.follow-btn.loading .follow-text {
    color: #000000;
}

.follow-icon {
    width: 16px;
    height: 16px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><path d="M20 8v6"/><path d="M23 11h-6"/></svg>') no-repeat center;
    background-size: contain;
}

.follow-btn.following .follow-icon {
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%236b7280" stroke-width="2"><path d="M16 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"/><circle cx="8.5" cy="7" r="4"/><path d="M15 11l2 2 4-4"/></svg>') no-repeat center;
    background-size: contain;
}

/* 响应式设计 */
/* 平板端 (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .artist-info-section {
        padding: 0;
    }

  .artist-profile{
    padding: 40px 20px 20px 20px;
  }

  .artist-actions{
    right: 20px;
  }
}

/* 桌面端隐藏手机版关注按钮 */
@media (min-width: 769px) {
    .follow-btn.mobile-below-bio {
        display: none;
    }
} 

/* 移动端 (768px以下) */
@media (max-width: 768px) {
    .artist-info-section {
        padding: 0;
    }

    .artist-banner {
        height: 150px;
        padding-bottom: 0;
        border-radius: 0;
    }

    .banner-image {
        border-radius: 0;
    }
    
    .banner-video {
        border-radius: 0;
    }
    
    .artist-avatar {
        bottom: -40px;
    }
    
    .artist-avatar img {
        width: 60px;
        height: 60px;
        border: 3px solid white;
    }
    
    .artist-profile {
        flex-direction: column;
        text-align: center;
        padding: 30px 10px 0 10px;
    }
    
    .artist-details {
        /* margin-bottom: 20px; */
    }
    
    .artist-name {
        font-size: 18px;
    }
    
    .artist-stats {
        font-size: 12px;
    }
    
    .artist-bio {
        font-size: 13px;
        line-height: 1.4;
    }
    
    .artist-actions {
        position: absolute;
        left: 10px;
        right: 10px;
        top: 0;
        transform: none;
        display: flex;
        align-items: center;
        justify-content: space-between; /* 保持space-between，让按钮分布在两端 */
        gap: 0;
    }
    
    .follow-btn {
        padding: 8px 16px;
        font-size: 12px;
        height: 36px;
        order: 1; /* follow-btn在左边 */
    }
    
    .share-btn {
        padding: 8px 16px;
        font-size: 12px;
        height: 36px;
        order: 2; /* share-btn在右边 */
        margin-left: auto; /* 确保share-btn始终在右边 */
    }
    
    /* 手机端分享按钮只显示图标 */
    .share-btn .share-text {
        display: none;
    }
    
    .share-btn {
        padding: 8px;
        min-width: auto;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .share-btn:hover {
        background: #f4f4f4;
        border: none;
        box-shadow: none;
        transform: none;
    }
    
    .share-btn .share-icon {
        margin: 0;
        width: 20px;
        height: 20px;
    }
    
    /* 当没有关注按钮时，分享按钮仍然保持在右边 */
    .artist-actions:not(:has(.follow-btn)) .share-btn {
        margin-left: auto;
    }
    
    /* 手机端banner上传要求文案换行 */
    .upload-requirements {
        white-space: normal;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.4;
    }

    .social-links-container {
        gap: 10px;
        justify-content: center;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }

    /* 手机端隐藏桌面版关注按钮 */
    .desktop-follow-btn {
        display: none;
    }

    /* 手机端关注按钮新样式 - 在bio下方 */
    .follow-btn.mobile-below-bio {
        position: static;
        width: 80%;
        background: #000000;
        border-color: #000000;
        color: white;
        justify-content: center;
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        margin: 10px auto 0 auto;
    }

    .follow-btn.mobile-below-bio:hover {
        background: #333333;
        border-color: #333333;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }

    .follow-btn.mobile-below-bio.following {
        background: #ffffff;
        border-color: #dee2e6;
        color: #6b7280;
        box-shadow: none;
    }

    .follow-btn.mobile-below-bio.following:hover {
        background: #f9fafb;
        border-color: #d1d5db;
        color: #374151;
    }
}

/* 关注操作结果消息样式 - 已注释 */
/*
.follow-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 4px;
    color: white;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-size: 14px;
    font-weight: 500;
}

.follow-message.success {
    background: #4CAF50;
}

.follow-message.error {
    background: #f44336;
}

.follow-message.info {
    background: #2196F3;
}

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

/* 艺术家社交媒体链接样式 */
.artist-social-links {
    margin-bottom: 10px;
}

.social-links-container {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid #e5e7eb;
}

.social-link:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-link.instagram:hover {
    background: #e91e63;
    color: white;
    border-color: #e91e63;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

.social-link.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: #1877f2;
}

.social-link.website:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.social-link.tiktok:hover {
    background: #000000;
    color: white;
    border-color: #000000;
}

/* 复制成功提示样式 */
.copy-success-tip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-success-tip.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}