/* 淘宝链接引导模态框样式 */
.taobao-guide-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.taobao-guide-modal.show {
    opacity: 1;
    visibility: visible;
}

.taobao-guide-modal .modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.taobao-guide-modal.show .modal-content {
    transform: scale(1);
}

.taobao-guide-modal .modal-header {
    padding: 1.25rem 1.5rem 0.75rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.taobao-guide-modal .modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.taobao-guide-modal .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.taobao-guide-modal .btn-close:hover {
    background-color: #f8f9fa;
    color: #666;
}

.taobao-guide-modal .btn-close::before {
    content: "×";
    font-size: 1.5rem;
    line-height: 1;
}

.taobao-guide-modal .modal-body {
    padding: 1.25rem 1.5rem;
    line-height: 1.6;
}

.taobao-guide-modal .modal-body p {
    color: #555;
}

.taobao-guide-modal .modal-body ol {
    color: #555;
    padding-left: 1.2rem;
}

.taobao-guide-modal .modal-body ol li {
    margin-bottom: 0.5rem;
}

.taobao-guide-modal .link-container {
    border: 1px solid #e9ecef;
}

.taobao-guide-modal .link-container .form-control {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: #666;
    padding: 0.375rem 0.5rem;
}

.taobao-guide-modal .link-container .form-control:focus {
    box-shadow: none;
    border-color: transparent;
}

.taobao-guide-modal .modal-footer {
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    justify-content: flex-end;
}

.taobao-guide-modal .alert {
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .taobao-guide-modal .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .taobao-guide-modal .modal-header,
    .taobao-guide-modal .modal-body,
    .taobao-guide-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .taobao-guide-modal .modal-title {
        font-size: 1rem;
    }
    
    .taobao-guide-modal .modal-body {
        font-size: 0.9rem;
    }
}

/* 复制按钮动画效果 */
.taobao-guide-modal .btn {
    transition: all 0.2s ease;
}

.taobao-guide-modal .btn:hover {
    transform: translateY(-1px);
}

.taobao-guide-modal .btn:active {
    transform: translateY(0);
}

/* 链接容器样式优化 */
.taobao-guide-modal .link-container {
    position: relative;
}

.taobao-guide-modal .link-container .form-control {
    padding-right: 100px; /* 为按钮预留空间 */
}

@media (max-width: 480px) {
    .taobao-guide-modal .link-container .d-flex {
        flex-direction: column;
    }
    
    .taobao-guide-modal .link-container .form-control {
        margin-bottom: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .taobao-guide-modal .link-container .btn {
        width: 100%;
    }
}
